* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg-main:#050505; --bg-sidebar:#0a0a0a;
  --bg-input:#111; --border:#1a1a1a; --border-2:#222;
  --text:#999; --text-dim:#888; --text-bright:#eee;
  --green:#00c851; --red:#ff4444; --cyan:#00d4aa;
  --orange:#ff8800; --purple:#aa66cc; --blue:#60a5fa;
}
body {
  font-family:'Manrope',-apple-system,BlinkMacSystemFont,sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  background:var(--bg-main); color:var(--text);
  height:100vh; overflow:hidden; display:flex; flex-direction:column;
  font-size:13px;
  --nav-zoom: .9434;
  zoom: 1.06;  /* 13" 屏幕兼容：从 1.18 缩 10% */
}
.mono { font-family:'Manrope','Inter',sans-serif; }

/* Shared site navigation in /assets/app.css. */
.start-trial {
  background:var(--cyan); color:#000 !important; padding:5px 12px; border-radius:4px;
  font-weight:600; text-transform:none !important;
}

/* ===== STRATEGY BAR ===== */
.strategy-bar {
  display:flex; align-items:center; padding:6px 10%; gap:10px;
  border-bottom:1px solid var(--border); background:#070707; flex-shrink:0;
}
.strategy-name {
  font-size:17px; font-weight:600; color:var(--text-bright);
  display:flex; align-items:center; gap:5px; cursor:pointer;
  padding:3px 6px; border-radius:4px;
}
.strategy-name:hover { background:#111; }
.strategy-name .caret { color:var(--text-dim); font-size:11px; }
.help-icon {
  width:16px; height:16px; border-radius:50%; background:#222; color:var(--text-dim);
  font-size:11px; display:inline-flex; align-items:center; justify-content:center; cursor:help; font-weight:600;
}
.ticker-pill {
  display:flex; align-items:center; gap:6px;
  background:var(--bg-input); border:1px solid var(--border-2);
  padding:3px 8px; border-radius:4px; cursor:pointer;
  font-weight:600; color:var(--text-bright); font-size:13px;
  transition: background 0.12s, border-color 0.12s;
}
.ticker-pill:hover { background:#1a2538; border-color:#4d8ed1; }
.ticker-pill .caret { color:var(--text-dim); font-size:10px; }
.spot-readout {
  font-family:'Manrope','Inter',sans-serif;
  font-weight:600; color:var(--text-bright); font-size:14px;
}
.spot-change { font-size:12px; margin-left:3px; font-family:'Manrope','Inter',sans-serif; }
.spot-change.up { color:var(--green); }
.spot-change.down { color:var(--red); }
.delayed-badge {
  background:transparent; color:var(--text-dim);
  padding:0 4px; border-radius:0; font-size:12px; font-weight:400;
  text-transform:none; letter-spacing:0;
}
.delayed-badge.stale {
  background:rgba(255,68,68,0.15); color:var(--red);
}
.action-btn {
  background:rgba(96,165,250,0.08); border:1px solid rgba(96,165,250,0.35);
  color:#9ec3f5; padding:4px 12px; border-radius:14px;
  cursor:pointer; font-size:12px; font-weight:600;
  display:inline-flex; align-items:center; gap:5px;
  letter-spacing:0.1px;
}
.action-btn:hover { background:rgba(96,165,250,0.15); color:#cfe0fa; border-color:rgba(96,165,250,0.55); }
.action-btn.primary { color:#9ec3f5; border-color:rgba(96,165,250,0.45); }
.action-btn.primary:hover { background:rgba(96,165,250,0.18); }
.action-btn .badge {
  background:#60a5fa; color:#000;
  padding:0 5px; border-radius:8px; font-size:12px; font-weight:700;
}
.action-row { display:flex; gap:6px; margin-left:auto; flex-wrap:wrap; }

/* ===== EXPIRATION STRIP ===== */
.exp-bar {
  background:#070707; border-bottom:1px solid var(--border);
  padding:4px 10%; flex-shrink:0;
  min-width:0; width:100%; overflow:hidden;
}
.exp-header {
  display:flex; align-items:center; gap:6px;
  margin-bottom:4px; font-size:12px;
  text-transform:uppercase; letter-spacing:0.5px;
}
.exp-header .exp-title { color:var(--text-dim); font-weight:600; }
.exp-header .exp-dte   { color:var(--text-bright); font-weight:700; font-size:13px; }

.exp-grid {
  display:flex; flex-direction:column; gap:10px;
  overflow-x:auto; overflow-y:hidden;
  scrollbar-width:thin; scrollbar-color:#2a2f42 transparent;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  cursor:grab;
  position:relative;
  flex-wrap:nowrap;
  width:100%;
}
.exp-grid.dragging { cursor:grabbing; scroll-behavior:auto; }
.exp-grid::-webkit-scrollbar { height:4px; }
.exp-grid::-webkit-scrollbar-thumb { background:#2a2f42; border-radius:3px; }
.exp-grid::-webkit-scrollbar-track { background:transparent; }
.month-row, .day-row { display:flex; gap:2px; min-width:max-content; flex:1 0 auto; flex-wrap:nowrap; width:100%; }

.month-cell {
  background:#111721; color:#a5adbc;
  padding:2px 5px; text-align:center;
  font-size:11px; font-weight:600;
  border-radius:3px; cursor:pointer;
  letter-spacing:0.3px;
  border:1px solid #1a2030;
  white-space:nowrap;
  /* Width is set by JS to match the day-group below it, so months with
     more expiries get a proportionally wider bar. */
  flex:0 0 auto;
}
.month-cell.active { background:#2b6cb0; color:#fff; border-color:#4d8ed1; }
.month-cell:hover { background:#1a2030; color:var(--text-bright); }

.day-group {
  /* Natural content width — sum of day cells + gaps. JS reads this and
     copies it to the matching month-cell so the two rows align. */
  display:flex; gap:4px; flex:0 0 auto;
  justify-content:center;
}
.day-cell {
  flex:0 0 auto; min-width:26px; height:24px;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:500; color:#cdd2dc;
  cursor:pointer; border-radius:3px; position:relative;
  padding:0 2px;
}
.day-cell.has-exp { color:#e8ecf3; font-weight:600; }
.day-cell.has-exp:hover { background:#181f2c; }
.day-cell.selected {
  background:#2b6cb0; color:#ffffff;
  box-shadow: 0 0 0 1px #4d8ed1 inset;
  font-weight:700;
}
.day-cell .dte {
  position:absolute; top:-5px; right:-7px;
  font-size:8px; color:var(--purple); font-weight:700;
  white-space:nowrap;
}
.day-cell.selected .dte { color:#fff; }

/* ===== EXP CALENDAR POPUP ===== */
.exp-cal-btn {
  background:#111721; border:1px solid #2a2f42; color:#7a8599;
  border-radius:6px; cursor:pointer; padding:10px 12px;
  line-height:0; display:flex; align-items:center; justify-content:center;
  transition: all 0.15s;
}
.exp-cal-btn:hover { background:#1a2538; color:#60a5fa; border-color:#4d8ed1; }
.exp-cal-overlay {
  display:none; position:fixed; top:0; left:0; width:100%; height:100%;
  z-index:9998; background:rgba(0,0,0,0.35);
}
.exp-cal-overlay.open { display:block; }
.exp-cal-popup {
  position:fixed; z-index:9999;
  background:#0d1117; border:1px solid #2a2f42; border-radius:8px;
  padding:8px; box-shadow:0 8px 32px rgba(0,0,0,0.7);
  width:228px; font-family:'Manrope','Inter',sans-serif;
  color:#cdd2dc;
}
.exp-cal-nav {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:6px;
}
.exp-cal-nav button {
  background:none; border:none; color:#a5adbc; cursor:pointer;
  font-size:15px; padding:1px 6px; border-radius:4px;
}
.exp-cal-nav button:hover { background:#1a2030; color:#fff; }
.exp-cal-nav .cal-title { font-size:12px; font-weight:700; color:#e8ecf3; }
.exp-cal-grid {
  display:grid; grid-template-columns:repeat(7,1fr); gap:1px; text-align:center;
}
.exp-cal-grid .cal-wday { font-size:9px; color:#666; font-weight:600; padding:1px 0 3px; }
.exp-cal-grid .cal-day {
  font-size:11px; padding:3px 0; border-radius:3px; cursor:default; color:#444;
}
.exp-cal-grid .cal-day.has-exp {
  color:#cdd2dc; cursor:pointer; font-weight:600; background:#0f1a28;
}
.exp-cal-grid .cal-day.has-exp:hover { background:#1a2030; }
.exp-cal-grid .cal-day.pickable {
  color:#7a8090; cursor:pointer;
}
.exp-cal-grid .cal-day.pickable:hover { background:#1a2030; color:#cdd2dc; }
.exp-cal-grid .cal-day.today { box-shadow:inset 0 0 0 1px #555; }
.exp-cal-grid .cal-day.selected { background:#2b6cb0; color:#fff; font-weight:700; }
.exp-cal-grid .cal-day.other-month { opacity:0.3; }

/* ===== STRIKE STRIP (number-line ruler) ===== */
.strike-bar { padding-top:0; padding-bottom:1px; display:flex; align-items:flex-start; gap:10px; }
.strike-bar .exp-header { margin-bottom:0; flex:0 0 auto; padding-top:6px; }
.strike-ruler-wrap {
  position:relative; flex:1 1 auto; min-width:0; padding:0; cursor:crosshair;
  user-select:none;
}
#strikeRuler { display:block; overflow:visible; }
.ruler-tick-major { stroke:#3a3a3a; stroke-width:1; }
.ruler-tick-minor { stroke:#222; stroke-width:1; }
.ruler-line       { stroke:#2a2a2a; stroke-width:1; }
.ruler-label      { fill:#9a9a9a; font:600 11px 'Manrope','Inter',sans-serif; text-anchor:middle; }
.ruler-label.atm  { fill:#9a9a9a; }
.marker-badge {
  fill:hsl(135, 90%, 36%); stroke:hsl(135, 90%, 14%); stroke-width:1; rx:4; ry:4;
}
.marker-badge.put { fill:hsl(352, 90%, 36%); stroke:hsl(352, 90%, 14%); }
.marker-text {
  fill:#ffffff; font:800 13px 'Manrope','Inter',sans-serif; text-anchor:middle;
  pointer-events:none;
}
.marker-arrow      { fill:var(--green); }
.marker-arrow.put  { fill:#dc2f5b; }
.marker-stem       { stroke:rgba(0,212,170,0.35); stroke-width:1; stroke-dasharray:2,2; }
.marker-stem.put   { stroke:rgba(220,47,91,0.35); }
.marker-handle { cursor:grab; }
.marker-handle.dragging { cursor:grabbing; }
.spot-tick { stroke:var(--cyan); stroke-width:1.5; opacity:0.7; }
.spot-label { fill:var(--cyan); font:700 9px 'Manrope','Inter',sans-serif; text-anchor:middle; }

/* ===== STATS ROW ===== */
.stats-row {
  display:grid; grid-template-columns:repeat(5,1fr);
  border-bottom:1px solid var(--border);
  background:#060606; flex-shrink:0;
  padding:0 10%;
}
.stat-cell {
  padding:6px 12px; border-right:1px solid var(--border);
  text-align:center;
}
.stat-cell:last-child { border-right:none; }
.stat-label { font-size:11px; color:#7a7a7a; text-transform:uppercase; letter-spacing:0.8px; margin-bottom:3px; font-weight:600; }
.stat-value { font-size:15px; font-weight:700; color:var(--text-bright); font-family:'Manrope','Inter',sans-serif; letter-spacing:-0.3px; }
.stat-value.green { color:var(--green); }
.stat-value.red { color:var(--red); }
.stat-value .arrow { font-size:12px; margin-right:2px; }
.stat-value.small { font-size:13px; }
.stat-sub { font-size:11px; color:var(--text-dim); margin-left:4px; font-weight:400; }

/* ===== MAIN LAYOUT ===== */
.main-layout { flex:1; display:flex; overflow:hidden; min-height:0; }
.matrix-area {
  flex:1; overflow:auto; background:transparent;
  position:relative;
  padding:0 10%;
}
.matrix-table {
  border-collapse:collapse;
  font-family:'Manrope','Inter',sans-serif; font-size:12px;
  white-space:nowrap; width:100%;
}
.matrix-table th, .matrix-table td {
  padding:0; text-align:center;
  border:none;
  height:17px; min-width:46px;
  font-weight:600; letter-spacing:-0.2px;
}
.matrix-table th {
  background:#0e1422; color:#a5b3c9;
  font-weight:600; padding:1px 4px; font-size:11px;
  position:sticky; z-index:2; height:17px;
  border-bottom:1px solid #1a2336;
}
.matrix-table th.month-h {
  top:0; height:16px; font-size:11px; color:#e6ecf6;
  background:#0b1018; border-bottom:1px solid #1a2336;
  letter-spacing:0.4px;
}
.matrix-table th.day-h {
  top:16px; height:16px; font-size:12px; color:#d4dbe8;
  background:#0e1422; border-bottom:1px solid #1a2336;
  font-weight:700;
}
.matrix-table th.time-h {
  top:32px; height:18px; font-size:11px;
}
.matrix-table th.is-now {
  color:#ffffff; background:#1a2538;
  border-bottom:1px solid #ffffff;
}
.matrix-table th.day-divider { border-left:1px solid rgba(255,255,255,0.35); }
.col-divider { border-left:1px solid rgba(255,255,255,0.35) !important; }
.matrix-table th.month-divider, .matrix-table td.month-divider { border-left:2px solid rgba(255,255,255,0.55) !important; }
.matrix-table td.strike-cell {
  background:#0e1422; color:#e6ecf6;
  font-weight:600; padding:0 6px; font-size:12px;
  position:sticky; left:0; z-index:1;
  text-align:right; min-width:52px;
  border-right:1px solid #1a2336;
}
.matrix-table tr.is-spot td.strike-cell {
  color:#ffffff; font-weight:800;
  background:#2a3a4a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}
.matrix-table tr.is-spot td.pl-cell {
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(255,255,255,0.7);
}
.matrix-table td.pl-cell.is-now {
  box-shadow:
    inset  1px 0 0 rgba(255,255,255,0.6),
    inset -1px 0 0 rgba(255,255,255,0.6);
}
.matrix-table tr.is-spot td.pl-cell.is-now {
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(255,255,255,0.7),
    inset  1px 0 0 rgba(255,255,255,0.7),
    inset -1px 0 0 rgba(255,255,255,0.7);
}
.pl-cell { padding:0 2px; cursor:pointer; transition:outline 0.05s; font-size:12px; }
.pl-cell:hover { outline:1px solid var(--cyan); outline-offset:-1px; }
.matrix-table th.col-highlight { color:#ffd700; background:#1a2538; }
.matrix-table td.strike-cell.row-highlight { color:#ffd700; background:#1a2538; }
/* moved to top of matrix-table block (now 0.35 alpha) — line preserved as no-op for diff stability */

/* Graph mode */
#graphCanvas {
  width:100%; height:100%; background:var(--bg-main);
  cursor:crosshair;
}
.graph-wrap { width:100%; height:520px; max-height:70vh; position:relative; padding:20px; box-sizing:border-box; }
.graph-cursor {
  position:absolute; top:20px; bottom:30px; width:1px;
  background:#ffbb33; pointer-events:none; display:none;
}
.graph-tooltip {
  position:absolute; pointer-events:none; display:none;
  background:rgba(10,14,22,0.96); border:1px solid #2a3548;
  border-radius:4px; padding:6px 8px;
  font:600 11px 'Manrope','Inter',sans-serif; color:#e5eaf3;
  white-space:nowrap; z-index:5;
  transform:translateX(-50%);
}
.graph-tooltip .row { display:flex; justify-content:space-between; gap:10px; }
.graph-tooltip .lbl { color:#7a8599; font-weight:500; }
.graph-tooltip .v-exp { color:#eee; }
.graph-tooltip .v-now { color:#60a5fa; }
.graph-tooltip .v-pos { color:#34d399; }
.graph-tooltip .v-neg { color:#f87171; }

/* ===== RIGHT PANEL (positions) ===== */
.positions-panel {
  width:300px; background:var(--bg-sidebar);
  border-left:1px solid var(--border);
  display:flex; flex-direction:column;
  flex-shrink:0;
}
.panel-header {
  padding:10px 12px; border-bottom:1px solid var(--border);
  display:flex; justify-content:space-between; align-items:center;
}
.panel-title { font-size:14px; font-weight:600; color:var(--text-bright); }
.panel-body { flex:1; overflow-y:auto; padding:8px; }

.leg-card {
  background:#0c0c0c; border:1px solid var(--border-2);
  border-radius:4px; padding:8px; margin-bottom:6px;
  font-size:13px; cursor:pointer;
}
.leg-card.leg-active { border-color:var(--cyan); background:#0c1414; }
.leg-card .leg-row { display:flex; align-items:center; gap:6px; margin-bottom:4px; flex-wrap:wrap; }
.leg-card .leg-row:last-child { margin-bottom:0; }
.leg-side {
  font-weight:600; padding:1px 5px; border-radius:2px; font-size:12px;
}
.leg-side.long { background:rgba(0,200,81,0.15); color:var(--green); cursor:pointer; }
.leg-side.short { background:rgba(255,68,68,0.15); color:var(--red); cursor:pointer; }
.leg-type {
  font-weight:600; padding:1px 5px; border-radius:2px; font-size:12px; cursor:pointer;
}
.leg-type.call { background:rgba(96,165,250,0.15); color:var(--blue); }
.leg-type.put { background:rgba(255,136,0,0.15); color:var(--orange); }
.leg-strike { color:var(--text-bright); font-family:'Manrope','Inter',sans-serif; }
.leg-exp { color:var(--text-dim); font-size:12px; margin-left:auto; cursor:pointer; }
.leg-exp:hover { color:var(--cyan); text-decoration:underline; }
.leg-detail { color:var(--text-dim); font-size:12px; }
.leg-detail b { color:var(--text); font-weight:500; }
.leg-input {
  background:var(--bg-input); border:1px solid var(--border-2);
  color:var(--text-bright); padding:2px 4px; border-radius:2px;
  width:50px; font-family:'Manrope','Inter',sans-serif; font-size:13px;
}
.leg-remove {
  background:none; border:none; color:var(--text-dim);
  cursor:pointer; padding:2px 6px; font-size:16px;
}
.leg-remove:hover { color:var(--red); }

.add-leg-btn {
  width:100%; background:var(--bg-input); border:1px dashed var(--border-2);
  color:var(--text-dim); padding:8px; border-radius:4px;
  cursor:pointer; font-size:13px; margin-top:4px;
}
.add-leg-btn:hover { color:var(--text); border-color:#333; }

.greeks-panel {
  border-top:1px solid var(--border); padding:6px 10px 8px;
  background:#080808;
  flex-shrink:0;  /* 13" 屏 panel-body 撑满时 greeks 容易被压缩 → 锁住底部高度，6 个 cell 全显示 */
}
.greeks-panel .panel-title { margin-bottom:4px; }
.greeks-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:3px; font-size:11px; }
.greek-cell { padding:3px 4px; background:#0c0c0c; border-radius:3px; }
.greek-cell .lbl { color:var(--text-dim); text-transform:uppercase; font-size:10px; }
.greek-cell .val { color:var(--text-bright); font-family:'Manrope','Inter',sans-serif; font-size:12px; line-height:1.2; }

/* ===== BOTTOM CONTROLS ===== */
.bottom-bar {
  border-top:1px solid var(--border); background:#070707;
  padding:6px 16px; display:flex; align-items:center; gap:16px;
  flex-wrap:nowrap; flex-shrink:0;
  position:relative;
}
.bottom-sliders { justify-content:space-between; padding:6px 10%; gap:12px; background:#060606; border-top:1px solid var(--border); margin-top:8px; }
.bottom-sliders .slider-wrap { flex:1 1 0; min-width:0; }
.bottom-sliders .slider-wrap input[type="range"] { flex:1; width:auto; }
.slider-sep { color:var(--text-dim); font-size:16px; flex-shrink:0; }
.bottom-tabs { padding:4px 10%; gap:0; background:#0b0b0b; border-top:1px solid var(--border); }
.bottom-tabs .tab-group { flex:1; display:flex; gap:6px; border:none; }
.bottom-tabs .tab-btn { flex:1; text-align:center; border-right:none; }
.tab-group { display:flex; gap:6px; background:transparent; padding:0; border-radius:0; border:none; }
.tab-btn {
  background:#0c0c0c; border:1px solid #1a1a1a; color:#9ea4b1;
  padding:7px 16px; border-radius:8px; cursor:pointer;
  font-size:13px; font-weight:600;
}
.tab-btn.active { background:#1f2f4a; color:#8bb4e8; border-color:#2a4060; }
.tab-btn:hover:not(.active) { color:var(--text); }

.slider-wrap { display:flex; align-items:center; gap:8px; }
.slider-wrap label {
  font-size:12px; color:var(--text-dim);
  text-transform:uppercase; letter-spacing:0.5px;
  font-weight:600;
}
.slider-wrap input[type="range"] {
  width:110px; height:4px; -webkit-appearance:none; background:#222; border-radius:3px; outline:none;
}
.slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance:none; width:12px; height:12px;
  background:var(--cyan); border-radius:50%; cursor:pointer;
}
.slider-wrap .val {
  font-family:'Manrope','Inter',sans-serif; font-size:13px;
  color:var(--text-bright); min-width:50px; font-weight:600;
}
.slider-wrap .val.green { color:var(--green); }

/* ===== MODAL / DROPDOWN ===== */
.dropdown-menu {
  position:fixed; background:#0c0c0c;
  border:1px solid var(--border-2); border-radius:4px;
  min-width:240px; padding:4px; z-index:5000;
  box-shadow:0 8px 24px rgba(0,0,0,0.6);
  display:none; max-height:70vh; overflow-y:auto;
}
.dropdown-menu.show { display:block; }
.dropdown-item {
  padding:6px 10px; font-size:13px; color:var(--text); cursor:pointer; border-radius:3px;
  display:flex; justify-content:space-between; align-items:center;
}
.dropdown-item:hover { background:#1a1a1a; color:var(--text-bright); }
.dropdown-item .hint { font-size:12px; color:var(--text-dim); }
.dropdown-divider { height:1px; background:var(--border); margin:4px 0; }
.dropdown-header {
  padding:4px 10px; font-size:11px; color:var(--text-dim);
  text-transform:uppercase; letter-spacing:0.5px; font-weight:600;
}

.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.7);
  display:none; align-items:center; justify-content:center; z-index:2000;
}
.modal-overlay.show { display:flex; }
.modal {
  background:#0a0a0a; border:1px solid var(--border-2);
  border-radius:6px; max-width:600px; width:90%;
  max-height:80vh; display:flex; flex-direction:column;
}
.modal-head { padding:12px 16px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.modal-title { font-size:16px; font-weight:600; color:var(--text-bright); }
.modal-close { background:none; border:none; color:var(--text-dim); cursor:pointer; font-size:20px; padding:0 4px; }
.modal-body { padding:14px 16px; overflow-y:auto; }

.chain-table { width:100%; border-collapse:collapse; font-family:'Manrope','Inter',sans-serif; font-size:13px; }
.chain-table th { padding:6px 4px; color:var(--text-dim); font-weight:500; font-size:12px; text-align:right; border-bottom:1px solid var(--border); position:sticky; top:0; background:#0a0a0a; }
.chain-table th.center { text-align:center; }
.chain-table td { padding:4px; text-align:right; border-bottom:1px solid #0d0d0d; }
.chain-table td.strike { text-align:center; color:var(--text-bright); font-weight:600; background:#080808; }
.chain-table tr.atm td.strike { color:var(--green); background:#0a1a10; }
.chain-table td.call-side { color:var(--blue); cursor:pointer; }
.chain-table td.put-side { color:var(--orange); cursor:pointer; }
.chain-table td.call-side:hover, .chain-table td.put-side:hover { background:#111; }
.chain-table td.dim { color:var(--text-dim); font-size:12px; }
.chain-side-toggle { display:flex; gap:4px; margin-bottom:8px; }
.chain-side-toggle button {
  background:#111; border:1px solid var(--border-2); color:var(--text);
  padding:3px 8px; border-radius:3px; font-size:12px; cursor:pointer;
}
.chain-side-toggle button.active { background:var(--cyan); color:#000; border-color:var(--cyan); }

::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:#070707; }
::-webkit-scrollbar-thumb { background:#1a1a1a; border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:#252525; }

#tickerMenu:not(.show), #stratMenu:not(.show), #moreMenu:not(.show), #savedMenu:not(.show), #legExpMenu:not(.show) { display:none; }

/* Cell hover tooltip */
.cell-tooltip {
  position:absolute; background:#0c0c0c; border:1px solid var(--cyan);
  padding:4px 7px; border-radius:3px; font-size:10px; color:var(--text-bright);
  pointer-events:none; z-index:500; display:none;
  font-family:'Manrope','Inter',sans-serif; line-height:1.4;
  box-shadow:0 4px 12px rgba(0,0,0,0.6);
}
.cell-tooltip .row { display:flex; gap:8px; }
.cell-tooltip .lbl { color:var(--text-dim); }

.toast {
  position:fixed; bottom:60px; left:50%; transform:translateX(-50%);
  background:#0c0c0c; border:1px solid var(--cyan); color:var(--text-bright);
  padding:8px 14px; border-radius:4px; font-size:14px; z-index:3000;
  display:none; box-shadow:0 4px 16px rgba(0,0,0,0.6);
}
.toast.show { display:block; animation:toast 2s; }
@keyframes toast {
  0% { opacity:0; transform:translate(-50%, 10px); }
  10%,90% { opacity:1; transform:translate(-50%, 0); }
  100% { opacity:0; }
}
