:root {
    color-scheme: dark;
    --bg: #010503;
    --border: #1d693a;
    --muted: #87b995;
    --text: #c0f9cd;
    --accent: #39ff75;
    --green: #00ed83;
    --danger: #ffb4a4;
    --workbench-height: clamp(640px, calc(100svh - 224px), 720px);
    --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
    font: 14px/1.5 var(--mono);
    font-synthesis: none;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(ellipse at 45% 5%, #00ff5224, transparent 60%), var(--bg);
    isolation: isolate;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(#22ff6610 1px, transparent 1px), linear-gradient(90deg, #22ff6610 1px, transparent 1px);
    background-size: 48px 48px;
}
.matrix-backdrop { position: fixed; inset: 0; z-index: -1; display: flex; justify-content: space-around; overflow: hidden; pointer-events: none; user-select: none; mask-image: linear-gradient(#000, transparent 95%); }
.matrix-backdrop span { writing-mode: vertical-rl; text-orientation: upright; white-space: pre; color: #20ff6226; font: 11px/1 var(--mono); letter-spacing: 12px; padding-top: 30px; }
.matrix-backdrop span:nth-child(3n) { padding-top: 210px; color: #20ff6218; }
.matrix-backdrop span:nth-child(3n + 1) { padding-top: 110px; }
button, input { font: inherit; }
button { cursor: pointer; transition: border-color .18s, background .18s, color .18s, box-shadow .18s; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:not(:disabled):active { transform: translateY(1px); }
:where(button, a, input, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 5; padding: 12px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 12px; }
.topbar { max-width: 1640px; margin: auto; min-height: 72px; padding: 12px 32px; border-bottom: 1px solid #20ba55; box-shadow: 0 8px 30px #00ff5210; background: #010803f5; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); text-shadow: 0 0 14px #39ff7570; font-size: 21px; font-weight: 750; letter-spacing: .16em; line-height: 1.2; }
.brand img { width: 43px; height: 43px; }
.brand small { display: block; margin-top: 5px; color: #82cd98; text-shadow: none; font: 8px var(--mono); letter-spacing: .13em; }
.network-label { color: #80dea0; font: 10px var(--mono); letter-spacing: .1em; }
.network-label span { color: #278346; margin: 0 10px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-links { display: flex; align-items: center; gap: 18px; }
.header-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 0; border: 0; background: none; color: #a8efba; font-size: 11px; text-decoration: none; white-space: nowrap; }
.header-link span { color: var(--accent); margin-left: 6px; }
.header-link:hover { color: var(--accent); text-shadow: 0 0 12px #39ff7550; }
.demo-notice { max-width: 1640px; margin: auto; padding: 10px 32px; display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid #174a2b; background: #041209; }
.notice-label { flex: 0 0 auto; color: #91d7a3; font-size: 9px; letter-spacing: .09em; }
.demo-notice p { margin: 0; color: #a2c5ac; font-size: 12px; line-height: 1.7; }
body:has(.how-dialog[open]) { overflow: hidden; }
.how-dialog { width: min(600px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 24px; color: var(--text); background: #031008; border: 1px solid #39ff7580; border-radius: 4px; box-shadow: 0 0 50px #00ed8320; }
.how-dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.how-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.how-heading h2 { font-size: 22px; }
.how-heading .eyebrow { font-size: 9px; }
.how-close { width: 36px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 2px; color: var(--accent); background: #082312; font-size: 24px; line-height: 1; }
.how-close:hover { border-color: var(--accent); }
.how-steps { margin: 26px 0 20px; padding: 0; list-style: none; counter-reset: explanation; }
.how-steps li { position: relative; padding: 0 0 20px 42px; counter-increment: explanation; }
.how-steps li:last-child { padding-bottom: 0; }
.how-steps li::before { content: "0" counter(explanation); position: absolute; left: 0; top: 1px; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #267e46; color: var(--accent); font-size: 10px; }
.how-steps h3 { margin: 0 0 6px; color: #b8f7c9; font-size: 13px; font-weight: 600; }
.how-steps p, .how-footnote { margin: 0; color: #9ec9aa; font-size: 12px; line-height: 1.75; }
.how-footnote { border-top: 1px solid var(--border); padding-top: 14px; font-size: 10px; }
.connection { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 11px/1.5 var(--mono); padding: 7px 10px; border: 1px solid var(--border); border-radius: 2px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #96a69b; flex: 0 0 auto; }
.connection[data-state="ready"] { color: #6fff99; border-color: #24b858; background: #03170a; box-shadow: 0 0 14px #00ff6120; }
.connection[data-state="ready"] .status-dot { background: var(--accent); box-shadow: 0 0 5px #39ff75, 0 0 14px #39ff7580; }
.connection[data-state="error"] { color: var(--danger); border-color: #75503b; }
.connection[data-state="error"] .status-dot { background: var(--danger); }
main { max-width: 1640px; margin: auto; padding: 0 32px; }
.workspace-heading { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h1 { margin: 0; color: var(--accent); font-size: 22px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 0 18px #39ff7560; }
.title-dot { color: var(--accent); }
.transfer-shortcut { display: none; }
.workspace-heading p { color: var(--muted); font: 10px/1.5 var(--mono); margin: 0; }
.workspace-heading p span { margin: 0 8px; color: #278346; }
h2 { margin: 0; color: #72ff99; font-size: 16px; font-weight: 550; letter-spacing: .025em; text-transform: uppercase; text-shadow: 0 0 12px #39ff752c; }
.eyebrow, .label { margin: 0; font: 9px/1.5 var(--mono); letter-spacing: .1em; color: var(--green); }
.workspace { display: grid; grid-template-columns: 218px minmax(0, 1fr) 354px; gap: 18px; align-items: start; }
.wallet-section { min-width: 0; padding: 7px 2px 0 0; }
.section-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.section-heading h2 { font-size: 13px; font-weight: 550; letter-spacing: 0; }
.section-index { color: var(--green); font: 10px var(--mono); }
.wallets { display: grid; gap: 12px; }
.wallet-placeholder { padding: 24px 16px; color: var(--muted); border: 1px dashed var(--border); border-radius: 2px; font-size: 12px; }
.wallet-card { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; align-items: center; text-align: left; padding: 16px; border: 1px solid var(--border); border-radius: 2px; color: var(--text); background: #020c05; }
.wallet-card:hover:not(:disabled) { border-color: #36f275; background: #062611; }
.wallet-card[aria-pressed="true"] { background: linear-gradient(120deg, #073d19, #021207 85%); border-color: var(--accent); box-shadow: inset 3px 0 var(--accent), inset 0 0 25px #20ff6410, 0 0 20px #20ff6430; }
.wallet-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #1b9250; border-radius: 2px; color: #7bd89c; font: 12px var(--mono); background: #041b0d; }
.wallet-card[aria-pressed="true"] .wallet-icon { color: var(--accent); border-color: #39ff75; box-shadow: 0 0 12px #39ff7520; }
.wallet-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 7px; font-size: 12px; font-weight: 600; }
.wallet-account { display: block; margin-top: 4px; color: var(--muted); font: 9px var(--mono); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.active-wallet-label { color: var(--accent); font: 8px var(--mono); text-transform: uppercase; }
.wallet-balance { grid-column: 1 / -1; margin-top: 3px; font-size: 28px; font-weight: 500; letter-spacing: -.025em; color: #70ff9b; text-shadow: 0 0 16px #39ff7533; overflow-wrap: anywhere; }
.wallet-balance small { margin-left: 7px; color: var(--muted); font: 10px var(--mono); letter-spacing: .03em; }
.text-button { min-height: 36px; padding: 6px 0; border: 0; background: none; color: #73dc98; font-size: 11px; }
.text-button:hover:not(:disabled) { color: var(--accent); }
.text-button > span:first-child { margin-right: 5px; }
.refresh-button { margin-top: 8px; width: 100%; text-align: left; font-size: 10px; }
.enrollment-summary { border-block: 1px solid var(--border); margin-top: 10px; padding: 0 2px; }
.enrollment-label { display: block; padding: 13px 0 9px; color: var(--muted); font-size: 10px; }
.enrollment-summary code { display: block; padding-bottom: 14px; overflow-wrap: anywhere; color: #8ae2a5; font-size: 10px; }
.wallet-help { padding: 26px 2px 0; }
.help-line { display: block; width: 24px; height: 2px; background: var(--green); box-shadow: 0 0 12px #00ed8333; }
.wallet-help p { color: #88c69b; font-size: 12px; line-height: 1.9; margin: 13px 0; }
.wallet-help > span:last-child { color: var(--muted); font: 9px/1.6 var(--mono); }
.panel { min-width: 0; border: 1px solid var(--border); border-radius: 2px; position: relative; background: linear-gradient(135deg, #031008f5, #010703fa); box-shadow: 0 0 0 1px #00ff4c08, inset 0 0 35px #00ff4805; }
.panel-heading { height: 72px; min-height: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px 12px; background: linear-gradient(90deg, #0aff5a0e, transparent 75%); border-bottom: 1px solid #1a703729; }
.panel-heading .eyebrow { margin-bottom: 4px; }
.panel::before, .panel::after { content: ""; position: absolute; pointer-events: none; width: 28px; height: 9px; border-color: #52ff88; border-style: solid; filter: drop-shadow(0 0 4px #39ff7577); }
.panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.tag { color: #7df5a2; border: 1px solid #22834a; background: #04170a; border-radius: 1px; padding: 5px 8px; font: 9px/1.5 var(--mono); text-align: center; }
.fingerprint-panel { background: radial-gradient(ellipse at 50% 45%, #00ff4812, transparent 65%), #010a04; border-color: #2ade65; box-shadow: 0 0 3px #39ff7560, 0 0 36px #00ff4820, inset 0 0 25px #00ff4808; height: var(--workbench-height); display: grid; grid-template-rows: 72px minmax(0, 1fr) 56px 64px; }
.fingerprint-stage { position: relative; height: 100%; min-height: 0; margin: 0 14px; display: grid; place-items: center; overflow: hidden; border-radius: 1px; background: #010804; border: 1px solid #248c48; }
.stage-grid { position: absolute; inset: 0; background-image: linear-gradient(#29ff6a1f 1px, transparent 1px), linear-gradient(90deg, #29ff6a1f 1px, transparent 1px); background-size: 26px 26px; }
.stage-grid::before { content: ""; position: absolute; inset: 8px 48px; border-block: 4px solid transparent; border-image: repeating-linear-gradient(90deg, #36e674 0 1px, transparent 1px 13px) 1; opacity: .65; }
.stage-grid::after { content: ""; position: absolute; inset: 48px 8px; border-inline: 4px solid transparent; border-image: repeating-linear-gradient(0deg, #36e674 0 1px, transparent 1px 13px) 1; opacity: .65; }
.fingerprint-stage.is-signing::after { content: ""; position: absolute; left: 16px; right: 16px; top: 16px; height: 2px; pointer-events: none; background: #9dffb9; box-shadow: 0 0 12px #39ff75, 0 -12px 28px #39ff7566; animation: scan-pass 3s ease-in-out infinite alternate; }
@keyframes scan-pass { to { top: calc(100% - 16px); } }
#fingerprint { position: absolute; inset: 16px; display: block; width: calc(100% - 32px); height: calc(100% - 32px); }
#fingerprint-image { opacity: .9; }
#fingerprint.has-capture #fingerprint-image { opacity: .55; filter: url(#outside-blur); }
#capture-image { opacity: .95; }
.feature-point, .matched-feature-contour, .matched-feature-marker { vector-effect: non-scaling-stroke; pointer-events: none; }
.feature-point { stroke: #05220e; stroke-width: .7px; stroke-opacity: .75; }
.matched-feature-contour, .matched-feature-marker { fill: none; stroke-linecap: round; }
.matched-feature-contour { stroke: #101b10; stroke-width: 3.8px; }
.matched-feature-marker { stroke: #b5ff52; stroke-width: 2.4px; }
.image-placeholder { position: relative; max-width: 240px; text-align: center; padding: 20px; color: var(--muted); font-size: 12px; }
.stage-corner { position: absolute; width: 23px; height: 23px; border-color: #39ff7599; border-style: solid; pointer-events: none; filter: drop-shadow(0 0 5px #39ff75aa); }
.top-left { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.top-right { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.bottom-left { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.bottom-right { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.fingerprint-footer { min-height: 0; overflow: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px 8px; color: #97cfa9; font-size: 10px; }
.fingerprint-footer > span:first-child { display: flex; gap: 8px; align-items: center; }
.point-legend { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #bfff7515; flex: 0 0 auto; }
.capture-description { min-height: 0; margin: 0 20px 12px; padding: 2px; overflow: auto; color: var(--muted); font-size: 10px; line-height: 1.6; }
.mono, code { font-family: var(--mono); }
.token-badge { display: grid; place-items: center; width: 34px; height: 34px; color: var(--accent); font: 9px var(--mono); border: 1px solid #27cd61; border-radius: 50%; background: #031e0b; box-shadow: 0 0 14px #39ff7530; }
.transfer-panel { height: var(--workbench-height); min-height: min-content; display: grid; grid-template-rows: 72px auto; }
#transfer-form { display: grid; grid-template-rows: minmax(200px, max-content) minmax(104px, max-content) 46px minmax(48px, max-content) minmax(112px, 1fr); gap: 8px; padding: 0 20px 14px; }
#transfer-fields { min-height: 0; }
.fingerprint-panel .panel-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 20px 24px; gap: 0 10px; }
.fingerprint-panel .panel-heading > div { display: contents; }
.fingerprint-panel .panel-heading .eyebrow { grid-column: 1; grid-row: 1; margin: 0; }
#fingerprint-title { grid-column: 1 / -1; grid-row: 2; }
#fingerprint-tag { grid-column: 2; grid-row: 1; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
label { display: block; font-size: 11px; color: #9adeac; margin-bottom: 7px; }
input { color: var(--text); background: #020d05; border: 1px solid var(--border); border-radius: 2px; width: 100%; min-width: 0; padding: 10px 12px; }
input:disabled { opacity: .6; }
input[readonly] { color: #8fcba2; }
.recipient-card { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 9px; align-items: center; padding: 10px 12px; background: #020e06; border: 1px solid #206f3d; border-radius: 2px; }
.recipient-icon { grid-row: 1 / 3; color: var(--green); font-size: 21px; }
.recipient-name { font-size: 12px; font-weight: 550; }
.account-input { border: 0; border-radius: 0; font: 10px var(--mono); padding: 4px 0 0; background: none; }
.field-note { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.amount-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 13px; }
.amount-heading span { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; text-align: right; }
.amount-input { display: flex; align-items: center; border: 1px solid #21ab52; border-radius: 2px; background: #010a03; box-shadow: inset 0 0 22px #00ff5210, 0 0 12px #00ff5215; }
.amount-input:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 20px #39ff750c; }
.amount-input input:focus-visible { outline: none; }
.amount-input input { border: 0; background: transparent; font-size: 28px; line-height: 1.25; font-weight: 450; letter-spacing: -.04em; padding: 8px 12px; }
.amount-input input::placeholder { color: #659b73; }
.amount-input span { color: var(--accent); font: 11px var(--mono); padding: 0 14px; }
.transfer-review { margin: 0; padding: 11px 13px; border-left: 2px solid #20de64; background: #042010; }
.transfer-review .label { color: #72d38e; font-size: 8px; }
.transfer-review p { margin: 3px 0; font-size: 17px; color: #8cffae; letter-spacing: -.02em; overflow-wrap: anywhere; }
.transfer-review > span:last-child { display: block; color: #8fc99f; font: 10px/1.6 var(--mono); overflow-wrap: anywhere; }
.primary-button { height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; border: 1px solid var(--accent); border-radius: 2px; padding: 10px 15px; background: linear-gradient(100deg, #075121, #02260e); color: #70ff98; font-size: 13px; line-height: 1.2; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; text-shadow: 0 0 9px #39ff7555; box-shadow: 0 0 4px #39ff7550, 0 0 22px #39ff7530, inset 0 0 18px #39ff7518; }
.primary-button > span:last-child { font-size: 20px; font-weight: 400; line-height: 1; }
.primary-button:hover:not(:disabled) { background: #0a5a27; box-shadow: 0 0 8px #39ff7590, 0 0 30px #39ff7540; }
.primary-button:disabled { box-shadow: none; }
.submit-button { background: var(--accent); border-color: var(--accent); color: #002b0b; text-shadow: none; }
.submit-button:hover:not(:disabled) { background: #8dffaf; }
.transfer-actions { display: grid; grid-template-columns: minmax(0, 1fr) 64px; grid-template-rows: 46px; gap: 10px; align-items: center; }
.primary-action-slot { min-width: 0; height: 46px; }
.discard-button { grid-column: 2; margin: 0; font-size: 10px; line-height: 1.4; }
.approval-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
#signing-key-preview { color: #b8f7c9; }
#signing-key-preview .label { color: #87b995; letter-spacing: .02em; }
#signing-public-key { font: inherit; overflow-wrap: anywhere; word-break: break-all; }
.form-error { color: var(--danger); font-size: 12px; margin: 0 0 8px; overflow-wrap: anywhere; }
.execution-panel { height: 132px; margin-top: 16px; display: grid; grid-template-columns: 218px minmax(0, 1fr); grid-template-rows: 34px 34px 18px; gap: 8px 18px; padding: 14px 18px; }
.execution-heading { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
.execution-heading h2 { font-size: 12px; }
.proof-details-link { color: var(--accent); font-size: 10px; line-height: 1.5; text-decoration-color: #39ff7566; text-underline-offset: 3px; white-space: nowrap; }
.proof-details-link:hover { text-decoration-color: var(--accent); }
.execution-steps { grid-column: 2; grid-row: 1; list-style: none; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin: 0; padding: 0; }
.execution-steps li { display: flex; gap: 10px; align-items: center; position: relative; color: #88b898; }
.execution-steps li:not(:last-child)::after { content: ""; height: 1px; flex: 1; background: #1f8345; margin-left: 10px; }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border: 1px solid #267e46; border-radius: 2px; font: 9px var(--mono); }
.execution-steps strong { display: block; font-weight: 500; font-size: 11px; }
.execution-steps div > span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.execution-steps .is-current, .execution-steps .is-complete { color: #9fffb8; }
.execution-steps .is-current .step-number { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 18px #39ff7544; }
.execution-steps .is-complete .step-number { color: #39ff75; border-color: #25df65; background: #073a18; }
.execution-steps .is-failed .step-number { color: var(--danger); border-color: #b57562; }
.action-status { min-height: 0; display: grid; grid-template-rows: 27px minmax(0, 1fr); gap: 6px; margin: 0; padding-top: 8px; border-top: 1px solid var(--border); }
.action-status .tag { justify-self: start; align-self: start; margin: 0; }
/* Verbose status messages use the remaining space without expanding the panel. */
.status-content { min-height: 0; contain: size; overflow: auto; padding: 2px 4px 2px 2px; scrollbar-gutter: stable; }
:where(.status-content, .capture-description) { scrollbar-color: #268c4b #031008; scrollbar-width: thin; }
.execution-message { color: #a0d4af; font-size: 11px; overflow-wrap: anywhere; }
.execution-message[data-kind="error"] { color: var(--danger); }
.execution-message[data-kind="success"] { color: var(--accent); }
.transaction-row { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.transaction-row .label, .transaction-gas .label { color: var(--muted); font-size: 8px; }
.transaction-row code, .transaction-gas code { color: #91e6a7; font-size: 10px; overflow-wrap: anywhere; }
.transaction-gas { grid-row: 3; grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; }
.gas-metric { display: inline-flex; align-items: baseline; gap: 8px; }
.gas-metric + .gas-metric { border-left: 1px solid var(--border); padding-left: 12px; }
.proof-panel { margin-top: 12px; }
.proof-heading { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 18px; }
.proof-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 13px; }
#proof-title { scroll-margin-top: 20px; }
.proof-icon { font: 15px var(--mono); color: var(--green); }
#proof-hint { color: var(--muted); font: 9px/1.5 var(--mono); text-align: right; }
.proof-content { height: 460px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; padding: 16px 18px 18px; border-top: 1px solid var(--border); }
.signature-evidence, .merkle-evidence { min-width: 0; min-height: 0; display: grid; grid-template-rows: 36px 40px minmax(0, 1fr); gap: 8px; }
.evidence-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.evidence-heading h3 { margin: 0; color: #9ee5af; font-size: 12px; font-weight: 500; }
.proof-description { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 0; }
.proof-fields { min-height: 0; overflow: auto; margin: 0; padding: 2px 10px 2px 2px; }
.proof-fields > div { margin: 0 0 14px; }
.proof-fields dt { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.proof-fields dd { margin: 5px 0 0; color: #9ae4ab; overflow-wrap: anywhere; font: 11px/1.6 var(--mono); }
.proof-fields code { font-size: 10px; }
.proof-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.merkle-scroll { min-height: 0; overflow: auto; border: 1px solid #1d6636; padding: 12px; background: #010904; }
:where(.merkle-scroll, .proof-fields) { scrollbar-color: #268c4b #031008; scrollbar-width: thin; scrollbar-gutter: stable; }
.merkle-empty { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 8px; }
.merkle-path { margin: 0; padding: 0; list-style: none; }
.merkle-node { min-width: 0; position: relative; padding: 8px 10px; border: 1px solid #286c3c; background: #03150a; }
.merkle-node-label { display: block; margin-bottom: 5px; color: #8dd3a3; font-size: 8px; line-height: 1.6; text-transform: uppercase; letter-spacing: .04em; }
.merkle-node code { display: block; overflow-wrap: anywhere; color: #a2e6b5; font: 9px/1.6 var(--mono); }
.path-node { border-color: #26b15a; background: #062414; }
.sibling-node { background: #06100a; border-style: dashed; }
.merkle-origin { margin-bottom: 20px; }
.merkle-level { margin-bottom: 24px; }
.merkle-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 12px; position: relative; }
.merkle-pair::after { content: ""; position: absolute; bottom: 0; left: 25%; right: 25%; height: 12px; border: solid #2dc165; border-width: 0 1px 1px; }
.parent-node { margin-top: 12px; }
.parent-node::before, .merkle-root-step::before { content: ""; display: block; position: absolute; width: 1px; left: 50%; background: #2dc165; }
.parent-node::before { height: 12px; top: -13px; }
.merkle-root-step { position: relative; margin-top: 24px; }
.merkle-root-step::before { height: 24px; top: -24px; }
.root-matches { border-color: var(--accent); background: #07341a; box-shadow: 0 0 16px #39ff7518; }
.root-mismatch { border-color: var(--danger); }
#merkle-status[data-kind="success"] { color: var(--accent); border-color: var(--accent); }
#merkle-status[data-kind="error"] { color: var(--danger); border-color: var(--danger); }
footer { max-width: 1640px; margin: auto; padding: 17px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font: 9px/1.5 var(--mono); }
footer > span:first-child { letter-spacing: .14em; color: #5ec47c; }
.footer-divider { margin: 0 8px; color: #29ae55; }
@media (min-width: 961px) and (max-height: 800px) {
    .topbar { min-height: 64px; padding-block: 8px; }
    .workspace-heading { min-height: 54px; }
}
@media (min-width: 961px) and (max-width: 1180px) {
    .topbar, main, .demo-notice { padding-inline: 24px; }
    .topbar { gap: 16px; }
    .workspace { grid-template-columns: 174px minmax(0, 1fr) 316px; gap: 14px; }
    .panel-heading { padding-inline: 16px; }
    .wallet-card { padding: 12px; gap: 8px; }
    .fingerprint-footer { padding-inline: 16px; }
    .fingerprint-footer .mono { display: none; }
    .capture-description { margin-inline: 16px; }
    .tag { font-size: 8px; }
    .execution-panel { grid-template-columns: 174px minmax(0, 1fr); }
    .execution-steps li:not(:last-child)::after { display: none; }
}
@media (max-width: 960px) {
    .topbar { padding-inline: 24px; }
    .demo-notice { padding-inline: 24px; }
    .network-label { display: none; }
    main { padding-inline: 24px; }
    .workspace { grid-template-columns: minmax(0, 1fr) 354px; gap: 16px; }
    .wallet-section { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 20px; padding: 0; align-items: center; }
    .section-heading { margin-bottom: 8px; }
    .wallets { grid-column: 1; grid-row: 2; grid-template-columns: 1fr 1fr; gap: 12px; }
    .wallet-card { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 11px 14px; }
    .wallet-balance { grid-column: auto; font-size: 23px; margin: 0; }
    .refresh-button { width: auto; grid-column: 2; grid-row: 2; margin: 0; }
    .enrollment-summary { grid-column: 1 / -1; grid-row: 3; border-top: 0; margin-top: 4px; }
    .enrollment-label { padding: 7px 0; }
    .wallet-help { display: none; }
    .execution-panel { grid-template-columns: 180px minmax(0, 1fr); }
    .execution-steps { gap: 10px; }
    .execution-steps li:not(:last-child)::after { display: none; }
    footer { padding-inline: 24px; }
}
@media (max-width: 760px) {
    .topbar { min-height: 66px; padding: 10px 16px; gap: 10px; }
    .header-actions { flex-direction: column; align-items: flex-end; gap: 0; }
    .header-links { gap: 12px; }
    .header-link { min-height: 30px; padding: 4px 0; font-size: 10px; }
    .demo-notice { padding: 8px 16px; gap: 8px; }
    .notice-label { font-size: 8px; }
    .demo-notice p { font-size: 11px; }
    .how-dialog { padding: 20px; }
    .how-steps { margin-top: 22px; }
    .how-steps li { padding-left: 38px; }
    .brand { font-size: 18px; gap: 7px; }
    .brand img { width: 36px; height: 36px; }
    .brand small { font-size: 7px; letter-spacing: .05em; }
    .network-label { display: none; }
    .connection { max-width: 140px; padding: 5px 7px; font-size: 9px; }
    main { padding-inline: 16px; }
    .workspace-heading { min-height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 2px 10px; }
    .workspace-heading h1 { grid-column: 1; }
    .workspace-heading p { grid-column: 1 / -1; grid-row: 2; }
    .transfer-shortcut { grid-column: 2; grid-row: 1; display: flex; gap: 8px; align-items: center; min-height: 44px; color: var(--accent); font-size: 11px; text-decoration: none; }
    h1 { font-size: 19px; }
    .workspace-heading p { font-size: 9px; }
    .workspace-heading p::before { content: "Local sandbox / "; }
    .workspace { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .wallet-section { gap: 0 12px; }
    .section-heading { grid-column: 1; margin: 0; }
    .refresh-button { grid-row: 1; }
    .wallets { grid-column: 1 / -1; grid-row: 2; gap: 10px; }
    .wallet-card { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 5px; }
    .wallet-icon { display: none; }
    .wallet-name { font-size: 12px; }
    .wallet-balance { grid-column: 1; font-size: 24px; }
    .enrollment-label { min-height: 36px; }
    .panel-heading { padding: 14px 16px 12px; }
    .fingerprint-panel { height: 472px; grid-template-rows: 72px minmax(0, 1fr) 56px 84px; }
    .fingerprint-stage { margin-inline: 12px; }
    .transfer-panel { height: 660px; }
    .fingerprint-footer { padding: 12px 16px 7px; }
    .capture-description { margin-inline: 16px; }
    #transfer-form { grid-template-rows: minmax(220px, max-content) minmax(112px, max-content) 46px minmax(48px, max-content) minmax(112px, 1fr); padding: 0 16px 16px; }
    .execution-panel { height: 254px; padding: 14px 16px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 18px 96px 50px 36px; }
    .execution-heading { flex-direction: row; align-items: center; justify-content: space-between; }
    .execution-steps { grid-column: 1; grid-row: 2; gap: 8px; margin: 0; }
    .execution-steps li { flex-direction: column; align-items: flex-start; gap: 6px; }
    .execution-steps strong { font-size: 10px; }
    .execution-steps div > span { font-size: 9px; }
    .transaction-row { grid-row: 3; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; }
    .transaction-row .label { grid-column: 1 / -1; }
    .transaction-gas { grid-row: 4; }
    .gas-metric { flex-direction: column; align-items: flex-start; gap: 1px; }
    .proof-heading { height: 96px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 30px 30px; gap: 6px; padding: 14px 16px; align-items: start; }
    .proof-heading h2 { font-size: 11px; }
    #proof-hint { text-align: left; }
    .proof-content { height: 900px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 380px minmax(0, 1fr); gap: 22px; padding-inline: 16px; }
    .signature-evidence, .merkle-evidence { grid-template-rows: 52px 50px minmax(0, 1fr); }
    .evidence-heading { flex-wrap: wrap; gap: 4px 10px; }
    .evidence-heading h3 { font-size: 11px; }
    .merkle-pair { gap: 8px; }
    .merkle-node { padding: 7px; }
    .merkle-node code { font-size: 8px; }
    footer { padding: 16px; font-size: 8px; }
    footer > span:last-child { max-width: 170px; text-align: right; }
}
@media (max-width: 390px) {
    .topbar, main, .demo-notice { padding-inline: 12px; }
    .brand { font-size: 16px; }
    .brand small { font-size: 6px; }
    .connection { max-width: 124px; font-size: 8px; }
    .fingerprint-footer .mono { display: none; }
    .wallet-balance { font-size: 21px; }
    h2 { font-size: 16px; }
    .tag { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
