/* Sales Success Society portal: the shared look (base.html links it; cached a year,
   versioned by url_for). Fonts are declared in base.html, which knows their URLs. */
/* Sales Success Society portal. Revamp 2026-11 (Alex), built on the Society
   landing page's system: Signika for headings, buttons and labels; Montserrat
   for reading; navy ink and #cc0000 red on cool white in light; bone on
   wine-black in dark (the landing page's dark alternate). Follows the device
   unless the person picks Light or Dark (static/theme.js keeps the choice). */

:root {
  color-scheme: light;
  --display: "Signika", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --body: "Montserrat", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --grad: linear-gradient(90deg, #25467b, #5a2f52 45%, #cc0000);
  --r-lg: 18px; --radius: 14px; --r-sm: 10px; --r-pill: 999px;
  --maxw: 780px; --maxw-wide: 1140px; --gut: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --bg: #f5f6f9;          /* landing --wash */
  --bar: rgba(255, 255, 255, .86);
  --card: #ffffff;
  --sunk: #f5f6f9;        /* wells inside cards */
  --ink: #12224a;         /* headings, strong text */
  --text: #36415c;        /* reading text */
  --mute: #5b6681;        /* 4.9:1 on the wash, 5.6:1 on white */
  --faint: #7d869c;
  --line: #e3e7ee;
  --line-2: #cdd3df;
  --red: #cc0000;         /* the one brand red: buttons, marks */
  --red-hi: #b00000;
  --red-text: #c00000;    /* red used as text on white */
  --red-soft: #fdeeee;
  --ok: #137344;   --ok-soft: #e5f4ec;
  --no: #b42318;   --no-soft: #fdeeee;
  --warn: #8a5a00; --warn-soft: #fdf3dc;
  --info: #25467b; --info-soft: #edf1f8;
  --star: #d4930d; --star-soft: #fff5dd;
  --shadow: 0 1px 2px rgba(18, 34, 74, .05), 0 4px 16px -8px rgba(18, 34, 74, .12);
  --shadow-lg: 0 24px 48px -20px rgba(18, 34, 74, .28), 0 2px 6px rgba(18, 34, 74, .06);
  --ring: 0 0 0 3px rgba(204, 0, 0, .22);
  --card-bg: var(--card);
}
/* Dark: the device is dark and nothing else was picked, or Dark was picked.
   The two blocks carry the same values. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #110b0e; --bar: rgba(17, 11, 14, .86); --card: #1d1318; --sunk: #170f13;
    --ink: #ede6dd; --text: #bbb1b1; --mute: #a0959a; --faint: #82777c;
    --line: rgba(237, 230, 221, .09); --line-2: rgba(237, 230, 221, .17);
    --red: #d42a38; --red-hi: #e23a48; --red-text: #ec4f5b; --red-soft: rgba(212, 42, 56, .14);
    --ok: #7fd4a2; --ok-soft: rgba(127, 212, 162, .12); --no: #f08a8f; --no-soft: rgba(236, 79, 91, .15);
    --warn: #f0c674; --warn-soft: rgba(240, 198, 116, .12); --info: #a9c0ea; --info-soft: rgba(169, 192, 234, .1);
    --star: #f2c14e; --star-soft: rgba(242, 193, 78, .13);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -24px rgba(0, 0, 0, .9);
    --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .95), 0 2px 6px rgba(0, 0, 0, .5);
    --ring: 0 0 0 3px rgba(236, 79, 91, .32);
    --card-bg: linear-gradient(160deg, #22161c, #170f13 70%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #110b0e; --bar: rgba(17, 11, 14, .86); --card: #1d1318; --sunk: #170f13;
  --ink: #ede6dd; --text: #bbb1b1; --mute: #a0959a; --faint: #82777c;
  --line: rgba(237, 230, 221, .09); --line-2: rgba(237, 230, 221, .17);
  --red: #d42a38; --red-hi: #e23a48; --red-text: #ec4f5b; --red-soft: rgba(212, 42, 56, .14);
  --ok: #7fd4a2; --ok-soft: rgba(127, 212, 162, .12); --no: #f08a8f; --no-soft: rgba(236, 79, 91, .15);
  --warn: #f0c674; --warn-soft: rgba(240, 198, 116, .12); --info: #a9c0ea; --info-soft: rgba(169, 192, 234, .1);
  --star: #f2c14e; --star-soft: rgba(242, 193, 78, .13);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -24px rgba(0, 0, 0, .9);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .95), 0 2px 6px rgba(0, 0, 0, .5);
  --ring: 0 0 0 3px rgba(236, 79, 91, .32);
  --card-bg: linear-gradient(160deg, #22161c, #170f13 70%);
}
/* Older names some screens still use. */
:root { --ink-soft: var(--mute); --accent: var(--red); --accent-ink: #fff; --link: var(--red-text);
        --danger: var(--no); --danger-bg: var(--no-soft); --ok-bg: var(--ok-soft); --warn-bg: var(--warn-soft);
        --info-bg: var(--info-soft); --star-bg: var(--star-soft); --card-2: var(--sunk); --line-strong: var(--line-2);
        --ink-faint: var(--faint); --radius-sm: var(--r-sm); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column;
       font: 400 15.5px/1.65 var(--body); color: var(--text); background: var(--bg);
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
main { flex: 1 0 auto; width: 100%; max-width: calc(var(--maxw) + 2 * var(--gut)); margin: 0 auto;
       padding: clamp(24px, 4vw, 44px) var(--gut) 72px; }
main.wide { max-width: calc(var(--maxw-wide) + 2 * var(--gut)); }
a { color: var(--red-text); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--red-soft); color: var(--ink); }
h1, h2, h3, h4, legend, th, .display { font-family: var(--display); color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(28px, 1.2rem + 1.8vw, 38px); font-weight: 700; line-height: 1.12; margin: 0 0 .4rem; letter-spacing: -.02em; }
h2 { font-size: 21px; font-weight: 650; line-height: 1.25; margin: 40px 0 14px; }
h3 { font-size: 17px; font-weight: 650; line-height: 1.3; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
strong, b { font-weight: 600; color: var(--ink); }
.lede { font-size: 17px; line-height: 1.6; color: var(--mute); }
.muted { color: var(--mute); }
.small { font-size: 13.5px; line-height: 1.55; }
.i { flex: none; display: inline-block; vertical-align: -.18em; }
.eyebrow { font: 600 15px/1.2 var(--display); color: var(--red-text); margin: 0 0 .5rem; letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.75rem 0; }
code { font-size: .9em; }

/* page title pattern: H1, then the round as a quiet subtitle */
main > h1 + p.muted, main > .row + p.muted, main > .row:has(> h1) + p.muted { font: 600 16px/1.3 var(--display); color: var(--mute); margin: .1rem 0 1.5rem; }
main > .row:has(> h1) { margin-bottom: .2rem; }

/* error page: the way back is a button */
main > p:last-child > a[href="/"]:only-child { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: var(--r-pill);
  background: var(--card); border: 1.5px solid var(--line-2); color: var(--ink); font: 600 15.5px/1 var(--display); text-decoration: none; margin-top: 8px; }
main > p:last-child > a[href="/"]:only-child:hover { border-color: var(--ink); }

/* the small "back" link that opens most pages: an arrow, quiet */
main > p.small:first-child { margin: -8px 0 12px; }
main > a.back:first-child { margin: -8px 0 12px; }
main > p.small:first-child > a:only-child, a.back, .pv-top > a:first-child {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 12px 0 0; font: 600 15px/1.2 var(--display); color: var(--mute); text-decoration: none; }
main > p.small:first-child > a:only-child::before, a.back::before, .pv-top > a:first-child::before {
  content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--ic-back) center/contain no-repeat; mask: var(--ic-back) center/contain no-repeat; }
main > p.small:first-child > a:only-child:hover, a.back:hover, .pv-top > a:first-child:hover { color: var(--ink); }

/* ---------- forms ---------- */
label { display: block; margin: 0 0 1.1rem; font: 600 15px/1.4 var(--display); color: var(--ink); }
label .small, label span.small { font-family: var(--body); }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search],
input[type=date], input[type=datetime-local], select, textarea {
  display: block; width: 100%; margin-top: .45rem; min-height: 48px; padding: .65rem .9rem;
  font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--card); /* 16px: under it, iPhone Safari zooms in on focus */
  border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 6rem; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--mute); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: var(--ring); }
