/* ============================================================================
   Projavi — member surface components
   ----------------------------------------------------------------------------
   Second half of the same @layer as projavi-tokens.css. Split out because the
   token file had already reached ~2,340 lines; nothing here declares a token,
   every value resolves against the ones defined there.

   Covers: account settings, people lists, saved watchlist, plans & billing,
   editorial content, and the payment / not-found status surfaces.
   Load order: projavi-tokens.css, then this file.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. SETTINGS SHELL
   Production ships eight separate routes here, four of which (email, phone,
   addresses, links) share ContactInfoLayout — a full-screen layout with its
   own centred title that DROPS the app shell entirely. So a merchant editing
   a phone number loses the rail, the header and every way back except the
   browser button. These become panels inside the shell instead.
   The sub-nav is a real nav of links, not tabs: each panel is its own route.
   -------------------------------------------------------------------------- */
.set-grid {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.set-nav {
  position: sticky; top: calc(var(--head) + 14px);
  display: flex; flex-direction: column; gap: 2px;
}
.set-nav .t-label { padding: 0 10px 8px; }
.set-nav a {
  display: flex; align-items: center; gap: 10px;
  min-height: 42px; padding: 0 11px;
  border-radius: var(--r-input);
  font-size: 13.5px; font-weight: 500; color: var(--fg-2);
  transition: background .16s, color .16s;
}
.set-nav a .chip {
  width: 28px; height: 28px; flex: none; border-radius: var(--r-chip);
  background: var(--chip); color: var(--chip-fg);
  display: grid; place-items: center;
}
.set-nav a .chip svg { width: 15px; height: 15px; }
.set-nav a:hover { background: var(--surface-2); color: var(--fg); text-decoration: none; }
.set-nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.set-nav a[aria-current="page"] {
  background: var(--brand-wash); color: var(--fg); font-weight: 600;
}
.set-nav a[aria-current="page"] .chip { background: var(--brand); color: var(--on-brand); }
.set-nav a[aria-current="page"]:hover { background: var(--brand-wash); }
/* Destructive nav item: tone only on the label, never a red plate — a nav
   item is not a confirmation. */
.set-nav a.dangerous { color: var(--danger-text); }
.set-nav a.dangerous .chip { background: color-mix(in oklch, var(--danger) 16%, transparent); color: var(--danger-text); }
.set-nav a.dangerous:hover { background: color-mix(in oklch, var(--danger) 12%, transparent); color: var(--danger-text); }
.set-nav-sep { height: 1px; background: var(--border); margin: 10px 4px; }

.set-panel { min-width: 0; }
.set-sec { padding: 20px; }
.set-sec + .set-sec { margin-top: 18px; }
.set-sec-h {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}
.set-sec-h h2 { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.set-sec-h p { font-size: 12.5px; color: var(--muted); margin-top: 3px; max-width: 56ch; line-height: 1.5; }

/* Two fixed columns, matching the create-listing form. Container query, not a
   viewport query: the pair count depends on how wide this panel is. */
.set-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.set-fields .wide { grid-column: 1 / -1; }
@container (max-width: 540px) { .set-fields { grid-template-columns: 1fr; } }
.set-panel { container-type: inline-size; }

.set-foot {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 12px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.set-foot .note { margin-right: auto; font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------------------
   2. CONTACT ROWS  (email / phone / addresses / links)
   One row shape for all four, because production already uses one: icon chip,
   name, value, one action. Two things it lacks are added — a primary marker
   and a real edit path. Production's email "Edit" is a mailto: link, so it
   opens the merchant's mail client and edits nothing.
   -------------------------------------------------------------------------- */
.crow-list { display: flex; flex-direction: column; gap: 8px; }
.crow {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 11px 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
}
.crow .ic {
  width: 34px; height: 34px; border-radius: var(--r-chip);
  background: var(--chip); color: var(--chip-fg);
  display: grid; place-items: center;
}
.crow .ic svg { width: 16px; height: 16px; }
.crow .k {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--fg-2);
  text-transform: uppercase; letter-spacing: .06em;
}
.crow .v {
  font-size: 13.5px; color: var(--fg); margin-top: 2px;
  overflow-wrap: anywhere;
}
.crow .acts { display: flex; align-items: center; gap: 6px; }
.crow-primary { border-color: var(--border-soft); background: var(--surface-2); }

/* ---------------------------------------------------------------------------
   3. SWITCH  (role="switch")
   The notification matrix needs a control whose on/off state reads at a
   glance across a 4-column grid. .fswitch is a labelled checkbox row and is
   the wrong shape for a cell.
   -------------------------------------------------------------------------- */
.sw {
  position: relative; flex: none;
  width: 40px; height: 24px; padding: 0;
  border-radius: 999px; cursor: pointer;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: background .18s, border-color .18s;
}
.sw::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--muted);
  transition: transform .18s, background .18s;
}
.sw:hover { border-color: var(--brand); background: var(--surface-3); }
.sw:hover::after { background: var(--fg-2); }
.sw:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sw[aria-checked="true"] { background: var(--brand); border-color: var(--brand); }
.sw[aria-checked="true"]::after { transform: translateX(16px); background: var(--on-brand); }
/* Hover on an ON switch darkens the fill rather than lightening it, so the
   knob's contrast against it never drops. */
.sw[aria-checked="true"]:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.sw[disabled] { opacity: .45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .sw, .sw::after { transition: none; } }

/* ---------------------------------------------------------------------------
   4. NOTIFICATION MATRIX
   12 NotificationTypeEnum rows x 4 ChannelEnum columns. Admin-only types are
   gated on is_admin in production, so they sit in their own group here rather
   than being drawn as member rows they are not.
   -------------------------------------------------------------------------- */
.mx { width: 100%; border-collapse: separate; border-spacing: 0; }
.mx th, .mx td { padding: 0; }
.mx thead th {
  position: sticky; top: var(--head); z-index: 2;
  background: var(--surface);
  padding: 9px 8px 10px;
  font-size: 11px; font-weight: 700; color: var(--fg-2);
  text-transform: uppercase; letter-spacing: .07em;
  text-align: center; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.mx thead th:first-child { text-align: left; padding-left: 2px; }
.mx tbody td {
  padding: 11px 8px; border-bottom: 1px solid var(--border);
  text-align: center; vertical-align: middle;
}
.mx tbody td:first-child { text-align: left; padding-left: 2px; }
.mx tbody tr:last-child td { border-bottom: 0; }
.mx tbody tr:hover td { background: var(--surface-2); }
.mx .mx-name { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.mx .mx-desc { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; max-width: 44ch; }
.mx tbody tr:hover .mx-desc { color: var(--fg-2); }
.mx .sw { margin: 0 auto; }
.mx-group {
  display: flex; align-items: center; gap: 9px;
  margin: 22px 0 6px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.mx-group h3 { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.mx-scroll { overflow-x: auto; }
@media (max-width: 720px) { .mx { min-width: 560px; } }

/* ---------------------------------------------------------------------------
   5. PEOPLE LIST  (followers / following / endorsers / endorsements)
   Production renders a bare User[] with a per-page skeleton and no search.
   The row carries the two facts that make a follower decision possible —
   what they trade and where — plus the reciprocal action.
   -------------------------------------------------------------------------- */
.plist { display: flex; flex-direction: column; }
.prow {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center; gap: 13px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.prow:last-child { border-bottom: 0; }
.prow:hover { background: var(--surface-2); }
.prow .pr-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.prow .pr-name {
  font-size: 14px; font-weight: 600; color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prow .pr-handle { font-size: 12.5px; color: var(--muted); flex: none; }
/* On endorsement rows the name is a real link rather than a row-wide overlay,
   because the row also holds a quote that must stay selectable text. */
.prow .pr-name a { color: inherit; }
.prow .pr-name a:hover { color: var(--fg); text-decoration: underline; }
.prow .pr-name a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.prow:hover .pr-handle { color: var(--fg-2); }
.prow .pr-sub {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 3px; font-size: 12.5px; color: var(--muted);
}
.prow:hover .pr-sub { color: var(--fg-2); }
.prow .pr-sub svg { width: 12.5px; height: 12.5px; flex: none; opacity: .8; }
.prow .pr-acts { display: flex; align-items: center; gap: 7px; }
.prow a.stretch { position: absolute; inset: 0; z-index: 0; }
.prow .pr-body, .prow .pr-ava, .prow .pr-acts { position: relative; z-index: 1; }
@media (max-width: 560px) {
  .prow { grid-template-columns: 40px minmax(0, 1fr); row-gap: 10px; }
  .prow .pr-acts { grid-column: 2; }
}

/* Row action. A 34px button, not the 44px page button: five of these stacked
   down a list would out-weigh the names they act on. Above WCAG 2.5.8's 24px
   floor; the 44px comfort recommendation is not met and that is recorded. */
.pl-act { min-height: 34px; padding: 0 14px; font-size: 13px; white-space: nowrap; }

/* Endorsement rows carry the endorser's own words. Enclosed well, indented
   under the row — deliberately not a left-bar callout. */
.pr-quote {
  grid-column: 2 / -1;
  margin-top: 9px; padding: 10px 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  font-size: 13px; color: var(--fg-2); line-height: 1.55;
}
.pr-quote .who { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }

/* ---------------------------------------------------------------------------
   6. PLANS & BILLING
   -------------------------------------------------------------------------- */
/* Billing interval. A 2-option toggle is the one case a segmented control
   still reads correctly: both options are visible, mutually exclusive, and
   the unselected one is unambiguous. The 3-option verification filter that
   became a select was ambiguous for exactly the opposite reason. */
.bseg {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px; background: var(--surface-3);
  border: 1px solid var(--border); border-radius: var(--r-pill);
}
.bseg button {
  height: 32px; padding: 0 15px; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--fg-2);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .16s, color .16s;
}
.bseg button:hover { background: var(--surface-2); color: var(--fg); }
.bseg button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* brand-strong, not brand: --on-brand on --brand is 3.85:1, which is fine for
   a non-text fill and fails for a 13px label. */
.bseg button[aria-pressed="true"] { background: var(--brand-strong); color: var(--on-brand); }
.bseg button[aria-pressed="true"]:hover { background: var(--brand-hover); color: var(--on-brand); }
.bseg .save {
  margin-left: 5px; font-size: 11px; font-weight: 700;
  color: var(--success-text); letter-spacing: .02em;
}
.bseg button[aria-pressed="true"] .save { color: var(--on-brand); opacity: .88; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); gap: 16px; }
.plan { padding: 20px; display: flex; flex-direction: column; }
.plan-pro { border-color: var(--brand); box-shadow: var(--shadow-lift); }
.plan-flag {
  position: absolute; top: -11px; left: 20px;
  height: 22px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--brand-strong); color: var(--on-brand);
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  display: inline-flex; align-items: center;
}
.plan h3 { font-family: var(--display); font-size: 18px; font-weight: 600; }
.plan .amt {
  display: flex; align-items: baseline; gap: 5px; margin: 12px 0 3px;
  font-family: var(--display); font-variant-numeric: tabular-nums;
}
.plan .amt b { font-size: 29px; font-weight: 600; letter-spacing: -0.02em; }
.plan .amt span { font-size: 13px; color: var(--muted); font-family: var(--body); }
.plan .equiv { font-size: 12px; color: var(--muted); min-height: 17px; }
.plan .lead { margin: 14px 0 9px; font-size: 12.5px; font-weight: 600; color: var(--fg-2); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.plan li { display: flex; gap: 9px; font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.plan li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--success-text); }
.plan .go { margin-top: auto; }
.plan[data-state="current"] { border-color: var(--success); }
.plan-inactive .amt b, .plan-inactive .equiv { color: var(--muted); }

/* Current-plan summary. Facts left, the single renewal action right. */
.bill-top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px; align-items: center; padding: 18px 20px;
}
.bill-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 16px 22px; }
.bill-facts .k { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.bill-facts .v { font-family: var(--display); font-size: 15.5px; font-weight: 600; margin-top: 3px; }
@media (max-width: 700px) { .bill-top { grid-template-columns: 1fr; } }

/* Promotion ledger row */
.prom {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 13px; align-items: center; padding: 12px;
  border-bottom: 1px solid var(--border);
}
.prom:last-child { border-bottom: 0; }
.prom:hover { background: var(--surface-2); }
.prom .plate { width: 56px; height: 56px; border-radius: var(--r-chip); }
.prom .pm-t { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prom .pm-m { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: var(--muted); }
.prom:hover .pm-m { color: var(--fg-2); }
/* Days-left bar: filled encoding, never an outline */
.pm-bar { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 7px; max-width: 260px; }
.pm-bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.pm-bar[data-low="true"] i { background: var(--warning); }

/* Blocked web-subscribe state (can_subscribe_via_web === false) */
.gate {
  display: flex; gap: 14px; padding: 16px 18px;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.gate .ic {
  width: 38px; height: 38px; flex: none; border-radius: var(--r-chip);
  background: color-mix(in oklch, var(--warning) 18%, transparent);
  color: var(--warning-text); display: grid; place-items: center;
}
.gate .ic svg { width: 19px; height: 19px; }
.gate h3 { font-size: 14px; font-weight: 600; }
.gate p { margin-top: 5px; font-size: 12.5px; color: var(--muted); line-height: 1.55; max-width: 62ch; }

/* ---------------------------------------------------------------------------
   6b. SAVED WATCHLIST
   Favourites store SUBCATEGORIES, not posts — FavouriteSubCategories renders
   SubCategoryCard. So the saved screen is a commodity watchlist, and it reuses
   the settled .subcat card rather than inventing a third card.
   The remove control takes the pane's top-right corner; the movement chip
   already owns bottom-left, so the two cannot collide.
   -------------------------------------------------------------------------- */
.sc-save {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lift);
  color: var(--fg); cursor: pointer;
}
.sc-save svg { width: 14px; height: 14px; }
.sc-save:hover { color: var(--fg); border-color: var(--brand); }
.sc-save:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sc-save[aria-pressed="true"] svg { fill: currentColor; }

/* A saved listing the merchant has since taken down. Production has no state
   for this — the card simply stops resolving — so it stays here, legible but
   visibly inactive, with the reason and the date in place of the price.
   The media dims; the text does not, because the text is the explanation. */
.postcard[data-gone="true"] .pc-thumb .plate { filter: grayscale(1) brightness(.72); }
.postcard[data-gone="true"] .pc-title { color: var(--fg-2); }
.pc-gone {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  height: 20px; padding: 0 8px; border-radius: var(--r-pill);
  background: var(--fg); color: var(--sheet);
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.pc-price-gone { color: var(--muted) !important; font-family: var(--body) !important; font-size: 12.5px !important; font-weight: 500 !important; }
.postcard[data-gone="true"] .pc-cat[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------------------
   7. EDITORIAL CONTENT  (about / faq / terms / privacy / cookies / support)
   -------------------------------------------------------------------------- */
.doc-grid { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .doc-grid { grid-template-columns: 1fr; gap: 20px; } }
.doc-nav { position: sticky; top: calc(var(--head) + 14px); display: flex; flex-direction: column; gap: 1px; }
.doc-nav a {
  padding: 8px 11px; border-radius: 9px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  border-left: 2px solid transparent;
}
.doc-nav a:hover { color: var(--fg); background: var(--surface-2); text-decoration: none; }
.doc-nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.doc-nav a[aria-current="page"] { color: var(--fg); font-weight: 600; border-left-color: var(--brand); background: var(--brand-wash); }
.doc-nav a[aria-current="page"]:hover { background: var(--brand-wash); }
@media (max-width: 900px) {
  .doc-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .doc-nav a { border-left: 0; white-space: nowrap; border-radius: var(--r-pill); border: 1px solid var(--border); }
  .doc-nav a[aria-current="page"] { border-color: var(--brand); }
}

.doc { max-width: 74ch; }
.doc h2 { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 30px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 15px; font-weight: 600; margin: 20px 0 7px; }
.doc p { font-size: 14px; line-height: 1.68; color: var(--fg-2); margin-bottom: 12px; }
.doc ul, .doc ol { margin: 0 0 14px 2px; padding-left: 18px; }
.doc li { font-size: 14px; line-height: 1.62; color: var(--fg-2); margin-bottom: 7px; }
.doc a { color: var(--accent); font-weight: 500; }
.doc-stamp {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}

/* FAQ — details/summary, so it works with no script and keyboard-operates
   for free. */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details {
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--r-input); overflow: hidden;
}
.faq summary {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 600; color: var(--fg);
  transition: background .16s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.faq summary .mk {
  margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 7px;
  background: var(--chip); color: var(--chip-fg);
  display: grid; place-items: center; transition: transform .18s;
}
.faq summary .mk svg { width: 13px; height: 13px; }
.faq details[open] summary { background: var(--surface-2); }
.faq details[open] summary .mk { transform: rotate(180deg); background: var(--brand); color: var(--on-brand); }
.faq .ans { padding: 0 14px 14px; font-size: 13.5px; line-height: 1.62; color: var(--fg-2); }
.faq .ans p + p { margin-top: 9px; }
@media (prefers-reduced-motion: reduce) { .faq summary .mk { transition: none; } }

/* ---------------------------------------------------------------------------
   8. STATUS SURFACES  (payment callback, 404)
   Centred, single-column, no rail: both are terminal states a user lands on
   from outside the app, and neither has a sibling to navigate to.
   -------------------------------------------------------------------------- */
.stwrap {
  min-height: calc(100vh - var(--head));
  display: grid; place-items: center;
  padding: 40px 20px 64px;
}
.stcard { width: 100%; max-width: 468px; padding: 32px 28px; text-align: center; }
.stcard .ring {
  width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 22px;
  display: grid; place-items: center;
  background: var(--chip); color: var(--chip-fg);
}
.stcard .ring svg { width: 30px; height: 30px; }
.stcard[data-state="success"] .ring { background: color-mix(in oklch, var(--success) 18%, transparent); color: var(--success-text); }
.stcard[data-state="failed"] .ring { background: color-mix(in oklch, var(--danger) 16%, transparent); color: var(--danger-text); }
.stcard h1 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.stcard > p { margin: 9px auto 0; max-width: 46ch; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.stcard .recap {
  margin: 22px 0 4px; padding: 14px 16px; text-align: left;
  background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--r-input);
  display: grid; gap: 10px;
}
.stcard .recap div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.stcard .recap .k { font-size: 12px; color: var(--muted); }
.stcard .recap .v { font-size: 13px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.stcard .acts { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.st-spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2.5px solid var(--border); border-top-color: var(--brand);
  animation: st-turn .8s linear infinite;
}
@keyframes st-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .st-spin { animation-duration: 2.4s; } }

/* 404 — the searchbar is the useful action, so the suggestions are real
   destinations rather than a generic "go home". */
.st-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }

/* ---------------------------------------------------------------------------
   9. DANGER ZONE
   Production's delete-account asks for a password and a typed confirmation.
   Kept, because it is the correct friction — but the panel is enclosed and
   tonal rather than a red-filled block, which would read as already-failed.
   -------------------------------------------------------------------------- */
.dz { border-color: color-mix(in oklch, var(--danger) 34%, var(--border)); }
.dz .set-sec-h h2 { color: var(--danger-text); }
.dz-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.dz-list li { display: flex; gap: 9px; font-size: 13px; color: var(--fg-2); line-height: 1.55; }
.dz-list li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--danger-text); }
.btn-danger {
  background: var(--danger); color: var(--on-danger); border: 1px solid transparent;
}
.btn-danger:hover { background: color-mix(in oklch, var(--danger) 88%, black); color: var(--on-danger); }
.btn-danger:focus-visible { outline: 2px solid var(--danger); outline-offset: 2px; }
.btn-danger[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------------------------------------------------------------------------
   10. SETTINGS RESPONSIVE
   Below the rail breakpoint the sub-nav becomes a scrolling chip row. It is
   not collapsed into a select: eight destinations with a visible current
   position is the whole point of the surface.
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .set-grid { grid-template-columns: 1fr; gap: 18px; }
  .set-nav {
    position: static; flex-direction: row; gap: 6px;
    overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none;
  }
  .set-nav::-webkit-scrollbar { display: none; }
  .set-nav .t-label, .set-nav-sep { display: none; }
  .set-nav a {
    min-height: 38px; padding: 0 13px; white-space: nowrap; flex: none;
    border: 1px solid var(--border); border-radius: var(--r-pill);
    background: var(--surface);
  }
  .set-nav a .chip { width: 22px; height: 22px; border-radius: 7px; }
  .set-nav a .chip svg { width: 13px; height: 13px; }
  .set-nav a[aria-current="page"] { border-color: var(--brand); }
}
@media (max-width: 560px) {
  .set-sec { padding: 16px 14px; }
  .crow { grid-template-columns: 30px minmax(0, 1fr); row-gap: 9px; }
  .crow .ic { width: 30px; height: 30px; }
  .crow .acts { grid-column: 2; }
  .set-foot { flex-wrap: wrap; }
  .set-foot .btn { flex: 1; }
}

/* ---------------------------------------------------------------------------
   11. CONFIRMATION DIALOG
   Shared by the unblock, end-promotion and review confirmations. Was defined
   locally in two of the three screens that use it, which left the third
   rendering an unstyled native dialog.
   -------------------------------------------------------------------------- */
dialog.sheetdlg { border: 0; padding: 0; background: none; max-width: 460px; width: calc(100% - 32px); }
dialog.sheetdlg::backdrop { background: color-mix(in oklch, black 58%, transparent); backdrop-filter: blur(2px); }
dialog.sheetdlg .card { padding: 22px; }
dialog.sheetdlg h2 { font-family: var(--display); font-size: 17px; font-weight: 600; }
dialog.sheetdlg p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.55; }
dialog.sheetdlg .row { display: flex; gap: 10px; margin-top: 20px; }
dialog.sheetdlg .row .btn { flex: 1; }

/* Tab row above a bordered card: without this the row sits flush on the card's
   top edge and reads as part of it. */
.pl-tabs { margin-bottom: 16px; }

/* Grouping wrapper inside the subcategory card's detail column. Carried no
   rule at all, so it was markup claiming a style it did not have. */
.sc-id { display: block; min-width: 0; }
