/* Cut Room: the auth group (2026-11-07). Signup (EN, ES), login, reset, sign-in inside the iPhone app, contact, and the
   signed-in shell (app home, choose a plan), ported from the owner-approved Cut Room board (frozen 11-7).
   Loads after graphite.css and site.css. Every colour is a Graphite token or a token at an alpha. Classes are
   c-auth-*; site.css classes are reused as the board's DIRECTION.md documents them. The one deliberate override: an
   error's words are neutral (--text) beside the red 8px dot, because red is only the dot.

   What the port changed (2026-11-07). The board drew each page state from a URL preview switch on <html>
   (?tier= for a saved plan, ?state=error|mismatch|sent|invite). A real page gets them from the server, which renders
   only the markup the state needs: the error notice only with an error, the sent notice and its "Back to sign in"
   chip only after a send (and then no form), the saved-plan card only with a saved plan, the invite disclosure
   already open when a code arrived. So the board's hide-until-the-switch rules are gone, and the saved-plan layout
   follows the card itself (.c-auth:has(.c-auth-saved)). A mismatched confirm password is .c-field.is-error, set by
   the page's own script on blur and submit (site.css section 17). */

/* ---------- 1. The auth split: the form, the cut, the note ----------
   Phones: the form first, then the clip, then the note. With a saved plan (the server renders .c-auth-saved, from
   /signup?tier=) the plan note leads, so the visitor sees what they picked before they type. Desktop: the form left;
   the clip and the note right. */
.c-auth-page { position: relative; padding-block: 28px 72px; }
@media (min-width: 960px) { .c-auth-page { padding-block: 40px 72px; } }
.c-auth { grid-template-areas: "form" "media" "note"; row-gap: 44px; }
.c-auth__form { grid-area: form; min-width: 0; }
.c-auth__media { grid-area: media; --c-ph: 380px; } /* wide enough for the live status pill at 12px */
.c-auth__media .c-player { border-radius: 24px; }
.c-auth__note { grid-area: note; min-width: 0; width: 100%; max-width: 440px; justify-self: center; }
.c-auth:has(.c-auth-saved) { grid-template-areas: "note" "form" "media"; row-gap: 26px; }
.c-auth:has(.c-auth-saved) .c-auth__note { max-width: none; }
.c-auth--nonote .c-auth__media { display: none; } /* reset page: no clip on phones, the task is one field */
@media (min-width: 960px) {
  /* Spacer rows above and below keep the clip and its note together, centred beside the form. */
  .c-auth {
    grid-template-areas: "form ." "form media" "form note" "form ."; grid-template-rows: 1fr auto auto 1fr; align-items: start; row-gap: 0;
  }
  /* The saved-plan page needs its own rule to outrank the phone order above. Never in one list with .c-auth: :has()
     is not forgiving, so a browser without it drops a whole list that names it, and the desktop layout with it
     (fix round 1, 2026-11-07). */
  .c-auth:has(.c-auth-saved) { grid-template-areas: "form ." "form media" "form note" "form ."; row-gap: 0; }
  .c-auth__form { align-self: center; }
  .c-auth__media { --c-ph: clamp(400px, calc(100vh - 440px), 540px); }
  .c-auth__media .c-player { border-radius: 30px; }
  .c-auth__note { margin-top: 28px; }
  .c-auth:has(.c-auth-saved) .c-auth__note { max-width: 440px; }
  .c-auth--nonote .c-auth__media { display: flex; }
  .c-auth--nonote { grid-template-areas: "form ." "form media" "form ."; grid-template-rows: 1fr auto 1fr; }
}

/* On the auth pages the form's key is the page's one emerald key: the header's self-link ("Edit a video" goes to
   signup) stays quiet at every scroll position. */
.c-auth-body .c-header__key.g-key { background: var(--surface2); color: var(--text); box-shadow: none; }
.c-auth-body .c-header__key.g-key:hover { background: var(--surface3); }

