/* ==========================================================================
   SERPHeroes — inner page styles
   Loaded after style.css; relies on the same design tokens.
   ========================================================================== */

/* ---------- Active nav state ---------- */
.nav a[aria-current="page"] { color: var(--brand-600); background: color-mix(in srgb, var(--brand-500) 10%, transparent); font-weight: 600; }
[data-theme="dark"] .nav a[aria-current="page"] { color: var(--brand-300); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding-block: clamp(36px, 6vw, 68px) clamp(28px, 4vw, 48px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -60% -10% auto -10%; height: 460px; z-index: -2;
  background:
    radial-gradient(44% 60% at 20% 30%, color-mix(in srgb, var(--brand-400) 20%, transparent), transparent 70%),
    radial-gradient(40% 55% at 80% 10%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 68%);
  filter: blur(8px);
}
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-top: 16px; }
.page-hero__sub { margin-top: 18px; font-size: clamp(16px, 1.7vw, 18.5px); color: var(--text-2); max-width: 62ch; }
.page-hero__sub a { color: var(--brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.page-hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero--tight { padding-bottom: clamp(16px, 2vw, 24px); }

/* A tight hero already says "less room here", but .section still contributes
   its full clamp(64px, 9vw, 112px) on top — about 136px of nothing between the
   heading and the content. Scoped to the tight variant on purpose: the
   marketing pages use a plain .page-hero where that space is the design.
   Mirrors what .page-hero + .page-body does for the WordPress side. */
.page-hero--tight + .section { padding-top: clamp(20px, 3vw, 36px); }

/* ---------- Breadcrumbs ---------- */
/* list-style:none is required: flexing an <ol> blockifies its items but they
   stay `display: list-item`, so the 1. 2. markers would still render. */
.crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-3);
  list-style: none; margin: 0; padding: 0;
}
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--brand-600); }
.crumbs [aria-current="page"] { color: var(--text-2); font-weight: 600; }

/* ---------- "Learn more" section link ---------- */
.section-more { margin-top: clamp(28px, 4vw, 40px); text-align: center; }
.section-more a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brand-600);
  padding: 10px 18px; border-radius: var(--r-full); border: 1px solid transparent;
  transition: border-color .18s, background-color .18s, gap .18s;
}
.section-more a:hover { border-color: color-mix(in srgb, var(--brand-500) 40%, transparent); background: color-mix(in srgb, var(--brand-500) 8%, transparent); gap: 12px; }
[data-theme="dark"] .section-more a { color: var(--brand-300); }

/* ---------- Metric cards ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.metric-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.metric-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--brand-600); }
[data-theme="dark"] .metric-card h3 { color: var(--brand-300); }
.metric-card p { font-size: 14.5px; color: var(--text-3); }

/* ---------- Comparison table ---------- */
table.compare { min-width: 620px; }
.compare th { background: var(--bg-soft); }
.compare th small { display: block; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--text-3); margin-top: 3px; }
.compare td { font-size: 14px; }
.compare td:first-child { font-weight: 600; }
.compare td.yes { color: var(--pos); font-weight: 600; }
.compare td.no { color: var(--text-3); }

/* ---------- Numbered steps ---------- */
/* Same blockification caveat as .crumbs — this is an <ol>, so kill the markers. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.step__n { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--brand-500); letter-spacing: .1em; }
.step h3 { font-size: 17px; margin: 10px 0 8px; }
.step p { font-size: 14.5px; color: var(--text-3); }

/* ==========================================================================
   Team — editorial roster
   Rows rather than equal-height cards: bios differ a lot in length, and rows
   absorb that difference instead of leaving dead space under the short ones.
   ========================================================================== */

.roster-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.roster-head h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 16px; }
.roster-head p { margin-top: 16px; color: var(--text-3); font-size: clamp(16px, 1.6vw, 17.5px); max-width: 56ch; }

.roster { list-style: none; margin: 0; padding: 0; }

.roster__row {
  display: grid;
  grid-template-columns: 52px 168px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding-block: clamp(34px, 4.5vw, 52px);
}
.roster__row + .roster__row { border-top: 1px solid var(--border); }
.roster__row:first-child { padding-top: clamp(8px, 1.5vw, 16px); }
.roster__row:last-child { padding-bottom: clamp(8px, 1.5vw, 16px); }

/* Editorial index numeral */
.roster__index {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; color: var(--text-3); padding-top: 6px;
  display: block; position: relative;
}
.roster__index::after {
  content: ""; display: block; width: 22px; height: 1px; margin-top: 12px;
  background: var(--border-strong);
}
.roster__row--lead .roster__index { color: var(--brand-500); }
.roster__row--lead .roster__index::after { background: color-mix(in srgb, var(--brand-500) 50%, transparent); }