input[type=checkbox], input[type=radio] { accent-color: var(--red); width: 18px; height: 18px; }
.code-input { font: 600 28px/1 var(--display); letter-spacing: .45em; text-indent: .45em; text-align: center; max-width: 16rem; min-height: 60px; }

/* ---------- buttons: pills, Signika, like the landing page ---------- */
button, a.btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.4rem; border-radius: var(--r-pill);
  font: 600 15.5px/1.15 var(--display); letter-spacing: .01em; white-space: nowrap; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; background: var(--red); color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 14px -8px rgba(204, 0, 0, .55);
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .12s var(--ease); }
button:hover, a.btn:hover { background: var(--red-hi); text-decoration: none; }
button:active, a.btn:active { transform: translateY(1px) scale(.99); }
button:focus-visible, a.btn:focus-visible { outline: none; box-shadow: var(--ring); }
button.secondary, a.btn.secondary, .btn.secondary {
  background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
button.secondary:hover, a.btn.secondary:hover { border-color: var(--ink); background: var(--card); }
button.linklike { display: inline; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0;
                  font: inherit; color: var(--red-text); text-decoration: underline; text-underline-offset: .2em; }
button.linklike:hover { background: none; }
.btn .i, button .i { width: 18px; height: 18px; margin: 0 -.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
/* A primary button that leads somewhere gets an arrow (drawn here, so the
   button's markup stays as the tests and scripts know it). */
.go-on .btn:not(.secondary)::after, .pager a.btn:last-child:not(.secondary)::after {
  content: ""; width: 18px; height: 18px; margin-right: -.25rem; background: currentColor;
  -webkit-mask: var(--ic-arrow) center/contain no-repeat; mask: var(--ic-arrow) center/contain no-repeat; transition: transform .15s var(--ease); }
.go-on .btn:hover::after, .pager a.btn:last-child:hover::after { transform: translateX(3px); }

/* ---------- cards ---------- */
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
        padding: clamp(20px, 3vw, 28px); margin-bottom: 20px; box-shadow: var(--shadow); color: var(--text); }
.card > :last-child { margin-bottom: 0; }
.card > h2:first-child, .card > .row:first-child > h2 { margin-top: 0; }
p.card { line-height: 1.6; }
.well { background: var(--sunk); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--bar); border-bottom: 1px solid var(--line);
          -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); }