/* The form column: the title, the offer lines, then the controls at 440px. */
.c-auth__title.c-h1 { font-size: clamp(34px, 1.6vw + 24px, 48px); }
.c-auth__lede.c-lede { margin-top: 16px; color: var(--text); }
.c-auth__offer { margin-top: 6px; max-width: 440px; }
.c-auth__body { display: grid; gap: 18px; max-width: 440px; margin-top: 28px; }
.c-auth__body > .c-or { margin-block: 2px; }
.c-auth-go.g-key { width: 100%; min-height: 56px; margin-top: 4px; font-size: 17px; }
.c-auth-alt { display: grid; gap: 6px; }
.c-auth-alt .c-small { color: var(--text2); }
.c-auth-alt .c-inlink { font-weight: 600; }
.c-auth-terms .c-inlink { color: var(--text2); padding-inline: 2px; margin-inline: -2px; } /* 44px wide hit area for 'Terms' */

/* Password with the live reveal toggle ("Show password"). */
.c-auth-pw { position: relative; }
.c-auth-pw .c-input { padding-right: 60px; }
.c-auth-pw__eye {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: transparent; color: var(--text3); cursor: pointer;
}
.c-auth-pw__eye:hover { color: var(--text); background: var(--surface3); }
.c-auth-pw__eye svg { width: 20px; height: 20px; }
.c-auth-pw__eye .is-off { display: none; }
.c-auth-pw__eye[aria-pressed="true"] .is-on { display: none; }
.c-auth-pw__eye[aria-pressed="true"] .is-off { display: block; }

/* Errors: the red 8px dot, neutral words. Never a red ring or fill. The .c-notice.c-auth-error block is rendered only
   when the server has an error to say; a field's own message shows on .c-field.is-error (site.css). */
.c-auth .c-field__msg, .c-auth-form .c-field__msg { color: var(--text); font-size: 15px; }
.c-auth-error, .c-auth-done { font-size: 16px; line-height: 1.5; color: var(--text); padding: 16px 18px; }

/* The invite code: a quiet disclosure under the key (rendered open when the visitor arrived with a code, as live). */
.c-auth-invite > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; list-style: none; cursor: pointer;
  color: var(--text2); font: 600 15px/1.2 var(--sys);
}
.c-auth-invite > summary::-webkit-details-marker { display: none; }
.c-auth-invite > summary svg { width: 16px; height: 16px; color: var(--text3); transition: transform var(--dur-fast) var(--ease-out); }
.c-auth-invite[open] > summary { color: var(--text); }
.c-auth-invite[open] > summary svg { transform: rotate(180deg); }
.c-auth-invite__body { padding-top: 6px; }

/* Discord: a quiet chip, monochrome glyph (no brand hue on a Graphite page). */
.c-auth-discord.g-quiet { min-height: 48px; padding: 0 18px 0 16px; gap: 10px; justify-self: start; }
.c-auth-discord svg { width: 18px; height: 18px; color: var(--text2); }
.c-auth-discord small { font-size: 15px; font-weight: 500; color: var(--text2); }

/* ---------- 2. The note beside the cut: the live rail, or the saved plan ----------
   The server renders one or the other: the saved-plan card (named by its catalog name, never the plan id) when
   /signup carries a known tier, the rail otherwise. If both ever reach the page, the card wins, as on the board. */
