/* Mobile-first styles shared by user and admin pages.
   Layout: dark header + dark bottom menu, light grey page, white rounded cards, Yes/No percentage tiles. */
:root {
  --bg: #e9eaee;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --bar: #dcdfe5;
  --text: #141414;
  --muted: #6f7680;
  --border: #e1e3e8;
  --header: #141414;
  --header-btn: #2b2b2b;
  --header-text: #ffffff;
  --nav-muted: #9aa0a8;
  --green: #0db457;
  --yes: #12a150;
  --yes-bg: #d9f5e3;
  --yes-strong: #0e8a44;
  --no: #ee5a4a;
  --no-bg: #fde3e0;
  --no-strong: #d6402f;
  --accent: #1d6ff2;
  --warn-bg: #fff4d6;
  --warn: #8a6100;
  --shadow: none;
  --radius: 16px;
  --top-h: 64px;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #1a1d23;
    --surface-2: #242830;
    --bar: #2a2f38;
    --text: #eef0f3;
    --muted: #9aa2ae;
    --border: #2a2f37;
    --header: #0a0a0a;
    --header-btn: #26282c;
    --yes: #2bd07a;
    --yes-bg: #143a25;
    --yes-strong: #3fe08c;
    --no: #ff6b5b;
    --no-bg: #3d1c19;
    --no-strong: #ff8474;
    --accent: #5b9bff;
    --warn-bg: #2d2610;
    --warn: #f2c14e;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .5; cursor: default; }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--yes); }
.neg { color: var(--no); }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--top-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
  background: var(--header); color: var(--header-text);
}
.brand { font-weight: 800; font-size: 22px; letter-spacing: -.5px; display: flex; align-items: center; gap: 8px; color: var(--header-text); }
.brand-dot { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--green) 50%, var(--no) 50%); }
.topbar .spacer { flex: 1; }
.hbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  background: var(--header-btn); color: var(--header-text); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.hbtn.green { background: var(--green); }
.balance-pill { font-variant-numeric: tabular-nums; }
.avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--header-btn); display: grid; place-items: center; color: var(--header-text); }
.avatar svg { width: 20px; height: 20px; }
.topbar .btn { background: var(--header-btn); border-color: var(--header-btn); color: var(--header-text); }

/* ---------- bottom menu ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: var(--header);
}
.bottom-nav a, .bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; color: var(--nav-muted); font-weight: 700;
}
.bottom-nav svg { width: 24px; height: 24px; }
.bottom-nav .active { color: var(--header-text); }

/* side menu (opened from "Menu") */
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 41; width: min(300px, 84vw);
  background: var(--surface); transform: translateX(-102%); transition: transform .22s ease-out;
  display: flex; flex-direction: column; padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.drawer.show { transform: none; }
.drawer .brand { color: var(--text); margin: 4px 8px 16px; }
.drawer a, .drawer button.item {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; font-weight: 600; text-align: left; width: 100%;
}
.drawer a:hover, .drawer button.item:hover { background: var(--surface-2); }
.drawer svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.drawer .group { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 14px 12px 4px; }
.drawer .foot { margin-top: auto; padding: 12px; font-size: 12px; color: var(--muted); }

.page {
  max-width: 560px; margin: 0 auto;
  padding: 14px 16px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom));
}

/* ---------- category tabs, My bets bar, search ---------- */
.chips {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px; padding: 2px 16px 12px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: 999px;
  font-weight: 650; font-size: 16px; white-space: nowrap; color: var(--text);
}
.chip.active { background: var(--surface); }

.tools { display: flex; gap: 8px; margin-bottom: 12px; }
.mybets {
  flex: 1; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px;
  background: var(--bar); border-radius: 10px; font-weight: 700; font-size: 16px;
}
.mybets .grow { flex: 1; }
.mybets svg, .sq-btn svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.mybets .count { background: var(--green); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; }
.sq-btn { width: 42px; height: 42px; border-radius: 10px; background: var(--bar); display: grid; place-items: center; flex: none; }
.sq-btn.on { background: var(--text); }
.sq-btn.on svg { color: var(--bg); }
.search-panel { margin-bottom: 12px; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border-radius: 10px; padding: 0 12px; height: 42px;
}
.search input { flex: 1; border: 0; outline: 0; background: none; min-width: 0; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.seg { display: flex; gap: 4px; background: var(--bar); border-radius: 10px; padding: 3px; margin: 8px 0 0; }
.seg button { flex: 1; padding: 7px 0; border-radius: 8px; font-weight: 650; font-size: 13px; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--text); }

