/* Auralis Wallet. Colors live in tokens so light, dim and dark share every rule. */
:root {
  --bg: #eef4f2;
  --surface: #ffffff;
  --surface2: #f4f8f7;
  --line: #d9e5e2;
  --text: #0d2421;
  --muted: #587470;
  --brand: #0f9d8a;
  --brand-ink: #0b7f70;
  --on-brand: #ffffff;
  --hero: #0b3b36;
  --hero-text: #ffffff;
  --hero-muted: #a9d6ce;
  --hero-line: rgba(255, 255, 255, 0.16);
  --danger: #c0392b;
  --danger-bg: #fcecea;
  --warn: #7a4a00;
  --warn-bg: #fff3dc;
  --ok: #0b7a6b;
  --ok-bg: #e2f4f0;
  --shadow: 0 1px 2px rgba(13, 36, 33, 0.06), 0 8px 24px rgba(13, 36, 33, 0.08);
  --verified: #1fa85a;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0a1413;
    --surface: #102120;
    --surface2: #0d1b1a;
    --line: #1f3733;
    --text: #e5f1ee;
    --muted: #8ca8a3;
    --brand: #25c9ae;
    --brand-ink: #4edcc4;
    --on-brand: #042320;
    --hero: #13403a;
    --hero-text: #ffffff;
    --hero-muted: #9ad3c9;
    --hero-line: rgba(255, 255, 255, 0.14);
    --danger: #ff8a7e;
    --danger-bg: #3a1c19;
    --warn: #f0c070;
    --warn-bg: #352a12;
    --ok: #4edcc4;
    --ok-bg: #103029;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --verified: #3ddc84;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a1413;
  --surface: #102120;
  --surface2: #0d1b1a;
  --line: #1f3733;
  --text: #e5f1ee;
  --muted: #8ca8a3;
  --brand: #25c9ae;
  --brand-ink: #4edcc4;
  --on-brand: #042320;
  --hero: #13403a;
  --hero-text: #ffffff;
  --hero-muted: #9ad3c9;
  --hero-line: rgba(255, 255, 255, 0.14);
  --danger: #ff8a7e;
  --danger-bg: #3a1c19;
  --warn: #f0c070;
  --warn-bg: #352a12;
  --ok: #4edcc4;
  --ok-bg: #103029;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --verified: #3ddc84;
    color-scheme: dark;
}

/* Dim: a softer, lighter dark. */
:root[data-theme="dim"] {
  --bg: #1b2a29;
  --surface: #243635;
  --surface2: #203130;
  --line: #37524f;
  --text: #e4efed;
  --muted: #9db6b1;
  --brand: #25c9ae;
  --brand-ink: #5be0ca;
  --on-brand: #042320;
  --hero: #17504a;
  --hero-text: #ffffff;
  --hero-muted: #a8d9d0;
  --hero-line: rgba(255, 255, 255, 0.16);
  --danger: #ff9a90;
  --danger-bg: #4a2420;
  --warn: #f2c879;
  --warn-bg: #4a3a18;
  --ok: #5be0ca;
  --ok-bg: #1e4a43;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.28);
  --verified: #3ddc84;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); }

body {
  width: 380px;
  height: 600px;
  overflow: hidden;
  color: var(--text);
  font: 400 14px/1.45 "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Opened as a full tab (first-time setup): center the same 380x600 frame */
body.tab {
  width: auto;
  min-height: 100vh;
  height: auto;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
body.tab #app {
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

#app { width: 380px; height: 600px; display: flex; flex-direction: column; background: var(--bg); }

/* Side panel: use the whole panel, keep content readable when it is dragged wider */
body.panel { width: 100%; height: 100vh; min-width: 320px; }
body.panel #app { width: 100%; height: 100vh; }
body.panel .hdr { padding-inline: max(14px, calc((100% - 540px) / 2)); }
body.panel .scroll { padding-inline: max(16px, calc((100% - 540px) / 2)); }
body.panel .sheet { max-width: 540px; margin: 0 auto; }

button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ico { flex: none; display: block; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.hdr { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; min-height: 56px; }
.hdr .brand { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 16px; letter-spacing: -0.01em; }
.hdr .title { font-weight: 650; font-size: 16px; flex: 1; text-align: center; }
.hdr .grow { flex: 1; }
.net-badge { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; background: var(--surface); }
.iconbtn {
  width: 36px; height: 36px; display: grid; place-items: center; flex: none;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted);
}
.iconbtn:hover { background: var(--surface); color: var(--text); }

.scroll { flex: 1; overflow-y: auto; padding: 4px 16px 16px; }
.scroll.center { display: flex; flex-direction: column; justify-content: center; }

/* ---------- buttons and fields ---------- */
.btn {
  width: 100%; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 12px;
  background: var(--brand); color: var(--on-brand); font-weight: 600; transition: filter 0.12s;
}
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.secondary:hover { background: var(--surface2); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand-ink); min-height: 36px; }
.stack > * + * { margin-top: 10px; }

.field { margin-top: 14px; }
.field label, .label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input-wrap { position: relative; }
.input, textarea.input, select.input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text); font: inherit;
}
.input::placeholder { color: var(--muted); opacity: 0.8; }
.input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
textarea.input { resize: none; min-height: 92px; line-height: 1.5; }
textarea.input.addr-input { min-height: 68px; word-break: break-all; }
.input.mono, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.input.has-btn { padding-right: 46px; }
.input-wrap .eye, .input-wrap .max {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--muted); border-radius: 8px; padding: 6px;
}
textarea.input.has-btn { padding-right: 50px; }
.input-wrap .paste {
  position: absolute; right: 8px; top: 8px; display: grid; place-items: center;
  border: 0; border-radius: 9px; padding: 8px; background: var(--ok-bg); color: var(--brand-ink);
}
.input-wrap .paste:hover { filter: brightness(0.96); }
.input-wrap .max { font-size: 12px; font-weight: 700; color: var(--brand-ink); padding: 6px 10px; background: var(--ok-bg); }
.help { margin-top: 6px; font-size: 12.5px; color: var(--muted); min-height: 18px; }
.help.ok { color: var(--ok); }
.help.bad, .err { color: var(--danger); }
.help.warn { color: var(--warn); }
.err { font-size: 13px; min-height: 20px; margin-top: 10px; }