.c-auth-rail { text-align: center; }
.c-auth-rail .c-small { margin-top: 12px; }
.c-auth-rail .c-chiprow { justify-content: center; margin-top: 18px; }
.c-auth:has(.c-auth-saved) .c-auth-rail { display: none; }
.c-auth-saved {
  padding: 20px 20px 18px; border-radius: var(--r-card); background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--accent), var(--sh-card); /* a chosen choice's ring, never a fill */
}
@media (min-width: 960px) { .c-auth-saved { padding: 24px 26px 22px; } }
.c-auth-saved__head { display: flex; align-items: center; gap: 10px; }
.c-auth-saved__title { margin-top: 12px; font-size: clamp(22px, .6vw + 19px, 28px); line-height: 1.1; }
.c-auth-saved .c-small { margin-top: 10px; }
.c-auth-saved__plan { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.c-auth-saved__name { font: 800 20px/1.1 var(--disp); font-stretch: var(--disp-stretch); letter-spacing: -.01em; }
.c-auth-saved__plan .c-num { font-size: 20px; margin-left: auto; }
.c-auth-saved__plan .c-cap { flex-basis: 100%; }

/* ---------- 3. Notices that replace a form (reset sent, contact sent) ----------
   The sent state is a server render, as live (the POST re-renders the page): .c-notice.c-auth-done takes the form's
   place, and a .g-quiet.c-auth-sentback chip replaces the quiet "Back to sign in" link. Both use the shared styles
   above and in site.css; nothing here hides or reveals them. */

/* ---------- 4. Sign-in inside the iPhone app's browser sheet: the wordmark and the form, nothing else ---------- */
.c-auth-inapp { min-height: 100svh; }
.c-auth-inapp .c-pagehead { padding-top: 36px; padding-bottom: 56px; }
.c-auth-inapp .c-pageglow { top: -40px; height: 560px; }
.c-auth-inapp .c-pageglow img { opacity: .36; }
.c-auth-inapp__brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.c-auth-inapp__brand img { height: 26px; width: auto; }
.c-auth-inapp__brand .g-eyebrow { padding-left: 12px; box-shadow: inset 1px 0 0 var(--line2); line-height: 22px; }
.c-auth-inapp .c-auth__title { margin-top: 44px; }
.c-auth-inapp .c-auth-alt { margin-top: 6px; }

/* ---------- 5. The signed-in shell: sidebar on desktop, a top bar and a tab bar on phones ---------- */
.c-auth-shell { min-height: 100vh; }
.c-auth-top .c-header__bar { justify-content: space-between; }
.c-auth-side { display: none; }
.c-auth-main { min-width: 0; padding: 28px var(--c-gutter) calc(120px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) {
  .c-auth-top { display: none; }
  .c-auth-app { display: grid; grid-template-columns: 272px minmax(0, 1fr); align-items: start; }
  .c-auth-side {
    position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; overflow-y: auto;
    padding: 20px 14px 28px; border-right: 1px solid var(--line);
  }
  .c-auth-main { padding: 56px clamp(32px, 4.4vw, 72px) 120px; max-width: 1280px; }
}
.c-auth-side > .c-brand { align-self: flex-start; margin: 0 0 26px 10px; }
.c-auth-nav-sec + .c-auth-nav-sec { margin-top: 20px; }
.c-auth-nav-sec > .g-eyebrow { padding: 0 12px; margin-bottom: 4px; }
.c-auth-nav {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 14px;
  color: var(--text2); font: 600 15px/1.2 var(--sys); text-decoration: none;
}
.c-auth-nav > svg { width: 20px; height: 20px; flex: none; color: var(--text3); }
.c-auth-nav:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.c-auth-nav[aria-current="page"] { color: var(--text); background: var(--surface2); }
.c-auth-nav[aria-current="page"] > svg { color: var(--text); }
.c-auth-nav.is-primary { color: var(--text); }
.c-auth-nav.is-primary > svg { color: var(--text2); }
.c-auth-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--surface3);
  color: var(--text); font: 700 12px/1 var(--sys); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.c-auth-nav .c-auth-tag { margin-left: auto; }
.c-auth-fold > summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: 14px;
  list-style: none; cursor: pointer;
}
.c-auth-fold > summary::-webkit-details-marker { display: none; }
.c-auth-fold > summary svg { width: 16px; height: 16px; color: var(--text3); transition: transform var(--dur-fast) var(--ease-out); }
.c-auth-fold[open] > summary svg { transform: rotate(180deg); }
.c-auth-fold > summary:hover { background: rgba(255, 255, 255, .03); }
.c-auth-side .c-lang--pill { margin: 10px 0 0 12px; }

