:root {
  color-scheme: dark;
  --bg: #060a11;
  --bg-soft: #09101a;
  --panel: rgba(12, 19, 30, .88);
  --panel-solid: #0d141f;
  --panel-2: #101927;
  --line: rgba(255,255,255,.085);
  --line-strong: rgba(255,255,255,.16);
  --text: #f4f8fc;
  --muted: #91a0b5;
  --subtle: #627087;
  --blue: #7aa7ff;
  --green: #59d7a5;
  --green-2: #9af3cd;
  --amber: #f2bd68;
  --purple: #b58cff;
  --red: #f0777e;
  --gray: #7f8a9b;
  --shadow: 0 18px 70px rgba(0,0,0,.30);
}

* { box-sizing: border-box; }
html { min-height:100%; scroll-behavior:smooth; background:var(--bg); }
body {
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% -2%, rgba(57,120,181,.17), transparent 32rem),
    radial-gradient(circle at 90% 12%, rgba(56,179,146,.10), transparent 28rem),
    linear-gradient(180deg, #060a11 0%, #07101a 48%, #060a11 100%);
}
body::before {
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.25;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,.5) 0 1px, transparent 1.2px),
    radial-gradient(circle at 72% 14%, rgba(255,255,255,.35) 0 1px, transparent 1.2px),
    radial-gradient(circle at 84% 65%, rgba(255,255,255,.24) 0 1px, transparent 1.2px),
    radial-gradient(circle at 26% 75%, rgba(255,255,255,.20) 0 1px, transparent 1.2px);
  background-size:330px 330px, 420px 420px, 520px 520px, 620px 620px;
}

