/* Orbita — palette follows orbita-info.com (dark slate, gold accent). */
:root {
  --bg: #181a20;
  --surface: #1e2329;
  --card: #22272e;
  --card-2: #2b3139;
  --line: #2f353d;
  --line-2: #474d57;
  --text: #eaecef;
  --muted: #848e9c;
  --dim: #5e6673;
  --gold: #f0b90b;
  --gold-2: #fcd535;
  --on-gold: #181a20;
  --up: #0ecb81;
  --down: #f6465d;
  --warn: #f0a20b;
  /* MSC signal identity colours (from the official script) */
  --sig-bottom: #00c853;
  --sig-top1: #ffd600;
  --sig-top2: #ff9100;
  --sig-top3: #d50000;
  --tab-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--gold); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

.view {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(12px + var(--safe-t)) 16px calc(var(--tab-h) + var(--safe-b) + 24px);
  outline: none;
  min-height: 100vh;
}

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; min-height: 40px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.brand img { width: 28px; height: 28px; }
.topbar h1 { font-size: 18px; margin: 0; font-weight: 650; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  cursor: pointer;
}
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.subtitle { color: var(--muted); font-size: 13px; margin: -8px 0 14px; }

/* ---------- inputs / chips ---------- */
.search {
  display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 44px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px;
}
.search:focus-within { border-color: var(--gold); }
.search svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
.search input { flex: 1; background: transparent; border: 0; outline: none; height: 100%; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chip {
  flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 10px; cursor: pointer; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--text);
}
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn.primary:hover { background: var(--gold-2); }
.btn.ghost { background: transparent; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn.on svg { fill: currentColor; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; margin-bottom: 12px;
}
.card.link { display: block; color: inherit; cursor: pointer; transition: border-color .15s; }
.card.link:hover, .card.link:focus-visible { border-color: var(--line-2); }
.card h2, .section-title { font-size: 15px; margin: 0 0 10px; font-weight: 650; }
.section-title { margin: 22px 2px 10px; display: flex; align-items: baseline; gap: 8px; }
.section-title small { color: var(--muted); font-weight: 400; font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.up { color: var(--up); }
.down { color: var(--down); }
.sym { font-weight: 700; font-size: 17px; }
.sym-name { color: var(--muted); font-size: 13px; }
.price { font-size: 17px; font-weight: 650; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px;
  font-size: 11.5px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.tag.gold { border-color: rgba(240,185,11,.5); color: var(--gold); }
.tag.warn { border-color: rgba(240,162,11,.5); color: var(--warn); }
.tag.bad { border-color: rgba(246,70,93,.5); color: var(--down); }
.tag.pro { border-color: rgba(77,163,255,.55); color: #4da3ff; }
.tag.admin { border-color: rgba(246,70,93,.6); color: var(--down); background: rgba(246,70,93,.08); }
.divider { height: 1px; background: var(--line); margin: 12px 0; }

/* ---------- signal rows / badges ---------- */
.sig-grid { display: grid; gap: 8px; margin-top: 12px; }
.sig-row { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: start; font-size: 13.5px; }
.sig-row .detail { color: var(--muted); font-size: 12.5px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13px; white-space: nowrap;
}
.shape { width: 12px; height: 12px; flex: none; vertical-align: -1px; }
.badge .zh { color: var(--muted); font-weight: 400; font-size: 12px; }
.sig-row .badge { flex-wrap: wrap; row-gap: 0; }
.sig-row .badge .zh { flex-basis: 100%; padding-left: 18px; font-size: 11.5px; }
.state { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; margin-right: 6px; }
.state.confirmed { background: rgba(14,203,129,.14); color: var(--up); }
.state.forming { background: rgba(240,185,11,.14); color: var(--gold); }
.state.not_met { background: var(--card-2); color: var(--muted); }
.state.insufficient { background: rgba(246,70,93,.10); color: #ff8a9a; }
.state.unsupported { background: var(--card-2); color: var(--dim); }

/* ---------- detail page ---------- */
.detail-head { margin-bottom: 12px; }
.detail-head .price { font-size: 26px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 4px; }
.chart-card { padding: 10px 10px 12px; }
.chart-tools { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 5px 11px; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.chart { height: 360px; width: 100%; position: relative; touch-action: pan-y; }
@media (min-width: 700px) { .chart { height: 440px; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.coverage { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.pop {
  margin-top: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 10px; font-size: 13px;
}
.list { display: grid; gap: 0; }
.list-item { display: flex; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; color: inherit; }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item[aria-current="true"] { background: rgba(240,185,11,.06); }

table.stats { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.stats th, table.stats td { padding: 7px 4px; text-align: right; border-bottom: 1px solid var(--line); }
table.stats th:first-child, table.stats td:first-child { text-align: left; }
table.stats th { color: var(--muted); font-weight: 500; white-space: nowrap; }
table.stats td:first-child { white-space: nowrap; }
.note { font-size: 12px; color: var(--muted); line-height: 1.65; }
.note p { margin: 4px 0; }
.callout {
  border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--muted);
  background: rgba(255,255,255,.015); margin-bottom: 12px;
}
.callout strong { color: var(--text); }
details.more summary { cursor: pointer; color: var(--gold); font-size: 13px; margin-top: 8px; }

/* ---------- news ---------- */
.news-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item a.title { color: var(--text); font-weight: 600; font-size: 14.5px; line-height: 1.45; display: block; }
.news-item .summary { color: var(--muted); font-size: 13px; margin-top: 4px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; font-size: 11.5px; color: var(--dim); align-items: center; }
.cal-item { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cal-item:last-child { border-bottom: 0; }
.cal-vals { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 2px; flex-wrap: wrap; }
.cal-day { margin: 14px 2px 4px; font-size: 12.5px; color: var(--gold); font-weight: 600; }

/* ---------- states ---------- */
.empty, .loading, .error-box { text-align: center; color: var(--muted); padding: 28px 12px; font-size: 14px; }
.error-box { color: #ff8a9a; }
.skeleton { background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 14px; height: 140px; margin-bottom: 12px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.net-banner {
  position: sticky; top: 0; z-index: 30; text-align: center; font-size: 12.5px; padding: calc(6px + var(--safe-t)) 12px 6px;
  background: #3a2a05; color: var(--gold-2); border-bottom: 1px solid rgba(240,185,11,.3);
}
.stale { color: var(--warn); }

/* ---------- toggles ---------- */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.switch-row:last-child { border-bottom: 0; }
.switch-row .why { display: block; font-size: 12px; color: var(--dim); }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: .4; }
.switch input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }

/* ---------- sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; display: grid; align-items: end; justify-items: center; }
.sheet {
  width: 100%; max-width: 560px; background: var(--surface); border-top-left-radius: 18px; border-top-right-radius: 18px;
  border: 1px solid var(--line); padding: 16px 16px calc(16px + var(--safe-b)); max-height: 85vh; overflow-y: auto;
}
.sheet h3 { margin: 0 0 4px; font-size: 16px; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + var(--safe-b) + 14px);
  background: var(--card-2); border: 1px solid var(--line-2); padding: 9px 16px; border-radius: 10px; z-index: 60; font-size: 13.5px;
  box-shadow: 0 6px 24px rgba(0,0,0,.4); max-width: calc(100% - 32px);
}

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(24,26,32,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
@media (min-width: 600px) {
  .tabbar { left: 50%; transform: translateX(-50%); max-width: 560px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 16px 16px 0 0; }
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11px; min-height: 44px;
}
.tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--gold); font-weight: 600; }
.tabbar .dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--down); }

/* ---------- indicator summary ---------- */
.today { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.today-label { font-size: 12.5px; color: var(--muted); }
.today-marks { display: inline-flex; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.latest { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.latest .shape { width: 10px; height: 10px; }
.watch-extra { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -6px 2px 14px; }

/* ---------- reports ---------- */
.report-body { font-size: 13.5px; line-height: 1.7; color: var(--text); }
.report-body.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.report-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; background: #fff; }

/* ---------- language toggle ---------- */
.lang-btn {
  height: 32px; min-width: 44px; padding: 0 10px; border-radius: 999px; cursor: pointer; font-size: 12.5px; font-weight: 650;
  border: 1px solid rgba(240,185,11,.55); background: transparent; color: var(--gold); margin-left: 8px; flex: none;
}
.lang-btn:hover { background: rgba(240,185,11,.1); }

/* ---------- chart high / low labels ---------- */
.hl-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.hl { position: absolute; height: 0; width: 0; }
.hl span {
  position: absolute; left: 6px; transform: translateY(-50%); white-space: nowrap; font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--text); background: rgba(24,26,32,.82); border-radius: 4px; padding: 1px 5px;
  border-left: 2px solid var(--muted);
}
.hl.left span { left: auto; right: 6px; border-left: 0; border-right: 2px solid var(--muted); }
.hl.hi span { margin-top: -10px; }
.hl.lo span { margin-top: 10px; }
.hl-key { color: var(--text); }

/* ---------- fear & greed ---------- */
.fng-mini { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.fng-card .gauge { display: block; width: 100%; max-width: 280px; margin: 8px auto 0; }
.gauge-num { font-size: 34px; font-weight: 700; font-family: inherit; }
.fng-now { text-align: center; font-size: 18px; font-weight: 650; margin: 2px 0 4px; }
.fng-hist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.fng-h { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fng-pill { min-width: 40px; padding: 4px 8px; border-radius: 999px; color: #111; font-weight: 700; font-variant-numeric: tabular-nums; }
.swatch { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.legend .shape { margin-right: 1px; }
.name-col { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name-col .tiny { overflow: hidden; text-overflow: ellipsis; }
.fng-mini { flex-wrap: wrap; row-gap: 2px; }
.ohlc {
  position: absolute; top: 6px; left: 8px; right: 70px; z-index: 3; pointer-events: none;
  font-size: 11px; line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums;
}
.ohlc b { font-weight: 600; margin: 0 6px 0 2px; }
.ohlc .dim { margin-right: 6px; }

/* ---------- wordmark ---------- */
.wordmark {
  display: inline-flex; align-items: center; color: #f3ede0; line-height: 1;
  font-family: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", "Noto Serif TC", serif;
  font-size: 27px; font-weight: 500; letter-spacing: .04em;
}
.wordmark .wm-o { width: 36px; height: 36px; margin-right: -1px; transform: translateY(2px); }
.wordmark .wm-i { position: relative; display: inline-block; }
.wordmark .wm-i::after {
  content: ""; position: absolute; left: 50%; top: .2em; width: .19em; height: .19em; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #e2b850 45%, #7a5714);
}

/* ---------- member forms ---------- */
.auth-form { display: grid; gap: 10px; margin-top: 8px; }
.auth-form label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.auth-form input {
  height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 15px;
}
.auth-form input:focus { outline: none; border-color: var(--gold); }
.form-msg { font-size: 12.5px; color: #ff8a9a; min-height: 1em; }
.members-only { text-align: center; padding: 24px 16px; }

/* ---------- macro calendar notes ---------- */
.cal-main { position: relative; min-width: 0; }
.cal-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-vals b { color: var(--text); font-weight: 600; }
.info-btn {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); font-size: 11px; line-height: 16px; padding: 0; cursor: pointer; flex: none;
}
.info-btn[aria-expanded="true"], .info-btn:hover { border-color: var(--gold); color: var(--gold); }
.macro-note {
  display: none; position: absolute; z-index: 20; top: 24px; left: -74px; width: min(320px, calc(100vw - 56px));
  background: #1b1f25; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.45); font-size: 12.5px; line-height: 1.6; color: var(--text);
}
.macro-note p { margin: 3px 0; }
.macro-note-title { color: var(--gold); font-weight: 650; margin-bottom: 2px; }
.cal-main.note-open .macro-note { display: block; }

/* ---------- guide ---------- */
details.guide > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
details.guide > summary::-webkit-details-marker { display: none; }
details.guide > summary h2 { margin: 0; }
details.guide > summary::after { content: "＋"; color: var(--gold); font-size: 16px; }
details.guide[open] > summary::after { content: "－"; }
details.guide[open] > summary { margin-bottom: 8px; }
.guide-list, .guide-steps { margin: 6px 0; padding-left: 20px; }
.guide-list li, .guide-steps li { margin: 5px 0; }
.guide-steps li::marker { color: var(--gold); font-weight: 700; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 6px 0; }
.guide-table th, .guide-table td { border-bottom: 1px solid var(--line); padding: 7px 5px; text-align: left; vertical-align: top; }
.guide-table th { color: var(--muted); font-weight: 500; white-space: nowrap; }
details.faq { border-bottom: 1px solid var(--line); padding: 8px 0; }
details.faq summary { cursor: pointer; color: var(--text); font-weight: 600; }
details.faq p { margin: 6px 0 2px; }
body.gated .tabbar { display: none; }

/* sector heatmap */
.heat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 12px; }
.heat-tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.heat-name { font-weight: 650; font-size: 14px; }
.heat-pct { font-weight: 650; font-size: 14px; }
.heat-tile.tinted .heat-pct { color: var(--text); }
.heat-tile.tinted .dim { color: rgba(234,236,239,.72); }
.heat-names { margin-top: 4px; overflow-wrap: anywhere; }
.heat-names a, .heat-rank a { color: var(--text); }
.heat-names a:hover, .heat-rank a:hover { color: var(--gold); }
.heat-rank { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13.5px; }
@media (max-width: 520px) { .heat-grid { grid-template-columns: 1fr 1fr; } .heat-rank { grid-template-columns: 1fr; } }

/* my assets */
.asset-total { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.asset-chart { height: 170px; margin-top: 8px; position: relative; }
.asset-chart-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 16px; border: 1px dashed var(--line); border-radius: 8px; }
.alloc { display: flex; align-items: center; gap: 20px; }
.donut { width: 140px; height: 140px; flex: none; }
.alloc-legend { flex: 1; min-width: 0; display: grid; gap: 8px; font-size: 14px; }
.alloc-row { display: grid; grid-template-columns: 8px 1fr auto auto; align-items: center; gap: 10px; }
.alloc-row .num { text-align: right; }
.alloc-row i { margin-right: 0; }
.alloc-row i, .kind-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; flex: none; }
.hold { border-bottom: 1px solid var(--line); }
.hold:last-child { border-bottom: 0; }
.hold > .list-item { border-bottom: 0; }
.hold.open { background: rgba(240,185,11,.04); }
.hold-more { padding: 0 2px 12px 20px; }
.hold-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); margin-bottom: 6px; }
.hold-stats b { color: var(--text); }
.kind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
.kind-grid .btn { justify-content: center; }
.kind-grid .btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.fab {
  position: fixed; right: max(16px, calc(50% - 280px + 16px)); bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 20;
  width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--gold); color: var(--on-gold); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.auth-form select { height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); padding: 0 10px; }
#assets-body { padding-bottom: 72px; }
@media (max-width: 400px) { .alloc { flex-direction: column; align-items: stretch; } .donut { margin: 0 auto; } }
/* guide: feature areas with collapsible sub-sections */
.guide-index { flex-wrap: wrap; overflow: visible; }
.guide-area { scroll-margin-top: 12px; }
.guide-area > h2 { font-size: 17px; margin-bottom: 2px; color: var(--gold); }
.guide-area > p { margin: 0 0 6px; }
details.guide-sub { border-top: 1px solid var(--line); }
details.guide-sub > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 11px 0; font-weight: 600; font-size: 14.5px; }
details.guide-sub > summary::-webkit-details-marker { display: none; }
details.guide-sub > summary::after { content: "＋"; color: var(--gold); }
details.guide-sub[open] > summary::after { content: "－"; }
details.guide-sub > .note { padding-bottom: 10px; }
.guide-area code { font-size: 12px; background: var(--card-2); padding: 1px 4px; border-radius: 4px; }

/* administrator: member search and invite codes */
.admin-search {
  width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); padding: 0 12px; font-size: 14px; margin-bottom: 8px;
}
.admin-search:focus { outline: none; border-color: var(--gold); }
.invite-fresh { margin-top: 10px; padding: 10px; border: 1px dashed var(--gold); border-radius: 8px; display: grid; gap: 8px; }
.invite-code { gap: 8px; flex-wrap: wrap; }
.invite-code code { font-size: 15px; letter-spacing: .5px; color: var(--gold); user-select: all; }

/* "how has each signal done here" summary on the symbol page */
.track { display: grid; gap: 12px; }
.track-row { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.track-row:last-child { border-bottom: 0; padding-bottom: 0; }
.track-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.track-cell { background: var(--surface); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }

/* account: one place for every alert switch; admin tools folded at the end */
.setting-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.setting-row > div:first-child { flex: 1; }
.admin-fold { margin: 12px 0; }
.admin-fold > summary { cursor: pointer; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; }
.admin-fold[open] > summary { margin-bottom: 12px; }