.topbar::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.topbar-in { max-width: calc(var(--maxw-wide) + 2 * var(--gut)); margin: 0 auto; padding: 10px var(--gut) 9px;
             display: flex; align-items: center; gap: 8px 28px; min-height: 68px; }
a.brand { display: inline-flex; align-items: center; flex: none; min-height: 48px; font-size: 0; color: var(--ink); text-decoration: none; }
a.brand img { height: 48px; width: auto; }
/* One logo file: the gradient lockup, drawn white on dark. */
:root[data-theme-now="dark"] a.brand img { filter: brightness(0) invert(.93); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a.brand img { filter: brightness(0) invert(.93); } }
a.brand[data-text-brand] { font: 700 18px/1 var(--display); letter-spacing: -.01em; width: min-content; line-height: 1.02; }
a.brand[data-text-brand] img { display: none; }
/* signed-out pages (sign in, enter code): the line above the title, and a calm narrow column */
/* The header already shows the logo, so the page's own name line is for screen readers only. */
main > p.brand:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main:has(> p.brand:first-child) { max-width: calc(30rem + 2 * var(--gut)); padding-top: clamp(32px, 8vh, 72px); }
main:has(> p.brand:first-child) .card button[type=submit] { width: 100%; min-height: 50px; margin-top: 4px; }
main:has(> p.brand:first-child) .card button[type=submit][aria-busy=true] { opacity: .75; cursor: progress; }
main:has(> p.brand:first-child) .code-input { max-width: none; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill);
         font: 600 15px/1 var(--display); color: var(--mute); text-decoration: none; white-space: nowrap; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a.on { background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.nav a.on::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
                   background: var(--red); transform: rotate(45deg); }
