/* GROMO: black iOS. No framework, no build. */
:root {
  --bg: #000;
  --text: #fff;
  --text2: rgba(235, 235, 245, 0.6);
  --text3: rgba(235, 235, 245, 0.3);
  --sep: rgba(84, 84, 88, 0.55);
  --card: #1c1c1e;
  --card2: #2c2c2e;
  --card3: #3a3a3c;
  --green: #00d35a;
  --red: #ff453a;
  --orange: #ff9f0a;
  --cyan: #64d2ff;
  --blue: #0a84ff;
  --yellow: #ffd60a;
  --pink: #ff6b9a;
  --lime: #cdff00;
  --g: 16px;
  --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);
  --tabh: 50px;
  --display: -apple-system-headline, -apple-system, "SF Pro Display", BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --textf: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body {
  font-family: var(--textf);
  font-size: 17px;
  line-height: 1.29;
  letter-spacing: -0.41px;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
input { font: inherit; color: inherit; letter-spacing: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

#app { position: fixed; inset: 0; overflow: hidden; }
#pages { position: absolute; inset: 0; }

/* ---------- pages + push transitions ---------- */
.page {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  padding-bottom: calc(var(--tabh) + var(--sab) + 28px);
}
.page.pushed { padding-bottom: calc(var(--sab) + 150px); }
.section-sub { padding: 0 calc(var(--g) + var(--sal)) 12px; margin-top: -6px; color: var(--text2); font-size: 15px; }
.page.enter-push { animation: pushIn 420ms var(--ease) both; z-index: 3; box-shadow: -12px 0 30px rgba(0,0,0,.5); }
.page.leave-push { animation: pushUnder 420ms var(--ease) both; z-index: 1; }
.page.enter-pop { animation: popUnder 420ms var(--ease) both; z-index: 1; }
.page.leave-pop { animation: popOut 420ms var(--ease) both; z-index: 3; }
.page.enter-fade { animation: fadeIn 180ms ease-out both; }
@keyframes pushIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pushUnder { from { transform: none; } to { transform: translateX(-30%); opacity: .6; } }
@keyframes popUnder { from { transform: translateX(-30%); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes popOut { from { transform: none; } to { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  padding: calc(var(--sat) + 6px) calc(var(--g) + var(--sar)) 8px calc(var(--g) + var(--sal));
  display: flex; align-items: center; gap: 10px;
  min-height: calc(var(--sat) + 52px);
  background: rgba(0,0,0,0);
  transition: background-color 200ms, border-color 200ms;
  border-bottom: 0.5px solid transparent;
}
.page.scrolled .nav {
  background: rgba(18,18,18,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--sep);
}
.nav .grow { flex: 1; min-width: 0; }
.nav-title { font-weight: 600; font-size: 17px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.nav-title .chev { color: var(--text3); font-weight: 500; transform: translateY(-1px); }
.nav-center { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; font-weight: 600; font-size: 17px; opacity: 0; transition: opacity 200ms; padding: 0 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page.scrolled .nav-center { opacity: 1; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 22px; position: relative; margin: -6px; }
.iconbtn svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn:active { background: rgba(255,255,255,.08); }
.iconbtn .dot { position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px #000; }
.back { display: inline-flex; align-items: center; gap: 2px; height: 44px; margin-left: -8px; padding-right: 8px; color: #fff; font-size: 17px; }
.back svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.avatar { width: 32px; height: 32px; border-radius: 23%; flex: none; display: block; box-shadow: 0 0 0 0.5px rgba(205,255,0,0.35), 0 2px 10px rgba(205,255,0,0.18); }
.avatar img { width: 100%; height: 100%; border-radius: 23%; display: block; }
.nav-title.brand { font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: 0.4px; }
/* about block on Account + GROKHOOD credit (Account, Auditor) */
.about { text-align: center; padding: 34px 16px 0; font-size: 13px; line-height: 18px; color: var(--text2); }
.about img { width: 34px; height: 34px; display: block; margin: 0 auto 6px; }
.about .about-n { font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: 1.2px; color: var(--text); margin-bottom: 8px; }
.credit { text-align: center; padding: 14px 16px 0; font-size: 12px; line-height: 16px; color: var(--text3); letter-spacing: 0.1px; }
.credit b { font-weight: 700; color: var(--text2); letter-spacing: 0.6px; }
.credit i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--lime); opacity: 0.7; vertical-align: middle; margin: -2px 7px 0 0; }

.large-title { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: 0.37px; line-height: 41px; padding: 2px calc(var(--g) + var(--sal)) 8px; margin: 0; }

/* ---------- offline banner ---------- */
.offline {
  margin: 0 var(--g) 8px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,69,58,0.14); color: var(--red);
  font-size: 13px; line-height: 18px; display: flex; align-items: center; gap: 8px;
}
.offline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.offline:empty { display: none; }

/* ---------- balance ---------- */
.hero { padding: 6px calc(var(--g) + var(--sal)) 0; }
.hero-label { color: var(--text2); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.balance {
  font-family: var(--display); font-weight: 700; font-size: 66px; line-height: 1; letter-spacing: -2.4px;
  margin: 6px 0 10px; display: flex; align-items: flex-end; height: 66px; white-space: nowrap;
}
.balance.small { font-size: 54px; height: 54px; letter-spacing: -1.8px; }
.odo-c { display: inline-block; height: 1em; line-height: 1; }
.odo-d { display: inline-block; height: 1em; overflow: hidden; line-height: 1; position: relative; }
.odo-s { display: flex; flex-direction: column; transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.odo-s span { height: 1em; line-height: 1; display: block; text-align: center; }
.sub-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 600; min-height: 26px; }
.up { color: var(--green); }
.down { color: var(--red); }
.muted { color: var(--text2); }
.faint { color: var(--text3); }
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.08px; white-space: nowrap;
}
.pill.green { background: rgba(0,211,90,0.16); color: var(--green); }
.pill.red { background: rgba(255,69,58,0.16); color: var(--red); }
.pill.orange { background: rgba(255,159,10,0.16); color: var(--orange); }
.pill.grey { background: rgba(235,235,245,0.12); color: var(--text2); }
.pill.cyan { background: rgba(100,210,255,0.14); color: var(--cyan); }
.pill.yellow { background: rgba(255,214,10,0.14); color: var(--yellow); }
.pill.pink { background: rgba(255,107,154,0.15); color: var(--pink); }
.pill.blue { background: rgba(10,132,255,0.18); color: #4da3ff; }
.pill.mono { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0; }

/* ---------- chart ---------- */
.chart-wrap { position: relative; margin-top: 14px; height: 270px; }
.chart-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chart-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text2); font-size: 15px; }
.chart-empty .dash { width: calc(100% - 32px); border-top: 1.5px dashed var(--text3); }

.ranges { display: flex; justify-content: space-between; padding: 10px calc(var(--g) + var(--sal)) 0; gap: 4px; }
.ranges button {
  height: 32px; min-width: 44px; padding: 0 12px; border-radius: 16px;
  font-size: 13px; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 6px;
  transition: background-color 200ms, color 200ms;
}
.ranges button.on { background: var(--green); color: #000; }
.ranges .ldot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.chart-sep { height: 0.5px; background: var(--sep); margin: 14px calc(var(--g)) 0; }

/* ---------- sections ---------- */
.section-h { display: flex; align-items: baseline; justify-content: space-between; padding: 26px calc(var(--g) + var(--sal)) 12px; }
.section-h h2 { margin: 0; font-family: var(--display); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: 0.35px; }
.section-h h2 .muted { font-weight: 600; }
.section-h a, .section-h button { color: var(--green); font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; margin: -12px 0; }

/* ---------- agent carousel ---------- */
.carousel {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--g); scroll-padding: 0 var(--g);
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.acard {
  --w: calc(100vw - 32px);
  flex: none; width: var(--w); aspect-ratio: 504 / 470; border-radius: calc(var(--w) * 42 / 504);
  background: var(--card); scroll-snap-align: start; padding: 20px 20px 18px;
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.dots { display: flex; justify-content: center; gap: 7px; padding-top: 12px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); transition: background-color 200ms, width 200ms; }
.dots i.on { background: #fff; }

@media (min-width: 1024px) {
  .home-overview { max-width: 1240px; margin-inline: auto; }
  .home-overview .carousel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
  }
  .home-overview .acard { width: auto; min-height: 240px; aspect-ratio: auto; border-radius: 24px; }
  .home-overview .dots { display: none; }
}

.ahead { display: flex; align-items: center; gap: 10px; }
.glyph { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.glyph svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ahead .aname { font-weight: 600; font-size: 17px; }
.ahead .astat { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.sdot.live { animation: pulse 1.6s ease-in-out infinite; }
.sdot.paused { background: var(--orange); animation: none; }
.sdot.down { background: var(--red); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.abig { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 44px; letter-spacing: -1px; margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.abig small { font-family: var(--textf); font-size: 17px; font-weight: 600; letter-spacing: -0.4px; color: var(--text2); }
.abody { margin-top: auto; }

/* scanner feed */
.feed { display: flex; flex-direction: column; margin-top: 10px; }
.feed .fr { display: flex; align-items: center; gap: 10px; height: 34px; font-size: 15px; border-top: 0.5px solid var(--sep); animation: rowIn 300ms var(--ease) both; }
.feed .fr:first-child { border-top: 0; }
.feed .fr .fn { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%; }
.feed .fr .fs { color: var(--text3); font-size: 13px; }
.feed .fr .fv { margin-left: auto; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.feed .fr.kill .fn { color: var(--text3); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.feed .fr.kill .fv { color: var(--red); }
.feed .fr.pass .fv { color: var(--cyan); font-weight: 600; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* auditor strips */
.strips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.strip { height: 30px; border-radius: 8px; background: var(--card2); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text3); transition: background-color 200ms, color 200ms; }
.strip.ok { background: rgba(0,211,90,0.18); color: var(--green); }
.strip.bad { background: rgba(255,69,58,0.2); color: var(--red); }
.strip.na { background: var(--card2); color: var(--text3); }
.strip.reading { color: var(--cyan); }
.strip.reading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(100,210,255,0.28), transparent); animation: sweep 900ms linear infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.aline { margin-top: 12px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; min-height: 22px; }
.afoot { margin-top: 10px; font-size: 13px; color: var(--text2); display: flex; justify-content: space-between; }

/* analyst ring */
.ringbox { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.ringbox canvas { width: 132px; height: 132px; flex: none; }
.ringmeta { min-width: 0; }
.ringmeta .cn { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ringmeta .cs { color: var(--text2); font-size: 15px; margin-top: 2px; }

/* executor */
.bar { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; transition: width 400ms var(--ease); }
.xline { display: flex; justify-content: space-between; font-size: 15px; margin-top: 10px; font-weight: 600; }

.ticket { display: flex; align-items: center; gap: 12px; background: var(--card2); border-radius: 16px; padding: 12px 14px; margin-top: 16px; }
.ticket .rt { flex: 1; min-width: 0; }
.ticket .rt b { display: block; font-weight: 600; font-size: 17px; }
.ticket .rt span { display: block; color: var(--text2); font-size: 13px; margin-top: 1px; }
.ticket .tv { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.4px; }
.ticket .coin-av { border-radius: 50%; }
.ticket .coin-av .chain { border-color: var(--card2); }
.rail { position: relative; height: 8px; border-radius: 4px; margin: 26px 0 0; background: var(--card2); }
.rail .rs { position: absolute; left: 0; top: 0; bottom: 0; width: 33%; border-radius: 4px 0 0 4px; background: rgba(255,69,58,0.75); }
.rail .rt2 { position: absolute; right: 0; top: 0; bottom: 0; width: 45%; border-radius: 0 4px 4px 0; background: rgba(0,211,90,0.75); }
.rail .re { position: absolute; left: 33%; top: -6px; width: 3px; height: 20px; border-radius: 2px; background: #fff; transform: translateX(-1px); }
.raill { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; }

/* ---------- lists ---------- */
.list { margin: 0 var(--g); }
.row {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0;
  border-bottom: 0.5px solid var(--sep); position: relative;
}
.row:last-child { border-bottom: 0; }
.row:active { opacity: 0.6; }
.row .rt { flex: 1; min-width: 0; }
.row .rt b { display: block; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .rt span { display: block; font-size: 15px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.row .rv { text-align: right; flex: none; }
.row .rv b { display: block; font-weight: 600; font-size: 17px; }
.row .rv span { display: block; font-size: 15px; color: var(--text2); margin-top: 1px; }
.row .rv .up { color: var(--green); }
.row .rv .down { color: var(--red); }
.row .rv .muted { color: var(--text2); }
.row.new { animation: rowIn 300ms var(--ease) both; }

.coin-av { width: 44px; height: 44px; border-radius: 50%; position: relative; flex: none; }
.coin-av img, .coin-av .mono { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; object-fit: cover; font-weight: 700; font-size: 17px; color: #000; overflow: hidden; }
.coin-av .chain { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #000; display: grid; place-items: center; }
.coin-av .chain svg { width: 10px; height: 10px; }
.coin-av.big { width: 56px; height: 56px; }
.coin-av.big img, .coin-av.big .mono { width: 56px; height: 56px; font-size: 22px; }

/* ---------- inset grouped (account, agents) ---------- */
.group-h { padding: 22px calc(var(--g) + 16px) 7px; font-size: 13px; color: var(--text2); letter-spacing: -0.08px; }
.group-f { padding: 7px calc(var(--g) + 16px) 0; font-size: 13px; color: var(--text2); line-height: 18px; }
.group { margin: 0 var(--g); background: var(--card); border-radius: 12px; overflow: hidden; }
.cell { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 16px; position: relative; }
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--sep); }
.cell .cl { flex: 1; min-width: 0; }
.cell .cl small { display: block; color: var(--text2); font-size: 13px; margin-top: 1px; }
.cell .cv { color: var(--text2); text-align: right; display: inline-flex; align-items: center; gap: 6px; }
.cell .chev { color: var(--text3); font-weight: 600; }
button.cell { width: 100%; text-align: left; }
.cell.link:active, button.cell:active { background: var(--card2); }
.cell.btn { color: var(--blue); justify-content: center; font-weight: 400; }
.cell.btn.green { color: var(--green); }
.cell.stack { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px; }

/* iOS switch */
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: -7px; opacity: 0; margin: 0; z-index: 2; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 16px; background: rgba(120,120,128,0.32); transition: background-color 250ms; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 3px 1px rgba(0,0,0,.06); transition: transform 250ms var(--ease); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:disabled + i { opacity: 0.4; }

/* segmented */
.seg { display: inline-flex; background: rgba(118,118,128,0.24); border-radius: 9px; padding: 2px; }
.seg button { height: 28px; min-width: 64px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: #fff; }
.seg button.on { background: #636366; box-shadow: 0 3px 8px rgba(0,0,0,.12); }

/* slider + field */
.setrow { display: flex; align-items: center; gap: 12px; }
.setrow input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 28px; background: transparent; margin: 0; }
.setrow input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--green) var(--p, 50%), rgba(120,120,128,0.32) var(--p, 50%)); }
.setrow input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; margin-top: -12px; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.numf { width: 92px; height: 36px; border-radius: 8px; background: var(--card2); border: 0; text-align: right; padding: 0 10px; font-size: 15px; font-variant-numeric: tabular-nums; outline: none; }
.numf:focus { box-shadow: inset 0 0 0 1.5px var(--blue); }
.err { color: var(--red); font-size: 13px; }
.textf { flex: 1; height: 36px; border: 0; background: transparent; text-align: right; outline: none; font-size: 17px; color: var(--text2); min-width: 0; }
.textf:focus { color: #fff; }

/* ---------- agents tab ---------- */
.bigcard { margin: 0 var(--g) 14px; background: var(--card); border-radius: 22px; padding: 18px 16px 6px; }
.bigcard .ahead { gap: 12px; }
.bigcard .ahead .astat { margin-left: 0; }
.bigcard .stats { display: flex; gap: 8px; margin: 14px 0 8px; flex-wrap: wrap; }
.dec { display: flex; align-items: center; gap: 10px; min-height: 48px; border-top: 0.5px solid var(--sep); font-size: 15px; padding: 6px 0; }
.dec .dt { color: var(--text3); width: 64px; flex: none; font-size: 13px; }
.dec .dn { font-weight: 600; flex: none; max-width: 34%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dec .dr { color: var(--text2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.more { width: 100%; min-height: 44px; color: var(--green); font-weight: 600; font-size: 15px; border-top: 0.5px solid var(--sep); }

/* ---------- coin ---------- */
.coin-head { padding: 4px calc(var(--g) + var(--sal)) 0; display: flex; align-items: center; gap: 14px; }
.coin-head h1 { margin: 0; font-family: var(--display); font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: 0.36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-head .meta { color: var(--text2); font-size: 15px; margin-top: 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shield { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px 0 6px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.shield svg { width: 14px; height: 14px; }
.shield.ok { background: rgba(0,211,90,0.16); color: var(--green); }
.shield.bad { background: rgba(255,69,58,0.16); color: var(--red); }
.shield.na { background: rgba(235,235,245,0.12); color: var(--text2); }
.price { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 50px; letter-spacing: -1.2px; padding: 16px calc(var(--g) + var(--sal)) 0; }
.price-sub { padding: 2px calc(var(--g) + var(--sal)) 0; font-size: 15px; font-weight: 600; }
.candles { position: relative; height: 300px; margin-top: 14px; }
.candles canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0 var(--g); }
.stats-grid div { padding: 12px 0; border-bottom: 0.5px solid var(--sep); display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.stats-grid div:nth-child(odd) { margin-right: 10px; }
.stats-grid div:nth-child(even) { margin-left: 10px; }
.stats-grid span { color: var(--text2); }
.stats-grid b { font-weight: 600; }
.card { margin: 0 var(--g); background: var(--card); border-radius: 16px; padding: 16px; }
.card + .card { margin-top: 12px; }
.card h3 { margin: 0 0 4px; font-size: 15px; color: var(--text2); font-weight: 400; }
.card .cbig { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.6px; }
.kv { display: flex; justify-content: space-between; align-items: center; min-height: 40px; border-top: 0.5px solid var(--sep); font-size: 15px; }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--text2); }

.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px calc(var(--g) + var(--sar)) calc(var(--sab) + 12px) calc(var(--g) + var(--sal));
  background: rgba(0,0,0,0.78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--sep);
  display: flex; flex-direction: column; gap: 8px;
}
.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 26px;
  background: var(--green); color: #000; font-size: 17px; font-weight: 700; letter-spacing: -0.2px;
  transition: transform 120ms, opacity 120ms;
}
.cta:active { transform: scale(0.98); opacity: 0.85; }
.cta.red { background: var(--red); color: #fff; }
.cta.ghost { background: var(--card2); color: #fff; height: 44px; font-size: 15px; font-weight: 600; }
.cta svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- auditor screen ---------- */
.verdict { padding: 6px calc(var(--g) + var(--sal)) 0; }
.verdict h1 { margin: 0; font-family: var(--display); font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: 0.36px; }
.verdict p { margin: 4px 0 0; color: var(--text2); font-size: 15px; }
.verdict .bad { color: var(--red); }
.verdict .ok { color: var(--green); }
.stackbox { position: relative; height: 310px; margin: 14px 0 8px; display: flex; justify-content: center; }
.stackbox svg { width: 300px; height: 310px; overflow: visible; }
.disc-mark { transition: opacity 200ms; }
.layer-rows .row { min-height: 52px; }
.layer-rows .ln { width: 26px; height: 26px; border-radius: 13px; background: var(--card2); color: var(--text2); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; transition: background-color 200ms, color 200ms; }
.layer-rows .ln.ok { background: rgba(0,211,90,0.18); color: var(--green); }
.layer-rows .ln.bad { background: rgba(255,69,58,0.2); color: var(--red); }
.layer-rows .ln.reading { background: rgba(100,210,255,0.18); color: var(--cyan); }
.layer-rows .row .rv b { font-size: 15px; }
.layer-rows .row.pending .rv b { color: var(--text3); }

/* ---------- empty / skeleton ---------- */
.sk { background: var(--card); border-radius: 10px; animation: skel 1.2s ease-in-out infinite alternate; }
.acard .sk, .bigcard .sk, .group .sk, .card .sk, .sheet .sk { background: var(--card2); }
@keyframes skel { from { opacity: 0.5; } to { opacity: 1; } }
.empty { padding: 40px var(--g); text-align: center; color: var(--text2); font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty .dash { width: 100%; border-top: 1.5px dashed var(--text3); }
.empty b { color: #fff; font-size: 17px; font-weight: 600; }

/* ---------- search sheet ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 50; animation: fadeIn 200ms both; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: #1c1c1e;
  border-radius: 14px 14px 0 0; padding: 8px 0 calc(var(--sab) + 16px);
  animation: sheetUp 360ms var(--ease) both; max-height: 92vh; overflow-y: auto;
}
.sheet.full { top: calc(var(--sat) + 10px); }
.sheet .grabber { width: 36px; height: 5px; border-radius: 3px; background: rgba(235,235,245,0.3); margin: 0 auto 10px; }
.sheet h2 { margin: 6px var(--g) 6px; font-size: 20px; font-weight: 700; }
.sheet p { margin: 0 var(--g) 14px; color: var(--text2); font-size: 15px; }
.sheet .group { background: var(--card2); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.searchbar { display: flex; align-items: center; gap: 10px; padding: 0 var(--g) 10px; }
.searchbar label { flex: 1; display: flex; align-items: center; gap: 6px; height: 36px; border-radius: 10px; background: rgba(118,118,128,0.24); padding: 0 8px; }
.searchbar svg { width: 17px; height: 17px; stroke: var(--text2); fill: none; stroke-width: 2.2; stroke-linecap: round; flex: none; }
.searchbar input { flex: 1; border: 0; background: transparent; outline: none; font-size: 17px; min-width: 0; }
.searchbar button { color: var(--green); font-size: 17px; min-height: 44px; }
.bigfield { margin: 0 var(--g) 14px; height: 52px; border-radius: 12px; background: var(--card2); border: 0; width: calc(100% - 32px); padding: 0 16px; font-size: 22px; font-weight: 700; letter-spacing: 2px; outline: none; text-transform: uppercase; }
.sheet .cta { margin: 0 var(--g); }
.sheet .cta + .cta { margin-top: 10px; }

/* ---------- tab bar ---------- */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around;
  padding: 0 var(--sar) var(--sab) var(--sal);
  height: calc(var(--tabh) + var(--sab));
  background: rgba(22,22,22,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--sep);
  transition: transform 300ms var(--ease);
}
#tabbar.hidden { transform: translateY(110%); }
#tabbar a { flex: 1; 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; letter-spacing: 0.1px; min-height: 44px; }
#tabbar a svg { width: 26px; height: 26px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
#tabbar a[data-tab=agents] svg path, #tabbar a[data-tab=activity] svg path { stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
#tabbar a[data-tab=account] svg path { fill: none; stroke-width: 2.1; stroke-linecap: round; }
#tabbar a[data-tab=copy] svg path, #tabbar a[data-tab=copy] svg rect { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#tabbar a.on { color: var(--lime); }

/* ---------- desk chip (the Auditor's opinion on a coin) ---------- */
.dchip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px 0 4px; border-radius: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: -0.25px; white-space: nowrap; max-width: 100%; min-width: 0; }
.dchip .dm { width: 19px; height: 19px; border-radius: 6px; flex: none; }
.dchip i { width: 14px; height: 14px; flex: none; display: grid; place-items: center; margin-right: -2px; }
.dchip i svg { width: 14px; height: 14px; }
.dchip > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dchip.ok { background: rgba(0,211,90,0.18); color: var(--green); box-shadow: inset 0 0 0 1px rgba(0,211,90,0.35); }
.dchip.bad { background: rgba(255,69,58,0.18); color: #ff6961; box-shadow: inset 0 0 0 1px rgba(255,69,58,0.4); }
.dchip.wait { background: rgba(235,235,245,0.12); color: var(--text2); }
.dchip.unseen { background: transparent; color: var(--text2); box-shadow: inset 0 0 0 1px rgba(235,235,245,0.28); }
.dchip.unseen .dm { filter: grayscale(1); opacity: 0.55; }
.dchip.big { height: 34px; border-radius: 17px; font-size: 15px; letter-spacing: -0.1px; padding-right: 13px; padding-left: 5px; gap: 7px; }
.dchip.big .dm { width: 24px; height: 24px; border-radius: 7px; }
.copybtn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 13px; border-radius: 16px; background: var(--lime); color: #000; font-size: 13px; font-weight: 800; letter-spacing: -0.1px; white-space: nowrap; flex: none; }
.copybtn:active { transform: scale(0.97); opacity: 0.85; }
.hav { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: #000; font-style: normal; flex: none; }
.hav.big { width: 36px; height: 36px; font-size: 15px; }

/* ---------- copy tab ---------- */
.cstate { margin: 0 var(--g); background: var(--card); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.cstate .cl { flex: 1; min-width: 0; }
.cstate b { display: block; font-size: 17px; font-weight: 700; }
.cstate small { display: block; color: var(--text2); font-size: 13px; margin-top: 2px; line-height: 18px; }
.cstate .sdot { width: 10px; height: 10px; }
.cstate.warn .sdot { background: var(--orange); animation: none; }
.cstate.off { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px; }
.cstate.off .glyph { width: 40px; height: 40px; border-radius: 12px; }
.cstate.off .glyph svg { width: 22px; height: 22px; }
.cstate code { font-family: var(--mono); font-size: 12.5px; color: var(--lime); background: rgba(205,255,0,0.1); padding: 1px 5px; border-radius: 5px; }
.hot { margin: 0 var(--g) 10px; background: var(--card); border-radius: 20px; padding: 14px 14px 14px 16px; }
.hot-top { display: flex; align-items: center; gap: 12px; }
.hot-top .rt { flex: 1; min-width: 0; }
.hot-top .rt b { display: block; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-top .rt span { display: block; font-size: 13px; color: var(--text2); margin-top: 1px; }
.hot-n { text-align: right; flex: none; }
.hot-n b { display: block; font-family: var(--display); font-size: 30px; line-height: 30px; font-weight: 800; color: var(--lime); letter-spacing: -0.8px; }
.hot-n span { display: block; font-size: 12px; color: var(--text2); font-weight: 600; margin-top: 1px; }
.hot-who { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; min-width: 0; }
.stackav { display: inline-flex; flex: none; }
.stackav .hav { box-shadow: 0 0 0 2.5px var(--card); }
.stackav .hav + .hav { margin-left: -5px; }
.hot-who .hw { font-size: 13px; color: var(--text2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hot-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 0.5px solid var(--sep); }
.hot-foot .dchip { flex: 0 1 auto; }
.hot-k { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text3); flex: none; }
.hot-who .copybtn { margin-left: auto; }
.trow { padding: 12px 0; border-bottom: 0.5px solid var(--sep); }
.trow:last-child { border-bottom: 0; }
.tr1 { display: flex; align-items: center; gap: 12px; }
.tr1 .rt { flex: 1; min-width: 0; }
.tr1 .rt b { display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.tr1 .rt span { display: block; font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.tr1 .rv { text-align: right; flex: none; }
.tr1 .rv b { display: block; font-size: 17px; font-weight: 600; }
.tr1 .rv span { display: block; font-size: 13px; color: var(--text2); margin-top: 2px; }
.tr2 { display: flex; flex-wrap: wrap; row-gap: 8px; align-items: center; gap: 8px; margin-top: 9px; padding-left: 56px; min-width: 0; }
.tr2 .copybtn { margin-left: auto; }
.tr2 .dchip { flex: 0 0 auto; }
.copybtn.ghost { height: 28px; padding: 0 10px; font-size: 12px; background: rgba(205,255,0,0.12); color: var(--lime); box-shadow: inset 0 0 0 1px rgba(205,255,0,0.35); }
.side { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 800; letter-spacing: 0.4px; flex: none; }
.side.buy { background: rgba(0,211,90,0.18); color: var(--green); }
.side.sell { background: rgba(255,69,58,0.18); color: var(--red); }

/* ---------- replay ---------- */
.rp-head { padding: 0 calc(var(--g) + var(--sal)); }
.rp-head h1 { margin: 0; font-family: var(--display); font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: 0.37px; }
.rp-head p { margin: 2px 0 0; color: var(--text2); font-size: 15px; }
.rp-chips { display: flex; gap: 8px; padding: 14px calc(var(--g) + var(--sal)) 4px; }
.rp-chips button { height: 32px; min-width: 56px; padding: 0 14px; border-radius: 16px; font-size: 13px; font-weight: 800; color: var(--lime); background: rgba(205,255,0,0.1); transition: background-color 200ms, color 200ms; }
.rp-chips button.on { background: var(--lime); color: #000; }
.rp-hero { margin: 12px var(--g) 0; border-radius: 24px; padding: 18px 18px 18px; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 100%, rgba(205,255,0,0.18), rgba(205,255,0,0) 60%), var(--card); }
.rp-hero .rp-k { font-size: 12px; font-weight: 800; letter-spacing: 1.6px; color: var(--lime); }
.rp-big { display: flex; align-items: flex-end; gap: 10px; margin-top: 6px; }
.rp-big b { font-family: var(--display); font-size: 84px; line-height: 76px; font-weight: 800; letter-spacing: -3px; color: var(--lime); text-shadow: 0 0 34px rgba(205,255,0,0.35); }
.rp-big span { font-size: 20px; line-height: 22px; font-weight: 700; padding-bottom: 6px; }
.rp-line { margin: 12px 0 0; font-size: 17px; line-height: 23px; font-weight: 600; color: var(--text2); max-width: 290px; }
.rp-line b { color: #fff; }
.rp-line b.lime, .rc-line b.lime { color: var(--lime); }
.rp-hero img.rp-m { position: absolute; right: 16px; top: 18px; width: 76px; height: 76px; transform: rotate(-8deg); filter: drop-shadow(0 0 16px rgba(205,255,0,0.45)); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px var(--g) 0; }
.tile { background: var(--card); border-radius: 16px; padding: 12px 12px 11px; min-width: 0; }
.tile span { display: block; font-size: 12px; color: var(--text2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile b { display: block; font-family: var(--display); font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -0.6px; margin-top: 4px; white-space: nowrap; }
.tile small { display: block; font-size: 11px; color: var(--text3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel { margin: 0 var(--g); background: var(--card); border-radius: 18px; padding: 6px 14px; }
.frow { display: flex; align-items: center; gap: 10px; min-height: 58px; border-top: 0.5px solid var(--sep); }
.frow:first-child { border-top: 0; }
.frow .fl { width: 78px; flex: none; font-size: 15px; font-weight: 600; }
.frow .fl small { display: block; font-size: 12px; font-weight: 600; margin-top: 1px; }
.frow .fb { flex: 1; min-width: 0; height: 12px; border-radius: 6px; background: var(--card2); overflow: hidden; }
.frow .fb i { display: block; height: 100%; border-radius: 6px; position: relative; overflow: hidden; }
.frow .fb i b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.frow .fv { width: 78px; flex: none; text-align: right; }
.frow .fv b { display: block; font-size: 17px; font-weight: 700; }
.frow .fv span { display: block; font-size: 12px; color: var(--text2); white-space: nowrap; }
.frow .glyph { width: 28px; height: 28px; border-radius: 9px; }
.frow .glyph svg { width: 17px; height: 17px; }
.rp-row .rt b { display: flex; align-items: center; gap: 8px; }
.rp-row .rt b em { font-style: normal; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rp-row .rt span { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 3px; }
.rp-row .rt span i { font-style: normal; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rp-row .rt .pill.green { background: rgba(0,211,90,0.2); color: var(--green); }
.rp-row .rt .pill.orange { background: rgba(255,159,10,0.2); color: var(--orange); }
.rp-row .rt .pill.red { background: rgba(255,69,58,0.2); color: var(--red); }
.rp-row .pill { height: 20px; padding: 0 7px; font-size: 11px; font-weight: 700; flex: none; border-radius: 10px; }
.rp-row .rv span { font-size: 12px; }
.rp-note { padding-top: 14px; }

/* home replay card */
.rcard { display: block; margin: 18px var(--g) 0; border-radius: 20px; padding: 14px 16px 14px; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, rgba(205,255,0,0.13), rgba(205,255,0,0) 55%), var(--card); }
.rcard:active { opacity: 0.8; }
.rc-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; color: var(--lime); text-transform: uppercase; }
.rc-h .rc-t { display: inline-flex; align-items: center; gap: 7px; }
.rc-h svg { width: 16px; height: 16px; stroke: var(--lime); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rc-h .chev { color: var(--text3); font-size: 20px; letter-spacing: 0; font-weight: 600; }
.rc-line { margin-top: 8px; font-family: var(--display); font-size: 21px; line-height: 26px; font-weight: 700; letter-spacing: -0.2px; }
.rc-bar { display: flex; gap: 3px; height: 8px; margin-top: 14px; }
.rc-bar i { display: block; height: 100%; border-radius: 4px; min-width: 6px; }
.rc-leg { display: flex; gap: 14px; margin-top: 9px; font-size: 13px; color: var(--text2); font-weight: 600; flex-wrap: wrap; }
.rc-leg span { display: inline-flex; align-items: center; gap: 5px; }
.rc-leg span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

/* account: morning post */
.npost { margin: 0 var(--g); background: var(--card); border-radius: 16px; overflow: hidden; }
.np-img { display: block; aspect-ratio: 1200 / 675; background: var(--card2); }
.np-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.np-meta { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; font-size: 13px; color: var(--text2); font-weight: 600; }
.np-text { margin: 10px 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--card2); white-space: pre-wrap; word-wrap: break-word; font-size: 15px; line-height: 21px; letter-spacing: -0.2px; }
.np-btns { display: flex; gap: 8px; padding: 12px 16px 16px; }
.np-btns .cta { flex: 1; height: 44px; font-size: 15px; border-radius: 22px; }
.np-btns .cta.lime { background: var(--lime); color: #000; }

/* ---------- misc ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + var(--sab) + 24px); transform: translate(-50%, 20px); background: rgba(44,44,46,0.96); color: #fff; padding: 10px 16px; border-radius: 20px; font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 200ms, transform 300ms var(--ease); z-index: 60; white-space: nowrap; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.mark-chip { display: inline-flex; }
.hl-flash { animation: flash 900ms ease-out; }
@keyframes flash { from { background: rgba(0,211,90,0.16); } to { background: transparent; } }

@media (prefers-reduced-motion: reduce) {
  .odo-s { transition: none !important; }
  .page, .sheet, .row.new, .feed .fr { animation: none !important; }
  .strip.reading::after, .sdot.live, .ranges .ldot { animation: none !important; }
}
