.mast-help { display: none; }
.sub-page {
  max-width: 1150px;
  margin: 0 auto;
  padding: 6px 0 36px;
  color: var(--text);
}
.sub-intro, .sub-account-bar, .sub-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sub-intro { margin-bottom: clamp(20px, 2.8cqi, 38px); }
.sub-intro h1 { font-size: clamp(40px, 5.2cqi, 74px); line-height: 1.02; }
.sub-intro p { max-width: 62ch; }
.sub-intro p, .sub-account p { color: #c1ceca; margin: 9px 0 0; line-height: 1.55; }
.sub-jump, .sub-secondary, .sub-primary {
  min-height: 44px;
  border: 1px solid #9a805c;
  border-radius: 10px;
  padding: 9px 16px;
  color: #ffe2bd;
  background: #172b32;
  font-size: .94rem;
}
.sub-jump { flex: none; }
.sub-choices { display: none; }
.sub-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px, 1.4cqi, 20px); }
.sub-card, .sub-account {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #56625e;
  border-radius: 18px;
  background: #142a31;
}
.sub-card { display: flex; flex-direction: column; }
.sub-card[data-plan="personal"] { border-color: #a58e6b; background: #183036; }
.sub-card[data-plan="deep"] { border-color: #71627a; background: #252b37; }
.sub-card-current { box-shadow: 0 0 0 1px #edc48e; }
.sub-cover {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px,1.8cqi,26px);
  border-bottom: 1px solid #fff2;
  background-size: cover;
  background-position: center;
  background-color: #263e42;
}
.sub-card[data-plan="start"] .sub-cover {
  background-image: linear-gradient(90deg,#10292ddc,#11272c45),linear-gradient(0deg,#10272ed9,transparent 64%),url('assets/daily/rice-terraces.webp');
  background-position: center,center,70% 65%;
}
.sub-card[data-plan="personal"] .sub-cover {
  background-image: linear-gradient(90deg,#213238e3,#302a1c29),linear-gradient(0deg,#132b31e8,transparent 72%),url('assets/hero.webp');
  background-position: center,center,68% 48%;
}
.sub-card[data-plan="deep"] .sub-cover {
  background-image: linear-gradient(90deg,#252737ee,#262a345c),linear-gradient(0deg,#252a36e0,transparent 72%),url('assets/daily/snow-pass.webp');
  background-position: center,center,70% 45%;
}
.sub-card-heading { align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.sub-card h2 { font-size: clamp(24px, 2.15cqi, 34px); line-height: 1.06; color: #fff1da; }
.sub-active { background: #d6ead1; color: #203a2d; padding: 3px 8px; font-size: .75rem; border-radius: 12px; }
.sub-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 16px;
  color: #ffdaad;
  font: 400 clamp(38px,3.5cqi,54px)/1.05 var(--serif);
  letter-spacing: -.04em;
}
.sub-price small { color: #fff4de; font: 400 .88rem/1.3 system-ui,sans-serif; letter-spacing: 0; }
.sub-detail { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 20px clamp(15px,1.8cqi,26px) 12px; }
.sub-mode { color: #e5cfa8; font-weight: 600; font-size: .9rem; }
.sub-description { margin: 5px 0 18px; line-height: 1.48; color: #dbe3dd; font-size: .96rem; }
.sub-limits {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  text-align: left;
  font-variant-numeric: tabular-nums;
  color: #edf1e8;
}
.sub-card .sub-limits { margin-top: auto; }
.sub-limits th, .sub-limits td { padding: .66rem 0; vertical-align: middle; border-bottom: 1px solid #e2dac322; line-height: 1.25; }
.sub-limits th { font-weight: 400; }
.sub-limits th:not(:first-child), .sub-limits td { text-align: right; padding-left: .58rem; white-space: nowrap; }
.sub-limits thead th { color: #b7c8c4; font-size: .8rem; }
.sub-limits tbody tr:last-child>* { border-bottom: 0; }
.sub-models { width: 100%; margin: 0 0 14px; padding: 11px 0; border-block: 1px solid #d1c5a42c; }
.sub-model-row { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.sub-model-row + .sub-model-row { margin-top: 5px; }
.sub-model-row dt { min-width: 0; font-size: .88rem; color:#b9cbc7; }
.sub-model-row dd { flex:none; margin:0; color:#ffdbac; font-size:.94rem; font-weight:650; letter-spacing:.005em; }
.sub-budget { margin: 0 0 16px; padding: 12px 18px; border-inline-start: 2px solid #dca970; background:#14292f; color:#d9e3df; line-height:1.5; }
.sub-budget strong { color:#ffdeb7; }
.sub-info { margin-top: 14px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:14px; }
.sub-info-item { min-width:0; padding:0; background:none; border:none; border-radius:0; }
.sub-info-item summary { display:list-item; color:#f4d4ad; font-weight:550; font-size:.95rem; line-height:1.4; padding:11px 0; min-height:44px; cursor:pointer; }
.sub-info-item summary::marker { color:#d6a975; font-size:.8em; }
.sub-info-item summary:focus-visible { outline:2px solid #ffd69a; outline-offset:2px; }
.sub-info-item p { color:#c2d1cd; line-height:1.55; font-size:.94rem; margin:0 0 12px; }
.sub-account {
  margin-top: clamp(24px, 3cqi, 42px);
  padding: clamp(17px,2.3cqi,32px);
  background: #10242d;
  border-color: var(--line);
  scroll-margin-block: 16px;
}
.sub-account h2 { font-size: clamp(25px,2.4cqi,36px); }
.sub-account>p { max-width: 68ch; }
.sub-account .sub-limits { max-width: 590px; margin-top: .8rem; }
.sub-code-form { display: flex; align-items: end; gap: 10px; margin-top: 1.15rem; }
.sub-code-label { min-width: 0; max-width: 420px; flex: 1; display: grid; gap: 6px; font-size: .9rem; color: #f1e9d9; }
.sub-code {
  width: 100%; min-width: 0; background: #0b1d25; color: #fff2da; border: 1px solid #697872;
  min-height: 44px; font: inherit; font-size: 16px; border-radius: 10px; padding: 8px 12px;
}
.sub-code::placeholder { color: #a5b7b3; }
.sub-primary { background: #ffc18a; color: #24221c; border-color: #ffc182; font-weight: 650; }
.sub-primary:disabled, .sub-secondary:disabled { opacity: .65; cursor: wait; }
.sub-link { color: #ffc58d; text-decoration: underline; min-height: 44px; }
.sub-page :is(input,button):focus-visible { outline: 2px solid #ffd69a; outline-offset: 3px; }
.sub-account p.sub-note,.sub-account p.sub-account-id { font-size: .87rem; color: #bacac5; }
.sub-account-id { overflow-wrap: anywhere; }
.sub-account p.sub-error { color: #ffd2ab; }
.sub-status { margin-top: .6rem; color: #c4d0c8; line-height: 1.45; }
.sub-status:empty,.sub-error:empty { margin: 0; }
.sub-visually-hidden { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

@container atlas (min-width:741px) and (max-width:1100px) {
  .mast-inner { gap: 8px; }
  .desk-nav .nav-link { padding-inline: 6px; gap: 4px; white-space: nowrap; }
  .desk-nav .nav-link .ico { display: none; }
  .mast .view-switch span { position: absolute; clip-path: inset(100%); width: 1px; height: 1px; overflow: hidden; }
}
@container atlas (max-width:930px) {
  .sub-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-bottom: 10px; }
  .sub-choice {
    display: grid; justify-items: center; align-content: center; min-height: 59px;
    padding: 7px 3px; border: 1px solid #67746c; border-radius: 10px; background: #142830; color: #e4e9df;
  }
  .sub-choice[aria-pressed="true"] { border-color: #e8bd87; background: #443a2f; color: #ffe1b2; }
  .sub-choice .sub-choice-name { min-height: 2.5em; display: grid; align-content: center; line-height: 1.15; text-wrap: balance; margin-bottom: 2px; }
  .sub-choice strong { font-size: 1.03rem; }
  .sub-choice span { font-size: .75rem; color: #c2d0cb; }
  .sub-choice[aria-pressed="true"] span { color: #ead8b9; }
  .sub-cards { display: block; }
  .sub-card:not(.sub-shown) { display: none; }
  .sub-detail { padding: 14px 16px 8px; }
  .sub-models { margin-bottom:8px; padding-block:8px; }
  .sub-info { grid-template-columns:1fr; gap:0; }
  .sub-info-item { border-bottom:1px solid #ccbb982c; }
  .sub-cover { min-height: 117px; padding: 15px 17px; }
  .sub-card h2 { font-size: 27px; }
  .sub-price { font-size: 39px; margin-top: 9px; }
  .sub-description { margin-bottom: 10px; }
  .sub-limits th,.sub-limits td { padding-block: .55rem; }
}
@container atlas (max-width:740px) {
  .mast-help { display: grid; place-items: center; width: 44px; height: 44px; color: #c0ceca; }
  .mast-help[aria-current="page"] { color: var(--accent); }
  .sub-intro { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 12px; }
  .sub-intro h1 { font-size: clamp(34px,8.4cqi,47px); }
  .sub-intro p { margin-top: 6px; font-size: .94rem; }
  .sub-jump { background: transparent; padding: 4px 2px; border: 0; color: #f4c88c; text-decoration: underline; text-underline-offset: 4px; }
  .sub-account-bar { gap: 9px; flex-wrap: wrap; }
  .sub-code-form { align-items: stretch; flex-direction: column; }
  .sub-code-label { max-width: none; }
}
@container atlas (max-width:400px) {
  .mast-actions { gap: 0; }
  .mast-inner { gap: 3px; padding-inline: 10px; }
}
@media(hover:hover) {
  .sub-jump:hover, .sub-secondary:hover { color: #ffe4c8; border-color: #ffc182; }
  .sub-primary:hover { background: #ffd0a1; }
  .sub-choice:hover { border-color: #e8bd87; }
}
