/* ==========================================================================
   CineVerse — account surface v2. CANDIDATE sheet for /account/assets/account.css
   Design lane t_aad921bb · base release/cineverse-site-v2-union-t_3b22d668 @ a235e60
   ==========================================================================

   What this file is
   -----------------
   The whole private surface of a CineVerse site (rail + content + footer), in
   one cacheable stylesheet, exactly like the sheet it replaces. It is served
   by `modules/account/index.js` at `/account/assets/account.css`.

   Where the values come from (defect D7: two visual languages on one domain)
   -------------------------------------------------------------------------
   Nothing here invents a colour or a space. Every token is read with a
   fallback:

     var(--brand, #8b5cf6)   —— site root, public/assets/css/site.css
     var(--cv-surface, #12141a) —— Card & Surface block, cineverse.css (t_672d2b3a)

   The fallback is the shipped value, so this sheet renders correctly whether
   or not the page also loads site.css / cineverse.css, and when it does load
   them it follows them (one language, one source). The single new token family
   is `--acct-*` — geometry and state colours that belong to this surface only.

   Card geometry is the Card & Surface primitive, not a fourth "card" (C7):
   `.cv-card` supplies the shell, `.cv-chip` the action pill, `.cv-pill` the
   label pill, `.cv-empty` the empty state, `--cv-radius`/`--cv-border`/
   `--cv-surface` the surface. The account sheet adds ONE documented modifier,
   `.cv-card--panel`, because the brief fixes the account card radius at 12px
   while the film card is 18px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Account tokens. Geometry and state only; every colour is inherited.
   -------------------------------------------------------------------------- */
:root {
  /* Shell geometry ------------------------------------------------------ */
  --acct-rail-w: 268px;          /* the rail's fixed track                   */
  --acct-rail-gap: 40px;         /* rail → reading column                    */
  --acct-shell-max: 1180px;      /* = .site-shell, so the rail lines up with
                                    the header of every other page           */
  --acct-radius: 12px;           /* cards (brief §2.4: 12–14px)              */
  --acct-radius-row: 10px;       /* rail rows, pagination buttons            */
  --acct-row-h: 44px;            /* every row and every control = touch floor */
  --acct-row-gap: 2px;           /* between rail rows                        */

  /* Spacing — the Card & Surface scale, not a second one ---------------- */
  --acct-pad-card: var(--cv-sp-5, 24px);
  --acct-pad-row-y: var(--cv-sp-3, 12px);
  --acct-pad-row-x: var(--cv-sp-4, 16px);
  --acct-gap: var(--cv-sp-4, 16px);

  /* Type scale — one step down from the catalogue (brief: H1 ~28–32px) -- */
  --acct-title: clamp(24px, 2.2vw, 30px);   /* surface H1: 30px @1440      */
  --acct-title-sm: 1.25rem;                 /* 20px — the sign-in card H1  */
  --acct-lead: .9375rem;                    /* 15px — the line under H1    */
  --acct-label: .9375rem;                   /* 15px — rail + card row label*/
  --acct-value: .9375rem;                   /* 15px — the value column     */
  --acct-meta: var(--cv-label, .8125rem);   /* 13px — descriptions, meta   */
  --acct-micro: .75rem;                     /* 12px — group labels, pills  */

  /* State colours — all three derived from the site palette ------------- */
  --acct-ok: var(--brand-2, #22d3ee);
  --acct-ok-surface: rgba(34, 211, 238, .12);
  --acct-warn: #f9c07a;
  --acct-warn-surface: rgba(249, 192, 122, .10);
  --acct-warn-line: rgba(249, 192, 122, .45);
  --acct-danger: var(--hot, #f973a7);
  --acct-danger-text: #ffb8d2;
  --acct-danger-surface: rgba(249, 115, 167, .10);
  --acct-danger-line: rgba(249, 115, 167, .45);
  --acct-active-surface: rgba(139, 92, 246, .16);
  --acct-active-line: var(--cv-border-hover, rgba(139, 92, 246, .55));
  --acct-hover-surface: rgba(255, 255, 255, .05);

  /* The single gradient CTA — the same one as .button.primary in site.css */
  --acct-cta: linear-gradient(135deg, var(--brand, #8b5cf6), var(--hot, #f973a7));
  --acct-cta-shadow: 0 12px 28px rgba(139, 92, 246, .32);
}

/* --------------------------------------------------------------------------
   2. Page shell, head, footer
   -------------------------------------------------------------------------- */
.acct {
  display: block;
  width: min(var(--acct-shell-max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) 0 0;
}

@media (max-width: 560px) {
  .acct {
    width: min(100% - 24px, var(--acct-shell-max));
  }
}

/* Under 900px the shell carries the gutter as padding instead of as width, so
   the two rows that scroll sideways (the sections and the shortcuts) can bleed
   edge to edge without ever widening the document. */
@media (max-width: 899px) {
  .acct {
    width: 100%;
    padding-inline: var(--cv-sp-4, 16px);
  }
}

@media (min-width: 900px) {
  .acct {
    display: grid;
    grid-template-columns: var(--acct-rail-w) minmax(0, 1fr);
    gap: var(--acct-rail-gap);
    align-items: start;
  }
}

/* A surface with no rail (sign-in, sign-up, recovery) uses the same shell class
   for its gutters and its controls, but never becomes a two-column grid: the
   form is the page. Declared after the grid rule above, so it wins. */
.acct-solo-wrap {
  display: block;
}

/* One explicit track with a 0 minimum (kept from the shipped sheet): a card
   holding one long unbreakable token must stay inside its column and let the
   token elide, never push the document sideways. */
.acct-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--cv-sp-5, 24px);
  align-content: start;
  min-width: 0;
}

/* The surface name is the page's only H1 and it is 30px, not 56px (D5). */
.acct-head {
  display: grid;
  gap: var(--cv-sp-1, 4px);
  min-width: 0;
}

.acct-head h1 {
  margin: 0;
  font-size: var(--acct-title);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.acct-head p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-lead);
}

/* The shortcut bar (brief §2.5): actions, never a second navigation. It is
   built from the Card & Surface `.cv-chip` primitive, so it is already a 44px
   target with the site's hover and aria-current treatment. */
.acct-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cv-sp-2, 8px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.acct-shortcuts .cv-chip {
  padding: 0 .875rem;
  color: var(--muted, #a4a8b8);
}

.acct-shortcuts .cv-chip:hover {
  color: var(--text, #f5f7fb);
}

.acct-shortcuts .cv-chip svg {
  flex: 0 0 auto;
}

/* Phone: the shortcut bar withdraws (deviation, spec §9.2). The segmented
   control below the identity already carries every destination inside one
   thumb-scroll, and the only non-navigation action (Confirm email) lives in
   the banner — a third band of pills would only repeat them. */
@media (max-width: 899px) {
  .acct-shortcuts {
    display: none;
  }
}

/* Footer inside the account surface (brief §2.6): the site's legal links, one
   row on a wide viewport, wrapped on a phone, plus the way back. */
.acct-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cv-sp-2, 8px) var(--cv-sp-5, 24px);
  margin-top: var(--cv-sp-6, 32px);
  padding: var(--cv-sp-5, 24px) 0 var(--cv-sp-6, 32px);
  border-top: 1px solid var(--line, rgba(255, 255, 255, .11));
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-micro);
}

.acct-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cv-sp-2, 8px) var(--cv-sp-4, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.acct-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--acct-row-h);
  color: var(--muted, #a4a8b8);
  text-decoration: none;
}

