:root {
  --bg: #F7F4EF; --surface: #FFFEFC; --surface-2: #F0ECE5;
  --ink: #1A1410; --ink-2: #3A322C; --muted: #6B625B; --faint: #9A918A;
  --line: #E4DED5; --line-2: #D6CEC3;
  --brand: #FF5B2E; --brand-deep: #D9431A; --brand-soft: #FFE6DC;
  --ok: #1E9E6A; --ok-soft: #DDF3E9; --warn: #A8700E; --warn-soft: #F8EBD1; --risk: #C8402F; --risk-soft: #FBE7E3;
  --dark: #15100D; --dark-2: #211915; --dark-line: #2E2520; --dark-text: #EDE4DC; --dark-muted: #8E8279;
  --f-sans: "Geist", "Segoe UI", system-ui, sans-serif; --f-mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 15px/1.5 var(--f-sans); -webkit-font-smoothing: antialiased; background: var(--bg); }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--f-mono); font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 clamp(16px, 3vw, 32px); background: rgba(247,244,239,.88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; display: block; flex: none; }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__word { font-weight: 700; font-size: 21px; letter-spacing: -.04em; }
.brand__tag { padding: 2px 9px; border: 1px dashed var(--line-2); border-radius: 999px; color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .14em; margin-left: 2px; }
.bar__right { display: flex; align-items: center; gap: 8px; }
.net { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--muted); }
.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.net.is-ok i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.net.is-bad { border-color: #EBC2BA; color: var(--risk); background: var(--risk-soft); }
.net.is-bad i { background: var(--risk); }

.acct { position: relative; }
.acct__btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.acct__btn i { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(var(--brand), #FFB547, var(--ok), var(--brand)); }
.acct__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); display: grid; padding: 6px; box-shadow: 0 20px 40px -16px rgba(26,20,16,.25); }
.acct__menu button, .acct__menu a { text-align: left; padding: 10px 12px; font-size: 14px; text-decoration: none; border-radius: 8px; }
.acct__menu button:hover, .acct__menu a:hover { background: var(--surface-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 600; letter-spacing: -.005em; transition: background .2s, border-color .2s, color .2s, opacity .2s; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn--lime { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--lime:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--ghost { background: var(--surface); }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link { color: var(--brand-deep); font-size: 12px; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.notice { margin: 16px clamp(16px, 3vw, 32px) 0; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid #EED8AE; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.notice a { color: var(--ink); }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 16px; padding: 20px clamp(16px, 3vw, 32px) 48px; max-width: 1400px; margin: 0 auto; align-items: start; }
.col { display: grid; gap: 16px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 14px; min-width: 0; grid-template-columns: minmax(0, 1fr); box-shadow: 0 1px 2px rgba(26,20,16,.03); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel__head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.panel__head h2 .mono { color: var(--faint); font-size: 11.5px; font-weight: 400; }
.pill { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; text-decoration: none; white-space: nowrap; }
.pill.is-ok { color: var(--ok); background: var(--ok-soft); }
.pill.is-bad { color: var(--risk); background: var(--risk-soft); }
a.pill:hover { color: var(--ink); }
.empty { color: var(--faint); font-size: 14px; }

.kv { display: grid; gap: 0; border-top: 1px solid var(--line); }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; flex: none; font-family: var(--f-mono); }
.kv dd { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.kv dd.big { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }

.tk-name strong { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.tk-name .mono { color: var(--brand-deep); }
.ca { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); }
.ca code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; }

/* policy */
.session { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); }
.session__time { font-size: 24px; font-weight: 500; color: var(--faint); }
.session__time.is-on { color: var(--ok); }
.session__btns { display: flex; gap: 6px; }
.policy { display: grid; gap: 12px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.field { display: grid; gap: 6px; }
.field span { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--f-mono); }
.field b { font-weight: 500; color: var(--muted); }
.field input, .contact-add input { width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .contact-add input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field input[aria-invalid="true"] { border-color: var(--risk); }
.check { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check b { font-weight: 600; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--line-2); flex: none; transition: background .2s; }
.check span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .25s; }
.check input:checked + span { background: var(--ok); }
.check input:checked + span::after { transform: translateX(16px); }
.check input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.fine { color: var(--faint); font-size: 13px; }
.field-err { color: var(--risk); font-size: 13px; }
.field-err:empty { display: none; }

.contacts { display: grid; gap: 6px; }
.contacts li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.contacts li b { font-weight: 600; }
.contacts li code { flex: 1; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-mono); font-size: 12px; }
.contacts li button { color: var(--faint); font-size: 16px; line-height: 1; padding: 0 4px; }
.contacts li button:hover { color: var(--risk); }
.contacts .empty { border: 0; padding: 0; }
.contact-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 6px; }
.panel__head .pill { max-width: 55%; overflow: hidden; text-overflow: ellipsis; }

/* console: dark terminal */
.panel--console { background: var(--dark); border-color: var(--dark); color: var(--dark-text); gap: 16px; box-shadow: 0 30px 60px -30px rgba(26,20,16,.55); }
.panel--console .panel__head h2 .mono { color: var(--brand); }
.panel--console .pill { background: var(--dark-2); color: var(--dark-muted); }
.intent { display: flex; align-items: stretch; border: 1px solid var(--dark-line); border-radius: var(--r-md); background: var(--dark-2); overflow: hidden; }
.intent:focus-within { border-color: var(--brand); }
.intent__prompt { display: grid; place-items: center; padding: 0 4px 0 14px; color: var(--brand); font-size: 17px; }
.intent input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 15px 10px; outline: 0; font-size: 14px; color: #fff; }
.intent input::placeholder { color: #6E625A; }
.intent .btn { height: auto; border: 0; border-radius: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 11px; border: 1px solid var(--dark-line); border-radius: 999px; color: var(--dark-muted); font-size: 12px; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { background: #fff; color: var(--ink); border-color: #fff; }

.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--dark-line); border-radius: var(--r-md); overflow: hidden; }
.steps li { position: relative; padding: 10px 10px 10px 30px; font-size: 11.5px; color: #6E625A; text-transform: lowercase; font-family: var(--f-mono); }
.steps li + li { border-left: 1px solid var(--dark-line); }
.steps li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border: 1.5px solid #4A3F38; border-radius: 50%; }
.steps li.is-run { color: #fff; }
.steps li.is-run::before { border-color: var(--brand); border-top-color: transparent; animation: spin .7s linear infinite; }
.steps li.is-ok { color: var(--dark-text); }
.steps li.is-ok::before { background: var(--ok); border-color: var(--ok); }
.steps li.is-fail { color: #FF8A78; }
.steps li.is-fail::before { background: #FF6B5B; border-color: #FF6B5B; }
.steps li.is-skip { opacity: .4; }
@keyframes spin { to { transform: rotate(360deg); } }

.out { min-height: 220px; border: 1px solid var(--dark-line); border-radius: var(--r-md); background: #100C0A; padding: 18px; display: grid; gap: 14px; align-content: start; }
.out__empty { color: var(--dark-muted); font-size: 14px; max-width: 52ch; }
.out__empty b { color: #fff; font-weight: 600; }
.res__title { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; overflow-wrap: anywhere; color: #fff; }
.res__tag { color: var(--brand); text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; margin-bottom: 6px; font-family: var(--f-mono); }
.res__rows { display: grid; border-top: 1px dashed var(--dark-line); }
.res__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--dark-line); font-size: 13.5px; }
.res__rows dt { color: var(--dark-muted); font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; flex: none; }
.res__rows dd { text-align: right; overflow-wrap: anywhere; font-family: var(--f-mono); font-size: 12.5px; min-width: 0; }
.checks { display: grid; gap: 6px; }
.checks li { display: flex; gap: 10px; font-size: 13.5px; align-items: baseline; }
.checks li::before { content: "✓"; color: #4CD69B; font-family: var(--f-mono); flex: none; }
.checks li.no::before { content: "✕"; color: #FF8A78; }
.checks li.warn::before { content: "!"; color: #FFB547; }
.checks li.no { color: #FF8A78; }
.checks li.warn { color: #FFB547; }
.res__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel--console .btn:not(.btn--lime) { background: var(--dark-2); border-color: var(--dark-line); color: var(--dark-text); }
.panel--console .btn:not(.btn--lime):hover { border-color: #fff; }
.res__msg { font-size: 14px; color: var(--dark-muted); }
.res__msg.is-err { color: #FF8A78; }
.res__msg.is-ok { color: #4CD69B; }
.res__msg a, .panel--console a { color: var(--brand); }
.help { display: grid; gap: 8px; font-size: 14px; color: var(--dark-muted); }
.help code { color: #fff; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 6px; padding: 2px 6px; font-family: var(--f-mono); font-size: 12px; }

.activity { display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.activity li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.activity li.empty { display: block; border: 0; padding: 0; }
.activity time { color: var(--faint); font-family: var(--f-mono); font-size: 11px; }
.activity a { color: var(--brand-deep); font-family: var(--f-mono); font-size: 11.5px; text-decoration: none; }
.activity a:hover { text-decoration: underline; }
.st { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); }
.st--pending { color: var(--warn); background: var(--warn-soft); }
.st--success { color: var(--ok); background: var(--ok-soft); }
.st--failed { color: var(--risk); background: var(--risk-soft); }

/* dialog */
.dialog { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); padding: 0; width: min(380px, calc(100vw - 32px)); box-shadow: 0 30px 60px -20px rgba(26,20,16,.35); }
.dialog::backdrop { background: rgba(26,20,16,.35); backdrop-filter: blur(3px); }
.dialog form { padding: 22px; display: grid; gap: 14px; }
.dialog h3 { font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.wallets { display: grid; gap: 6px; }
.wallets button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); text-align: left; }
.wallets button:hover { border-color: var(--ink); }
.wallets img { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .col--wide { order: -1; }
}
@media (max-width: 560px) {
  .net { display: none; }
  .brand__word { display: none; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li:nth-child(4) { border-left: 0; }
  .steps li:nth-child(n+4) { border-top: 1px solid var(--dark-line); }
  .intent { flex-wrap: wrap; }
  .intent input { flex-basis: calc(100% - 40px); }
  .intent .btn { width: 100%; height: 44px; }
  .contact-add { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }


/* ===== DUTCH theme: paper + ink, Dutch orange (matches /css/dutch.css) ===== */
:root {
  --bg: #f4f1ea; --surface: #faf8f3; --surface-2: #ebe7dd;
  --ink: #0b0b0a; --ink-2: #33312c; --muted: #6f6b62; --faint: #9a958a;
  --line: rgba(11,11,10,.12); --line-2: rgba(11,11,10,.24);
  --brand: #ff6b1a; --brand-deep: #e2560a; --brand-soft: #ffe4d4;
  --ok: #12a865; --ok-soft: #dcf3e7;
  --dark: #0b0b0a; --dark-2: #171614; --dark-line: #2a2925; --dark-text: #ece9e2; --dark-muted: #8f8a80;
  --f-sans: "Space Grotesk", "Segoe UI", system-ui, sans-serif; --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r-sm: 0; --r-md: 0; --r-lg: 0;
}
body { background: var(--bg); }
.bar { background: rgba(244,241,234,.9); }
.brand__mark img { width: 100%; height: 100%; display: block; }
.brand__word { font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; }
.brand__tag { border-style: solid; border-color: var(--ink); color: var(--ink); }
.btn, .acct__btn, .field input, .contact-add input, .contacts li, .activity li, .wallets button { border-radius: 0; }
.btn--lime { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--lime:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.panel { border-color: var(--line-2); box-shadow: none; }
.panel__head h2 { font-weight: 500; font-size: 19px; letter-spacing: -.02em; }
.panel__head h2 .mono { color: var(--muted); }
.pill { border-radius: 0; border: 1px solid var(--line); background: transparent; letter-spacing: .04em; }
.ca, .session { border-radius: 0; border: 1px dashed var(--line-2); background: var(--surface); }
.acct__btn i { background: conic-gradient(var(--ink) 0 50%, var(--brand) 0); }
.check input:checked + span { background: var(--ink); }
.check span { border-radius: 0; } .check span::after { border-radius: 0; }
.panel--console { background: var(--dark); border-color: var(--dark); }
.panel--console .panel__head h2 .mono, .intent__prompt { color: var(--brand); }
.panel--console .btn--lime { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.panel--console .btn--lime:hover { background: #ff8a4a; }
.intent, .steps, .out, .chip { border-radius: 0; }
.steps li.is-run::before { border-color: var(--brand); border-top-color: transparent; }
.res__tag { color: var(--brand); }
.link, .activity a, .tk-name .mono { color: var(--brand-deep); }
.dialog { border-radius: 0; }

/* ===== the split: pipeline drawn as a receipt with six stamps, driven by #steps ===== */
.drive { position: relative; margin: 20px auto 0; width: calc(min(1400px, 100%) - 2 * clamp(16px, 3vw, 32px)); padding: clamp(18px, 3vw, 30px);
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--ink);
  background-image: repeating-linear-gradient(0deg, transparent 0 23px, rgba(11,11,10,.05) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, rgba(11,11,10,.05) 23px 24px); }
.drive + .layout { padding-top: 16px; }
.drive__k { display: flex; align-items: center; gap: 9px; font-size: 11.5px; letter-spacing: .1em; }
.drive__k i { width: 8px; height: 8px; background: var(--ink); }
.drive__title { margin: 12px 0; font-family: var(--f-mono); font-weight: 500; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.045em; }
.drive__title span { color: var(--faint); }
.drive__status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--ink); color: var(--bg); font-size: 13px; }
.drive__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.drive[data-mode="run"] .drive__status::before { background: var(--brand); animation: pulse 1s infinite; }
.drive[data-mode="ok"] .drive__status::before, .drive[data-mode="ready"] .drive__status::before { background: #5fe0a0; }
.drive[data-mode="fail"] .drive__status { background: #b3261e; }
.yard { position: relative; height: 140px; }
.yard__line { position: absolute; left: 0; right: 0; top: 70px; border-top: 2px dashed var(--line-2); }
.yard__gain { position: absolute; left: 0; top: 69px; height: 4px; width: 0; background: var(--brand); transition: width .45s cubic-bezier(.3,.7,.2,1); }
.yard ol { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none; }
.yard li { position: relative; display: grid; justify-items: center; align-content: start; gap: 40px; padding-top: 30px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.yard li::before { content: attr(data-yd); position: absolute; top: 0; font-size: 11px; color: var(--faint); }
.yard li b { width: 16px; height: 16px; border: 1.5px solid var(--line-2); background: var(--surface); display: block; transform: translateY(16px) rotate(45deg); transition: all .3s; }
.yard li.is-run { color: var(--ink); } .yard li.is-run b { border-color: var(--brand); }
.yard li.is-ok { color: var(--ink); } .yard li.is-ok b { background: var(--ink); border-color: var(--ink); }
.yard li.is-fail { color: #b3261e; } .yard li.is-fail b { background: #b3261e; border-color: #b3261e; }
.yard li.is-skip { opacity: .4; }
.yard__ball { position: absolute; top: 52px; left: 0; width: 38px; height: 38px; margin-left: -19px; transition: left .45s cubic-bezier(.3,.7,.2,1); }
.yard__ball img { width: 100%; height: 100%; }
.drive[data-mode="run"] .yard__ball { animation: spin3 1s linear infinite; }
.drive[data-mode="fail"] .yard__ball { animation: drop .7s ease-out both; }
@keyframes spin3 { to { transform: rotateY(360deg); } }
@keyframes drop { 30% { transform: translateY(-14px); } 100% { transform: translate(-10px, 6px) rotate(-30deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 860px) { .drive { grid-template-columns: 1fr; } .yard li { font-size: 9px; letter-spacing: .02em; } }
.out { background: #060605; }

/* ===== v2 polish: 3D coin stage, grid paper, crisper panels ===== */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 420px at 88% -60px, rgba(255,107,26,.13), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(11,11,10,.035) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(11,11,10,.035) 39px 40px);
  background-attachment: fixed;
}
.bar { border-bottom: 1px solid var(--line-2); }
#connect { border-radius: 999px; padding: 0 20px; gap: 10px; }
#connect::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.acct__btn { border-radius: 999px; }

/* top band: copy left, particle coin right, the six steps underneath */
.drive { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px 28px; padding: clamp(20px, 3vw, 34px);
  background-color: rgba(250,248,243,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 30px 60px -40px rgba(11,11,10,.35); }
.drive__title { font-size: clamp(34px, 4vw, 56px); }
.drive__facts { display: grid; gap: 0; margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.drive__facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.drive__facts span { color: var(--muted); letter-spacing: .1em; }
.drive__facts b { font-weight: 500; }
.stage { position: relative; min-height: 340px; border: 1px dashed var(--line-2); background: radial-gradient(closest-side, rgba(255,107,26,.07), transparent); cursor: crosshair; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .x { position: absolute; font: 300 16px/1 var(--f-mono); color: var(--ink-2); z-index: 1; }
.stage .x.tl { top: 8px; left: 10px; } .stage .x.tr { top: 8px; right: 10px; } .stage .x.bl { bottom: 8px; left: 10px; } .stage .x.br { bottom: 8px; right: 10px; }
.stage__fig { position: absolute; z-index: 1; left: 30px; right: 30px; top: 12px; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .08em; color: var(--ink-2); }
.stage__fig b { font-weight: 600; }
#coin-mode { color: var(--brand-deep); }
.stage.is-flat { background: radial-gradient(circle at 42% 50%, var(--ink) 0 18%, transparent 18.5%), radial-gradient(circle at 58% 50%, var(--brand) 0 18%, transparent 18.5%); }
.yard { grid-column: 1 / -1; height: 112px; margin-top: 4px; }
.yard__line, .yard__gain { top: 56px; }
.yard__gain { top: 55px; }
.yard li { padding-top: 22px; gap: 34px; }
.yard__ball { top: 37px; }

/* panels: ink corner ticks, orange number, a lift on hover */
.panel { position: relative; background: rgba(250,248,243,.9); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.panel::before, .panel::after { content: ""; position: absolute; width: 10px; height: 10px; border: 0 solid var(--ink); pointer-events: none; }
.panel::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.panel::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.panel:not(.panel--console):hover { transform: translateY(-2px); box-shadow: 0 22px 40px -28px rgba(11,11,10,.4); border-color: var(--ink); }
.panel__head h2 .mono { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; background: var(--ink); color: var(--bg); font-size: 11px; }
.panel--console .panel__head h2 .mono { background: var(--brand); color: var(--ink); }
.kv dd.big { font-family: var(--f-mono); font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
#w-bal, #tk-bal { color: var(--ink); }

/* console: a little glow, scanlines, orange caret line */
.panel--console { background: radial-gradient(600px 220px at 100% 0, rgba(255,107,26,.12), transparent 70%), var(--dark); }
.panel--console::before, .panel--console::after { border-color: var(--brand); }
.intent { box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s; }
.intent:focus-within { box-shadow: 0 0 0 3px rgba(255,107,26,.25); }
.out { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); }
.chip { border-radius: 0; }
.chip:hover { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.steps li.is-ok { color: #fff; }
.steps li.is-ok::before { background: var(--brand); border-color: var(--brand); }

@media (max-width: 860px) {
  .drive { grid-template-columns: 1fr; }
  .stage { min-height: 280px; }
  .stage__fig { flex-direction: column; gap: 2px; }
}