/* ---------- market card ---------- */
.list { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 14px; cursor: pointer; }
.card-top { display: flex; gap: 10px; align-items: flex-start; }
.icon {
  flex: none; width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface-2); display: grid; place-items: center; font-size: 24px; overflow: hidden;
}
.icon img { width: 100%; height: 100%; object-fit: cover; }
.icon.lg { width: 56px; height: 56px; font-size: 30px; border-radius: 12px; }
.card .q { flex: 1; font-weight: 700; font-size: 16px; line-height: 1.3; }
.chev { flex: none; width: 20px; height: 20px; color: var(--muted); margin-top: 2px; }
.subline { color: var(--muted); font-size: 13px; margin-top: 6px; }
.subline .chg { margin-left: 4px; }
.tiles { display: flex; gap: 6px; margin-top: 12px; }
.tile {
  flex: 1; min-height: 58px; border-radius: 10px; padding: 6px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: transform .06s, filter .15s;
}
.tile small { font-size: 13px; font-weight: 650; }
.tile b { font-size: 20px; font-weight: 750; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.tile.yes { background: var(--yes-bg); color: var(--yes); }
.tile.no { background: var(--no-bg); color: var(--no); }
button.tile:active { transform: scale(.97); }
button.tile:hover { filter: brightness(.97); }
.tile.off { opacity: .55; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { width: 15px; height: 15px; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--surface-2); color: var(--muted);
}
.badge.open, .badge.won, .badge.approved { background: var(--yes-bg); color: var(--yes-strong); }
.badge.lost, .badge.rejected, .badge.blocked { background: var(--no-bg); color: var(--no-strong); }
.badge.paused, .badge.pending { background: var(--warn-bg); color: var(--warn); }
.result-banner { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 700; text-align: center; background: var(--surface-2); }
.result-banner.yes { background: var(--yes-bg); color: var(--yes-strong); }
.result-banner.no { background: var(--no-bg); color: var(--no-strong); }
.flash-up { animation: flashUp .9s; }
.flash-down { animation: flashDown .9s; }
@keyframes flashUp { 0% { transform: scale(1.12); } 100% { transform: none; } }
@keyframes flashDown { 0% { transform: scale(.9); } 100% { transform: none; } }
.chg { font-size: 12px; font-weight: 700; }
.chg.up { color: var(--yes); }
.chg.down { color: var(--no); }
.mine-badge { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--surface-2); }
.mine-badge .y { color: var(--yes-strong); }
.mine-badge .n { color: var(--no-strong); }

