/* VLPremier Pro · components. DESIGN PROTOTYPE ONLY. Class + data-attribute API documented in ../../DESIGN_SYSTEM.md.
   Sections: buttons · nav · menu sheet · footer · cards · chips/badges/ribbon · forms · search · segmented · tables ·
   tabs · accordion · dialogs (modal, drawer, lightbox) · toast · callouts · figures · breadcrumb · pagination ·
   plan cards · account shell · admin shell · ruler · hero motif · editor window + timeline · mockup kit · scenes. */

/* =========================== BUTTONS =========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-ctl); border: 1px solid transparent;
  font: 650 16px/1 var(--font-display); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--t-tap) var(--ease), box-shadow var(--t-tap) var(--ease), background-color var(--t-tap) var(--ease), border-color var(--t-tap) var(--ease), color var(--t-tap);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 0 0 4px rgb(45 140 235 / .32); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); box-shadow: 0 0 0 4px rgb(45 140 235 / .18); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: rgb(255 107 107 / .1); box-shadow: 0 0 0 4px rgb(255 107 107 / .16); }
.btn-quiet { background: transparent; color: var(--text); padding-inline: 12px; }
.btn-quiet:hover { background: var(--surface-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }
.play-ico { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================== NAV =========================== */
.nav { position: fixed; inset: 0 0 auto; z-index: var(--z-nav); height: var(--nav-h); border-bottom: 1px solid transparent; transition: background-color var(--t-fast), border-color var(--t-fast); animation: fade var(--t-fast) both; }
.nav.is-solid { background: rgb(17 26 43 / .96); border-bottom-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.brand span { font: 800 18px/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.brand b { font-weight: 500; color: var(--muted); }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); transition: color var(--t-tap); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
/* 2026-10-26 (owner): an underline shows which menu item is open. It grows from the left on hover / keyboard focus and
   stays, brighter, on the open page or section (aria-current, set by the server). Transform only: nothing moves. */
.nav-links > li > a { position: relative; display: inline-block; padding-block: 6px; }
.nav-links > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent-bright); transform: scaleX(0); transform-origin: left center; opacity: .6; transition: transform 260ms var(--ease), opacity 260ms var(--ease); }
.nav-links > li > a:is(:hover, :focus-visible)::after, .has-sub.is-open > a::after { transform: scaleX(1); }
.nav-links > li > a[aria-current]::after { transform: scaleX(1); opacity: 1; }
.nav-sub a[aria-current] { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
@media (prefers-reduced-motion: reduce) { .nav-links > li > a::after { transition: none; } }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-signin { font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
/* signed in (bell + Admin + My account) the bar is wider: never break a label onto two lines (owner 2026-10-27);
   tighter spacing on mid-size screens, and the menu button takes over at 1320px and below */
.nav-links a { white-space: nowrap; }
@media (max-width: 1440px) { .nav-in { gap: 28px; } .nav-links { gap: 20px; } .nav-cta { gap: 16px; } }
.nav-signin:hover { color: var(--accent-bright); }
.menu-btn { display: none; flex: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: none; color: var(--text); cursor: pointer; position: relative; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { position: absolute; left: 12px; width: 18px; height: 2px; background: currentColor; content: ""; transition: transform var(--t-sheet) var(--ease), background-color var(--t-tap); }
.menu-btn i { top: 20px; }
.menu-btn i::before { left: 0; top: -6px; }
.menu-btn i::after { left: 0; top: 6px; }
.menu-btn.is-x i { background: transparent; }
.menu-btn.is-x i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn.is-x i::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1320px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav-in { gap: 16px; }
}

/* =========================== DIALOG BASE (menu sheet, modal, drawer, lightbox) =========================== */
dialog { color: var(--text); border: 0; padding: 0; }
dialog::backdrop { background: rgb(5 8 14 / .74); }

/* menu sheet: full-height, slides down from the top */
.sheet {
  inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0;
  padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom)); background: var(--surface);
  display: flex; flex-direction: column; transform: translateY(-100%);
  transition: transform var(--t-sheet) var(--ease), overlay var(--t-sheet) allow-discrete, display var(--t-sheet) allow-discrete;
}
.sheet:not([open]) { display: none; }
.sheet[open] { transform: none; }
@starting-style { .sheet[open] { transform: translateY(-100%); } }
.sheet::backdrop { background: transparent; }
.sheet-top { flex: none; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet-top .menu-btn { display: block; margin: 0; }
.sheet-links { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.sheet-links a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 700 clamp(19px, 5vw, 22px)/1.2 var(--font-display); }
/* the open page: the blue line sits beside the label, never against it (owner 2026-10-27) */
.sheet-links a[aria-current] { color: var(--accent-bright); box-shadow: inset 3px 0 0 var(--accent-bright); padding-left: 16px; }
.sheet-links small { font: 400 12px/1 var(--font-mono); color: var(--muted); }
.sheet-foot { margin-top: auto; display: grid; gap: 12px; padding-top: 20px; }
.sheet-foot .btn { width: 100%; min-height: 54px; font-size: 17px; }

/* modal */
.modal {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-panel);
  opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), overlay var(--t-fast) allow-discrete, display var(--t-fast) allow-discrete;
}
.modal.wide { width: min(880px, calc(100% - 32px)); }
.modal[open] { opacity: 1; transform: none; }
@starting-style { .modal[open] { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-h h2 { font-size: 20px; }
.modal-b { padding: 20px; }
.modal-b > * + * { margin-top: 14px; }
.modal-f { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
.x-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: none; cursor: pointer; font: 400 22px/1 var(--font-mono); color: var(--text); }
.x-btn:hover { border-color: var(--text); }

/* drawer: slides in from the right (add .drawer-left for left) */
.drawer {
  margin: 0 0 0 auto; width: min(440px, 100%); height: 100dvh; max-height: none; overflow: auto;
  background: var(--surface); border-left: 1px solid var(--line-strong); transform: translateX(100%);
  transition: transform var(--t-drawer) var(--ease), overlay var(--t-drawer) allow-discrete, display var(--t-drawer) allow-discrete;
}
.drawer-left { margin: 0 auto 0 0; border-left: 0; border-right: 1px solid var(--line-strong); transform: translateX(-100%); }
.drawer[open] { transform: none; }
@starting-style { .drawer[open] { transform: translateX(100%); } .drawer-left[open] { transform: translateX(-100%); } }
.drawer .modal-h { position: sticky; top: 0; background: var(--surface); z-index: 1; }

/* lightbox (built by site.js from any a[data-lightbox]) */
.lightbox { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; background: transparent; display: grid; place-items: center; padding: 64px 16px 24px; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgb(5 8 14 / .92); }
.lightbox figure { display: grid; justify-items: center; gap: 14px; max-width: 100%; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100dvh - 160px); width: auto; height: auto; border-radius: var(--r-ctl); box-shadow: 0 0 0 1px var(--line); }
.lightbox figcaption { max-width: 72ch; text-align: center; font-size: 15px; color: var(--muted); }
.lightbox .x-btn { position: fixed; top: 14px; right: 16px; background: var(--surface); }

/* =========================== TOAST =========================== */
.toasts { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-toast); display: grid; gap: 8px; width: min(380px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-ctl); background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 15px; animation: toast-in var(--t-fast) var(--ease) both; pointer-events: auto; }
.toast::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.toast.is-error::before { background: var(--danger); }

