:root {
  --ink: #101318; --muted: #5b6270; --line: #e3e5ea; --field: #c9ccd4; --card: #f3f4f7;
  --accent: #2f45d8; --accent-ink: #2236b8; --accent-bg: #eef0fd;
  --up: #0a7a3d; --down: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Inter, system-ui, -apple-system, sans-serif; }
a { color: inherit; text-decoration: none; }
.page { max-width: 560px; margin: 0 auto; padding: 20px 20px 32px; display: flex; flex-direction: column; gap: 22px; min-height: 100vh; }
h1, .big { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -0.02em; }
h1 { margin: 0; font-size: 26px; font-weight: 600; }
h2 { margin: 0; font-size: 17px; font-weight: 600; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.titlebar { display: flex; align-items: center; gap: 8px; }
.titlebar h1 { font-size: 24px; }
.back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin-left: -12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent-bg); color: var(--accent-ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pill.live { background: #fff4e5; color: #8a4b00; } .pill.live .dot { background: #d97706; }
.pill.stopped { background: #fdecea; color: var(--down); } .pill.stopped .dot { background: var(--down); }
.total { display: flex; flex-direction: column; gap: 4px; }
.total .label { font-size: 14px; color: var(--muted); }
.big { font-size: 48px; font-weight: 600; line-height: 1.05; }
.big.small { font-size: 44px; }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--muted); }
.delta { font-size: 15px; font-weight: 500; }
.list { display: flex; flex-direction: column; gap: 10px; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; }
.list-head span { font-size: 13px; color: var(--muted); }
.copy { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--card); }
.coin { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: none; }
.coin.paused { background: #fff; border: 1.5px solid var(--ink); color: var(--ink); }
.copy .mid { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.copy .name { font-weight: 600; font-size: 16px; }
.copy .sub { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy .right { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.copy .right b { font-size: 16px; }
.copy .right span { font-size: 14px; }
.tag { font-size: 12px; font-weight: 500; color: var(--muted); padding: 2px 8px; border-radius: 999px; background: var(--line); margin-left: 4px; }
.empty { padding: 20px; border-radius: 14px; background: var(--card); color: var(--muted); font-size: 15px; line-height: 1.45; }
.actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; border-radius: 14px; border: 0; background: var(--accent); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn.outline { height: 50px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); font-size: 15px; }
.btn.danger { height: 48px; background: #fff; color: var(--down); border: 1.5px solid var(--down); font-size: 15px; }
.btn.text-danger { height: 50px; background: #fff; color: var(--down); font-size: 15px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid2 .span2 { grid-column: span 2; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--card); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 13px; color: var(--muted); } .stat b { font-size: 17px; }
.feed { display: flex; flex-direction: column; }
.feed .row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feed .row:last-child { border-bottom: 0; }
.feed .t { font-size: 13px; color: var(--muted); width: 84px; flex: none; }
.feed .m { font-size: 15px; line-height: 1.4; flex: 1; }
.feed .m.order { color: var(--accent-ink); font-weight: 500; }
.feed .m.skip { color: var(--muted); }
.feed .m.risk, .feed .m.error { color: var(--down); }
.section { display: flex; flex-direction: column; gap: 10px; }
.section h2 { font-size: 15px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.coinbtn { height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; border: 1.5px solid var(--field); cursor: pointer; }
.choice input:checked + .coinbtn { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + .coinbtn, .choice input:focus-visible + .trader { outline: 2px solid var(--accent); outline-offset: 2px; }
.trader { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 2px solid var(--card); cursor: pointer; }
.trader .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #8a909c; background: #fff; flex: none; }
.choice input:checked + .trader { background: var(--accent-bg); border-color: var(--accent); }
.choice input:checked + .trader .radio { border: 6px solid var(--accent); }
.trader .who { display: flex; flex-direction: column; flex: 1; }
.trader .who b { font-size: 16px; } .trader .who span { font-size: 13px; color: var(--muted); word-break: break-all; }
.field { display: flex; align-items: center; height: 52px; border: 1.5px solid var(--field); border-radius: 12px; padding: 0 14px; background: #fff; }
.field input { flex: 1; border: 0; outline: none; font: inherit; font-size: 18px; font-weight: 600; color: var(--ink); background: transparent; min-width: 0; }
.field.plain input { font-size: 16px; font-weight: 400; }
.field:focus-within { border-color: var(--accent); }
label { font-size: 15px; font-weight: 600; }
.hint { margin: 0; font-size: 13px; color: var(--accent-ink); background: var(--accent-bg); padding: 10px 12px; border-radius: 10px; line-height: 1.4; }
.flash { margin: 0; font-size: 14px; padding: 10px 12px; border-radius: 10px; background: #e8f5ee; color: var(--up); }
.flash.err { background: #fdecea; color: var(--down); }
details { background: var(--card); border-radius: 14px; padding: 12px 14px; }
details summary { cursor: pointer; font-weight: 600; min-height: 28px; }
details form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 1.4; }
.check input { width: 22px; height: 22px; flex: none; }
.nav { display: flex; gap: 16px; font-size: 14px; color: var(--muted); justify-content: center; }
.nav a { text-decoration: underline; padding: 8px 4px; }
table.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.kv td { padding: 8px 0; border-bottom: 1px solid var(--line); }
table.kv td:last-child { text-align: right; }
