@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #101010;
  --surface: #19191b;
  --elev: #222224;
  --elev-2: #2c2c2e;
  --line: rgba(255,255,255,0.07);
  --text: #f5f5f5;
  --text-2: #c8c8c8;
  --sub: #8d8d92;
  --muted: #6e6e6e;
  --accent: #7b9cff;
  --green: #54d490;
  --red: #e5646e;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --t17: 17px;
  --t15: 15px;
  --t13: 13px;
  --t11: 11px;
  --w4: 400;
  --w5: 500;
  --w6: 600;
  --pad: 16px;
  --radius: 12px;
  --row: 48px;
  --touch: 44px;
  --tab: 56px;
  --safe: 34px;
  --status: 54px;
  --header: 48px;
  --sheet-r: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 390px;
  height: 844px;
  overflow: hidden;
  background: #000;
  color: var(--text);
  font-family: var(--font);
  font-weight: var(--w4);
  font-feature-settings: "ss01", "cv11", "tnum";
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}
body.overview-body {
  width: auto;
  height: auto;
  overflow: hidden;
  background: var(--bg);
}

.phone {
  width: 100%;
  height: 100%;
  max-width: 390px;
  margin: 0 auto;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ── Status bar ── */
.status-bar {
  height: var(--status);
  flex: 0 0 var(--status);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end;
  padding: 0 24px 8px;
  position: relative;
  z-index: 20;
}
.status-bar .time {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 18px;
}
.island {
  width: 126px;
  height: 36px;
  border-radius: 20px;
  background: #000;
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
}
.sb-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--text);
}

/* ── Header ── */
.nav-header {
  height: var(--header);
  flex: 0 0 var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 16px;
  gap: 8px;
  z-index: 10;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.nav-header h1 {
  font-size: var(--t17);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}
.icon-btn {
  width: var(--touch);
  height: var(--touch);
  display: grid;
  place-items: center;
  color: var(--text);
  background: none;
  border: none;
}
.icon-btn.muted { color: var(--sub); }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(123,156,255,0.18);
  display: inline-block;
  flex: 0 0 8px;
}
.nav-right .live-wrap {
  width: 28px;
  height: var(--touch);
  display: grid;
  place-items: center;
}
.back {
  width: var(--touch);
  height: var(--touch);
  margin-left: -12px;
  display: grid;
  place-items: center;
  color: var(--text);
  flex: 0 0 var(--touch);
}

/* ── Main ── */
.main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.main > * { flex-shrink: 0; }
.scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* ── Tab bar ── */
.tabbar {
  flex: 0 0 auto;
  height: calc(var(--tab) + var(--safe));
  padding: 6px 4px var(--safe);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  background: #141415;
  border-top: 0.5px solid var(--line);
  position: relative;
  z-index: 20;
}
.tab-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  padding-top: 2px;
}
.tab-item .ico { width: 24px; height: 24px; display: block; }
.tab-item .lab {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 12px;
}
.tab-item.on { color: var(--accent); }
.home-ind {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: #f5f5f5;
  opacity: 0.55;
}

/* ── Cards & rows ── */
.sec-lab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 20px 8px;
  font-size: var(--t13);
  font-weight: 500;
  color: var(--sub);
  letter-spacing: -0.01em;
  line-height: 16px;
}
.sec-lab h2 {
  font-size: var(--t13);
  font-weight: 500;
  color: var(--sub);
  letter-spacing: -0.01em;
}
.sec-left { display: flex; align-items: center; gap: 6px; }