/* Portrait: the source images already carry a soft cream disc, so the halo
   below extends that instead of boxing it in. */
.roster__portrait {
  margin: 0; position: relative; width: 132px; justify-self: start;
}
.roster__row--lead .roster__portrait { width: 168px; }

.roster__portrait::before {
  content: ""; position: absolute; inset: -14%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--brand-400) 20%, transparent), transparent 66%);
  opacity: .9; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.roster__portrait::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; z-index: 2;
  border: 1px solid color-mix(in srgb, var(--brand-500) 20%, transparent);
  pointer-events: none; transition: inset .4s var(--ease), border-color .4s var(--ease);
}
.roster__portrait img {
  position: relative; z-index: 1; width: 100%; height: auto;
  border-radius: 50%; transition: transform .5s var(--ease);
}
.roster__row:hover .roster__portrait img { transform: scale(1.035); }
.roster__row:hover .roster__portrait::before { opacity: 1; transform: scale(1.06); }
.roster__row:hover .roster__portrait::after { inset: -13px; border-color: color-mix(in srgb, var(--brand-500) 34%, transparent); }

[data-theme="dark"] .roster__portrait::before { opacity: .45; }
[data-theme="dark"] .roster__portrait::after { border-color: color-mix(in srgb, var(--brand-400) 26%, transparent); }

/* Body */
.roster__body { padding-top: 2px; }
.roster__body h3 { font-size: clamp(20px, 2.3vw, 25px); letter-spacing: -.03em; }
.roster__row--lead .roster__body h3 { font-size: clamp(24px, 3vw, 32px); }
.roster__role {
  margin-top: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: var(--brand-600);
}
[data-theme="dark"] .roster__role { color: var(--brand-300); }
.roster__bio {
  margin-top: 16px; font-size: 15.5px; line-height: 1.78; color: var(--text-2); max-width: 62ch;
}
.roster__row--lead .roster__bio { font-size: 16.5px; max-width: 64ch; }

/* Founder credentials strip */
.roster__facts { display: flex; flex-wrap: wrap; margin: 26px 0 0; }
.roster__facts > div { padding-right: clamp(24px, 3vw, 40px); }
.roster__facts > div + div {
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 1px solid var(--border);
}
.roster__facts dt {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px;
}
.roster__facts dd {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(24px, 2.8vw, 30px); letter-spacing: -.035em; line-height: 1;
}
.roster__facts dd span { color: var(--brand-500); }
/* Founder links, on the role line: brand-tinted icon buttons */
.roster__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 7px; }
.roster__meta .roster__role { margin-top: 0; }
.roster__social { display: flex; gap: 8px; margin: 0; padding: 0 0 0 16px; list-style: none; border-left: 1px solid var(--border); }
.roster__social a {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  color: var(--brand-600); background: color-mix(in srgb, var(--brand-500) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-500) 22%, transparent); transition: all .18s;
}
.roster__social a:hover { color: #fff; background: var(--brand-500); border-color: var(--brand-500); transform: translateY(-2px); }
[data-theme="dark"] .roster__social a { color: var(--brand-300); }
[data-theme="dark"] .roster__social a:hover { color: #1a1208; background: var(--brand-300); border-color: var(--brand-300); }
.roster__social a:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 35%, transparent); }
@media (prefers-reduced-motion: reduce) { .roster__social a, .roster__social a:hover { transition: none; transform: none; } }


/* Tablet: index and portrait stack in the left column */
@media (max-width: 900px) {
  .roster__row { grid-template-columns: 132px minmax(0, 1fr); gap: 24px 28px; }
  .roster__index  { grid-column: 1; grid-row: 1; padding-top: 0; }
  .roster__portrait { grid-column: 1; grid-row: 2; }
  .roster__body   { grid-column: 2; grid-row: 1 / span 2; }
  .roster__row--lead .roster__portrait { width: 132px; }
  .roster__facts > div:first-child { padding-left: 0; }
}

/* Mobile: single column, portrait leads */
@media (max-width: 560px) {
  .roster__row { grid-template-columns: 1fr; gap: 14px; }
  .roster__index    { grid-column: 1; grid-row: 1; }
  .roster__portrait { grid-column: 1; grid-row: 2; width: 116px; }
  .roster__row--lead .roster__portrait { width: 132px; }
  .roster__body     { grid-column: 1; grid-row: 3; }
  .roster__facts { gap: 18px 0; }
  .roster__facts > div { padding-right: 20px; }
  .roster__facts > div + div { padding-left: 20px; }
  .roster__facts dd { font-size: 22px; }
}

