/* Invent Priority / MIDNIGHT EDITION
   Custom architectural lettering. Near-black purple. Precise editorial hierarchy.
   System fonts and local SVG artwork only. No imports or third-party assets. */
:root {
  color-scheme: light;
  --violet: #24103d;
  --violet-deep: #35174f;
  --violet-wash: #efedea;
  --canvas: #f7f5f1;
  --paper: #ffffff;
  --ink: #201b25;
  --muted: #625b66;
  --line: #ded9d3;
  --control-line: #8a828f;
  --dark: #160a27;
  --on-dark: #d4cedb;
  --accent: var(--violet);
  --accent-hover: var(--violet-deep);
  --accent-soft: var(--violet-wash);
  --wash: #eeece8;
  --line-strong: var(--control-line);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 2px;
  --serif: Georgia, "Times New Roman", serif;
  --night: #160a27;
  --ivory: #f4f1ea;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, input, textarea { max-width: 100%; }
input, textarea { min-width: 0; }
button, a, summary { overflow-wrap: anywhere; }
a { color: var(--violet-deep); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--violet); color: white; }
[hidden] { display: none !important; }
.shell { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: 20px; }
.view { display: none; padding-block: 40px 64px; }
.view.active { display: block; }
#v-home { padding-top: 0; }
main { min-height: 50vh; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 650; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 21px; letter-spacing: -.025em; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; }
.muted, .subtle { color: var(--muted); }
.subtle { font-size: 14px; }
.mono { font-family: var(--mono); }
.eyebrow { color: var(--violet-deep); font: 650 11px/1.6 var(--sans); letter-spacing: .12em; margin-bottom: 20px; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 14px 20px; color: white; background: var(--violet-deep); transform: translateY(-160%); }
.skip-link:focus { transform: none; outline: 3px solid white; box-shadow: 0 0 0 6px var(--violet-deep); }

/* The complete navigation stays visible, including on a 320px screen. */
.top { position: relative; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 13px; font-weight: 750; letter-spacing: .01em; }
.mark { display: inline-block; width: 32px; height: 36px; flex: 0 0 auto; background: url('/assets/brand/invent-priority-mark.svg') center / contain no-repeat; font-size: 0; color: transparent; }
.mark span { font-size: 0; }
/* Existing text nodes remain accessible. The optical wordmark is local SVG paths. */
.brand > span:not(.mark) { width: 138px; height: 38px; display: inline-block; background: url('/assets/brand/invent-priority-wordmark.svg') center / contain no-repeat; font-size: 0; }
.brand em { font-style: normal; }
.nav { order: 3; flex: 1 0 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin-top: 3px; border-top: 1px solid var(--line); }
.nav button { min-height: 48px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 550; padding: 9px 3px 6px; border-radius: 0; }
.nav button:hover { color: var(--violet-deep); background: var(--violet-wash); }
.nav button.selected { border-bottom-color: var(--violet); color: var(--violet-deep); font-weight: 700; }
.user { display: flex; align-items: center; margin-left: auto; gap: 14px; min-width: 0; }
.user #who { display: none; font-size: 12px; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.user .ghost.sm { min-height: 44px; padding: 9px 12px; border-color: var(--violet); color: var(--violet-deep); font-size: 12px; }

/* Controls share a single accent; state is never conveyed by color alone. */
.primary, .ghost, .text-button, .linkish { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 13px 19px; border-radius: var(--radius); font-size: 14px; font-weight: 650; line-height: 1.45; text-decoration: none; transition: background-color .16s ease, border-color .16s ease; }
.primary { border: 1px solid var(--violet); color: white; background: var(--violet); }
.primary:hover { background: var(--violet-deep); border-color: var(--violet-deep); }
.ghost { border: 1px solid var(--control-line); color: var(--ink); background: var(--paper); }
.ghost:hover { border-color: var(--violet); color: var(--violet-deep); background: var(--violet-wash); }
.ghost.strong { color: var(--violet-deep); border-color: var(--violet); }
.text-button, .linkish { color: var(--violet-deep); background: transparent; border: 0; border-radius: 3px; padding-inline: 0; justify-content: flex-start; }
.text-button:hover, .linkish:hover { text-decoration: underline; text-underline-offset: 5px; }
.primary span[aria-hidden], .text-button span[aria-hidden], .linkish span[aria-hidden] { font-size: 21px; line-height: 1; font-weight: 400; }
button:disabled { cursor: not-allowed; opacity: .62; }
button[type="submit"]:disabled::after { content: ''; width: 12px; height: 12px; flex-shrink: 0; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: working 1s linear infinite; }
@keyframes working { to { transform: rotate(360deg); } }
.full-width { width: 100%; }
.buttonrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.buttonrow > button { flex: 1 1 180px; }