.card {
  margin: 0 16px 12px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.card.tight { margin-bottom: 12px; }
.row {
  min-height: var(--row);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.row + .row { box-shadow: inset 0 0.5px 0 var(--line); }
.row.nav { cursor: default; }

/* ── Type, ident, cells ── */
.ident { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.ident .text { min-width: 0; flex: 1; }
.name {
  font-size: var(--t15);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
.name .pair, .pair { color: var(--sub); font-weight: 400; }
.meta {
  margin-top: 1px;
  font-size: var(--t11);
  color: var(--sub);
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cell { flex: 0 0 auto; }
.cell.r { text-align: right; }
.num {
  font-size: var(--t15);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.num2 {
  font-size: var(--t11);
  color: var(--muted);
  line-height: 14px;
  font-variant-numeric: tabular-nums;
}
.pos { color: var(--green); }
.neg { color: var(--red); }
.dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--muted); display: inline-block; flex: 0 0 3px;
}

/* ── Avatars & logos ── */
.av {
  width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: #fff;
  letter-spacing: -0.02em;
}
.pair-logo {
  width: 32px; height: 32px; flex: 0 0 32px;
  position: relative;
}
.tok-img { border-radius: 50%; display: block; object-fit: cover; }
.pair-logo > .tok-img { width: 28px; height: 28px; }
.pair-quote {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1.5px var(--bg);
}
.pair-quote .tok-img { width: 14px; height: 14px; }

/* ── Badges 18×11 ── */
.pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  background: rgba(255,255,255,0.07);
  color: var(--text-2);
  white-space: nowrap;
}
.pill.tier.s { background: rgba(212,175,55,0.16); color: #e6c86a; }
.pill.tier.a { background: rgba(255,255,255,0.08); color: var(--text-2); }
.pill.tier.b { background: rgba(255,255,255,0.05); color: var(--sub); }
.pill.enter, .pill.copied { background: rgba(123,156,255,0.16); color: var(--accent); }
.pill.exit, .pill.oor { background: rgba(255,255,255,0.07); color: var(--text-2); }
.pill.would, .pill.dry { background: rgba(255,255,255,0.07); color: var(--sub); }
.pill.skip { background: rgba(255,255,255,0.05); color: var(--muted); }

/* ── Toggle (iOS-like, accent not green) ── */
.toggle {
  width: 51px;
  height: 31px;
  flex: 0 0 51px;
  border-radius: 16px;
  background: #39393d;
  position: relative;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.toggle.on { background: var(--accent); }
.toggle.on::after { left: auto; right: 2px; }

/* ── Segmented controls ── */
.seg, .seg-mini {
  display: flex;
  background: var(--elev);
  border-radius: 9px;
  padding: 2px;
  height: 32px;
}
.seg { width: 100%; }
.seg-item, .seg-mini span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 7px;
  font-size: var(--t13);
  font-weight: 500;
  color: var(--sub);
  line-height: 1;
  white-space: nowrap;
}
.seg-mini span { flex: 0 0 auto; padding: 0 10px; font-size: var(--t11); }
.seg-item.on, .seg-mini span.on {
  background: var(--elev-2);
  color: var(--text);
  box-shadow: 0 0.5px 1.5px rgba(0,0,0,.35);
}
.seg .ico { display: inline-flex; }

/* ── Chips ── */
.chips, .amt-chips {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chip {
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--sub);
  font-size: var(--t13);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 1;
  border: 0.5px solid rgba(255,255,255,0.12);
}
.chip.active {
  background: var(--elev);
  border-color: transparent;
  color: var(--text);
}
.chip .n { font-size: var(--t11); font-weight: 400; color: var(--muted); }
.amt-chips .chip { height: 28px; font-size: var(--t11); padding: 0 10px; }

/* ── Inputs ── */
.search, .field, .input, .select, .inset, .mini-in {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: 12px;
  color: var(--text);
}
.search, .field {
  margin: 8px 16px 12px;
  height: 40px;
  padding: 0 12px;
  gap: 8px;
  color: var(--muted);
}
.search .q, .field .ph { flex: 1; font-size: var(--t15); color: var(--text); }
.field .go { font-size: var(--t15); font-weight: 600; color: var(--accent); }
.input, .select {
  height: 44px;
  padding: 0 12px;
  gap: 8px;
  width: 100%;
}
.input .amt, .step .amt {
  flex: 1;
  font-size: var(--t15);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.suffix, .unit { font-size: var(--t13); font-weight: 500; color: var(--sub); }
.inset, .mini-in {
  height: 32px;
  min-width: 64px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--elev);
  font-size: var(--t15);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  justify-content: center;
  gap: 3px;
}
.mini-in { min-width: 52px; height: 32px; font-size: var(--t13); }
.mini-in .u { font-size: var(--t11); font-weight: 500; color: var(--sub); }

/* ── Buttons ── */
.btn-cta, .btn.primary {
  height: 50px;
  border: none;
  border-radius: 12px;
  background: #f5f5f5;
  color: #101010;
  font-size: var(--t17);
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.textbtn {
  font-size: var(--t15);
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  line-height: 20px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}
.textbtn.danger { color: var(--red); }
.note {
  padding: 8px 20px 16px;
  font-size: var(--t13);
  color: var(--muted);
  line-height: 18px;
}

/* ── Info tips ── */
.info {
  position: relative;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--sub);
  font-size: 9px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
  line-height: 1;
  font-style: normal;
}
.info .tip {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--elev-2);
  color: var(--text-2);
  font-size: var(--t11);
  font-weight: 400;
  line-height: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  text-align: left;
}
.info .tip.left { left: auto; right: 0; transform: none; }
.info .tip.up { top: auto; bottom: calc(100% + 8px); }
.info:hover .tip, .info.open .tip { display: block; }

/* ── Copy hero ── */
.hero { padding: 16px; }
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hero-title {
  font-size: var(--t17);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 22px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: var(--t13);
  color: var(--sub);
}
.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  box-shadow: inset 0 0.5px 0 var(--line);
}
.hero-metrics .lab {
  font-size: var(--t11);
  color: var(--muted);
  line-height: 14px;
}
.hero-metrics .val {
  margin-top: 2px;
  font-size: var(--t17);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 22px;
}
.hero-shield {
  margin-top: 12px;
  font-size: var(--t11);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 14px;
}

/* ── Quiet secondary lines ── */
.auto-chips {
  margin-top: 2px;
  font-size: var(--t11);
  color: var(--muted);
  line-height: 14px;
  white-space: nowrap;
}
.auto-quiet {
  display: block;
  font-size: var(--t11);
  color: var(--muted);
  line-height: 14px;
  font-weight: 400;
  margin-top: 1px;
}
.alab {
  font-size: var(--t15);
  font-weight: 400;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  line-height: 20px;
  min-width: 0;
  flex: 1;
}
.aright { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.dir {
  display: flex;
  height: 28px;
  padding: 2px;
  border-radius: 7px;
  background: var(--elev);
}
.dir span {
  padding: 0 8px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  font-size: var(--t11);
  font-weight: 500;
  color: var(--sub);
}
.dir span.on { background: var(--elev-2); color: var(--text); }

/* ── List headers inside cards ── */
.lhead {
  display: flex;
  align-items: center;
  padding: 8px 16px 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 14px;
}
.lhead .r { margin-left: auto; text-align: right; }
.lhead span { flex: 0 0 auto; }
.lhead span:first-child { flex: 1; }

/* ── Wallet / copy list grids ── */
.wrow, .frow, .crow, .orow, .hrow, .prow, .ev, .act, .trow {
  min-height: var(--row);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wrow + .wrow, .frow + .frow, .crow + .crow,
.orow + .orow, .hrow + .hrow, .prow + .prow,
.ev + .ev, .act + .act, .trow + .trow {
  box-shadow: inset 0 0.5px 0 var(--line);
}

/* ── Profile ── */
.profile-card { padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 4px 16px 14px;
}
.stat .lab { font-size: var(--t11); color: var(--muted); line-height: 14px; }
.stat .val {
  margin-top: 2px;
  font-size: var(--t17);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}
.stat .hint { font-size: var(--t11); color: var(--muted); line-height: 14px; }
.stats-meta {
  padding: 0 16px 14px;
  font-size: var(--t11);
  color: var(--muted);
  line-height: 14px;
}

/* ── Portfolio chart ── */
.pf-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 8px;
}
.pf-val {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 26px;
}
.pf-chg { margin-top: 2px; font-size: var(--t13); font-weight: 500; line-height: 16px; }
.pf-chg .win { color: var(--sub); font-weight: 400; margin-left: 6px; }
.chart-toggles { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pf-chart { padding: 0 12px 14px; }
.pf-plot { position: relative; }
.pf-svg, .fees-svg, .bin-svg { display: block; width: 100%; height: auto; overflow: visible; }
.fees-lab { margin-top: 8px; font-size: var(--t11); color: var(--muted); line-height: 14px; }
.chart-tip {
  position: absolute;
  z-index: 8;
  width: 132px;
  padding: 8px;
  border-radius: 10px;
  background: var(--elev-2);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  pointer-events: none;
}
.chart-tip .d { font-size: var(--t11); color: var(--muted); margin-bottom: 6px; line-height: 1; }
.chart-tip .tr { display: flex; justify-content: space-between; gap: 8px; font-size: var(--t11); line-height: 16px; }
.chart-tip .tk { color: var(--sub); }
.chart-tip .tv { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.pbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  font-size: var(--t13);
}
.pbar .pn { flex: 0 0 84px; color: var(--sub); }
.pbar .track {
  flex: 1; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}
.pbar .fill { display: block; height: 100%; background: var(--text-2); border-radius: 3px; }
.pbar .pv { flex: 0 0 32px; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ── Feed / radar extras ── */
.insight {
  margin: 8px 16px 0;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: var(--t13);
  color: var(--text-2);
  line-height: 18px;
}
.insight strong { color: var(--text); font-weight: 600; }
.feed-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 8px;
}
.alert {
  margin: 0 16px 12px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.alert-kicker { font-size: var(--t11); color: var(--sub); font-weight: 500; margin-bottom: 4px; }
.alert p { font-size: var(--t13); color: var(--text-2); line-height: 18px; }
.alert .ago { font-size: var(--t11); color: var(--muted); flex: 0 0 auto; }
.ev-title, .act-title {
  font-size: var(--t15);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-title .verb, .act-title .verb { color: var(--sub); font-weight: 400; }
.ev-sub, .act-sub {
  font-size: var(--t11);
  color: var(--sub);
  display: flex; align-items: center; gap: 5px;
  line-height: 14px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
}
.ev-ago, .act-ago {
  font-size: var(--t11);
  color: var(--muted);
  text-align: right;
  flex: 0 0 28px;
}

/* ── Pools ── */
.token-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
}
.th-name { font-size: var(--t17); font-weight: 600; letter-spacing: -0.02em; line-height: 22px; }
.th-stats { font-size: var(--t11); color: var(--sub); margin-top: 2px; display: flex; align-items: center; gap: 5px; }

/* ── More list ── */
.more-row {
  min-height: var(--row);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.more-row + .more-row { box-shadow: inset 0 0.5px 0 var(--line); }
.more-ico {
  width: 28px; height: 28px; flex: 0 0 28px;
  border-radius: 7px;
  background: var(--elev);
  color: var(--text);
  display: grid; place-items: center;
}
.more-lab { flex: 1; font-size: var(--t15); font-weight: 400; }
.more-val { font-size: var(--t13); color: var(--sub); }
.chev { color: var(--muted); display: block; flex: 0 0 14px; }

/* ── Calculator ── */
.calc { padding: 8px 0 12px; display: flex; flex-direction: column; gap: 0; }
.flab {
  font-size: var(--t13);
  font-weight: 400;
  color: var(--sub);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  line-height: 16px;
  padding: 0 2px;
}
.flab .left { display: flex; align-items: center; gap: 6px; }
.block { padding: 12px 16px 4px; }
.out-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.out { padding: 12px 16px; }
.out .lab { font-size: var(--t11); color: var(--muted); display: flex; align-items: center; gap: 4px; line-height: 14px; }
.out .lab em { font-style: normal; color: var(--sub); font-weight: 500; margin-left: 4px; }
.out .val { margin-top: 4px; font-size: var(--t17); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.out .hint { font-size: var(--t11); color: var(--muted); margin-top: 2px; }
.il, .be { padding: 8px 0 4px; }
.il-head, .be-head {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px 6px;
}
.il-head h3, .be-head h3 {
  font-size: var(--t13); font-weight: 500; color: var(--sub);
}
.ilt {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t13);
  font-variant-numeric: tabular-nums;
}
.ilt th {
  text-align: right;
  font-weight: 500;
  color: var(--muted);
  font-size: var(--t11);
  padding: 4px 16px 6px 8px;
}
.ilt th:first-child, .ilt td:first-child { text-align: left; padding-left: 16px; }
.ilt td { padding: 7px 16px 7px 8px; color: var(--text-2); }
.ilt td.dim { color: var(--muted); }
.select-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.select-name { font-size: var(--t15); font-weight: 600; letter-spacing: -0.015em; display: flex; align-items: center; gap: 6px; }
.select-sub { font-size: var(--t11); color: var(--sub); margin-top: 1px; }

/* ── Open position / sheets ── */
.scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 30;
}
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: #161617;
  border-radius: var(--sheet-r) var(--sheet-r) 0 0;
  display: flex;
  flex-direction: column;
  max-height: 780px;
  overflow: hidden;
}
.sheet.tall { height: 780px; max-height: 780px; }
.sheet.mid { max-height: 680px; }
.grab {
  width: 36px; height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.22);
  margin: 8px auto 0;
  flex: 0 0 5px;
}
.sheet-head {
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 16px;
}
.sheet-head h2 {
  font-size: var(--t17);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  overflow-y: auto;
}
.sheet-foot {
  flex: 0 0 auto;
  padding: 10px 16px calc(var(--safe) + 4px);
  background: #161617;
}
.sheet-foot .btn-cta { width: 100%; }
.sign-note {
  text-align: center;
  font-size: var(--t11);
  color: var(--muted);
  padding: 8px 0 0;
  line-height: 14px;
}
.sheet-foot .home-ind { position: absolute; bottom: 8px; }

.op-pool {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 12px;
}
.op-meta { margin-top: 2px; font-size: var(--t11); color: var(--sub); display: flex; align-items: center; gap: 5px; }
.dep-row { display: flex; flex-direction: column; gap: 8px; }
.dep-line { display: flex; align-items: center; gap: 8px; }
.dep-line .input { flex: 1; background: var(--elev); }
.dep-bal { font-size: var(--t11); color: var(--muted); width: 72px; text-align: right; flex: 0 0 72px; }

.legend {
  display: flex; align-items: center; gap: 10px;
  margin: 2px 0 6px;
  font-size: var(--t11); color: var(--sub);
  width: 100%;
}
.legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  margin-right: 4px; vertical-align: 1px;
}
.legend .sol { background: #7b9cff; }
.legend .tok { background: #c8c8c8; }
.legend .bin-meta { margin: 0 0 0 auto; color: var(--muted); }
.price-ends {
  display: flex; justify-content: space-between;
  margin-top: 4px;
  font-size: var(--t11); color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.range-lab { font-size: var(--t11); color: var(--muted); margin-bottom: 6px; line-height: 1; }
.step {
  height: 44px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  background: var(--elev);
}
.step-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--sub);
  flex: 0 0 44px;
}
.step .amt { text-align: center; }
.pct-from {
  margin-top: 4px;
  font-size: var(--t11);
  color: var(--muted);
  text-align: center;
  line-height: 14px;
}
.bin-meta { font-size: var(--t11); color: var(--muted); }

.sum {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 16px 8px;
}
.sum-cell .lab {
  font-size: var(--t11); color: var(--muted);
  display: flex; align-items: center; gap: 4px;
  line-height: 14px; white-space: nowrap;
}
.sum-cell .val {
  margin-top: 4px;
  font-size: var(--t15);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.srow {
  min-height: var(--row);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.srow + .srow { box-shadow: inset 0 0.5px 0 var(--line); }
.slab {
  font-size: var(--t15);
  font-weight: 400;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 20px;
}
.sval {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--t15); font-weight: 500;
  color: var(--text);
}
.sval.muted { font-weight: 400; color: var(--sub); font-size: var(--t13); }
.status-ok { display: flex; align-items: center; gap: 6px; font-size: var(--t15); font-weight: 500; color: var(--text); }
.tier-picks { display: flex; gap: 6px; }
.tier-pick {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: var(--t13); font-weight: 600;
  background: var(--elev);
  color: var(--sub);
}
.tier-pick.on { background: var(--elev-2); color: var(--text); }
.tier-pick.on.s { background: rgba(212,175,55,0.18); color: #e6c86a; }

.panic-link {
  margin: 8px 16px 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t15);
  font-weight: 500;
  color: var(--red);
}

.seg-wrap { padding: 8px 16px 0; }
.bg-screen { pointer-events: none; }

/* ── Overview artboard ── */
.artboard { padding: 40px 40px 36px; background: var(--bg); color: var(--text); font-family: var(--font); }
.ov-head { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; }
.ov-brand { display: flex; align-items: center; gap: 12px; }
.ov-title { font-size: var(--t17); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.ov-sub { margin-top: 6px; font-size: var(--t13); color: var(--sub); }
.ov-meta { text-align: right; font-size: var(--t11); color: var(--muted); line-height: 1.5; }
.ov-grid { display: grid; grid-template-columns: repeat(3, 390px); gap: 28px 24px; align-items: start; }
.frame { display: flex; flex-direction: column; gap: 8px; }
.frame-label { font-size: var(--t11); font-weight: 400; color: var(--sub); display: flex; align-items: center; gap: 8px; }
.frame-label b { color: var(--muted); font-weight: 500; }
.frame img.phone {
  width: 390px;
  height: auto;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  display: block;
}


/* ── Type scale tighten + PnL calendar ── */
.name, .ev-title, .act-title, .more-lab, .alab, .slab, .select-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.01em;
}
.alab, .slab, .more-lab, .ev-title, .act-title { font-weight: 400; }
.num, .sval, .stat .val, .out .val, .sum-cell .val, .hero-title, .inset, .input .amt, .step .amt {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.02em;
}
.hero-metrics .val, .pf-val, .cal-hero {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 26px;
}
.sec-lab, .sec-lab h2, .il-head h3, .be-head h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  letter-spacing: -0.01em;
}
.pill {
  height: 16px;
  line-height: 16px;
  font-size: 10px;
  padding: 0 4px;
  border-radius: 4px;
}
.tab-item .lab { font-size: 10px; }
.btn-cta, .btn.primary { font-size: 15px; height: 48px; font-weight: 600; }
.row, .wrow, .frow, .crow, .orow, .hrow, .prow, .ev, .act, .trow, .srow, .more-row {
  min-height: 48px;
  padding: 6px 16px;
}
.av { width: 28px; height: 28px; flex-basis: 28px; flex: 0 0 28px; font-size: 10px; }
.pair-logo { width: 28px; height: 28px; flex: 0 0 28px; }
.pair-logo > .tok-img { width: 26px; height: 26px; }
.pair-quote { width: 14px; height: 14px; }
.pair-quote .tok-img { width: 12px; height: 12px; }

/* PnL calendar */
.cal-wrap { padding: 12px 12px 14px; }
.cal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.cal-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.cal-nav .icon-btn { width: 44px; height: 44px; color: var(--text); }
.cal-month {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 20px;
  min-width: 120px;
  text-align: center;
}
.cal-sum { text-align: right; }
.cal-hero.pos { color: var(--green); }
.cal-hero.neg { color: var(--red); }
.cal-wdl { margin-top: 2px; font-size: 11px; color: var(--muted); line-height: 14px; }
.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 8px 0 4px;
}
.cal-dow span {
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  line-height: 14px;
  padding: 2px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.cal-cell {
  min-height: 44px;
  border-radius: 8px;
  padding: 4px 1px 3px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.cal-cell .d {
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  color: var(--text-2);
}
.cal-cell .v {
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.cal-cell.mute .d, .cal-cell.mute .v { color: var(--muted); }
.cal-cell.out .d, .cal-cell.out .v { color: #4a4a4c; }
.cal-cell.win .v { color: var(--green); }
.cal-cell.loss .v { color: var(--red); }
.cal-cell.today {
  box-shadow: inset 0 0 0 1px var(--text);
}
.cal-cell.on {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.cal-cell.empty .v { visibility: hidden; }

.sheet.day { max-height: 380px; }
.day-total {
  padding: 0 16px 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.day-total .lab { font-size: 11px; color: var(--muted); }
.day-total .val { font-size: 15px; font-weight: 600; }

/* compact calendar + density */
.cal-wrap.compact { padding: 8px 8px 10px; }
.cal-wrap.compact .cal-top { margin-bottom: 4px; }
.cal-wrap.compact .cal-hero { font-size: 15px; line-height: 20px; }
.cal-wrap.compact .cal-cell { min-height: 34px; padding: 2px 1px; }
.cal-wrap.compact .cal-dow { margin: 4px 0 2px; }
.pf-svg { max-height: 120px; }
.sheet .bin-svg { max-height: 100px; }
.card { margin: 0 16px 8px; }
.sec-lab { padding: 12px 20px 6px; }
.field, .search { margin: 0 16px 8px; }
.hero { padding: 12px 16px; }
.hero-metrics { margin-top: 12px; padding-top: 10px; }
.stats { padding: 0 16px 10px; }
.stats-meta { padding: 0 16px 10px; }
.profile-card { padding: 10px 16px; }
.pf-head { padding: 10px 16px 6px; }
.pf-chart { padding: 0 12px 8px; }