/* ---------- Two column + values ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.value { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; }
.value h3 { font-size: 15px; margin-bottom: 6px; }
.value p { font-size: 13.5px; color: var(--text-3); }

/* ---------- Legal / prose ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
@media (max-width: 880px) { .legal { grid-template-columns: 1fr; } }
.toc {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm);
}
@media (max-width: 880px) { .toc { position: static; } }
.toc h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 7px; }
.toc li { counter-increment: toc; font-size: 13.5px; }
.toc li::before { content: counter(toc) ". "; color: var(--text-3); font-family: var(--font-mono); font-size: 11.5px; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--brand-600); }

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(20px, 2.4vw, 24px); margin-top: 38px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); font-size: 15.5px; line-height: 1.75; }
.prose p { margin-top: 14px; }
/* Keep these as block lists — `display: grid` would blockify the items and
   drop the bullets/numbers entirely. */
.prose ul, .prose ol { margin-top: 14px; padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { display: list-item; }
.prose li + li { margin-top: 9px; }
.prose li::marker { color: var(--brand-500); }
.prose a { color: var(--brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .prose a { color: var(--brand-300); }
.prose strong { color: var(--text); }
.prose__related { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-3); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__form-wrap h2 { font-size: clamp(22px, 3vw, 28px); }
.contact__lead { color: var(--text-3); margin-top: 8px; font-size: 15px; }

.form { margin-top: 26px; display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.field label span[aria-hidden] { color: var(--brand-500); }
.field .opt { font-weight: 500; color: var(--text-3); font-size: 12.5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); font-size: 15px;
  font-family: var(--font-body); transition: border-color .16s, background-color .16s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-500); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--neg); background: var(--neg-soft); }
.field__err { font-size: 13px; color: var(--neg); font-weight: 600; }
.form__status { font-size: 14px; min-height: 20px; }
.form__status.is-err { color: var(--neg); font-weight: 600; }
.form__status.is-ok { color: var(--pos); font-weight: 600; }

.contact__side { display: grid; gap: 14px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.side-card p { font-size: 14px; color: var(--text-3); }
.side-card__link { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--brand-600); word-break: break-all; }
.side-card__link:hover { text-decoration: underline; }
[data-theme="dark"] .side-card__link { color: var(--brand-300); }
.side-links { display: grid; gap: 9px; margin-top: 6px; }
.side-links a { font-size: 14.5px; color: var(--text-2); }
.side-links a:hover { color: var(--brand-600); }

/* ---------- Roadmap ---------- */
.roadmap-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 15px; border-radius: var(--r-full); border: 1px solid var(--border-strong);
  background: var(--surface); cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text-2);
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--brand-500); color: var(--brand-600); }
.chip[aria-pressed="true"] { background: var(--brand-500); border-color: var(--brand-500); color: #fff; box-shadow: var(--shadow-brand); }
.roadmap-count { font-size: 14px; color: var(--text-3); }
.roadmap-count b { color: var(--text); font-family: var(--font-display); }

.roadmap { display: grid; gap: 14px; }
.rm-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px 24px; box-shadow: var(--shadow-sm); border-left: 3px solid var(--border-strong);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.rm-item:hover { transform: translateX(3px); box-shadow: var(--shadow-md); }
.rm-item[data-priority="high"] { border-left-color: var(--brand-500); }
.rm-item[data-priority="medium"] { border-left-color: var(--gold); }
.rm-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.rm-item__head h2 { font-size: 18px; margin-right: auto; }
.rm-item p { font-size: 14.5px; color: var(--text-3); max-width: 76ch; }

/* ---------- Sitemap page ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 56px); }
.sitemap-col h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.sitemap-col ul { display: grid; gap: 14px; }
.sitemap-col li { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sitemap-col li a { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; }
.sitemap-col li a:hover { color: var(--brand-600); }
.sitemap-col li span { display: block; font-size: 13.5px; color: var(--text-3); margin-top: 3px; }

/* The CTA band used to lean on the footer's margin for its lower spacing.
   The footer no longer has one, so the section owns that space itself. */
.cta-section { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 8vw, 92px); }

/* ---------- Misc inner-page bits ---------- */
.chart-note { margin-top: 16px; font-size: 12.5px; color: var(--text-3); }
.f-card h3 a:hover { color: var(--brand-600); }
.f-card p a { color: var(--brand-600); font-weight: 600; }

/* A button is not body copy. Wrapping one in a <p> to get spacing put it
   inside .f-card p a above, which is more specific than .btn--primary and
   repainted white button labels orange-on-orange. Buttons sit directly in the
   card and take their spacing from here instead. */
.f-card .btn { margin-top: 16px; }
.f-card p a:hover { text-decoration: underline; }
.footer__meta a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.footer__meta a:hover { color: var(--brand-600); }

