/* Brand Hub by Design Minds.
   Theme tokens (--ink, --paper, --support, --accent, --font) are set per client in the page head. */

:root {
  --ink-90: color-mix(in srgb, var(--ink) 90%, #fff);
  --muted: color-mix(in srgb, var(--ink) 64%, #fff);
  --faint: color-mix(in srgb, var(--ink) 56%, #fff);
  --line: color-mix(in srgb, var(--ink) 12%, #fff);
  --line-2: color-mix(in srgb, var(--ink) 20%, #fff);
  --soft: color-mix(in srgb, var(--support) 9%, #fff);
  --soft-2: color-mix(in srgb, var(--support) 16%, #fff);
  --ok: #1F7A4D;
  --warn: #9A6400;
  --bad: var(--accent);
  --radius: 2px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-w: 248px;
  --top-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, #fff); }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */
.eyebrow, .label {
  display: block; font-size: 11px; line-height: 1.4; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow b { font-weight: 600; color: var(--ink); margin-right: 14px; }
.eyebrow-light { color: rgba(255,255,255,.72); }
.label { margin-bottom: 10px; }
.label-gap { margin-top: 40px; }
.h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.12; font-weight: 300; letter-spacing: -.015em; margin: 12px 0 16px; }
.h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.14; font-weight: 300; letter-spacing: -.015em; margin: 14px 0 0; max-width: 18em; }
.h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.25; font-weight: 300; letter-spacing: -.005em; margin: 0 0 12px; }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-90); max-width: 40em; margin: 0 0 28px; }
.lede-xl { font-size: clamp(20px, 2.3vw, 26px); line-height: 1.45; font-weight: 300; max-width: 30em; }
.sub-lede { color: var(--muted); max-width: 42em; margin: 0 0 28px; }
.small { font-size: 13px; line-height: 1.55; color: var(--muted); }
.prose p { margin: 0 0 16px; max-width: 36em; }
.prose .label { margin-top: 4px; }
.prose p + .label { margin-top: 28px; }
.signoff { font-weight: 500; }
.opt { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 13px; }
.help { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn small { font-weight: 400; opacity: .7; letter-spacing: 0; margin-left: 4px; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 86%, #fff); text-decoration: none; }
.btn-paper { background: #fff; color: var(--ink); }
.btn-paper:hover { background: color-mix(in srgb, #fff 88%, var(--support)); text-decoration: none; }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: #fff; text-decoration: none; }
.btn-line { border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); text-decoration: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 13px; }
.btn .i-arrow { transition: transform .2s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.textlink:hover { text-decoration-color: var(--accent); }
.textlink .i { width: 16px; height: 16px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field label, .field .label-legend, .field .label { font-size: 13px; font-weight: 600; letter-spacing: .01em; text-transform: none; color: var(--ink); margin: 0; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-link { font-size: 13px; color: var(--muted); }
.field-static { font-size: 15px; } .field-static .label { color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input:not([type]), select {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='1.6'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
input:hover, select:hover { border-color: var(--faint); }
input:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); border-radius: var(--radius); }
.pw-toggle[aria-pressed=true] { color: var(--ink); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 3px; }
.pw-meter span { background: var(--line); transition: background .2s; }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: var(--accent); }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: var(--warn); }
.pw-meter[data-score="3"] span:nth-child(-n+3) { background: var(--ok); }
.pw-meter[data-score="4"] span { background: var(--ok); }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 36px; height: 20px; border-radius: 20px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch-ui::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--ink); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-sm { font-size: 13px; }

/* Segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 3px; background: #fff; }
.seg button { border: 0; background: none; padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: 1px; display: inline-flex; gap: 10px; align-items: center; transition: background .2s, color .2s; }
.seg button span { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--faint); }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected=true], .seg button[aria-checked=true] { background: var(--ink); color: #fff; }
.seg button[aria-selected=true] span, .seg button[aria-checked=true] span { color: rgba(255,255,255,.6); }
.seg-sm button { padding: 7px 12px; font-size: 13px; }

/* Flash */
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); font-size: 14px; margin: 0 0 24px; border: 1px solid; }
.flash .i { margin-top: 2px; }
.flash-success { background: color-mix(in srgb, var(--ok) 7%, #fff); border-color: color-mix(in srgb, var(--ok) 30%, #fff); color: color-mix(in srgb, var(--ok) 80%, #000); }
.flash-info { background: var(--soft); border-color: var(--line-2); }
.flash-error { background: color-mix(in srgb, var(--accent) 6%, #fff); border-color: color-mix(in srgb, var(--accent) 35%, #fff); color: color-mix(in srgb, var(--accent) 85%, #000); }

/* ---------- Auth ---------- */
.auth-grid { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.auth-brand { background: var(--ink); color: #fff; padding: 40px clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); }
.auth-brand.is-neutral { background: #151515; }
.auth-brand-mark { flex: 1; display: flex; align-items: center; }
.auth-logo { width: min(62%, 340px); color: #fff; }
.auth-wordmark { font-size: 56px; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.auth-brand-foot { display: flex; align-items: flex-end; gap: 22px; font-size: 12px; color: rgba(255,255,255,.62); letter-spacing: .02em; }
.auth-brand-meta { display: grid; gap: 4px; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.18); }
.auth-studio { display: block; flex: none; line-height: 0; opacity: .92; transition: opacity .2s; }
.auth-studio:hover, .auth-studio:focus-visible { opacity: 1; }
.auth-studio img { width: 116px; height: auto; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px var(--gutter) 28px; }
.auth-card { width: 100%; max-width: 400px; margin: auto 0; }
.auth-title { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; font-weight: 300; letter-spacing: -.015em; margin: 12px 0 14px; }
.auth-lede { color: var(--muted); margin: 0 0 32px; }
.auth-note { font-size: 13px; color: var(--muted); margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-credit { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin: 40px 0 0; }
.auth-credit .i { width: 14px; height: 14px; }
.auth-credit a { color: var(--muted); }
@media (max-width: 820px) {
  .auth-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-brand { padding: 22px var(--gutter) 26px; min-height: 0; }
  .auth-brand-mark { padding: 26px 0 18px; }
  .auth-logo { width: 150px; }
  .auth-wordmark { font-size: 40px; }
  .auth-brand-meta span:last-child { display: none; }
  .auth-studio img { width: 76px; }
  .auth-panel { justify-content: flex-start; padding-top: 36px; }
}

/* Plain pages */
.plain-wrap { min-height: 100vh; display: grid; place-items: center; padding: 48px var(--gutter); }
.plain-card { max-width: 480px; }
.plain-logo { width: 120px; margin-bottom: 40px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); }
.brandmark { display: flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; }
.brandmark-logo svg { height: 24px; width: auto; color: var(--ink); }
.brandmark-rule { width: 1px; height: 22px; background: var(--line-2); }
.brandmark-label { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.topnav { display: flex; align-items: center; gap: 8px; }
.topnav-share { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-decoration: none; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); transition: border-color .2s; }
.topnav-share:hover, .topnav-share.is-on { border-color: var(--ink); text-decoration: none; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 8px; border-radius: var(--radius); font-size: 13px; font-weight: 500; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--soft); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; letter-spacing: .04em; flex: none; }
.avatar-lg { width: 40px; height: 40px; font-size: 13px; background: var(--soft-2); color: var(--ink); }
.usermenu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 280px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -12px rgba(0,0,0,.18); border-radius: var(--radius); padding: 8px; display: grid; }
.usermenu-who { padding: 12px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; gap: 2px; font-size: 13px; }
.usermenu-who span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.usermenu-who .pill { justify-self: start; margin-top: 8px; }
.usermenu-who small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.usermenu-panel a, .usermenu-panel button { display: block; width: 100%; text-align: left; padding: 10px 12px; font-size: 14px; background: none; border: 0; text-decoration: none; border-radius: var(--radius); }
.usermenu-panel a:hover, .usermenu-panel button:hover { background: var(--soft); }
.pill { display: inline-block; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 20px; background: var(--soft-2); color: var(--ink); white-space: nowrap; }
.pill-owner, .pill-admin { background: var(--ink); color: #fff; }
.pill-supplier { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
@media (max-width: 640px) {
  .usermenu-name, .topnav-share span { display: none; }
  .brandmark { gap: 12px; }
  .brandmark-logo svg { height: 20px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; }
.hero-in { max-width: 1440px; margin: 0 auto; padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(44px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero-mark { color: #fff; }
.hero-logo { width: 100%; max-width: 440px; }
.hero-title { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; font-weight: 300; letter-spacing: -.025em; margin: 14px 0 20px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 36px; font-size: 14px; color: rgba(255,255,255,.7); }
.hero-status { color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.hero-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-rule { height: 4px; background: var(--accent); width: 100%; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; align-items: start; }
  .hero-logo { max-width: 200px; }
  .hero-actions .btn { width: 100%; justify-content: flex-start; white-space: normal; flex-wrap: wrap; text-align: left; }
}

/* ---------- Hub layout ---------- */
.hub { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding: 0 var(--gutter); }
.sidenav { position: sticky; top: var(--top-h); align-self: start; max-height: calc(100vh - var(--top-h)); overflow: auto; padding: 48px 0 40px; scrollbar-width: thin; }
.sidenav-toggle { display: none; }
.sidenav-list { list-style: none; margin: 0; padding: 0; }
.sidenav-list > li { border-top: 1px solid var(--line); }
.sidenav-list > li:last-child { border-bottom: 1px solid var(--line); }
.sidenav-list > li > a { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--muted); position: relative; transition: color .2s; }
.sidenav-num { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--faint); width: 18px; }
.sidenav-list a:hover, .sidenav-list a.is-on { color: var(--ink); }
.sidenav-list > li > a.is-on .sidenav-num { color: var(--accent); }
.sidenav-list ul { list-style: none; margin: -4px 0 10px 32px; padding: 0; display: none; }
.sidenav-list li.is-open ul { display: block; }
.sidenav-list ul a { display: block; padding: 5px 0 5px 12px; font-size: 13px; color: var(--muted); text-decoration: none; border-left: 1px solid var(--line); transition: color .2s, border-color .2s; }
.sidenav-list ul a.is-on { color: var(--ink); border-left-color: var(--ink); }
.sidenav-help { margin-top: 32px; display: grid; gap: 2px; font-size: 13px; }
.sidenav-help a, .sidenav-help span { color: var(--muted); text-decoration: none; }
.sidenav-help a:hover { color: var(--ink); }

.content { min-width: 0; padding: 48px 0 0; }
.sec { padding: 24px 0 96px; }
.sec + .sec { border-top: 1px solid var(--line); padding-top: 72px; }
.sec-head { margin-bottom: 36px; }
.sub { margin-top: 80px; }
.sub:first-of-type { margin-top: 48px; }
.sec > .lede + .sub, .sec-head + .sub { margin-top: 40px; }

.cols-2 { columns: 2 280px; column-gap: 48px; }
.cols-2 p { break-inside: avoid; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.split-top { align-items: start; margin-top: 40px; }
@media (max-width: 1080px) { .split { grid-template-columns: 1fr; } }

@media (max-width: 960px) {
  .hub { grid-template-columns: 1fr; gap: 0; }
  .sidenav { position: sticky; top: var(--top-h); z-index: 30; max-height: none; overflow: visible; padding: 0; margin: 0 calc(var(--gutter) * -1); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .sidenav-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px var(--gutter); background: none; border: 0; font-size: 14px; font-weight: 600; text-align: left; }
  .sidenav-list, .sidenav-help { display: none; }
  .sidenav.is-open .sidenav-list { display: block; padding: 0 var(--gutter) 12px; max-height: 70vh; overflow: auto; }
  .sidenav-list ul { display: none !important; }
  .content { padding-top: 24px; }
}

/* Quick cards */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.quick-card { background: #fff; padding: 22px 20px 20px; text-decoration: none; display: grid; gap: 6px; position: relative; transition: background .2s; }
.quick-card .label { margin: 0; }
.quick-card strong { font-weight: 500; font-size: 15px; line-height: 1.35; padding-right: 20px; }
.quick-card .i { position: absolute; right: 16px; bottom: 20px; color: var(--faint); transition: transform .2s var(--ease), color .2s; }
.quick-card:hover { background: var(--soft); text-decoration: none; }
.quick-card:hover .i { transform: translateX(3px); color: var(--ink); }
@media (max-width: 1100px) { .quick { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .quick { grid-template-columns: 1fr; } }

/* ---------- Logo explorer ---------- */
.explorer { border: 1px solid var(--line); }
.explorer > .seg { margin: 16px; }
.stage { position: relative; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); height: clamp(280px, 34vw, 460px); display: grid; place-items: center; padding: clamp(20px, 5vw, 56px); overflow: hidden;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; background-position: center; }
.stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, #fff 45%, rgba(255,255,255,.55)); pointer-events: none; }
.stage .vfig { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; padding: clamp(20px, 3.5vw, 44px) 24px; color: var(--ink); overflow: visible; }
.stage-reversed-large { background: var(--ink); }
.stage-reversed-large::before { display: none; }
.stage-reversed-large .vfig-art path:first-child { fill: transparent; }
.stage-reversed-small { background-color: var(--soft); }
.stage-reversed-small::before { background: radial-gradient(ellipse at center, var(--soft) 45%, color-mix(in srgb, var(--soft) 55%, transparent)); }
.cs { opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.stage.show-cs .cs { opacity: 1; }
.cs-zone { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.cs-box { fill: none; stroke: var(--accent); stroke-width: .8; opacity: .5; vector-effect: non-scaling-stroke; }
.cs-dim { stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cs-x { fill: var(--accent); font-family: var(--font); font-style: italic; font-weight: 500; }
.cs-note { fill: var(--muted); font-family: var(--font); }
.stage-reversed-large .cs-zone, .stage-reversed-large .cs-box, .stage-reversed-large .cs-dim { stroke: #fff; }
.stage-reversed-large .cs-x { fill: #fff; }
.stage-switch { position: absolute; right: 16px; bottom: 14px; background: rgba(255,255,255,.94); padding: 8px 12px; border-radius: 20px; box-shadow: 0 1px 0 var(--line); font-size: 13px; }
.explorer-info { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; padding: 28px; }
.explorer-info p { margin: 0 0 20px; max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 7px 12px 7px 10px; border: 1px solid var(--line-2); border-radius: 20px; text-decoration: none; transition: border-color .2s, background .2s; }
.chip .i { width: 15px; height: 15px; }
.chip:hover { border-color: var(--ink); text-decoration: none; }
.chip.is-off { color: var(--faint); border-style: dashed; }
@media (max-width: 760px) {
  .explorer-info { grid-template-columns: 1fr; padding: 20px; }
  .explorer > .seg { display: flex; flex-wrap: nowrap; overflow-x: auto; margin: 12px; scrollbar-width: none; }
  .explorer > .seg button { flex: none; }
  .stage { height: 260px; }
  .stage .vfig { padding: 16px 12px 56px; }
  .stage-switch { left: 12px; right: auto; bottom: 10px; }
}

/* ---------- Grounds ---------- */
.grounds { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); }
.grounds-stage { background: var(--g); color: var(--m); display: grid; place-items: center; padding: 56px 40px 88px; min-height: 360px; position: relative; transition: background .35s var(--ease), color .35s var(--ease), filter .35s; }
.grounds-stage.is-grey { filter: grayscale(1); }
.grounds-logo { width: min(64%, 320px); }
.verdict { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; gap: 10px; align-items: flex-start; background: #fff; color: var(--ink); padding: 12px 14px; font-size: 13px; line-height: 1.45; box-shadow: 0 6px 20px -8px rgba(0,0,0,.25); border-left: 3px solid var(--ok); }
.verdict .i { color: var(--ok); margin-top: 1px; }
.verdict.is-bad { border-left-color: var(--accent); }
.verdict.is-bad .i { color: var(--accent); }
.grounds-side { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.grounds-side .label { margin: 0; }
.swatch-pick { display: grid; gap: 6px; }
.swatch-btn { display: flex; align-items: center; gap: 12px; padding: 8px 10px; text-align: left; font-size: 14px; background: none; border: 1px solid transparent; border-radius: var(--radius); transition: border-color .2s, background .2s; }
.swatch-btn:hover { background: var(--soft); }
.swatch-btn[aria-checked=true] { border-color: var(--ink); }
.swatch-btn.is-bad { color: var(--muted); }
.swatch-dot { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); display: grid; place-items: center; flex: none; }
.swatch-dot i { width: 10px; height: 10px; border-radius: 50%; }
@media (max-width: 860px) { .grounds { grid-template-columns: 1fr; } .grounds-stage { min-height: 280px; } }

/* ---------- Clear space figure ---------- */
.figure { margin: 0; }
.figure figcaption { font-size: 13px; color: var(--muted); margin-top: 14px; max-width: 40em; line-height: 1.5; }
.figure-space { background: var(--soft); padding: 32px; }
.spacefig { width: 100%; color: var(--ink); overflow: visible; }
.spacefig .cs-fill { fill: color-mix(in srgb, var(--accent) 7%, #fff); }
.cs-guide { stroke: var(--accent); stroke-width: .8; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.cs-dim-accent { stroke-width: 1.6; }

/* ---------- Misuse ---------- */
.misuse { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.misuse-item { display: grid; gap: 10px; }
.misuse-art { position: relative; aspect-ratio: 4 / 3; background: var(--soft); display: grid; place-items: center; overflow: hidden; color: var(--ink); }
.misuse-logo { width: 56%; }
.misuse-x { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.misuse-x .i { width: 14px; height: 14px; stroke-width: 2.2; }
.misuse-label { font-size: 13px; line-height: 1.4; }
.mis-stretch .misuse-logo { transform: scaleX(1.45) scaleY(.8); }
.mis-recolour .misuse-logo { color: var(--support); }
.mis-pick .misuse-logo path:nth-of-type(1), .mis-pick .misuse-logo path:nth-of-type(3) { fill: var(--support); }
.mis-effects .misuse-logo { filter: drop-shadow(5px 6px 4px rgba(0,0,0,.45)); }
.mis-rotate .misuse-logo { transform: rotate(-14deg); }
.mis-busy .misuse-art { background: repeating-linear-gradient(115deg, #9aa3a8 0 9px, #c9ced1 9px 20px, #6e777c 20px 26px), #999; }
.mis-busy .misuse-logo { color: var(--ink); }
.mis-type { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: .02em; }
.mis-keyline .misuse-logo { outline: 1.5px solid var(--ink); outline-offset: 10px; }
@media (max-width: 900px) { .misuse { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Sizer ---------- */
.sizer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); border: 1px solid var(--line); }
.sizer-controls { padding: 28px; display: grid; gap: 24px; align-content: start; border-right: 1px solid var(--line); }
.sizer-out { font-size: 20px; font-weight: 300; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; border: 0; padding: 0; min-height: 0; box-shadow: none !important; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--line-2); }
input[type=range]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--ink); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--ink); }
.sizer-stage { padding: 28px; display: grid; gap: 16px; align-content: start; }
.sizer-preview { min-height: 200px; display: grid; place-items: center; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 10mm 10mm; background-position: center; border: 1px solid var(--line); overflow: hidden; padding: 16px; }
.sizer-art svg { width: 100%; height: auto; }
.verdict-inline { position: static; box-shadow: none; background: var(--soft); margin: 0; }
.verdict-inline.is-warn { border-left-color: var(--warn); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--ink); }
.table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td:first-child { font-weight: 500; }
@media (max-width: 860px) { .sizer { grid-template-columns: 1fr; } .sizer-controls { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; } .sizer-stage { padding: 20px; } }

/* ---------- Typography ---------- */
.specimen { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); background: var(--soft); margin-bottom: 40px; }
.specimen-aa { font-size: clamp(110px, 16vw, 220px); line-height: .85; font-weight: 300; letter-spacing: -.04em; }
.specimen-name { font-size: 22px; font-weight: 500; margin: 0 0 12px; }
.specimen-glyphs { font-size: clamp(16px, 2vw, 22px); line-height: 1.55; font-weight: 400; margin: 0; letter-spacing: .02em; word-break: break-all; }
@media (max-width: 640px) { .specimen { grid-template-columns: 1fr; } }
.tester { margin-top: 56px; border: 1px solid var(--line); }
.tester-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.tester-bar .label { margin: 0; }
.tester-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 13px; font-weight: 500; }
.tester-controls label { display: inline-flex; align-items: center; gap: 10px; }
.tester-controls select { min-height: 36px; width: auto; padding: 4px 36px 4px 10px; font-size: 13px; }
.tester-controls input[type=range] { width: 120px; }
.tester-controls output { min-width: 40px; font-variant-numeric: tabular-nums; color: var(--muted); }
.tester-text { padding: 32px 20px 40px; font-size: 48px; line-height: 1.15; font-weight: 300; letter-spacing: -.01em; outline: none; min-height: 1.5em; overflow-wrap: anywhere; }
.tester-text:focus { background: color-mix(in srgb, var(--soft) 60%, #fff); }
.weights { list-style: none; margin: 0; padding: 0; }
.weights li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
.weights em { font-style: normal; font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.deflist { margin: 0 0 24px; display: grid; }
.deflist > div { display: grid; grid-template-columns: minmax(120px, 36%) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.deflist > div:first-child { border-top: 1px solid var(--line); }
.deflist dt { font-weight: 600; }
.deflist dd { margin: 0; color: var(--ink-90); }
.deflist-lg dd { font-size: 14px; }
.callout { padding: 16px 18px; background: var(--soft); border-left: 3px solid var(--ink); }
.callout p { margin: 0; }
.callout .label { margin-bottom: 6px; }
.callout-never { border-left-color: var(--accent); }
.hier { display: grid; }
.hier-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.hier-row:first-child { border-top: 1px solid var(--ink); }
.hier-meta { display: grid; font-size: 12px; line-height: 1.4; }
.hier-meta span { color: var(--muted); }
.hier-sample { line-height: 1.2; overflow-wrap: anywhere; }
.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rules li { counter-increment: r; position: relative; padding: 12px 0 12px 36px; border-bottom: 1px solid var(--line); }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--faint); }
@media (max-width: 520px) { .hier-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Copy buttons ---------- */
.copy { display: inline-flex; align-items: center; gap: 8px; padding: 2px 6px; margin: -2px -6px; background: none; border: 0; border-radius: var(--radius); font-variant-numeric: tabular-nums; text-align: left; transition: background .15s; }
.copy .i { width: 14px; height: 14px; color: var(--faint); opacity: 0; transition: opacity .15s; }
.copy:hover { background: var(--soft); }
.copy:hover .i, .copy:focus-visible .i { opacity: 1; }
.copy.is-copied .i { color: var(--ok); opacity: 1; }
.copy-code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; font-size: 13px; font-weight: 500; border-radius: 30px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 90; white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Colour ---------- */
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.swatch { border: 1px solid var(--line); display: flex; flex-direction: column; }
.swatch-chip { background: var(--sw); color: var(--on); padding: 22px 22px 20px; min-height: 220px; display: flex; flex-direction: column; }
.swatch-role { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .72; }
.swatch-name { font-size: 28px; font-weight: 300; margin: auto 0 4px; letter-spacing: -.01em; }
.swatch-share { font-size: 13px; opacity: .8; }
.swatch-tints { display: grid; grid-template-columns: repeat(4, 1fr); }
.tint { border: 0; height: 36px; font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.tint:hover { filter: brightness(.97); }
.swatch-values { margin: 0; padding: 12px 22px 18px; }
.swatch-values > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.swatch-values > div:last-child { border-bottom: 0; }
.swatch-values dt { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.swatch-values dd { margin: 0; }
@media (max-width: 1100px) { .swatches { grid-template-columns: 1fr; } .swatch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } .swatch-chip { grid-row: span 2; } .swatch-tints { grid-column: 2; } }
@media (max-width: 620px) { .swatch { display: flex; } .swatch-chip { min-height: 160px; } }
.proportion { display: flex; height: 64px; margin: 8px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; overflow: hidden; }
.proportion span { display: flex; align-items: flex-end; padding: 10px 12px; white-space: nowrap; overflow: hidden; }
.proportion span:first-child { box-shadow: inset -1px 0 0 rgba(255,255,255,.2); }
.contrast { list-style: none; margin: 0 0 32px; padding: 0; }
.contrast-row { display: flex; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contrast-sample { width: 56px; height: 44px; display: grid; place-items: center; font-size: 20px; font-weight: 500; flex: none; }
.contrast-text { display: grid; font-size: 14px; line-height: 1.4; }
.contrast-text b { font-weight: 600; margin-left: 6px; }
.contrast-text > span { color: var(--muted); font-size: 13px; }
.contrast-row.is-pass .contrast-text > span { color: var(--ok); }
.contrast-row.is-fail .contrast-text > span { color: var(--accent); font-weight: 600; }
.checker { background: var(--soft); padding: 20px; }
.checker .label { margin-bottom: 12px; }
.checker-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checker-row label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; }
.checker-row select { min-height: 42px; font-size: 14px; }
.checker-out { display: flex; gap: 14px; align-items: center; margin-top: 14px; font-size: 14px; }
.checker-sample { width: 72px; height: 52px; display: grid; place-items: center; font-size: 22px; font-weight: 500; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }

/* ---------- Applications ---------- */
.note-illustrative { margin: -12px 0 0; }
.mock-stack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: end; background: var(--soft); padding: clamp(20px, 3vw, 36px); }
.mock-letter { background: #fff; aspect-ratio: 210 / 297; padding: 9% 9% 6%; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 14px 30px -14px rgba(0,0,0,.25); }
.mock-letter-logo svg { width: 26%; color: var(--ink); }
.mock-lines { margin: 22% 0 auto; display: grid; gap: 7px; }
.mock-lines i { display: block; height: 3px; background: var(--line); }
.mock-letter-foot { font-size: clamp(4px, .55vw, 6.5px); line-height: 1.5; color: var(--muted); }
.mock-cards { display: grid; gap: 14px; }
.mock-card { aspect-ratio: 85 / 55; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 26px -12px rgba(0,0,0,.28); position: relative; overflow: hidden; }
.mock-card-front { background: #fff; padding: 8%; display: grid; grid-template-rows: auto 1fr auto; }
.mock-card-logo svg { width: 26%; color: var(--ink); }
.mock-card-name { align-self: end; display: grid; font-size: clamp(6px, .8vw, 9px); line-height: 1.35; }
.mock-card-name strong { font-weight: 600; }
.mock-card-contact { font-size: clamp(5px, .6vw, 7px); color: var(--muted); margin-top: 6%; line-height: 1.5; }
.mock-card-back { background: var(--ink); display: grid; place-items: center; }
.mock-card-back svg { width: 100%; height: 100%; }
.mock-report { aspect-ratio: 210 / 297; max-width: 340px; display: grid; grid-template-rows: 1fr auto; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 36px -16px rgba(0,0,0,.3); }
.mock-report-photo { background: color-mix(in srgb, var(--support) 70%, #fff);
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(160deg, color-mix(in srgb, var(--support) 55%, #fff), color-mix(in srgb, var(--support) 95%, #000));
  background-size: 14px 14px, 14px 14px, 100% 100%; }
.mock-report-band { background: var(--ink); color: #fff; padding: 9% 9% 8%; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
.mock-report-title { grid-column: 1 / -1; font-size: clamp(16px, 2vw, 24px); line-height: 1.1; font-weight: 300; }
.mock-report-meta { font-size: 8px; line-height: 1.6; color: rgba(255,255,255,.66); align-self: end; }
.mock-report-logo svg { width: 48px; color: #fff; }
.titleblock { border: 1.5px solid var(--ink); background: #fff; font-size: 11px; }
.titleblock-logo { padding: 16px; } .titleblock-logo svg { width: 84px; color: var(--ink); }
.titleblock-rule { height: 3px; background: var(--accent); }
.titleblock dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.titleblock dl > div { padding: 8px 10px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.titleblock dl > div:nth-child(3n + 2) { border-right: 1px solid var(--ink); }
.titleblock .tb-wide { grid-column: 1 / -1; border-right: 0; }
.titleblock dl > div:nth-child(5), .titleblock dl > div:nth-child(8) { border-right: 0; }
.titleblock dt { font-size: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.titleblock dd { margin: 2px 0 0; font-weight: 500; }
.mock-sig { background: #fff; border: 1px solid var(--line); padding: 24px; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.45; max-width: 380px; }
.mock-sig p { margin: 0 0 14px; }
.mock-sig-logo svg { width: 96px; height: auto; margin-bottom: 14px; }
.mock-sig-small { font-size: 11px; color: var(--muted); }
.mock-social { display: flex; gap: 18px; align-items: center; background: var(--soft); padding: 28px; }
.mock-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none; background: var(--ink); display: grid; place-items: center; }
.mock-avatar svg { width: 132%; max-width: none; height: auto; }
.mock-social-lines { flex: 1; display: grid; gap: 8px; }
.mock-social-lines strong { font-size: 17px; font-weight: 600; }
.mock-social-lines i { height: 6px; background: var(--line-2); border-radius: 3px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks .i { color: var(--ok); margin-top: 3px; }
.mock-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-photo { aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  background: linear-gradient(200deg, #c8b89c 0%, #8a9aa6 42%, #3f4a52 100%); }
.mock-photo::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22% 100%, 100% 30%; transform: skewY(-8deg) scale(1.2); }
.mock-photo span:not(.mock-photo-bandbar) { position: absolute; left: 10px; bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.mock-photo.is-grey { filter: grayscale(1); }
.mock-photo.is-toned { filter: grayscale(1); }
.mock-photo.is-toned::after { content: ""; position: absolute; inset: 0; background: var(--support); mix-blend-mode: color; }
.mock-photo-bandbar { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: var(--ink); display: flex; align-items: center; padding: 0 10px; }
.mock-photo-bandbar svg { height: 52%; width: auto; color: #fff; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spec { background: #fff; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec p { margin: 0; font-size: 14px; }
.spec .label { margin-bottom: 8px; color: var(--ink); }
.spec-warn { background: color-mix(in srgb, #F5C400 10%, #fff); grid-column: 1 / -1; }
.spec-warn p { max-width: 52em; }
.spec-grid-sm { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.spec-grid-sm .spec { padding: 16px 18px; }
@media (max-width: 620px) { .mock-stack { grid-template-columns: 1fr; } }

/* ---------- Downloads ---------- */
.dl { margin-top: 8px; }
.dl-ask .label { margin-bottom: 12px; }
.dl-uses { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.dl-uses button { text-align: left; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 14px 12px; display: grid; gap: 4px; transition: border-color .2s, background .2s; min-height: 84px; align-content: start; }
.dl-uses button strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.dl-uses button span { font-size: 12px; color: var(--muted); }
.dl-uses button:hover { border-color: var(--ink); }
.dl-uses button[aria-checked=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dl-uses button[aria-checked=true] span { color: rgba(255,255,255,.66); }
@media (max-width: 1100px) { .dl-uses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .dl-uses { grid-template-columns: 1fr 1fr; } .dl-uses button:first-child { grid-column: 1 / -1; min-height: 0; } }
.dl-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 28px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.files { list-style: none; margin: 0; padding: 0; }
.file { display: grid; grid-template-columns: 64px minmax(0, 1fr) 56px 88px 44px; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); transition: background .15s; }
.file:hover { background: color-mix(in srgb, var(--soft) 60%, #fff); }
.file-thumb { width: 64px; height: 44px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 7px; overflow: hidden; }
.file-thumb svg { width: 100%; height: 100%; color: var(--ink); }
.thumb-reversed-large, .thumb-reversed-small { background: var(--ink); padding: 0; }
.thumb-reversed-small { padding: 0; }
.file-main { display: grid; min-width: 0; }
.file-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-desc { font-size: 12.5px; color: var(--muted); }
.badge { justify-self: start; font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 4px 7px; border-radius: 2px; background: var(--soft-2); }
.badge-pdf, .badge-eps { background: var(--ink); color: #fff; }
.badge-svg { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.file-size { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.iconbtn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.iconbtn.is-off, .file.is-off .file-name { color: var(--faint); border-style: dashed; }
.iconbtn.is-off:hover { background: none; color: var(--faint); border-color: var(--line-2); }
.dl-empty { padding: 28px 0; color: var(--muted); }
.doccard { margin-top: 40px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 24px; border: 1px solid var(--line-2); text-decoration: none; transition: border-color .2s, background .2s; }
.doccard:hover { border-color: var(--ink); background: var(--soft); text-decoration: none; }
.doccard > span:nth-child(2) { display: grid; }
.doccard strong { font-weight: 500; font-size: 16px; }
.doccard span span { font-size: 13px; color: var(--muted); }
.doccard-icon { width: 48px; height: 48px; background: var(--ink); color: #fff; display: grid; place-items: center; }
@media (max-width: 720px) {
  .file { grid-template-columns: 52px minmax(0, 1fr) 40px; gap: 12px; }
  .file-thumb { width: 52px; height: 38px; }
  .file .badge, .file .file-size { display: none; }
  .file-name { white-space: normal; word-break: break-all; font-size: 13px; }
}

/* ---------- Checklist ---------- */
.checklist-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; font-size: 13px; font-weight: 500; }
.checklist-progress .bar { flex: 1; height: 2px; background: var(--line); max-width: 320px; }
.checklist-progress .bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s var(--ease); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.check { display: grid; grid-template-columns: 28px 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 22px 20px; background: #fff; cursor: pointer; height: 100%; transition: background .2s; }
.check:hover { background: var(--soft); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 2px; display: grid; place-items: center; transition: background .2s, border-color .2s; margin-top: 2px; }
.check-box .i { width: 15px; height: 15px; stroke-width: 2.4; color: #fff; opacity: 0; }
.check input:checked ~ .check-box { background: var(--ink); border-color: var(--ink); }
.check input:checked ~ .check-box .i { opacity: 1; }
.check input:focus-visible ~ .check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-num { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--faint); padding-top: 5px; }
.check-body { display: grid; gap: 4px; }
.check-body strong { font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.check-body span { font-size: 14px; color: var(--ink-90); }
.check input:checked ~ .check-body span { color: var(--muted); }
.checklist-done { display: flex; gap: 10px; align-items: center; margin-top: 20px; font-weight: 600; color: var(--ok); }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 0 56px; border-top: 1px solid var(--ink); font-size: 14px; }
.contacts p { margin: 0; color: var(--ink-90); }
.contacts-credit { grid-column: 1 / -1; font-size: 12px; color: var(--muted) !important; padding-top: 24px; border-top: 1px solid var(--line); }
.contacts-credit a { color: var(--muted); }
@media (max-width: 720px) { .contacts { grid-template-columns: 1fr; } }

/* ---------- Access page and plain pages ---------- */
.page { padding: 48px var(--gutter) 96px; }
.page-in { max-width: 1280px; margin: 0 auto; }
.page-narrow { max-width: 520px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 40px; }
.page-head .lede { margin-bottom: 0; }
.stats { display: flex; gap: 0; margin: 0; border: 1px solid var(--line); }
.stats > div { padding: 14px 22px; border-right: 1px solid var(--line); min-width: 120px; }
.stats > div:last-child { border-right: 0; }
.stats dt { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-size: 30px; font-weight: 300; line-height: 1; }
.access-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .access-grid { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); padding: 28px; background: #fff; }
.panel .h3 { margin-bottom: 6px; }
.panel > .small { margin: 0 0 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.search { max-width: 240px; min-height: 40px !important; font-size: 14px !important; }
.card-form { border: 1px solid var(--line); padding: 28px; margin-top: 8px; }
.radiocards { display: grid; gap: 8px; }
.radiocard { font-weight: 400 !important; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background .2s; }
.radiocard input { margin: 3px 0 0; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.radiocard span { display: grid; gap: 2px; }
.radiocard strong { font-size: 14px; font-weight: 600; }
.radiocard small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.radiocard:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.label-legend { padding: 0; margin-bottom: 8px !important; }
.people { list-style: none; margin: 0; padding: 0; }
.person { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.person-main { display: grid; min-width: 0; font-size: 13px; }
.person-main strong { font-size: 15px; font-weight: 600; }
.person-main span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.person-note { font-style: italic; }
.you { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.person-meta { display: grid; justify-items: end; gap: 4px; font-size: 12px; text-align: right; }
.person-seen { color: var(--muted); }
.status { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-active { color: var(--ok); }
.status-pending { color: var(--muted); }
.status-soon { color: var(--warn); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { border-color: var(--ink); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: 220px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 36px -12px rgba(0,0,0,.2); padding: 6px; }
.menu-panel button { width: 100%; text-align: left; padding: 10px 12px; font-size: 14px; background: none; border: 0; border-radius: var(--radius); }
.menu-panel button:hover { background: var(--soft); }
.menu-panel .danger { color: var(--accent); }
@media (max-width: 720px) {
  .person { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .person-meta { grid-column: 2 / -1; justify-items: start; text-align: left; grid-row: 2; }
  .panel { padding: 20px; }
  .stats { width: 100%; } .stats > div { flex: 1; min-width: 0; padding: 12px 14px; } .stats dd { font-size: 24px; }
}
.activity { margin-top: 24px; }
.feed { list-style: none; margin: 16px 0 0; padding: 0; max-height: 480px; overflow: auto; }
.feed li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feed time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.feed b { font-weight: 500; word-break: break-all; }
.empty { color: var(--muted); padding: 16px 0; }
@media (max-width: 560px) { .feed li { grid-template-columns: 1fr; gap: 2px; } }

/* Client picker */
.client-grid { display: grid; gap: 12px; margin-top: 32px; max-width: 720px; }
.client-card { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 24px; border: 1px solid var(--line-2); text-decoration: none; transition: border-color .2s; }
.client-card:hover { border-color: var(--ink); text-decoration: none; }
.client-card-mark svg { width: 100%; color: var(--ink); }
.client-card-meta { display: grid; } .client-card-meta span { font-size: 13px; color: var(--muted); }

/* Print: the hub prints as a clean document */
@media print {
  .topbar, .sidenav, .hero-actions, .stage-switch, .tester, .checker, .dl-ask, .dl-bar, .iconbtn, .toast, .quick { display: none !important; }
  .hub { display: block; padding: 0; }
  .hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sec { break-before: page; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Photography ---------- */
.pic { display: block; position: relative; overflow: hidden; background: var(--soft-2); }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Toned: greyscale carried in the support grey, knocked back so white type holds on it. */
.pic-toned { background: var(--support); }
.pic-toned img { filter: grayscale(1) contrast(1.05); mix-blend-mode: luminosity; }
.pic-toned::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 14%, transparent); pointer-events: none; }
.pic-grey img { filter: grayscale(1); }

.hero.has-photo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.hero.has-photo .hero-in { grid-template-columns: 1fr; margin: 0; max-width: none; width: 100%; align-content: center; gap: clamp(28px, 4vw, 56px); padding-right: clamp(24px, 4vw, 64px); }
.hero.has-photo .hero-logo { max-width: 300px; }
.hero.has-photo .hero-title { margin-top: 12px; }
.hero-photo { position: relative; min-height: 100%; }
.hero-photo .pic { position: absolute; inset: 0; }
.hero-photo .pic img { object-position: 60% 40%; }
.hero.has-photo .hero-rule { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .hero.has-photo { grid-template-columns: 1fr; }
  .hero-photo { height: 220px; min-height: 0; order: -1; }
  .hero.has-photo .hero-logo { max-width: 180px; }
}

.sec-photo { margin: 0 0 48px; aspect-ratio: 21 / 8; max-width: 100%; }
.sec-photo .pic { height: 100%; }
.sec-head + .sec-photo { margin-top: -4px; }
@media (max-width: 640px) { .sec-photo { aspect-ratio: 16 / 9; margin-bottom: 32px; } }

.mock-report-photo { background: none; position: relative; }
.mock-report-photo .pic { position: absolute; inset: 0; }

.web-pair { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; align-items: end; background: var(--soft); padding: clamp(20px, 3vw, 40px); }
.web-pair figcaption { grid-column: 1 / -1; margin-top: 0; }
.browser { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 20px 40px -18px rgba(0,0,0,.35); border-radius: 6px; overflow: hidden; }
.browser-bar { height: 26px; display: flex; gap: 6px; align-items: center; padding: 0 10px; background: #ECEDEE; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CDD1D4; }
.browser .pic { aspect-ratio: 1440 / 900; }
.phone { border: 7px solid #111; border-radius: 26px; overflow: hidden; background: #111; box-shadow: 0 20px 40px -18px rgba(0,0,0,.45); }
.phone .pic { aspect-ratio: 520 / 1126; border-radius: 19px; }
.ticks-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 32px; }
.ticks-cols li:first-child { border-top: 0; }
@media (max-width: 620px) { .web-pair { grid-template-columns: 1fr 34%; gap: 12px; padding: 16px; } .phone { border-width: 4px; border-radius: 16px; } .phone .pic { border-radius: 12px; } }

.photo-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.photo-modes .pic { aspect-ratio: 4 / 3; }
.photo-modes figcaption { margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.photo-band-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.photo-band-frame .pic { position: absolute; left: 0; right: 0; top: 0; bottom: 24%; }
.photo-band-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: var(--ink); display: flex; align-items: center; padding: 0 8%; }
.photo-band-bar svg { height: 46%; width: auto; color: #fff; }

.inuse { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; }
.inuse-0 { grid-row: span 2; display: flex; flex-direction: column; }
.inuse-0 .pic { flex: 1; min-height: 280px; }
.inuse-1 .pic, .inuse-2 .pic { aspect-ratio: 16 / 10; }
@media (max-width: 760px) { .inuse { grid-template-columns: 1fr 1fr; } .inuse-0 { grid-column: 1 / -1; grid-row: auto; } .inuse-0 .pic { aspect-ratio: 3 / 2; min-height: 0; } }

.merch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-bottom: 16px; }
.merch .pic { aspect-ratio: 4 / 3; }
.merch figcaption strong { color: var(--ink); font-weight: 600; }


.back-photo { margin: 24px 0 0; aspect-ratio: 21 / 6; max-width: 100%; }
.back-photo .pic { height: 100%; }

/* ---------- Welcome strip, updated badges, back to top ---------- */
.welcome { background: var(--soft); border-bottom: 1px solid var(--line); }
.welcome-in { max-width: 1440px; margin: 0 auto; padding: 18px var(--gutter); display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.welcome p { margin: 0; font-size: 15px; max-width: 60em; }
.welcome strong { font-weight: 600; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.new-badge { display: inline-block; margin-left: 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 6px; border-radius: 2px; background: var(--ink); color: #fff; vertical-align: 2px; }
.topnav-link { font-size: 13px; font-weight: 600; text-decoration: none; padding: 9px 12px; display: inline-flex; align-items: center; gap: 8px; }
.topnav-link:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.totop { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 35; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 20px -10px rgba(0,0,0,.35); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop .i { transform: rotate(-90deg); }
.totop:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 640px) { .topnav-link span { display: none; } .welcome p { font-size: 14px; } }