/* Phone tab bar (live: Home, Editor, Videos, More; Voiceover left 2026-11-21, train 54). Solid page colour, never glass (it sits on the page). */
.c-auth-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -1px 0 var(--line);
}
.c-auth-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 54px; padding: 0;
  border: 0; border-radius: 14px; background: transparent; color: var(--text3); font: 600 12px/1 var(--sys); text-decoration: none; cursor: pointer;
}
.c-auth-tab svg { width: 22px; height: 22px; }
.c-auth-tab[aria-current="page"] { color: var(--accent-hi); }
@media (min-width: 960px) { .c-auth-tabs { display: none; } }

/* ---------- 6. App home (a new account): the call to edit, the empty stage, then the tools ---------- */
.c-auth-home { display: grid; gap: 40px; }
@media (min-width: 1180px) { .c-auth-home { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(48px, 5vw, 96px); align-items: start; } }
.c-auth-home .c-h1 { max-width: 11.5em; }
.c-auth-home .c-lede { max-width: 34em; }
.c-auth-uses { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; }
.c-auth-uses .c-cap { color: var(--text3); }
.c-auth-meter { margin-top: 36px; max-width: 560px; padding: 16px 20px 6px; border-radius: var(--r-row); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.c-auth-meter__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding-bottom: 12px; }
.c-auth-meter__head strong { font: 650 16px/1.3 var(--sys); }
.c-auth-meter li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.35; }
.c-auth-meter li > span:first-child { font-weight: 600; }
.c-auth-meter li > span:last-child { color: var(--text2); font-size: 15px; }
.c-auth-meter .c-num { color: var(--text); }
@media (max-width: 559.98px) { .c-auth-meter li { flex-direction: column; align-items: flex-start; } }

/* The empty stage: the editor's 9:16 preview with nothing in it yet (desktop); a card on phones. */
.c-auth-stage { min-width: 0; }
.c-auth-stage__head { margin-bottom: 14px; }
.c-auth-stage__foot { display: flex; justify-content: center; margin-top: 14px; }
.c-auth-empty.c-player {
  width: 100%; height: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 28px 22px 26px;
  border-radius: 24px; text-align: center; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-card);
}
.c-auth-empty.c-player::after { display: none; }
.c-auth-empty__disc { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(244, 245, 246, .09); box-shadow: inset 0 0 0 1px var(--line2); color: var(--text); }
.c-auth-empty__disc svg { width: 24px; height: 24px; }
.c-auth-empty .c-h4 { margin-top: 18px; }
.c-auth-empty .c-small { margin-top: 8px; max-width: 22em; }
@media (min-width: 1180px) {
  .c-auth-stage { width: 300px; }
  .c-auth-empty.c-player {
    --c-ph: 520px; width: calc(var(--c-ph) * 9 / 16); height: var(--c-ph); padding: 28px 24px; border-radius: 30px;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 6px, transparent 6px 12px), var(--surface);
    box-shadow: inset 0 0 0 1px var(--line), 0 22px 50px rgba(0, 0, 0, .5), 0 4px 14px rgba(0, 0, 0, .3);
  }
}
.c-auth-tools { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .c-auth-tools { margin-top: 80px; padding-top: 56px; } }
/* Live group order (Workflow, Assist, More) in the DOM; on wide screens Assist sits beside the two short groups. */
.c-auth-tools__grid { display: grid; gap: 28px; margin-top: 26px; grid-template-areas: "workflow" "assist" "more"; }
@media (min-width: 1180px) { .c-auth-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "workflow assist" "more assist"; gap: 28px 24px; align-items: start; } }
.c-auth-group > .g-eyebrow { margin: 0 0 10px 4px; }
.c-auth-tools .c-row { align-items: center; padding-block: 14px; }
.c-auth-tools .c-row__icon { color: var(--text); }
.c-auth-rowname { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.c-auth-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface2); color: var(--text2); font: 600 12px/1 var(--sys); white-space: nowrap; }