/* ==========================================================================
   Auth pages (/auth/signup, /auth/signin)
   --------------------------------------------------------------------------
   Accounts are not open yet, so these collect an email and nothing else — no
   password field to invent, nothing to lose. Two columns on the signup page
   (the case, then the form), one centred card on sign-in.
   ========================================================================== */
.auth { padding-block: clamp(40px, 6vw, 84px); background: var(--bg-soft); border-bottom: 1px solid var(--border); }

.auth__wrap {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.auth__wrap--narrow { grid-template-columns: minmax(0, 520px); justify-content: center; }
@media (max-width: 860px) { .auth__wrap { grid-template-columns: 1fr; } }

.auth__intro h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.025em;
  margin: 16px 0 0;
}
.auth__intro .hl { color: var(--brand-500); }

.auth__lede { margin-top: 16px; color: var(--text-2); font-size: 16.5px; line-height: 1.7; max-width: 52ch; }

.auth__points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.auth__points li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.auth__points .tick { color: var(--brand-500); font-weight: 800; flex: none; }

.auth__meanwhile { margin-top: 26px; font-size: 14.5px; color: var(--text-3); line-height: 1.65; }
.auth__meanwhile a { color: var(--brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.auth__meanwhile--card { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
[data-theme="dark"] .auth__meanwhile a { color: var(--brand-300); }

.auth__card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 36px); box-shadow: var(--shadow-lg);
}
.auth__card--solo { text-align: left; }

.auth__card-title {
  font-family: var(--font-display); font-weight: 800; font-size: 23px;
  letter-spacing: -0.015em; margin: 0;
}
.auth__card--solo .auth__card-title { margin-top: 16px; }
.auth__card-title--lg { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.18; }

.auth__card-sub { margin: 9px 0 0; color: var(--text-3); font-size: 14.5px; line-height: 1.65; }

.auth__form { margin-top: 22px; }
.auth__form .btn { margin-top: 6px; }
/* The status line reserves 20px even when empty; inside the card that reads as
   a gap, so only give it room once it has something to say. */
.auth__form .form__status { min-height: 0; margin: 12px 0 0; }
.auth__form .form__status:empty { margin: 0; }

/* ---------- Password controls ----------
   Built on .field so the input keeps the same height, radius, border and
   focus ring as every other field on the site; only the affordances inside
   and beneath it are new. */

/* The toggle anchors to the input, not to .field--pw: the meter and the rule
   list live in that same container, so anchoring to it dropped the button
   down beside the checklist. */
.field__control { position: relative; display: grid; }
.field--pw input { padding-right: 46px; }

.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-sm); background: none;
  color: var(--text-3); cursor: pointer;
  transition: color .15s, background-color .15s;
}
.pw-toggle:hover { color: var(--text); background: var(--bg-soft); }
.pw-toggle:focus-visible { outline: 2px solid var(--brand-500); outline-offset: -2px; }

/* Four segments rather than one filling bar: a bar reads as a percentage of
   some maximum nobody has defined, while segments read as steps. */
.pw-meter { display: grid; gap: 6px; margin-top: 9px; }
.pw-meter__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-meter__seg { height: 4px; border-radius: var(--r-full); background: var(--border); transition: background-color .2s var(--ease); }
.pw-meter__label { font-size: 12.5px; font-weight: 600; color: var(--text-3); }

.pw-meter[data-score="1"] .pw-meter__seg:nth-child(-n+1) { background: var(--neg); }
.pw-meter[data-score="2"] .pw-meter__seg:nth-child(-n+2) { background: var(--brand-400); }
.pw-meter[data-score="3"] .pw-meter__seg:nth-child(-n+3) { background: var(--brand-500); }
.pw-meter[data-score="4"] .pw-meter__seg { background: var(--pos); }
.pw-meter[data-score="1"] .pw-meter__label { color: var(--neg); }
.pw-meter[data-score="4"] .pw-meter__label { color: var(--pos); }

/* The requirements stay visible while typing and tick off as they are met,
   rather than appearing as errors after a failed submit. */
.pw-rules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.pw-rules li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-3); transition: color .15s;
}
.pw-rules li svg { flex: none; opacity: .45; transition: opacity .15s, color .15s; }
.pw-rules li[data-met="true"] { color: var(--text-2); }
.pw-rules li[data-met="true"] svg { opacity: 1; color: var(--pos); }

