.app { font-size: 15px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; padding: 36px 0 80px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.side { display: grid; gap: 16px; }
.side h3 { font: 600 16px var(--sans); margin-bottom: 14px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--mute); font-size: 14px; }
.kv b { color: var(--text); font-weight: 500; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 26px; }
.tabs button { flex: 1; height: 40px; border-radius: var(--r); color: var(--mute); font-weight: 500; }
.tabs button.on { background: var(--panel2); color: var(--text); }
.main h2 { font: 600 26px/1.15 var(--sans); letter-spacing: -.03em; margin-bottom: 8px; }
.main p.sub { color: var(--mute); margin-bottom: 22px; }
.field { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; }
.field label { display: flex; justify-content: space-between; color: var(--mute); font-size: 13px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; background: none; border: 0; outline: 0; color: var(--text); font: 500 22px var(--mono); }
.field textarea { font: 400 16px var(--mono); resize: vertical; min-height: 84px; }
.field select { font: 500 16px var(--sans); appearance: none; cursor: pointer; }
.field select option { background: var(--panel); }
.field input.small { font-size: 16px; }
.chips { display: flex; gap: 6px; margin: -2px 0 14px; flex-wrap: wrap; }
.chips button { height: 32px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line); color: var(--mute); font: 500 13px var(--mono); }
.chips button:hover { color: var(--text); border-color: #34343f; }
.lines { border-top: 1px solid var(--line); margin: 6px 0 18px; }
.lines .kv { border-bottom: 1px solid var(--line); padding: 10px 0; }
.go { width: 100%; height: 52px; font-size: 16px; }
.note { color: var(--mute); font-size: 13px; margin-top: 14px; }
.warn { border: 1px solid var(--line2); background: var(--panel2); border-radius: var(--r); padding: 14px 16px; color: var(--text); font-size: 14px; margin-bottom: 16px; }
.words { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.words div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; font: 500 15px var(--mono); }
.words div i { font-style: normal; color: var(--dim); margin-right: 8px; }
.check { display: flex; gap: 10px; align-items: center; color: var(--mute); margin: 8px 0 18px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--acc); }
.row2 { display: flex; gap: 10px; }
.row2 > * { flex: 1; }
.notes .item { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: center; }
.notes .item:first-child { border-top: 0; }
.notes .item b { font: 500 18px var(--mono); }
.notes .item small { color: var(--mute); grid-column: 1; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r); font-size: 12px; font-weight: 500; }
.tag.ready { background: var(--acc); color: var(--acc-ink); } .tag.wait { background: var(--panel2); color: var(--text); border: 1px solid var(--line2); } .tag.done { background: var(--panel2); color: var(--dim); }
.empty { color: var(--mute); text-align: center; padding: 34px 0; width: 100%; }
.feed .e { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--mute); }
.feed .e:first-child { border-top: 0; }
.feed .e b { color: var(--text); font: 500 14px var(--mono); }
.keybox p { color: var(--mute); font-size: 14px; margin-bottom: 12px; }
.keybox .row2 .btn { height: 36px; font-size: 14px; }
.progress { margin-top: 16px; color: var(--mute); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.spin { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--acc); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 18px; font-size: 14px; transition: .2s; z-index: 50; max-width: min(560px, 92vw); pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.toast.bad { border-color: #5a2a2a; color: #ffc9c9; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } .words { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel { border-radius: calc(var(--r) + 6px); }
.tabs { border-radius: calc(var(--r) + 2px); } .tabs button { border-radius: calc(var(--r) - 2px); }
.chips button, .tag { border-radius: 999px; }
.toast { border-radius: var(--r); }
/* no divider lines */
.lines, .lines .kv { border: 0; }
.notes .item, .feed .e { border-top: 0; }

/* split, timing, fresh wallet, privacy meter */
.opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 4px 0 14px; color: var(--mute); font-size: 13px; }
.seg { display: flex; gap: 4px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.seg button { height: 30px; padding: 0 14px; border-radius: 999px; color: var(--mute); font: 500 13px var(--mono); }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--orange); }
.dest label { align-items: center; }
.mini { height: 26px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--orange); color: var(--orange); font: 500 12px var(--mono); }
.mini:hover { background: var(--orange); color: var(--acc-ink); }
.newkey { margin-top: 12px; padding-top: 4px; }
.newkey .kv { padding: 4px 0; font-size: 13px; }
.newkey code { font: 500 13px var(--mono); color: var(--orange); }
.newkey .row2 { margin: 8px 0 6px; } .newkey .row2 .btn { height: 34px; font-size: 13px; }
.newkey p { color: var(--mute); font-size: 12px; }
.meter { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 13px; margin: 2px 0 8px; flex-wrap: wrap; }
.meter b { color: var(--text); font-weight: 500; }
.meter .bar { display: flex; gap: 3px; }
.meter .bar i { width: 9px; height: 14px; border-radius: 3px; background: var(--panel2); border: 1px solid var(--line2); }
.meter .bar i.on { background: var(--orange); border-color: var(--orange); }
.tips { margin: 0 0 14px; padding-left: 18px; color: var(--mute); font-size: 13px; }
.tips li { margin: 3px 0; }
.notes .mrow { grid-column: 1 / -1; }
#queue .kv { font-size: 13px; }
.qnote { color: var(--mute); font-size: 12px; margin: 8px 0 12px; }

/* the pressed button carries the progress; then a clear success state */
.btn.acc:active:not(:disabled) { transform: scale(.985); background: #ff9d5c; }
.btn.acc.go.busy, .btn.acc.go.busy:disabled { background: var(--orange); color: var(--acc-ink); opacity: 1; gap: 12px; }
.btn.go.busy .spin { border-color: rgba(10, 10, 10, .25); border-top-color: var(--acc-ink); }
.btn.line.go.busy { opacity: 1; }
.done { text-align: center; padding: 18px 0 6px; }
.done .tick { width: 56px; height: 56px; border-radius: 16px; background: var(--orange); margin: 0 auto 20px; position: relative; animation: pop .35s var(--ease); }
.done .tick::after { content: ""; position: absolute; left: 20px; top: 13px; width: 12px; height: 22px; border: solid var(--acc-ink); border-width: 0 4px 4px 0; transform: rotate(45deg); }
.done .row2 { max-width: 460px; margin: 0 auto; } .done .row2 .btn { height: 48px; }
.done .txl { display: inline-block; margin-top: 16px; color: var(--mute); font-size: 13px; } .done .txl:hover { color: var(--orange); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* compact withdraw form: split and timing share a row, the new key is one line */
.opts { display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; margin: 2px 0 12px; }
.opts .opt { margin: 0; gap: 10px; }
.newkey { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 0; font-size: 13px; color: var(--mute); flex-wrap: wrap; }
.newkey em { font-style: normal; color: var(--dim); font-size: 12px; margin-left: auto; }
p.tips { padding: 0; margin: 0 0 10px; }
.main .field { padding: 11px 16px; margin-bottom: 10px; }
.main .lines .kv { padding: 6px 0; }
.main .field input { font-size: 20px; } .main .field input.small { font-size: 15px; }
