/* U1 wallet + private panels. Prefix: .wal-. Tokens from app.css. Violet = focus, action, private state. */

/* ---------- shared atoms ---------- */
.wal-k { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.wal-k svg { flex: none; }
.wal-k--dk { color: var(--muted-dk); }
.wal-roll { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wal-roll__f { color: var(--faint); }
.wal-roll[data-rolling] .wal-roll__w, .wal-roll[data-rolling] .wal-roll__f { color: var(--v); }
.wal-roll__u { margin-left: .45em; font-size: .26em; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.wal-delta { position: absolute; right: 0; bottom: 100%; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; pointer-events: none; z-index: 2; }
.wal-delta span { padding: 3px 7px; font: 600 12px/1.2 var(--mono); letter-spacing: 0; white-space: nowrap; color: #fff; background: #000; animation: wal-rise 2.2s var(--ease) forwards; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.wal-delta .is-up { background: var(--v); }
@keyframes wal-rise { 0% { opacity: 0; transform: translateY(8px); } 12% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.wal-amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wal-amt__f { color: var(--muted); }
.wal-amt__u { margin-left: .3em; font-size: .74em; font-weight: 600; color: var(--muted); }
.wal-strike { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--faint); }
.wal-strike .wal-amt__f, .wal-strike .wal-amt__u, .wal-strike.wal-amt .wal-amt__f, .wal-strike.wal-amt .wal-amt__u { color: var(--faint); }
.wal-redact { display: inline-flex; align-items: center; gap: 6px; height: 21px; padding: 0 8px; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: #fff; background: repeating-linear-gradient(135deg, #000 0 3px, #2b2b2b 3px 6px); vertical-align: middle; }
.wal-redact svg { width: 11px; height: 11px; flex: none; }
.panel-dark .wal-redact, .wal-dk .wal-redact { color: #cfcfcf; background: repeating-linear-gradient(135deg, #151515 0 3px, #2c2c2c 3px 6px); box-shadow: inset 0 0 0 1px #3a3a3a; }
.wal-caddr { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.wal-caddr a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.wal-caddr a:hover { color: var(--v); border-bottom-color: var(--v); }
.panel-dark .wal-caddr a { border-bottom-color: #555; }
.panel-dark .wal-caddr a:hover { color: var(--v-dk); border-bottom-color: var(--v-dk); }
.wal-caddr__l { font-family: var(--sans); font-weight: 600; font-size: 13px; }
.wal-caddr .copy { width: 22px; height: 22px; }
.wal-you { padding: 2px 5px 2px; font: 700 9.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--v); color: #fff; }
.wal-hex { display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 12px; white-space: nowrap; font-variant-ligatures: none; }
.wal-hex .copy { width: 22px; height: 22px; }
.wal-tag { display: inline-block; padding: 1px 5px; font: 600 10px/1.4 var(--mono); color: var(--muted); border: 1px dashed var(--g4); vertical-align: 1px; }
.wal-memo { font-style: italic; }
.wal-err { color: var(--v-err); font-weight: 600; }
.panel-dark .wal-err { color: #fff; }
.wal-ok { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.wal-ok svg { color: var(--v); flex: none; }
.wal-eyeaddr { font-family: var(--mono); }
.ph__eyebrow .copy { display: inline-grid; vertical-align: middle; margin-left: 2px; width: 22px; height: 22px; }

/* chain fields (what the chain sees) */
.wal-cf { margin-top: 12px; }
.wal-cf__row { display: grid; grid-template-columns: minmax(7.5em, 32%) minmax(0, 1fr); gap: 12px; align-items: center; min-height: 38px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.panel-dark .wal-cf__row, .wal-dk .wal-cf__row { border-top-color: var(--line-dk); }
.wal-cf dt { color: var(--muted); }
.panel-dark .wal-cf dt, .wal-dk .wal-cf dt { color: var(--muted-dk); }
.wal-cf dd { min-width: 0; font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.wal-cf--dense .wal-cf__row { min-height: 32px; padding: 5px 0; }
.wal-cf__hashes { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.wal-cf__row[data-hidden] dt { color: inherit; }
.panel-dark .wal-cf__row[data-hidden] dt { color: #fff; }

/* ---------- wallet: funding banner + hero ---------- */
.wal-fund { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 22px; padding: 14px 18px 14px 20px; background: #000; color: var(--g1); font-size: 14px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.wal-fund b { color: #fff; }
.wal-hero { padding-bottom: 6px; }
.wal-hero__top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.wal-hero__alt { font-size: 12.5px; color: var(--muted); }
.wal-hero__num { position: relative; display: inline-flex; align-items: baseline; margin-top: 10px; max-width: 100%; }
.wal-hero__num .wal-roll { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-stretch: 125%; font-weight: 600; font-size: clamp(40px, 6.2vw, 96px); letter-spacing: -0.045em; line-height: 1; }
.wal-hero__num .wal-roll__f { font-size: .4em; letter-spacing: -0.01em; font-weight: 500; }
.wal-hero__num .wal-delta span { font-size: 13px; }
.wal-bar { display: flex; gap: 3px; height: 12px; margin-top: 22px; }
.wal-bar__s { flex: 0 1 0; min-width: 0; transition: flex-grow .9s var(--ease); }
.wal-bar__s--pub { background: #000; }
.wal-bar__s--priv { background: var(--v); }
.wal-bar__s--l1 { background: repeating-linear-gradient(135deg, var(--g4) 0 2px, var(--g3) 2px 5px); }
.wal-bar__empty { flex: 1; border: 1.5px dashed var(--line-2); }
.wal-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px var(--gap); margin: 12px 0 14px; }
.wal-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 3px 10px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.wal-legend li > span:first-of-type { grid-column: 2; grid-row: 1; }
.wal-legend li b { grid-column: 1 / -1; grid-row: 2; font-size: 17px; font-weight: 500; }
.wal-legend li > span:last-child { grid-column: 3; grid-row: 1; font-size: 12px; }
.wal-sw { width: 10px; height: 10px; background: #000; }
.wal-sw--priv { background: var(--v); }
.wal-sw--l1 { background: repeating-linear-gradient(135deg, var(--g4) 0 2px, var(--g3) 2px 4px); }

/* ---------- wallet: the three layers ---------- */
.wal-layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap); margin-top: clamp(26px, 2.8vw, 40px); }
.wal-layer { display: flex; flex-direction: column; min-width: 0; padding-top: 12px; border-top: 2px solid #000; }
.wal-layer--priv { border-top-color: var(--v); }
.wal-layer header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wal-layer h3 { font-stretch: 118%; font-weight: 600; font-size: 19px; letter-spacing: -0.015em; line-height: 1.2; }
.wal-layer header .badge { margin-left: auto; }
.wal-layer__n { font-size: 11px; color: var(--muted); }
.wal-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 8px 0; border-top: 1px solid var(--line); }
.wal-line__k { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; line-height: 1.3; }
.wal-line__k small { font-weight: 400; font-size: 12px; color: var(--muted); }
.wal-line__v { position: relative; min-width: 0; font-stretch: 112%; font-weight: 600; font-size: clamp(18px, 1.6vw, 23px); letter-spacing: -0.01em; text-align: right; }
.wal-line__v .wal-roll { display: block; overflow: hidden; text-overflow: ellipsis; }
.wal-line__v .wal-roll__f { font-size: .64em; font-weight: 500; }
.wal-layer__p { flex: 1; padding: 10px 0 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.wal-layer__a { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- wallet: move funds (send / receive / faucet) + chain pane ---------- */
.wal-move { margin-top: clamp(32px, 3.4vw, 52px); align-items: start; }
.wal-tabpanel { padding-top: 20px; animation: wal-fade .35s var(--ease) both; }
@keyframes wal-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wal-form__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: end; margin-bottom: 20px; }
.wal-form__row > .field { margin-top: 0; }
.wal-form__row .seg button { min-height: 41px; padding: 0 16px; }
.wal-form .field + .field { margin-top: 20px; }
.wal-sum { margin-top: 18px; border-top: 1px solid var(--line-2); }
.wal-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.wal-sum dt { color: var(--muted); }
.wal-sum dt small { margin-left: 6px; font-size: 11.5px; color: var(--faint); }
.wal-sum dd { text-align: right; overflow-wrap: anywhere; }
.wal-sum .is-total dt { color: #000; font-weight: 600; }
.wal-sum .is-total dd { font-weight: 600; }
.wal-form__go { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; margin-top: 20px; }
.wal-pane { padding: 20px 22px 22px; }
.wal-pane__note { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted-dk); }
.wal-pane__two { display: grid; gap: 6px; }
.wal-pane__sub { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: #fff; }
.wal-last, .wal-last__empty { margin-top: 18px; padding-top: 14px; border-top: 1px solid #333; }
.wal-last__empty { font-size: 13px; color: var(--muted-dk); }
.wal-last__h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.wal-last__h a { margin-left: auto; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--g2); }
.wal-last__h a:hover { color: var(--v-dk); }
.wal-dk .step, .panel-dark .step { border-top-color: #383838; }
.panel-dark .step[data-state="done"] { border-top-color: #fff; }
.panel-dark .step[data-state="active"] { border-top-color: var(--v-dk); }
.panel-dark .step[data-state="active"] .step__l { color: var(--v-dk); }
.panel-dark .step[data-state="active"]::before { background: var(--v-dk); opacity: .7; }
.panel-dark .step[data-state="failed"] { border-top-color: #fff; }
.panel-dark .step[data-state="failed"] .step__l { color: #fff; text-decoration: underline; text-decoration-color: var(--v-dk); text-underline-offset: 3px; }
.panel-dark .step[data-state="todo"] .step__l { color: var(--faint-dk); }
.panel-dark .step__n, .panel-dark .step__s { color: var(--muted-dk); }
.panel-dark .badge--pending { color: var(--v-dk); }

/* receive */
.wal-recv { display: grid; gap: 24px; }
.wal-addr { display: flex; flex-wrap: wrap; gap: 4px 11px; margin-top: 10px; font-size: clamp(16px, 1.55vw, 21px); font-weight: 500; letter-spacing: .02em; line-height: 1.35; }
.wal-addr span:nth-child(even) { color: #3a3a3a; }
.wal-recv__a { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.wal-recv__pk { display: flex; align-items: center; gap: 4px; margin: 8px 0 6px; font-size: 14px; }
.wal-recv__try { padding: 16px 18px 14px; background: var(--g2); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.wal-recv__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 8px; }
.wal-recv__row .select { flex: 1 1 200px; width: auto; min-width: 0; }

/* faucet */
.wal-drip li { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.wal-drip li:last-child { border-bottom: 1px solid var(--line); }
.wal-drip b { font-size: 17px; font-weight: 600; }
.wal-drip small { font-size: 12px; color: var(--muted); text-align: right; }
.wal-cool { margin-top: 18px; }
.wal-cool__l { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 12.5px; color: var(--muted); }
.wal-cool__bar { height: 4px; background: var(--g2); overflow: hidden; }
.wal-cool__bar i { display: block; height: 100%; background: #000; transform-origin: 0 50%; transition: transform .25s linear; }

/* ---------- activity ---------- */
.wal-act { margin-top: clamp(32px, 3.4vw, 52px); }
.wal-act .sect__a .seg button { min-height: 34px; font-size: 13px; }
.wal-viewnote { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-top: 10px; font-size: 13px; color: #fff; background: #000; }
.wal-viewnote svg { color: var(--v-dk); flex: none; }
.wal-rows { margin-top: 2px; }
.wal-row { border-bottom: 1px solid var(--line); }
.wal-row[data-new] { animation: wal-rowin .75s var(--ease) both; }
@keyframes wal-rowin { from { opacity: 0; transform: translateY(-10px); background: var(--v-tint); } 55% { background: var(--v-tint); } to { opacity: 1; transform: none; background: transparent; } }
.wal-row__b { display: grid; grid-template-columns: 30px minmax(0, 1.2fr) minmax(0, 1.45fr) minmax(0, 1.25fr) 104px 96px 18px; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 4px 8px 0; border: 0; background: none; text-align: left; transition: background-color .15s; }
.wal-row__b:hover { background: rgba(0, 0, 0, .035); }
.wal-row__b:focus-visible { outline-offset: -3px; }
.wal-glyph { display: grid; place-items: center; width: 28px; height: 28px; font: 600 14px/1 var(--mono); border: 1.5px solid #000; }
.wal-glyph.is-priv { background: #000; color: #fff; }
.wal-glyph.is-fail { background: var(--v-err); border-color: var(--v-err); color: #fff; }
.wal-row__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.wal-row__t b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wal-row__s { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wal-row__p { display: block; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wal-row__p b { font-weight: 600; }
.wal-row__pp { display: flex; align-items: center; gap: 6px; }
.wal-row__amt { min-width: 0; overflow: hidden; text-align: right; font-size: 15px; font-weight: 600; font-stretch: 108%; }
.wal-row__w { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; line-height: 1.35; }
.wal-row__w .mono { font-size: 11.5px; }
.wal-row__c { display: grid; place-items: center; color: var(--muted); }
.wal-row__c svg { transition: transform .25s var(--ease); }
.wal-row.is-open .wal-row__c svg { transform: rotate(180deg); }
.wal-row.is-open > .wal-row__b { background: rgba(0, 0, 0, .04); }
.wal-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); padding: 6px 0 22px 44px; animation: wal-fade .3s var(--ease) both; }
.wal-detail__chain { padding: 16px 18px 16px; }
.wal-detail__you { padding-top: 16px; min-width: 0; }
.wal-you-kv { margin-top: 12px; }
.wal-you-kv > div { display: grid; grid-template-columns: minmax(7em, 30%) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.wal-you-kv dt { color: var(--muted); }
.wal-you-kv dd { min-width: 0; overflow-wrap: anywhere; }
.wal-detail__a { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 12px; }
.wal-more { display: flex; justify-content: center; padding-top: 18px; }

/* ---------- private: stats, composer, join-split ---------- */
.wal-pstats { margin-bottom: 4px; }
.wal-pstats .stat__v { position: relative; overflow: visible; }
.wal-pstats .wal-roll__f { font-size: .62em; }
.wal-pgrid { margin-top: clamp(30px, 3.2vw, 48px); align-items: start; }
.wal-comp .tabs { margin-top: -4px; }
.wal-from { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-height: 44px; padding: 10px 0 8px; border-bottom: 1.5px solid #000; font-size: 15px; }
.wal-from .mono { font-size: 12.5px; }
.wal-relay { margin-top: 16px; padding: 10px 14px; background: var(--g2); }
.wal-js { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); align-items: center; margin-top: 22px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.wal-js__in, .wal-js__out { position: relative; display: flex; flex-direction: column; gap: 10px; }
.wal-js__in { padding-right: 20px; }
.wal-js__out { padding-left: 20px; }
.wal-js__in::after, .wal-js__out::before { content: ""; position: absolute; top: 25%; bottom: 25%; width: 0; border-left: 1.5px solid #000; }
.wal-js__in::after { right: 0; }
.wal-js__out::before { left: 0; }
.wal-js__note { position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 9px 12px 10px; background: var(--g0); border: 1px solid var(--line-2); }
.wal-js__in .wal-js__note::after, .wal-js__out .wal-js__note::before { content: ""; position: absolute; top: 50%; width: 20px; border-top: 1.5px solid #000; }
.wal-js__in .wal-js__note::after { left: 100%; }
.wal-js__out .wal-js__note::before { right: 100%; }
.wal-js__t { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wal-js__note b { display: flex; align-items: baseline; gap: 6px; font-stretch: 112%; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; min-width: 0; }
.wal-js__note b .wal-roll { overflow: hidden; text-overflow: ellipsis; }
.wal-js__note b small { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.wal-js__f { font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wal-js__note.is-dummy { background: transparent; border-style: dashed; }
.wal-js__note.is-dummy b { color: var(--g4); }
.wal-js__note.is-public { background: transparent; border: 1.5px solid #000; }
.wal-js__note.is-mine { background: #000; color: #fff; border-color: #000; }
.wal-js__note.is-mine .wal-js__t, .wal-js__note.is-mine .wal-js__f, .wal-js__note.is-mine b small { color: var(--muted-dk); }
.wal-js__note.is-mine .wal-roll__f { color: #8d8d8d; }
.wal-js__note.is-out { background: var(--v); color: #fff; border-color: var(--v); }
.wal-js__note.is-out .wal-js__t, .wal-js__note.is-out .wal-js__f, .wal-js__note.is-out b small, .wal-js__note.is-out .wal-roll__f { color: #d9c7ff; }
.wal-js__note.is-in { text-decoration: none; }
.wal-js__note.is-in .wal-js__t::after { content: ""; }
.wal-js__note .wal-roll[data-rolling] .wal-roll__w { color: inherit; }
.wal-js__core { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; justify-self: center; width: 64px; height: 64px; background: #000; color: #fff; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.wal-js__core b { font-size: 24px; font-weight: 600; line-height: 1; }
.wal-js__core small { font: 500 9px/1 var(--mono); color: var(--muted-dk); white-space: nowrap; }
.wal-js__eq { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.wal-js__eq svg { color: var(--v); flex: none; }
.wal-js.is-live .wal-js__core { background: var(--v); animation: wal-core 1s var(--ease) infinite alternate; }
.wal-js.is-live .wal-js__in::after, .wal-js.is-live .wal-js__out::before, .wal-js.is-live .wal-js__note::after, .wal-js.is-live .wal-js__note::before { border-color: var(--v); }
@keyframes wal-core { from { transform: scale(1); } to { transform: scale(1.06); } }

/* ---------- private: pane + proof theater ---------- */
.wal-pp { min-height: 420px; }
.wal-pane__note.is-warn { color: #fff; padding: 8px 10px; background: #1d1d1d; box-shadow: inset 3px 0 0 var(--v-dk); }
.wal-pane__idle { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #333; font-size: 12.5px; color: var(--muted-dk); }
.wal-pane__dot { flex: none; width: 8px; height: 8px; background: var(--v-dk); animation: blink 1.6s steps(2, start) infinite; }
.wal-proof__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wal-chip { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; font: 600 11px/1 var(--mono); white-space: nowrap; color: #fff; border: 1px solid #444; }
.wal-chip::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.wal-chip.is-proving, .wal-chip.is-submitted { color: var(--v-dk); border-color: var(--v-dk); }
.wal-chip.is-proving::before, .wal-chip.is-submitted::before { animation: blink 1s steps(2, start) infinite; }
.wal-chip.is-confirmed { color: #000; background: #fff; border-color: #fff; }
.wal-chip.is-failed { color: #fff; background: var(--v-err); border-color: var(--v-err); }
.wal-stages { margin-top: 14px; border-top: 1px solid #333; }
.wal-stage { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(60px, 34%) 64px; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #262626; }
.wal-stage__n { font-size: 11px; color: var(--muted-dk); }
.wal-stage__l { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.wal-stage__l b { font-size: 14px; font-weight: 600; color: #fff; }
.wal-stage__l small { font-size: 11.5px; color: var(--muted-dk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wal-stage__bar { position: relative; height: 4px; background: #2a2a2a; overflow: hidden; }
.wal-stage__bar i { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transition: transform .18s linear; }
.wal-stage[data-state="active"] .wal-stage__bar i { background: var(--v-dk); }
.wal-stage[data-state="active"] .wal-stage__l b { color: var(--v-dk); }
.wal-stage[data-state="active"] .wal-stage__bar::after { content: ""; position: absolute; inset: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); animation: sweep 1.1s var(--ease) infinite; }
.wal-stage[data-state="todo"] .wal-stage__l b { color: #6d6d6d; }
.wal-stage[data-state="failed"] .wal-stage__bar i { background: var(--v-dk); }
.wal-stage__t { font-size: 11.5px; text-align: right; color: var(--g2); white-space: nowrap; }
.wal-bytes { margin: 14px 0 0; padding: 12px 12px; min-height: 104px; background: #0d0d0d; border: 1px solid #262626; font: 400 10.5px/1.55 var(--mono); letter-spacing: .02em; white-space: pre-wrap; word-break: break-all; color: #5e5e5e; overflow: hidden; }
.wal-bytes__hot { color: var(--v-dk); }
.wal-bytes.is-real .wal-bytes__hot { color: #e6e6e6; }
.wal-bytes__cold { color: #3d3d3d; }
.wal-proof__cap { margin-top: 6px; font-size: 11px; color: var(--muted-dk); }
.wal-proof__ck { margin-top: 18px; }
.wal-checks { margin-top: 8px; }
.wal-checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 4px 0; font-size: 12.5px; color: #8a8a8a; }
.wal-checks li i { font-style: normal; font-family: var(--mono); text-align: center; }
.wal-checks li small { font: 400 10.5px var(--mono); color: var(--faint-dk); }
.wal-checks li b { font: 600 11px var(--mono); color: #fff; padding: 2px 6px; background: var(--v-err); white-space: nowrap; }
.wal-checks li[data-state="ok"] { color: #e6e6e6; animation: wal-tick .45s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.wal-checks li[data-state="ok"] i { color: var(--v-dk); }
.wal-checks li[data-state="fail"] { color: #fff; font-weight: 600; animation: wal-tick .45s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.wal-checks li[data-state="fail"] i { color: #fff; background: var(--v-err); }
.wal-checks li[data-state="skip"] { color: #555; text-decoration: line-through; text-decoration-color: #444; }
.wal-checks li[data-state="na"] { color: #555; }
@keyframes wal-tick { from { opacity: .2; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.wal-proof__fail { margin-top: 10px; font-size: 12.5px; color: #fff; }
.wal-rec { margin-top: 16px; border-top: 1px solid #333; }
.wal-rec summary { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: #fff; list-style: none; }
.wal-rec summary::-webkit-details-marker { display: none; }
.wal-rec summary::before { content: "+"; display: grid; place-items: center; width: 16px; height: 16px; font: 600 12px/1 var(--mono); border: 1px solid #555; }
.wal-rec[open] summary::before { content: "–"; }
.wal-rec .wal-cf { margin-top: 0; }
.wal-proof__a { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; }
.wal-proof__a a { color: var(--g2); }
.wal-proof__a a:hover { color: var(--v-dk); }
.wal-proof__a .btn { margin-left: auto; }

/* ---------- private: commitment tree ---------- */
.wal-pool { margin-top: clamp(32px, 3.4vw, 52px); align-items: start; }
.wal-tree { margin: 0; }
.wal-tree svg { width: 100%; height: auto; overflow: visible; }
.wal-tree__edges line { stroke: #000; stroke-width: 1.5; }
.wal-tree__edges line.is-off { stroke: var(--g3); stroke-dasharray: 3 4; }
.wal-node.is-on { fill: #000; }
.wal-node.is-off { fill: var(--g1); stroke: var(--g3); stroke-width: 1.5; stroke-dasharray: 2 2; }
.wal-leaf__r { transition: fill .2s, stroke .2s; }
.wal-leaf[role="button"] { cursor: pointer; }
.wal-leaf:focus { outline: none; }
.wal-leaf[data-state="empty"] .wal-leaf__r { fill: transparent; stroke: var(--g3); stroke-width: 1.5; stroke-dasharray: 3 3; }
.wal-leaf[data-state="full"] .wal-leaf__r { fill: #000; }
.wal-leaf[data-state="mine"] .wal-leaf__r { fill: var(--v); }
.wal-leaf[data-state="mine-spent"] .wal-leaf__r { fill: var(--g1); stroke: var(--v); stroke-width: 3.5; }
.wal-leaf[role="button"]:hover .wal-leaf__r, .wal-leaf:focus-visible .wal-leaf__r { stroke: var(--v); stroke-width: 5; }
.wal-leaf.is-picked .wal-leaf__r { stroke: #000; stroke-width: 5; }
.wal-leaf.is-new .wal-leaf__r { animation: wal-leafin 1s var(--ease) both; transform-box: fill-box; transform-origin: center; }
@keyframes wal-leafin { 0% { transform: scale(0); stroke: var(--v); stroke-width: 8; } 45% { transform: scale(1.22); stroke: var(--v); stroke-width: 8; } 100% { transform: scale(1); stroke-width: 0; } }
.wal-leaf__t { font: 500 13px var(--mono); fill: var(--muted); }
.wal-tree__spine > line { stroke: #000; stroke-width: 1.5; }
.wal-rung line { stroke: #000; stroke-width: 1.5; }
.wal-rung rect { fill: #000; }
.wal-rung[data-zero] line { stroke: var(--g3); }
.wal-rung[data-zero] rect { fill: var(--g1); stroke: var(--g4); stroke-width: 1.2; }
.wal-tree__hot line { stroke: var(--v); stroke-width: 4.5; stroke-linecap: square; opacity: 0; animation: wal-hot 1.5s var(--ease) both; animation-delay: calc(var(--d) * 110ms); }
.wal-tree__hot line.is-spine { stroke-width: 3.5; }
@keyframes wal-hot { 0% { opacity: 0; } 18% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.wal-root rect { fill: var(--v); animation: wal-rootin .9s var(--ease) both; animation-delay: .5s; transform-box: fill-box; transform-origin: center; }
@keyframes wal-rootin { 0% { transform: scale(.6); fill: #000; } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.wal-tree__lab { font: 600 14px var(--sans); fill: #000; }
.wal-tree__lab.is-dim { font: 400 13px var(--mono); fill: var(--muted); }
.wal-tree__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.wal-tree__legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 12.5px; }
.wal-tree__legend li { display: flex; align-items: center; gap: 7px; }
.wal-tree__legend i { width: 11px; height: 11px; background: #000; }
.wal-tree__legend i.is-mine { background: var(--v); }
.wal-tree__legend i.is-mine-spent { background: transparent; box-shadow: inset 0 0 0 2.5px var(--v); }
.wal-tree__legend i.is-empty { background: transparent; outline: 1.5px dashed var(--g4); outline-offset: -1.5px; }
.wal-tree__root { font-size: 12px; color: var(--muted); }
.wal-pool .fine { margin-top: 10px; }

/* nullifier set */
.wal-nf__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wal-nf__n { font-size: 13px; color: var(--muted); }
.wal-nf__n b { margin-right: 6px; font-stretch: 118%; font-weight: 600; font-size: 34px; letter-spacing: -0.02em; color: #000; }
.wal-nf__top .mono { font-size: 11.5px; }
.wal-nf__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin-top: 12px; }
.wal-nf__c { aspect-ratio: 1; background: #000; }
.wal-nf__c.is-empty { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.wal-nf__c.is-mine { background: var(--v); }
.wal-nf__c.is-new { animation: wal-nfin 1s var(--ease) both; }
.wal-nf__c.is-flash { background: var(--v-err); animation: wal-nfflash .5s steps(2, start) 8; }
@keyframes wal-nfin { 0% { transform: scale(0); box-shadow: 0 0 0 3px var(--v); } 55% { transform: scale(1.15); box-shadow: 0 0 0 3px var(--v); } 100% { transform: none; box-shadow: 0 0 0 0 transparent; } }
@keyframes wal-nfflash { 0%, 100% { background: var(--v-err); } 50% { background: #fff; box-shadow: inset 0 0 0 2px var(--v-err); } }
.wal-nf__list { margin-top: 14px; border-top: 1px solid var(--line-2); }
.wal-nf__list li { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; animation: wal-fade .5s var(--ease) both; }
.wal-nf__list li > .mono.muted { margin-left: auto; font-size: 11.5px; }

/* notes */
.wal-notes { margin-top: clamp(32px, 3.4vw, 52px); }
.wal-go { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 12.5px; }
.tbl tr:hover .wal-go { color: var(--v); }

/* relayer + double spend */
.wal-pfoot { margin-top: clamp(32px, 3.4vw, 52px); align-items: start; }
.wal-lede { max-width: 42em; margin-bottom: 14px; font-size: 14px; color: #262626; }
.wal-ropts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.wal-ropt { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px 16px; text-align: left; background: var(--g0); border: 1.5px solid var(--line-2); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.wal-ropt:hover { border-color: #000; }
.wal-ropt[aria-checked="true"] { background: #fff; border-color: var(--v); box-shadow: inset 0 0 0 1.5px var(--v); }
.wal-ropt__h { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.wal-radio { flex: none; width: 14px; height: 14px; border: 1.5px solid #000; }
.wal-ropt[aria-checked="true"] .wal-radio { border-color: var(--v); background: radial-gradient(var(--v) 0 0) center / 6px 6px no-repeat; }
.wal-ropt__row { display: flex; justify-content: space-between; align-items: center; gap: 4px 8px; flex-wrap: wrap; padding: 7px 10px; background: #000; color: var(--muted-dk); font-size: 11.5px; }
.wal-ropt__row .mono { color: #fff; font-size: 12px; }
.wal-ropt__p { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.wal-ds .steps { margin: 4px 0 2px; }
.wal-ds__res { margin-top: 16px; padding: 14px 16px; background: #000; color: var(--g1); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); animation: wal-fade .4s var(--ease) both; }
.wal-ds__res p:first-child { display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; font-size: 15px; }
.wal-ds__res b { color: #fff; }
.wal-ds__res .wal-err { padding: 2px 7px; font: 600 12px var(--mono); color: #fff; background: var(--v-err); }
.wal-ds__res .fine { margin: 8px 0; color: var(--muted-dk); }
.wal-ds__res a { font-size: 12px; color: var(--g2); }
.wal-ds__nf { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--muted-dk); }
.wal-ds__nf .wal-hex { color: #fff; }
.wal-ds__a { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
.wal-ds__a .btn--quiet { --fg: #fff; min-height: 32px; font-size: 13px; }
.wal-ds__a .btn--quiet:hover { color: var(--v-dk); }
.wal-ds__res a:hover { color: var(--v-dk); }

/* merkle proof modal */
.wal-mp .fine { margin-bottom: 12px; }
.wal-mp__kv > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.wal-mp__kv dt { color: var(--muted); }
.wal-mp__kv dd { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
.wal-mp__path { margin: 10px 0; max-height: 300px; overflow: auto; border-top: 1.5px solid #000; border-bottom: 1.5px solid #000; }
.wal-mp__path li { display: grid; grid-template-columns: 34px 74px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; min-height: 28px; padding: 3px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.wal-mp__path li:last-child { border-bottom: 0; }
.wal-mp__side { font-size: 11px; color: var(--muted); white-space: nowrap; }
.wal-mp__out { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wal-mp__out i { margin-right: 4px; font-style: normal; color: var(--v); }
.wal-mp__path.is-done li { animation: wal-tick .4s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.wal-mp__ok { font-weight: 700; color: var(--v); }

/* side-by-side sections in a grid share one top line */
@media (min-width: 1024px) { .wal .grid > .sect + .sect { margin-top: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
  .wal-row__b { grid-template-columns: 30px minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1.2fr) 100px 18px; }
  .wal-row__w { display: none; }
}
@media (max-width: 1023px) {
  .wal-pp { min-height: 0; }
}
@media (max-width: 759px) {
  .wal-legend { grid-template-columns: 1fr; gap: 0; }
  .wal-legend li { grid-template-columns: 10px minmax(0, 1fr) auto auto; padding: 8px 0; }
  .wal-legend li b { grid-column: 3; grid-row: 1; font-size: 14px; }
  .wal-legend li > span:last-child { grid-column: 4; }
  .wal-layers { grid-template-columns: minmax(0, 1fr); }
  .wal-form__row { grid-template-columns: minmax(0, 1fr); }
  .wal-row__b { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "g t a" "g p s"; gap: 3px 10px; padding: 10px 0; }
  .wal-glyph { grid-area: g; align-self: start; }
  .wal-row__t { grid-area: t; }
  .wal-row__p { grid-area: p; font-size: 12.5px; }
  .wal-row__amt { grid-area: a; font-size: 14px; }
  .wal-row__st { grid-area: s; justify-self: end; }
  .wal-row__st .badge { height: 20px; font-size: 10px; }
  .wal-row__w, .wal-row__c { display: none; }
  .wal-detail { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .wal-act .sect__a { width: 100%; margin-left: 0; }
  .wal-drip li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wal-drip small { text-align: left; }
  .wal-js { grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); }
  .wal-js__in { padding-right: 12px; }
  .wal-js__out { padding-left: 12px; }
  .wal-js__in .wal-js__note::after, .wal-js__out .wal-js__note::before { width: 12px; }
  .wal-js__core { width: 42px; height: 42px; }
  .wal-js__core b { font-size: 18px; }
  .wal-js__core small { display: none; }
  .wal-js__note { padding: 7px 8px 8px; }
  .wal-js__note b { font-size: 15px; }
  .wal-ropts { grid-template-columns: minmax(0, 1fr); }
  .wal-notes .tbl th:nth-child(5), .wal-notes .tbl td:nth-child(5), .wal-notes .tbl th:nth-child(6), .wal-notes .tbl td:nth-child(6), .wal-notes .tbl th:nth-child(7), .wal-notes .tbl td:nth-child(7) { display: none; }
  .wal-notes .sect__a { width: 100%; margin-left: 0; }
  .wal-stage { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .wal-stage__bar { grid-column: 2 / -1; grid-row: 2; }
  .wal-tree__lab { font-size: 27px; }
  .wal-tree__lab.is-dim { font-size: 24px; }
  .wal-leaf__t { font-size: 25px; }
  .wal-mp__path li { grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1fr); }
  .wal-mp__side { display: none; }
  .wal-mp__kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .panel-dark .step[data-state="done"] { border-left-color: #fff; }
  .panel-dark .step[data-state="active"] { border-left-color: var(--v-dk); }
  .panel-dark .step[data-state="failed"] { border-left-color: #fff; }
  .panel-dark .step { border-left-color: #383838; }
}
@media (prefers-reduced-motion: reduce) {
  .wal-tree__hot { display: none; }
  .wal-delta { display: none; }
}

/* ---------- round 2: join-split phases (the submitted inputs stay drawn while the proof runs) ---------- */
.wal-js__stamp { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 12px; font: 600 12px/1.35 var(--mono); color: #fff; background: #000; animation: wal-fade .35s var(--ease) both; }
.wal-js__stamp i { flex: none; width: 8px; height: 8px; background: var(--v-dk); }
.wal-js[data-phase="proving"] .wal-js__stamp i, .wal-js[data-phase="submitted"] .wal-js__stamp i { animation: blink 1s steps(2, start) infinite; }
.wal-js[data-phase="confirmed"] .wal-js__stamp { background: var(--v); }
.wal-js[data-phase="confirmed"] .wal-js__stamp i { background: #fff; }
.wal-js[data-phase="failed"] .wal-js__stamp { background: var(--v-err); }
.wal-js[data-phase="failed"] .wal-js__stamp i { background: #fff; }
.wal-js[data-phase] .wal-js__eq { display: none; }
.wal-js[data-phase="proving"] .wal-js__note, .wal-js[data-phase="submitted"] .wal-js__note { animation: wal-notepulse 1.2s var(--ease) infinite alternate; }
.wal-js[data-phase="proving"] .wal-js__out .wal-js__note { animation-delay: .3s; }
@keyframes wal-notepulse { from { opacity: 1; } to { opacity: .62; } }
.wal-js[data-phase="confirmed"] .wal-js__in .wal-js__note.is-in { opacity: .55; }
.wal-js[data-phase="confirmed"] .wal-js__in .wal-js__note.is-in b .wal-roll { text-decoration: line-through; text-decoration-thickness: 2px; }
.wal-js[data-phase="confirmed"] .wal-js__in .wal-js__note.is-in::before { content: "nullified"; position: absolute; top: 7px; right: 8px; padding: 1px 5px; font: 700 9px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #000; }
.wal-js[data-phase="confirmed"] .wal-js__out .wal-js__note::after { content: "in the tree"; position: absolute; top: 7px; right: 8px; padding: 1px 5px; font: 700 9px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #000; background: #fff; animation: wal-fade .4s var(--ease) both; }
.wal-js[data-phase="confirmed"] .wal-js__out .wal-js__note.is-public::after { content: "paid out"; color: #fff; background: #000; }
.wal-js[data-phase="confirmed"] .wal-js__core { background: var(--v); }
.wal-js[data-phase="failed"] .wal-js__core { background: var(--v-err); }


@media (max-width: 759px) {
  .wal-notes .tbl th:nth-child(8), .wal-notes .tbl td:nth-child(8) { display: none; }
  .wal-js[data-phase="confirmed"] .wal-js__in .wal-js__note.is-in::before, .wal-js[data-phase="confirmed"] .wal-js__out .wal-js__note::after { top: auto; bottom: 6px; right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .wal-js[data-phase] .wal-js__note { animation: none; }
}

/* ---------- round 2: hero + exposure ("what the chain links to you") ---------- */
.wal-herogrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px var(--gap); align-items: stretch; }
@media (min-width: 1024px) { .wal-herogrid { grid-template-columns: minmax(0, 1fr) minmax(300px, 30%); } .wal-herogrid .wal-hero__num .wal-roll { font-size: clamp(40px, 5.4vw, 92px); } }
.wal-expo { display: flex; flex-direction: column; padding: 18px 20px 18px; }
.wal-expo__big { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; font-size: 13px; line-height: 1.35; color: var(--muted-dk); }
.wal-expo__big b { font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.wal-expo__big .mono { color: #fff; }
.wal-expo__strip { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; margin-top: 14px; }
.wal-expo__strip li { aspect-ratio: 1 / 1.35; background: #fff; animation: wal-cellin .6s var(--ease) both; }
.wal-expo__strip li.is-hidden, .wal-expo__kv i.is-hidden { background: repeating-linear-gradient(135deg, var(--v-dk) 0 2px, #2a1460 2px 4px); }
.wal-expo__strip li.is-empty { background: transparent; box-shadow: inset 0 0 0 1px #2e2e2e; animation: none; }
.wal-expo__strip li:first-child:not(.is-empty) { outline: 1.5px solid var(--v-dk); outline-offset: 1.5px; }
@keyframes wal-cellin { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.wal-expo__kv { margin-top: 16px; }
.wal-expo__kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-dk); font-size: 13px; }
.wal-expo__kv dt { display: flex; align-items: center; gap: 8px; color: var(--muted-dk); }
.wal-expo__kv dt i { flex: none; width: 9px; height: 9px; background: #fff; }
.wal-expo__kv dd { text-align: right; font-size: 13px; color: #fff; }
.wal-expo__kv dd small { display: block; font-size: 11px; color: var(--muted-dk); }
.wal-expo__p { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted-dk); }
.wal-expo__go { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto; padding: 12px 0 0; font-weight: 600; font-size: 13.5px; color: #fff; background: none; border: 0; border-bottom: 1px solid transparent; }
.wal-expo__go:hover { color: var(--v-dk); }
@media (prefers-reduced-motion: reduce) { .wal-expo__strip li { animation: none; } }
.wal-mp__path li[data-zero] .wal-hex { color: var(--g4); }
.wal-mp__z { margin-left: 6px; padding: 0 4px; font: 600 9.5px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--g4); }
/* balance deltas on the layer lines sit left of the number, inside the line */
.wal-line__v .wal-delta { right: calc(100% + 12px); bottom: auto; top: 50%; transform: translateY(-50%); }
.wal-js__see { display: none; align-items: center; gap: 4px; flex: none; margin-left: auto; padding: 0 0 0 10px; font: 600 12px/1.2 var(--sans); color: inherit; background: none; border: 0; border-left: 1px solid rgba(255, 255, 255, .3); }
@media (max-width: 1023px) { .wal-js__see { display: inline-flex; } }
@media (max-width: 759px) {
  .wal-js[data-phase="confirmed"] .wal-js__in .wal-js__note.is-in::before, .wal-js[data-phase="confirmed"] .wal-js__out .wal-js__note::after { content: none; }
  .wal-js[data-phase="confirmed"] .wal-js__out .wal-js__note { box-shadow: inset 0 -3px 0 #fff; }
}
.wal-pstats .stat__v .wal-delta { top: calc(100% + 4px); bottom: auto; left: 0; right: auto; align-items: flex-start; }

/* root history, top-left of the tree (below it on phones) */
.wal-tree { position: relative; }
.wal-roots { position: absolute; top: 0; left: 0; width: min(330px, 40%); font-size: 12px; }
.wal-roots__h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wal-roots__h .mono { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 11px; }
.wal-roots li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 26px; border-top: 1px solid var(--line); color: var(--muted); animation: wal-fade .5s var(--ease) both; }
.wal-roots li i { width: 9px; height: 9px; box-shadow: inset 0 0 0 1.5px var(--g4); }
.wal-roots li.is-now { color: #000; }
.wal-roots li.is-now i { background: var(--v); box-shadow: none; }
.wal-roots li .muted { font-size: 11px; }
@media (max-width: 759px) { .wal-roots { position: static; width: auto; margin-bottom: 12px; } }
/* activity: linked-to-you marker, same code as the exposure strip */
.wal-row__st { display: flex; align-items: center; gap: 8px; }
.wal-lk { flex: none; width: 9px; height: 12px; background: #000; }
.wal-lk.is-hidden { background: repeating-linear-gradient(135deg, var(--v) 0 2px, #c9b3ff 2px 4px); }
.wal-expo__kv i.is-linked, .wal-expo__strip li.is-linked { background: #fff; }
.wal-row__b { grid-template-columns: 30px minmax(0, 1.2fr) minmax(0, 1.45fr) minmax(0, 1.25fr) 124px 96px 18px; }
.wal-lklegend { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; }
.wal-lklegend .wal-lk { width: 8px; height: 10px; }
.wal-lklegend .wal-lk + .wal-lk, .wal-lklegend i:nth-of-type(2) { margin-left: 8px; }
@media (max-width: 1279px) { .wal-row__b { grid-template-columns: 30px minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1.2fr) 122px 18px; } }
@media (max-width: 759px) {
  .wal-row__b { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .wal-lklegend { display: flex; margin: 4px 0 0; }
}

/* 1024-1279: the hero shares its row with the exposure panel, so the legend becomes rows and the
   layer headers tighten */
@media (min-width: 760px) and (max-width: 1279px) {
  .wal-herogrid .wal-legend { grid-template-columns: 1fr; gap: 0; }
  .wal-herogrid .wal-legend li { grid-template-columns: 10px minmax(0, 1fr) auto auto; padding: 8px 0; }
  .wal-herogrid .wal-legend li b { grid-column: 3; grid-row: 1; font-size: 15px; }
  .wal-herogrid .wal-legend li > span:last-child { grid-column: 4; min-width: 4.2em; text-align: right; }
  .wal-layer h3 { font-size: 17px; white-space: nowrap; }
  .wal-layer__n { display: none; }
  .wal-layer header { gap: 8px; }
}

/* the tree sizes itself to its column, not the viewport */
.wal-tree { container-type: inline-size; }
@container (max-width: 720px) {
  .wal-roots { position: static; width: auto; margin-bottom: 12px; }
  .wal-roots ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .wal-leaf__t { font-size: 21px; }
  .wal-tree__lab { font-size: 22px; }
  .wal-tree__lab.is-dim { font-size: 19px; }
}
@container (max-width: 440px) {
  .wal-roots ol { grid-template-columns: minmax(0, 1fr); }
  .wal-leaf__t { font-size: 25px; }
  .wal-tree__lab { font-size: 27px; }
  .wal-tree__lab.is-dim { font-size: 24px; }
}

/* ---------- round 3 (U1 fixes) ---------- */
/* the proof pane follows the composer down the page, so "Prove and send" plays in view */
.wal-pp { scroll-margin-top: calc(var(--strip) + 16px); }
@media (min-width: 1024px) {
  .wal-move__side { position: sticky; top: calc(var(--strip) + 16px); align-self: start; }
}
/* other users' new leaves pulse neutral; violet stays for your own notes */
.wal-leaf.is-new[data-state="full"] .wal-leaf__r { animation-name: wal-leafin-n; }
@keyframes wal-leafin-n { 0% { transform: scale(0); stroke: #fff; stroke-width: 8; } 45% { transform: scale(1.22); stroke: #fff; stroke-width: 8; } 100% { transform: scale(1); stroke: #fff; stroke-width: 0; } }
.wal-tree__hot line.is-other { stroke: #000; stroke-width: 3.5; }
.wal-tree__hot line.is-spine.is-other { stroke-width: 3; }
/* 760-1279: six private stats sit 3 + 3 instead of 4 + 2 */
@media (min-width: 760px) and (max-width: 1279px) {
  .wal-pstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* phones: the "names you" marker becomes a bar on the row's left edge, away from the status badge */
@media (max-width: 759px) {
  .wal-row__b { position: relative; }
  .wal-row__st .wal-lk { position: absolute; left: -10px; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .wal-row__st .wal-lk.is-hidden { background: repeating-linear-gradient(180deg, var(--v) 0 4px, transparent 4px 7px); }
  .wal-lklegend .wal-lk { width: 3px; height: 13px; }
  .wal-lklegend .wal-lk.is-hidden { background: repeating-linear-gradient(180deg, var(--v) 0 4px, transparent 4px 6px); }
}
/* 1024-1279: the side pane is narrow, so each stage's bar drops under its label (no truncated subs)
   and the proof bytes set tighter, which keeps the whole proof inside one screen */
@media (min-width: 1024px) and (max-width: 1279px) {
  .wal-stage { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px 10px; }
  .wal-stage__bar { grid-column: 2 / -1; grid-row: 2; }
  .wal-bytes { font-size: 9.5px; line-height: 1.5; letter-spacing: 0; padding: 10px; }
}

/* your notes on phones: stacked rows instead of the table (polish round) */
.wal-nlist { display: none; border-top: 1.5px solid #000; }
.wal-nlist li { border-bottom: 1px solid var(--line); }
.wal-nc { display: grid; gap: 4px; width: 100%; padding: 12px 0 12px; border: 0; background: none; text-align: left; font-size: 13px; color: inherit; }
.wal-nc__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.wal-nc__amt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-stretch: 118%; font-weight: 600; font-size: 18px; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.wal-nc__amt .wal-amt__f { font-size: .78em; color: var(--faint); }
.wal-nc__top .badge { flex: none; }
.wal-nc__meta { font-size: 11.5px; color: var(--muted); }
.wal-nc__meta .muted { font-family: var(--sans); }
.wal-nc__kv { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: baseline; min-width: 0; }
.wal-nc__kv > span:first-child { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wal-nc__kv .wal-hex, .wal-nc__kv .wal-memo { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wal-nc__go { justify-self: start; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-weight: 600; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
@media (hover: hover) {
  .wal-nc:hover { background: rgba(0, 0, 0, .04); }
  .wal-nc:hover .wal-nc__go { color: var(--v); text-decoration-color: currentColor; }
}
.wal-nc:active { background: rgba(0, 0, 0, .06); }
@media (max-width: 759px) {
  .wal-nlist { display: block; }
  .wal-notes .tbl-wrap { display: none; }
}