/* ---------- Social sign-in ---------- */
.auth__divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; font-size: 12.5px; color: var(--text-3);
}
.auth__divider::before, .auth__divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.btn--social {
  width: 100%; gap: 10px;
  background: var(--surface); border-color: var(--border-strong); color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn--social:hover { border-color: var(--brand-500); background: var(--bg-soft); }
.btn--social svg, .btn--social img { width: 18px; height: 18px; flex: none; }
.auth__social { display: grid; gap: 10px; margin-top: 22px; }
.auth__social + .auth__divider { margin-bottom: 0; }

.auth__fineprint { margin: 14px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

.auth__alt {
  margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 14.5px; color: var(--text-3);
}
.auth__alt a { color: var(--brand-600); font-weight: 600; }
[data-theme="dark"] .auth__alt a { color: var(--brand-300); }

/* Honeypot: off-screen rather than display:none, because some bots skip
   fields that are hidden outright. People never see or tab into it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Waitlist confirmation. Replaces the form on success — a small line of status
   text under a large button reads as "nothing happened" to most people. */
.auth__done { text-align: center; padding: 6px 0 2px; }

.auth__done-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--r-full);
  background: var(--pos-soft); color: var(--pos); margin-bottom: 16px;
}

.auth__done h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  letter-spacing: -0.015em; margin: 0;
}

.auth__done p {
  margin: 10px 0 20px; font-size: 14.5px; line-height: 1.65; color: var(--text-3);
}

.auth__done strong { color: var(--text); font-weight: 700; }

/* ---------- Admin ----------
   Built from the pieces the marketing site already has — .f-card for panels,
   table.data for the grid, .badge for state — so the admin area looks like the
   product rather than a bolted-on back office. */

.admin-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.admin-head p { margin: 6px 0 0; color: var(--text-3); font-size: 14.5px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.admin-tabs { display: flex; gap: 6px; margin-bottom: 24px; box-shadow: inset 0 -1px 0 var(--border); overflow-x: auto; scrollbar-width: none; }
/* Four tabs outgrow a phone; the strip scrolls sideways instead of widening the page.
   The base line is an inset shadow, not a border, so a scrolling box does not clip
   the active tab's underline that sits on it. */
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a { flex: none; white-space: nowrap; }
.admin-tabs a {
  padding: 10px 14px; font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  color: var(--text-3); border-bottom: 2px solid transparent;
}
.admin-tabs a:hover { color: var(--text); }
.admin-tabs a[aria-current="page"] { color: var(--brand-600); border-bottom-color: var(--brand-500); }
/* New-activity count on the Support tab. */
.admin-tabs__support { display: inline-flex; align-items: center; gap: 8px; }
.admin-tabs__count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  font-family: var(--font-body, inherit); font-size: 11.5px; font-weight: 800; line-height: 1; color: #fff; background: var(--neg);
  box-shadow: 0 0 0 2px var(--bg);
}
.admin-tabs__count.is-fresh { animation: admin-count-pop .6s ease-out 2; }
@keyframes admin-count-pop { 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .admin-tabs__count.is-fresh { animation: none; } }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.stat__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); }
.stat__value { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--text); letter-spacing: -0.5px; }
.stat__note { display: block; margin-top: 7px; font-size: 12.5px; color: var(--text-3); }

/* Filter bar above the table. Wraps to a column on narrow screens rather than
   scrolling sideways, which on a data table is miserable. */
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.admin-filters .field { gap: 0; }
.admin-filters input, .admin-filters select { padding: 9px 12px; font-size: 14px; }
.admin-filters .admin-search { flex: 1 1 240px; min-width: 200px; }
.admin-filters .admin-spacer { flex: 1 1 auto; }

.admin-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.admin-panel__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.admin-panel__head h2, .admin-panel__head h3 { margin: 0; font-size: 15.5px; }
.admin-panel__body { padding: 18px; }

.admin-empty { padding: 44px 24px; text-align: center; color: var(--text-3); font-size: 14.5px; }

/* Signups-per-day bars. A sparkline in CSS beats a charting library for a
   single series, and ships nothing extra to the browser. */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 104px; }
.spark__bar { flex: 1; min-width: 3px; background: color-mix(in srgb, var(--brand-500) 30%, transparent); border-radius: 3px 3px 0 0; transition: background-color .15s; }
.spark__bar[data-has="1"] { background: var(--brand-500); }
.spark__bar:hover { background: var(--brand-600); }
.spark__axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-3); }

.badge--admin { color: var(--brand-600); border-color: color-mix(in srgb, var(--brand-500) 40%, transparent); background: color-mix(in srgb, var(--brand-500) 10%, transparent); }
.badge--ok { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 40%, transparent); background: color-mix(in srgb, var(--pos) 10%, transparent); }
.badge--warn { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 35%, transparent); background: color-mix(in srgb, var(--neg) 8%, transparent); }
.badge--muted { color: var(--text-3); }

.admin-note {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 14px 16px; margin-bottom: 20px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: 13.5px; line-height: 1.6; color: var(--text-2);
}
.admin-note svg { flex: none; margin-top: 2px; color: var(--brand-600); }
.admin-note b { color: var(--text); }

