.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: #2A2A2A; }
.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: #FF5ED4; }
.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; }

/* swap-style layout: one card in the middle, pool facts underneath */
.app { grid-template-columns: minmax(0, 480px); justify-content: center; gap: 22px; padding-top: 44px; }
.app .side { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(1080px, calc(100vw - 32px)); justify-self: center; align-items: start; }
.main { padding: 14px 14px 18px; position: relative; }
.ctop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px 12px; position: relative; }
.ctop .tabs { margin: 0; background: none; border: 0; padding: 0; gap: 2px; }
.ctop .tabs button { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
.ctop .tabs button.on { background: var(--panel2); }
.gear { width: 36px; height: 36px; border-radius: 999px; color: var(--mute); display: grid; place-items: center; }
.gear:hover { color: var(--text); background: var(--panel2); }
.gear[hidden] { display: none; }
.pop { position: absolute; right: 0; top: 44px; z-index: 20; width: 330px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 18px; padding: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); }
.pop[hidden] { display: none; }
.pop .opt { margin: 0 0 12px; }
.pop p { color: var(--mute); font-size: 12px; line-height: 1.5; }
.main h2 { font-size: 22px; margin: 6px 4px 8px; } .main p.sub { margin: 0 4px 18px; }
.box, .main .field { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 14px; margin: 0; }
.main .field { margin-top: 6px; }
.box:focus-within, .main .field:focus-within { border-color: var(--line2); }
.bl { display: flex; justify-content: space-between; gap: 12px; color: var(--mute); font-size: 13px; margin-bottom: 8px; }
.brow { display: flex; align-items: center; gap: 12px; }
.big { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 34px/1.15 var(--mono); letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; }
.big::placeholder { color: var(--dim); }
div.big.wait { color: var(--dim); animation: blink 1s ease-in-out infinite alternate; }
@keyframes blink { to { opacity: .45; } }
.pill { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line2); font: 600 15px var(--sans); color: var(--text); white-space: nowrap; }
.pill img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.pill .hype { width: 28px; height: 28px; border-radius: 50%; background: #FF37C7; box-shadow: inset 0 0 0 7px #311327; }
.pill.sel { position: relative; cursor: pointer; padding-right: 10px; }
.pill.sel select { appearance: none; background: none; border: 0; outline: 0; color: var(--text); font: 600 15px var(--sans); cursor: pointer; padding-right: 2px; }
.pill.sel select option { background: var(--panel); }
.pill.tok { cursor: pointer; padding-right: 10px; } .pill.tok:hover, .pill.sel:hover { border-color: var(--orange); }
.bsub { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; color: var(--mute); font-size: 13px; min-height: 26px; }
.bsub b { color: var(--text); font-weight: 500; }
.bsub .chips { margin: 0; gap: 4px; flex-wrap: nowrap; }
.bsub .chips button { height: 26px; padding: 0 10px; font-size: 12px; }
.flip { width: 40px; height: 40px; margin: -14px auto; position: relative; z-index: 2; display: grid; place-items: center; background: var(--panel2); border: 4px solid var(--panel); border-radius: 14px; color: var(--mute); }
.flip + .box, .flip + #dests .field:first-child, .flip + #sDest .field { margin-top: 0; }
#dests .field + .field { margin-top: 6px; }
.main .opts, .main #payerRow { margin: 14px 4px 0; }
.main .lines { margin: 14px 4px 10px; }
.main .lines .kv { padding: 5px 0; font-size: 13px; }
.main #meter { margin: 0 4px; }
.main .go { margin-top: 12px; height: 56px; border-radius: 18px; font-size: 17px; }
.main .note { margin: 12px 4px 0; font-size: 12px; line-height: 1.5; }
.main .warn { border-radius: 14px; margin-bottom: 10px; }
.main .empty { padding: 48px 12px; }
.main .done { padding: 24px 8px 8px; }
.tlogo { width: 28px; height: 28px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line2); overflow: hidden; flex: none; display: inline-block; }
.tlogo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
/* token picker */
.ov { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .62); display: grid; place-items: center; padding: 16px; }
.mcard { width: min(440px, 100%); max-height: min(640px, calc(100vh - 32px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line2); border-radius: 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); overflow: hidden; }
.mhead { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 10px; font: 600 17px var(--sans); }
.x { width: 34px; height: 34px; border-radius: 999px; color: var(--mute); display: grid; place-items: center; } .x:hover { background: var(--panel2); color: var(--text); }
.msearch { padding: 0 18px; }
.msearch input { width: 100%; height: 46px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); outline: 0; color: var(--text); padding: 0 14px; font: 400 15px var(--sans); }
.msearch input:focus { border-color: var(--orange); }
.mquick { display: flex; gap: 8px; padding: 12px 18px 10px; flex-wrap: wrap; }
.qk { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--line2); font: 600 14px var(--sans); }
.qk .tlogo { width: 26px; height: 26px; } .qk:hover { border-color: var(--orange); }
.mlist { overflow-y: auto; padding: 4px 8px 12px; border-top: 1px solid var(--line); }
.trow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; text-align: left; }
.trow:hover { background: var(--panel2); }
.trow .tlogo { width: 36px; height: 36px; }
.tn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .tn b { font: 600 15px var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tn small { color: var(--mute); font: 400 12px var(--mono); }
.tm { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; } .tm b { font: 500 14px var(--mono); } .tm small { font: 500 12px var(--mono); }
.up { color: #00AF66; } .dn { color: #EF3340; }
@media (max-width: 900px) { .app .side { grid-template-columns: 1fr; width: 100%; } }
@media (max-width: 520px) { .big { font-size: 28px; } .ctop .tabs button { padding: 0 10px; font-size: 13px; } .pop { width: calc(100vw - 48px); } }

.tn small .lp { font-style: normal; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--panel2); color: var(--mute); font: 500 11px var(--sans); }

/* phrase screen: copy button under the words, room above the buttons */
.wcopy { display: flex; align-items: center; gap: 12px; margin: -6px 4px 16px; color: var(--dim); font-size: 12px; }
.main .words { margin: 14px 0 16px; }
.main .check { margin: 4px 4px 16px; }
.main .field + .row2, .main .field + .btn, .main .words + .btn, .main textarea + .row2 { margin-top: 16px; }
.main .row2 { margin-top: 16px; }
.main .row2 .btn { height: 50px; border-radius: 16px; }

/* custom checkbox */
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1.5px solid var(--line2); background: var(--bg); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.check input::after { content: ""; width: 6px; height: 11px; border: solid var(--acc-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px) scale(0); transition: transform .15s var(--ease); }
.check input:checked { background: var(--orange); border-color: var(--orange); }
.check input:checked::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.check input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.check:hover input:not(:checked) { border-color: var(--orange); }
.wcopy .mini { flex: none; white-space: nowrap; height: 30px; padding: 0 14px; }

/* deposit: what the HYPE becomes */
.explain { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 0; padding: 14px 16px; border-radius: 16px; background: rgba(255, 55, 199, .08); border: 1px solid rgba(255, 55, 199, .16); }
.explain img { width: 26px; height: 26px; border-radius: 50%; flex: none; margin-top: 1px; }
.explain p { color: var(--mute); font-size: 13px; line-height: 1.55; margin: 0; }
.explain b { color: var(--text); font-weight: 600; }

/* inputs never take the browser's own look: no autofill colours, no default focus ring */
.main input, .main textarea, .main select, .msearch input { caret-color: var(--orange); }
.main input:-webkit-autofill, .main input:-webkit-autofill:hover, .main input:-webkit-autofill:focus, .main textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--bg) inset; box-shadow: 0 0 0 1000px var(--bg) inset; transition: background-color 9999s ease-out 0s; font: 500 20px var(--mono);
}
.main input[type="password"] { font: 500 20px var(--mono); letter-spacing: .18em; }
.main input[type="password"]::placeholder { letter-spacing: 0; font: 400 16px var(--mono); }
.main input:focus, .main textarea:focus, .main select:focus { outline: none; }
.main .field:focus-within { border-color: var(--orange); }
.main ::placeholder { color: var(--dim); }
.main textarea { scrollbar-width: thin; }