/* ---------- 7. Choose a plan (signed in): the app's plan rows, then the website's card checkout ---------- */
.c-auth-subhead .c-h1 { max-width: 12em; }
.c-auth-subhead .c-lede { max-width: 36em; }
/* Phones: band, rows, the checkout, then the notes. Desktop: band, rows and notes left; the checkout card right. */
.c-auth-sub { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "band" "pick" "pay" "notes"; gap: 0; margin-top: 28px; }
.c-auth-sub__band { grid-area: band; }
.c-auth-pick { grid-area: pick; }
.c-auth-sub__pay { grid-area: pay; margin-top: 22px; min-width: 0; }
.c-auth-sub__notes { grid-area: notes; }
@media (min-width: 960px) {
  .c-auth-sub { grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); grid-template-areas: "band pay" "pick pay" "notes pay"; grid-template-rows: auto auto 1fr; column-gap: clamp(32px, 3.6vw, 56px); margin-top: 40px; align-items: start; }
  .c-auth-sub__pay { margin-top: 0; }
}
.c-auth-sub .c-starts { margin-top: 0; }
.c-auth-pick { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; display: grid; gap: 12px; }
.c-auth-pick__row {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  min-height: 88px; padding: 18px 20px 18px 18px; border-radius: var(--r-card); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow var(--dur-fast) var(--ease-out);
}
.c-auth-pick__row input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.c-auth-pick__radio { position: relative; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line2); }
.c-auth-pick__radio svg { position: absolute; inset: 4px; width: 16px; height: 16px; opacity: 0; color: var(--accent-ink); }
.c-auth-pick__row:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--accent), var(--sh-card); }
.c-auth-pick__row:has(input:checked) .c-auth-pick__radio { background: var(--accent); box-shadow: none; }
.c-auth-pick__row:has(input:checked) .c-auth-pick__radio svg { opacity: 1; }
.c-auth-pick__row:has(input:focus-visible) { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.c-auth-pick__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.c-auth-pick__name { font: 800 22px/1.1 var(--disp); font-stretch: var(--disp-stretch); letter-spacing: -.012em; }
.c-auth-pick__allow { display: block; margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--text2); }
.c-auth-pick__price { text-align: right; }
.c-auth-pick__price .c-num { display: block; font-size: 22px; line-height: 1.1; }
.c-auth-pick__price .c-cap { display: block; margin-top: 2px; }
@media (max-width: 389.98px) { .c-auth-pick__row { padding: 16px 16px 16px 14px; gap: 4px 12px; } .c-auth-pick__name { font-size: 20px; } .c-auth-pick__price .c-num { font-size: 19px; } }
.c-auth-sub .c-plans__note { margin-top: 18px; }
/* Phones: the chosen row already shows the price, so the checkout card opens on its key (it lands above the tab bar
   on a 402 phone), and the Most popular label sits on the row's top edge instead of adding a line. */
@media (max-width: 959.98px) {
  .c-auth-pay > .g-eyebrow, .c-auth-pay > .c-plan__price:not(.c-plan__price--first) { display: none; }
  /* 2026-11-20 (the web review's P2-2): a first month's struck regular price stays on phones; the row shows the regular
     price unstruck, so without it the card would say "$19.99 first month" with no strike and no "Regular price". */
  .c-auth-sub .c-auth-pay .g-key { margin-top: 0; }
  .c-auth-pick { gap: 14px; margin-top: 16px; }
  .c-auth-pick__row { min-height: 80px; padding-block: 16px; }
  .c-auth-pick__top .c-plan__tag { position: absolute; top: -13px; left: 56px; box-shadow: 0 0 0 3px var(--bg); }
  .c-auth-sub .c-starts { padding: 14px 18px; }
}

