/* Binance light theme — hub + workspace. Layout rules stay at the bottom. */

:root {
  --bg: #fafafa !important;
  --bg-deep: #f5f5f5 !important;
  --glass: #ffffff !important;
  --glass-strong: #ffffff !important;
  --glass-soft: #fafafa !important;
  --glass-input: #ffffff !important;
  --surface: #ffffff !important;
  --surface-2: #f0f1f2 !important;
  --surface-3: #eaecef !important;
  --border: #eaecef !important;
  --border-strong: #eaecef !important;
  --border-hover: #c5cbd3 !important;
  --highlight: none !important;
  --shadow: 0 1px 2px rgba(30, 35, 41, 0.06) !important;

  --text: #1e2329 !important;
  --text-2: #474d57 !important;
  --muted: #707a8a !important;

  --primary: #fcd535 !important;
  --primary-hover: #f0b90b !important;
  --accent: #fcd535 !important;
  --accent-2: #c99400 !important;
  --accent-soft: rgba(240, 185, 11, 0.14) !important;
  --accent-border: rgba(240, 185, 11, 0.45) !important;
  --indigo: #c99400 !important;

  --green: #0ecb81 !important;
  --green-soft: rgba(14, 203, 129, 0.12) !important;
  --green-border: rgba(14, 203, 129, 0.35) !important;

  --red: #f6465d !important;
  --red-soft: rgba(246, 70, 93, 0.12) !important;
  --red-border: rgba(246, 70, 93, 0.35) !important;

  --amber: #c99400 !important;
  --amber-soft: rgba(240, 185, 11, 0.16) !important;
  --amber-border: rgba(240, 185, 11, 0.4) !important;
  --gold: #fcd535 !important;

  --radius: 12px !important;
  --radius-md: 8px !important;
  --radius-sm: 8px !important;

  --font: "IBM Plex Sans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
  --sans: "IBM Plex Sans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}

html, body, .app, .app::before {
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
}
.app::before { display: none !important; }

.nav {
  background: #ffffff !important;
  border-right: 1px solid var(--border-strong) !important;
  backdrop-filter: none !important;
}
.nav-head { border-bottom-color: var(--border) !important; }
.brand-mark {
  background: #fcd535 !important;
  color: #1e2329 !important;
  box-shadow: none !important;
  border: none !important;
}
.brand-mark svg { display: block !important; }
.brand-name { color: #1e2329 !important; font-size: 16px !important; font-weight: 600 !important; line-height: 1.15 !important; }
.brand-sub { color: #474d57 !important; opacity: 1 !important; font-size: 12px !important; font-weight: 500 !important; line-height: 1.3 !important; margin-top: 2px !important; }

.nav-summary {
  background: #fff8e6 !important;
  border: 1px solid rgba(240, 185, 11, 0.35) !important;
  box-shadow: none !important;
}
.nav-summary-label { color: var(--muted) !important; }
.nav-summary-val { color: #1e2329 !important; }
.nav-summary-sub { color: #027a52 !important; }
.live-chip {
  background: var(--green-soft) !important;
  border-color: var(--green-border) !important;
  color: #014d34 !important;
}

.nav-item { color: var(--text-2) !important; }
.nav-item:hover { background: var(--surface-2) !important; color: var(--text) !important; }
.nav-item.active {
  background: #fff8e6 !important;
  border-color: rgba(240, 185, 11, 0.45) !important;
  color: #1e2329 !important;
  box-shadow: none !important;
}
.nav-icon {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.nav-item-meta { color: var(--muted) !important; }
.nav-item.active .nav-item-meta { color: var(--text-2) !important; }
.nav-item[data-id="overview"],
.nav-item[data-id="overview"]:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: #1e2329 !important;
  box-shadow: none !important;
}
.nav-item[data-id="overview"] .nav-item-title,
.nav-item[data-id="overview"]:hover .nav-item-title {
  color: #1e2329 !important;
  font-weight: 500 !important;
}
.nav-item[data-id="overview"].active,
.nav-item[data-id="overview"].active:hover {
  background: #f5f5f5 !important;
  border-color: transparent !important;
  color: #1e2329 !important;
}
.nav-item[data-id="overview"].active .nav-item-title,
.nav-item[data-id="overview"].active:hover .nav-item-title { color: #1e2329 !important; }
.nav-price { color: #1e2329 !important; }
.nav-net.pos { color: #027a52 !important; }
.nav-net.neg { color: #c81e3a !important; }
.nav-net.muted { color: var(--muted) !important; }
.group-title { color: var(--muted) !important; }

.nav-foot { border-top-color: var(--border) !important; }
.nav-foot a {
  background: transparent !important;
  border: none !important;
  color: var(--muted) !important;
  padding: 0 !important;
}
.nav-foot a:hover {
  background: transparent !important;
  border: none !important;
  color: #1e2329 !important;
  text-decoration: underline !important;
}
.nav-foot .sep { color: #c5cbd3 !important; }
.stage, .stage iframe, .frame-loader, .empty {
  background: #fafafa !important;
  color: #1e2329 !important;
}

.bar {
  background: #ffffff !important;
  border-bottom-color: var(--border) !important;
  backdrop-filter: none !important;
}
.bar-title, .crumb-root, .sec-title, .proj-name { color: #1e2329 !important; }
.crumb-root { color: var(--muted) !important; }
.icon-btn, .bar-ext {
  background: var(--surface-2) !important;
  border-color: var(--border-strong) !important;
  color: var(--text) !important;
}

.badge.live { background: var(--green-soft) !important; color: #027a52 !important; border-color: var(--green-border) !important; }
.badge.paused { background: var(--amber-soft) !important; color: #8a6a00 !important; border-color: var(--amber-border) !important; }
.badge.ended { background: var(--surface-2) !important; color: var(--muted) !important; border-color: var(--border) !important; }
.badge.off { background: var(--red-soft) !important; color: #c81e3a !important; border-color: var(--red-border) !important; }

.ov-status, .kpi-card, .proj-card, .ended-strip, .ended-card, .notice, .mini-cell {
  background: #ffffff !important;
  border-color: var(--border-strong) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow) !important;
}
.mini-k, .kpi-sub, .proj-desc, .ended-meta, .sec-sub { color: var(--muted) !important; }
.mini-v, .kpi-val { color: #1e2329 !important; }
.mini-v.pos, .ov-table .pos { color: #027a52 !important; }
.mini-v.neg, .ov-table .neg { color: #c81e3a !important; }
.proj-cta, .ov-go { color: #c99400 !important; }
.pulse-dot { background: #0ecb81 !important; box-shadow: none !important; }

.topbar .brand h1 { color: #1e2329 !important; }
.topbar .brand p { color: var(--muted) !important; }
.pill, .pill.tg, .pill.x-link, .pill-btn {
  background: #ffffff !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--text) !important;
}
.pill.price {
  background: #fff7db !important;
  border-color: #e6b800 !important;
  color: #6b5200 !important;
}

.auto-bar, .status-bar, .live-bar, .ref-pool-bar {
  background: #e8faf2 !important;
  border: 1px solid #9be2c4 !important;
  color: #1e2329 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.auto-left, .auto-right, #autoStatusText, #autoBlockText, #autoCountdown {
  color: #1e2329 !important;
}
#autoBlockText, #autoCountdown, .auto-bar .countdown-chip {
  background: #ffffff !important;
  border: 1px solid #9be2c4 !important;
  color: #1e2329 !important;
}
.ref-pool-bar b { color: #027a52 !important; font-size: 15px !important; font-weight: 700 !important; }
.ref-pool-bar.warn { background: #fff8e6 !important; border-color: rgba(240,185,11,.45) !important; }
.ref-pool-bar.warn b { color: #8a6a00 !important; }
.ref-pool-bar.bad { background: #fff5f6 !important; border-color: rgba(246,70,93,.35) !important; }
.ref-pool-bar.bad b { color: #c81e3a !important; }
.tier-upgrade-bar {
  background: #fff8e6 !important;
  border: 1px solid #e6b800 !important;
  color: #1e2329 !important;
  box-shadow: none !important;
  padding: 8px 12px !important;
  margin-bottom: 8px !important;
}
.tier-up-head { margin-bottom: 6px !important; }
.tier-up-title { font-size: 13px !important; }
.tier-up-track { height: 4px !important; margin: 0 !important; }
.ref-pool-bar {
  padding: 8px 12px !important;
  margin-bottom: 8px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}
.tier-up-pill-cur,
.tier-up-pill-next,
.tier-up-pill-remain,
.tier-up-pill-eta,
.tier-up-pill-subsidy {
  background: #ffffff !important;
  color: #1e2329 !important;
  border-color: #e6b800 !important;
}
.tier-up-pill-next { color: #027a52 !important; border-color: #9be2c4 !important; }
.reward-amt {
  color: #1e2329 !important;
  background: transparent !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  padding: 0 !important;
  letter-spacing: 0 !important;
}
.tier-up-pill-next .reward-amt { color: #027a52 !important; }
.tier-up-pill-remain { color: #6b5200 !important; }
.tier-up-track {
  background: #ffffff !important;
  border-color: #e6b800 !important;
}
.tier-up-fill {
  background: #f0b90b !important;
  box-shadow: none !important;
}
.countdown-chip, .block-chip {
  background: #fff8e6 !important;
  border: 1px solid rgba(240, 185, 11, 0.4) !important;
  color: #6b5200 !important;
}

.side-banner {
  background: #ffffff !important;
  border: 1px solid var(--border-strong) !important;
  border-left: 3px solid var(--primary) !important;
  box-shadow: var(--shadow) !important;
  color: var(--text) !important;
}
.sb-badge {
  background: #e8faf2 !important;
  border-color: #9be2c4 !important;
  color: #027a52 !important;
}
.sb-title, .sb-metric .k, .sb-metric .v, .card-title, .tier-up-title { color: #1e2329 !important; }
.sb-desc, .sb-metric .s, .hint, .tier-up-desc { color: #474d57 !important; }
.sb-metric {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
}
.sb-metric .v.green, .v.green, .amt-green, .green, .tier-up-desc .up-green { color: #027a52 !important; }
.sb-metric .v.amber, .v.amber { color: #8a6a00 !important; }
.sb-metric .v.red, .sb-metric .v.orange, .v.red, .v.orange, #bnNetGain { color: #c81e3a !important; }
.sb-cta, .btn-primary, button.btn-primary, .ws-btn.primary {
  background: #fcd535 !important;
  color: #1e2329 !important;
  border: none !important;
  box-shadow: none !important;
}
.sb-cta:hover, .btn-primary:hover, .ws-btn.primary:hover {
  background: #f0b90b !important;
  color: #1e2329 !important;
  filter: none !important;
}
.btn-success { background: #0ecb81 !important; color: #ffffff !important; }
.btn-ghost, .ws-btn {
  background: #ffffff !important;
  border: 1px solid var(--border-strong) !important;
  color: #1e2329 !important;
}
.btn-ghost:hover, .ws-btn:hover {
  background: var(--surface-2) !important;
  border-color: rgba(240, 185, 11, 0.5) !important;
}
.secondary-tab.active {
  border-color: rgba(240, 185, 11, 0.55) !important;
  background: #fff8e6 !important;
  color: #1e2329 !important;
}
.ws-btn.danger {
  background: var(--red-soft) !important;
  border-color: var(--red-border) !important;
  color: #c81e3a !important;
}

.tier-upgrade-bar, .limit-notice {
  background: #fff8e6 !important;
  border: 1px solid rgba(240, 185, 11, 0.4) !important;
  color: #1e2329 !important;
}
.tier-up-pill-cur, .tier-up-pill-next, .tier-up-pill-remain, .tier-up-pill-eta,
.prompt-badge, .feed-pill, .ws-code-tag, .ws-pill {
  background: #ffffff !important;
  border: 1px solid var(--border-strong) !important;
  color: #1e2329 !important;
}
.ws-pill.active, .tier-up-pill-next {
  background: #fff8e6 !important;
  border-color: rgba(240, 185, 11, 0.55) !important;
  color: #1e2329 !important;
}

.card, .ws-hero, .ws-card, .rec-card {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
  color: var(--text) !important;
  backdrop-filter: none !important;
}
.rec-card { background: #ffffff !important; border-color: #eaecef !important; }
.rec-status { color: #027a52 !important; }
.rec-status.idle { color: var(--muted) !important; }

label { color: #2b3139 !important; }
input, textarea, select, .prompt-box, .ws-pre, .ws-log {
  background: #ffffff !important;
  border: 1px solid var(--border-strong) !important;
  color: #1e2329 !important;
}
.prompt-box, .ws-pre, .ws-log { background: #f7f8fa !important; }
input:focus, textarea:focus {
  border-color: rgba(240, 185, 11, 0.85) !important;
  box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.18) !important;
  outline: none !important;
}

.table-wrap, table, .ov-table { background: #ffffff !important; color: var(--text) !important; }
th {
  background: var(--surface-2) !important;
  color: var(--muted) !important;
  border-color: var(--border) !important;
}
td { border-color: var(--border) !important; color: #1e2329 !important; }
.rules li { color: #474d57 !important; }
.rules b { color: #1e2329 !important; }
.tip-box, .prompt-warn, .banner.warn {
  background: #fff8e6 !important;
  border-color: rgba(240,185,11,.35) !important;
  color: #6b5200 !important;
}
.tip-box b, .prompt-warn b, .banner.warn b {
  background: transparent !important;
  color: #6b5200 !important;
}
.banner.err, .banner.err b, .pool-stop-banner, .pool-stop-banner b {
  background: #fff5f6 !important;
  border-color: rgba(246, 70, 93, 0.35) !important;
  color: #9b1c32 !important;
}
.banner.ok, .banner.ok b {
  background: #e8faf2 !important;
  border-color: #9be2c4 !important;
  color: #015c3e !important;
}
.tag.ok { background: #e8faf2 !important; color: #015c3e !important; }
.tag.no, .tag.pending { background: #ffffff !important; }
.tag.no { color: #9b1c32 !important; border: 1px solid rgba(246, 70, 93, 0.35) !important; }
.tag.pending { color: #6b5200 !important; border: 1px solid rgba(240, 185, 11, 0.45) !important; }
.limit-notice-title, .limit-notice-desc, .limit-notice-desc b,
.limit-pill-cur, .limit-pill-restore, .limit-pill-eta, .limit-pill-lowpool,
.tier-up-desc b, .sb-badge, .sb-badge.warn, .sb-badge.shallow, .sb-badge.stopped,
.btn-link, .step-pill .t {
  color: #1e2329 !important;
}
.limit-pill-restore, .sb-badge { color: #015c3e !important; }
.limit-pill-cur, .sb-badge.warn, .limit-notice-title { color: #6b5200 !important; }
.limit-pill-lowpool, .sb-badge.shallow { color: #9a3412 !important; }
.sb-badge.stopped, .limit-pill-eta { color: #1e2329 !important; }
.feed-pill b, .amt-green { color: #015c3e !important; }
.btn-success { color: #06281a !important; }
#btnLoadPrereg, #btnOpenReclaim, #btnCopyToClaim, a.mono, td a {
  color: #6b5200 !important;
}
::placeholder { color: #707a8a !important; opacity: 1 !important; }
.ws-url-text { color: #8a6a00 !important; }
.ws-hero h1, .ws-card h2 { color: #1e2329 !important; }

a { color: #c99400 !important; }
a:hover { color: #8a6a00 !important; }

#pauseModal .pm-card { border-top-color: #f0b90b !important; }
#pauseModal .pm-ok { background: #f0b90b !important; color: #1e2329 !important; }

/* -------- Layout: top rail + table + 3-column desk -------- */
@media (min-width: 821px) {
  .app { flex-direction: column !important; }
  .nav {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 56px !important;
    height: 56px !important;
    flex-direction: row !important;
    align-items: center !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-strong) !important;
    overflow: hidden !important;
  }
  .app.nav-closed .nav {
    margin-left: 0 !important;
    flex-basis: 0 !important;
    height: 0 !important;
    border: none !important;
  }
  .nav-head {
    height: 56px !important;
    border: none !important;
    padding: 0 14px !important;
  }
  .nav-summary {
    margin: 0 8px !important;
    padding: 4px 12px !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .nav-summary-sub { display: none !important; }
  .nav-summary-val { font-size: 15px !important; margin: 0 !important; }
  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex: 1 !important;
    overflow-x: auto !important;
    padding: 0 8px !important;
  }
  .group-title { display: none !important; }
  .nav-item,
  .nav-item[data-id="overview"] {
    width: auto !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 4px !important;
    padding: 0 16px !important;
    align-items: center !important;
    white-space: nowrap !important;
  }
  .nav-item .nav-item-meta { display: none !important; }
  .nav-item .nav-item-title { font-size: 14px !important; font-weight: 500 !important; line-height: 1 !important; }
  .nav-icon { display: none !important; }
  .nav-item-right { display: none !important; }
  .nav-foot {
    margin-left: auto !important;
    border: none !important;
    padding: 0 14px !important;
    flex-wrap: nowrap !important;
  }
  .main .bar { display: none !important; }
}

.ov-page { max-width: none !important; }
.ov-kpis {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  background: #ffffff !important;
  border: 1px solid #eaecef !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin-bottom: 20px !important;
}
.ov-kpi { padding: 24px 28px !important; border-right: 1px solid #eaecef !important; }
.ov-kpi:last-child { border-right: none !important; }
.ov-kpi-k { font-size: 13px !important; color: #707a8a !important; font-weight: 400 !important; }
.ov-kpi-v { font-size: 32px !important; line-height: 1.2 !important; color: #1e2329 !important; font-weight: 600 !important; margin-top: 10px !important; letter-spacing: -0.03em !important; }
.ov-kpi-v .ov-kpi-s { font-size: 16px !important; font-weight: 500 !important; letter-spacing: 0 !important; }
.ov-kpi-s { font-size: 13px !important; color: #707a8a !important; font-weight: 400 !important; margin-top: 6px !important; }
.ov-board {
  background: #ffffff !important;
  border: 1px solid #eaecef !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
.ov-board-h { padding: 22px 24px 0 !important; font-size: 18px !important; font-weight: 600 !important; color: #1e2329 !important; }
.ov-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-top: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
.ov-table th {
  text-align: left !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #707a8a !important;
  background: transparent !important;
  padding: 18px 24px 10px !important;
  border: none !important;
}
.ov-table td { padding: 22px 24px !important; font-size: 16px !important; border-top: 1px solid #f5f5f5 !important; }
.ov-row { cursor: pointer !important; }
.ov-row:hover td { background: #fafafa !important; }
.ov-name { font-weight: 400 !important; }
.ov-name-t { font-size: 16px !important; font-weight: 600 !important; color: #1e2329 !important; }
.ov-name-s {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 4px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #707a8a !important;
}
.ov-st {
  display: inline-block !important;
  padding: 0 6px !important;
  border-radius: 4px !important;
  background: #e6f9f3 !important;
  color: #027a52 !important;
  font-size: 12px !important;
  line-height: 18px !important;
}
.ov-st.paused { background: #fff8e6 !important; color: #8a6a00 !important; }
.ov-st.ended, .ov-st.off { background: #f5f5f5 !important; color: #707a8a !important; }
.ov-table th.num, .ov-table td.num { text-align: right !important; }
.ov-table td.pos { color: #027a52 !important; }
.ov-table td.neg { color: #c81e3a !important; }
.ov-go { text-align: right !important; }
.ov-go span {
  display: inline-block !important;
  background: #fcd535 !important;
  color: #1e2329 !important;
  border-radius: 8px !important;
  padding: 8px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
@media (min-width: 821px) {
  .view-scroll { padding: 28px 32px 64px !important; }
}
@media (max-width: 820px) {
  .ov-kpis { grid-template-columns: 1fr 1fr !important; }
  .ov-kpi:nth-child(2) { border-right: none !important; }
  .ov-kpi:nth-child(-n+2) { border-bottom: 1px solid #eaecef !important; }
}

@media (min-width: 960px) {
  .wrap {
    max-width: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 18px !important;
    row-gap: 10px !important;
    align-items: start !important;
  }
  html:not(.in-hub) .topbar { grid-column: 1 / -1 !important; grid-row: 1 !important; }
  #limitNoticeBar { grid-column: 1 / -1 !important; margin: 0 0 10px !important; }
  .ws-head {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 0 10px !important;
  }
  .ws-head #tierUpgradeBar {
    flex: 1 1 280px !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 7px 12px !important;
  }
  html.in-hub .pill.tg, html.in-hub .pill.x-link, html.in-hub #btnTheme { display: none !important; }
  .ws-head .top-badges {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    justify-content: flex-end !important;
  }
  .top-badges #sbNetCard {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    border: 1px solid #d8dce1 !important;
    box-shadow: none !important;
    white-space: nowrap !important;
  }
  .top-badges #sbNetCard[style*="display: none"],
  .top-badges #sbNetCard[style*="display:none"] { display: none !important; }
  .top-badges #sbNetCard .k {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #474d57 !important;
  }
  .top-badges #sbNetCard .v { font-size: 13px !important; font-weight: 700 !important; }
  .top-badges #sbNetCard .s { display: none !important; }
  #tierUpgradeBar[style*="display: block"] {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  #tierUpgradeBar .tier-up-head {
    margin: 0 !important;
    flex: 1 1 auto !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  #tierUpgradeBar .tier-up-title-wrap { flex: 0 1 auto !important; min-width: 0 !important; }
  #tierUpgradeBar .tier-up-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #tierUpgradeBar .tier-up-pills {
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
  }
  #tierUpgradeBar .tier-up-pill-cur,
  #tierUpgradeBar .tier-up-pill-next,
  #tierUpgradeBar .tier-up-pill-remain,
  #tierUpgradeBar #tierUpArrow {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .ws-head .tier-up-track { display: none !important; }
  .workspace { display: contents !important; }
  .ws-main { grid-column: 1 !important; grid-row: 1 / span 16 !important; }
  html:not(.in-hub) .ws-main { grid-row: 2 / span 16 !important; }
  .sb-metrics { grid-template-columns: 1fr 1fr !important; }
  #sbNetCard { grid-column: 1 / -1 !important; }
  .sb-desc, .sb-foot, #tierUpDesc, #limitNoticeDesc, .sb-metric .s { display: none !important; }
  #autoStatusText {
    color: #1e2329 !important;
    white-space: normal !important;
  }
  html.in-hub body { padding: 8px 12px 56px !important; }
  html.in-hub .topbar { display: contents !important; }
  html.in-hub .topbar .brand { display: none !important; }
  html.in-hub .ws-main { padding-top: 0 !important; }
}

[hidden] { display: none !important; }
#btnJumpPrompt { display: none !important; }
#btnCopyAiPrompt {
  background: #ffffff !important;
  color: #1e2329 !important;
  border: 1px solid var(--border-strong) !important;
}
#btnLoadPrereg, #btnOpenReclaim, #btnCopyToClaim {
  background: #eaecef !important;
  border: none !important;
  color: #1e2329 !important;
  padding: 0 16px !important;
  min-height: 40px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
#panel-prereg .field .hint,
#refreshPriceTip {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
  overflow: hidden !important;
}

.desk-ticker {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 40 !important;
  height: 38px !important;
  background: #ffffff !important;
  border-top: 1px solid #eaecef !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
}
.desk-ticker-track {
  display: flex !important;
  align-items: center !important;
  width: max-content !important;
  animation: desk-marquee 42s linear infinite alternate !important;
}
.desk-ticker:hover .desk-ticker-track { animation-play-state: paused !important; }
@keyframes desk-marquee {
  from { transform: translateX(16px); }
  to { transform: translateX(min(16px, calc(-100% + 100vw - 16px))); }
}
.desk-ticker .auto-bar,
.desk-ticker .side-banner,
.desk-ticker #refPoolBar[style*="display: block"] {
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: none !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  color: #1e2329 !important;
}
.desk-ticker .auto-bar-row,
.desk-ticker .auto-left,
.desk-ticker .auto-right,
.desk-ticker .sb-top-row,
.desk-ticker .sb-head-left,
.desk-ticker .sb-metrics,
.desk-ticker .side-banner {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 !important;
  width: auto !important;
  height: 38px !important;
  min-height: 0 !important;
}
.desk-ticker .sb-badge,
.desk-ticker .sb-title,
.desk-ticker .sb-metric {
  white-space: nowrap !important;
  line-height: 1.2 !important;
  align-self: center !important;
  flex: 0 0 auto !important;
}
.desk-ticker .auto-progress,
.desk-ticker .sb-desc,
.desk-ticker .sb-foot,
.desk-ticker .sb-metric .s,
.desk-ticker #btnJumpPrompt { display: none !important; }
.desk-ticker .sb-metric:not([style*="display: none"]):not([style*="display:none"]) {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 16px 0 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.desk-ticker .sb-metric .k {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #707a8a !important;
}
.desk-ticker .sb-metric .v { font-size: 13px !important; font-weight: 700 !important; }
.desk-ticker .sb-title { font-size: 13px !important; font-weight: 600 !important; margin: 0 !important; }
.desk-ticker .sb-badge { padding: 2px 8px !important; }
.desk-ticker #autoStatusText { white-space: nowrap !important; }
.desk-ticker .auto-bar,
.desk-ticker .sb-badge,
.desk-ticker .sb-title,
.desk-ticker .sb-metric:not([style*="display: none"]):not([style*="display:none"]),
.desk-ticker #refPoolBar[style*="display: block"] {
  box-shadow: inset -1px 0 0 #eaecef !important;
}
#refreshPriceTip { margin-top: 8px !important; padding: 6px 10px !important; }
.rules-fold { padding: 0 !important; }
.rules-fold summary {
  cursor: pointer !important;
  padding: 12px 16px !important;
  font-weight: 600 !important;
  color: #1e2329 !important;
  list-style: none !important;
}
.rules-fold .rules { padding: 0 16px 12px 28px !important; margin: 0 !important; }

/* Binance component shapes: 12px cards, 8px controls, 4px tags. No capsules. */
.card, .rec-card, .ws-card, .ws-hero, .ov-status, .kpi-card, .proj-card,
.ended-card, .notice, .limit-notice, .rules-fold, .table-wrap, .pm-card {
  border-radius: 12px !important;
  box-shadow: none !important;
}
.tier-upgrade-bar, .nav-summary, .nav-item, .brand-mark, .icon-btn {
  border-radius: 8px !important;
  box-shadow: none !important;
}
button, .btn-primary, .btn-success, .btn-ghost, .sb-cta, .ws-btn, .pm-ok {
  border-radius: 8px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  transform: none !important;
}
.btn-sm, .card-title button, .feed-meta button, .pager-btns button {
  border-radius: 6px !important;
  min-height: 32px !important;
  font-weight: 500 !important;
}
.btn-ghost, .ws-btn {
  background: #eaecef !important;
  border: none !important;
  color: #1e2329 !important;
}
.btn-ghost:hover, .ws-btn:hover { background: #f5f5f5 !important; }
input, textarea, select, .prompt-box {
  border-radius: 8px !important;
  font-family: var(--font) !important;
}
input:focus, textarea:focus, select:focus {
  border-color: #fcd535 !important;
  box-shadow: none !important;
}
.pill, .pill-btn, .pill.price, .tag, .feed-pill, .badge, .live-chip, .sb-badge,
.countdown-chip, .block-chip, #autoBlockText, #autoCountdown, #sbNetCard,
.tier-up-pill-cur, .tier-up-pill-next, .tier-up-pill-remain, .tier-up-pill-eta,
.tier-up-pill-subsidy, .prompt-badge, .ws-pill, .ws-code-tag {
  border-radius: 4px !important;
}
.pill.price, #tierBadge {
  background: #f5f5f5 !important;
  border: none !important;
  color: #1e2329 !important;
}
.nav-item, .nav-item.active, .nav-item:hover {
  border-color: transparent !important;
  box-shadow: none !important;
}
.nav-item.active, .nav-item.active:hover {
  background: #f5f5f5 !important;
}
.tier-upgrade-bar {
  background: #ffffff !important;
  border: 1px solid #eaecef !important;
}
.tier-up-track { border-radius: 2px !important; background: #f5f5f5 !important; border: none !important; }
.tier-up-fill { border-radius: 2px !important; background: #fcd535 !important; }
th { font-weight: 400 !important; letter-spacing: 0 !important; }
tbody tr:hover td { background: #fafafa !important; }
.ws-side .table-wrap { overflow-x: auto !important; }

html.in-hub #btnTheme { display: none !important; }
.theme-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #000 !important;
  cursor: pointer !important;
  line-height: 0 !important;
}
.nav-foot .theme-btn { margin-left: 8px !important; }
.theme-btn svg { width: 24px !important; height: 24px !important; display: block !important; }
.theme-btn .theme-icon-moon { display: none !important; }
.theme-btn:hover { background: #f5f5f5 !important; }
html[data-theme="dark"] .theme-btn .theme-icon-sun { display: none !important; }
html[data-theme="dark"] .theme-btn .theme-icon-moon { display: block !important; }

/* Binance dark. Same shapes; surfaces flip to #181A20 / #1E2329 / #2B3139. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181a20 !important;
  --surface: #1e2329 !important;
  --surface-2: #2b3139 !important;
  --surface-3: #2b3139 !important;
  --border: #2b3139 !important;
  --border-strong: #474d57 !important;
  --text: #eaecef !important;
  --text-2: #b7bdc6 !important;
  --muted: #848e9c !important;
  --green: #0ecb81 !important;
  --green-ink: #0ecb81 !important;
  --red: #f6465d !important;
  --red-ink: #f6465d !important;
  --yellow: #fcd535 !important;
  --yellow-2: #f0b90b !important;
  --yellow-ink: #f0b90b !important;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .app,
html[data-theme="dark"] .main,
html[data-theme="dark"] .view,
html[data-theme="dark"] .view-scroll,
html[data-theme="dark"] .stage,
html[data-theme="dark"] .stage iframe,
html[data-theme="dark"] .workspace,
html[data-theme="dark"] .ws-main {
  background: #181a20 !important;
  color: #eaecef !important;
}
html[data-theme="dark"] .nav,
html[data-theme="dark"] .bar,
html[data-theme="dark"] .card,
html[data-theme="dark"] .rec-card,
html[data-theme="dark"] .desk-ticker,
html[data-theme="dark"] .ov-kpis,
html[data-theme="dark"] .ov-board,
html[data-theme="dark"] .tier-upgrade-bar,
html[data-theme="dark"] .side-banner,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .rules-fold,
html[data-theme="dark"] details.card {
  background: #1e2329 !important;
  color: #eaecef !important;
  border-color: #2b3139 !important;
}
html[data-theme="dark"] .ov-kpi,
html[data-theme="dark"] .ov-kpi + .ov-kpi,
html[data-theme="dark"] .ov-kpi:nth-child(2),
html[data-theme="dark"] .ov-kpi:nth-child(3) {
  background: #1e2329 !important;
  border-color: #2b3139 !important;
}
html[data-theme="dark"] .ov-k,
html[data-theme="dark"] .nav-label,
html[data-theme="dark"] .brand-tag,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .sub,
html[data-theme="dark"] .label,
html[data-theme="dark"] .k,
html[data-theme="dark"] .card-title .sub,
html[data-theme="dark"] th,
html[data-theme="dark"] .ov-table th,
html[data-theme="dark"] .ov-name-s,
html[data-theme="dark"] .tier-up-desc,
html[data-theme="dark"] .feed-meta,
html[data-theme="dark"] .sb-metric .k,
html[data-theme="dark"] .sb-metric .s,
html[data-theme="dark"] .auto-left,
html[data-theme="dark"] .auto-right,
html[data-theme="dark"] .crumb,
html[data-theme="dark"] .nav-foot a {
  color: #848e9c !important;
}
html[data-theme="dark"] .brand-name,
html[data-theme="dark"] .brand-sub,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .ov-v,
html[data-theme="dark"] .ov-name,
html[data-theme="dark"] .ov-table td,
html[data-theme="dark"] .ov-table th,
html[data-theme="dark"] td,
html[data-theme="dark"] .v,
html[data-theme="dark"] .sb-title,
html[data-theme="dark"] .sb-metric .v,
html[data-theme="dark"] .tier-up-title,
html[data-theme="dark"] .feed-addr,
html[data-theme="dark"] .rules-fold summary,
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3,
html[data-theme="dark"] p, html[data-theme="dark"] li,
html[data-theme="dark"] label {
  color: #eaecef !important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .field input {
  background: #2b3139 !important;
  color: #eaecef !important;
  border: 1px solid #474d57 !important;
}
html[data-theme="dark"] input::placeholder { color: #5e6673 !important; }
html[data-theme="dark"] .pill.price,
html[data-theme="dark"] #tierBadge,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .pill-btn,
html[data-theme="dark"] .nav-item.active,
html[data-theme="dark"] .nav-item.active:hover,
html[data-theme="dark"] .nav-item:hover,
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .pager button {
  background: #2b3139 !important;
  color: #eaecef !important;
  border-color: transparent !important;
}
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .ov-go span,
html[data-theme="dark"] button.primary {
  background: #fcd535 !important;
  color: #181a20 !important;
  border-color: #fcd535 !important;
}
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .ov-go:hover span { background: #f0b90b !important; }
html[data-theme="dark"] .tag,
html[data-theme="dark"] .ov-st,
html[data-theme="dark"] .sb-badge,
html[data-theme="dark"] .feed-pill {
  background: #2b3139 !important;
  color: #eaecef !important;
  border-color: transparent !important;
}
html[data-theme="dark"] .tag.ok,
html[data-theme="dark"] .ov-st.on,
html[data-theme="dark"] .sb-badge,
html[data-theme="dark"] .v.green,
html[data-theme="dark"] .pos,
html[data-theme="dark"] .feed-pill b,
html[data-theme="dark"] #bnNetGain.green {
  background: rgba(14, 203, 129, 0.12) !important;
  color: #0ecb81 !important;
}
html[data-theme="dark"] .v.green,
html[data-theme="dark"] .pos,
html[data-theme="dark"] #bnNetGain.green { background: transparent !important; }
html[data-theme="dark"] .tag.bad,
html[data-theme="dark"] .ov-st.off,
html[data-theme="dark"] .v.red,
html[data-theme="dark"] .neg,
html[data-theme="dark"] #bnNetGain.red {
  background: rgba(246, 70, 93, 0.12) !important;
  color: #f6465d !important;
}
html[data-theme="dark"] .v.red,
html[data-theme="dark"] .neg,
html[data-theme="dark"] #bnNetGain.red { background: transparent !important; }
html[data-theme="dark"] .ov-table thead th,
html[data-theme="dark"] .ov-table tbody td,
html[data-theme="dark"] th, html[data-theme="dark"] td {
  border-color: #2b3139 !important;
}
html[data-theme="dark"] tbody tr:hover td,
html[data-theme="dark"] .ov-table tbody tr:hover td { background: #2b3139 !important; }
html[data-theme="dark"] .banner,
html[data-theme="dark"] .banner.err,
html[data-theme="dark"] .banner.warn,
html[data-theme="dark"] .tip-box,
html[data-theme="dark"] .prompt-warn {
  background: #2b3139 !important;
  color: #eaecef !important;
  border-color: #474d57 !important;
}
html[data-theme="dark"] .tip-box b,
html[data-theme="dark"] .prompt-warn b,
html[data-theme="dark"] .banner.warn b {
  background: transparent !important;
  color: #f0b90b !important;
}
html[data-theme="dark"] .banner.err,
html[data-theme="dark"] .banner.err b { color: #f6465d !important; }
html[data-theme="dark"] .auto-bar,
html[data-theme="dark"] #chainMintBanner,
html[data-theme="dark"] #refPoolBar {
  background: transparent !important;
  border-color: #2b3139 !important;
  color: #eaecef !important;
}
html[data-theme="dark"] .tier-up-track { background: #2b3139 !important; }
html[data-theme="dark"] .tier-up-fill { background: #fcd535 !important; }
html[data-theme="dark"] .brand-mark { background: #fcd535 !important; color: #181a20 !important; }
html[data-theme="dark"] a { color: #f0b90b !important; }
html[data-theme="dark"] .nav-foot a:hover { color: #fcd535 !important; }
html[data-theme="dark"] .theme-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 0 !important;
  color: #eaecef !important;
}
html[data-theme="dark"] .theme-btn:hover { background: #2b3139 !important; }
html[data-theme="dark"] #sbNetCard {
  background: #2b3139 !important;
  border-color: transparent !important;
}
html[data-theme="dark"] table,
html[data-theme="dark"] .ov-table,
html[data-theme="dark"] .table-wrap {
  background: #1e2329 !important;
  color: #eaecef !important;
}
html[data-theme="dark"] .ov-kpi-v,
html[data-theme="dark"] .ov-board-h,
html[data-theme="dark"] .ov-name-t,
html[data-theme="dark"] .nav-summary-val,
html[data-theme="dark"] .nav-item,
html[data-theme="dark"] .nav-item[data-id="overview"],
html[data-theme="dark"] .nav-item[data-id="overview"]:hover,
html[data-theme="dark"] .nav-item[data-id="overview"].active,
html[data-theme="dark"] .nav-item[data-id="overview"].active:hover,
html[data-theme="dark"] .nav-item[data-id="overview"] .nav-item-title,
html[data-theme="dark"] .nav-item[data-id="overview"]:hover .nav-item-title,
html[data-theme="dark"] .nav-item[data-id="overview"].active .nav-item-title,
html[data-theme="dark"] .nav-item[data-id="overview"].active:hover .nav-item-title,
html[data-theme="dark"] .nav-item-title,
html[data-theme="dark"] .nav-price {
  color: #eaecef !important;
}
html[data-theme="dark"] .nav-net.pos { color: #0ecb81 !important; }
html[data-theme="dark"] .nav-net.neg { color: #f6465d !important; }
html[data-theme="dark"] .nav-summary {
  background: #2b3139 !important;
  border-color: #474d57 !important;
}
html[data-theme="dark"] .live-chip {
  background: rgba(14, 203, 129, 0.16) !important;
  color: #0ecb81 !important;
  border-color: transparent !important;
}
html[data-theme="dark"] .nav-summary-sub { color: #0ecb81 !important; background: transparent !important; }
html[data-theme="dark"] .ov-table th,
html[data-theme="dark"] .ov-kpi-k,
html[data-theme="dark"] .ov-kpi-s,
html[data-theme="dark"] .ov-name-s {
  color: #848e9c !important;
  background: transparent !important;
}
html[data-theme="dark"] .ov-table td {
  color: #eaecef !important;
  border-top-color: #2b3139 !important;
  background: transparent !important;
}
html[data-theme="dark"] .ov-table td.pos,
html[data-theme="dark"] .mini-v.pos,
html[data-theme="dark"] .ov-table .pos { color: #0ecb81 !important; }
html[data-theme="dark"] .ov-table td.neg,
html[data-theme="dark"] .mini-v.neg,
html[data-theme="dark"] .ov-table .neg { color: #f6465d !important; }
html[data-theme="dark"] .ov-st {
  background: rgba(14, 203, 129, 0.16) !important;
  color: #0ecb81 !important;
}
html[data-theme="dark"] .ov-st.paused { background: rgba(240, 185, 11, 0.16) !important; color: #f0b90b !important; }
html[data-theme="dark"] .ov-st.ended,
html[data-theme="dark"] .ov-st.off { background: #2b3139 !important; color: #848e9c !important; }
html[data-theme="dark"] .btn-success {
  background: #0ecb81 !important;
  color: #181a20 !important;
}
html[data-theme="dark"] .desk-ticker .auto-bar,
html[data-theme="dark"] .desk-ticker .auto-left,
html[data-theme="dark"] .desk-ticker .auto-right,
html[data-theme="dark"] .desk-ticker .sb-title,
html[data-theme="dark"] .desk-ticker .side-banner,
html[data-theme="dark"] .desk-ticker #refPoolBar,
html[data-theme="dark"] #autoStatusText,
html[data-theme="dark"] #autoBlockText,
html[data-theme="dark"] #autoCountdown,
html[data-theme="dark"] .rules b,
html[data-theme="dark"] .top-badges #sbNetCard .v,
html[data-theme="dark"] #btnCopyAiPrompt {
  color: #eaecef !important;
}
html[data-theme="dark"] .desk-ticker .sb-metric .k,
html[data-theme="dark"] .top-badges #sbNetCard .k,
html[data-theme="dark"] .rules li { color: #848e9c !important; }
html[data-theme="dark"] .ref-pool-bar b,
html[data-theme="dark"] .desk-ticker #refPoolBar b { color: #0ecb81 !important; }
html[data-theme="dark"] .top-badges #sbNetCard,
html[data-theme="dark"] #autoBlockText,
html[data-theme="dark"] #autoCountdown,
html[data-theme="dark"] .countdown-chip,
html[data-theme="dark"] .block-chip,
html[data-theme="dark"] .tier-upgrade-bar,
html[data-theme="dark"] .tier-up-pill-cur,
html[data-theme="dark"] .tier-up-pill-next,
html[data-theme="dark"] .tier-up-pill-remain,
html[data-theme="dark"] .tier-up-pill-eta {
  background: #2b3139 !important;
  color: #eaecef !important;
  border-color: #474d57 !important;
}
html[data-theme="dark"] .tier-up-pill-next .reward-amt { color: #0ecb81 !important; }
html[data-theme="dark"] .reward-amt { color: #eaecef !important; }
html[data-theme="dark"] .tier-up-pill-remain { color: #f0b90b !important; }
html[data-theme="dark"] #btnLoadPrereg,
html[data-theme="dark"] #btnOpenReclaim,
html[data-theme="dark"] #btnCopyToClaim {
  background: #2b3139 !important;
  color: #eaecef !important;
  border: none !important;
}
html[data-theme="dark"] #btnCopyAiPrompt {
  background: #2b3139 !important;
  border-color: #474d57 !important;
}
html[data-theme="dark"] .pill.price,
html[data-theme="dark"] #tierBadge {
  background: #2b3139 !important;
  color: #fcd535 !important;
  border: none !important;
}
html[data-theme="dark"] .desk-ticker .auto-bar,
html[data-theme="dark"] .desk-ticker .sb-badge,
html[data-theme="dark"] .desk-ticker .sb-title,
html[data-theme="dark"] .desk-ticker .sb-metric,
html[data-theme="dark"] .desk-ticker #refPoolBar {
  box-shadow: inset -1px 0 0 #2b3139 !important;
}
html[data-theme="dark"] .top-badges #bnNetGain.red,
html[data-theme="dark"] .top-badges #sbNetCard .v.red { color: #f6465d !important; background: transparent !important; }
html[data-theme="dark"] .top-badges #bnNetGain.green,
html[data-theme="dark"] .top-badges #sbNetCard .v.green { color: #0ecb81 !important; background: transparent !important; }