.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.skeleton { height: 180px; border-radius: var(--radius); background: var(--surface); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- market page ---------- */
.crumb { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; min-height: 40px; }
.crumb .back, .icon-btn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.crumb .back svg, .icon-btn svg { width: 22px; height: 22px; }
.crumb .path { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb .path span { color: var(--muted); margin-right: 8px; }
.market-q { font-size: 20px; line-height: 1.3; font-weight: 750; margin: 0 0 14px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.panel h2 { font-size: 17px; margin: 0 0 8px; }
.panel p { margin: 0; white-space: pre-wrap; }
.tile-row { display: flex; gap: 6px; align-items: stretch; }
.tile-row .qbox { flex: 1.6; min-width: 0; display: flex; gap: 10px; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 10px; font-size: 14px; }
.tile-row .qbox .icon { width: 40px; height: 40px; font-size: 22px; }
.tile-row .tile { flex: 1; min-height: 76px; }
.info-table { background: var(--bar); border-radius: var(--radius); overflow: hidden; margin: 0 0 12px; }
.info-table div { display: flex; justify-content: space-between; gap: 12px; padding: 14px; font-size: 15px; }
.info-table div + div { border-top: 1px solid var(--bg); }
.info-table dt { color: var(--muted); }
.info-table dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.prob { padding: 0; overflow: hidden; }
.prob-head { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 14px; font-size: 17px; font-weight: 750; border-bottom: 1px solid var(--border); }
.prob-head svg { width: 22px; height: 22px; color: var(--muted); transition: transform .2s; }
.prob.collapsed .prob-head { border-bottom: 0; }
.prob.collapsed .prob-head svg { transform: rotate(-90deg); }
.prob.collapsed .prob-body { display: none; }
.prob-body { padding: 12px 14px 14px; }
.legend { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-bottom: 8px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 5px; flex: none; }
.ranges { display: flex; gap: 8px; margin-top: 12px; }
.ranges button { flex: 1; height: 34px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 14px; }
.ranges button.active { background: var(--accent); color: #fff; }
.chart { width: 100%; height: 170px; display: block; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart .area { fill: var(--accent); opacity: .06; }
.chart-wrap { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 170px auto; column-gap: 6px; }
.chart-wrap .chart { grid-column: 1; grid-row: 1; }
.chart-y { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); }
.chart-x { grid-column: 1; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.my-pos .pos-grid { margin-top: 4px; }
.my-pos .line + .line { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }

/* compact stat boxes (used by the admin panel) */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 10px; }
.stat small { display: block; color: var(--muted); font-size: 12px; }
.stat b { font-size: 16px; }

/* ---------- bottom sheet (buy / deposit / withdraw) ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.backdrop.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-width: 560px; margin: 0 auto;
  background: var(--surface); border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .22s ease-out;
  max-height: 92vh; overflow-y: auto;
}
.sheet.show { transform: translateY(0); }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--border); margin: 4px auto 12px; }
.sheet-title { display: flex; gap: 10px; align-items: center; font-weight: 700; margin-bottom: 14px; }
.sheet-title:not(:has(.icon)) { font-size: 18px; }
.sheet-title .icon { width: 36px; height: 36px; font-size: 20px; }
.side-toggle { display: flex; gap: 6px; margin-bottom: 14px; }
.side-toggle button { flex: 1; height: 58px; border-radius: 10px; font-weight: 750; font-size: 16px; }
.side-toggle button.yes { background: var(--yes-bg); color: var(--yes); }
.side-toggle button.no { background: var(--no-bg); color: var(--no); }
.side-toggle button.on.yes { background: var(--yes); color: #fff; }
.side-toggle button.on.no { background: var(--no); color: #fff; }
.field-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; display: block; }
.amount {
  display: flex; align-items: center; gap: 4px;
  border: 2px solid var(--border); border-radius: 12px; padding: 0 14px; height: 56px; background: var(--surface);
}
.amount:focus-within { border-color: var(--text); }
.amount span { font-size: 24px; font-weight: 700; color: var(--muted); }
.amount input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 26px; font-weight: 800; }
.quick { display: flex; gap: 8px; margin: 10px 0 14px; }
.quick button { flex: 1; padding: 9px 0; border-radius: 10px; background: var(--surface-2); font-weight: 700; font-size: 14px; }
.summary {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px;
  background: var(--surface-2); border-radius: 12px; padding: 14px; margin-bottom: 12px; font-size: 16px; text-align: center;
}
.summary b { font-size: 19px; }
.summary .arrow { color: var(--muted); }
.summary .get .win, .summary .get .side-word { color: var(--yes); }
.summary.no .get .win, .summary.no .get .side-word { color: var(--no); }
.msg { font-size: 14px; margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); }
.msg a { text-decoration: underline; font-weight: 700; }
.msg.error { background: var(--no-bg); color: var(--no-strong); }
.msg.ok { background: var(--yes-bg); color: var(--yes-strong); }
.big-btn { width: 100%; height: 54px; border-radius: 12px; font-size: 17px; font-weight: 800; background: var(--text); color: var(--bg); }
.big-btn.yes, .big-btn.green { background: var(--green); color: #fff; }
.big-btn.no { background: var(--no); color: #fff; }
.sheet-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }
.success-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 8px auto 12px; font-size: 34px; }

/* ---------- forms & buttons ---------- */
.input, select.input, textarea.input {
  width: 100%; height: 46px; border: 1px solid var(--border); border-radius: 10px;
  padding: 0 12px; background: var(--surface); outline: 0;
}
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--text); }
.form-row { margin-bottom: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--surface-2);
}
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.green { background: var(--green); color: #fff; border-color: var(--green); }
.btn.red { background: var(--no); color: #fff; border-color: var(--no); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }

/* ---------- login ---------- */
.auth-top { height: var(--top-h); background: var(--header); display: flex; align-items: center; padding: 0 16px; }
.auth { max-width: 400px; margin: 0 auto; padding: 24px 20px; }
.auth h1 { font-size: 26px; margin: 8px 0 4px; }
.auth .tabs { margin: 20px 0 16px; }

/* ---------- positions & wallet ---------- */
.row { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 12px; padding: 12px; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row .sub { font-size: 13px; color: var(--muted); }
.row .right { text-align: right; flex: none; }
.side-tag { font-weight: 800; font-size: 12px; padding: 1px 6px; border-radius: 6px; }
.side-tag.yes { background: var(--yes-bg); color: var(--yes-strong); }
.side-tag.no { background: var(--no-bg); color: var(--no-strong); }
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; font-size: 13px; }
.pos-grid small { display: block; color: var(--muted); font-size: 11px; }
.pos-card { display: block; background: var(--surface); border-radius: var(--radius); padding: 14px; }
.pos-card .title { font-weight: 700; }
.pos-card .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.row-flat { display: flex; gap: 10px; align-items: flex-start; }
.row-flat .icon { width: 40px; height: 40px; font-size: 20px; }
.stats-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats-2 small { display: block; font-size: 12px; }
.stats-2 b { font-size: 18px; }
.wallet-hero { text-align: center; padding: 20px 14px; }
.wallet-hero .amt { font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.wallet-actions { display: flex; gap: 10px; margin-top: 16px; }
.wallet-actions .big-btn { height: 48px; font-size: 16px; }
.section-title { font-size: 16px; font-weight: 750; margin: 20px 0 10px; }
.pay-to { font-size: 14px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; white-space: pre-wrap; }

/* ---------- account ---------- */
.account-id { font-size: 18px; font-weight: 750; word-break: break-all; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice .btn { flex: 1; }
.notice { font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600;
  opacity: 0; transition: all .2s; z-index: 60; max-width: 90vw; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.help-list { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; }

/* =====================================================================
   Inner pages (market, My bets, wallet, account): one clean white page,
   sections separated by thin lines instead of stacked grey boxes.
   ===================================================================== */
body.inner { background: var(--surface); }
body.inner .page { padding-top: 8px; }
body.inner .panel { background: none; border-radius: 0; padding: 18px 0; margin: 0; border-top: 1px solid var(--border); }
body.inner .panel:first-child { border-top: 0; }
body.inner .panel h2 { font-size: 17px; margin: 0 0 10px; }
body.inner .row, body.inner .pos-card { background: none; border-radius: 0; padding: 14px 0; border-top: 1px solid var(--border); }
body.inner .list { gap: 0; }
body.inner .list > :first-child { border-top: 0; }
body.inner .seg { background: none; padding: 0; gap: 20px; border-bottom: 1px solid var(--border); border-radius: 0; margin: 0 0 4px; }
body.inner .seg button { flex: none; padding: 10px 0; border-radius: 0; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
body.inner .seg button.active { background: none; color: var(--text); border-bottom-color: var(--text); }
.page-title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; margin: 6px 0 12px; }

/* ---------- market page ---------- */
.mk-head { display: flex; gap: 12px; align-items: flex-start; }
.mk-head .icon { width: 52px; height: 52px; font-size: 28px; border-radius: 12px; }
.mk-head .titles { flex: 1; min-width: 0; }
.mk-crumb { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.mk-crumb a { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-weight: 600; }
.mk-crumb svg { width: 16px; height: 16px; }
.mk-title { font-size: 21px; line-height: 1.25; font-weight: 750; margin: 4px 0 0; letter-spacing: -.2px; }
.mk-actions { display: flex; gap: 2px; flex: none; }
.mk-actions button { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.mk-actions button:hover { background: var(--surface-2); }
.mk-actions svg { width: 20px; height: 20px; }
.mk-chance { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 2px; flex-wrap: wrap; }
.mk-chance b { font-size: 34px; font-weight: 800; letter-spacing: -1px; color: var(--accent); line-height: 1; }
.mk-chance .lbl { font-size: 17px; font-weight: 700; color: var(--accent); }
.mk-chance .chg { font-size: 14px; }
.mk-chart { margin: 10px 0 4px; }
.mk-ranges { display: flex; gap: 4px; margin: 10px 0 4px; }
.mk-ranges button { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mk-ranges button.active { background: var(--surface-2); color: var(--text); }
.mk-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); padding: 12px 0 16px; }
.mk-stats span { display: inline-flex; align-items: center; gap: 5px; }
.mk-stats svg { width: 15px; height: 15px; }
.mk-stats b { color: var(--text); font-weight: 650; }
.kv-list { margin: 0; }
.kv-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; }
.kv-list dt { color: var(--muted); }
.kv-list dd { margin: 0; font-weight: 600; text-align: right; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn { margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--accent); }
.buybar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 15;
  background: var(--surface); border-top: 1px solid var(--border); padding: 10px 16px;
}
.buybar .inner { max-width: 528px; margin: 0 auto; display: flex; gap: 8px; }
.buybar button { flex: 1; height: 50px; border-radius: 12px; font-size: 16px; font-weight: 750; }
.buybar .yes { background: var(--yes-bg); color: var(--yes-strong); }
.buybar .no { background: var(--no-bg); color: var(--no-strong); }
.buybar button:active { transform: scale(.98); }
body.has-buybar .page { padding-bottom: calc(var(--nav-h) + 96px + env(safe-area-inset-bottom)); }
.mk-banner { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-weight: 700; background: var(--surface-2); }
.mk-banner.yes { background: var(--yes-bg); color: var(--yes-strong); }
.mk-banner.no { background: var(--no-bg); color: var(--no-strong); }
.hold-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.hold-row + .hold-row { border-top: 1px solid var(--border); }
.hold-row .l { font-size: 14px; }
.hold-row .l small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.hold-row .r { text-align: right; font-size: 14px; }
.hold-row .r small { display: block; color: var(--muted); font-size: 12px; }
body.inner .page-title + .panel { border-top: 0; }
body.inner .wallet-hero { text-align: left; padding-top: 4px; }
body.inner .wallet-hero .amt { font-size: 40px; }
body.inner .section-title { margin: 22px 0 4px; }
body.inner .stats-2 { padding: 14px; background: var(--surface-2); border-radius: 12px; border: 0; margin-bottom: 8px; }
body.inner .pos-grid { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