/* Landing / an editorial lead, followed by the illustrated evidence folio. */
.hero { display: grid; gap: 38px; padding-block: 44px 42px; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; margin-bottom: 24px; }
.first-rule { display: inline-block; width: 6px; height: 20px; background: var(--violet); flex: 0 0 auto; }
.hero h1 { font-size: clamp(43px, 10vw, 76px); line-height: 1.04; font-weight: 650; letter-spacing: -.06em; text-wrap: initial; }
.hero h1 span { color: var(--violet); }
.intro { color: var(--muted); max-width: 520px; font-size: 17px; line-height: 1.75; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; }
.hero-actions .primary { min-height: 52px; }
.hero-note { margin-top: 20px; max-width: 450px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.audience-line { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 490px; }
.audience-label { display: block; font: 600 10px/1.5 var(--mono); letter-spacing: .09em; color: var(--muted); margin-bottom: 7px; }
.audience-line p { font-size: 12px; color: var(--ink); }
.audience-line p span { margin-inline: 5px; color: var(--muted); }
.folio-stage { margin: 0; min-width: 0; }
.folio-ground { position: relative; isolation: isolate; overflow: hidden; background: var(--violet); border-radius: 8px; padding: 20px 18px; }
.folio-mast { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: white; font: 650 10px/1.6 var(--sans); letter-spacing: .09em; }
.illustration-label { border: 1px solid #8d819b; padding: 1px 6px; font-size: 9px; }
.folio-graphic { position: absolute; z-index: -1; width: 420px; height: 420px; top: -85px; right: -125px; background: url('/assets/brand/invent-priority-mark-reversed.svg') center / contain no-repeat; opacity: .13; transform: rotate(-14deg); }
.folio-paper { position: relative; background: white; margin: 24px 0 20px; padding: 24px; border-radius: 3px; box-shadow: 10px 10px 0 rgba(27, 10, 62, .22); }
.folio-paper::before { content: ''; display: block; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--ink); }
.folio-paper-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.folio-tab { font: 600 10px/1.5 var(--mono); letter-spacing: .06em; color: var(--muted); }
.folio-paper h2 { font-size: 29px; line-height: 1.1; margin-block: 18px 22px; }
.folio-rule { height: 2px; background: var(--ink); }
.folio-fields { margin: 16px 0; }
.folio-fields div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding-block: 6px; }
.folio-fields dt { color: var(--muted); }
.folio-fields dd { margin: 0; text-align: right; font-weight: 550; }
.folio-hash { background: var(--canvas); border: 1px solid var(--line); padding: 14px 12px; }
.folio-hash span { display: block; color: var(--muted); font: 600 9px/1.5 var(--mono); letter-spacing: .07em; margin-bottom: 8px; }
.folio-hash code { display: block; font: 10px/1.8 var(--mono); color: var(--violet-deep); overflow-wrap: anywhere; }
.folio-stamp { display: flex; align-items: center; gap: 8px; margin-top: 20px; font: 600 10px/1.5 var(--mono); color: var(--violet-deep); letter-spacing: .02em; }
.status-square { display: inline-block; width: 7px; height: 7px; background: var(--violet); flex: 0 0 auto; }
.folio-time { display: flex; gap: 14px; color: white; align-items: center; padding: 2px 3px 0; }
.time-symbol { font: 36px/1 var(--mono); }
.folio-time p { margin: 0; }
.folio-time strong { display: block; font-size: 12px; }
.folio-time p > span { display: block; font-size: 11px; margin-top: 3px; }
.folio-stage figcaption { color: var(--muted); font-size: 11px; margin-top: 12px; line-height: 1.6; }
.record-strip { display: grid; border-block: 1px solid var(--line); }
.record-strip > div { display: flex; align-items: flex-start; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.record-strip > div:last-child { border-bottom: 0; }
.strip-number { font: 500 12px/1.7 var(--mono); color: var(--violet); padding-top: 2px; }
.record-strip strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.record-strip p { margin: 0; }
.record-strip p span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.capabilities { padding-top: 56px; }
.editorial-heading { display: grid; gap: 22px; margin-bottom: 30px; }
.editorial-heading h2 { font-size: clamp(32px, 4vw, 46px); }
.editorial-heading > p { max-width: 360px; font-size: 15px; color: var(--muted); margin: 0; }
.capability-grid { display: grid; gap: 18px; }
.capability-card { min-width: 0; padding: 28px 24px; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 4px; background: white; }
.capability-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.capability-top .eyebrow { margin: 0; color: var(--muted); }
.capability-glyph { font: 32px/1 var(--mono); letter-spacing: -.15em; color: var(--violet); }
.capability-card h3 { font-size: 30px; margin-bottom: 20px; }
.capability-card > p { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 440px; }
.capability-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; color: var(--muted); font: 11px/1.65 var(--mono); }
.capability-meta span::before { content: '·'; color: var(--violet); margin-right: 6px; }
.capability-card .text-button { margin-top: 18px; }
.capability-violet { background: var(--violet-wash); border-top-color: var(--violet); border-color: #d2cbd5; border-top-color: var(--violet); }
.capability-violet .capability-top .eyebrow { color: var(--violet-deep); }
.capability-violet .capability-meta { border-color: #d2cbd5; }
.evidence-section { display: grid; gap: 36px; margin-top: 48px; padding: 32px 24px; background: var(--dark); color: var(--on-dark); border-radius: 6px; }
.evidence-section .eyebrow { color: #d4cedb; }
.evidence-intro h2 { color: white; font-size: clamp(31px, 3.6vw, 42px); }
.evidence-intro > p:not(.eyebrow) { margin-top: 22px; max-width: 420px; font-size: 14px; color: var(--on-dark); }
.evidence-section .text-button, .evidence-section a { color: white; }
.evidence-section :focus-visible { outline-color: #f4f1ea; }
.evidence-list { margin: 0; }
.evidence-list > div { padding-block: 22px; border-top: 1px solid #51415f; }
.evidence-list dt { color: white; font-size: 16px; font-weight: 600; }
.evidence-list dt span { color: #d4cedb; font: 11px/1 var(--mono); margin-right: 12px; }
.evidence-list dd { color: var(--on-dark); margin: 12px 0 0; font-size: 14px; line-height: 1.75; }
.faq-section { display: grid; gap: 30px; padding-block: 56px; }
.faq-section h2 { font-size: clamp(31px, 3.6vw, 43px); }
.faq-section .section-heading > p:last-child { color: var(--muted); margin-top: 22px; font-size: 14px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 76px; padding-block: 22px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.detail-toggle { width: 18px; height: 18px; position: relative; flex: 0 0 auto; }
.detail-toggle::before, .detail-toggle::after { content: ''; position: absolute; background: var(--violet); left: 1px; top: 8px; width: 16px; height: 2px; }
.detail-toggle::after { transform: rotate(90deg); }
details[open] .detail-toggle::after { transform: none; }
.faq-list details > p { font-size: 14px; color: var(--muted); line-height: 1.85; padding: 0 20px 26px 0; margin: 0; }
.closing-callout { display: grid; gap: 28px; background: var(--violet); color: white; border-radius: 6px; padding: 32px 24px; }
.closing-callout h2 { color: white; font-size: clamp(33px, 4vw, 48px); }
.closing-callout .eyebrow { color: white; font-size: 10px; }
.closing-callout .primary { background: white; color: var(--violet-deep); border-color: white; }
.closing-callout .primary:hover { background: var(--violet-wash); }
.closing-callout :focus-visible { outline-color: white; }
.closing-callout > div > p:last-child:not(.eyebrow) { color: white; font-size: 12px; margin-top: 14px; }

/* Workspace / spacious forms, precise labels, explicit evidence states. */
.page-heading { margin-bottom: 32px; max-width: 900px; }
.page-heading > .muted { max-width: 740px; margin-top: 20px; font-size: 16px; line-height: 1.75; }
.two-col { display: grid; gap: 24px; align-items: start; }
.panel { min-width: 0; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-heading { margin-bottom: 28px; }
.panel-heading h2 { font-size: 27px; }
.panel-heading p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin-top: 12px; }
.panel-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--violet); background: var(--violet-wash); margin-bottom: 24px; border-radius: 4px; }
.auth-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 16px 20px; margin-bottom: 24px; border: 1px solid #d2cbd5; border-left: 4px solid var(--violet); border-radius: 4px; background: var(--violet-wash); }
.auth-notice p { font-size: 14px; margin: 0; flex: 1 1 250px; }
.auth-notice .text-button { min-height: 44px; padding-block: 8px; }
.field { margin-bottom: 24px; }
.field label, .field-label { display: block; color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 9px; }
input:not([type="checkbox"]), textarea { width: 100%; border: 1px solid var(--control-line); border-radius: 4px; padding: 13px 14px; color: var(--ink); background: white; font-size: 16px; line-height: 1.5; }
input:not([type="checkbox"]) { min-height: 50px; }
input::placeholder, textarea::placeholder { color: #6e6674; opacity: 1; }
input:hover, textarea:hover { border-color: var(--violet-deep); }
input:focus-visible, textarea:focus-visible { border-color: var(--violet); outline: 2px solid var(--violet); outline-offset: 2px; }
textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: 12px; line-height: 1.75; margin-top: 8px; margin-bottom: 0; color: var(--muted); }
.field-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.character-count { color: var(--muted); font: 11px/1.7 var(--mono); margin-left: auto; }
.form-section-heading { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-section-heading h2 { font-size: 25px; }
.form-section-heading p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.section-index { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--violet-wash); color: var(--violet-deep); font: 500 11px/1 var(--mono); border-radius: 3px; }
.badge { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid #d2cbd5; border-radius: 3px; background: var(--violet-wash); color: var(--violet-deep); font: 600 10px/1.4 var(--mono); letter-spacing: .025em; white-space: nowrap; }
.form-section-heading > .badge { margin-top: 4px; }
.consent-group { border: 0; border-top: 1px solid var(--line); padding: 28px 0 0; margin: 32px 0 0; min-width: 0; }
.consent-group legend { padding: 0 12px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.consent-group legend .section-index { margin-right: 9px; }
.consent-group > .field-hint { margin: 0 0 20px; }
.check { display: flex; align-items: flex-start; gap: 13px; padding: 18px 16px; border: 1px solid var(--control-line); border-radius: 4px; margin-block: 12px; cursor: pointer; }
.check:has(input:checked) { border-color: var(--violet); background: var(--violet-wash); }
input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--violet); cursor: pointer; }
.check strong { display: block; font-size: 14px; line-height: 1.55; }
.check > span > span { display: block; color: var(--muted); font-size: 12px; line-height: 1.75; margin-top: 5px; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--line); }
.form-footer p { font-size: 12px; color: var(--muted); margin: 0; }
.form-footer p strong { color: var(--ink); }
.form-footer .primary { flex: 1 1 220px; }
.legal-form-notice { margin-top: 22px; }
.side-panel { min-width: 0; background: var(--dark); color: var(--on-dark); padding: 28px 24px; border-radius: var(--radius); }
.side-panel > .eyebrow { color: #d4cedb; }
.side-panel h2 { color: white; font-size: 29px; margin-bottom: 30px; }
.smallstep { display: flex; gap: 16px; padding-block: 21px; border-top: 1px solid #51415f; }
.smallstep > span { color: #d4cedb; font: 11px/1.7 var(--mono); padding-top: 2px; }
.smallstep h3 { color: white; font-size: 17px; line-height: 1.4; }
.smallstep p { color: var(--on-dark); font-size: 13px; margin-top: 8px; }
.sidebar-note { margin-top: 16px; border-left: 2px solid #a79bab; padding: 0 0 0 16px; }
.sidebar-note h3 { color: white; font-size: 16px; margin-bottom: 8px; }
.sidebar-note p { font-size: 13px; color: var(--on-dark); }
.side-panel a { color: white; }
.side-panel :focus-visible { outline-color: #f4f1ea; }
.lower { margin-top: 36px; }
.section-heading.lower { margin-bottom: 22px; }
.section-heading.lower .eyebrow { margin-bottom: 12px; }
.notice { padding: 22px; margin-top: 28px; background: var(--wash); border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: 4px; font-size: 14px; }
.notice p { margin-top: 6px; color: var(--muted); }
.notice.compact { display: flex; align-items: flex-start; gap: 14px; }
.notice.compact p { margin: 0; }
.notice .icon { color: var(--violet-deep); }
.notice.inset { margin: 22px 0; padding: 18px; }
.account-create { border-top: 3px solid var(--violet); background: var(--violet-wash); }
#accountDetail { overflow-wrap: anywhere; margin-block: 16px 24px; }
.result { margin-top: 32px; border-top: 3px solid var(--violet); scroll-margin-top: 24px; }
.result h2 { margin-bottom: 24px; }
.warning { background: var(--violet-wash); border-left: 3px solid var(--violet); border-radius: 2px; padding: 18px 20px; font-size: 14px; }
.longcode { display: block; overflow-wrap: anywhere; word-break: break-word; font: 13px/1.8 var(--mono); }
.secret-code { color: var(--violet-deep); padding: 18px; border: 1px dashed var(--violet); border-radius: 4px; background: var(--canvas); }
.timestamp-card { padding: 22px 20px; margin-block: 28px; border: 1px solid #d2cbd5; border-left: 4px solid var(--violet); border-radius: 4px; background: var(--violet-wash); }
.timestamp-card h3 { font-size: 24px; margin-bottom: 16px; }
.timestamp-card .eyebrow { margin-bottom: 12px; }
.timestamp-card [role="status"] { font-size: 14px; overflow-wrap: anywhere; }
.timestamp-card .field-hint { margin-top: 16px; }
.receipt-data-title { margin-bottom: 18px; }
pre { font: 12px/1.9 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; padding: 22px; border: 1px solid var(--line); background: var(--canvas); border-radius: 4px; max-width: 100%; }
.disclosure-panel { margin-top: 28px; padding: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.disclosure-panel > summary > span:first-child > strong { display: block; }
.disclosure-panel > summary > span:first-child > span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 8px; line-height: 1.65; }
.disclosure-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; font-size: 17px; font-weight: 600; }
.disclosure-body { padding: 0 24px 24px; }
.disclosure-body > p { font-size: 14px; color: var(--muted); }
.reveal-fields { display: grid; gap: 0 20px; }
.metrics { display: grid; gap: 12px; margin-bottom: 28px; }
.metrics > div { padding: 20px 24px; background: white; border: 1px solid var(--line); border-radius: 4px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.metrics > div > span { color: var(--muted); font-size: 12px; }
.metrics strong { display: block; color: var(--violet-deep); font-size: 23px; letter-spacing: -.04em; font-weight: 600; text-align: right; }
.panel-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; }
.panel-toolbar h2 { font-size: 27px; }
.panel-toolbar p { font-size: 13px; color: var(--muted); margin-top: 12px; }
.ledger-row, .my-row, .watch-row, .anchor-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-block: 22px; }
.ledger-row > div, .anchor-row > div, .watch-row > div { min-width: 0; flex: 1 1 230px; overflow-wrap: anywhere; }
.ledger-row strong, .watch-row strong { font-size: 15px; color: var(--ink); font-weight: 600; }
.row-meta { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 6px; overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.watch-row .row-actions { flex-basis: 100%; }
.row-actions button { min-height: 44px; font-size: 12px; padding: 10px 12px; }
.record-list { color: var(--muted); font-size: 14px; }
.my-row > span:first-child { flex: 1 1 230px; overflow-wrap: anywhere; }
.record-list > :first-child { border-top: 0; padding-top: 0; }
.anchor-row { font-size: 14px; }
.ledger-row:last-child, .my-row:last-child, .watch-row:last-child, .anchor-row:last-child { padding-bottom: 0; }
.anchor-row button { font-size: 13px; }
#scanResults pre { margin-top: 24px; }

/* Public lookup / the primary task and optional local calculator are distinct. */
.lookup-panel { border-top: 3px solid var(--violet); }
.calculator-panel { background: var(--wash); }
.calculator-panel h2 { font-size: 25px; }
#verifyHash { font-family: var(--mono); font-size: 16px; }
#verifyHash::placeholder { font-family: var(--sans); font-size: 15px; }
.resultText { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.resultText > strong { color: var(--violet-deep); font-size: 18px; }
.resultText > p:not(.subtle) { padding: 16px; margin: 18px 0; background: var(--canvas); border: 1px solid var(--line); border-radius: 4px; font: 12px/1.85 var(--mono); }
.resultText > .subtle { margin-top: 20px; font-size: 13px; }
.resultText > button { margin-bottom: 18px; }
.lookup-empty { padding: 16px 8px 24px; text-align: center; }
.empty-symbol { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--violet-wash); color: var(--violet); font: 25px/1 var(--mono); margin: 0 auto 18px; border-radius: 4px; }
.lookup-empty strong { display: block; font-size: 15px; }
.lookup-empty p { max-width: 280px; margin: 10px auto 0; font-size: 13px; color: var(--muted); }
input[type="file"] { font-size: 13px; padding: 12px; color: var(--muted); background: white; }
input[type="file"]::file-selector-button { min-height: 44px; padding: 10px 12px; margin-right: 10px; border: 1px solid var(--control-line); border-radius: 3px; background: var(--canvas); color: var(--ink); font: 600 12px/1.5 var(--sans); cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--violet-wash); border-color: var(--violet); }
.compact-button { min-height: 44px; font-size: 12px; padding-block: 8px; }
.input-divider { display: flex; gap: 12px; align-items: center; margin: 24px 0; font-size: 12px; color: var(--muted); }
.input-divider::before, .input-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.local-hash-output { padding-top: 24px; border-top: 1px solid var(--line); margin-top: 26px; }
#localHash { color: var(--violet-deep); min-height: 2rem; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 4px; margin-top: 10px; }
#localHash:empty::before { content: 'Your calculated hash appears here.'; font: 13px/1.7 var(--sans); color: var(--muted); }
.evidence-note { display: grid; gap: 22px; margin-top: 32px; }
.evidence-note h2 { font-size: 27px; }
.evidence-note > p { margin: 0; }
#toast { display: none; position: fixed; z-index: 50; bottom: 20px; left: 16px; right: 16px; padding: 18px 22px; color: white; background: var(--dark); border-left: 4px solid #b7adbf; border-radius: 6px; box-shadow: 0 10px 40px #201b2530; font-size: 14px; overflow-wrap: anywhere; }
#toast.bad { border-left: 6px solid white; background: var(--violet-deep); }

/* Legal and evidence pages share the identity without touching their templates. */
.legal-top { justify-content: space-between; gap: 10px; padding-bottom: 8px; }
.legal-header-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; width: 100%; gap: 4px 10px; border-top: 1px solid var(--line); }
.legal-header-nav a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--muted); font-size: 12px; text-decoration: none; }
.legal-header-nav a:hover, .legal-header-nav a[aria-current="page"] { color: var(--violet-deep); text-decoration: underline; text-underline-offset: 6px; }
.legal-main { max-width: 1120px; padding-top: 40px; padding-bottom: 64px; }
.legal-main .page-heading { border-bottom: 1px solid var(--line); padding-bottom: 30px; max-width: none; }
.legal-main .intro { font-size: 18px; max-width: 740px; }
.legal-version { color: var(--muted); font: 12px/1.8 var(--mono); margin-top: 24px; }
.legal-launch-notice { margin-bottom: 28px; }
.legal-summary { padding: 28px 24px; background: var(--violet-wash); border: 1px solid #d2cbd5; border-left: 4px solid var(--violet); border-radius: 4px; margin-bottom: 32px; }
.legal-summary h2 { font-size: 27px; line-height: 1.25; max-width: 760px; margin-bottom: 20px; }
.legal-summary > p:last-child { color: var(--muted); font-size: 15px; max-width: 810px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 16px 0; margin-bottom: 40px; border-block: 1px solid var(--line); }
.legal-toc a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.legal-copy { max-width: 790px; margin-inline: auto; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.legal-copy section { margin-bottom: 44px; padding-top: 10px; scroll-margin-top: 24px; }
.legal-copy h2 { font-size: 26px; letter-spacing: -.035em; line-height: 1.3; margin-bottom: 24px; }
.legal-copy h3 { font-size: 19px; line-height: 1.4; margin: 30px 0 14px; }
.legal-copy p { margin-bottom: 20px; }
.legal-copy code { font: .87em/1.8 var(--mono); overflow-wrap: anywhere; color: var(--violet-deep); }
.legal-copy pre { padding: 24px 20px; background: var(--dark); color: white; border-color: var(--dark); font-size: 13px; line-height: 1.9; }
.legal-copy pre code { color: white; font-size: inherit; }
.legal-fact { border: 1px solid var(--line); background: white; padding: 24px; border-radius: 4px; margin: 26px 0; }
.legal-fact h3 { margin-top: 0; }
.legal-config { border-left: 3px solid var(--violet); padding-left: 20px; white-space: pre-line; }
.legal-definition { margin-block: 26px; }
.legal-definition dt { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); color: var(--violet-deep); font-weight: 650; }
.legal-definition dd { margin: 10px 0 0; color: var(--muted); }
.legal-source { font-size: 13px; color: var(--muted); }

/* Footer keeps the public evidence and policy destinations equally discoverable. */
footer { padding-block: 36px 24px; border-top: 1px solid var(--line); background: white; }
.footer-main { display: flex; flex-direction: column; gap: 28px; padding-bottom: 30px; }
.brand.mini { font-size: 13px; letter-spacing: .03em; }
.footer-main > div > p { margin-top: 12px; color: var(--muted); font-size: 13px; }
.footer-kicker { display: block; color: var(--muted); font: 9px/1.6 var(--mono); letter-spacing: .08em; margin-top: 14px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 4px 24px; }
.footer-nav button, .footer-nav a { display: inline-flex; align-items: center; justify-self: start; border: 0; padding: 10px 0; min-height: 44px; background: transparent; color: var(--muted); font: 500 12px/1.6 var(--sans); text-align: left; text-decoration: none; }
.footer-nav button:hover, .footer-nav a:hover, .footer-nav .selected { color: var(--violet-deep); text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; position: relative; padding-top: 22px; font-size: 11px; color: var(--muted); }
.footer-bottom::before { content: ''; position: absolute; top: 0; inset-inline: 20px; height: 1px; background: var(--line); }

/* Mobile-first composition: enhance, never remove functional controls. */
@media (min-width: 480px) {
  .shell { padding-inline: 28px; }
  .brand > span:not(.mark) { width: 167px; }
  .brand { gap: 10px; }
  .folio-ground { padding: 24px 30px; }
  .folio-paper { padding: 30px; }
  .folio-paper h2 { font-size: 35px; }
  .folio-hash code { font-size: 12px; }
  .footer-bottom::before { inset-inline: 28px; }
  .panel { padding: 30px; }
}
@media (min-width: 720px) {
  .shell { padding-inline: 40px; }
  .top-inner { padding-top: 16px; }
  .mark { width: 37px; height: 42px; }
  .brand > span:not(.mark) { width: 175px; }
  .user #who { display: inline; }
  .nav button { font-size: 13px; }
  .hero { gap: 28px; padding-block: 60px 48px; grid-template-columns: 1.08fr 1fr; align-items: center; }
  .hero h1 { font-size: clamp(44px, 5.4vw, 76px); }
  .hero .eyebrow { font-size: 10px; }
  .hero .intro { font-size: 16px; }
  .hero-note { font-size: 12px; }
  .hero-actions { gap: 12px 20px; }
  .folio-ground { padding: 20px; }
  .folio-paper { padding: 24px 20px; }
  .folio-paper h2 { font-size: 29px; }
  .folio-hash code { font-size: 9px; }
  .folio-mast { font-size: 9px; }
  .illustration-label { font-size: 8px; }
  .folio-fields div { font-size: 11px; }
  .record-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .record-strip > div { border-bottom: 0; padding: 26px 18px; border-left: 1px solid var(--line); }
  .record-strip > div:first-child { border-left: 0; padding-left: 0; }
  .record-strip strong { font-size: 14px; }
  .record-strip p span { font-size: 11px; }
  .capabilities { padding-top: 72px; }
  .editorial-heading { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; margin-bottom: 36px; }
  .editorial-heading > p { justify-self: end; }
  .capability-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .capability-card { padding: 32px; }
  .capability-card h3 { font-size: 33px; }
  .evidence-section { padding: 40px; margin-top: 64px; }
  .faq-section { grid-template-columns: 1fr 1.5fr; gap: 44px; padding-block: 72px; }
  .closing-callout { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 32px; padding: 40px; }
  .closing-callout > div:last-child { justify-self: end; }
  .view { padding-block: 56px 80px; }
  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col.wide { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
  .two-col.verify-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .side-panel { padding: 28px; }
  .side-panel h2 { font-size: 27px; }
  .form-section-heading > .badge { margin-left: 42px; }
  .reveal-fields { grid-template-columns: .55fr 1fr; }
  .buttonrow > button { flex: 0 1 auto; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .metrics > div { display: block; padding: 24px; }
  .metrics strong { margin-top: 18px; text-align: left; font-size: 27px; }
  .evidence-note { padding: 28px 32px; grid-template-columns: 1fr 1.5fr; gap: 36px; }
  .legal-top { padding-block: 16px; }
  .legal-header-nav { width: auto; border: 0; gap: 20px; }
  .legal-header-nav a { font-size: 13px; }
  .legal-main { padding-top: 64px; }
  .legal-summary { padding: 36px; }
  .legal-summary h2 { font-size: 32px; }
  .footer-main { flex-direction: row; justify-content: space-between; gap: 40px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 36px; }
  .footer-bottom::before { inset-inline: 40px; }
  #toast { left: auto; right: 28px; max-width: 480px; }
}
@media (min-width: 1080px) {
  .shell { padding-inline: 52px; }
  .top-inner { flex-wrap: nowrap; min-height: 88px; gap: 28px; padding-block: 0; }
  .brand > span:not(.mark) { width: 175px; }
  .nav { order: 0; flex: 0 1 auto; margin: 0 auto; border: 0; display: flex; gap: 5px; }
  .nav button { padding-inline: 14px; min-height: 88px; }
  .user { margin-left: 0; gap: 14px; }
  .user #who { max-width: 100px; font-size: 11px; }
  .user .ghost.sm { padding-inline: 20px; font-size: 13px; }
  .hero { grid-template-columns: 1.12fr 1fr; gap: 58px; padding-block: 72px 60px; }
  .hero h1 { font-size: clamp(66px, 5.5vw, 79px); }
  .hero .eyebrow { font-size: 11px; margin-bottom: 28px; }
  .hero .intro { font-size: 18px; max-width: 480px; margin-top: 26px; }
  .hero-actions { gap: 28px; margin-top: 30px; }
  .audience-line { margin-top: 36px; }
  .folio-ground { padding: 26px 32px; }
  .folio-mast { font-size: 11px; }
  .illustration-label { font-size: 9px; }
  .folio-paper { margin: 30px 12px 26px 0; padding: 30px; }
  .folio-paper h2 { font-size: 36px; margin-block: 22px 26px; }
  .folio-fields div { font-size: 12px; }
  .folio-hash code { font-size: 12px; }
  .folio-time { padding-left: 2px; }
  .folio-time strong { font-size: 13px; }
  .folio-time p > span { font-size: 12px; }
  .record-strip > div { padding: 30px 32px; gap: 18px; }
  .record-strip strong { font-size: 16px; }
  .record-strip p span { font-size: 13px; }
  .capabilities { padding-top: 88px; }
  .capability-card { padding: 40px; }
  .capability-card h3 { font-size: 38px; }
  .capability-card > p { font-size: 15px; }
  .capability-top { margin-bottom: 38px; }
  .evidence-section { grid-template-columns: 1fr 1.2fr; gap: 80px; padding: 52px; margin-top: 72px; }
  .evidence-list > div:first-child { border-top: 0; padding-top: 0; }
  .faq-section { padding-block: 88px; gap: 80px; }
  .closing-callout { padding: 48px 52px; }
  .view { padding-bottom: 96px; }
  .page-heading { margin-bottom: 40px; }
  .panel { padding: 36px; }
  .two-col { gap: 28px; }
  .two-col.wide { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 32px; }
  .side-panel { padding: 36px 30px; }
  .side-panel h2 { font-size: 31px; }
  .form-section-heading > .badge { margin-left: auto; }
  .form-footer .primary { flex: 0 1 auto; }
  .metrics strong { font-size: 32px; }
  .panel-toolbar { flex-wrap: nowrap; }
  .legal-top { justify-content: space-between; }
  .legal-header-nav { gap: 28px; }
  .legal-main { padding-top: 72px; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 36px; }
  footer { padding-top: 48px; }
  .footer-bottom::before { inset-inline: 52px; }
}
@media (max-width: 359px) {
  .shell { padding-inline: 16px; }
  .brand > span:not(.mark) { width: 128px; }
  .brand { gap: 6px; }
  .mark { width: 28px; }
  .user .ghost.sm { padding-inline: 10px; }
  .hero h1 { font-size: 41px; }
  .hero .eyebrow { font-size: 9px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .text-button { justify-content: center; }
  .folio-ground { padding-inline: 14px; }
  .folio-paper { padding: 22px 18px; }
  .folio-hash code { font-size: 9px; }
  .folio-fields div { font-size: 11px; }
  .panel, .side-panel { padding: 22px 18px; }
  .consent-group legend { font-size: 17px; }
  .consent-group legend .section-index { margin-right: 5px; }
  .footer-bottom::before { inset-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .primary, .ghost, .badge, .panel, .panel-icon, .check, .section-index { border: 1px solid ButtonText; }
  .nav button.selected { outline: 2px solid Highlight; outline-offset: -4px; }
  .mark { background: none; color: CanvasText; font-size: 18px; width: auto; height: auto; }
  .mark span { font-size: inherit; }
  .brand > span:not(.mark) { background: none; font-size: 12px; width: auto; height: auto; }
  .first-rule, .status-square, .detail-toggle::before, .detail-toggle::after { background: CanvasText; }
  .folio-paper { border: 1px solid CanvasText; }
  .folio-graphic { display: none; }
  .folio-time, .evidence-section, .side-panel, .closing-callout { border: 1px solid CanvasText; }
  .brand { white-space: normal; }
}
@media print {
  .top, footer, .skip-link, #toast, .hero-actions, .auth-notice, .buttonrow, .legal-toc { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .shell { max-width: none; padding: 0; }
  .view, .legal-main { padding: 0; }
  .panel, .folio-paper, .capability-card, .legal-summary { box-shadow: none; break-inside: avoid; }
  .hero { padding-top: 0; }
  .hero h1 { font-size: 36pt; }
  .evidence-section, .side-panel, .closing-callout, .legal-copy pre { background: white; color: black; border: 1px solid black; }
  .evidence-section *, .side-panel *, .closing-callout *, .legal-copy pre * { color: black !important; }
  .legal-copy { max-width: none; font-size: 11pt; }
  .legal-copy h2, .legal-copy h3 { break-after: avoid; }
}

/* MIDNIGHT / A deliberately different composition, not a violet recolor. */
body { background: var(--canvas); }
.shell { max-width: 1400px; }
.top { background: var(--night); color: var(--ivory); border-bottom-color: #40324e; }
.brand { gap: 10px; color: var(--ivory); }
.mark { width: 36px; height: 40px; background-image: url('/assets/brand/invent-priority-mark-reversed.svg'); }
.brand > span:not(.mark) { width: 166px; height: 34px; background-image: url('/assets/brand/invent-priority-wordmark-reversed.svg'); }
.nav { border-top-color: #40324e; }
.nav button { color: #d4cedb; font-weight: 450; }
.nav button:hover { background: #241136; color: var(--ivory); }
.nav button.selected { border-bottom-color: var(--ivory); color: var(--ivory); font-weight: 600; }
.top .user #who { color: #c6bdce; }
.user .ghost.sm { border-color: #8d819b; background: transparent; color: var(--ivory); }
.user .ghost.sm:hover { background: #30203f; }
.top :focus-visible, footer :focus-visible, .hero :focus-visible { outline-color: var(--ivory); }
.primary, .ghost { border-radius: 2px; font-weight: 600; letter-spacing: .01em; }
.eyebrow { font-weight: 550; letter-spacing: .15em; }
.hero { position: relative; isolation: isolate; grid-template-columns: minmax(0,1fr); gap: 48px; padding-block: 52px 48px; }
.hero::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc((100vw - 100%) / -2); right: calc((100vw - 100%) / -2); background: var(--night); }
.hero .eyebrow { color: #c5bdce; font: 500 9px/1.7 var(--sans); letter-spacing: .14em; margin-bottom: 28px; }
.first-rule { background: #b3a4c5; width: 16px; height: 1px; }
.hero h1 { color: var(--ivory); font: 400 clamp(46px, 11.5vw, 76px)/1.06 var(--serif); letter-spacing: -.05em; }
.hero h1 span { color: var(--ivory); font-style: italic; }
.desktop-break { display: none; }
.hero .intro { color: #d4cedb; font-size: 16px; line-height: 1.85; margin-top: 26px; max-width: 440px; }
.hero-actions { margin-top: 30px; gap: 12px 28px; }
.hero-actions .primary { background: var(--ivory); border-color: var(--ivory); color: #24103d; padding: 16px 22px; min-height: 56px; }
.hero-actions .primary:hover { background: #dcd6ce; border-color: #dcd6ce; }
.hero-actions .text-button { color: var(--ivory); font-size: 13px; min-height: 48px; }
.hero-note { color: #beb4c9; font-size: 12px; margin-top: 22px; max-width: 400px; }
.audience-line { border-color: #40324e; padding-top: 22px; margin-top: 32px; }
.audience-label { color: #bfb5ca; font: 500 9px/1.8 var(--sans); letter-spacing: .11em; }
.audience-line p { color: var(--ivory); font-size: 11px; margin-top: 9px; }
.audience-line p span { color: #bfb5ca; }
.record-exhibit { margin: 0; min-width: 0; padding: 0; }
.exhibit-caption { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #746580; padding-top: 15px; margin-bottom: 22px; color: #c6bdce; font: 9px/1.6 var(--mono); letter-spacing: .08em; }
.archive-sheet { position: relative; background: var(--ivory); color: #24103d; padding: 26px 22px 20px; box-shadow: 12px 12px 0 #27153b; border: 1px solid #d9d0df; }
.archive-sheet::before { content: ''; position: absolute; left: -1px; top: -1px; width: 24px; height: 24px; background: var(--night); clip-path: polygon(0 0,100% 0,0 100%); }
.archive-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.archive-top img { display: block; width: 40px; height: 40px; }
.archive-top > span { font: 8px/1.8 var(--mono); text-align: right; letter-spacing: .04em; color: #625b66; }
.archive-category { font: 500 8px/1.6 var(--sans); letter-spacing: .18em; color: #625b66; margin-bottom: 13px; }
.archive-sheet h2 { color: #24103d; font: 400 30px/1.1 var(--serif); letter-spacing: -.045em; }
.archive-description { margin-top: 17px; font-size: 12px; line-height: 1.8; color: #625b66; }
.archive-line { height: 1px; background: #9c939e; margin-top: 26px; }
.archive-fields { margin: 14px 0 22px; }
.archive-fields > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 11px; border-bottom: 1px solid #ddd6dc; }
.archive-fields dt { color: #625b66; }
.archive-fields dd { text-align: right; margin: 0; color: #24103d; font-weight: 550; }
.archive-fingerprint { padding-block: 0 18px; }
.archive-fingerprint > span { display: block; font: 8px/1.5 var(--mono); letter-spacing: .07em; color: #625b66; margin-bottom: 10px; }
.archive-fingerprint code { display: block; color: #24103d; overflow-wrap: anywhere; font: 9px/1.9 var(--mono); }
.archive-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #9c939e; padding-top: 12px; font: 9px/1.4 var(--sans); letter-spacing: .14em; }
.cut-sign { font: 26px/1 var(--serif); }
.record-exhibit figcaption { color: #beb4c9; font: 10px/1.8 var(--sans); padding-top: 25px; max-width: 390px; }
.record-strip { margin-top: 0; border-top: 0; border-bottom: 1px solid var(--line); padding-block: 8px; }
.strip-number { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.record-strip strong { font-weight: 550; }
.capabilities { padding-top: 64px; }
.section-heading h2, .evidence-intro h2, .closing-callout h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
.editorial-heading h2, .faq-section .section-heading h2 { font-size: clamp(36px, 4.3vw, 54px); }
.capability-grid { gap: 0; border-top: 1px solid #a49ba9; border-bottom: 1px solid var(--line); }
.capability-card, .capability-card.capability-violet { border: 0; background: transparent; border-radius: 0; padding: 32px 0; }
.capability-card + .capability-card { border-top: 1px solid var(--line); }
.capability-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 39px); letter-spacing: -.035em; }
.capability-glyph { border-radius: 0; background: transparent; color: #35174f; }
.capability-meta { border-color: var(--line); }
.evidence-section { border-radius: 0; background: #211032; margin-top: 56px; padding: 32px 24px; }
.evidence-section .eyebrow { color: #d4cedb; }
.evidence-section h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; }
.evidence-section p, .evidence-list dd { color: #d4cedb; }
.evidence-list dt span { color: #c7b9d3; }
.evidence-list > div { border-color: #5e4b70; }
.closing-callout { border-radius: 0; border-top: 1px solid #a49ba9; border-bottom: 1px solid #a49ba9; background: transparent; color: var(--ink); padding: 36px 0; }
.closing-callout h2 { color: var(--ink); }
.closing-callout .eyebrow { color: var(--muted); }
.closing-callout .primary { background: #24103d; color: #fff; border-color: #24103d; }
.closing-callout .primary:hover { background: #35174f; }
.closing-callout > div > p:last-child:not(.eyebrow) { color: var(--muted); }
.closing-callout :focus-visible { outline-color: #35174f; }
.page-heading { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; font-size: clamp(36px, 5vw, 62px); }
.panel { border-radius: 2px; box-shadow: none; }
.panel h2, .side-panel h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; }
.side-panel { background: #211032; border-radius: 2px; }
.auth-notice, .timestamp-card, .legal-summary { border-left-width: 2px; border-radius: 0; }
input:not([type="checkbox"]), textarea, .check, .badge, pre, .metrics > div { border-radius: 2px; }
.legal-summary { background: #eeece8; }
.legal-summary h2, .legal-copy h2 { font-family: var(--serif); font-weight: 400; }
.legal-header-nav { border-color: #40324e; }
.legal-header-nav a { color: #d4cedb; }
.legal-header-nav a:hover, .legal-header-nav a[aria-current="page"] { color: var(--ivory); }
footer { background: var(--night); color: var(--ivory); border-color: #40324e; }
.footer-main > div > p, .footer-kicker, .footer-nav a, .footer-nav button, .footer-bottom { color: #c6bdce; }
.footer-nav a:hover, .footer-nav button:hover, .footer-nav .selected { color: #fff; }
.footer-bottom::before { background: #40324e; }
@media (min-width: 480px) {
  .brand > span:not(.mark) { width: 203px; }
  .archive-sheet { padding: 36px 32px 24px; }
  .archive-sheet h2 { font-size: 36px; }
  .archive-fingerprint code { font-size: 11px; }
}
@media (min-width: 720px) {
  .hero { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: center; padding-block: 64px; gap: 40px; }
  .hero h1 { font-size: clamp(48px, 5.8vw, 82px); }
  .hero .intro { font-size: 15px; }
  .desktop-break { display: inline; }
  .archive-sheet { padding: 26px 22px 20px; }
  .archive-sheet h2 { font-size: 30px; }
  .archive-fingerprint code { font-size: 9px; }
  .archive-top { margin-bottom: 30px; }
  .archive-fields > div { font-size: 10px; }
  .capability-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .capability-card { padding: 40px 32px 40px 0; }
  .capability-card + .capability-card { border-top: 0; border-left: 1px solid var(--line); padding: 40px 0 40px 32px; }
  .evidence-section { padding: 44px; }
  .brand > span:not(.mark) { width: 218px; }
  .mark { width: 40px; height: 44px; }
}
@media (min-width: 1080px) {
  .top-inner { min-height: 102px; gap: 24px; }
  .brand > span:not(.mark) { width: 230px; }
  .mark { width: 44px; height: 48px; }
  .brand { gap: 14px; }
  .nav button { min-height: 102px; padding-inline: 12px; font-size: 13px; }
  .user #who { display: none; }
  .hero { padding-block: 78px 72px; grid-template-columns: minmax(0,1.2fr) minmax(0,.85fr); gap: 80px; }
  .hero h1 { font-size: clamp(74px,6.5vw,96px); }
  .hero .eyebrow { font-size: 10px; margin-bottom: 32px; }
  .hero .intro { font-size: 17px; margin-top: 28px; max-width: 440px; }
  .audience-line { margin-top: 40px; }
  .record-exhibit { padding-inline: 0 12px; }
  .archive-sheet { padding: 34px 32px 24px; }
  .archive-sheet h2 { font-size: 37px; }
  .archive-description { font-size: 13px; }
  .archive-top { margin-bottom: 38px; }
  .archive-top img { width: 48px; height: 48px; }
  .archive-fields > div { font-size: 12px; }
  .archive-fingerprint code { font-size: 10px; }
  .capabilities { padding-top: 96px; }
  .capability-card { padding: 48px 52px 48px 0; }
  .capability-card + .capability-card { padding: 48px 0 48px 52px; }
  .evidence-section { padding: 56px; margin-top: 80px; }
  .evidence-section h2 { font-size: 43px; }
  .closing-callout { padding-block: 48px; }
}
@media (min-width: 1280px) { .user #who { display: inline; } }
@media (max-width: 359px) {
  .brand { gap: 7px; }
  .brand > span:not(.mark) { width: 150px; }
  .mark { width: 28px; height: 36px; }
  .hero h1 { font-size: 44px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: .09em; }
  .hero-actions { align-items: stretch; }
  .archive-sheet { padding-inline: 18px; }
  .archive-sheet h2 { font-size: 29px; }
  .archive-fingerprint code { font-size: 8px; }
  .archive-fields > div { font-size: 10px; }
}
@media (forced-colors: active) {
  .hero::before { background: Canvas; }
  .hero *, .top *, footer * { color: CanvasText; }
  .brand .mark, .brand > span:not(.mark) { background: none; color: CanvasText; width: auto; height: auto; font-size: 13px; }
  .mark span { font-size: inherit; }
  .brand { white-space: normal; }
  .archive-sheet, .exhibit-caption { border: 1px solid CanvasText; }
  .archive-sheet::before { display: none; }
}
@media print {
  .hero::before { display: none; }
  .hero *, .archive-sheet *, .record-exhibit figcaption { color: black !important; }
  .archive-sheet { box-shadow: none; border: 1px solid black; }
  .hero { display: block; }
}

/* ORIGINAL WORK / editorial scope and contextual forms */
select { font: inherit; color: var(--ink); background: var(--paper); width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--control-line); border-radius: var(--radius); padding: 12px; }
select:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.work-section { margin-block: 64px; }
.work-grid { display: grid; grid-template-columns: minmax(0,1fr); border-top: 1px solid var(--line-strong); }
.work-card { display: flex; flex-direction: column; min-width: 0; padding: 26px 0; border-bottom: 1px solid var(--line); }
.work-number { color: var(--muted); font: 500 12px var(--mono); margin-bottom: 18px; }
.work-card h3 { font-size: 23px; margin-bottom: 14px; }
.work-card p { color: var(--muted); max-width: 38ch; }
.work-card button { margin-top: auto; align-self: flex-start; text-align: left; min-height: 44px; }
.scope-footnote { color: var(--muted); padding-top: 22px; font-size: 14px; max-width: 90ch; }
.work-guide { padding: 20px; margin-block: 0 26px; background: var(--canvas); border-inline-start: 3px solid var(--violet); }
.work-guide .eyebrow { margin-bottom: 12px; }
.work-guide h3 { font-size: 20px; margin-bottom: 12px; }
.work-guide p { font-size: 14px; color: var(--muted); }
.work-guide details { margin-top: 14px; }
.work-guide summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 650; }
.work-guide li { font-size: 14px; margin-block: 8px; }
.work-guide ol { padding-inline-start: 22px; }
.work-guide button { font-size: 14px; white-space: normal; text-align: left; }
#workOutlineStatus { margin-top: 12px; }
.watch-coverage { display: grid; gap: 28px; padding: 32px 0; margin-top: 44px; border-block: 1px solid var(--line-strong); }
.watch-coverage h2 { font-size: clamp(25px,3vw,34px); max-width: 20ch; }
.watch-coverage dl { margin: 0; }
.watch-coverage dl > div + div { margin-top: 22px; }
.watch-coverage dt { font-weight: 650; margin-bottom: 6px; }
.watch-coverage dd { margin: 0; color: var(--muted); font-size: 14px; max-width: 74ch; }
#v-home .hero-copy h1 { font-size: clamp(47px,7vw,94px); }
.audience-line p { line-height: 1.9; }
@media (min-width: 680px) {
  .work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .work-card { padding: 28px 24px 28px 0; }
  .work-card:nth-child(even) { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
}
@media (min-width: 1050px) {
  .work-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .work-card, .work-card:nth-child(even) { padding: 32px 28px; border-inline-start: 1px solid var(--line); }
  .work-card:nth-child(3n+1) { padding-inline-start: 0; border-inline-start: 0; }
  .watch-coverage { grid-template-columns: 1fr 1.3fr; }
}
@media (forced-colors: active) {
  .work-guide { border-color: CanvasText; }
  select { border-color: ButtonText; }
}

/* ---- Original Work Release visual layer, applied to the existing markup ----
   These classes exist in the current page markup (receipt, principle strip, steps,
   services, /security) but not in the Original Work Release stylesheet. They are styled
   here with the same tokens: night plum, ivory sheet, Georgia serif headlines, hairline rules.
   System fonts only; no external assets. */
.eyebrow-line { display: inline-block; width: 16px; height: 1px; background: #b3a4c5; flex: 0 0 auto; }
.hero-audience { color: var(--ivory); font: 500 11px/1.9 var(--sans); letter-spacing: .02em; margin: 32px 0 0; padding-top: 22px; border-top: 1px solid #40324e; max-width: 490px; }
.hero-safety { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; color: #d4cedb; font-size: 13px; line-height: 1.6; max-width: 490px; }
.hero-safety .icon { width: 18px; height: 18px; margin-top: 3px; color: #c5bdce; }
.hero-safety a { display: inline-block; font-weight: 600; padding-block: 6px; color: var(--ivory); text-decoration-color: #8d819b; }

/* Illustrative receipt = the ivory archive sheet on the night ground. */
.receipt-stage { margin: 0; min-width: 0; padding: 0; }
.receipt-card { position: relative; background: var(--ivory); color: #24103d; box-shadow: 12px 12px 0 #27153b; border: 1px solid #d9d0df; margin: 0 12px 0 0; overflow: hidden; }
.receipt-card::before { content: ''; position: absolute; left: -1px; top: -1px; width: 24px; height: 24px; background: var(--night); clip-path: polygon(0 0,100% 0,0 100%); }
.receipt-top { display: flex; align-items: center; gap: 12px; padding: 24px 22px 0; margin-bottom: 26px; }
.receipt-top .mono { font: 500 8px/1.8 var(--mono); letter-spacing: .12em; color: #625b66; }
.receipt-symbol { color: #24103d; }
.receipt-symbol .icon { width: 26px; height: 26px; }
.specimen-label { margin-left: auto; text-align: right; font: 8px/1.8 var(--mono); letter-spacing: .06em; color: #625b66; }
.receipt-body { padding: 0 22px 18px; }
.receipt-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.receipt-heading h2 { margin: 0; color: #24103d; font: 400 30px/1.1 var(--serif); letter-spacing: -.045em; }
.receipt-heading .badge { margin-left: auto; background: transparent; border-color: #9c939e; color: #24103d; font-size: 8px; }
.badge-dot { display: inline-block; height: 6px; width: 6px; background: #24103d; flex: 0 0 auto; }
.receipt-caption { margin: 17px 0 0; color: #625b66; font-size: 12px; line-height: 1.8; }
.receipt-fields { margin: 22px 0 16px; border-top: 1px solid #9c939e; }
.receipt-fields > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 11px; border-bottom: 1px solid #ddd6dc; }
.receipt-fields dt { color: #625b66; }
.receipt-fields dd { margin: 0; text-align: right; color: #24103d; font-weight: 550; }
.sample-hash { background: transparent; border: 0; padding: 4px 0 8px; color: #24103d; font: 9px/1.9 var(--mono); overflow-wrap: anywhere; }
.sample-hash span { display: block; }
.receipt-evidence { display: flex; align-items: center; gap: 11px; margin-top: 12px; }
.receipt-evidence .icon { color: #24103d; width: 22px; height: 22px; }
.receipt-evidence strong { display: block; font-size: 11px; color: #24103d; }
.receipt-evidence div > span { display: block; color: #625b66; font-size: 10px; margin-top: 2px; }
.receipt-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin: 0 22px; padding: 12px 0 16px; border-top: 1px solid #9c939e; color: #625b66; font: 9px/1.4 var(--sans); }
.receipt-bottom .mono { font: 9px/1.4 var(--sans); letter-spacing: .14em; color: #24103d; white-space: nowrap; }
.receipt-stage figcaption { color: #beb4c9; font: 10px/1.8 var(--sans); padding-top: 25px; max-width: 390px; }

.principle-strip { display: grid; margin-top: 0; border-top: 0; border-bottom: 1px solid var(--line); padding-block: 8px; }
.principle-strip > div { display: flex; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.principle-strip > div:last-child { border-bottom: 0; }
.principle-strip .icon { color: #35174f; width: 24px; height: 24px; }
.principle-strip p { margin: 0; }
.principle-strip strong { display: block; font-size: 15px; font-weight: 550; letter-spacing: -.01em; }
.principle-strip span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.steps-grid { display: grid; gap: 0; border-top: 1px solid #a49ba9; border-bottom: 1px solid var(--line); }
.step { padding: 28px 0; }
.step + .step { border-top: 1px solid var(--line); }
.step-number { display: block; margin-bottom: 14px; color: var(--violet); font: 400 24px/1 var(--serif); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -.035em; margin-bottom: 12px; }
.step p { margin: 0; max-width: 340px; color: var(--muted); font-size: 14px; line-height: 1.8; }

.service-grid { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid #a49ba9; border-bottom: 1px solid var(--line); }
.service-card { display: flex; flex-direction: column; min-width: 0; padding: 32px 0; border: 0; border-radius: 0; background: transparent; }
.service-card + .service-card { border-top: 1px solid var(--line); }
.service-primary { background: transparent; }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.service-top .eyebrow { margin: 0; color: var(--muted); }
.service-top .icon { color: #35174f; }
.service-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 39px); letter-spacing: -.035em; margin-bottom: 20px; }
.service-card > p { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 440px; margin: 0 0 18px; }
.service-card .linkish { align-self: start; margin-top: auto; }

.account-grid { align-items: stretch; max-width: 1000px; }
.account-grid .field { margin-bottom: 22px; }
.account-grid form > button { margin-top: 3px; }
.account-create { background: var(--violet-wash); }
.anchor-list { font-size: 13px; color: var(--muted); }
.verify-heading { max-width: 780px; }
.editorial-heading { padding-top: 8px; }

/* /security: night-plum statement, ivory numbered points, hairline rules. */
.security-points { list-style: none; counter-reset: sec; margin: 0; padding: 0; display: grid; gap: 14px; }
.security-points li { counter-increment: sec; position: relative; background: #fff; border: 1px solid var(--line); border-left: 2px solid var(--violet); border-radius: 2px; padding: 56px 20px 20px; }
.security-points li::before { content: counter(sec, decimal-leading-zero); position: absolute; left: 20px; top: 20px; font: 400 22px/1 var(--serif); color: var(--violet); }
.security-points h3 { margin: 0 0 8px; font-size: 19px; }
.security-points p, .security-points li p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.75; }
.security-limits { margin: 0; padding-left: 20px; color: var(--muted); }
.security-limits li { margin-bottom: 10px; }
.security-limits li:last-child { margin-bottom: 0; }
.security-tech dt:first-child { margin-top: 0; }
.security-tech dd .security-limits { margin-top: 4px; }
.security-copy .disclosure-panel > summary { cursor: pointer; }
.security-hero { background: var(--night); color: var(--ivory); border-radius: 0; padding: 30px 24px; margin: 0 auto 32px; max-width: 780px; }
.security-hero-lead { margin: 0; font: 400 26px/1.2 var(--serif); letter-spacing: -.035em; color: var(--ivory); }
.security-closing { background: #211032; color: #d4cedb; border-radius: 0; padding: 24px; margin: 32px auto 36px; max-width: 780px; }
.security-closing h3 { margin: 0 0 8px; font: 400 26px/1.15 var(--serif); letter-spacing: -.03em; color: #fff; }
.security-closing p { margin: 0; color: #d4cedb; }

@media (min-width: 720px) {
  .principle-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principle-strip > div { padding: 22px 0 22px 28px; border-bottom: 0; border-left: 1px solid var(--line); }
  .principle-strip > div:first-child { padding-left: 0; border-left: 0; }
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { padding: 32px 28px 32px 0; }
  .step + .step { border-top: 0; border-left: 1px solid var(--line); padding-left: 28px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }
  .service-card { padding: 36px 32px 36px 0; }
  .service-card + .service-card { border-top: 0; border-left: 1px solid var(--line); padding-left: 32px; }
  .security-hero { padding: 44px 48px; }
  .security-hero-lead { font-size: 36px; }
  .security-points li { padding: 22px 26px 22px 70px; }
  .security-points li::before { left: 24px; top: 21px; }
  .security-closing { padding: 32px 36px; }
}
@media (forced-colors: active) {
  .receipt-card, .security-hero, .security-closing { border: 1px solid CanvasText; }
}
@media print {
  .receipt-card, .service-card { box-shadow: none; break-inside: avoid; }
}

/* Footer contact line (LEGAL_CONTACT_EMAIL) */
.footer-main > div > p.footer-contact { margin-top: 8px; }
.footer-contact a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact a:hover { color: #fff; }
