[hidden] { display: none !important; }

:root {
  --bg: #05070b;
  --panel: #0b1018;
  --panel2: #101723;
  --panel3: #141d2b;
  --line: rgba(128, 154, 187, 0.22);
  --text: #e8f0fb;
  --muted: #8e9eb4;
  --green: #21d07a;
  --red: #ff4e64;
  --amber: #f0b84b;
  --blue: #5fb5ff;
  --purple: #a88cff;
  --cyan: #5ff3ff;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
}

.brand-logo {
  padding: 4px;
  overflow: hidden;
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { overflow-x: hidden; }
button, input, select { font: inherit; }
button { border: 1px solid var(--line); background: linear-gradient(180deg, #162033, #0d1420); color: var(--text); border-radius: 10px; padding: 10px 13px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
button:hover { border-color: rgba(95,181,255,.55); transform: translateY(-1px); }
button:active { transform: translateY(0); }
button.primary { border-color: rgba(33,208,122,.45); background: linear-gradient(180deg, #1fae6a, #0b6d45); color: white; font-weight: 800; }
button.danger { border-color: rgba(255,78,100,.45); background: linear-gradient(180deg, #431923, #211017); color: #ffd7dd; }
button.wide { width: 100%; margin-bottom: 9px; }

.boot-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 25% 10%, rgba(95,181,255,.22), transparent 35%), radial-gradient(circle at 80% 25%, rgba(33,208,122,.17), transparent 32%), linear-gradient(135deg, #05070b, #0c111b 60%, #05070b); }
.boot-card { width: min(760px, 94vw); padding: 42px; border: 1px solid var(--line); border-radius: 28px; background: rgba(8,13,22,.78); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.terminal-kicker { color: var(--cyan); font-size: 12px; letter-spacing: .24em; font-weight: 900; }
.boot-card h1 { font-size: clamp(3.2rem, 10vw, 7rem); margin: 7px 0 10px; letter-spacing: -.07em; line-height: .88; }
.lede { color: #b9c8dc; max-width: 620px; font-size: 1.08rem; line-height: 1.55; }
.boot-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.import-label, .import-inline { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #101723; color: var(--text); border-radius: 10px; padding: 10px 13px; cursor: pointer; }
.import-label input, .import-inline input { display: none; }
.import-inline { width: 100%; margin-bottom: 9px; }
.fineprint { font-size: .84rem; color: var(--muted); margin-top: 22px; }

.app-shell { min-height: 100vh; background: radial-gradient(circle at top left, rgba(31,91,145,.20), transparent 35%), linear-gradient(180deg, #070a10, #05070b 420px); }
.topbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto minmax(360px, 1fr); gap: 18px; align-items: center; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(5,7,11,.9); backdrop-filter: blur(18px); }
.brand-block { display: flex; gap: 13px; align-items: center; }

/** .brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #1fae6a, #1a4c90); font-weight: 950; letter-spacing: -.08em; box-shadow: 0 0 32px rgba(95,181,255,.16); }
 **/
.brand-mark {
  width: 102px;
  height: 102px;
  min-width: 102px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-block h1 { margin: 0; line-height: 1; font-size: 1.35rem; letter-spacing: -.04em; }
.brand-block p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.session-block { text-align: center; }
.session-date { font-weight: 900; font-size: 1.05rem; }
.session-status { color: var(--amber); font-size: .74rem; letter-spacing: .16em; font-weight: 900; margin-top: 4px; }
.top-actions { display: flex; gap: 9px; justify-content: flex-end; flex-wrap: wrap; }

.ticker-tape { border-bottom: 1px solid var(--line); padding: 8px 18px; white-space: nowrap; overflow: hidden; color: #cfd9e8; font-size: .82rem; background: #070b12; }
.ticker-inner { display: inline-flex; gap: 22px; animation: tape 50s linear infinite; }
.headline-tape { border-bottom: 1px solid var(--line); padding: 7px 18px; white-space: nowrap; overflow: hidden; color: #b8c5d8; font-size: .78rem; background: linear-gradient(90deg, #090e16, #0c1420 50%, #090e16); }
.headline-inner { display: inline-flex; gap: 34px; animation: newsTape 82s linear infinite; }
.headline-item strong { color: var(--amber); margin-right: 6px; letter-spacing: .08em; text-transform: uppercase; }
@keyframes newsTape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item strong { color: white; }
.ticker-item .up { color: var(--green); }
.ticker-item .down { color: var(--red); }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.dashboard { display: grid; grid-template-columns: 280px minmax(0, 1fr) 390px; gap: 14px; padding: 14px; }
.panel { background: linear-gradient(180deg, rgba(16,23,35,.96), rgba(9,14,22,.96)); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 38px rgba(0,0,0,.22); overflow: hidden; }
.panel-title { padding: 13px 14px; border-bottom: 1px solid var(--line); color: #c6d3e5; font-size: .77rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 950; }
.left-rail, .right-rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.center-stage { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.portfolio-metric { padding: 14px; border-bottom: 1px solid var(--line); }
.portfolio-metric span, .portfolio-grid span, .estimated-box span { display: block; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.portfolio-metric strong { display: block; font-size: 2rem; margin-top: 4px; letter-spacing: -.05em; }
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.portfolio-grid div { padding: 12px; background: rgba(10,16,25,.9); }
.portfolio-grid strong { display: block; margin-top: 5px; font-size: 1rem; }

.indexes { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.index-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.index-row strong { font-size: .89rem; }
.index-row span { color: var(--muted); font-size: .75rem; }
.index-change.up, .pos { color: var(--green) !important; }
.index-change.down, .neg { color: var(--red) !important; }

.mega-list { padding: 9px; display: flex; flex-direction: column; gap: 7px; }
.mega-row { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px; text-align: left; border-radius: 12px; }
.mega-row.active, .mega-row:hover { border-color: rgba(95,181,255,.55); background: rgba(95,181,255,.10); }
.mega-row .rank { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(95,181,255,.14); color: #b9dcff; font-size: .72rem; font-weight: 950; }
.mega-row small { display: block; max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.mega-price { text-align: right; font-weight: 950; font-size: .82rem; }
.mega-price em { display: block; font-style: normal; font-size: .72rem; margin-top: 2px; }

.listing-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.listing-toolbar select { width: min(260px, 45vw); }
.listings-table-wrap { max-height: 450px; }
.stock-row { cursor: pointer; }
.stock-row:hover { background: rgba(95,181,255,.07); }
.stock-row.selected { background: rgba(33,208,122,.08); outline: 1px solid rgba(33,208,122,.25); }
.company-cell { text-align: left !important; white-space: normal; min-width: 210px; }
.company-cell small { color: var(--muted); }

.sentiment-bars { padding: 12px; display: flex; flex-direction: column; gap: 11px; }
.sentiment-row { display: grid; grid-template-columns: 105px 1fr 44px; gap: 8px; align-items: center; font-size: .78rem; }
.bar-track { height: 8px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--amber), var(--green)); }
.file-panel { padding-bottom: 12px; }
.file-panel .panel-title { margin-bottom: 10px; }
.file-panel button, .file-panel .import-inline { width: calc(100% - 24px); margin-left: 12px; margin-right: 12px; }

.market-hero { min-height: 680px; }
.security-left { min-width: 0; display: flex; flex-direction: column; }
.hero-head { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: stretch; }
.security-search { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 10px; padding: 14px; }
input, select { border: 1px solid var(--line); border-radius: 10px; background: #070b12; color: var(--text); padding: 10px 11px; min-width: 0; }
input:focus, select:focus { outline: none; border-color: rgba(95,181,255,.65); box-shadow: 0 0 0 3px rgba(95,181,255,.08); }
.security-snapshot { flex: 1; display: flex; flex-direction: column; margin: 0 14px 14px; border: 1px solid rgba(128,154,187,.18); border-radius: 15px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); overflow: hidden; }
.security-snapshot-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid rgba(128,154,187,.14); }
.security-snapshot-head span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 950; }
.security-snapshot-head strong { font-size: .78rem; letter-spacing: .02em; }
.security-snapshot-grid { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(128,154,187,.12); }
.security-snapshot-cell { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 10px 11px; background: rgba(7,11,18,.78); }
.security-snapshot-cell span { display: block; color: var(--muted); font-size: .63rem; text-transform: uppercase; letter-spacing: .10em; font-weight: 900; }
.security-snapshot-cell strong { display: block; margin-top: 4px; color: #dbe7f5; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-card { padding: 14px; border-left: 1px solid var(--line); background: rgba(255,255,255,.025); }
.quote-symbol { font-size: 1.25rem; font-weight: 950; letter-spacing: -.02em; }
.quote-name { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.quote-price { font-size: 2.1rem; margin-top: 12px; font-weight: 950; letter-spacing: -.06em; }
.quote-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; font-size: .78rem; }
.quote-meta div { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.quote-meta span { color: var(--muted); display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }

.chart-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 0 14px 10px; }
.chart-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.selected-title { color: #dbe7f5; font-weight: 900; }
.chart-range { display: flex; gap: 6px; }
.chart-range button { padding: 7px 10px; font-size: .75rem; }
.chart-range button.active { background: #20334d; border-color: rgba(95,181,255,.55); }
.chart-expand-toggle { padding: 7px 10px; font-size: .75rem; white-space: nowrap; border-color: rgba(95,181,255,.32); color: #dbeeff; }
#chartCanvas { width: 100%; height: 500px; display: block; border-top: 1px solid var(--line); background: linear-gradient(180deg, #07101d, #050810); }
.market-hero.chart-expanded #chartCanvas { height: 690px; }
.market-hero.chart-expanded .chart-expand-toggle { background: #20334d; border-color: rgba(95,181,255,.65); }

.trade-panel { padding-bottom: 14px; }
.trade-grid { display: grid; grid-template-columns: 1.1fr 1.1fr .85fr .85fr .85fr 1fr auto; gap: 10px; align-items: end; padding: 14px; }
.trade-grid label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 900; }
.estimated-box { border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; background: rgba(255,255,255,.035); }
.estimated-box strong { display: block; margin-top: 3px; font-size: 1rem; }
.execute { height: 42px; min-width: 138px; padding-left: 16px; padding-right: 16px; white-space: nowrap; justify-self: stretch; }
.trade-message { min-height: 22px; padding: 0 14px; color: var(--amber); font-weight: 800; font-size: .86rem; }

.split-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.table-wrap { overflow: auto; max-height: 330px; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { padding: 9px 10px; border-bottom: 1px solid rgba(128,154,187,.12); white-space: nowrap; text-align: right; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; background: rgba(255,255,255,.025); position: sticky; top: 0; z-index: 2; }
.empty { color: var(--muted); text-align: center !important; padding: 20px; }

.news-panel { min-height: 500px; }
.news-tabs { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); }
.news-tab { padding: 7px 9px; font-size: .72rem; }
.news-tab.active { background: #20334d; border-color: rgba(95,181,255,.55); }
.newswire { max-height: 660px; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.news-item { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); padding: 11px; }
.news-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 7px; }
.news-source { color: var(--cyan); font-weight: 950; font-size: .72rem; letter-spacing: .08em; }
.news-tier { border-radius: 999px; padding: 3px 7px; font-size: .65rem; font-weight: 950; }
.news-tier.MAJOR { background: rgba(255,78,100,.16); color: #ffb2bd; border: 1px solid rgba(255,78,100,.36); }
.news-tier.MEDIUM { background: rgba(240,184,75,.16); color: #ffd996; border: 1px solid rgba(240,184,75,.34); }
.news-tier.LOW { background: rgba(95,181,255,.13); color: #b5ddff; border: 1px solid rgba(95,181,255,.30); }
.news-headline { font-weight: 900; line-height: 1.25; }
.news-summary { margin-top: 6px; color: #aebbd0; font-size: .8rem; line-height: 1.35; }
.news-meta { margin-top: 8px; color: var(--muted); font-size: .72rem; display: flex; justify-content: space-between; gap: 8px; }

.movers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.movers-grid > div { background: rgba(10,16,25,.92); padding: 12px; }
.movers-grid h3 { margin: 0 0 9px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.mover { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(128,154,187,.12); font-size: .8rem; }
.mover:last-child { border-bottom: none; }

.earnings-list { max-height: 360px; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.earnings-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; text-align: left; border-radius: 13px; padding: 10px; background: rgba(255,255,255,.028); }
.earnings-row:hover { border-color: rgba(240,184,75,.48); background: rgba(240,184,75,.08); }
.earnings-row strong { font-size: .9rem; }
.earnings-row em { display: block; color: var(--muted); font-style: normal; font-size: .74rem; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.earnings-row small { grid-column: 1 / -1; color: #aebbd0; font-size: .72rem; line-height: 1.25; }
.earnings-tag { border: 1px solid rgba(240,184,75,.35); color: #ffd996; border-radius: 999px; padding: 4px 8px; font-size: .72rem; font-weight: 950; background: rgba(240,184,75,.12); }

.notes { padding: 13px; color: #b7c4d7; font-size: .83rem; line-height: 1.45; }
.notes strong { color: white; }

.flash { animation: flash .9s ease; }
@keyframes flash { 0% { background-color: rgba(95,181,255,.22); } 100% { background-color: transparent; } }

@media (max-width: 1450px) {
  .dashboard { grid-template-columns: 250px minmax(0, 1fr); }
  .right-rail { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr .8fr .8fr; }
  .newswire { max-height: 420px; }
}
@media (max-width: 1000px) {
  .topbar { grid-template-columns: 1fr; align-items: start; }
  .session-block { text-align: left; }
  .top-actions { justify-content: flex-start; }
  .dashboard { grid-template-columns: 1fr; }
  .left-rail, .right-rail { grid-column: auto; display: flex; }
  .hero-head, .trade-grid, .split-grid { grid-template-columns: 1fr; }
  .security-snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-toolbar { flex-direction: column; align-items: flex-start; }
  .listing-toolbar select { width: 100%; }
  .quote-card { border-left: none; border-top: 1px solid var(--line); }
  .security-search { grid-template-columns: 1fr; }
  #chartCanvas { height: 380px; }
  .market-hero.chart-expanded #chartCanvas { height: 520px; }
}
@media (max-width: 600px) {
  .boot-card { padding: 28px; }
  .topbar { padding: 12px; }
  .dashboard { padding: 10px; }
  .portfolio-grid, .movers-grid { grid-template-columns: 1fr; }
  .chart-toolbar { flex-direction: column; align-items: flex-start; }
  .chart-actions { justify-content: flex-start; }
  .security-snapshot-grid { grid-template-columns: 1fr; }
}

/* v0.3.1 fundamentals and earnings detail panels */
.fundamentals-split { grid-template-columns: .95fr 1.05fr; }
.fundamentals-card, .earnings-detail { padding: 13px; }
.fundamental-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.fundamental-cell { border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 13px; padding: 10px; min-width: 0; }
.fundamental-cell span { display: block; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; }
.fundamental-cell strong { display: block; margin-top: 5px; font-size: 1rem; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fundamentals-note { margin-top: 10px; color: #aebbd0; font-size: .78rem; line-height: 1.4; }
.earnings-detail-head { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.earnings-detail-head strong { font-size: .95rem; }
.earnings-detail-head span { color: var(--muted); font-size: .78rem; }
.earnings-history-list { display: flex; flex-direction: column; gap: 8px; max-height: 315px; overflow: auto; }
.earnings-history-item { border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 13px; padding: 10px; }
.earnings-history-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 6px; }
.earnings-history-top strong { font-size: .86rem; }
.earnings-history-top em { font-style: normal; font-weight: 950; }
.earnings-history-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; color: #aebbd0; font-size: .73rem; }
.earnings-history-meta span { display: block; color: var(--muted); font-size: .61rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 900; }
.option-close-btn { padding: 6px 8px; font-size: .68rem; border-radius: 8px; }

@media (max-width: 1000px) {
  .fundamentals-split, .fundamental-grid, .earnings-history-meta { grid-template-columns: 1fr; }
}
.quote-earnings-mini { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.quote-earnings-mini > span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.quote-earnings-mini div { display: flex; justify-content: space-between; gap: 8px; font-size: .73rem; color: #aebbd0; }
.quote-earnings-mini strong { color: #dbe7f5; }
.quote-earnings-mini div span { text-align: right; }


/* v0.3.2 help link and ad-ready hooks */
a.help-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(95,181,255,.38);
  background: rgba(95,181,255,.08);
  color: #dbeeff;
  border-radius: 10px;
  padding: 10px 13px;
  text-decoration: none;
  font-weight: 900;
  font-size: .86rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
a.help-link:hover { border-color: rgba(95,181,255,.7); background: rgba(95,181,255,.14); transform: translateY(-1px); }
.boot-help { background: #101723; color: var(--text); }
.ad-slot {
  border: 1px dashed rgba(128,154,187,.35);
  background: rgba(255,255,255,.025);
  color: var(--muted);
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  font-weight: 900;
}
.ad-slot-top { margin: 10px 14px 0; min-height: 90px; }
.ad-slot-rail { min-height: 250px; }
.help-page { min-height: 100vh; background: radial-gradient(circle at 20% 0%, rgba(95,181,255,.20), transparent 32%), linear-gradient(180deg, #070a10, #05070b 460px); }
.help-header { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: rgba(5,7,11,.92); backdrop-filter: blur(18px); }
.help-brand { display: flex; align-items: center; gap: 13px; }
.help-brand h1 { margin: 0; font-size: 1.2rem; letter-spacing: -.04em; }
.help-brand p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.help-main { width: min(1180px, 94vw); margin: 0 auto; padding: 28px 0 54px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; }
.help-nav { position: sticky; top: 86px; align-self: start; border: 1px solid var(--line); border-radius: 18px; background: rgba(16,23,35,.82); overflow: hidden; }
.help-nav a { display: block; color: #cbd8e8; text-decoration: none; padding: 11px 13px; border-bottom: 1px solid rgba(128,154,187,.12); font-size: .85rem; }
.help-nav a:hover { background: rgba(95,181,255,.10); color: white; }
.help-content { display: flex; flex-direction: column; gap: 16px; }
.help-card { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(16,23,35,.96), rgba(9,14,22,.96)); box-shadow: 0 12px 38px rgba(0,0,0,.22); padding: 20px; }
.help-card h2 { margin: 0 0 10px; font-size: 1.35rem; letter-spacing: -.04em; }
.help-card h3 { margin: 18px 0 8px; color: #dbe7f5; }
.help-card p, .help-card li { color: #b9c8dc; line-height: 1.55; }
.help-card code { background: rgba(255,255,255,.06); border: 1px solid rgba(128,154,187,.18); border-radius: 6px; padding: 2px 5px; color: #e8f0fb; }
.help-card ul, .help-card ol { margin-top: 8px; padding-left: 22px; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.help-mini { border: 1px solid rgba(128,154,187,.18); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.025); }
.help-mini strong { display: block; margin-bottom: 5px; color: white; }
.help-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.help-table th, .help-table td { text-align: left; white-space: normal; vertical-align: top; }
.help-callout { border-left: 4px solid var(--amber); background: rgba(240,184,75,.08); padding: 12px 14px; border-radius: 12px; color: #e8d2a6; }
@media (max-width: 900px) {
  .help-main { grid-template-columns: 1fr; }
  .help-nav { position: static; }
  .help-grid { grid-template-columns: 1fr; }
  .help-header { align-items: flex-start; flex-direction: column; }
}