.acct-footer a:hover,
.acct-footer a:focus-visible {
  color: var(--text, #f5f7fb);
}

.acct-footer .acct-footer-back {
  margin-left: auto;
  gap: var(--cv-sp-2, 8px);
  color: var(--text, #f5f7fb);
  font-weight: 700;
}

@media (max-width: 899px) {
  .acct-footer .acct-footer-back {
    margin-left: 0;
  }
}

/* --------------------------------------------------------------------------
   3. The rail — brand, identity, sections, one sign-out
   -------------------------------------------------------------------------- */
.acct-rail {
  display: grid;
  gap: var(--cv-sp-3, 12px);
  align-content: start;
  min-width: 0;
  padding: var(--cv-sp-4, 16px);
  border: 1px solid var(--cv-border, #2a2f3a);
  border-radius: var(--acct-radius);
  background: var(--cv-surface, #12141a);
}

@media (min-width: 900px) {
  .acct-rail {
    position: sticky;
    top: 24px;
  }
}

/* D2: the brand appears exactly once, here. The lockup carries the name and,
   only when it says something the name does not already say, the credits. */
.acct-brand {
  display: flex;
  align-items: center;
  gap: var(--cv-sp-3, 12px);
  min-width: 0;
  min-height: var(--acct-row-h);
  color: var(--text, #f5f7fb);
  text-decoration: none;
}

.acct-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--cv-surface, #15171e);
  box-shadow: none;
}

.acct-brand-mark svg {
  display: block;
  width: 19px;
  height: 19px;
}

.acct-brand-text {
  display: grid;
  min-width: 0;
}

.acct-brand-text strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.acct-brand-text small {
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-micro);
}

/* Identity block (D2): avatar with an edit affordance, name, one-line email,
   email-status pill. No second rendering of the brand anywhere in it. */
.acct-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--cv-sp-3, 12px);
  align-items: center;
  min-width: 0;
  padding-top: var(--cv-sp-3, 12px);
  border-top: 1px solid var(--cv-border, #2a2f3a);
}

/* The avatar IS the link to the profile, so the target is the whole 44px
   avatar and the pencil is its decoration, not a second, tiny link. */
.acct-avatar-link {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.acct-avatar-link:focus-visible {
  outline: 2px solid var(--cv-border-focus, #22d3ee);
  outline-offset: 2px;
}

.acct-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cv-surface-2, #1b1f2a);
  border: 1px solid var(--cv-border, #2a2f3a);
  color: var(--text, #f5f7fb);
  font-size: .9375rem;
  font-weight: 800;
  object-fit: cover;
}

/* The edit affordance is a real link to the profile, 28px hit area inside the
   avatar's own 44px row — it never becomes the only way to reach the profile. */
.acct-avatar-edit {
  position: absolute;
  inset-block-end: -2px;
  inset-inline-end: -2px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--cv-surface, #12141a);
  background: var(--brand, #8b5cf6);
  color: #fff;
  pointer-events: none;
}

.acct-avatar-edit svg {
  display: block;
  width: 12px;
  height: 12px;
}

.acct-identity-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.acct-identity-text strong {
  font-size: .9375rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* D6: the address elides on one line instead of wrapping in the middle of a
   word. `title` carries the whole address for a pointer; screen readers read
   the full text because the element is not aria-hidden. */
.acct-identity-text .acct-email {
  display: block;
  min-width: 0;
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-micro);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-identity-status {
  justify-self: start;
  margin-top: 2px;
}

/* Sections: 44px rows, one accent pill on the current one, `aria-current`. */
.acct-navscroll {
  display: grid;
  gap: var(--cv-sp-2, 8px);
  min-width: 0;
}

.acct-nav {
  display: grid;
  gap: var(--acct-row-gap);
  min-width: 0;
}

.acct-nav-group {
  margin: var(--cv-sp-2, 8px) 0 0;
  padding: 0 var(--cv-sp-3, 12px);
  color: var(--muted, #a4a8b8);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.acct-nav ul {
  display: grid;
  gap: var(--acct-row-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.acct-nav a,
.acct-signout {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--cv-sp-3, 12px);
  min-height: var(--acct-row-h);
  padding: 0 var(--cv-sp-3, 12px);
  border: 1px solid transparent;
  border-radius: var(--acct-radius-row);
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-label);
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.acct-nav a svg,
.acct-signout svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.acct-nav a:hover,
.acct-signout:hover {
  color: var(--text, #f5f7fb);
  background: var(--acct-hover-surface);
}

.acct-nav a:focus-visible,
.acct-signout:focus-visible {
  outline: 2px solid var(--cv-border-focus, #22d3ee);
  outline-offset: 2px;
}

/* The active row (D1, D8): a filled pill plus a left accent bar plus
   `aria-current="page"` on the element itself. */
.acct-nav a[aria-current="page"] {
  border-color: var(--acct-active-line);
  background: linear-gradient(90deg, var(--acct-active-surface), rgba(139, 92, 246, .05));
  color: var(--text, #f5f7fb);
  font-weight: 700;
}

.acct-nav a[aria-current="page"] svg {
  color: #c4b5fd;
}

.acct-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  inset-block: 10px;
  inset-inline-start: -1px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--brand, #8b5cf6), var(--brand-2, #22d3ee));
}

/* D3: one sign-out for the whole surface, drawn as a row of the same list and
   pushed to the rail's foot on a wide viewport. */
.acct-nav-foot {
  display: grid;
  gap: var(--acct-row-gap);
  margin-top: var(--cv-sp-2, 8px);
  padding-top: var(--cv-sp-3, 12px);
  border-top: 1px solid var(--cv-border, #2a2f3a);
}

.acct-signout {
  color: var(--muted, #a4a8b8);
}

.acct-signout:hover {
  border-color: var(--acct-danger-line);
  background: var(--acct-danger-surface);
  color: var(--acct-danger-text);
}

/* Phone: the rail reflows into a compact identity bar, the sections become one
   horizontally scrollable segmented control, and the sign-out is the last
   segment after a divider. Nothing here pushes the content down. */
@media (max-width: 899px) {
  .acct-rail {
    gap: var(--cv-sp-3, 12px);
    padding: 0 0 var(--cv-sp-3, 12px);
    border: 0;
    border-bottom: 1px solid var(--cv-border, #2a2f3a);
    border-radius: 0;
    background: none;
  }

  .acct-identity {
    padding-top: 0;
    border-top: 0;
  }

  .acct-navscroll {
    display: flex;
    align-items: stretch;
    gap: var(--cv-sp-2, 8px);
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--cv-sp-4, 16px));
    padding: 2px var(--cv-sp-4, 16px);
    -webkit-overflow-scrolling: touch;
  }

  .acct-navscroll::-webkit-scrollbar {
    display: none;
  }

  .acct-nav {
    display: flex;
    gap: var(--cv-sp-2, 8px);
  }

  .acct-nav-group {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .acct-nav ul {
    display: flex;
    gap: var(--cv-sp-2, 8px);
  }

  /* The group boundary that the labels carried on a wide viewport is carried
     here by the divider between the two lists (the phone keeps the grouping). */
  .acct-nav ul + .acct-nav-group + ul {
    padding-left: var(--cv-sp-2, 8px);
    border-left: 1px solid var(--cv-border, #2a2f3a);
  }

  .acct-nav a,
  .acct-signout {
    gap: var(--cv-sp-2, 8px);
    padding: 0 var(--cv-sp-3, 12px);
    white-space: nowrap;
  }

  .acct-nav a[aria-current="page"]::before {
    inset-block: auto;
    inset-inline: 10px;
    inset-block-end: -3px;
    width: auto;
    height: 3px;
    border-radius: 3px 3px 0 0;
  }

  .acct-nav-foot {
    margin: 0;
    padding: 0 0 0 var(--cv-sp-2, 8px);
    border: 0;
    border-left: 1px solid var(--cv-border, #2a2f3a);
  }

  .acct-nav-foot .acct-signout {
    min-width: var(--acct-row-h);
    padding: 0 var(--cv-sp-3, 12px);
  }

  .acct-nav-foot .acct-signout span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* The phone marks the row that continues past the edge, so a partly visible
   pill reads as "scroll", never as a broken label. */
@media (max-width: 899px) {
  .acct-navscroll {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
}

/* --------------------------------------------------------------------------
   4. Cards and rows — the Card & Surface primitive, plus one account modifier
   -------------------------------------------------------------------------- */
/* `.cv-card` gives the shell (flex column, gap, min-width 0) and the
   direction-C surface treatment (surface + 1px border + radius + overflow).
   The account panel is the same object at the brief's 12px. */
.cv-card--panel {
  display: block;
  gap: 0;
  border-radius: var(--acct-radius);
}

.acct-card-head {
  display: grid;
  gap: var(--cv-sp-1, 4px);
  padding: var(--acct-pad-row-y) var(--acct-pad-row-x);
  border-bottom: 1px solid var(--cv-border, #2a2f3a);
  background: linear-gradient(180deg, var(--cv-surface-2, #1b1f2a), var(--cv-surface, #12141a));
}

.acct-card-head h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.acct-card-head p {
  margin: 0;
  max-width: 68ch;
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-meta);
}

/* One row: label + description on the left, value and action on the right,
   hairline separators, 44px minimum so every row is a target.

   Three tracks, two of them `auto`: a row may carry a value, an action, or
   both. An unused `auto` track measures 0, so the value lands in the second
   column and the action in the third without the markup having to know which
   other one is present. */
.acct-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--cv-sp-2, 8px) var(--cv-sp-4, 16px);
  min-height: 60px;
  padding: var(--acct-pad-row-y) var(--acct-pad-row-x);
  border-top: 1px solid var(--cv-border, #2a2f3a);
}

.cv-card--panel > .acct-row:first-child,
.acct-card-head + .acct-row {
  border-top: 0;
}

.acct-row-label {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: var(--acct-label);
  font-weight: 650;
}

.acct-row-label small {
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-meta);
  font-weight: 400;
}

/* The value column: numbers and dates on one line, in tabular figures so a
   column of them lines up. */
.acct-row-value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--cv-sp-2, 8px);
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  color: var(--text, #f5f7fb);
  font-size: var(--acct-value);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-align: right;
}

.acct-row-value--muted {
  color: var(--muted, #a4a8b8);
}

/* The long value is the inner span of the value cell, so the status pill beside
   it stays whole while the address itself elides (D6). */
.acct-row-value--long {
  max-width: 24ch;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-row-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--cv-sp-2, 8px);
  justify-self: end;
  min-width: 0;
  max-width: 100%;
}

/* A row that carries a form control instead of a value: the control takes the
   whole second column and drops under the label on a phone. */
.acct-row--field {
  grid-template-columns: minmax(0, 1fr);
}

.acct-row--field .acct-row-control {
  display: grid;
  gap: var(--cv-sp-1, 4px);
  min-width: 0;
}

@media (min-width: 620px) {
  .acct-row--field {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    align-items: start;
  }
}

/* Phone: a row stacks — label, then its value, then its action, all left
   aligned. A squeezed three-track row with a 41-character address inside it is
   what broke the measured mobile capture (D6); nothing here depends on a
   column narrower than the surface. Declared after the value/action rules so
   it wins over their `justify-self: end`. */
@media (max-width: 760px) {
  .acct-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .acct-row-value,
  .acct-row-action {
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    text-align: left;
  }

  .acct-row-value--long {
    max-width: 100%;
  }
}

/* Card foot: the surface's own primary action, right-aligned (D4: the primary
   button is the action the visitor came for, not a status). */
.acct-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--cv-sp-3, 12px);
  padding: var(--acct-pad-row-y) var(--acct-pad-row-x);
  border-top: 1px solid var(--cv-border, #2a2f3a);
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
}

.acct-foot .acct-foot-note {
  margin: 0 auto 0 0;
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-meta);
}

@media (max-width: 560px) {
  .acct-foot {
    justify-content: stretch;
  }

  .acct-foot .button {
    flex: 1 1 auto;
  }

  .acct-foot .acct-foot-note {
    flex: 1 1 100%;
    margin: 0;
  }
}

/* --------------------------------------------------------------------------
   5. Buttons — the site's own .button, plus a real disabled state
   -------------------------------------------------------------------------- */
.acct .button {
  min-height: var(--acct-row-h);
  font-size: .875rem;
}

.acct .button.ghost {
  border: 1px solid var(--cv-border, #2a2f3a);
  background: transparent;
  color: var(--muted, #a4a8b8);
}

.acct .button.ghost:hover {
  color: var(--text, #f5f7fb);
  border-color: var(--acct-active-line);
}

.acct .button[aria-disabled="true"],
.acct .button:disabled {
  cursor: not-allowed;
  opacity: .5;
  box-shadow: none;
}

.acct .button:focus-visible,
.acct a:focus-visible,
.acct select:focus-visible,
.acct input:focus-visible,
.acct summary:focus-visible {
  outline: 2px solid var(--cv-border-focus, #22d3ee);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   6. Status: pills, banners, notices, empty states
   -------------------------------------------------------------------------- */
/* A status pill is a `.cv-pill` (the Card & Surface label primitive) with one
   of three meanings. Colour is never the only carrier: the text says it too. */
.cv-pill--ok {
  border-color: rgba(34, 211, 238, .45);
  background: var(--acct-ok-surface);
  color: var(--acct-ok);
}

.cv-pill--warn {
  border-color: var(--acct-warn-line);
  background: var(--acct-warn-surface);
  color: var(--acct-warn);
}

.cv-pill--danger {
  border-color: var(--acct-danger-line);
  background: var(--acct-danger-surface);
  color: var(--acct-danger-text);
}

/* The banner (D4): a state with its own action, on the surface's own accent,
   never a bare primary button lost among others. */
.acct-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--cv-sp-3, 12px);
  padding: var(--acct-pad-row-y) var(--acct-pad-row-x);
  border: 1px solid var(--acct-warn-line);
  border-radius: var(--acct-radius);
  background: var(--acct-warn-surface);
}

.acct-banner svg {
  flex: 0 0 auto;
  color: var(--acct-warn);
}

.acct-banner-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.acct-banner-text strong {
  color: var(--text, #f5f7fb);
  font-size: var(--acct-label);
}

.acct-banner-text p {
  margin: 0;
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-meta);
  max-width: 72ch;
}

@media (max-width: 720px) {
  .acct-banner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .acct-banner .button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* A quiet note: the honest "this cannot be done yet" line (mail transport). */
.acct-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--cv-sp-2, 8px);
  margin: 0;
  padding: var(--cv-sp-3, 12px) var(--acct-pad-row-x);
  border-top: 1px solid var(--cv-border, #2a2f3a);
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-meta);
}

.acct-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.acct-note a {
  color: var(--brand-2, #22d3ee);
  font-weight: 700;
}

/* The site's own alert/notice lines, kept and retuned to the shared tokens. */
.acct-alert {
  margin: 0;
  padding: var(--cv-sp-3, 12px) var(--acct-pad-row-x);
  border: 1px solid var(--acct-danger-line);
  border-radius: var(--acct-radius);
  background: var(--acct-danger-surface);
  color: var(--acct-danger-text);
  font-size: var(--acct-meta);
}

.acct-notice {
  margin: 0;
  padding: var(--cv-sp-3, 12px) var(--acct-pad-row-x);
  border: 1px solid var(--acct-active-line);
  border-radius: var(--acct-radius);
  background: var(--acct-active-surface);
  color: var(--text, #f5f7fb);
  font-size: var(--acct-meta);
}

/* --------------------------------------------------------------------------
   7. Forms and controls
   -------------------------------------------------------------------------- */
.acct-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.acct-field > span {
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-micro);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.acct input[type="text"],
.acct input[type="email"],
.acct input[type="password"],
.acct input[type="search"],
.acct select,
.acct textarea {
  width: 100%;
  min-height: var(--acct-row-h);
  padding: 0 var(--cv-sp-3, 12px);
  border: 1px solid var(--cv-border, #2a2f3a);
  border-radius: var(--acct-radius-row);
  background: var(--cv-surface-2, #1b1f2a);
  color: var(--text, #f5f7fb);
  font: inherit;
  font-size: .9375rem;
}

.acct textarea {
  padding: var(--cv-sp-3, 12px);
  min-height: 96px;
  resize: vertical;
}

.acct input::placeholder {
  color: var(--muted, #a4a8b8);
  opacity: 1;
}

.acct input:focus,
.acct select:focus {
  border-color: var(--cv-border-focus, #22d3ee);
}

.acct input[aria-invalid="true"],
.acct textarea[aria-invalid="true"] {
  border-color: var(--acct-danger);
}

.acct input:disabled,
.acct select:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.acct .acct-hint {
  margin: 0;
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-micro);
}

.acct .acct-error {
  margin: 0;
  color: #fca5a5;
  font-size: var(--acct-micro);
  font-weight: 600;
}

.acct select {
  appearance: none;
  padding-inline-end: var(--cv-sp-6, 32px);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

/* A control that carries a button next to it (file inputs, sort, resend). */
.acct-control {
  display: flex;
  align-items: center;
  gap: var(--cv-sp-2, 8px);
  flex-wrap: wrap;
}

/* The file input is the browser's own, restyled as a chip: the label is the
   control, the filename is a muted line beside it. No external asset. */
.acct input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.acct-file {
  display: inline-flex;
  align-items: center;
  gap: var(--cv-sp-2, 8px);
  min-height: var(--acct-row-h);
  padding: 0 var(--cv-sp-3, 12px);
  border: 1px dashed var(--cv-border, #2a2f3a);
  border-radius: var(--acct-radius-row);
  color: var(--text, #f5f7fb);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}

.acct-file:hover {
  border-color: var(--acct-active-line);
}

.acct input[type="file"]:focus-visible + .acct-file {
  outline: 2px solid var(--cv-border-focus, #22d3ee);
  outline-offset: 2px;
}

/* A switch: on/off, never a checkbox pretending to be a preference. */
.acct-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--cv-sp-3, 12px);
  min-height: var(--acct-row-h);
  cursor: pointer;
}

.acct-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.acct-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  border: 1px solid var(--cv-border, #2a2f3a);
  border-radius: 999px;
  background: var(--cv-surface-2, #1b1f2a);
  transition: background-color 150ms ease, border-color 150ms ease;
}

.acct-switch-track::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted, #a4a8b8);
  transition: transform 150ms ease, background-color 150ms ease;
}

.acct-switch input:checked + .acct-switch-track {
  border-color: rgba(34, 211, 238, .5);
  background: var(--acct-ok-surface);
}

.acct-switch input:checked + .acct-switch-track::after {
  transform: translateX(18px);
  background: var(--acct-ok);
}

.acct-switch input:focus-visible + .acct-switch-track {
  outline: 2px solid var(--cv-border-focus, #22d3ee);
  outline-offset: 2px;
}

.acct-switch input:disabled + .acct-switch-track {
  opacity: .5;
  cursor: not-allowed;
}

.acct-switch-label {
  font-size: var(--acct-label);
}

/* --------------------------------------------------------------------------
   8. Favourites — a real table with real sort controls (D5, D8)
   -------------------------------------------------------------------------- */
.acct-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cv-sp-3, 12px);
  padding: var(--acct-pad-row-y) var(--acct-pad-row-x);
  border-bottom: 1px solid var(--cv-border, #2a2f3a);
  background: linear-gradient(180deg, var(--cv-surface-2, #1b1f2a), var(--cv-surface, #12141a));
}

.acct-toolbar .acct-count {
  margin: 0 auto 0 0;
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-meta);
  font-variant-numeric: tabular-nums;
}

.acct-sort {
  display: flex;
  align-items: center;
  gap: var(--cv-sp-2, 8px);
}

.acct-sort label {
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-micro);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.acct-sort select {
  width: auto;
  min-width: 15rem;
}

@media (max-width: 620px) {
  .acct-sort,
  .acct-sort select {
    width: 100%;
    min-width: 0;
  }
}

.acct-table {
  width: 100%;
  border-collapse: collapse;
}

.acct-table th,
.acct-table td {
  padding: var(--cv-sp-3, 12px) var(--acct-pad-row-x);
  border-bottom: 1px solid var(--cv-border, #2a2f3a);
  text-align: left;
  vertical-align: middle;
  font-size: var(--acct-value);
}

.acct-table thead th {
  padding-block: var(--cv-sp-2, 8px);
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-micro);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.acct-table tbody tr:hover {
  background: var(--acct-hover-surface);
}

.acct-table th[data-align="end"],
.acct-table td[data-align="end"] {
  text-align: right;
}

.acct-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.acct-poster {
  width: 44px;
  height: 66px;
  border-radius: 8px;
  border: 1px solid var(--cv-border, #2a2f3a);
  object-fit: cover;
  background: var(--cv-surface-2, #1b1f2a);
}

.acct-title {
  display: grid;
  gap: var(--cv-sp-1, 4px);
  min-width: 0;
}

.acct-title a {
  color: var(--text, #f5f7fb);
  font-weight: 700;
  text-decoration: none;
}

.acct-title a:hover {
  color: var(--brand-2, #22d3ee);
}

.acct-title-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cv-sp-1, 4px);
}

.acct-table .acct-year,
.acct-table .acct-date {
  color: var(--muted, #a4a8b8);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The score is the Card & Surface badge, in flow instead of on a poster: same
   value-is-not-decoration rule, same star. */
.acct-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border: 1px solid var(--cv-border, #2a2f3a);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: var(--text, #f5f7fb);
  font-size: var(--acct-micro);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.acct-score svg {
  flex: 0 0 auto;
  color: var(--brand-2, #22d3ee);
}

.acct-score--none {
  border-style: dashed;
  color: var(--muted, #a4a8b8);
  font-weight: 600;
}

/* Pagination: real buttons, one page marked for assistive tech. */
.acct-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cv-sp-2, 8px);
  justify-content: center;
  margin: 0;
  padding: var(--cv-sp-3, 12px) var(--acct-pad-row-x);
  list-style: none;
}

.acct-pager li {
  display: flex;
}

.acct-pager a,
.acct-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--acct-row-h);
  min-height: var(--acct-row-h);
  padding: 0 var(--cv-sp-2, 8px);
  border: 1px solid transparent;
  border-radius: var(--acct-radius-row);
  color: var(--muted, #a4a8b8);
  font-size: .875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.acct-pager a:hover {
  border-color: var(--acct-active-line);
  color: var(--text, #f5f7fb);
}

.acct-pager [aria-current="page"] {
  border-color: var(--acct-active-line);
  background: var(--acct-active-surface);
  color: var(--text, #f5f7fb);
}

.acct-pager [aria-disabled="true"] {
  opacity: .45;
}

.acct-pager .acct-pager-gap {
  min-width: 1.5rem;
  justify-content: center;
  color: var(--muted, #a4a8b8);
}

/* Phone: the table becomes a list of blocks, every cell keeping its label. */
@media (max-width: 760px) {
  .acct-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .acct-table,
  .acct-table tbody,
  .acct-table tr,
  .acct-table td {
    display: block;
    width: 100%;
  }

  .acct-table tr {
    position: relative;
    padding: var(--cv-sp-3, 12px) 0 var(--cv-sp-3, 12px) 68px;
    border-bottom: 1px solid var(--cv-border, #2a2f3a);
  }

  .acct-table td {
    border: 0;
    padding: 0;
  }

  .acct-table td[data-align="end"] {
    text-align: left;
  }

  .acct-table td[data-block="poster"] {
    position: absolute;
    inset-block-start: var(--cv-sp-3, 12px);
    inset-inline-start: var(--acct-pad-row-x);
    width: 44px;
    padding: 0;
  }

  .acct-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted, #a4a8b8);
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .acct-table td[data-block="poster"]::before,
  .acct-table td[data-block="title"]::before {
    content: none;
  }

  .acct-table td[data-block="title"] {
    padding-bottom: var(--cv-sp-1, 4px);
  }

  .acct-table td[data-block="actions"] {
    position: absolute;
    inset-block-end: var(--cv-sp-3, 12px);
    inset-inline-end: var(--acct-pad-row-x);
    width: auto;
  }

  .acct-table .acct-title a {
    font-size: var(--acct-value);
  }
}

/* --------------------------------------------------------------------------
   9. Sessions
   -------------------------------------------------------------------------- */
.acct-device {
  display: flex;
  align-items: flex-start;
  gap: var(--cv-sp-2, 8px);
}

.acct-device svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--muted, #a4a8b8);
}

.acct-device-text {
  display: grid;
  gap: var(--cv-sp-1, 4px);
  min-width: 0;
}

.acct-device-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--cv-sp-2, 8px);
}

.acct-device-head strong {
  font-size: var(--acct-value);
}

.acct-device-meta {
  margin: 0;
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-meta);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .acct-row:has(.acct-device) {
    grid-template-columns: minmax(0, 1fr);
  }

  .acct-row:has(.acct-device) .acct-row-action {
    justify-self: stretch;
  }

  .acct-row:has(.acct-device) .acct-row-action .button {
    flex: 1 1 auto;
  }
}

/* --------------------------------------------------------------------------
   10. Sign-in / sign-up pages (no rail: the form is the page)
   -------------------------------------------------------------------------- */
.acct-solo {
  width: min(28rem, 100%);
  margin: 0 auto;
  padding: 0;
}

/* The brand lockup that opens a rail-less surface: the sidebar's `.acct-brand`
   element, centred over the card with one gap below it. Reused, not re-drawn, so a
   signed-out visitor meets the same mark and name they would see after signing in
   (one brand, said once, D2). */
.acct-solo .acct-brand {
  justify-content: center;
  margin: 0 0 var(--cv-sp-6, 32px);
}

.acct-solo .cv-card--panel {
  padding: var(--acct-pad-card);
}

/* Wave 2 — the two-step "Sign in / Create account" strip and the calming note on
   the rail-less auth card. Each tab is a link to the route it names (the two
   forms are their own server pages), and the current one is marked. */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin: 0 0 var(--cv-sp-5, 24px);
  background: var(--cv-ink-2, #0f1117);
  border-radius: 12px;
}
.auth-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 9px;
  color: var(--cv-muted, #a4a8b8);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.auth-tabs a[aria-current="page"] {
  background: var(--cv-surface-2, #1b1f2a);
  color: var(--cv-text, #f5f7fb);
}
.auth-tabs a:focus-visible {
  outline: 2px solid var(--cv-border-focus, #8b5cf6);
  outline-offset: -2px;
}
.auth-note {
  margin: var(--cv-sp-5, 24px) 0 0;
  padding: 13px 15px;
  border: 1px solid var(--cv-border, #2a2f3a);
  border-radius: 11px;
  background: var(--cv-surface-2, #1b1f2a);
  color: var(--cv-muted, #a4a8b8);
  font-size: 12.5px;
  line-height: 1.55;
}

.acct-solo-head {
  display: grid;
  gap: var(--cv-sp-2, 8px);
  margin-bottom: var(--cv-sp-4, 16px);
}

.acct-solo-head h1 {
  margin: 0;
  font-size: var(--acct-title-sm);
  line-height: 1.25;
}

.acct-solo-head p {
  margin: 0;
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-meta);
}

.acct-form {
  display: grid;
  gap: var(--cv-sp-3, 12px);
}

.acct-form .button.primary {
  min-height: var(--acct-row-h);
  border: 0;
  background: var(--acct-cta);
  box-shadow: var(--acct-cta-shadow);
  color: #fff;
}

.acct-form .acct-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cv-sp-2, 8px) var(--cv-sp-4, 16px);
  margin: 0;
  font-size: var(--acct-meta);
}

.acct-form .acct-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--acct-row-h);
  color: var(--brand-2, #22d3ee);
  font-weight: 700;
  text-decoration: none;
}

/* The floating-label field, kept from the shipped sheet (it is the one thing
   on this surface that already worked) and re-coloured to the shared tokens. */
.acct .field {
  position: relative;
  display: block;
  margin: 0;
}

.acct .field input {
  width: 100%;
  min-height: 56px;
  padding: 24px 14px 9px;
  border: 1px solid var(--cv-border, #2a2f3a);
  border-radius: var(--acct-radius-row);
  background: var(--cv-surface-2, #1b1f2a);
  color: var(--text, #f5f7fb);
  font-size: .9375rem;
}

.acct .field input:focus {
  border-color: var(--brand-2, #22d3ee);
  outline: 2px solid var(--cv-border-focus, #22d3ee);
  outline-offset: 1px;
}

.acct .field label {
  position: absolute;
  inset-inline-start: 15px;
  inset-block-start: 0;
  display: block;
  margin: 0;
  color: var(--muted, #a4a8b8);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: none;
  transform: translateY(17px);
  transform-origin: left top;
  transition: transform .15s ease, color .15s ease;
}

.acct .field input:focus + label,
.acct .field input:not(:placeholder-shown) + label,
.acct .field input:-webkit-autofill + label {
  transform: translateY(5px) scale(.72);
  color: var(--brand-2, #22d3ee);
}

.acct .field input::placeholder {
  color: transparent;
}

.acct .field input[aria-invalid="true"] {
  border-color: var(--acct-danger);
}

.acct .field input[aria-invalid="true"] + label {
  color: #fca5a5;
}

.acct-divider {
  display: flex;
  align-items: center;
  gap: var(--cv-sp-3, 12px);
  margin: var(--cv-sp-4, 16px) 0;
  color: var(--muted, #a4a8b8);
  font-size: var(--acct-micro);
}

.acct-divider::before,
.acct-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--cv-border, #2a2f3a);
}

.acct-social {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--cv-sp-2, 8px);
}

.acct-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--cv-sp-2, 8px);
  min-height: var(--acct-row-h);
  padding: 0 var(--cv-sp-2, 8px);
  border: 1px solid var(--cv-border, #2a2f3a);
  border-radius: var(--acct-radius-row);
  color: var(--text, #f5f7fb);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.acct-social a:hover {
  border-color: var(--acct-active-line);
  color: var(--brand-2, #22d3ee);
}

/* The neutral provider placeholder: the shipped page keeps its same-origin
   provider icons; the mockup never copies a trademarked mark. */
.acct-social-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--cv-border, #2a2f3a);
  border-radius: 6px;
  color: var(--muted, #a4a8b8);
  font-size: .75rem;
  font-weight: 800;
}

@media (max-width: 520px) {
  .acct-social {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   11. Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .acct *,
  .acct *::before,
  .acct *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
/* --------------------------------------------------------------------------
   12. Shipped-page additions (card t_0336f416)
   --------------------------------------------------------------------------
   What the delivered sheet needs ONCE IT IS A PAGE. Every entry below is a fact
   about the document that the mockups drew with an inline `style` attribute
   (which the CineVerse CSP - `style-src 'self'`, no `'unsafe-inline'`, no nonce -
   drops in the browser) or a rule the shipped page needs and the candidate sheet
   does not carry. No token and no Card and Surface primitive is redefined here:
   `--acct-*` and `.acct-*` are this surface's own family.
   -------------------------------------------------------------------------- */

/* The box model the account shell is measured in. The site root sets it globally
   (`* { box-sizing: border-box }`), and the document always loads that sheet - but a
   measured 390px run with the account sheet ALONE showed `.acct` growing to 406px
   (its `padding-inline` added to `width: 100%` under `content-box`), i.e. a 24px
   sideways scroll on the served page. Declaring it inside the surface's own scope
   makes the sheet self-sufficient and is a no-op wherever the root sheet is loaded. */
.acct,
.acct *,
.acct *::before,
.acct *::after {
  box-sizing: border-box;
}

/* The two avatar sizes used outside the rail. The mockups drew them with
   `style="width:36px…"` / `style="width:48px…"`, which a strict CSP drops. */
.acct-avatar--sm {
  width: 36px;
  height: 36px;
  font-size: .75rem;
}

.acct-avatar--md {
  width: 48px;
  height: 48px;
  font-size: 1.0625rem;
}

/* A long value (the visitor's own address) elides inside its cell instead of
   widening the row: `max-width` is the ceiling, `min-width: 0` is what lets a
   flex item shrink below its content at all. */
.acct-row-value--long {
  max-width: 22ch;
  min-width: 0;
}

/* Screen-reader-only text: the poster column head, the "no score yet" fallback
   and the "release year not recorded" fallback all need it, and the candidate
   sheet styles the caption and the hidden rows inline instead. */
.acct .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The consent row on the create-account page: the box and its own text on one
   flex line, so a bare text node can never push the box above the words. */
.acct-check {
  display: flex;
  align-items: flex-start;
  gap: var(--cv-sp-2, 8px);
  min-height: var(--acct-row-h);
  font-size: var(--acct-label);
}

.acct-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 12px 0 0;
  padding: 0;
  accent-color: var(--brand, #8b5cf6);
}

.acct-check span {
  align-self: center;
}

/* The actions row of a rail-less page (an action plus its alternative), and the
   inline avatar + name pair a value cell draws. */
.acct .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cv-sp-2, 8px);
}

.acct-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--cv-sp-3, 12px);
  min-width: 0;
}

/* The rail-less frame still carries the `.acct` scope every form rule is written
   under, and it must never inherit the >=900px two-column grid: a sign-in form is
   one column at every width. */
.acct--solo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  padding: clamp(16px, 4vw, 40px);
}

/* The Card and Surface shell is declared under the site's surface scope
   (`.cineverse .cv-card`: one class + one class = 0,2,0). A modifier that has to win
   against it - the account panel's 12px radius, against the film card's 18px -
   therefore carries the same weight, `.acct` plus the modifier, and the account
   sheet is the last sheet the document loads. */
.acct .cv-card--panel {
  display: block;
  gap: 0;
  border-radius: var(--acct-radius);
}

/* Two sort orders the platform cannot answer yet (title, release year, community
   score) are offered as DISABLED options rather than omitted: the surface names the
   orders the design specifies and is explicit about which of them this runtime can
   honour today. */
.acct-sort option[disabled] {
  color: var(--muted, #a4a8b8);
}

/* A status line inside a row can carry the visitor's OWN address: the profile tab
   says which address a verification code went to. That token has no break
   opportunity, so its min-content width became the width of the row's control cell
   and the whole document measured 398px at a 390px viewport (measured on the served
   document by this card's own overflow test — `.acct-notice` inside
   `.acct-row-control`). The sheet already breaks the two cells that carry an address
   by design (`.acct-row-value`, `.acct-device-meta`); a status line is the same kind
   of content, so it gets the same rule. `anywhere` and not `break-word`: only
   `anywhere` also stops the token contributing its own width to min-content. */
.acct-notice {
  overflow-wrap: anywhere;
}