.nav a::before { content: ""; width: 17px; height: 17px; background: currentColor; opacity: .85;
                 -webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat; }
/* Section icons. Every section link gets the ring by default, so a new
   section can never draw as a blank filled square; known ones get their own. */
:is(.nav, .nav-sheet) a { --ic: var(--ic-ring); }
:is(.nav, .nav-sheet) a:first-child { --ic: var(--ic-home); }
:is(.nav, .nav-sheet) a[href*="admin"] { --ic: var(--ic-shield); }
:is(.nav, .nav-sheet) a[href*="recordings"] { --ic: var(--ic-play); }
:is(.nav, .nav-sheet) a[href$="/profile"], :is(.nav, .nav-sheet) a[href$="/members/me"] { --ic: var(--ic-idcard); }
:is(.nav, .nav-sheet) a[href*="sessions"] { --ic: var(--ic-cal); }
:is(.nav, .nav-sheet) a[href$="/members"] { --ic: var(--ic-users); }
:is(.nav, .nav-sheet) a[href*="checkin"] { --ic: var(--ic-check); }
:is(.nav, .nav-sheet) a[href*="vote"] { --ic: var(--ic-ballot); }
:is(.nav, .nav-sheet) a[href*="how-it-works"] { --ic: var(--ic-info); }
:is(.nav, .nav-sheet) a[href*="my-society"] { --ic: var(--ic-user); }
/* Section menu: below 960px the row of sections becomes one button showing
   where you are; it opens a panel listing every section (a native popover,
   so it opens, and closes on a tap outside or Escape, without script). */
.nav-pick { display: none; }
.nav-sheet { display: none; }
.nav-sheet.is-open, .nav-sheet:popover-open { display: block; }
.nav-sheet { position: fixed; inset: auto; top: 70px; left: var(--gut); margin: 0; width: min(340px, calc(100vw - 2 * var(--gut)));
             padding: 8px; background: var(--card); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.nav-sheet:popover-open { animation: pop .18s var(--ease); }
.nav-sheet .menu-label { padding: 10px 12px 4px; }
.nav-sheet a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 12px;
               font: 600 16px/1 var(--display); color: var(--ink); text-decoration: none; }
.nav-sheet a::before { content: ""; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--sunk);
  -webkit-mask: none; mask: none; box-shadow: inset 0 0 0 1px var(--line); }
.nav-sheet a::after { content: ""; position: absolute; left: 21px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--mute);
  -webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat; }