.c-auth-pay { padding: 24px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--sh-card); }
@media (min-width: 960px) { .c-auth-pay { position: sticky; top: 32px; padding: 30px; } }
.c-auth-pay .c-plan__price { margin-top: 10px; }
.c-auth-pay .g-key { width: 100%; min-height: 56px; margin-top: 22px; font-size: 17px; }
.c-auth-pay .g-key svg { width: 20px; height: 20px; }
.c-auth-pay__fine { margin-top: 12px; }
.c-auth-secure { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.c-auth-secure svg { width: 14px; height: 14px; flex: none; color: var(--text3); }
.c-auth-get { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.c-auth-get ul { display: grid; gap: 10px; margin-top: 14px; }
.c-auth-get li { display: flex; gap: 10px; font-size: 16px; line-height: 1.4; color: var(--text2); }
.c-auth-get li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--text); }
.c-auth-get li b { display: block; color: var(--text); font-weight: 600; }
.c-auth-code { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
/* The chosen plan drives the head and the checkout card. html[data-pick] is runtime state, not a preview switch: the
   plan page's own script copies the checked radio (pre-checked by the server from ?tier=) onto <html> and follows each
   change; until it runs, Creator shows. Kept as the board drew it (2026-11-07). */
html:not([data-pick]) [data-pick-for]:not([data-pick-for="pro"]),
html[data-pick="lookup"] [data-pick-for]:not([data-pick-for="lookup"]),
html[data-pick="pro"] [data-pick-for]:not([data-pick-for="pro"]),
html[data-pick="studio"] [data-pick-for]:not([data-pick-for="studio"]) { display: none !important; }
/* 2026-11-19 (pricing Structure 2): the editing-only plans pick the same way. Only a page rendered with
   BILLING_PLAN_CORE_LIVE on ever sets one of these values. */
html[data-pick="core"] [data-pick-for]:not([data-pick-for="core"]),
html[data-pick="core_plus"] [data-pick-for]:not([data-pick-for="core_plus"]),
html[data-pick="core_unlimited"] [data-pick-for]:not([data-pick-for="core_unlimited"]) { display: none !important; }

/* ---------- 8. Contact ---------- */
.c-auth-contact { align-items: start; row-gap: 40px; }
.c-auth-contact .c-card { padding: 22px; }
@media (min-width: 960px) { .c-auth-contact .c-card { padding: 32px; } }
.c-auth-pair { display: grid; gap: 18px; }
@media (min-width: 640px) { .c-auth-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.c-auth-count { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.c-auth-count .c-num { font-size: 14px; font-weight: 600; color: var(--text2); }
.c-auth-trap { display: none !important; } /* the honeypot, display:none as live */
.c-auth-contact .g-key { width: 100%; min-height: 56px; font-size: 17px; }
@media (min-width: 640px) { .c-auth-contact .g-key { width: auto; padding-inline: 32px; } }
.c-auth-chan .c-list { margin-top: 14px; }
.c-auth-chan .c-row__icon { color: var(--text); }
.c-auth-chan .c-row__chev { width: 18px; height: 18px; }
.c-auth-chan__note { margin-top: 16px; }
.c-auth-chan__note b { color: var(--text2); font-weight: 650; }
.c-auth-contact .c-auth-done { padding: 20px 22px; }
/* The contact section sits flush under the page head, as the board draws it (its inline padding-top: 0), so the
   form starts where the lede ends. A class, not an inline style (Task 15 review Minor 7, 2026-11-08). */
.c-section.c-auth-flush { padding-top: 0; }

/* ---------- 9. The signed-in shell around today's pages (Task 18, 2026-11-09) ----------
   With WEBSITE_V2_SHELL on, templates/base.html draws the chrome of section 5 (sidebar, phone top bar, tab bar, and
   the More sheet the tab bar opens) around EVERY signed-in page, and most of those pages are still drawn by
   static/css/main.css: the video editor, the script writer, settings, the library. These sheets share a document
   with main.css there, and that sets the rules below.
   1. base.html links graphite.css, site.css and this file BEFORE main.css, so main.css wins every element rule both
      name (a, body, img, ::selection, :focus-visible) and today's pages keep their look. What main.css does not
      restate would still reach them: graphite's svg and video display, its text-wrap, site.css's button font and its
      html scrolling. These hand them back to the browser's defaults (revert) everywhere outside .c-auth-v2, the class
      on the v2 chrome and on the two v2 pages. :where() keeps each at the specificity of the rule it undoes, so a
      later rule of main.css or of a page still wins, exactly as it does today.
   2. The tokens main.css and saylessai.css also name on :root (--surface, --accent, --danger, --dur, --dur-fast) are
      re-declared on .c-auth-v2 by base.html from graphite.css itself (site_v2.shell_token_css), so the chrome paints
      in Graphite and nothing here types a value.
   What cannot be handed back: graphite's reduced-motion rule is !important on every element, so under
   prefers-reduced-motion today's pages lose their transitions too, which is what the visitor asked the system for. */
html.c-auth-html { scroll-padding-top: revert; scroll-behavior: revert; -webkit-text-size-adjust: revert; text-size-adjust: revert; }
:where(.c-auth-shell) svg:where(:not(.c-auth-v2 *)),
:where(.c-auth-shell) video:where(:not(.c-auth-v2 *)) { display: revert; max-width: revert; }
:where(.c-auth-shell) :is(p, li, h1, h2, h3, h4):where(:not(.c-auth-v2 *)) { text-wrap: revert; }
:where(.c-auth-shell) button:where(:not(.c-auth-v2 *)) { font: revert; }
/* Today's pages keep their own frame: .page-content pads and centres them as it did inside the old .main-area, so the
   shell's main adds nothing around them (the board's padding is for the two v2 pages). */
.c-auth-main.c-auth-legacy { padding: 0; max-width: none; overflow-x: revert; }
/* A v2 page is drawn on Graphite's page colour (base.html draws it dark: Graphite has no light theme). */
html[data-theme] body.c-auth-shell--v2 { background: var(--bg); }
/* Light theme: today's pages keep it, so the chrome carries its own colours instead of the page's. */
.c-auth-side, .c-auth-top, .c-auth-tabs, .c-auth-more { background-color: var(--bg); color: var(--text); }

/* The tab bar stands down where today's does (main.css: a page's action dock, the manual editor's studio mode). */
body.has-action-dock .c-auth-tabs,
body.me-studio .c-auth-tabs { display: none; }
/* The More tab is the button static/js/site-v2/chrome.js opens the sheet with (.c-menu-btn); in the bar it is a tab. */
.c-auth-tabs .c-menu-btn { width: auto; height: auto; margin: 0; }
/* main.css lifts its floating buttons over the old 64px tab bar up to 900px; this bar shows up to 960px, so the band
   in between needs the same clearance (the 2026-08-31 lesson: a FAB on a tab is a tab that does not work). */
@media (min-width: 901px) and (max-width: 959.98px) {
  .c-auth-shell .upgrade-fab, .c-auth-shell .chat-fab, .c-auth-shell .fb-fab { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
  .c-auth-shell .chat-drawer, .c-auth-shell .fb-drawer { bottom: calc(144px + env(safe-area-inset-bottom)) !important; }
  .c-auth-main.c-auth-legacy { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* The two v2 pages' face (Task 19 verification, 2026-11-09). saylessai.css loads last and sets `body { font-family:
   Instrument Sans }`, so everything on the v2 home and plan page that does not name a face (the plan rows, the allowance
   meters, the freemium gate, the app banner) drew in the old body face beside Archivo headings. The class is on the body
   of those two pages only (base.html _shell_v2_page), so the tool pages the shell wraps keep the face they were built in. */
body.c-auth-shell--v2 { font-family: var(--sys); }

/* The phone top bar's one action: the live top bar's upgrade link, quiet (the page's key is the page's), with the
   live top bar's short label below 421px, as main.css does for it (review M-6, 2026-11-09). */
.c-auth-top .c-auth-upgrade { min-height: 44px; padding: 0 16px; font-size: 15px; }
.c-auth-upgrade__short { display: none; }
@media (max-width: 420.98px) { .c-auth-upgrade__long { display: none; } .c-auth-upgrade__short { display: inline; } }

/* The sidebar's foot (the live chrome's, the board draws none): the plan card, then the account row. */
.c-auth-side > nav { flex: 1 0 auto; }
.c-auth-foot { display: grid; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.c-auth-plan { display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.c-auth-plan__name { font: 650 15px/1.3 var(--sys); color: var(--text); }
.c-auth-plan__meta { font-size: 13px; line-height: 1.45; color: var(--text3); }
.c-auth-plan__link { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 -10px; color: var(--accent-hi); font: 700 12px/1 var(--sys); letter-spacing: .08em; text-decoration: none; }
.c-auth-user { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 4px 0 8px; }
.c-auth-user__avatar { width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 999px; background: var(--surface3); color: var(--text); font: 700 14px/1 var(--sys); }
.c-auth-user__avatar img { width: 100%; height: 100%; object-fit: cover; }
.c-auth-user__meta { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.c-auth-user__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font: 600 15px/1.3 var(--sys); }
.c-auth-user__out { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: var(--text3); cursor: pointer; }
.c-auth-user__out:hover { background: var(--surface2); color: var(--text); }
.c-auth-user__out svg { width: 18px; height: 18px; }
.c-auth-more .c-auth-nav-sec + .c-auth-nav-sec { margin-top: 14px; }
.c-auth-more nav { margin-top: 6px; }

/* App home: the live meter (_allowance_meters.html, shared by four pages and kept byte for byte) drawn as the board's
   .c-auth-meter. The partial writes inline styles, hence !important; its [hidden] stays until its data arrives. */
.c-auth-home [data-allowance-meters] { margin: 36px 0 0 !important; max-width: 560px; padding: 16px 20px 6px !important; border: 0 !important; border-radius: var(--r-row) !important; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.c-auth-home [data-allowance-meters] > div { padding-bottom: 12px; }
.c-auth-home [data-allowance-plan] { font: 650 16px/1.3 var(--sys) !important; }
.c-auth-home [data-allowance-note] { font-size: 14px !important; opacity: 1 !important; color: var(--text3); }
.c-auth-home [data-allowance-list] { margin: 0 !important; gap: 0 !important; }
.c-auth-home [data-allowance-list] li { flex-wrap: wrap; align-items: baseline; gap: 4px 16px !important; padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px !important; line-height: 1.35; }
.c-auth-home [data-allowance-list] li > span:first-child { font-weight: 600; }
.c-auth-home [data-allowance-list] li > span:last-child { color: var(--text2); font-size: 15px; opacity: 1 !important; }
/* The stage with jobs in the works (the live home's Continue rail, in the board's rows), the recent videos, and the
   tool groups' places in the grid (the board's inline grid-area, as classes). */
.c-auth-jobs .c-row { align-items: center; }
.c-auth-jobs .g-eyebrow { display: block; margin-bottom: 4px; }
.c-auth-recent { margin-top: 48px; }
.c-auth-recent__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; }
.c-auth-recent__item { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.c-auth-recent__item img { width: 100%; height: 100%; object-fit: cover; }
.c-auth-recent__item .c-auth-pill { position: absolute; left: 8px; bottom: 8px; text-transform: capitalize; }
.c-auth-group--workflow { grid-area: workflow; }
.c-auth-group--assist { grid-area: assist; }
.c-auth-group--more { grid-area: more; }

/* Choose a plan: the task that sent the account here, a plan no checkout can sell, and the key while it works. */
.c-auth-trigger { max-width: 760px; margin-bottom: 28px; }
.c-auth-trigger p + p { margin-top: 4px; }
.c-auth-unavailable { margin-top: 22px; }
.c-auth-unavailable p + p { margin-top: 6px; }
.c-auth-pay .g-key[disabled] { opacity: .6; cursor: progress; }