.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }

.strength { display: flex; gap: 4px; margin-top: 8px; }
.strength i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.strength.s1 i:nth-child(-n + 1) { background: var(--danger); }
.strength.s2 i:nth-child(-n + 2) { background: var(--warn); }
.strength.s3 i:nth-child(-n + 3) { background: var(--brand); }
.strength.s4 i:nth-child(-n + 4) { background: var(--brand); }

.note { display: flex; gap: 10px; padding: 12px; border-radius: 12px; font-size: 13px; background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }
.note.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.note.bad { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.note.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.note .ico { margin-top: 1px; }

.seg { display: flex; padding: 3px; gap: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px 10px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }

/* ---------- welcome / unlock ---------- */
.hero-logo { display: grid; place-items: center; margin: 8px 0 18px; }
.h1 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; text-align: center; }
.lead { color: var(--muted); text-align: center; margin: 0 0 24px; }
.steps { display: flex; gap: 6px; justify-content: center; margin: 0 0 14px; }
.steps i { width: 28px; height: 4px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--brand); }
.link { background: none; border: 0; color: var(--brand-ink); padding: 6px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.center-text { text-align: center; }
.lead.left { text-align: left; margin-bottom: 6px; }
.mt { margin-top: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- home ---------- */
.hero {
  background: var(--hero); color: var(--hero-text); border-radius: 20px; padding: 14px 16px 16px;
  box-shadow: var(--shadow);
}
.acct-pill {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  border: 1px solid var(--hero-line); background: transparent; color: var(--hero-text);
  border-radius: 99px; padding: 5px 10px 5px 12px; font-size: 13px; font-weight: 600;
}
.acct-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bal { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 2px; flex-wrap: wrap; }
.bal-amt { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; word-break: break-all; }
.bal-sym { font-size: 15px; color: var(--hero-muted); font-weight: 600; }
.skeleton { display: inline-block; width: 150px; height: 34px; border-radius: 8px; background: var(--hero-line); }
.pend { font-size: 12.5px; color: #f5d9a6; min-height: 18px; }
.addr-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 0;
  border: 0; background: none; color: var(--hero-muted); font-size: 12.5px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.addr-chip:hover { color: var(--hero-text); }
.acts { display: flex; gap: 10px; margin-top: 14px; }
.act { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: var(--hero-text); font-size: 12.5px; font-weight: 600; padding: 0; }
.act i { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
.act:hover i { filter: brightness(1.08); }
.act.glow i { box-shadow: 0 0 0 4px rgba(37, 201, 174, 0.35); }

h2.sec { font-size: 15px; font-weight: 650; margin: 20px 2px 8px; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.row:first-child { border-top: 0; }
button.row:hover { background: var(--surface2); }
.row .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); flex: none; }
.row .ic.out { background: var(--surface2); color: var(--muted); }
.row .mid { flex: 1; min-width: 0; }
.row .mid .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: 12px; color: var(--muted); }
.row .sub.pending { color: var(--warn); }
.row .amt { text-align: right; font-weight: 650; flex: none; white-space: nowrap; }
.row .mid .sub { overflow-wrap: anywhere; }
.row .amt.in { color: var(--ok); }
.row .amt .sub { font-weight: 400; }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); }