.nav-sheet a:hover { background: var(--sunk); }
.nav-sheet a.on { background: var(--red-soft); color: var(--red-text); }
.nav-sheet a.on::before { background: var(--red); box-shadow: none; }
.nav-sheet a.on::after { background: #fff; }
@media (max-width: 960px) {
  .nav { display: none; }
  .topbar:has(.nav a + a) .nav-pick, .topbar[data-sections] .nav-pick { display: inline-flex; }
  .nav-pick { gap: 8px; min-height: 44px; padding: 0 12px 0 14px; margin-left: 4px; border-radius: 12px; max-width: 46vw;
              background: var(--sunk); color: var(--ink); border: 1px solid var(--line); box-shadow: none; font: 600 15px/1 var(--display); }
  .nav-pick:hover { background: var(--sunk); border-color: var(--line-2); }
  .nav-pick span { overflow: hidden; text-overflow: ellipsis; }
  .nav-pick::after { content: ""; flex: none; width: 15px; height: 15px; background: var(--mute); -webkit-mask: var(--ic-chev) center/contain no-repeat; mask: var(--ic-chev) center/contain no-repeat; }
}
.who { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.who form { margin: 0; }
.iconbtn { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 12px; background: transparent; color: var(--mute);
           border: 1px solid transparent; box-shadow: none; }
.iconbtn:hover { background: var(--sunk); color: var(--ink); border-color: var(--line); }
.iconbtn .i { width: 20px; height: 20px; margin: 0; }
.theme-toggle .i-sun { display: none; }
:root[data-theme-now="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme-now="dark"] .theme-toggle .i-moon { display: none; }

/* account menu: a native popover (opens, and closes on a click outside or
   Escape, with no script) */
.menu-btn { gap: 8px; min-height: 44px; padding: 4px 10px 4px 4px; border-radius: 14px; background: var(--card); color: var(--ink);
            border: 1px solid var(--line); box-shadow: none; font: 600 14.5px/1 var(--display); }
.menu-btn:hover { background: var(--card); border-color: var(--line-2); }
.menu-btn .avatar { width: 34px; height: 34px; font-size: 14px; }
.menu-btn .i { width: 16px; height: 16px; color: var(--faint); margin: 0; }
.menu-panel { position: fixed; inset: auto; top: 74px; right: max(var(--gut), calc((100vw - var(--maxw-wide)) / 2));
              margin: 0; width: min(300px, calc(100vw - 32px)); padding: 8px; color: var(--text);
              background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.menu-panel { display: none; }
.menu-panel.is-open { display: block; }
.menu-panel:popover-open { display: block; animation: pop .18s var(--ease); }
@keyframes pop { from { transform: translateY(-6px); } }  /* slide only: never invisible if animations are paused */
.menu-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; }
.menu-head strong { display: block; font: 650 16px/1.2 var(--display); }
.menu-head .avatar { width: 42px; height: 42px; }
.menu-sec { padding: 12px 10px; border-top: 1px solid var(--line); }
.menu-label { display: block; font: 600 12.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.menu-row { justify-content: flex-start; gap: 10px; min-height: 42px; padding: 0 10px; margin: 0 -10px; width: calc(100% + 20px);
            border-radius: var(--r-sm); background: none; border: 0; box-shadow: none; color: var(--ink); font: 600 15px/1 var(--display); }
.menu-row:hover { background: var(--sunk); }
.menu-row .i { width: 18px; height: 18px; color: var(--mute); margin: 0; }

/* segmented controls: Light / Dark / Auto, Live / Full preview */
.seg, .switch { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--sunk); border: 1px solid var(--line); }
.seg > button, .switch > a { flex: 1; min-height: 34px; padding: 0 10px; gap: 6px; border-radius: var(--r-pill); border: 0; box-shadow: none;
  background: transparent; color: var(--mute); font: 600 13.5px/1 var(--display); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.seg > button:hover, .switch > a:hover { background: transparent; color: var(--ink); }
.seg > button .i { width: 15px; height: 15px; margin: 0; }
.seg > [aria-pressed="true"], .switch > a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), inset 0 0 0 1px var(--line); }
.banner { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 8px 16px; text-align: center;
          background: var(--warn-soft); color: var(--warn); font: 600 13.5px/1.3 var(--display); }

/* ---------- flashes ---------- */
ul.flashes { list-style: none; width: 100%; max-width: calc(var(--maxw) + 2 * var(--gut)); margin: 24px auto -8px; padding: 0 var(--gut); }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin-bottom: 8px; border-radius: var(--radius);
         font-weight: 500; border: 1px solid transparent; }
.flash::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; background: currentColor;
                 -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.flash-danger { background: var(--no-soft); color: var(--no); --m: var(--ic-alert); }
.flash-info { background: var(--info-soft); color: var(--ink); --m: var(--ic-info); }
.flash-success { background: var(--ok-soft); color: var(--ok); --m: var(--ic-check-c); }

/* ---------- pills: a status word with a mark ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px 5px 9px; border-radius: var(--r-pill);
        font: 600 13px/1.2 var(--display); letter-spacing: .01em; white-space: nowrap;
        background: var(--sunk); color: var(--mute); border: 1px solid var(--line); }
.pill::before { content: ""; width: 13px; height: 13px; background: currentColor;
                -webkit-mask: var(--m, var(--ic-circle)) center/contain no-repeat; mask: var(--m, var(--ic-circle)) center/contain no-repeat; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; --m: var(--ic-check); }
.pill.bad { background: var(--no-soft); color: var(--no); border-color: transparent; --m: var(--ic-x); }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; --m: var(--ic-dot); }
.pill:has(.i)::before { display: none; }
.pill .i { width: 13px; height: 13px; }

/* ---------- bits ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.stack > * + * { margin-top: .5rem; }
.avatar { width: 44px; height: 44px; border-radius: 30%; flex: none; display: inline-flex; align-items: center; justify-content: center;
          background: var(--grad); color: #fff; font: 600 16px/1 var(--display); letter-spacing: .02em; }
.stat { font: 700 30px/1.1 var(--display); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--grad); transition: width .5s var(--ease); }
.meter.done > span { background: var(--ok); }
.cta { margin: 18px 0 0; padding: 18px 20px; border-radius: var(--radius); background: var(--sunk); border: 1px solid var(--line); }
.cta > :last-child { margin-bottom: 0; }

/* timeline: what happens next */
ul.steps { list-style: none; padding: 0; margin: .25rem 0 1rem; }
ul.steps li { position: relative; padding: 0 0 16px 28px; }
ul.steps li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; transform: rotate(45deg);
                      border: 2px solid var(--red); background: var(--card); }
