[hidden] { display: none !important; }
:root {
  --bg: #000; --text: #fff;
  --sec: rgba(235,235,245,0.6); --ter: rgba(235,235,245,0.3);
  --sep: rgba(84,84,88,0.55); --card: #1c1c1e; --card2: #2c2c2e;
  --green: #00d35a; --red: #ff453a; --orange: #ff9f0a; --cyan: #64d2ff;
  --blue: #0a84ff; --phantom: #ab9ff2; --yellow: #ffd60a; --pink: #ff6b9a;
  --display: -apple-system, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --textf: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --g: 16px;
  --colmax: 480px; --colw: min(100vw, var(--colmax));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--textf);
  font-size: 17px; line-height: 1.3; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
  overscroll-behavior-y: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select { font: inherit; color: inherit; }
.num, .tabular { font-variant-numeric: tabular-nums; }

#screens { min-height: 100vh; }
.screen { padding: calc(var(--sat) + 0px) calc(var(--sar) + var(--g)) calc(var(--sab) + 96px) calc(var(--sal) + var(--g)); }
.screen.pushed { padding-bottom: calc(var(--sab) + 104px); }

/* navbar */
.navbar { position: sticky; top: 0; z-index: 20; margin: 0 calc(-1 * var(--g)); padding: calc(var(--sat) + 6px) var(--g) 6px;
  display: flex; align-items: center; gap: 4px; min-height: 52px;
  background: rgba(0,0,0,0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.navbar .title { flex: 1; font-weight: 600; font-size: 17px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbar .title.left { text-align: left; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 22px; position: relative; flex: none; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avatar { width: 32px; height: 32px; border-radius: 16px; background: var(--card2); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.brand { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 17px; min-height: 44px; padding: 0 6px; }
.brand .chev { color: var(--sec); font-weight: 500; }
.dot-badge { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 5px; background: var(--green); border: 2px solid #000; }
.back { color: var(--blue); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: 17px; }
.back svg { width: 13px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 2.6; margin-right: 4px; }

/* error row */
.err-row { margin: 0 calc(-1 * var(--g)); padding: 8px var(--g); color: var(--red); font-size: 13px; font-weight: 500;
  border-bottom: 0.5px solid var(--sep); background: #000; }
.err-row[hidden] { display: none; }

/* balance */
.hero { padding: 10px 0 6px; }
.bal-row { display: flex; align-items: center; gap: 10px; }
.balance { font-family: var(--display); font-weight: 600; font-size: 66px; letter-spacing: -1.5px; line-height: 1.05; font-variant-numeric: tabular-nums; display: inline-flex; overflow: hidden; }
.paper { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--orange); color: #000; font-size: 13px; font-weight: 700; letter-spacing: 0.2px; flex: none; }
.sub-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 17px; font-weight: 600; }
.up { color: var(--green); } .down { color: var(--red); } .muted { color: var(--sec); } .ter { color: var(--ter); }
.mult { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(0,211,90,0.16); color: var(--green); font-size: 15px; font-weight: 600; }
.mult.neg { background: rgba(255,69,58,0.16); color: var(--red); }

/* odometer */
.odo { display: inline-flex; }
.odo-ch { display: inline-block; position: relative; height: 1.05em; overflow: hidden; }
.odo-col { display: flex; flex-direction: column; transition: transform 600ms ease-out; }
.odo-col span { height: 1.05em; display: block; text-align: center; }
.odo-static { display: inline-block; height: 1.05em; }

/* charts */
.chart-wrap { position: relative; margin: 6px calc(-1 * var(--g)) 0; height: 250px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.ranges { display: flex; justify-content: space-between; margin: 6px 0 18px; }
.ranges button { min-width: 44px; height: 44px; border-radius: 22px; font-size: 14px; font-weight: 600; color: var(--sec); }
.ranges button.on { background: var(--card); color: var(--green); }

/* sections */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; min-height: 44px; }
.sec-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.sec-head h2 .muted { font-weight: 600; }
.link-btn { color: var(--blue); font-size: 17px; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: flex-end; }

/* agent carousel */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--g)); padding: 0 var(--g);
  scroll-padding: 0 var(--g); scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.acard { flex: none; width: calc(var(--colw) - 32px); max-width: 504px; aspect-ratio: 504 / 470; background: var(--card);
  scroll-snap-align: start; padding: 20px; display: flex; flex-direction: column; overflow: hidden; position: relative; text-align: left; }
.acard .ahead { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--sec); }
.sdot { width: 8px; height: 8px; border-radius: 4px; background: var(--green); flex: none; }
.sdot.paused { background: var(--ter); } .sdot.down { background: var(--red); }
.acard .big { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -0.5px; margin: 8px 0 2px; }
.acard .line2 { font-size: 15px; color: var(--sec); }
.acard .body { flex: 1; min-height: 0; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.feed-row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 6px 0; border-bottom: 0.5px solid var(--sep); white-space: nowrap; }
.feed-row:last-child { border-bottom: 0; }
.feed-row .l { overflow: hidden; text-overflow: ellipsis; }
.feed-row.killed .l { color: var(--ter); }
.feed-row.killed .l s { text-decoration: line-through; text-decoration-color: var(--red); }
.src { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--sec); background: var(--card2); border-radius: 5px; padding: 1px 5px; margin-right: 6px; vertical-align: 1px; text-decoration: none; }
.feed-row.killed .r { color: var(--red); font-size: 13px; }
.feed-row.passed .l { color: #fff; } .feed-row.passed .r { color: var(--cyan); }
.strips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 8px; }
.strip { height: 30px; border-radius: 7px; background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--sec); font-weight: 600; }
.strip.ok { background: rgba(0,211,90,0.18); color: var(--green); }
.strip.red { background: rgba(255,69,58,0.2); color: var(--red); }
.strip.reading { background: rgba(100,210,255,0.2); color: var(--cyan); }
.ring-box { display: flex; align-items: center; gap: 16px; }
.ring-box canvas { width: 104px; height: 104px; flex: none; }
.bar { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; margin: 8px 0 6px; }
.bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 4px; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-family: var(--mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pill.red { color: var(--red); background: rgba(255,69,58,0.16); }
.pill.green { color: var(--green); background: rgba(0,211,90,0.16); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-note { color: var(--sec); font-size: 15px; }

/* list rows */
.list { background: var(--card); border-radius: 14px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; position: relative; width: 100%; text-align: left; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--sep); }
.row .ic { width: 36px; height: 36px; border-radius: 18px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.row .mid { flex: 1; min-width: 0; }
.row .t { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { font-size: 13px; color: var(--sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.row .v { font-size: 15px; font-weight: 600; text-align: right; white-space: nowrap; }
.row .v.green { color: var(--green); } .row .v.red { color: var(--red); } .row .v.muted { color: var(--sec); font-weight: 500; }
.row .chev { color: var(--ter); font-size: 20px; }
.empty-block { padding: 28px 16px; text-align: center; color: var(--sec); font-size: 15px; }

/* agents tab */
.big-title { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -0.5px; margin: 6px 0 12px; }
.fcard { background: var(--card); border-radius: 20px; padding: 16px; margin-bottom: 14px; }
.fcard .top { display: flex; align-items: center; gap: 10px; }
.fcard .nm { font-size: 20px; font-weight: 700; flex: 1; }
.fcard .cnt { color: var(--sec); font-size: 15px; margin: 2px 0 10px; }
.switch { width: 51px; height: 31px; border-radius: 16px; background: var(--card2); position: relative; flex: none; transition: background 200ms; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 14px; background: #fff; transition: transform 200ms; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.switch.on { background: var(--green); } .switch.on::after { transform: translateX(20px); }
.switch.locked { opacity: 0.45; }
.sw-btn { min-width: 51px; min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; }
.dec { display: grid; grid-template-columns: 66px 1fr auto; gap: 8px; align-items: baseline; padding: 8px 0; border-top: 0.5px solid var(--sep); font-size: 14px; }
.dec .tm { color: var(--ter); font-size: 13px; white-space: nowrap; }
.dec .cn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dec .cn a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--ter); text-underline-offset: 3px; }
.dec .cn .rs { color: var(--sec); font-weight: 400; margin-left: 6px; }
.dec .vd { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.dec .vd.ok { color: var(--green); } .dec .vd.run { color: var(--cyan); } .dec .vd.no { color: var(--red); }
.fcard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.cmd { font-family: var(--mono); font-size: 13px; color: var(--sec); }

/* auditor screen */
.discs { position: relative; height: 330px; margin: 10px auto 6px; width: 240px; }
.disc { position: absolute; left: 0; right: 0; height: 52px; border-radius: 50%; background: #2c2c2e; border: 1px solid #3a3a3c;
  transition: background 150ms ease-out, border-color 150ms ease-out; display: flex; align-items: center; justify-content: center; }
.disc .lbl { font-size: 13px; font-weight: 600; color: var(--sec); }
.disc.ok { background: #0e3a22; border-color: var(--green); } .disc.ok .lbl { color: var(--green); }
.disc.red { background: #3d1513; border-color: var(--red); } .disc.red .lbl { color: var(--red); }
.disc.nc { background: #161618; border-color: #262628; } .disc.nc .lbl { color: var(--ter); }
.beam { position: absolute; left: -18px; right: -18px; height: 6px; border-radius: 3px; background: var(--cyan); top: 0; opacity: 0;
  transition: top 350ms ease-in-out, opacity 150ms; }
.beam.on { opacity: 1; }
.verdict-big { font-family: var(--display); font-size: 28px; font-weight: 700; margin: 8px 0 2px; }
.verdict-big.red { color: var(--red); } .verdict-big.ok { color: var(--green); }
.vrow { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px; position: relative; }
.vrow + .vrow::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; border-top: 0.5px solid var(--sep); }
.vrow .n { width: 24px; height: 24px; border-radius: 12px; background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; color: var(--sec); }
.vrow .n.ok { background: var(--green); color: #000; } .vrow .n.red { background: var(--red); color: #000; } .vrow .n.reading { background: var(--cyan); color: #000; }
.vrow .k { flex: 1; font-size: 15px; } .vrow .val { font-size: 15px; font-weight: 600; text-align: right; }
.vrow .val.red { color: var(--red); } .vrow .val.nc { color: var(--ter); font-weight: 500; }

/* settings + account */
.group-title { font-size: 13px; color: var(--sec); margin: 22px 16px 8px; }
.srow { padding: 12px 16px; position: relative; }
.srow + .srow::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--sep); }
.srow .sh { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 28px; }
.srow .sk { font-size: 15px; }
.srow .sv { width: 104px; text-align: right; background: var(--card2); border: 0; border-radius: 8px; padding: 6px 8px; font-variant-numeric: tabular-nums; font-size: 15px; min-height: 36px; }
.srow input[type=range] { width: 100%; margin: 10px 0 2px; accent-color: var(--green); height: 28px; }
.srow .cmd { margin-top: 2px; }
.seg { display: inline-flex; background: var(--card2); border-radius: 9px; padding: 2px; }
.seg button { min-height: 40px; min-width: 64px; padding: 0 12px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--sec); }
.seg button.on { background: #636366; color: #fff; }
.seg button.on.paper { background: var(--orange); color: #000; }
.arow { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; position: relative; width: 100%; text-align: left; }
.arow + .arow::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--sep); }
.arow .k { flex: 1; font-size: 16px; } .arow .val { color: var(--sec); font-size: 15px; }
.arow .chev { color: var(--ter); font-size: 20px; }
.note { font-size: 13px; color: var(--sec); padding: 8px 16px 0; }

/* coin screen */
.coin-head { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.coin-head .logo { width: 40px; height: 40px; border-radius: 20px; background: var(--card2); flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.coin-head .logo img { width: 100%; height: 100%; object-fit: cover; }
.coin-head .nm { font-size: 22px; font-weight: 700; }
.coin-head .meta { font-size: 14px; color: var(--sec); }
.shield { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 14px; background: rgba(0,211,90,0.16); color: var(--green); font-size: 13px; font-weight: 700; min-width: 44px; justify-content: center; }
.shield.red { background: rgba(255,69,58,0.16); color: var(--red); } .shield.none { background: var(--card2); color: var(--sec); }
.shield-btn { min-height: 44px; display: inline-flex; align-items: center; margin-left: auto; }
.price-big { font-family: var(--display); font-size: 66px; font-weight: 600; letter-spacing: -1.5px; line-height: 1.05; margin-top: 10px; display: inline-flex; overflow: hidden; }
.price-big.small { font-size: 52px; }
.candle-wrap { height: 280px; margin: 10px calc(-1 * var(--g)) 0; padding: 0 0 0 var(--g); }
.candle-wrap canvas { width: 100%; height: 100%; display: block; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--sep); border-radius: 14px; overflow: hidden; margin-top: 16px; }
.stat { background: var(--card); padding: 12px 16px; }
.stat .k { font-size: 13px; color: var(--sec); } .stat .v { font-size: 18px; font-weight: 600; margin-top: 2px; }
.pcard { background: var(--card); border-radius: 14px; padding: 14px 16px; margin-top: 12px; }
.pcard .h { font-size: 15px; font-weight: 600; }
.pcard .kv { display: flex; justify-content: space-between; font-size: 15px; padding: 7px 0; border-top: 0.5px solid var(--sep); }
.pcard .kv:first-of-type { border-top: 0; }
.pcard .kv .o { color: var(--orange); }

/* bottom CTA */
.cta-bar { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--colmax); bottom: 0; z-index: 30; padding: 10px calc(var(--g) + var(--sar)) calc(var(--sab) + 10px) calc(var(--g) + var(--sal));
  background: rgba(0,0,0,0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.cta { display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 27px; background: var(--green); color: #000; font-size: 17px; font-weight: 700; width: 100%; }
.cta.sell { background: var(--red); color: #000; }
.cta.neutral { background: #fff; color: #000; }

/* tab bar */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--colmax); bottom: 0; z-index: 40; display: flex; justify-content: space-around;
  padding: 4px calc(var(--sar) + 8px) calc(var(--sab) + 4px) calc(var(--sal) + 8px);
  background: rgba(22,22,24,0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--sep); }
.tabbar[hidden] { display: none; }
.tab { flex: 1; min-height: 49px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: rgba(235,235,245,0.45); font-size: 10px; font-weight: 500; }
.tab svg { width: 26px; height: 26px; fill: currentColor; stroke: currentColor; }
.tab.on { color: #fff; }

/* search overlay */
.search-box { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; }
.search-box input { flex: 1; height: 40px; border-radius: 10px; border: 0; background: var(--card); padding: 0 12px; font-size: 17px; outline: none; }

/* loading */
.sk { background: #1c1c1e; border-radius: 12px; animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: 0.5; } to { opacity: 1; } }
.sk-line { height: 16px; margin: 8px 0; border-radius: 8px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--sab) + 92px); transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--card2); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 15px; max-width: calc(var(--colw) - 32px); z-index: 90; transition: opacity 200ms, transform 200ms; text-align: center; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .odo-col, .beam, .disc, .switch, .switch::after, .toast { transition: none !important; }
  .sk { animation: none; opacity: 0.75; }
}

/* connect your desk */
.connect { padding-top: 8px; }
.connect p { font-size: 15px; margin: 0 0 10px; }
.connect textarea { width: 100%; background: var(--card); border: 0; border-radius: 12px; padding: 12px; font-size: 15px; font-family: var(--mono); color: #fff; resize: none; outline: none; margin-top: 6px; }
.cerr { color: var(--red); font-size: 14px; margin-top: 12px; min-height: 20px; }
.ter-note { color: var(--ter) !important; font-size: 13px !important; }

/* Phantom */
.cta.phantom { background: #2c2c2e; color: var(--phantom); height: 48px; }
.cta.phantom-solid { background: var(--phantom); color: #000; }
.screen.two-cta { padding-bottom: calc(var(--sab) + 160px); }
.sheet-back { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: var(--colmax); background: #1c1c1e; border-radius: 16px 16px 0 0; padding: 8px 16px calc(var(--sab) + 16px); max-height: 90vh; overflow-y: auto; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: #48484a; margin: 0 auto 12px; }
.sh-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.sh-card { background: #2c2c2e; margin-top: 0; }
.sh-card .kv { gap: 12px; } .sh-card .kv span:last-child { text-align: right; }

/* wide screens: the app stays a phone-width column, centered */
#app { max-width: var(--colmax); margin: 0 auto; position: relative; min-height: 100vh; background: #000; }
@media (min-width: 520px) {
  html, body { background: #0c0c0e; }
  #app { border-left: 0.5px solid var(--sep); border-right: 0.5px solid var(--sep); }
  .tabbar { border-left: 0.5px solid var(--sep); border-right: 0.5px solid var(--sep); }
}
.sheet-err { color: var(--red); font-size: 14px; margin: 10px 2px 0; }
/* headline = real wallet; desk paper stack is secondary */
.wal-row { margin-top: 2px; }
.hint { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--phantom); cursor: pointer; }
.hint.muted { color: #8e8e93; font-weight: 500; }
.paper-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 600; color: #8e8e93; }
.paper-row .pl { font-weight: 500; }
.paper-row .pv { color: #d1d1d6; font-variant-numeric: tabular-nums; }
.paper-row .paper { height: 20px; font-size: 11px; padding: 0 8px; border-radius: 10px; }
.paper-row .mult { height: 22px; font-size: 13px; padding: 0 8px; border-radius: 11px; }
/* Trading On/Off + Cash out card (Home) */
.ctl-card { background: var(--card); border-radius: 16px; padding: 14px 16px; margin: 12px 0 4px; }
.ctl-row { display: flex; align-items: center; gap: 12px; }
.ctl-txt { flex: 1; min-width: 0; }
.ctl-h { font-size: 17px; font-weight: 600; }
.ctl-h b { margin-left: 4px; }
.ctl-sub { font-size: 13px; color: var(--sec); margin-top: 2px; }
.switch.big { border: 0; cursor: pointer; }
.switch.big:disabled { opacity: 0.6; }
.switch:focus-visible, .cash-btn:focus-visible, .set-btn:focus-visible, .preset:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ctl-btns { display: flex; gap: 10px; margin-top: 12px; }
.cash-btn { flex: 1; height: 44px; border-radius: 22px; background: var(--red); color: #000; font-size: 16px; font-weight: 700; border: 0; }
.cash-btn:disabled { opacity: 0.5; }
.set-btn { height: 44px; padding: 0 18px; border-radius: 22px; background: var(--card2); color: #fff; font-size: 15px; font-weight: 600; border: 0; }
.co-res { margin-top: 10px; font-size: 14px; color: #d1d1d6; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-res.run { color: var(--orange); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta.danger-solid { background: var(--red); color: #000; }
.cta:disabled { opacity: 0.6; }
/* Settings */
.presets { display: grid; gap: 10px; }
.preset { text-align: left; background: var(--card); border-radius: 14px; padding: 12px 14px; border: 2px solid transparent; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.preset b { font-size: 16px; }
.preset span { font-size: 12.5px; color: var(--sec); line-height: 1.35; }
.preset.on { border-color: var(--blue); }
.frow { display: flex; flex-direction: column; padding: 12px 16px; border-bottom: 0.5px solid var(--sep, #38383a); }
.frow:last-child { border-bottom: 0; }
.frow label { display: flex; flex-direction: column; }
.fl { font-size: 16px; font-weight: 600; }
.fh { font-size: 13px; color: var(--sec); margin-top: 2px; line-height: 1.35; }
.fin { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.fin input { width: 130px; height: 40px; border-radius: 10px; background: var(--card2); color: #fff; border: 1px solid transparent; padding: 0 12px; font-size: 17px; font-variant-numeric: tabular-nums; }
.fin input[aria-invalid="true"] { border-color: var(--red); }
.fu { color: var(--sec); font-size: 14px; }
.ferr { color: var(--red); font-size: 13px; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
/* minimum-balance gate */
.gate-why{color:#ff9f0a;font-size:12.5px;line-height:1.35;margin-top:6px}
.cta-bar .gate-why{text-align:center;padding:0 6px}
.cta[disabled],.switch[disabled]{opacity:.45;cursor:not-allowed}