.admin-kv { display: grid; gap: 12px; }
.admin-kv > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline; }
.admin-kv dt { font-size: 13px; color: var(--text-3); font-weight: 600; }
.admin-kv dd { margin: 0; font-size: 14.5px; color: var(--text); word-break: break-word; }

@media (max-width: 640px) {
  .admin-kv > div { grid-template-columns: 1fr; gap: 3px; }
  .admin-head { align-items: flex-start; }
}

/* The account table has more columns than a phone can show. Rather than
   shrinking everything to illegibility, the less critical ones drop out. */
@media (max-width: 860px) {
  .admin-hide-sm { display: none !important; }
}

/* ---------- Confirmation dialog ----------
   A real dialog rather than window.confirm: the native one cannot carry a
   reason field, cannot be styled, and blocks the whole browser. */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(25, 19, 10, .45); backdrop-filter: blur(2px); }
.modal__panel {
  position: relative; width: 100%; max-width: 460px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 26px;
  animation: modalIn .18s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__panel h3 { margin: 0 0 8px; font-size: 19px; }
.modal__panel > p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.modal__who {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; margin-bottom: 16px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: 14px;
}
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.modal__actions .btn { flex: 0 0 auto; }

/* Destructive actions read as destructive. */
.btn--danger { background: var(--neg); color: #fff; border-color: transparent; }
.btn--danger:hover { background: color-mix(in srgb, var(--neg) 85%, #000); }

.admin-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-row-actions .btn { padding: 8px 14px; font-size: 13.5px; }

/* Setting rows on the overview. */
.admin-setting { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.admin-setting__text { max-width: 60ch; }
.admin-setting__text b { display: block; font-family: var(--font-display); font-size: 14.5px; color: var(--text); }
.admin-setting__text span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--text-3); }

.audit { display: grid; gap: 0; }
.audit__row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.audit__row:first-child { border-top: 0; }
.audit__when { color: var(--text-3); font-size: 12.5px; }
.audit__what b { font-family: var(--font-display); }
.audit__reason { display: block; margin-top: 4px; color: var(--text-3); font-size: 12.5px; font-style: italic; }
@media (max-width: 640px) { .audit__row { grid-template-columns: 1fr; gap: 3px; } }


/* ---------------------------------------------------------------- admin/subscriber separation */

/* The standing "you are in the admin area" strip. Brand-tinted and pinned
   directly under the header so the two halves of the product never look
   alike at a glance. */
.admin-bar {
  border-bottom: 1px solid color-mix(in srgb, var(--brand-500) 30%, var(--border));
  background: color-mix(in srgb, var(--brand-500) 8%, var(--surface));
}
.admin-bar__inner {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  padding-block: 9px; font-size: 13px; color: var(--text-2);
}
.admin-bar__badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-500) 40%, transparent);
  background: color-mix(in srgb, var(--brand-500) 14%, transparent);
  color: var(--brand-600);
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.admin-bar__who { flex: 1 1 auto; min-width: 0; }
.admin-bar__exit { flex: none; color: var(--text-2); font-weight: 600; }
.admin-bar__exit:hover { color: var(--brand-600); }
@media (max-width: 640px) { .admin-bar__who { display: none; } }

/* Admin header: administrators are their own accounts, so the admin area has its own top bar. */
.admin-top { position: sticky; top: 0; z-index: 40; background: linear-gradient(160deg, #1c150e, #120e09); color: #F4EEE6; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.admin-top__brand { display: inline-flex; align-items: center; gap: 10px; color: #F4EEE6; text-decoration: none; font-family: var(--font-display); font-size: 16px; }
.admin-top__brand svg { color: var(--brand-400, #FF9A3C); }
.admin-top__brand b { font-weight: 800; }
.admin-top__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-top__me { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 10px 6px 6px; border-radius: 999px; color: inherit; text-decoration: none; }
.admin-top__me:hover, .admin-top__me[aria-current] { background: rgba(255, 255, 255, .08); }
.admin-top__avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; color: #1c150e; background: linear-gradient(135deg, #FFB45C, #F07A12); }
.admin-top__me span:last-child { display: grid; min-width: 0; line-height: 1.2; }
.admin-top__me b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-top__me small { font-size: 12px; color: rgba(244, 238, 230, .65); }
.admin-top__out { height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: none; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: #F4EEE6; }
.admin-top__out:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 520px) { .admin-top__me span:last-child { display: none; } .admin-top__brand span { display: none; } }

/* Two populations, two doors. */
.role-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 24px; }
.role-split__card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); color: inherit;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.role-split__card:hover { border-color: color-mix(in srgb, var(--brand-500) 45%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.role-split__card--admin { background: linear-gradient(180deg, color-mix(in srgb, var(--brand-500) 6%, var(--surface)), var(--surface)); }
.role-split__top { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.role-split__n { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.role-split__note { font-size: 13px; color: var(--text-3); }
.role-split__go { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--brand-600); }

/* Permissions, rendered from lib/roles.ts. */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.perm-grid--one { grid-template-columns: minmax(0, 1fr); }
/* One card inside a panel needs no chrome of its own — the panel is the box. */
.perm-grid--one .perm-card { padding: 0; border: 0; background: none; }
.perm-grid--one .perm-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); display: grid; }
.perm-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); }
.perm-card--admin { border-color: color-mix(in srgb, var(--brand-500) 32%, var(--border)); }
.perm-card__head { margin-bottom: 12px; }
.perm-card__head p { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }
.perm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.perm-list + .perm-list { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.perm-list li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.perm-list svg { margin-top: 2px; }
.perm-list--can li { color: var(--text-2); }
.perm-list--can svg { color: var(--pos); }
.perm-list--cannot li { color: var(--text-3); }
.perm-list--cannot svg { color: var(--neg); }
.perm-note { margin: 14px 0 0; font-size: 12.5px; color: var(--text-3); }

/* A heavier version of .admin-note for a section-level warning. */
.admin-callout {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 18px; padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--neg) 30%, var(--border));
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--neg) 6%, var(--surface));
  font-size: 13.5px; color: var(--text-2);
}
.admin-callout svg { flex: none; margin-top: 1px; color: var(--neg); }
.admin-callout b { display: block; margin-bottom: 3px; color: var(--text); }

