/* Midnight-inspired independent application.
   Official core palette: https://midnight.network/brand-hub
   Midnight Black #0A0A0A · White #FFFFFF · Blue #0000FE.
   overview.css loads the bundled Outfit font without remote font requests. */
:root {
  color-scheme: dark;
  --black: #0a0a0a;
  --white: #fff;
  --blue: #0000fe;
  --surface: #111113;
  --surface-raised: #17171b;
  --surface-soft: #1d1d23;
  --line: #303038;
  --line-light: #464654;
  --muted: #b4b4c2;
  --subtle: #9292a4;
  --blue-light: #b0b0ff;
  --green: #a5e6c0;
  --red: #ffb1b1;
  --radius: 16px;
  font-family: Outfit, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: var(--black);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
.native-implementation { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px 30px; margin: 0 0 28px; background: #141426; border: 1px solid #414176; border-radius: 16px; }
.native-implementation .eyebrow { color: #b0b0ff; margin-bottom: 12px; }
.native-implementation h2 { margin: 0 0 12px; font-size: 25px; font-weight: 450; letter-spacing: -.5px; }
.native-implementation p { color: #b4b4c2; font-size: 13px; line-height: 1.8; margin: 0; }
.native-build-note strong { display: block; color: #dedeea; font-size: 12px; font-weight: 550; margin-bottom: 10px; }
.native-build-note .button { margin-top: 17px; }
@media (max-width: 760px) { .native-implementation { grid-template-columns: 1fr; gap: 22px; padding: 24px; } }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 90% 8%, #0000fe0d, transparent 32rem), var(--black); }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 14px 22px; border-radius: 8px; background: white; color: black; }
.skip-link:focus { top: 20px; }
.masthead { max-width: 1440px; margin: auto; padding: 32px 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 15px; font-size: 31px; letter-spacing: -1.8px; font-weight: 650; line-height: 1; }
.brand-light { font-weight: 350; }
.brand small { display: block; margin-top: 10px; font-size: 9px; font-weight: 500; letter-spacing: 1.7px; color: var(--muted); }
.brand-mark { width: 39px; height: 39px; position: relative; background: var(--blue); border-radius: 9px; transform: rotate(-7deg); }
.brand-mark i { position: absolute; height: 3px; background: white; border-radius: 2px; transform: rotate(-38deg); }
.brand-mark i:nth-child(1) { width: 11px; left: 8px; top: 21px; transform: rotate(43deg); }
.brand-mark i:nth-child(2) { width: 20px; left: 14px; top: 19px; }
.brand-mark i:nth-child(3) { width: 14px; left: 7px; top: 9px; opacity: .5; transform: none; }
.masthead-links { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.masthead-links a { padding: 12px 17px; border: 1px solid var(--line-light); border-radius: 30px; transition: background .2s, border-color .2s; }
.masthead-links a:hover { background: var(--surface-soft); border-color: #85859b; }
.masthead-links a span { margin-left: 14px; }
.version { font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--subtle); }
.mode-strip { padding: 12px 28px; border-block: 1px solid #292930; display: flex; align-items: center; justify-content: center; gap: 12px; background: #111114; font-size: 12px; color: var(--muted); }
.mode-strip strong { color: white; font-weight: 500; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-light); flex-shrink: 0; }
.strip-divider { color: #626277; padding: 0 4px; }
.mode-strip button { border: 0; padding: 3px 0; margin-left: 20px; color: white; background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.mode-strip button span { margin-left: 8px; }
.page { max-width: 1440px; margin: auto; padding: 0 52px; }
.hero { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: 60px; padding: 61px 0 45px; }
.eyebrow { font-size: 10px; font-weight: 550; line-height: 1.6; letter-spacing: 1.8px; color: var(--muted); margin: 0 0 21px; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; color: #d5d5e2; font-size: 11px; }
.eyebrow-dot { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 20px #5656ff66; }
.hero h1 { font-size: clamp(48px, 6.2vw, 88px); font-weight: 450; letter-spacing: -.065em; line-height: 1.03; margin: 0; }
.hero h1 em { font-style: normal; color: var(--blue-light); font-weight: 400; }
.hero-copy { font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 490px; margin: 25px 0 0; }
.hero-note { position: relative; text-align: center; justify-self: center; width: 310px; padding-bottom: 6px; }
.privacy-orbit { position: relative; margin: 0 auto 18px; width: 264px; height: 264px; border-radius: 50%; background: radial-gradient(circle, #0000fe25 0%, #0000fe08 48%, transparent 71%); }
.orbit-ring { position: absolute; border: 1px solid #464692; border-radius: 50%; inset: 16px; }
.orbit-ring-one { transform: rotate(-35deg) scaleY(.54); border-color: #7171d0; }
.orbit-ring-two { transform: rotate(35deg) scaleY(.54); border-color: #4242c4; }
.orbit-ring-three { inset: 39px; border: 1px solid #303069; box-shadow: 0 0 70px #0000fe29, inset 0 0 50px #0000fe14; }
.orbit-core { position: absolute; inset: 80px 35px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.orbit-core>span { font-size: 52px; font-weight: 350; letter-spacing: -3px; line-height: 1.2; }
.orbit-divider { color: #7d7dba; margin: 0 9px; font-size: 35px; font-weight: 250; }
.orbit-core small { font: 8px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1.6px; color: var(--blue-light); margin-top: 9px; white-space: nowrap; }
.orbit-point { position: absolute; width: 11px; height: 11px; border: 2px solid #b2b2ff; background: var(--blue); border-radius: 50%; box-shadow: 0 0 18px #0000fe; }
.orbit-point-one { left: 42px; top: 64px; }
.orbit-point-two { right: 39px; top: 163px; }
.orbit-point-three { left: 56px; bottom: 45px; background: #0a0a0a; }
.hero-note p { font-size: 16px; line-height: 1.55; font-weight: 450; margin: -8px 0 10px; }
.hero-note>small { font-size: 11px; line-height: 1.8; color: var(--subtle); }
.limitations { display: grid; grid-template-columns: 230px 1fr; gap: 30px; padding: 30px; border: 1px solid #3a3a5e; border-radius: var(--radius); background: linear-gradient(120deg, #151526, #111114); margin-bottom: 28px; }
.limitations .eyebrow { color: var(--blue-light); font-size: 9px; margin-bottom: 14px; }
.limitations h2 { font-size: 27px; font-weight: 450; letter-spacing: -1px; line-height: 1.18; margin: 0; }
.limits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; }
.limits-grid p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0; }
.limits-grid strong { display: block; margin-bottom: 4px; color: white; font-weight: 550; }
.metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; background: #111113; margin: 8px 0 35px; }
.metrics>div { min-height: 99px; padding: 25px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-left: 1px solid var(--line); }
.metrics>div:first-child { border-left: 0; }
.metric-label { color: var(--subtle); font-size: 9px; letter-spacing: 1.2px; line-height: 1.8; max-width: 165px; }
.metrics strong { font-size: 36px; font-weight: 400; line-height: 1; letter-spacing: -1px; }
.metrics .metric-word { font-size: 16px; letter-spacing: -.3px; line-height: 1.4; font-weight: 450; text-align: right; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 288px; column-gap: 25px; row-gap: 25px; align-items: start; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; grid-column: 1 / -1; }
.step { display: flex; align-items: center; gap: 14px; background: #111113; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 17px 20px; text-align: left; transition: background .2s, border-color .2s; }
.step>span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line-light); border-radius: 50%; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; flex-shrink: 0; }
.step>div { font-size: 13px; font-weight: 500; line-height: 1.4; }
.step small { display: block; margin-top: 5px; font-size: 10px; font-weight: 400; color: var(--subtle); }
.step.active { border-color: #5b5bff; color: white; background: linear-gradient(125deg, #1a1a3d, #131321); }
.step.active>span { border-color: var(--blue); background: var(--blue); color: white; }
.step.active small { color: #bcbce4; }
.step:hover:not(.active) { border-color: #686879; background: #19191f; }
.work-main { min-width: 0; }
.panel { min-height: 576px; padding: 37px 39px 39px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 25px; }
.panel-head .eyebrow { margin: 0; color: var(--blue-light); font-size: 10px; }
.panel-tag { display: inline-block; border: 1px solid var(--line-light); border-radius: 20px; padding: 7px 10px; font-size: 10px; letter-spacing: .2px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.panel h2 { font-size: clamp(29px, 2.8vw, 39px); font-weight: 450; line-height: 1.17; letter-spacing: -1.4px; margin: 0 0 13px; }
.section-copy { max-width: 600px; font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0 0 28px; }
.panel label { display: block; font-size: 13px; line-height: 1.5; font-weight: 500; margin: 22px 0 9px; }
.panel input, .panel select, .panel textarea { color: white; background: #19191e; border: 1px solid #3a3a46; border-radius: 8px; padding: 13px 15px; width: 100%; font-size: 14px; outline-offset: 2px; transition: border-color .2s; }
.panel input:hover, .panel select:hover, .panel textarea:hover { border-color: #77778b; }
.panel input:disabled, .panel select:disabled, .panel textarea:disabled { opacity: .6; }
.panel input::placeholder, .panel textarea::placeholder { color: #9c9cac; font-size: 12px; }
.panel textarea { line-height: 1.8; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.field-hint { font-size: 11px; color: var(--subtle); font-weight: 400; padding-left: 8px; }
.field-note { font-size: 12px; line-height: 1.75; color: var(--subtle); margin: 11px 0 0; }
.callout { display: flex; align-items: start; gap: 12px; border: 1px solid #333358; background: #19192b; border-radius: 8px; padding: 15px 17px; margin: 24px 0; }
.callout>span { color: var(--blue-light); font-size: 19px; line-height: 1.4; }
.callout p { color: #c4c4d8; font-size: 12px; line-height: 1.8; margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 13px 19px; min-height: 46px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 500; line-height: 1.5; transition: background .2s, border-color .2s; }
.button.primary { background: var(--blue); color: white; }
.button.primary:hover:not(:disabled) { background: #2626ff; box-shadow: 0 0 28px #0000fe22; }
.button.secondary { border-color: #4a4a59; background: #1b1b22; color: white; }
.button.secondary:hover:not(:disabled) { background: #292934; border-color: #828298; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.button-row.compact { margin-top: 15px; }
.text-button { border: 0; background: transparent; color: var(--blue-light); padding: 9px 3px; font-size: 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.success-card { display: flex; align-items: center; gap: 16px; background: #17251e; border: 1px solid #365744; border-radius: 10px; padding: 20px; margin: 27px 0; }
.success-card h3 { margin: 0; color: white; font-size: 15px; font-weight: 500; }
.success-card p { margin: 7px 0 0; color: #b8d1c2; font-size: 12px; line-height: 1.7; }
.success-icon { width: 31px; height: 31px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: #a5e6c0; color: #112318; }
.fingerprint { display: block; word-break: break-all; padding: 13px 15px; border: 1px solid #363644; border-radius: 7px; color: #d0d0e1; background: #1b1b24; font: 11px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
.panel fieldset { padding: 0; margin: 25px 0 0; border: 0; min-width: 0; }
.panel legend { padding: 0; margin-bottom: 14px; font-size: 13px; font-weight: 500; }
.candidate-options { display: grid; gap: 10px; }
.candidate-card { display: flex !important; align-items: center; gap: 13px; border: 1px solid var(--line-light); background: #18181d; border-radius: 9px; padding: 17px !important; margin: 0 !important; cursor: pointer; transition: background .2s, border-color .2s; }
.candidate-card:has(input:checked) { background: #202044; border-color: #8585ff; box-shadow: 0 0 0 1px #8585ff; }
.candidate-card:hover { border-color: #8b8ba1; }
.candidate-card input, .trustee-card input { width: 17px; height: 17px; margin: 0; padding: 0; flex-shrink: 0; accent-color: #8585ff; }
.candidate-letter { margin-left: auto; color: var(--subtle); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.receipt-panel { padding-top: 30px; margin-top: 32px; border-top: 1px dashed #46465b; }
.receipt-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 21px; }
.receipt-head .eyebrow { margin: 0 0 9px; font-size: 9px; }
.receipt-head h3 { font-size: 25px; font-weight: 450; letter-spacing: -.6px; margin: 0; }
.receipt-body { display: grid; grid-template-columns: 244px minmax(0, 1fr); align-items: center; gap: 25px; }
.receipt-body p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 0 0 12px; }
/* Four pixels per module, including the QR's own four-module quiet zone. */
.receipt-qr { padding: 7px; background: white; color: black; border: 1px solid #dedee6; border-radius: 8px; width: 244px; max-width: 100%; }
.receipt-qr svg { display: block; width: 228px; max-width: 100%; height: auto; shape-rendering: crispEdges; }
.receipt-body .fingerprint { font-size: 10px; }
.close-card { display: flex; align-items: center; gap: 24px; padding: 22px; background: #191920; border: 1px solid var(--line-light); border-radius: 10px; }
.close-card h3 { font-size: 15px; font-weight: 500; margin: 0 0 8px; }
.close-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.close-card .button { flex-shrink: 0; white-space: nowrap; }
.trustee-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.trustee-card { display: flex !important; align-items: center; flex-wrap: wrap; gap: 11px; padding: 15px !important; margin: 0 !important; border: 1px solid var(--line-light); border-radius: 9px; background: #19191e; cursor: pointer; font-size: 12px !important; }
.trustee-card:has(input:checked) { background: #20203a; border-color: #7474b8; }
.trustee-card small { width: 100%; overflow: hidden; text-overflow: ellipsis; color: var(--subtle); font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.trustee-options+.field-note { margin-bottom: 24px; }
.selection-help { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.selection-card { min-width: 0; min-height: 88px; padding: 20px !important; gap: 16px; }
.selection-card .selection-copy { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.selection-card .selection-copy strong { font-size: 16px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.selection-card .selection-copy small { display: block; width: auto; margin: 0; color: var(--subtle); font-family: inherit; font-size: 11px; line-height: 1.5; overflow: visible; text-overflow: clip; }
.selection-card input { width: 20px; height: 20px; }
.selection-card .candidate-letter { font-size: 24px; color: #9090bd; }
.selection-card:has(input:checked) { background: #24244b; border-color: #aaaaff; box-shadow: 0 0 0 1px #aaaaff; }
.selection-card:has(input:checked) .selection-copy strong { color: #ededff; }
.selection-card:has(input:focus-visible) { outline: 3px solid #c8c8ff; outline-offset: 4px; }
.selection-card:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.selection-card:has(input:disabled):hover { border-color: var(--line-light); }
.selection-card:has(input:checked):has(input:disabled) { opacity: .8; border-color: #aaaaff; }
.trustee-card.selection-card { flex-wrap: nowrap; min-height: 104px; padding: 17px !important; gap: 12px; }
.trustee-card.selection-card .selection-copy strong { font-size: 14px; }
.trustee-card.selection-card .selection-copy small { font-family: inherit; font-size: 10px; }
.panel fieldset+.button { margin-top: 20px; }
.results-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 30px 0; }
.results-heading .eyebrow { margin: 0 0 8px; font-size: 9px; }
.results-heading h3 { font-size: 29px; font-weight: 450; margin: 0; letter-spacing: -.8px; }
.result-row { margin-bottom: 23px; }
.result-label { display: flex; justify-content: space-between; gap: 15px; font-size: 14px; margin-bottom: 12px; }
.result-label strong { font: 13px ui-monospace, SFMono-Regular, Consolas, monospace; }
.result-track { height: 12px; border-radius: 3px; background: #2c2c3c; overflow: hidden; }
.result-fill { height: 100%; min-width: 0; background: #8585ff; border-radius: 3px; transition: width .4s; }
.result-row:nth-child(2) .result-fill { background: #b6b6ff; }
.result-row:nth-child(3) .result-fill { background: #dadaff; }
.result-row:nth-child(4) .result-fill { background: #6b6be8; }
.result-row:nth-child(5) .result-fill { background: #9696bb; }
.verification-result { padding: 23px; border: 1px solid #476350; background: #18251d; border-radius: 11px; margin-top: 28px; overflow-wrap: anywhere; }
.verification-result.failure { border-color: #815153; background: #2b1a1d; }
.receipt-check { padding-top: 29px; margin-top: 30px; border-top: 1px solid var(--line-light); }
.receipt-check h3 { font-size: 25px; font-weight: 450; letter-spacing: -.6px; margin: 0 0 12px; }
.receipt-check>p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.inline-status { font-size: 13px !important; line-height: 1.8; word-break: break-word; }
.inline-status.pass { color: var(--green); }
.inline-status.fail { color: var(--red); }
.record-panel { position: sticky; top: 24px; min-width: 0; min-height: 576px; padding: 27px 24px; background: linear-gradient(155deg, #161622, #101014 45%); border: 1px solid #3c3c50; border-radius: var(--radius); }
.record-title { display: flex; gap: 11px; align-items: center; }
.record-title .status-dot { width: 7px; height: 7px; box-shadow: 0 0 12px #0000fe; }
.record-title h2 { font-size: 15px; font-weight: 500; margin: 0; }
.record-intro { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 16px 0 24px; }
.record-meta { border-block: 1px solid #343444; padding: 20px 0; }
.record-meta span { display: block; font-size: 9px; letter-spacing: 1.3px; color: var(--subtle); margin-bottom: 11px; }
.record-meta code { font: 10px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; color: #d0d0e2; word-break: break-all; }
.notebook-empty { color: var(--subtle); font-size: 12px; line-height: 1.8; padding: 20px 0 26px; margin: 0; }
.ballot-list { max-height: 340px; overflow: auto; }
.ballot-item { padding: 17px 0; border-bottom: 1px solid #30303d; }
.ballot-item-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; margin-bottom: 10px; }
.ballot-item-head span:last-child { color: var(--blue-light); font-size: 10px; }
.ballot-item code { color: var(--subtle); font: 10px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; }
.event-log { display: flex; flex-direction: column; gap: 17px; margin-top: 23px; max-height: 220px; overflow: auto; }
/* Keep testnet activity beside the active task on wide screens. Long records
   use one keyboard-accessible scroll area; narrow layouts use page scrolling. */
.network-page .workspace { grid-template-columns: minmax(0, 1.65fr) minmax(360px, 1fr); gap: 24px; }
.network-page .record-panel { position: sticky; top: 24px; align-self: start; min-height: 0; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; scrollbar-gutter: stable; padding: 30px; }
.network-page .record-title h2 { font-size: 23px; line-height: 1.3; }
.network-page .record-intro { font-size: 14px; }
.network-page #network-public-state { min-width: 0; max-width: 100%; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font: 13px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; overflow: visible; }
.network-page #network-events { display: flex; flex-direction: column; min-width: 0; gap: 0; margin-top: 24px; max-height: none; overflow: visible; }
.network-page #network-events p { min-width: 0; margin: 0; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 1100px) {
  .network-page .workspace { grid-template-columns: minmax(0, 1fr); }
  .network-page .record-panel { position: static; max-height: none; overflow: visible; scrollbar-gutter: auto; }
}
@media (max-width: 700px) {
  .network-page .record-panel { padding: 24px; }
}
.event-entry { border-left: 2px solid #565689; padding-left: 13px; font-size: 10px; line-height: 1.7; color: var(--subtle); }
.event-entry strong { color: #d7d7e6; font-weight: 450; display: block; }
.event-entry time { display: block; margin-top: 6px; color: var(--subtle); font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.notebook-footer { display: flex; align-items: center; gap: 15px; padding-top: 21px; margin-top: 28px; border-top: 1px solid #343444; }
.notebook-footer p { color: var(--subtle); font-size: 10px; line-height: 1.9; margin: 0; }
.tiny-grid { width: 22px; height: 22px; flex-shrink: 0; background: repeating-linear-gradient(90deg, #6f6fb0 0 3px, transparent 3px 8px), repeating-linear-gradient(0deg, #6f6fb0 0 3px, transparent 3px 8px); opacity: .5; }
.global-status { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 18px; background: #1b2730; border: 1px solid #46606b; border-radius: 9px; font-size: 13px; line-height: 1.8; color: #dcecf3; }
.global-status.error { background: #2c1c21; border-color: #86515c; color: #ffc5ce; }
.global-status.working { background: #1d1d38; border-color: #5e5e96; color: #ddddff; }
.global-status.working::before { content: ""; width: 16px; height: 16px; border: 2px solid #515180; border-top-color: #c5c5ff; border-radius: 50%; flex-shrink: 0; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 22px; border-top: 1px solid var(--line); margin-top: 49px; padding: 28px 0 35px; font-size: 12px; color: var(--muted); }
.page-footer p { margin: 0; }
.page-footer p span { padding: 0 11px; color: var(--subtle); }
.page-footer>div { display: flex; flex-wrap: wrap; gap: 25px; }
.page-footer button { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; }
.page-footer a, .page-footer button { text-decoration: underline; text-underline-offset: 4px; }
.page-footer .footer-note { width: 100%; font-size: 11px; color: var(--subtle); line-height: 1.8; }
.busy .work-main { cursor: progress; }
.busy [data-operation] { cursor: wait; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1180px) {
  .masthead { padding: 28px 34px; }
  .page { padding: 0 34px; }
  .hero { gap: 30px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
  .panel { padding: 30px; }
  .record-panel { padding: 25px 20px; }
  .step { padding: 16px; gap: 11px; }
  .step small { font-size: 9px; }
  .metrics>div { padding: 22px; }
  .metric-label { max-width: 140px; }
  .receipt-body { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1.5fr 1fr; padding-top: 45px; }
  .hero-note { width: 250px; }
  .privacy-orbit { width: 236px; height: 236px; }
  .orbit-core { inset: 67px 22px; }
  .hero h1 { font-size: clamp(46px, 6.4vw, 61px); }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .record-panel { position: static; min-height: 0; }
  .record-panel .ballot-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
  .record-panel .event-log { display: grid; grid-template-columns: 1fr 1fr; }
  .record-meta { display: flex; align-items: center; gap: 25px; }
  .record-meta span { margin: 0; white-space: nowrap; }
  .steps { gap: 7px; }
  .step { align-items: start; }
  .step small { display: none; }
  .step>div { align-self: center; font-size: 12px; }
  .panel { padding: 34px; min-height: 0; }
  .receipt-body { grid-template-columns: 244px minmax(0, 1fr); }
  .limitations { grid-template-columns: 1fr; }
  .limits-grid { gap: 25px; }
  .metrics>div { display: block; }
  .metric-label { display: block; min-height: 32px; max-width: none; margin-bottom: 13px; }
  .metrics .metric-word { font-size: 17px; min-height: 36px; display: flex; align-items: center; text-align: left; }
}
@media (max-width: 700px) {
  .masthead { padding: 23px 22px; gap: 10px; }
  .brand { font-size: 27px; gap: 11px; }
  .brand small { font-size: 7px; letter-spacing: 1.3px; }
  .brand-mark { width: 35px; height: 35px; }
  .masthead-links { gap: 12px; font-size: 11px; }
  .masthead-links a { padding: 10px 12px; }
  .masthead-links a span { margin-left: 5px; }
  .version { display: none; }
  .mode-strip { padding: 12px 22px; gap: 9px; justify-content: start; flex-wrap: wrap; font-size: 10px; }
  .mode-strip button { font-size: 10px; margin-left: auto; }
  .strip-divider { padding: 0; }
  .page { padding: 0 22px; }
  .hero { display: block; padding: 42px 0 35px; }
  .hero h1 { font-size: clamp(49px, 10vw, 67px); }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  .hero-copy { font-size: 14px; line-height: 1.8; max-width: 440px; margin-top: 21px; }
  .hero-note { display: none; }
  .metrics { margin: 0 0 26px; border-radius: 10px; }
  .metrics>div { padding: 18px 15px; min-height: 102px; }
  .metric-label { font-size: 8px; letter-spacing: .8px; min-height: 29px; margin-bottom: 9px; }
  .metrics strong { font-size: 29px; }
  .metrics .metric-word { font-size: 13px; min-height: 29px; }
  .workspace { gap: 18px; }
  .steps { gap: 6px; }
  .step { display: block; padding: 12px 9px; border-radius: 8px; }
  .step>span { width: 26px; height: 26px; font-size: 9px; margin-bottom: 9px; }
  .step>div { font-size: 10px; line-height: 1.5; }
  .panel { padding: 27px 23px; }
  .panel-head { margin-bottom: 23px; }
  .panel-head .eyebrow { font-size: 9px; }
  .panel-tag { font-size: 9px; padding: 6px 8px; }
  .panel h2 { font-size: 30px; letter-spacing: -1px; }
  .section-copy { font-size: 13px; margin-bottom: 23px; }
  .panel input, .panel select, .panel textarea { font-size: 16px; }
  .panel input::placeholder, .panel textarea::placeholder { font-size: 11px; }
  .form-grid { grid-template-columns: 1.3fr 1fr; gap: 18px; }
  .field-hint { padding-left: 0; display: block; margin-top: 4px; font-size: 10px; }
  .field-note { font-size: 11px; }
  .callout { padding: 14px; }
  .button { font-size: 12px; padding: 12px 16px; gap: 14px; }
  .receipt-body { grid-template-columns: 1fr; gap: 20px; }
  .receipt-head h3 { font-size: 23px; }
  .receipt-qr { margin: 0; }
  .close-card { display: block; padding: 19px; }
  .close-card .button { margin-top: 16px; }
  .trustee-options { grid-template-columns: 1fr; gap: 10px; }
  .trustee-card.selection-card { min-height: 78px; }
  .selection-card { min-height: 86px; padding: 18px !important; }
  .trustee-card { font-size: 11px !important; padding: 11px !important; gap: 8px; }
  .trustee-card small { font-size: 8px; }
  .record-panel { padding: 24px; }
  .record-panel .event-log { grid-template-columns: 1fr; }
  .record-meta { display: block; }
  .record-meta span { margin-bottom: 11px; }
  .limitations { padding: 24px; gap: 24px; }
  .limits-grid { grid-template-columns: 1fr; gap: 20px; }
  .page-footer { margin-top: 32px; font-size: 11px; padding: 25px 0; }
  .page-footer .footer-note { font-size: 10px; }
}
@media (max-width: 390px) {
  .page { padding: 0 15px; }
  .masthead { padding: 21px 15px; }
  .brand { font-size: 25px; gap: 9px; }
  .brand small { font-size: 6px; }
  .brand-mark { width: 33px; height: 33px; }
  .masthead-links a { font-size: 10px; padding: 9px; }
  .mode-strip { padding: 11px 15px; }
  .mode-strip button { display: block; margin-left: 15px; }
  .hero h1 { font-size: 48px; }
  .metrics>div { padding: 15px 11px; }
  .metric-label { font-size: 7px; }
  .metrics .metric-word { font-size: 11px; }
  .panel { padding: 25px 19px; }
  .panel h2 { font-size: 28px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .trustee-options { grid-template-columns: 1fr; }
  .trustee-card small { width: auto; margin-left: auto; }
  .record-panel .ballot-list { grid-template-columns: 1fr; }
  .results-heading { align-items: start; flex-direction: column; }
  .receipt-head { flex-direction: column; }
  .step>div { font-size: 9px; }
  .step { padding: 11px 7px; }
  .button-row { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