ul.steps li:first-child::before { background: var(--red); }
ul.steps li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: calc(.45em + 14px); bottom: 2px; width: 2px; border-radius: 2px; background: var(--line-2); }
ul.steps li:last-child { padding-bottom: 0; }
ul.steps li strong { font-family: var(--display); font-weight: 650; }

/* disclosure triangles: one chevron everywhere */
details > summary { cursor: pointer; list-style: none; min-height: 40px; display: flex; align-items: center; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: -.1em;
  background: currentColor; -webkit-mask: var(--ic-chev) center/contain no-repeat; mask: var(--ic-chev) center/contain no-repeat;
  transition: transform .2s var(--ease); opacity: .7; }
details[open] > summary::after { transform: rotate(180deg); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
main > .table-wrap, section > .table-wrap, details > .table-wrap {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 13px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); white-space: nowrap; background: var(--sunk); }
tbody tr { transition: background-color .12s; }
tbody tr:hover { background: var(--sunk); }
tr:last-child td { border-bottom: 0; }
td.n, .num { font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.foot { flex: none; width: 100%; border-top: 1px solid var(--line); }
.foot-in { max-width: calc(var(--maxw-wide) + 2 * var(--gut)); margin: 0 auto; padding: 22px var(--gut) 30px;
           display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
           font-size: 13.5px; color: var(--mute); }
.foot a { color: var(--mute); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 14.5px/1 var(--display); }
.foot a:hover { color: var(--ink); }
.geo-credit { margin: 2rem 0 0; font-size: 12.5px; }
.geo-credit a { text-decoration: underline; text-underline-offset: 2px; }
.foot-in > a::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--ic-mail) center/contain no-repeat; mask: var(--ic-mail) center/contain no-repeat; }