/* A quiet aside under a control group — smaller than .admin-note, which is a
   page-level notice. */
.admin-hint {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-3);
}
.admin-hint svg { flex: none; margin-top: 2px; color: var(--brand-600); }

/* The save bar at the foot of an edit panel. Separated by a rule so it reads
   as the end of the form rather than one more field. */
.admin-save {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
}
.admin-save__state { font-size: 13px; color: var(--text-3); }
.admin-save .btn { padding: 9px 16px; font-size: 14px; }
@media (max-width: 520px) {
  .admin-save { flex-direction: column; align-items: stretch; }
  .admin-save .admin-row-actions { justify-content: stretch; }
  .admin-save .btn { flex: 1; }
}

/* ---------------------------------------------------------------- profile photo */

.avatar-edit { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 4px; }
.avatar-edit__frame {
  flex: none; display: grid; place-items: center;
  /* Rounded square, not a circle: .usermenu__avatar in the header is a 7px
     rounded square, and one profile photo should not be two shapes. */
  width: 72px; height: 72px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--brand-500) 12%, var(--surface));
}
.avatar-edit__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-edit__initial {
  font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--brand-600);
}
.avatar-edit__controls { display: grid; gap: 8px; min-width: 0; }
.avatar-edit__controls small { font-size: 12.5px; color: var(--text-3); }
/* The file input is visually hidden, so its <label> is the button. */
.avatar-edit label.btn { cursor: pointer; }
.avatar-edit label.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.avatar-edit .form__status { margin: 0; flex-basis: 100%; }