/* =========================== FOOTER =========================== */
.foot { padding: 72px 0 32px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 32px; }
.foot h2 { font: 600 14px/1.3 var(--font-display); color: var(--muted); margin-bottom: 16px; }   /* 2026-10-29: sentence case, no mono capitals */
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; font-size: 15px; transition: color var(--t-tap); }
.foot ul a:hover { color: var(--accent-bright); }
.foot-about { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 34ch; }
.news { margin-top: 24px; max-width: 360px; }
.news .row { display: flex; gap: 8px; }
.news .input { flex: 1; min-width: 0; }
.foot-base { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 400 12px/1.5 var(--font-mono); color: var(--muted); }
@media (max-width: 1180px) { .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* =========================== CARDS =========================== */
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; }
.card.raised { background: var(--surface-2); border-color: var(--line-strong); }
.card.tight { padding: 0; overflow: hidden; }
.card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.card-h h2, .card-h h3 { font-size: 18px; line-height: 1.2; }
.card-h .sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.card-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
a.card { display: block; text-decoration: none; transition: border-color var(--t-tap); }
a.card:hover { border-color: var(--line-strong); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { min-width: 0; overflow-wrap: anywhere; }

/* =========================== CHIPS, BADGES, RIBBON =========================== */
/* status chip: 10% tint of its colour, text in the colour. Every variant >= 4.78:1 on bg, surface and surface-2. */
.chip {
  --c: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 4px;
  font: 500 var(--fs-meta)/1 var(--font-mono); white-space: nowrap; color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip.is-hollow::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.chip.trial { --c: var(--info); }
.chip.active { --c: var(--ok); }
.chip.past-due { --c: var(--warn); }
.chip.cancel-scheduled { --c: var(--warn); }
.chip.cancel-scheduled::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.chip.expired { --c: var(--muted); }
.chip.refunded { --c: var(--muted); }
.chip.refunded::before { border-radius: 1px; }
.chip.offline { --c: var(--muted); }
.chip.offline::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.chip.deactivated { --c: var(--danger); }
.chip.ok { --c: var(--ok); } .chip.warn { --c: var(--warn); } .chip.danger { --c: var(--danger); } .chip.info { --c: var(--info); }
/* badge: neutral outlined mono label (payment method, version, level) */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); font: 500 var(--fs-meta)/1 var(--font-mono); color: var(--text); white-space: nowrap; }
.badge.quiet { border-color: var(--line); color: var(--muted); height: 22px; padding: 0 7px; }
.ribbon { position: absolute; top: -13px; right: 20px; padding: 6px 10px; border-radius: var(--r-ctl); background: var(--primary); color: var(--primary-ink); font: 600 var(--fs-meta)/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.save { display: inline-block; margin-top: 10px; padding: 4px 8px; border-radius: 4px; background: rgb(79 163 245 / .1); color: var(--accent-bright); font: 500 var(--fs-meta)/1.3 var(--font-mono); }
.proposal { display: flex; align-items: flex-start; gap: 8px; font: 500 var(--fs-meta)/1.4 var(--font-mono); color: var(--muted); }
.proposal::before { content: ""; flex: none; width: 14px; height: 0; margin-top: 8px; border-top: 1px dashed var(--line-strong); }

/* =========================== FORMS =========================== */
.field { display: grid; gap: 8px; min-width: 0; }
.label, .field > label { font-size: 14px; font-weight: 600; }
.field-help { font-size: 13px; color: var(--muted); }
.field-error { display: none; font-size: 13px; color: var(--danger); }
.field.is-error .field-error { display: block; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: 400 15px/1.4 var(--font-display);
  transition: border-color var(--t-tap), box-shadow var(--t-tap);
}
.textarea { min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(45 140 235 / .35); }
.field.is-error :is(.input, .select, .textarea), [aria-invalid="true"] { border-color: var(--danger); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .5; cursor: not-allowed; }
.select { appearance: none; padding-right: 36px; cursor: pointer; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239AA8C0' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; }
.select option { background: var(--surface); }
.check { display: inline-flex; align-items: flex-start; flex-wrap: nowrap; gap: 10px; min-height: 44px; padding-top: 11px; font-size: 15px; cursor: pointer; }
.check input:not(.switch) { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.switch { appearance: none; position: relative; width: 44px; height: 26px; margin: -3px 0 0; flex: none; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; transition: background-color var(--t-tap), border-color var(--t-tap); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 3px; background: var(--muted); transition: transform var(--t-tap) var(--ease), background-color var(--t-tap); }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::after { transform: translateX(18px); background: var(--primary); }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; } /* start: a field with help text must not push its neighbour down (2026-10-26) */
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* search with live-filter look: results narrow as you type (site.js [data-search]) */
.search { position: relative; }
.search .input { padding-left: 42px; min-height: 48px; font-size: 16px; }
.search::before { content: ""; position: absolute; left: 15px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border: 2px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search::after { content: ""; position: absolute; left: 27px; top: 50%; width: 2px; height: 7px; margin-top: 2px; background: var(--muted); transform: rotate(-45deg); pointer-events: none; }
.search:focus-within::before { border-color: var(--accent-bright); }
.search:focus-within::after { background: var(--accent-bright); }
.search-meta { min-height: 20px; margin-top: 8px; font: 400 var(--fs-meta)/1.5 var(--font-mono); color: var(--muted); }
.empty { padding: 32px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-panel); color: var(--muted); }
.empty b { display: block; color: var(--text); margin-bottom: 4px; }

/* segmented control (billing period etc.) */
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line-strong); }
.seg button { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-ctl); background: none; color: var(--muted); font: 600 15px/1 var(--font-display); cursor: pointer; transition: background-color var(--t-tap), color var(--t-tap); }
.seg button:hover { color: var(--text); }
.seg button small { font: 500 var(--fs-meta)/1 var(--font-mono); color: var(--accent-bright); margin-left: 8px; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* =========================== TABLES =========================== */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-strong); font: 500 var(--fs-meta)/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color var(--t-tap); }
.tbl tbody tr:hover { background: rgb(26 38 61 / .55); }
.tbl tr[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.tbl .num, .tbl th.num { text-align: right; }
/* .table-cards on .tbl-wrap: each row becomes a card under 720px; every td needs data-label */
@media (max-width: 719px) {
  .table-cards { overflow: visible; border: 0; background: none; border-radius: 0; }
  .table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-cards :is(table, tbody, tr, td) { display: block; width: 100%; }
  .table-cards tr { margin-bottom: 12px; padding: 6px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
  .table-cards .tbl td { display: grid; grid-template-columns: minmax(92px, 36%) minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
  .table-cards tbody tr td:last-child { border-bottom: 0; }
  .table-cards td::before { content: attr(data-label); font: 500 var(--fs-meta)/1.3 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .table-cards td[data-label=""] { grid-template-columns: 1fr; }
  .table-cards td[data-label=""]::before { display: none; }
}

/* =========================== TABS =========================== */
/* [data-tabs] box > .tablist[role=tablist] > .tab[role=tab][aria-controls] + [role=tabpanel]. site.js wires keys + state. */
.tablist { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; padding: 0 16px; border: 0; background: none; color: var(--muted); font: 600 15px/1 var(--font-display); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; transition: color var(--t-tap), box-shadow var(--t-tap), background-color var(--t-tap), border-color var(--t-tap); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.tab small { margin-left: 6px; font: 500 var(--fs-meta)/1 var(--font-mono); color: var(--muted); }
[role="tabpanel"] { min-width: 0; }
[role="tabpanel"]:focus-visible { outline-offset: 8px; }
@media (scripting: enabled) { [data-tabs]:not([data-tabs="mobile"]) [role="tabpanel"]:not(.is-active) { display: none; } }
/* mobile tab carousel: [data-tabs="mobile"] shows every panel stacked >= 720px, one panel + swipeable tab strip below */
[data-tabs="mobile"] > .tablist { display: none; }
@media (max-width: 719px) {
  [data-tabs="mobile"] > .tablist {
    display: flex; gap: 8px; border: 0; margin: 0 calc(var(--gutter) * -1) 28px; padding: 2px var(--gutter);
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  }
  [data-tabs="mobile"] .tab { scroll-snap-align: start; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); box-shadow: none; font-size: 14px; padding: 0 14px; }
  [data-tabs="mobile"] .tab[aria-selected="true"] { background: var(--surface-2); border-color: var(--accent); color: var(--text); }
}
@media (max-width: 719px) and (scripting: enabled) { [data-tabs="mobile"] [role="tabpanel"]:not(.is-active) { display: none; } }

/* =========================== ACCORDION (native details; add name="x" for one-open-at-a-time) =========================== */
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 16px; align-items: center; padding: 22px 0; font: 700 19px/1.35 var(--font-display); transition: color var(--t-tap); }
.qa summary:hover { color: var(--accent-bright); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 24px/1 var(--font-mono); color: var(--accent-bright); text-align: center; transition: transform var(--t-fast) var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa .ans { padding: 0 40px 24px 0; color: var(--muted); max-width: 64ch; }
@media (max-width: 640px) { .qa summary { font-size: 17px; } .qa .ans { padding-right: 0; } }

/* =========================== CALLOUTS =========================== */
.callout { --c: var(--accent-bright); padding: 16px 18px; border: 1px solid var(--line); border-left: 2px solid var(--c); background: var(--surface); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; font-size: 15px; color: var(--muted); max-width: 68ch; }
.callout > b:first-child, .callout-t { display: block; margin-bottom: 4px; font: 600 var(--fs-meta)/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.callout strong { color: var(--text); font-weight: 600; }
.callout.tip { --c: var(--accent-bright); }
.callout.note { --c: var(--muted); }
.callout.warning { --c: var(--warn); }
.callout.honest > b:first-child { display: inline; margin: 0; font: 600 15px/1.6 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--text); }

/* =========================== FIGURES + LIGHTBOX TRIGGER =========================== */
.fig { margin: 0; min-width: 0; }
.fig > a, .fig > .fig-frame { display: block; position: relative; overflow: hidden; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); }
.fig > a[data-lightbox] { cursor: zoom-in; transition: border-color var(--t-tap); }
.fig > a[data-lightbox]:hover { border-color: var(--line-strong); }
.fig > a[data-lightbox]::after { content: "Enlarge"; position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 4px; background: rgb(9 13 23 / .86); font: 500 var(--fs-meta)/1 var(--font-mono); color: var(--text); opacity: 0; transition: opacity var(--t-tap); }
.fig > a[data-lightbox]:is(:hover, :focus-visible)::after { opacity: 1; }
.fig img { width: 100%; }
.fig figcaption { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 72ch; }
.fig.is-tall > a { width: fit-content; max-width: 100%; }
.fig.is-tall img { width: min(100%, 236px); }   /* 607x1080 vertical shots capped at 420px tall */
.fig[data-real]:not(:has(img)) .fig-frame { aspect-ratio: 16 / 9; display: grid; place-items: center; border-style: dashed; border-color: var(--line-strong); font: 400 var(--fs-meta)/1.5 var(--font-mono); color: var(--muted); }

/* =========================== BREADCRUMB + PAGINATION =========================== */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font: 400 var(--fs-meta)/1.6 var(--font-mono); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 500 14px/1 var(--font-mono); }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--r-ctl); border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.pager a:hover { border-color: var(--line-strong); color: var(--text); }
.pager [aria-current] { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.pager .pager-info { border: 0; margin-left: auto; }

/* =========================== PLAN CARDS =========================== */
.plan { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 28px; }
.plan.pro { background: var(--surface-2); border-color: var(--line-strong); box-shadow: inset 0 2px 0 var(--primary); }
.plan.teams { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.plan .name { font: 800 24px/1 var(--font-display); letter-spacing: -0.02em; }
.plan .name small { margin-left: 6px; font: 500 var(--fs-label) var(--font-mono); color: var(--muted); letter-spacing: 0; }
.plan .for { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.plan .amt { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font: 800 48px/1 var(--font-display); letter-spacing: -0.02em; }
.plan .amt small { font: 400 14px/1.2 var(--font-mono); letter-spacing: 0; color: var(--muted); }
.plan .alt { margin-top: 8px; font: 400 var(--fs-label)/1.5 var(--font-mono); color: var(--muted); }
.plan .renew { margin-top: 10px; padding: 8px 10px; border-radius: var(--r-ctl); border: 1px dashed var(--line-strong); font: 400 var(--fs-label)/1.45 var(--font-mono); }
.plan .macs { margin-top: 16px; font: 500 var(--fs-label)/1.4 var(--font-mono); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; font-size: var(--fs-sm); }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; line-height: 1.45; }
.plan li::before { content: ""; width: 9px; height: 5px; margin-top: 7px; border-left: 2px solid var(--accent-bright); border-bottom: 2px solid var(--accent-bright); transform: rotate(-45deg); }
.plan .proposal { margin: 20px 0 -12px; }
.plan .btn { margin-top: auto; }
@media (max-width: 640px) { .plan { padding: 24px 20px; } }

/* =========================== ACCOUNT SHELL =========================== */
/* <body class="shell acct"> + _partials/account-nav.html (top bar + side nav) + <main class="shell-main" id="main"> */
body.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-rows: var(--top-h) auto 1fr; font-size: var(--fs-sm); line-height: 1.55; }
.shell-top { grid-column: 1 / -1; position: sticky; top: 0; z-index: var(--z-nav); height: var(--top-h); display: flex; align-items: center; gap: 20px; padding: 0 var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
.shell-ctx { padding-left: 20px; border-left: 1px solid var(--line); font: 500 var(--fs-meta)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.shell-top .top-links { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.shell-top .top-links > a { color: var(--muted); text-decoration: none; font-weight: 500; }
.shell-top .top-links > a:hover { color: var(--text); }
.acct-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 4px; border: 1px solid transparent; border-radius: var(--r-ctl); background: none; font: 600 15px var(--font-display); cursor: pointer; }
.acct-btn:hover, .acct-btn:focus-visible { border-color: var(--line-strong); }
.av { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); font: 600 var(--fs-meta)/1 var(--font-mono); flex: none; }
.pop { position: fixed; inset: calc(var(--top-h) - 4px) 16px auto auto; margin: 0; width: 240px; padding: 6px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-panel); color: var(--text); }
.pop:popover-open { display: block; }
.pop p { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.pop p b { display: block; color: var(--text); font-size: 14px; }
.pop p.pop-meta { padding-top: 0; margin-top: -4px; font: 500 var(--fs-meta)/1.4 var(--font-mono); letter-spacing: .04em; }
.pop a { display: flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: var(--r-ctl); text-decoration: none; font-weight: 500; font-size: 14px; }
.pop a:hover { background: var(--surface); }
.shell-side { position: sticky; top: var(--top-h); align-self: start; height: calc(100dvh - var(--top-h)); overflow-y: auto; padding: 24px 16px; border-right: 1px solid var(--line); grid-row: 2 / span 2; }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a, .side-nav .soon { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: var(--r-ctl); color: var(--muted); text-decoration: none; font-weight: 500; transition: background-color var(--t-tap), color var(--t-tap); }
.side-nav a:hover { color: var(--text); background: var(--surface); }
.side-nav a[aria-current] { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.side-nav .n { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 4px; background: rgb(255 192 32 / .1); color: var(--warn); font: 600 var(--fs-meta)/20px var(--font-mono); text-align: center; }
.side-nav .soon { cursor: default; opacity: .75; }
.side-nav .soon em { margin-left: auto; font: 400 var(--fs-micro)/1 var(--font-mono); font-style: normal; color: var(--muted); }
.side-grp { margin: 20px 0 6px; padding: 0 12px; font: 500 var(--fs-micro)/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-grp:first-child { margin-top: 0; }
.side-help { margin-top: 24px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-panel); font-size: 14px; color: var(--muted); }
.side-help b { display: block; color: var(--text); margin-bottom: 4px; }
.shell-main { min-width: 0; width: 100%; max-width: 1180px; padding: 32px var(--gutter) 56px; grid-column: 2; grid-row: 2 / span 2; }
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.ph h1 { font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -0.02em; line-height: 1.05; }
.ph .say { margin-top: 10px; color: var(--muted); max-width: 64ch; font-size: 16px; }
.shell-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 400 var(--fs-meta)/1.5 var(--font-mono); color: var(--muted); }
.shell-foot a { color: var(--muted); }
.shell-menu-btn { display: none; }
@media (max-width: 959px) {
  body.shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .shell-top .top-links > a { display: none; }
  .shell-main { grid-column: 1; grid-row: auto; }
  /* account: side nav becomes a swipeable strip under the top bar */
  body.acct .shell-side { position: sticky; top: var(--top-h); z-index: var(--z-sticky); height: auto; grid-row: auto; padding: 8px var(--gutter); border-right: 0; border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; scrollbar-width: none; }
  body.acct .side-nav { display: flex; gap: 6px; width: max-content; }
  body.acct .side-nav a { min-height: 40px; white-space: nowrap; border: 1px solid var(--line); }
  body.acct .side-nav a[aria-current] { border-color: var(--accent); box-shadow: none; }
  body.acct .side-help { display: none; }
  /* admin: sidebar moves into the left drawer opened from the top bar */
  body.adm .shell-side { display: none; }
  body.adm .shell-menu-btn { display: inline-flex; }
}
@media (max-width: 520px) { .shell-ctx { display: none; } .acct-btn .who { display: none; } .shell-top .adm-badge { display: none; } .shell-top { gap: 12px; } body.adm .shell-top .brand span { display: none; } }

/* =========================== ADMIN SHELL =========================== */
/* <body class="shell adm"> + _partials/admin-sidebar.html + <main class="shell-main" id="main"><div class="adm-body"> list | .adm-detail </div> */
body.adm .shell-main { max-width: none; }
.adm-badge { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 4px; background: rgb(45 140 235 / .12); color: var(--accent-bright); font: 600 var(--fs-micro)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.adm-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.adm-detail { position: sticky; top: calc(var(--top-h) + 24px); max-height: calc(100dvh - var(--top-h) - 48px); overflow-y: auto; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar .search { flex: 1 1 280px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.kpi b { display: block; font: 800 28px/1 var(--font-display); letter-spacing: -0.02em; }
.kpi span { display: block; margin-top: 8px; font: 400 var(--fs-meta)/1.4 var(--font-mono); color: var(--muted); }
@media (max-width: 1199px) { .adm-body { grid-template-columns: minmax(0, 1fr); } .adm-detail { position: static; max-height: none; } }
@media (max-width: 719px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* =========================== SECTION PATTERNS: FAQ split + final CTA band =========================== */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-head .lede { margin-top: 20px; }
.final { border-top: 1px solid var(--line); background: var(--surface); overflow: clip; }
.final > .ruler { position: absolute; left: 0; right: 0; top: 0; border-top: 0; }
.final .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: end; padding-block: clamp(72px, 9vw, 120px); }
.final h2 { font-size: var(--fs-display); }
.final .side > p:first-child { color: var(--muted); }
.final .btn-row { margin-top: 24px; }
.trust { margin-top: 20px; font: 400 var(--fs-label)/1.5 var(--font-mono); color: var(--muted); }
@media (max-width: 860px) { .faq, .final .wrap { grid-template-columns: minmax(0, 1fr); } .faq-head { position: static; } }

/* =========================== RULER DIVIDER =========================== */
.ruler {
  height: 28px; position: relative; border-top: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 96px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px) 0 0 / 100% 7px no-repeat;
}
@media (max-width: 640px) { .ruler span:nth-of-type(n+3) { display: none; } }
.ruler span { position: absolute; top: 10px; font: 400 var(--fs-micro)/1 var(--font-mono); color: var(--muted); transform: translateX(6px); white-space: nowrap; }
.ruler.has-head i { position: absolute; left: calc(var(--at, 62%) - 6px); top: 0; width: 13px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.ruler.has-head::after { content: ""; position: absolute; left: var(--at, 62%); top: 0; width: 1px; height: 100vh; background: linear-gradient(var(--accent), transparent 70%); opacity: .5; pointer-events: none; }

/* =========================== HERO MOTIF (approval record) =========================== */
.hero-motif { isolation: isolate; position: relative; } /* the motif layers anchor to their own section, not the viewport (signup bands, 2026-10-26) */
.hero-motif::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 520px at 78% 18%, rgb(45 140 235 / .13), transparent 62%), linear-gradient(180deg, #1A263D55, transparent 55%); }
.hero-motif::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / .022) 0 26px, transparent 26px 48px);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent); mask-image: linear-gradient(to top, #000 10%, transparent); }

/* =========================== EDITOR WINDOW + TIMELINE (fictional mockup data, app colours) =========================== */
.editor { width: 100%; background: var(--panel); border: 1px solid #3a3a3a; border-radius: var(--r-panel); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); overflow: hidden; font: 400 var(--fs-micro)/1.3 var(--font-mono); color: var(--panel-text); }
.ed-bar { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--panel-bar); border-bottom: 1px solid var(--panel-line); }
.ed-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3d3d3d; flex: none; }
.ed-bar span { margin-inline: auto; color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-top { display: grid; grid-template-columns: minmax(0, 1fr) 280px; border-bottom: 1px solid var(--panel-line); }
.monitor { padding: 10px 12px 8px; border-right: 1px solid var(--panel-line); min-width: 0; }
.mon-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; white-space: nowrap; }
.mon-head b { color: #e6e6e6; font-weight: 500; }
.frame { position: relative; aspect-ratio: 16 / 9; background: var(--sky-1); overflow: hidden; border-radius: 2px; }
.frame > svg { width: 100%; height: 100%; }
.cap { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; font: 800 clamp(13px, 1.9vw, 25px)/1.2 var(--font-display); color: #fff; text-shadow: 0 2px 0 rgb(0 0 0 / .55); padding: 0 8%; text-wrap: balance; }
.cap .w { position: relative; display: inline-block; animation: rise 500ms var(--ease) both; animation-delay: calc(1000ms + var(--i) * 70ms); }
.cap .w::after { content: attr(data-w); position: absolute; inset: 0; color: var(--key); opacity: 0; animation: hl 12s linear infinite; animation-delay: calc(1400ms + var(--i) * 1.4s); }
.mon-foot { display: flex; align-items: center; gap: 14px; margin-top: 8px; white-space: nowrap; }
.tc { color: var(--accent); font: 500 13px/1 var(--font-mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.transport { display: flex; align-items: center; gap: 12px; margin-inline: auto; }
.transport i { width: 0; height: 0; border-left: 8px solid #cfcfcf; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.transport s { width: 8px; height: 10px; border-left: 2px solid #8a8a8a; border-right: 2px solid #8a8a8a; text-decoration: none; }
.inspector { padding: 10px 12px; background: #1c1c1c; min-width: 0; }
.insp-tabs { display: flex; gap: 12px; color: var(--panel-dim); margin-bottom: 12px; white-space: nowrap; }
.insp-tabs b { color: #e6e6e6; font-weight: 500; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.prop { display: grid; grid-template-columns: 64px 76px 1fr; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #262626; background: linear-gradient(#333, #333) 156px 50% / 100% 1px no-repeat; white-space: nowrap; }
.prop em { font-style: normal; color: #9ec3ff; }
.kf { width: 7px; height: 7px; background: var(--key); transform: rotate(45deg); justify-self: start; margin-left: var(--k, 24px); }
.kf.off { background: none; border: 1px solid #6a6a6a; }
.insp-h { margin: 14px 0 4px; color: #e6e6e6; }
.timeline { display: grid; grid-template-columns: 64px minmax(0, 1fr); background: var(--panel); }
.tl-tools { grid-column: 1 / -1; height: 26px; display: flex; align-items: center; gap: 14px; padding: 0 12px; border-bottom: 1px solid #2a2a2a; color: var(--panel-dim); white-space: nowrap; overflow: hidden; }
.tl-tools b { color: #e6e6e6; font-weight: 500; }
.tl-tools .tc { font-size: var(--fs-micro); }
.heads { border-right: 1px solid var(--panel-line); }
.heads div, .lane { height: 34px; border-bottom: 1px solid #262626; }
.heads div:first-child, .tl-ruler { height: 22px; }
.heads div { display: flex; align-items: center; justify-content: center; }
.heads span { padding: 2px 6px; border-radius: var(--r-clip); background: #24476e; color: #dfeaff; font-size: 10.5px; }
.heads .a span { background: #1d4f3c; color: #d6fbe9; }
.lanes { position: relative; overflow: hidden; }
.tl-ruler { position: relative; border-bottom: 1px solid var(--panel-line); background: repeating-linear-gradient(90deg, #555 0 1px, transparent 1px 8.333%) 0 100% / 100% 6px no-repeat; }
.tl-ruler span { position: absolute; top: 4px; font-size: 10px; color: #8a8a8a; transform: translateX(4px); }
.lane { position: relative; }
.clip {
  position: absolute; top: 3px; bottom: 3px; left: var(--x); width: var(--w); border-radius: var(--r-clip); overflow: hidden;
  background: var(--clip-v); color: #0f1a29; padding: 3px 6px; font-size: 10.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), inset 0 0 0 1px rgb(0 0 0 / .25);
  animation: snap var(--t-hero) var(--ease) both; animation-delay: calc(700ms + var(--i) * 75ms);
}
.clip.cc { background: #d6d6d6; color: #1b1b1b; }
.clip.dim { background: #5d7ea8; }
.clip.audio { background: var(--clip-a); color: #06281a; padding-top: 2px; line-height: 1.1; }
.clip.audio svg { position: absolute; left: 0; right: 0; bottom: 1px; height: 13px; width: 100%; color: #0b5a3a; }
.clip .kfs { position: absolute; left: 0; right: 0; bottom: 6px; height: 0; }
.clip .kfs i { position: absolute; top: -4px; left: var(--k); width: 8px; height: 8px; background: var(--key); transform: rotate(45deg); box-shadow: 0 0 0 1px #4a3500; }
.playhead { position: absolute; inset: 0; pointer-events: none; animation: scrub 12s linear 1.4s infinite; }
.playhead::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--accent); }
.playhead::after { content: ""; position: absolute; left: -6px; top: 0; width: 13px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
/* stills + reduced motion: pin a finished frame (playhead 43%, fourth caption word lit) */
html.shot .playhead { animation: none; transform: translateX(43%); }
html.shot .cap .w::after { animation: none; }
html.shot .cap .w:nth-child(4)::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .playhead { transform: translateX(43%); }
  .cap .w:nth-child(4)::after { opacity: 1; }
}

/* =========================== MOCKUP KIT (panels used on home, features, how it works) =========================== */
.panel { min-width: 0; background: var(--panel); border: 1px solid #333; border-radius: var(--r-panel); overflow: hidden; font: 400 var(--fs-micro)/1.3 var(--font-mono); color: #b5b5b5; box-shadow: inset 0 1px 0 rgb(255 255 255 / .05); }
.panel-h { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--panel-bar); border-bottom: 1px solid var(--panel-line); white-space: nowrap; }
.panel-h b { color: #e6e6e6; font-weight: 500; }
.panel-h span { overflow: hidden; text-overflow: ellipsis; }
/* tools strip */
.tools { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px; background: #2a2a2a; border-bottom: 1px solid #2a2a2a; }
.tools span { background: var(--panel); padding: 10px 0; text-align: center; color: #cfcfcf; }
.tools span.on { background: #24476e; color: #fff; }
/* multicam */
.multi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px; }
.multi i { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-clip); background: linear-gradient(170deg, var(--sky-2), var(--sky-3) 62%, var(--ridge-2)); }
.multi i:nth-child(2) { background: linear-gradient(170deg, #1d2a33, #5f7a87 70%, #121a20); }
.multi i:nth-child(3) { background: linear-gradient(170deg, #22303f, #8aa6c8 70%, #141c27); }
.multi i:nth-child(4) { background: linear-gradient(170deg, #262a33, #7c8396 70%, #15171c); }
.multi i.live { outline: 2px solid var(--primary); outline-offset: -2px; }
.multi i b { position: absolute; left: 4px; bottom: 3px; font-weight: 500; color: #fff; text-shadow: 0 1px 0 #000; }
/* morph cut */
.morph { padding: 4px 12px 14px; }
.morph .trk { position: relative; height: 30px; }
.morph .trk b { position: absolute; top: 4px; bottom: 4px; border-radius: var(--r-clip); background: var(--clip-v); color: #0f1a29; padding: 5px 6px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.morph .fx { position: absolute; top: 2px; bottom: 2px; left: 46%; width: 12%; border-radius: var(--r-clip); background: repeating-linear-gradient(135deg, #e6e6e6 0 4px, #bdbdbd 4px 8px); color: #111; display: grid; place-items: center; font-weight: 600; }
/* captions */
.cap-mock { display: grid; grid-template-columns: 1.15fr 1fr; }
.cap-mock .frame { border-radius: 0; }
.looks { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-top: 1px solid #2a2a2a; }
.looks span { padding: 6px 10px; border-radius: 4px; background: #262626; color: #cfcfcf; }
.looks span.on { background: var(--key); color: #241a00; font-weight: 600; }
.srt { border-left: 1px solid var(--panel-line); padding: 6px 0; min-width: 0; }
.srt p { display: grid; grid-template-columns: 22px 1fr; gap: 6px 10px; padding: 8px 12px; border-bottom: 1px solid #262626; }
.srt p span { color: var(--panel-dim); }
.srt p em { font-style: normal; color: var(--accent-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srt p strong { grid-column: 2; font: 400 12px/1.4 var(--font-display); color: #e6e6e6; }
.srt p.on { background: #1c2636; }
.hl { color: var(--key); }
/* shorts phones */
.phones { display: flex; gap: clamp(12px, 2vw, 24px); align-items: flex-end; justify-content: flex-end; }
.phone { position: relative; width: clamp(120px, 14vw, 188px); aspect-ratio: 9 / 16; border-radius: var(--r-panel); overflow: hidden; border: 1px solid #3a3a3a; background: var(--sky-1); flex: none; }
.phone > svg { position: absolute; height: 100%; width: 316%; max-width: none; left: 50%; transform: translateX(var(--crop, -50%)); }
.phone:nth-child(2) { width: clamp(140px, 17vw, 228px); }
.safe { position: absolute; inset: 7% 16% 22% 6%; border: 1px dashed rgb(79 163 245 / .9); border-radius: var(--r-clip); }
.safe-ui { position: absolute; right: 5%; bottom: 24%; display: grid; gap: 10px; }
.safe-ui i { width: 14px; height: 14px; border-radius: 50%; background: rgb(255 255 255 / .55); }
.safe-bar { position: absolute; left: 6%; right: 20%; bottom: 7%; height: 9%; border-radius: var(--r-clip); background: rgb(255 255 255 / .16); }
.ph-cap { position: absolute; left: 8%; right: 18%; top: 54%; font: 800 clamp(11px, 1.1vw, 15px)/1.15 var(--font-display); color: #fff; text-align: center; text-shadow: 0 2px 0 rgb(0 0 0 / .6); }
.ph-cap em { font-style: normal; color: var(--key); }
.phone-tag { position: absolute; top: 8px; left: 8px; padding: 3px 6px; border-radius: var(--r-clip); background: rgb(0 0 0 / .65); font: 500 10.5px/1.2 var(--font-mono); color: #e6e6e6; }
/* highlight finder score */
.score { margin-top: 28px; display: grid; gap: 8px; max-width: 420px; }
.score p { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; font: 400 var(--fs-label)/1.3 var(--font-mono); color: var(--muted); }
.score p i { height: 4px; border-radius: 2px; background: var(--accent); width: var(--v); }
.score p b { color: var(--text); font-weight: 500; }
/* colour wheels + scope (wheels are hue circles, toned down under a dark centre) */
.wheel { display: inline-block; width: 64px; height: 64px; border-radius: 50%; flex: none; position: relative; box-shadow: inset 0 0 0 1px #000;
  background: conic-gradient(#b8576a, #b3a25a, #4f9f73, #4f8fb8, #5b6fd6, #a05bc2, #b8576a); }
.wheel::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(#3a3a3a 0, #3a3a3a 18%, transparent 72%); }
.wheel::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #fff; left: 50%; top: 50%; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))); }
.wheels { display: flex; justify-content: space-around; gap: 10px; padding: 18px 14px 12px; }
.wheels figure { text-align: center; }
.wheels .wheel { width: 84px; height: 84px; }
.wheels figcaption { margin-top: 8px; }
.scope { margin: 0 14px 14px; height: 120px; background: #0c0c0c; border-radius: 4px; overflow: hidden; }
.scope svg { width: 100%; height: 100%; }
/* loudness */
.meter { display: flex; gap: 3px; align-items: flex-end; height: 70px; margin-left: auto; }
.meter i { width: 6px; height: var(--h); background: linear-gradient(to top, var(--clip-a) 0 70%, var(--key) 70% 88%, var(--meter-clip) 88%); border-radius: 1px; }
.loud { padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; }
.loud .big { font: 500 34px/1 var(--font-mono); color: #e6e6e6; }
.loud .big small { display: block; margin-top: 6px; font-size: 12px; color: var(--panel-dim); }
.lufs { display: flex; gap: 4px; height: 150px; align-items: flex-end; justify-content: flex-end; }
.lufs i { width: 14px; height: var(--h); border-radius: 2px; background: linear-gradient(to top, var(--clip-a) 0 62%, var(--key) 62% 84%, var(--meter-clip) 84%); }
.target { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; border-top: 1px solid #2a2a2a; padding-top: 10px; }
.target b { color: var(--clip-a); font-weight: 500; }
/* voiceover */
.vo-mock .row { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #262626; }
.vo-mock .row span { color: var(--panel-dim); }
.vo-mock .row svg { height: 22px; width: 100%; color: var(--clip-a); }
.vo-mock .tx { padding: 12px; font: 400 14px/1.6 var(--font-display); color: #d8d8d8; }
.vo-mock .tx s { text-decoration: line-through; text-decoration-color: var(--danger); color: #8a8a8a; }
.vo-mock .tx mark { background: rgb(45 140 235 / .24); color: #e8f2ff; padding: 0 3px; border-radius: 2px; }
.vo-mock .local { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 10px 12px; background: var(--panel-bar); border-top: 1px solid #2a2a2a; }
.vo-mock .local b { color: var(--clip-a); font-weight: 500; }
/* workflow vignettes */
.vig { min-height: 132px; border-radius: var(--r-panel); background: var(--panel); border: 1px solid #333; padding: 10px; font: 400 var(--fs-micro)/1.3 var(--font-mono); color: #b5b5b5; position: relative; overflow: hidden; }
.v-bin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.v-bin i { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-clip); background: linear-gradient(160deg, var(--sky-2), var(--sky-3) 62%, var(--ridge-3)); }
.v-bin i:nth-child(2) { background: linear-gradient(160deg, #24342f, #7f9a8a 60%, #161c19); }
.v-bin i:nth-child(3) { background: #0d2f22; }
.v-bin i:nth-child(4) { background: linear-gradient(200deg, #343a4d, #a7adbd 70%, #1d2029); }
.v-bin i:nth-child(5) { background: linear-gradient(170deg, var(--ridge-1), var(--sky-4) 68%, var(--ridge-2)); }
.v-bin i:nth-child(6) { background: var(--panel-2); }
.v-bin + p { margin-top: 8px; color: var(--panel-dim); }
.v-cut .trk { position: relative; height: 26px; margin-top: 10px; }
.v-cut .trk b { position: absolute; top: 0; bottom: 0; border-radius: var(--r-clip); background: var(--clip-v); }
.v-cut .trk.a b { background: var(--clip-a); }
.v-cut .blade { position: absolute; top: 4px; bottom: 6px; left: 54%; width: 1px; background: var(--primary); }
.v-cut .blade::before { content: "C"; position: absolute; top: -2px; left: 6px; color: var(--primary); }
.v-cap p { padding: 5px 0; border-bottom: 1px solid #2a2a2a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-cap p span { color: var(--accent-bright); margin-right: 8px; }
.v-grade { display: flex; gap: 12px; align-items: center; }
.v-exp p { display: flex; justify-content: space-between; gap: 8px; padding: 5px 6px; border-radius: var(--r-clip); white-space: nowrap; }
.v-exp p.on { background: #22324a; color: #e6eefc; }
.v-exp p span { color: var(--panel-dim); }
.v-exp p.on span { color: var(--accent-bright); }
@media (max-width: 640px) {
  .tools { grid-template-columns: repeat(6, 1fr); }
  .tools span:nth-child(n+7) { display: none; }
  .multi { grid-template-columns: repeat(2, 1fr); }
  .cap-mock { grid-template-columns: 1fr; }
  .srt { border-left: 0; border-top: 1px solid var(--panel-line); }
  .phone { width: calc((100vw - 2 * var(--gutter) - 24px) * .3); }
  .phone:nth-child(2) { width: calc((100vw - 2 * var(--gutter) - 24px) * .4); }
  .phone-tag { display: none; }
}
@media (max-width: 380px) { .wheels .wheel { width: 64px; height: 64px; } .loud .big { font-size: 28px; } }

/* Screenshot crop: --x/--y = top-left of the visible region as a fraction of the image, --z = zoom, --ar = frame aspect */
.crop { position: relative; display: block; overflow: hidden; aspect-ratio: var(--ar, 16 / 9); background: var(--panel); }
.crop img { position: absolute; left: 0; top: 0; width: calc(var(--z, 1) * 100%); max-width: none; transform: translate(calc(var(--x, 0) * -100%), calc(var(--y, 0) * -100%)); }

/* ---- Notification bell (2026-10-26): account top bar, admin top bar, public header when signed in ---- */
.bell { position: relative; display: inline-flex; }
.bell-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: var(--r-ctl); background: none; color: var(--muted); cursor: pointer; transition: color var(--t-tap), border-color var(--t-tap); }
.bell-btn:hover, .bell-btn:focus-visible { color: var(--text); border-color: var(--line-strong); }
.bell-n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 11px/18px var(--font-mono); text-align: center; }
.pop.bell-pop { width: min(380px, calc(100vw - 32px)); padding: 0; max-height: min(70vh, 560px); overflow-y: auto; }
.bell-h { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.bell-h b { font-weight: 600; }
.bell-link { padding: 4px 0; border: 0; background: none; color: var(--accent-bright); font: 500 13px var(--font-body, inherit); cursor: pointer; }
.bell-link:hover { text-decoration: underline; }
.bell-empty { margin: 0; padding: 22px 14px; color: var(--muted); text-align: center; }
.bell-list { list-style: none; margin: 0; padding: 0; }
.bell-list li { display: flex; align-items: flex-start; border-bottom: 1px solid var(--line); }
.bell-list li.is-new { background: rgb(45 140 235 / .08); }
.bell-list li.is-new .bell-open button b::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.bell-open { flex: 1; min-width: 0; }
.bell-open button { display: grid; gap: 3px; width: 100%; padding: 12px 6px 12px 14px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.bell-open button:hover { background: rgb(255 255 255 / .03); }
.bell-open b { font-weight: 600; font-size: 14px; }
.bell-open span { color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.bell-open time { color: var(--muted); font: 400 var(--fs-micro)/1.4 var(--font-mono); }
.bell-x { flex: none; width: 36px; height: 36px; margin: 8px 6px 0 0; border: 0; border-radius: var(--r-ctl); background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.bell-x:hover { color: var(--text); background: rgb(255 255 255 / .06); }
.bell-f { padding: 10px 14px; text-align: center; }
.nav-cta .bell { margin-right: 4px; }

/* ---- Quick buttons + back to top (2026-10-26, Settings > Quick buttons) ---- */
.quick-list { position: fixed; right: 0; top: 50%; z-index: 40; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-height: calc(100dvh - 148px); overflow-y: auto; scrollbar-width: none; }   /* 12 buttons on a short screen */
.quick-btn { display: inline-flex; align-items: center; height: 46px; min-width: 46px; padding: 0 13px; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--r-ctl) 0 0 var(--r-ctl); background: var(--surface-2); color: var(--text); text-decoration: none; font: 600 14px var(--font-body, inherit); box-shadow: 0 8px 24px -12px rgb(0 0 0 / .8); cursor: pointer; transition: background-color var(--t-tap), color var(--t-tap); }
.quick-btn svg { flex: none; color: var(--accent-bright); }
.quick-btn span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .25s var(--ease, ease), opacity .2s, margin .25s; }
.quick-btn:hover, .quick-btn:focus-visible { background: var(--accent); color: #fff; }
.quick-btn:hover svg, .quick-btn:focus-visible svg { color: #fff; }
.quick-btn:hover span, .quick-btn:focus-visible span { max-width: 220px; opacity: 1; margin-left: 10px; }
.quick-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.to-top { position: fixed; right: 16px; bottom: 20px; z-index: 40; border-right: 1px solid var(--line-strong); border-radius: var(--r-ctl); }
.to-top[hidden] { display: none; }
@media (max-width: 760px) { .quick-desk .quick-list { display: none; } .quick-list { top: auto; bottom: 76px; transform: none; } .to-top { right: 12px; bottom: 14px; } }
@media (max-width: 760px) {   /* bottom bar on phones (2026-11-01): icons only, labels stay for screen readers; 12 buttons scroll sideways */
  .quick-bottom { height: calc(54px + env(safe-area-inset-bottom, 0px)); }
  .quick-bottom .quick-list { left: 0; right: 0; bottom: 0; flex-direction: row; align-items: stretch; gap: 0; max-height: none; overflow: auto hidden; padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--line-strong); background: var(--surface-2); box-shadow: 0 -8px 24px -12px rgb(0 0 0 / .8); }
  .quick-bottom .quick-list .quick-btn { flex: 1 0 52px; justify-content: center; height: 54px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text); box-shadow: none; }
  .quick-bottom .quick-list .quick-btn svg { color: var(--accent-bright); }
  .quick-bottom .quick-list .quick-btn span { max-width: 0; margin: 0; opacity: 0; }
  .quick-bottom .quick-list .quick-btn:active { background: var(--accent); }
  .quick-bottom .quick-list .quick-btn:active svg { color: #fff; }
  .quick-bottom .quick-list .quick-btn:focus-visible { outline-offset: -2px; }
  .quick-bottom .to-top { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .quick-btn span { transition: none; } }
@media print { .quick-list, .to-top, .quick-bottom { display: none !important; } }

/* ---- header sub-menus + contact pop-up (2026-10-26) ---- */
.has-sub { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-btn { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.sub-btn:hover, .has-sub.is-open .sub-btn { color: var(--text); }
.sub-btn svg { transition: transform var(--t-tap); }
.has-sub.is-open .sub-btn svg { transform: rotate(180deg); }
.nav-sub { position: absolute; top: 100%; left: -14px; z-index: 5; min-width: 220px; margin: 0; padding: 14px 0 0; list-style: none; display: none; }
.nav-sub::before { content: ""; position: absolute; inset: 10px 0 0; z-index: -1; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-panel); box-shadow: 0 18px 40px rgb(0 0 0 / .4); }
.nav-sub li:first-child { padding-top: 6px; } .nav-sub li:last-child { padding-bottom: 6px; }
.nav-sub a { display: block; padding: 9px 16px; white-space: nowrap; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--surface-2); }
.has-sub:is(:hover, :focus-within, .is-open):not(.is-shut) .nav-sub { display: block; }
.sheet-sub { list-style: none; margin: 0 0 6px; padding: 4px 0 8px 14px; border-bottom: 1px solid var(--line); }
.sheet-links .sheet-sub a { display: block; padding: 9px 0; border: 0; font: 500 16px/1.3 var(--font-display); color: var(--muted); text-decoration: none; }
.sheet-links .sheet-sub a[aria-current] { padding-left: 12px; color: var(--text); }
.sheet-sub a:hover { color: var(--text); }
.contact-modal { padding: 0; }
.contact-frame { display: block; width: 100%; height: min(680px, calc(100dvh - 140px)); border: 0; background: var(--surface); }
body.embed { background: var(--surface); min-height: 0; }
.embed-form { padding: 20px; }
.embed-form > .muted { margin-bottom: 16px; }
.embed-form .ticket-form { padding: 0; }
.solo.hero-motif::after { display: none; } /* auth pages: no horizon stripes behind or under the form */

/* bell: a new notification arrived while the page was open (site.js) */
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.bell-btn.is-new svg { animation: bell-ring .9s ease-in-out 2; transform-origin: 50% 10%; }
@media (prefers-reduced-motion: reduce) { .bell-btn.is-new svg { animation: none; } }

/* site search (2026-10-30): a compact button in the header opens the search window on every page (partials/site-search) */
.nav-search { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; min-width: 38px; padding: 0 8px 0 11px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: none; color: var(--muted); font: 500 14px/1 var(--font-display); white-space: nowrap; cursor: pointer; transition: color var(--t-tap), border-color var(--t-tap); }
.nav-search:hover, .nav-search:focus-visible { color: var(--text); border-color: var(--text); }
.nav-search svg { flex: none; }
.nav-search kbd { font: 500 11px/1 var(--font-mono); padding: 3px 5px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); }
.nav-search-m { display: none; }
@media (max-width: 1600px) { .nav-search:not(.nav-search-m) { padding: 0; } .nav-search:not(.nav-search-m) :is(span, kbd) { display: none; } }
@media (max-width: 1320px) { .nav-search-m { display: inline-flex; width: 44px; height: 44px; padding: 0; margin-left: auto; } .nav-search-m + .menu-btn { margin-left: 0; } }
.ss { width: min(680px, calc(100% - 32px)); margin-top: min(12vh, 120px); padding: 0; overflow: hidden; max-height: calc(100dvh - 2 * min(12vh, 120px)); }
.ss[open] { display: flex; flex-direction: column; }
.ss::backdrop { background: rgb(5 8 15 / .6); }
.ss-form { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.ss-form .search { flex: 1; }
.ss-form .input { border: 0; background: none; box-shadow: none; min-height: 44px; font-size: 17px; }
.ss-form .input:focus { outline: none; }
.ss-form:focus-within { box-shadow: inset 0 -2px 0 var(--accent); }
.ss-x { flex: none; display: inline-grid; place-items: center; min-width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.ss-x kbd { font: 500 11px/1 var(--font-mono); padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 4px; }
.ss-x:hover kbd, .ss-x:focus-visible kbd { color: var(--text); border-color: var(--text); }
.ss-body { overflow: auto; overscroll-behavior: contain; padding: 8px; }
.ss-list { list-style: none; margin: 0; padding: 0; }
.ss-list a { display: grid; gap: 3px; padding: 10px 12px; border-radius: var(--r-ctl); text-decoration: none; color: var(--text); }
.ss-list [aria-selected="true"] a { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.ss-list b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.ss-sec { font-size: 12px; color: var(--muted); }
.ss-snip { font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ss mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.ss-none { margin: 0; padding: 14px 12px 4px; color: var(--muted); font-size: 15px; }
.ss-none b { color: var(--text); font-weight: 600; }
.ss-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 8px 12px; }
.ss-hint span { margin-right: 4px; font-size: 13px; color: var(--muted); }
.ss-hint a { padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); font-size: 14px; text-decoration: none; color: var(--text); }
.ss-hint a:hover, .ss-hint a:focus-visible { border-color: var(--text); }
.ss-hint[hidden], .ss-none[hidden], .ss-all[hidden] { display: none; }
.ss .sofia-box { margin: 10px 4px 4px; max-width: none; }
.ss-all { display: block; margin: 6px 4px 2px; padding: 10px 8px; border-top: 1px solid var(--line); font-size: 14px; color: var(--accent-bright); text-decoration: none; }
.ss-all:hover, .ss-all:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .ss { width: calc(100% - 16px); margin-top: 8px; max-height: calc(100dvh - 16px); } }

/* status tabs above an admin list (2026-10-31, admin/_view-tabs) */
.view-tabs { margin-bottom: 14px; }
a.tab { display: inline-flex; align-items: center; text-decoration: none; }
.tab[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.view-note { margin: -6px 0 12px; font-size: 13px; color: var(--muted); }

/* a folded group inside an admin page (2026-10-31): long lists stay one click away instead of one long scroll */
.fold { border-top: 1px solid var(--line); }
.fold:last-of-type { border-bottom: 1px solid var(--line); }
.fold[hidden] { display: none; }
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 2px; cursor: pointer; font-weight: 600; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; flex: none; font: 400 20px/1 var(--font-mono); color: var(--muted); }
.fold[open] > summary::after { content: "–"; }
.fold > summary small { margin-left: auto; font: 500 var(--fs-meta)/1 var(--font-mono); color: var(--muted); }
.fold > div, .fold > ul, .fold > ol { margin: 0 0 14px; }
.act-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; list-style: none; }
.act-row:first-child { border-top: 0; }
.act-row .when { font: 500 var(--fs-meta)/1.5 var(--font-mono); color: var(--muted); }
.act-row .where { grid-column: 2 / -1; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.act-row .kind { font-size: 12px; color: var(--muted); white-space: nowrap; }
.act-list { margin: 0; padding: 0; }
@media (max-width: 640px) { .act-row { grid-template-columns: minmax(0, 1fr) auto; } .act-row .when { grid-column: 1 / -1; } .act-row .where { grid-column: 1 / -1; } }