/* ---------- icon masks: one stroke style for every CSS-drawn mark ---------- */
:root {
  --ic-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --ic-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E");
  --ic-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --ic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E");
  --ic-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --ic-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5.5'/%3E%3C/svg%3E");
  --ic-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6'%3E%3Ccircle cx='12' cy='12' r='7.5'/%3E%3C/svg%3E");
  --ic-check-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.3l2.7 2.7L16.2 9.4'/%3E%3C/svg%3E");
  --ic-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.6v.4'/%3E%3C/svg%3E");
  --ic-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.4v.1'/%3E%3C/svg%3E");
  --ic-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3C/svg%3E");
  --ic-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='3'/%3E%3Cpath d='M10 9.2v5.6l4.8-2.8z'/%3E%3C/svg%3E");
  --ic-idcard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='3'/%3E%3Ccircle cx='8.5' cy='10.5' r='2'/%3E%3Cpath d='M5.5 16a3 3 0 0 1 6 0M14.5 10h4M14.5 13.5h3'/%3E%3C/svg%3E");
  --ic-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11l8-7 8 7'/%3E%3Cpath d='M6 9.5V20h12V9.5'/%3E%3C/svg%3E");
  --ic-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 3v5.5c0 4.6-3.2 8.1-7.5 9.5-4.3-1.4-7.5-4.9-7.5-9.5V6z'/%3E%3C/svg%3E");
  --ic-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E");
  --ic-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.6a3.5 3.5 0 0 1 0 6.8M18.5 14.2A6.5 6.5 0 0 1 21.5 20'/%3E%3C/svg%3E");
  --ic-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
  --ic-ballot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8.5l1.5 1.5L12 7.5M8 15.5l1.5 1.5 2.5-2.5M14.5 9h2M14.5 16h2'/%3E%3C/svg%3E");
  --ic-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5l8.5 6.5 8.5-6.5'/%3E%3C/svg%3E");
  --ic-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --ic-ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9'/%3E%3Cpath d='M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E");
  --ic-upload: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4M7 9l5-5 5 5'/%3E%3Cpath d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E");
  --ic-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5'/%3E%3Cpath d='M4 17v1a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-1'/%3E%3C/svg%3E");
  --ic-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  --ic-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E");
  --ic-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --ic-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1 1M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1-1'/%3E%3C/svg%3E");
  --ic-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/%3E%3C/svg%3E");
  --ic-in: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm2.5 7.5V18h2.6v-7.5zm1.3-4.3a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM11 10.5V18h2.6v-4c0-1.1.4-1.8 1.4-1.8s1.3.8 1.3 1.9V18H19v-4.6c0-2.3-1.2-3.1-2.8-3.1-1.3 0-2 .6-2.6 1.3v-1.1z'/%3E%3C/svg%3E");
}
/* small marks on common link kinds */
a[href*="linkedin.com"]:not(.btn) { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font: 600 14.5px/1 var(--display); text-decoration: none; }
a[href*="linkedin.com"]:not(.btn)::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--ic-in) center/contain no-repeat; mask: var(--ic-in) center/contain no-repeat; }
a.btn[href*="csv"]::before { content: ""; width: 17px; height: 17px; background: currentColor; -webkit-mask: var(--ic-download) center/contain no-repeat; mask: var(--ic-download) center/contain no-repeat; }

@media (max-width: 680px) {
  body { font-size: 15px; }
  .topbar-in { gap: 6px; min-height: 62px; padding-top: 7px; padding-bottom: 7px; }
  a.brand img { height: 42px; }
  .menu-btn .who-name { display: none; }
  .menu-btn { padding-right: 8px; }
  .menu-panel { top: 66px; right: 16px; }
  .nav-sheet { top: 66px; }
  .card { border-radius: var(--radius); }
  th, td { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