/* A photo fills the menu avatar completely; the lettered fallback keeps its tint. */
.usermenu__avatar--photo { padding: 0; overflow: hidden; background: none; }
.usermenu__avatar--photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* ---------- administrator accounts (lib/staff) ---------- */
.perm-matrix-wrap { position: relative; overflow-x: auto; margin: -4px 0 4px; }
.perm-matrix { width: 100%; border-collapse: collapse; font-size: 14px; }
.perm-matrix th, .perm-matrix td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: center; }
.perm-matrix thead th { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.perm-matrix tbody th { text-align: left; font-weight: 500; color: var(--text-2); min-width: 260px; }
.perm-matrix td.is-yes { color: var(--pos); }
.perm-matrix td.is-no { color: color-mix(in srgb, var(--text-3) 60%, transparent); }
.perm-matrix tbody tr:last-child th, .perm-matrix tbody tr:last-child td { border-bottom: 0; }
.staff__n { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.staff__add { display: grid; grid-template-columns: 1fr 1.3fr 1fr auto; gap: 12px; align-items: end; padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.staff__add label, .staff__form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.staff__add input, .staff__add select, .staff__form input { height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font: inherit; font-size: 14.5px; font-weight: 400; color: var(--text); }
.staff__add .btn { height: 42px; }
.staff__hint { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--text-3); }
.staff__secret { display: grid; gap: 8px; margin: 16px 18px; padding: 16px; border-radius: var(--r-md); border: 1px dashed var(--brand-500); background: color-mix(in srgb, var(--brand-500) 7%, var(--surface)); font-size: 14px; color: var(--text-2); }
.staff__secret b { color: var(--text); }
.staff__secret code { font-family: var(--font-mono); font-size: 20px; letter-spacing: .06em; color: var(--text); }
.staff__row { display: flex; flex-wrap: wrap; gap: 8px; }
.staff__table-wrap { position: relative; overflow-x: auto; }  /* relative: keeps the absolutely positioned sr-only label inside the scroller*/
.staff__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.staff__table th { padding: 11px 18px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--border); }
.staff__table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.staff__table tr:last-child td { border-bottom: 0; }
.staff__table td b { display: flex; align-items: center; gap: 8px; color: var(--text); }
.staff__table td small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.staff__table select { height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font: inherit; font-size: 13.5px; color: var(--text); }
.staff__table tr.is-off td { opacity: .6; }
.staff__table .badge + .badge { margin-left: 6px; }
.staff__you { font-size: 11px; }
.staff__when { white-space: nowrap; font-size: 13px; }
.staff__actions { white-space: nowrap; text-align: right; }
.staff__actions .btn { padding: 6px 12px; font-size: 13px; }
.staff__actions .btn + .btn { margin-left: 6px; }
.staff__confirm { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.admin-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.staff__stack { display: grid; gap: 18px; }
.staff__form { display: grid; gap: 14px; }
.staff__form label small { font-weight: 400; color: var(--text-3); }
.staff__form .btn { justify-self: start; }
.staff__p { margin: 0; font-size: 14px; color: var(--text-2); }
.staff__h4 { margin: 20px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.staff__grants { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 14px; color: var(--text-2); }
.staff__codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 12px; list-style: none; border-radius: var(--r-md); background: var(--bg-inset); }
.staff__codes code { font-family: var(--font-mono); font-size: 14.5px; color: var(--text); }
.staff__sessions { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.staff__sessions b { display: block; font-size: 14px; color: var(--text); }
.staff__sessions small { font-size: 12.5px; color: var(--text-3); }
@media (max-width: 900px) {
  .admin-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .staff__add { grid-template-columns: minmax(0, 1fr); }
  .staff__actions { white-space: normal; text-align: left; }
}

/* Admin account: trusted devices (lib/staff/trust.ts) */
.staff__sessions li.staff__device { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.staff__device > span { display: grid; gap: 2px; min-width: 0; }
.staff__forget { flex: none; background: none; border: 0; padding: 4px 0; color: #b42318; font-weight: 600; cursor: pointer; }
.staff__forget:hover { text-decoration: underline; }

/* Admin: "something new is waiting" notices (components/staff/AdminLiveTabs.tsx). */
.admin-notices { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.admin-notice {
  pointer-events: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 14px 14px 14px 16px; border: 1px solid var(--border); border-left: 4px solid var(--brand-500); border-radius: 14px;
  background: var(--surface, #fff); box-shadow: 0 18px 40px -18px rgba(20, 16, 10, .45), 0 2px 6px rgba(20, 16, 10, .06);
  animation: admin-notice-in .35s cubic-bezier(.2, .9, .3, 1.2);
}
.admin-notice--support { border-left-color: var(--neg); }
.admin-notice--payments { border-left-color: var(--pos); }
.admin-notice__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--brand-600); background: color-mix(in srgb, var(--brand-500) 12%, transparent); }
.admin-notice--support .admin-notice__icon { color: var(--neg); background: color-mix(in srgb, var(--neg) 12%, transparent); }
.admin-notice--payments .admin-notice__icon { color: var(--pos); background: color-mix(in srgb, var(--pos) 12%, transparent); }
.admin-notice__body { display: grid; gap: 2px; min-width: 0; }
.admin-notice__body b { font-family: var(--font-display); font-size: 14.5px; color: var(--text); }
.admin-notice__body span { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-notice__open { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: var(--brand-500); text-decoration: none; }
.admin-notice__open:hover { background: var(--brand-600); }
.admin-notice__close { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); font-size: 20px; line-height: 1; cursor: pointer; }
.admin-notice__close:hover { color: var(--text); background: var(--bg-soft); }
@keyframes admin-notice-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .admin-notice { animation: none; } }
@media (max-width: 560px) { .admin-notices { right: 16px; bottom: 16px; } }
.admin-notices a.admin-notice__open, .admin-notices a.admin-notice__open:hover { color: #fff; }

/* Subscriber country (admin list). */
.admin-country { white-space: nowrap; font-size: 13.5px; color: var(--text-2); }
.admin-country__flag { font-size: 16px; line-height: 1; vertical-align: -1px; }
.admin-country__none { color: var(--text-3); }
/* The admin tables scroll inside their panel on a phone instead of widening the page. */
.admin-panel { min-width: 0; max-width: 100%; }
.admin-panel .table-scroll { max-width: 100%; }
.admin-country__code { display: inline-grid; place-items: center; min-width: 26px; height: 18px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--bg-soft); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: var(--text-2); vertical-align: 1px; }