.status { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--muted); padding: 0 2px; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.status.ok .led { background: var(--brand); }
.status.bad .led { background: var(--danger); }
.status button { margin-left: auto; }

/* ---------- send / review / receive ---------- */
.sum { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.sum .line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.sum .line:first-child { border-top: 0; }
.sum .line span:first-child { color: var(--muted); }
.sum .line.total { font-weight: 700; }
.big-amt { text-align: center; margin: 8px 0 4px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.big-amt small { font-size: 15px; color: var(--muted); font-weight: 600; }
.addr-block { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; word-break: break-word; line-height: 1.6; }
.qr { display: grid; place-items: center; margin: 12px 0 16px; }
.qr svg { border-radius: 14px; box-shadow: var(--shadow); }
.success { display: grid; place-items: center; margin: 14px 0 6px; }
.success .badge { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.success .badge.wait { background: var(--warn-bg); color: var(--warn); }

/* ---------- recovery phrase ---------- */
.words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; position: relative; }
.word { display: flex; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.word b { color: var(--muted); font-weight: 500; min-width: 16px; }
.words.hidden .word span { filter: blur(7px); user-select: none; }
.reveal-cover { position: absolute; inset: 0; display: grid; place-items: center; }
.reveal-cover button { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; font-weight: 600; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; }
.quiz { display: grid; gap: 10px; margin-top: 10px; }

/* ---------- activity detail ---------- */
.detail-top { display: flex; align-items: center; gap: 14px; margin: 6px 2px 16px; }
.ic-big { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); flex: none; }
.ic-big.out { background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }
.detail-amt { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; word-break: break-all; }
.detail-amt small { font-size: 14px; color: var(--muted); font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 650; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.wait { background: var(--warn-bg); color: var(--warn); }
.copyable { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--text); cursor: pointer; text-align: right; }
.copyable:hover { color: var(--brand-ink); }
.muted { color: var(--muted); }
.sum .line > span:last-child { text-align: right; word-break: break-all; min-width: 0; }

/* ---------- settings ---------- */
.group { margin-top: 18px; }
.group h3 { font-size: 12.5px; font-weight: 650; color: var(--muted); margin: 0 2px 8px; }
.opt { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.opt:first-child { border-top: 0; }
button.opt:hover { background: var(--surface2); }
.opt .l { display: flex; gap: 12px; align-items: center; min-width: 0; }
.opt .l .ico { color: var(--muted); }
.opt .r { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.opt.dangerous .l, .opt.dangerous .l .ico { color: var(--danger); }
select.slim { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 10px; padding: 6px 8px; font: inherit; }
.node { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.node:first-child { border-top: 0; }
.node .u { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

/* ---------- sheet and toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5, 18, 16, 0.55); display: flex; align-items: flex-end; z-index: 20; }
body.tab .scrim { align-items: center; justify-content: center; }
.sheet { width: 100%; max-height: 80%; overflow-y: auto; background: var(--bg); border-radius: 20px 20px 0 0; padding: 18px 16px 16px; box-shadow: var(--shadow); }
body.tab .sheet { width: 380px; height: auto; border-radius: 20px; }
.sheet h3 { margin: 0 0 12px; font-size: 17px; }
.acct-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.acct-row:first-child { border-top: 0; }
.acct-row:hover { background: var(--surface2); }
.acct-row .av { width: 34px; height: 34px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-weight: 700; flex: none; }
.acct-row .mid { flex: 1; min-width: 0; }
.acct-row .t { font-weight: 600; }
.acct-row .sub { font-size: 12px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.acct-row .tick { color: var(--brand-ink); }

#toast {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 12px); z-index: 40;
  background: var(--text); color: var(--bg); padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s; max-width: 90%; text-align: center;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  #toast, .btn { transition: none; }
}

/* ---------- tokens ---------- */
.usd-line { font-size: 15px; font-weight: 600; color: var(--hero-muted); margin-bottom: 4px; }
.tabs { margin-top: 18px; }
.tlogo { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.tlogo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tlogo.native { background: var(--hero); color: #fff; }
.vbadge { flex: none; vertical-align: -3px; margin-left: 5px; }
.row .mid .t { display: flex; align-items: center; }
.row .sub.up, .chip.up { color: var(--verified); font-weight: 600; }
.tk-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 8px 0 2px; }
.tk-name { display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin-top: 6px; }
.tk-name .vbadge { margin-left: 6px; }
.tk-price { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip { font-size: 14px; letter-spacing: 0; }
.vtag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--verified); background: var(--ok-bg); border-radius: 99px; padding: 3px 12px 3px 8px; }
.vtag .vbadge { margin: 0; }
.vtag.no { color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 3px 12px; }
.acts.two { margin-top: 16px; }
.acts.two .act { color: var(--text); }
.about { margin: 0 2px; color: var(--text); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.copyable.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.tlogo.s40 { width: 40px; height: 40px; font-size: 17px; }
.tlogo.s64 { width: 64px; height: 64px; font-size: 27px; }
.tabs { margin-bottom: 10px; }
.bal-amt.long { font-size: 26px; }
.bal-cap { font-size: 13px; color: var(--hero-muted); font-weight: 600; margin-top: 14px; }
.bal-cap + .bal { margin-top: 2px; }
.unv { margin-left: 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--surface2); border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; line-height: 18px; }

/* ---- bottom menu bar, swap, pools, requests ---- */
.tabbar { display: flex; flex: none; border-top: 1px solid var(--line); background: var(--surface); padding: 4px 4px 6px; }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 600; background: none; border: 0; cursor: pointer; }
.tabbar button:hover { color: var(--text); }
.tabbar button.on { color: var(--brand-ink); }
.tabbar button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.tabic { position: relative; display: grid; place-items: center; height: 24px; }
.reqdot { position: absolute; top: 0; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }
.hdr .title.left { text-align: left; padding-left: 4px; }
.reqbanner { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 12px; margin-bottom: 10px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); border: 0; cursor: pointer; font-size: 13px; }
.reqbanner > span { flex: 1; }
.reqbanner .sub { color: inherit; opacity: 0.85; font-size: 12px; }

.swapbox { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-top: 8px; }
.swapbox .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.swaprow { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.amtin { flex: 1; min-width: 0; width: 100%; border: 0; background: none; color: var(--text); font-size: 26px; font-weight: 600; padding: 4px 0; outline: 0; font-family: inherit; }
.amtin::placeholder { color: var(--muted); opacity: 0.6; }
.amtout { flex: 1; min-width: 0; font-size: 26px; font-weight: 600; padding: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coinpill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); font-size: 15px; cursor: pointer; flex: none; }
.coinpill:hover { border-color: var(--brand); }
.swapsub { display: flex; justify-content: space-between; align-items: center; min-height: 20px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.linkbtn { background: none; border: 0; color: var(--brand-ink); font-size: 12px; font-weight: 600; cursor: pointer; padding: 2px 0; }
.flipwrap { display: flex; justify-content: center; height: 0; position: relative; z-index: 2; }
.flipbtn { position: relative; top: -2px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); color: var(--text); border: 4px solid var(--bg); outline: 1px solid var(--line); cursor: pointer; padding: 0; }
.swapinfo { margin-top: 10px; }
.help.center { text-align: center; }

.poolhead { display: flex; align-items: center; gap: 12px; padding: 4px 0 8px; }
.poolhead .t { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 5px; }
.pricebig { font-size: 30px; font-weight: 700; margin-top: 4px; }
.pricebig span { font-size: 15px; color: var(--muted); font-weight: 600; }
.chart { width: 100%; height: 100px; display: block; margin-top: 10px; }
.chart .line { stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .area { fill: var(--brand); opacity: 0.12; }
.chartlbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.lockchip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--surface2); color: var(--muted); }
.lockchip.ok { background: var(--ok-bg); color: var(--ok); }
.lockchip.warn { background: var(--warn-bg); color: var(--warn); }
.up { color: var(--ok); font-weight: 600; }
.down { color: var(--danger); font-weight: 600; }

.osteps { list-style: none; margin: 14px 0; padding: 0; }
.osteps li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; color: var(--muted); }
.osteps li.on { color: var(--text); }
.osteps li.done { color: var(--ok); }
.osteps li.bad { color: var(--danger); }
.osteps .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid currentColor; font-size: 12px; font-weight: 700; flex: none; }
.osteps .sub { font-size: 12px; font-weight: 400; color: var(--muted); }

.reqcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.reqh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.reqh .sub { margin-left: auto; font-size: 12px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.wrapany { word-break: break-all; text-align: right; }
label.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 4px; font-size: 12.5px; color: var(--muted); }
label.check input { margin-top: 2px; flex: none; }