a { color:inherit; }
button, input, select { font:inherit; }
button, select { -webkit-tap-highlight-color:transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible {
  outline:2px solid rgba(122,167,255,.72);
  outline-offset:2px;
}

.topbar {
  position:sticky;
  top:0;
  z-index:40;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:0 max(24px, calc((100vw - 1480px) / 2));
  border-bottom:1px solid var(--line);
  background:rgba(6,10,17,.82);
  backdrop-filter:blur(20px);
}
.brand { display:flex; align-items:center; gap:11px; text-decoration:none; }
.brand-mark {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid var(--line-strong);
  border-radius:11px;
  background:linear-gradient(145deg, rgba(89,215,165,.13), rgba(122,167,255,.06));
  box-shadow:inset 0 0 18px rgba(89,215,165,.05);
}
.brand-mark svg { width:23px; height:23px; fill:var(--green); }
.brand-mark .brand-orbit { fill:none; stroke:var(--blue); stroke-width:1.6; stroke-linecap:round; }
.brand-copy { display:flex; flex-direction:column; line-height:1.02; }
.brand-copy strong { font-size:12px; font-weight:850; letter-spacing:.15em; }
.brand-copy small { margin-top:5px; color:#708198; font-size:7.5px; font-weight:800; letter-spacing:.13em; }
.public-nav { display:flex; align-items:center; gap:5px; color:#94a2b5; font-size:12px; }
.public-nav a { padding:9px 11px; border-radius:9px; text-decoration:none; }
.public-nav a:hover { color:#fff; background:rgba(255,255,255,.045); }
.public-nav .starchill-link {
  margin-left:6px;
  border:1px solid rgba(89,215,165,.20);
  color:#bdeedb;
  background:rgba(89,215,165,.045);
}

main { width:min(1480px, calc(100% - 48px)); margin:0 auto; padding:64px 0 34px; }
.hero { display:flex; align-items:flex-end; justify-content:space-between; gap:44px; }
.hero-copy { max-width:940px; }
.eyebrow, .section-kicker { margin:0 0 11px; color:var(--green); font-size:9px; font-weight:850; letter-spacing:.18em; }
.hero h1 { margin:0; font-size:clamp(48px,5.2vw,78px); line-height:.94; letter-spacing:-.058em; max-width:950px; }
.hero h1 span { color:#aebbd0; }
.lede { margin:20px 0 0; max-width:730px; color:#96a5b9; font-size:15px; line-height:1.6; }
.creator-pill {
  width:max-content;
  margin-top:24px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px 8px 8px;
  border:1px solid rgba(122,167,255,.15);
  border-radius:999px;
  background:rgba(13,20,31,.76);
  color:#d4deeb;
  text-decoration:none;
  transition:border-color .14s ease, transform .14s ease, background .14s ease;
}
.creator-pill:hover { transform:translateY(-1px); border-color:rgba(89,215,165,.34); background:rgba(16,25,39,.92); }
.creator-avatar { width:31px; height:31px; display:grid; place-items:center; border-radius:50%; color:#06120d; background:linear-gradient(135deg,var(--green),#8bc5ff); font-size:13px; }
.creator-pill > span:nth-child(2) { display:flex; flex-direction:column; gap:2px; }
.creator-pill small { color:#71829a; font-size:6.5px; font-weight:850; letter-spacing:.14em; }
.creator-pill strong { font-size:10px; font-weight:800; }
.creator-arrow { margin-left:4px; color:#7f91a8; font-size:8px; }
.update-pill {
  flex:0 0 auto;
  min-width:195px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:13px 15px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(13,19,30,.72);
  box-shadow:var(--shadow);
}
.update-pill > span { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 17px rgba(89,215,165,.64); }
.update-pill div { display:flex; flex-direction:column; gap:4px; }
.update-pill small { color:#6e7e95; font-size:7px; font-weight:850; letter-spacing:.13em; }
.update-pill strong { font-size:10px; font-weight:720; }

.stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin-top:44px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:15px;
  background:rgba(12,19,30,.72);
  box-shadow:0 10px 40px rgba(0,0,0,.12);
}
.stat-card {
  appearance:none;
  min-height:92px;
  padding:18px 20px;
  border:0;
  border-right:1px solid var(--line);
  color:inherit;
  background:transparent;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  text-align:left;
}
button.stat-card { cursor:pointer; transition:background .14s ease; }
button.stat-card:hover { background:linear-gradient(180deg,rgba(122,167,255,.055),rgba(89,215,165,.025)); }
.stat-card:last-child { border-right:0; }
.stat-card small { color:#65758c; font-size:7px; font-weight:850; letter-spacing:.13em; }
.stat-card strong { margin-top:8px; font-size:24px; line-height:1; letter-spacing:-.045em; }
.stat-card > span { margin-top:6px; color:#687991; font-size:8px; }

.workspace { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:16px; margin-top:16px; align-items:start; scroll-margin-top:90px; }
.chart-panel, .detail-panel, .recent-panel {
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(12,19,30,.82);
  box-shadow:0 12px 45px rgba(0,0,0,.16);
  overflow:hidden;
}
.panel-head { min-height:78px; padding:18px 20px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid var(--line); }
.panel-head h2 { margin:0; font-size:17px; letter-spacing:-.025em; }
.section-kicker { margin-bottom:7px; color:#71839b; }
.legend { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:11px; color:#8595aa; font-size:8px; }
.legend-item { display:flex; align-items:center; gap:5px; white-space:nowrap; }
.legend-swatch { width:7px; height:7px; border-radius:50%; }
.legend-shape { width:8px; height:8px; display:inline-block; border:1.3px solid #c5d0de; background:rgba(196,207,223,.10); }
.legend-shape.circle { border-radius:50%; }
.legend-shape.diamond { transform:rotate(45deg) scale(.78); }
.legend-shape.square { border-radius:1px; }
.legend-event { width:10px; height:7px; border:1px solid rgba(122,167,255,.28); border-radius:2px; background:rgba(122,167,255,.08); }
.legend-remove { color:var(--red); font-size:13px; font-weight:850; line-height:7px; }

.filter-shell { padding:12px 14px 13px; border-bottom:1px solid var(--line); background:rgba(7,12,20,.28); }
.filter-label { margin:0 0 7px 2px; color:#6e8098; font-size:7px; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.toolbar.public-filters { display:grid; grid-template-columns:minmax(250px,1.5fr) repeat(4,minmax(130px,.85fr)); gap:8px; }
.searchbox { position:relative; display:flex; align-items:center; }
.searchbox svg { position:absolute; left:11px; width:15px; height:15px; fill:#68778c; pointer-events:none; }
.searchbox input, .toolbar select, .sort-control select {
  width:100%;
  height:39px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#09101a;
  color:#c0cbd8;
  outline:none;
}
.searchbox input { padding:0 12px 0 35px; color:#eef3f9; }
.toolbar select, .sort-control select { padding:0 30px 0 10px; }
.searchbox input::placeholder { color:#5f6e82; }
.searchbox input:hover, .toolbar select:hover, .sort-control select:hover { border-color:rgba(255,255,255,.15); }
.searchbox input:focus, .toolbar select:focus, .sort-control select:focus { border-color:rgba(122,167,255,.42); box-shadow:0 0 0 3px rgba(122,167,255,.06); }

.top-pagination {
  min-height:58px;
  padding:9px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(90deg,rgba(122,167,255,.065),rgba(89,215,165,.018));
}
.result-summary { display:flex; align-items:baseline; gap:10px; min-width:0; flex-wrap:wrap; }
.result-summary small { color:#6f83a0; font-size:7px; font-weight:850; letter-spacing:.14em; }
.result-summary strong { font-size:14px; color:#fff; letter-spacing:-.02em; white-space:nowrap; }
.result-summary > span { padding:4px 8px; border:1px solid var(--line); border-radius:999px; color:#93a4ba; background:#09111c; font-size:8px; white-space:nowrap; }
.results-actions { display:flex; align-items:center; gap:10px; margin-left:auto; }
.sort-control { display:flex; align-items:center; gap:7px; color:#6f8097; font-size:8px; font-weight:760; white-space:nowrap; }
.sort-control select { width:150px; height:32px; font-size:8px; }
.pager { display:flex; align-items:center; gap:7px; }
.pager-button, .mini-toggle {
  appearance:none;
  border:1px solid var(--line);
  border-radius:8px;
  background:#09101a;
  color:#9eacbe;
  cursor:pointer;
}
.pager-button { height:32px; min-width:82px; padding:0 10px; font-size:8px; }
.pager-button:hover:not(:disabled), .mini-toggle:hover { color:#fff; border-color:rgba(122,167,255,.35); }
.pager-button:disabled { opacity:.32; cursor:default; }
.event-filter-pill {
  appearance:none;
  max-width:360px;
  padding:5px 9px;
  border:1px solid rgba(122,167,255,.28);
  border-radius:999px;
  background:rgba(122,167,255,.09);
  color:#cad8ec;
  font-size:8px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  cursor:pointer;
}
.event-filter-pill:hover { border-color:rgba(122,167,255,.52); color:#fff; }

.chart-wrap { position:relative; height:560px; min-height:520px; overflow:hidden; }
#chart { width:100%; height:100%; display:block; overflow:visible; }
.grid-line { stroke:rgba(255,255,255,.055); stroke-width:1; }
.axis-line { stroke:rgba(255,255,255,.12); stroke-width:1; }
.axis-label { fill:#617087; font-size:9px; }
.ship-line { fill:none; stroke-width:1.5; opacity:.25; vector-effect:non-scaling-stroke; transition:opacity .12s, stroke-width .12s; }
.ship-line.active { opacity:.98; stroke-width:2.5; }
.ship-line-hit { stroke:transparent; stroke-width:12; fill:none; cursor:pointer; }
.price-jump { stroke-width:2; opacity:.58; vector-effect:non-scaling-stroke; }
.price-jump.active { stroke-width:3; opacity:1; }
.current-point { stroke:#06101a; stroke-width:1.4; cursor:pointer; }
.current-hit, .history-point { cursor:pointer; }
.start-point, .start-plus, .removed-mark { pointer-events:none; }
.start-plus { fill:#d8ffeb; font-size:10px; font-weight:850; }
.removed-mark { stroke:var(--red); stroke-width:2.4; vector-effect:non-scaling-stroke; }
.event-band { fill:rgba(122,167,255,.042); stroke:rgba(122,167,255,.10); stroke-width:1; cursor:pointer; transition:opacity .12s, stroke .12s; }
.event-free_fly { fill:rgba(89,215,165,.045); stroke:rgba(89,215,165,.12); }
.event-holiday { fill:rgba(242,189,104,.045); stroke:rgba(242,189,104,.12); }
.event-showdown { fill:rgba(181,140,255,.045); stroke:rgba(181,140,255,.12); }
.event-band:hover, .event-band.active { opacity:.96; stroke:rgba(149,190,255,.55); stroke-width:1.5; }
.event-label { fill:#8498b2; font-size:7.5px; font-weight:750; letter-spacing:.025em; cursor:pointer; pointer-events:all; user-select:none; }
.event-label:hover, .event-label.active { fill:#e0e9f5; font-weight:850; }
.bubble-string { opacity:.46; stroke-width:1; vector-effect:non-scaling-stroke; pointer-events:none; }
.bubble-string.active { opacity:.96; stroke-width:1.6; }
.ship-image-marker { cursor:pointer; }
.ship-image-marker:hover, .ship-image-marker.active { filter:drop-shadow(0 0 7px rgba(122,167,255,.38)); }
.bubble-ring { pointer-events:all; }
.bubble-hit { cursor:pointer; pointer-events:all; }

.tooltip { position:absolute; z-index:15; min-width:220px; max-width:290px; padding:10px; border:1px solid var(--line-strong); border-radius:12px; background:rgba(8,14,23,.97); box-shadow:0 18px 50px rgba(0,0,0,.48); pointer-events:none; }
.tooltip-row { display:flex; align-items:center; gap:10px; }
.tooltip img { width:64px; height:42px; border-radius:8px; object-fit:cover; background:#111a28; }
.tooltip strong { display:block; font-size:12px; }
.tooltip small { display:block; margin-top:4px; color:var(--muted); font-size:9px; }
.tooltip-state { display:flex; flex-direction:column; gap:3px; margin-top:9px; padding-top:8px; border-top:1px solid var(--line); color:var(--muted); font-size:8px; }
.tooltip-price { margin-top:9px; display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:9px; }
.tooltip-price b { color:var(--text); font-size:13px; }
.empty-state { position:absolute; inset:0; display:grid; place-items:center; color:#6f7e93; font-size:12px; }

.public-chart-footer {
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:8px 14px;
  border-top:1px solid var(--line);
  color:#697990;
  font-size:8px;
}
.chart-help { line-height:1.45; }
.chart-utilities { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.catalog-switch { display:flex; align-items:center; gap:5px; }
.catalog-switch > span { margin-right:2px; color:#63738a; font-size:7px; font-weight:800; text-transform:uppercase; letter-spacing:.09em; }
.mini-toggle { height:25px; padding:0 8px; font-size:7.5px; white-space:nowrap; }
.mini-toggle.active, .mini-toggle[aria-pressed="true"] { color:#e8fff4; border-color:rgba(89,215,165,.30); background:rgba(89,215,165,.075); }

.detail-panel { min-height:0; overflow:hidden; }
.mover-browser { min-height:0; height:100%; display:flex; flex-direction:column; overflow:hidden; }
.mover-head { padding:18px 18px 8px; display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.mover-head h3 { margin:0; font-size:17px; letter-spacing:-.02em; }
.mover-head > span { min-width:28px; height:28px; display:grid; place-items:center; border:1px solid var(--line); border-radius:999px; color:#8899ae; font-size:8px; }
.mover-intro { margin:0; padding:0 18px 12px; color:#6f7f94; font-size:9px; line-height:1.45; border-bottom:1px solid var(--line); }
.mover-list { min-height:0; flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#253247 transparent; }
.mover-list::-webkit-scrollbar, .detail-scroll::-webkit-scrollbar { width:7px; }
.mover-list::-webkit-scrollbar-thumb, .detail-scroll::-webkit-scrollbar-thumb { background:#253247; border-radius:99px; }
.mover-row {
  appearance:none;
  width:100%;
  min-height:63px;
  display:grid;
  grid-template-columns:64px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border:0;
  border-bottom:1px solid var(--line);
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.mover-row:hover { background:rgba(122,167,255,.045); }
.mover-row img { width:64px; height:43px; border-radius:8px; object-fit:cover; background:#111a28; }
.mover-copy { min-width:0; }
.mover-copy strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.mover-copy small { display:block; margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#6f8094; font-size:7.5px; }
.mover-delta { max-width:86px; text-align:right; color:#8c9bb0; font-size:7.5px; line-height:1.25; }
.mover-delta.up { color:var(--green); }
.mover-delta.down, .mover-delta.removed { color:var(--red); }

.detail-content { height:100%; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
.detail-back { appearance:none; flex:0 0 auto; width:100%; height:37px; padding:0 14px; border:0; border-bottom:1px solid var(--line); background:#09101a; color:#8d9cb0; text-align:left; font-size:8px; cursor:pointer; }
.detail-back:hover { color:#fff; }
.detail-scroll { min-height:0; flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; padding-bottom:12px; }
.detail-hero-compact { display:grid; grid-template-columns:132px minmax(0,1fr); gap:13px; padding:13px; border-bottom:1px solid var(--line); background:linear-gradient(145deg,rgba(122,167,255,.035),transparent); }
.detail-image-wrap { height:88px; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:#09101a; }
.detail-image-wrap img { width:100%; height:100%; object-fit:cover; }
.detail-title-block { min-width:0; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.detail-manufacturer { margin:0 0 4px; color:#8ca0ba; font-size:8px; font-weight:750; letter-spacing:.04em; }
.detail-title-block .section-kicker { margin-bottom:4px; font-size:7px; line-height:1.3; }
.detail-title-block h3 { margin:0; font-size:18px; letter-spacing:-.035em; line-height:1.05; }
.rsi-link { margin-top:8px; padding:4px 7px; border:1px solid var(--line); border-radius:6px; color:#8394aa; text-decoration:none; font-size:7px; }
.rsi-link:hover { color:#fff; border-color:rgba(122,167,255,.35); }
.rsi-link[hidden] { display:none !important; }
.detail-price.compact-price { margin:11px 13px; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:#09101a; display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.detail-price.compact-price > div { display:flex; flex-direction:column; gap:4px; }
.detail-price small, .detail-grid small { color:#68788f; font-size:6.7px; font-weight:850; letter-spacing:.1em; }
.detail-price strong { font-size:23px; line-height:1; letter-spacing:-.045em; }
.detail-price > span { max-width:110px; text-align:right; color:#75859a; font-size:7.5px; line-height:1.25; }
.delta-up { color:var(--green) !important; }
.delta-down { color:var(--red) !important; }
.detail-grid-public { display:grid; grid-template-columns:1fr 1fr; gap:1px; margin:0 13px 11px; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--line); }
.detail-grid-public > div { min-height:49px; padding:9px 10px; background:#09101a; display:flex; flex-direction:column; gap:5px; }
.detail-grid-public span { color:#c7d0dd; font-size:8.5px; line-height:1.25; }
.catalog-removed { color:var(--red) !important; }
.compact-availability { margin:0 13px 11px; }
.history-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:7px; }
.history-head h4 { margin:0; font-size:9px; }
.history-head span { color:#68788e; font-size:6.8px; text-align:right; }
.availability-grid { display:grid; grid-template-columns:1fr 1fr; gap:1px; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--line); }
.availability-grid > div { min-height:51px; padding:8px 9px; background:#09101a; display:flex; flex-direction:column; gap:5px; }
.availability-grid small { color:#66778f; font-size:6.2px; font-weight:850; letter-spacing:.08em; }
.availability-grid strong { color:#d6dfe9; font-size:9px; line-height:1.2; }
.detail-history-drawer { margin:0 13px 8px; border:1px solid var(--line); border-radius:9px; background:#09101a; overflow:hidden; }
.detail-history-drawer summary { min-height:34px; padding:0 10px; display:flex; align-items:center; justify-content:space-between; gap:8px; list-style:none; cursor:pointer; }
.detail-history-drawer summary::-webkit-details-marker { display:none; }
.detail-history-drawer summary span { font-size:8px; font-weight:760; }
.detail-history-drawer summary small { color:#64758c; font-size:6.5px; text-align:right; }
.detail-history-drawer[open] summary { border-bottom:1px solid var(--line); }
.price-history, .state-history { padding:0 10px; }
.history-row { display:grid; grid-template-columns:1fr auto; gap:8px; padding:7px 0; border-bottom:1px solid var(--line); }
.history-row:last-child { border-bottom:0; }
.history-row time { display:flex; flex-direction:column; gap:2px; color:#8a99ad; font-size:7px; }
.history-row time small { color:#5f7088; font-size:5.8px; text-transform:uppercase; letter-spacing:.08em; }
.history-row strong { font-size:8px; }
.state-row { display:grid; grid-template-columns:58px minmax(0,1.2fr) minmax(54px,.8fr) minmax(70px,1fr); gap:6px; align-items:center; padding:7px 0; border-bottom:1px solid var(--line); font-size:6.8px; }
.state-row:last-child { border-bottom:0; }
.state-row time { color:#5f7086; }
.state-raw { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#c0cad7; }
.state-sale { font-weight:740; }
.state-game { color:#7f8fa4; text-align:right; }
.state-row.empty { display:block; color:#68788e; }

.recent-panel { margin-top:16px; scroll-margin-top:90px; }
.recent-list { display:grid; grid-template-columns:1fr 1fr; }
.change-row { appearance:none; min-height:68px; display:grid; grid-template-columns:56px minmax(0,1fr) auto; gap:12px; align-items:center; padding:10px 16px; border:0; border-bottom:1px solid var(--line); background:transparent; color:inherit; text-align:left; }
.change-row:nth-child(odd) { border-right:1px solid var(--line); }
.change-row.clickable { cursor:pointer; }
.change-row.clickable:hover { background:rgba(122,167,255,.04); }
.change-row time { color:#5d6e85; font-size:7px; line-height:1.45; }
.change-main { min-width:0; display:flex; flex-direction:column; gap:4px; }
.change-main strong { font-size:9px; }
.change-main span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#8191a5; font-size:7.5px; }
.change-type { color:#64758c; font-size:6px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.change-type.added { color:var(--green); }
.change-type.removed { color:var(--red); }

.about-section { margin:72px 0 40px; scroll-margin-top:94px; }
.about-heading { max-width:760px; }
.about-heading h2 { margin:0; max-width:720px; font-size:clamp(30px,3vw,46px); line-height:1; letter-spacing:-.045em; }
.about-heading > p:last-child { margin:17px 0 0; color:#8d9db2; font-size:13px; line-height:1.6; }
.about-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:28px; }
.about-grid article { min-height:170px; padding:20px; border:1px solid var(--line); border-radius:14px; background:rgba(12,19,30,.64); }
.about-grid article > span { color:var(--green); font-size:8px; font-weight:850; letter-spacing:.12em; }
.about-grid h3 { margin:28px 0 8px; font-size:15px; }
.about-grid p { margin:0; color:#8393a8; font-size:10px; line-height:1.55; }

footer { width:min(1480px, calc(100% - 48px)); margin:0 auto; padding:22px 0 30px; display:flex; align-items:flex-start; justify-content:space-between; gap:30px; border-top:1px solid var(--line); color:#607087; font-size:8px; line-height:1.6; }
footer strong { color:#91a1b6; }
footer a { color:#a5b7cf; text-decoration:none; }
footer a:hover { color:#fff; }
.sep { margin:0 5px; color:#39475a; }

@media (max-width:1280px) {
  .workspace { grid-template-columns:minmax(0,1fr) 330px; }
  .toolbar.public-filters { grid-template-columns:minmax(220px,1.45fr) repeat(2,minmax(135px,1fr)); }
  .toolbar.public-filters .searchbox { grid-column:span 2; }
}

@media (max-width:1080px) {
  .public-nav a:not(.starchill-link) { display:none; }
  .stats { grid-template-columns:1fr 1fr; }
  .stat-card:nth-child(2) { border-right:0; }
  .stat-card:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .workspace { grid-template-columns:1fr; }
  .detail-panel { height:auto !important; max-height:700px; }
  .mover-browser, .detail-content { max-height:700px; }
  .mover-list { display:grid; grid-template-columns:1fr 1fr; }
  .mover-row:nth-child(odd) { border-right:1px solid var(--line); }
  .detail-scroll { max-height:650px; }
}

@media (max-width:760px) {
  .topbar { height:64px; padding:0 16px; }
  .brand-copy small { display:none; }
  .public-nav .starchill-link { padding:8px 9px; font-size:10px; }
  main { width:min(100% - 24px,1480px); padding-top:36px; }
  .hero { align-items:flex-start; flex-direction:column; gap:22px; }
  .hero h1 { font-size:clamp(42px,13vw,62px); }
  .lede { font-size:13px; }
  .update-pill { min-width:0; }
  .stats { margin-top:30px; }
  .stat-card { min-height:82px; padding:15px; }
  .stat-card strong { font-size:21px; }
  .panel-head { align-items:flex-start; flex-direction:column; min-height:auto; padding:15px; }
  .legend { justify-content:flex-start; }
  .toolbar.public-filters { grid-template-columns:1fr 1fr; }
  .toolbar.public-filters .searchbox { grid-column:1 / -1; }
  .top-pagination { align-items:flex-start; flex-direction:column; }
  .results-actions { width:100%; margin-left:0; justify-content:space-between; }
  .sort-control { flex:1; }
  .sort-control select { width:100%; }
  .chart-wrap { height:520px; min-height:520px; }
  .public-chart-footer { align-items:flex-start; flex-direction:column; }
  .chart-utilities { justify-content:flex-start; }
  .mover-list { display:block; }
  .mover-row:nth-child(odd) { border-right:0; }
  .recent-list { grid-template-columns:1fr; }
  .change-row:nth-child(odd) { border-right:0; }
  .about-grid { grid-template-columns:1fr; }
  footer { width:min(100% - 24px,1480px); flex-direction:column; gap:8px; }
}

@media (max-width:520px) {
  .brand-copy strong { font-size:10px; }
  .toolbar.public-filters { grid-template-columns:1fr; }
  .toolbar.public-filters .searchbox { grid-column:auto; }
  .results-actions { align-items:stretch; flex-direction:column; }
  .pager { justify-content:space-between; }
  .detail-hero-compact { grid-template-columns:110px minmax(0,1fr); }
  .detail-image-wrap { height:76px; }
  .detail-grid-public { grid-template-columns:1fr 1fr; }
}

/* v8 public-facing polish */
[hidden] { display:none !important; }

body {
  background:
    radial-gradient(ellipse at 78% 3%, rgba(27,109,120,.20), transparent 31rem),
    radial-gradient(ellipse at 18% 10%, rgba(57,90,146,.19), transparent 34rem),
    linear-gradient(180deg,#060a11 0%,#07111a 42%,#060a11 100%);
}
body::before { opacity:.32; }

.topbar { height:68px; background:rgba(5,9,15,.88); }
.brand-copy strong { font-size:13px; }
.brand-copy small { font-size:8px; }
.public-nav { gap:7px; font-size:12px; }
.public-nav a, .community-menu summary { min-height:38px; display:flex; align-items:center; padding:0 11px; border-radius:9px; }

.community-menu { position:relative; }
.community-menu summary { list-style:none; cursor:pointer; color:#94a2b5; user-select:none; }
.community-menu summary::-webkit-details-marker { display:none; }
.community-menu summary:hover, .community-menu[open] summary { color:#fff; background:rgba(255,255,255,.045); }
.community-menu summary span { margin-left:5px; color:#617086; font-size:11px; }
.community-popover {
  position:absolute;
  top:46px;
  right:0;
  z-index:70;
  width:350px;
  padding:9px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:14px;
  background:rgba(8,14,23,.98);
  box-shadow:0 24px 70px rgba(0,0,0,.50);
  backdrop-filter:blur(22px);
}
.community-popover > p { margin:0 0 6px; padding:9px 10px 11px; border-bottom:1px solid var(--line); }
.community-popover > p strong { display:block; font-size:12px; }
.community-popover > p span { display:block; margin-top:4px; color:#718198; font-size:9px; }
.community-popover a { display:grid; grid-template-columns:minmax(0,1fr); gap:3px; min-height:54px; padding:9px 10px; border-radius:9px; text-decoration:none; }
.community-popover a:hover { background:rgba(122,167,255,.065); }
.community-popover a strong { color:#dce5f0; font-size:11px; }
.community-popover a span { color:#7f90a6; font-size:9px; }
.community-popover em { margin-left:5px; padding:2px 5px; border:1px solid rgba(242,189,104,.22); border-radius:99px; color:#dcb66f; font-size:7px; font-style:normal; font-weight:750; letter-spacing:.05em; text-transform:uppercase; }

main { padding-top:34px; }
.hero {
  position:relative;
  min-height:240px;
  align-items:center;
  padding:30px 34px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.075);
  border-radius:20px;
  background:
    linear-gradient(100deg,rgba(9,16,26,.96) 0%,rgba(9,16,26,.86) 46%,rgba(9,16,26,.20) 74%,rgba(9,16,26,.55) 100%),
    radial-gradient(circle at 82% 50%,rgba(89,215,165,.10),transparent 28rem);
  box-shadow:0 28px 80px rgba(0,0,0,.24);
}
.hero::before { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(120deg,rgba(122,167,255,.04),transparent 36%,rgba(89,215,165,.035)); }
.hero-copy { position:relative; z-index:2; max-width:720px; }
.eyebrow { margin-bottom:10px; font-size:9px; }
.hero h1 { font-size:clamp(42px,4.5vw,64px); line-height:.96; max-width:720px; }
.lede { margin-top:14px; max-width:650px; font-size:14px; line-height:1.5; }
.hero-side { position:absolute; inset:0 0 0 52%; display:flex; justify-content:flex-end; align-items:flex-end; pointer-events:none; }
.hero-ship-art {
  position:absolute;
  inset:-8% -2% -10% 0;
  opacity:.40;
  background-image:var(--hero-ship-image,none);
  background-repeat:no-repeat;
  background-position:center right;
  background-size:contain;
  filter:saturate(.82) contrast(1.04);
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.45) 22%,#000 57%,#000 100%);
  mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.45) 22%,#000 57%,#000 100%);
}
.update-pill { position:absolute; z-index:3; right:22px; bottom:20px; pointer-events:auto; background:rgba(6,11,18,.86); }
.update-pill small { font-size:8px; }
.update-pill strong { font-size:11px; }

.stats { margin-top:14px; }
.stat-card { min-height:92px; padding:18px 20px; }
.stat-card small { font-size:8px; }
.stat-card strong { font-size:27px; }
.stat-card > span { font-size:9px; }

.workspace { margin-top:14px; gap:14px; grid-template-columns:minmax(0,1fr) 370px; }
.chart-panel, .detail-panel, .recent-panel { background:rgba(10,17,28,.90); border-color:rgba(255,255,255,.095); }
.panel-head { min-height:70px; padding:15px 18px; }
.panel-head h2 { font-size:19px; }
.section-kicker { font-size:8px; }
.legend { font-size:9px; gap:12px; }

.filter-shell { padding:12px 14px 13px; }
.filter-label { font-size:8px; margin-bottom:8px; }
.searchbox input, .toolbar select { height:41px; font-size:12px; }
.searchbox input { padding-left:37px; }
.toolbar.public-filters { gap:9px; }

.top-pagination { min-height:60px; padding:9px 14px; }
.result-navigation { min-width:0; display:flex; align-items:center; gap:11px; flex:1 1 auto; }
.result-summary { gap:8px; flex:0 0 auto; }
.result-summary small { font-size:8px; }
.result-summary strong { font-size:14px; }
.pager { display:flex; align-items:center; gap:6px; }
.page-status { min-width:74px; padding:5px 8px; border:1px solid var(--line); border-radius:8px; color:#aab8ca; background:#09111c; font-size:9px; text-align:center; white-space:nowrap; }
.pager-button { height:31px; min-width:76px; font-size:9px; }
.sort-control { margin-left:auto; flex:0 0 auto; font-size:9px; }
.sort-control select { width:170px; height:34px; font-size:10px; }
.event-filter-pill { max-width:260px; font-size:9px; }

.chart-wrap { height:540px; min-height:540px; }
.grid-line, .axis-line, .ship-line, .price-jump, .bubble-string { pointer-events:none; }
.axis-label { font-size:10px; }
.event-band { pointer-events:auto; }
.event-label { font-size:9px; font-weight:780; }
.event-label-bg { fill:rgba(7,13,22,.88); stroke:rgba(255,255,255,.10); stroke-width:1; cursor:pointer; }
.event-label-bg:hover, .event-label-bg.active { fill:rgba(17,28,43,.98); stroke:rgba(122,167,255,.50); }
.event-label-hit { fill:transparent; cursor:pointer; }
.empty-state { pointer-events:none; inset:50% auto auto 50%; transform:translate(-50%,-50%); width:max-content; max-width:78%; height:auto; padding:10px 14px; border:1px solid rgba(255,255,255,.10); border-radius:10px; color:#a0afc1; background:rgba(7,12,20,.86); font-size:11px; box-shadow:0 12px 34px rgba(0,0,0,.20); }
.empty-state[hidden] { display:none !important; }

.public-chart-footer { min-height:46px; font-size:9px; }
.catalog-switch > span { font-size:8px; }
.mini-toggle { height:27px; font-size:8.5px; }

.mover-head { padding:16px 16px 8px; }
.mover-head h3 { font-size:18px; }
.mover-head > span { font-size:9px; }
.mover-intro { padding:0 16px 11px; font-size:10px; }
.mover-row { min-height:67px; grid-template-columns:70px minmax(0,1fr) auto; padding:8px 11px; }
.mover-row img { width:70px; height:46px; }
.mover-copy strong { font-size:11.5px; }
.mover-copy small { font-size:8.5px; }
.mover-delta { font-size:8.5px; }

.detail-back { height:38px; font-size:9px; }
.detail-hero-compact { grid-template-columns:104px minmax(0,1fr); padding:11px; gap:11px; }
.detail-image-wrap { height:70px; }
.detail-manufacturer { font-size:9px; }
.detail-title-block .section-kicker { font-size:8px; }
.detail-title-block h3 { font-size:19px; }
.rsi-link { margin-top:6px; font-size:8.5px; }
.detail-price.compact-price { margin:9px 11px; padding:9px 10px; }
.detail-price small, .detail-grid small { font-size:7.5px; }
.detail-price strong { font-size:24px; }
.detail-price > span { font-size:8.5px; }
.detail-grid-public { margin:0 11px 9px; }
.detail-grid-public > div { min-height:43px; padding:7px 8px; }
.detail-grid-public span { font-size:9.5px; }
.compact-availability { margin:0 11px 9px; }
.history-head h4 { font-size:10px; }
.history-head span { font-size:7.5px; }
.availability-grid > div { min-height:46px; padding:7px 8px; }
.availability-grid small { font-size:7px; }
.availability-grid strong { font-size:10px; }
.detail-history-drawer { margin:0 11px 7px; }
.detail-history-drawer summary span { font-size:9px; }
.detail-history-drawer summary small { font-size:7.5px; }
.history-row time { font-size:8px; }
.history-row strong { font-size:9px; }
.state-row { font-size:7.8px; }

.recent-panel { margin-top:14px; }
.change-row { min-height:64px; }
.change-row time { font-size:8px; }
.change-main strong { font-size:10px; }
.change-main span { font-size:8.5px; }
.change-type { font-size:7px; }

.method-strip { margin:24px 0 30px; padding:18px 20px; display:grid; grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr); gap:28px; align-items:center; border:1px solid var(--line); border-radius:14px; background:rgba(10,17,28,.64); }
.method-strip h2 { margin:0; font-size:21px; letter-spacing:-.035em; }
.method-strip p:last-child { margin:0; color:#8797aa; font-size:10px; line-height:1.55; }
footer { font-size:9px; }

@media (max-width:1280px) {
  .workspace { grid-template-columns:minmax(0,1fr) 340px; }
  .community-popover { right:-80px; }
}
@media (max-width:1080px) {
  .community-menu { display:none; }
  .hero-side { left:46%; }
  .method-strip { grid-template-columns:1fr; gap:10px; }
}
@media (max-width:760px) {
  main { padding-top:22px; }
  .hero { min-height:250px; padding:24px 22px; align-items:flex-start; }
  .hero h1 { font-size:clamp(40px,12vw,56px); }
  .hero-side { inset:0; opacity:.55; }
  .hero-ship-art { inset:18% -10% -8% 38%; }
  .update-pill { right:14px; bottom:14px; }
  .result-navigation { width:100%; flex-wrap:wrap; }
  .top-pagination { align-items:center; flex-direction:row; flex-wrap:wrap; }
  .sort-control { margin-left:auto; }
  .chart-wrap { height:520px; min-height:520px; }
}
@media (max-width:560px) {
  .public-nav a:not(.starchill-link) { display:none; }
  .top-pagination { display:grid; grid-template-columns:1fr; }
  .result-navigation { gap:8px; }
  .result-summary { width:100%; }
  .pager { order:2; }
  .event-filter-pill { order:3; max-width:100%; }
  .sort-control { width:100%; margin-left:0; justify-content:space-between; }
  .sort-control select { width:min(220px,70%); }
  .method-strip { padding:16px; }
}
