    .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
    :root {
      --bg: #071114;
      --bg-top: #0a1519;
      --bg-deep: #05080b;
      --panel: rgba(8, 16, 20, 0.90);
      --panel-header: rgba(11, 21, 26, 0.94);
      --panel-soft: rgba(14, 28, 34, 0.82);
      --line: rgba(124, 181, 212, 0.14);
      --line-strong: rgba(232, 168, 73, 0.24);
      --text: #d9d0bf;
      --text-bright: #f7f1e6;
      --muted: rgba(212, 184, 150, 0.58);
      --green: #7ec8a4;
      --red: #d4857a;
      --gold: #e8a849;
      --brand-purple: #b4a0d4;
      --blue: #7cb5d4;
      --teal: #1f5e68;
      --shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
      --radius-lg: 10px;
      --radius-md: 8px;
      --radius-sm: 6px;
      --header-h: 52px;
      --toolbar-h: 44px;
      --footer-h: 28px;
      --ticker-h: 26px;
      --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html, body {
      width: 100%; height: 100%; overflow: hidden;
      background-color: var(--bg); color: var(--text);
      background-image:
        radial-gradient(circle at 50% 9%, rgba(232,168,73,0.18) 0%, rgba(232,168,73,0.08) 10%, rgba(232,168,73,0.02) 18%, rgba(7,17,20,0) 32%),
        radial-gradient(circle at 50% 16%, rgba(31,94,104,0.22) 0%, rgba(31,94,104,0.10) 20%, rgba(7,17,20,0) 42%),
        radial-gradient(circle at 14% 28%, rgba(12,44,52,0.18) 0%, rgba(12,44,52,0) 30%),
        radial-gradient(circle at 86% 14%, rgba(10,32,38,0.16) 0%, rgba(10,32,38,0) 28%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 56%, var(--bg-deep) 100%);
      font-family: var(--sans);
      -webkit-font-smoothing: antialiased;
      max-width: 100vw;
    }

    /* ── Ticker Tape ── */
    .ticker-tape {
      width: 100%; height: var(--ticker-h); overflow: hidden;
      background: rgba(6, 14, 18, 0.96);
      border-bottom: 1px solid var(--line);
      position: relative; z-index: 10;
    }
    .ticker-tape-inner {
      display: flex; align-items: center; height: 100%;
      white-space: nowrap; width: max-content;
      animation: tickerScroll 90s linear infinite;
      font-family: var(--mono); font-size: 11px; color: var(--muted);
    }
    .ticker-tape-inner > span { margin-right: 32px; flex: 0 0 auto; }
    .ticker-tape-inner span { display: inline-flex; align-items: center; gap: 6px; }
    .ticker-tape-inner .up { color: var(--green); }
    .ticker-tape-inner .down { color: var(--red); }
    .ticker-tape-inner .val { color: var(--text-bright); font-weight: 600; }
    .ticker-tape-inner .sep { color: rgba(124,181,212,0.24); }
    @keyframes tickerScroll {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }

    /* ── Shell Layout ── */
    .terminal-shell {
      width: 100%; max-width: 100vw; height: calc(100% - var(--ticker-h));
      padding: 8px 10px 10px; display: grid;
      grid-template-rows: auto 1fr; gap: 8px;
      position: relative; z-index: 1; overflow: hidden;
    }
    .terminal-shell::before {
      content: "";
      position: absolute; inset: 0; pointer-events: none; z-index: 0;
      background:
        radial-gradient(circle at 50% 14%, rgba(232,168,73,0.10) 0%, rgba(232,168,73,0.04) 12%, rgba(7,17,20,0) 26%),
        radial-gradient(circle at 50% 18%, rgba(31,94,104,0.14) 0%, rgba(31,94,104,0.05) 20%, rgba(7,17,20,0) 38%);
    }
    .terminal-shell > * { position: relative; z-index: 1; }

    /* ── Topbar ── */
    .topbar {
      display: grid;
      grid-template-columns: minmax(140px, 195px) minmax(0, 1fr) auto;
      align-items: center; gap: 10px; min-width: 0;
    }
    .brand { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
    .brand-logo {
      display: inline-flex; align-items: center; justify-content: center;
      flex: 0 0 auto; text-decoration: none; line-height: 0;
    }
    .brand img {
      width: 64px; height: 64px; object-fit: contain;
      filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4)); display: block;
    }
    .brand-copy { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
    .brand-main {
      color: #fbd74e; font-size: clamp(13px, 1.1vw, 17px);
      line-height: 1; letter-spacing: -0.02em; font-weight: 800; white-space: nowrap;
    }
    .brand-sub {
      display: flex; justify-content: center; align-items: center; gap: 2px;
      color: rgba(180,160,120,0.65); font-family: var(--mono);
      font-size: clamp(7px, 0.5vw, 9px); text-transform: uppercase; letter-spacing: 0.18em;
    }
    .brand-sub span { display: inline-block; }

    /* ── Hero Strip ── */
    .hero-strip {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 0.8fr));
      gap: 8px; min-width: 0;
    }
    .hero-tile {
      min-width: 0; padding: 6px 9px; border-radius: var(--radius-sm);
      border: 1px solid var(--line);
      background: linear-gradient(180deg, rgba(16, 30, 36, 0.82), rgba(9, 17, 21, 0.92));
      box-shadow: 0 10px 24px rgba(0,0,0,0.24);
    }
    .hero-tile .label {
      display: block; margin-bottom: 4px; color: var(--muted);
      font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
    }
    .hero-tile .value {
      display: flex; align-items: baseline; gap: 6px; min-height: 18px;
      font-family: var(--mono); font-size: clamp(13px, 0.8vw, 15px);
      font-weight: 700; letter-spacing: -0.02em; white-space: nowrap;
      overflow: hidden; text-overflow: ellipsis; color: var(--text-bright);
    }
    .hero-tile.price .value {
      font-size: clamp(19px, 1.6vw, 27px); line-height: 1;
    }

    /* ── Delta & Tiny pills ── */
    .delta-badge {
      display: inline-flex; align-items: center; justify-content: center;
      padding: 3px 7px; border-radius: 4px;
      font-family: var(--mono); font-size: 11px; font-weight: 700; white-space: nowrap;
    }
    .delta-badge.up, .tiny-pill.up { color: #021a14; background: var(--green); }
    .delta-badge.down, .tiny-pill.down { color: #1b0505; background: var(--red); }
    .delta-badge.flat, .tiny-pill.flat { color: var(--text); background: rgba(124,181,212,0.12); }
    .tiny-pill {
      display: inline-flex; align-items: center; justify-content: center;
      padding: 3px 6px; border-radius: 4px;
      font-family: var(--mono); font-size: 9px; font-weight: 700; white-space: nowrap;
    }

    /* ── Topbar Status ── */
    .topbar-status { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
    .connection-pill {
      display: inline-flex; align-items: center; gap: 6px; height: 28px;
      padding: 0 9px; border-radius: var(--radius-sm);
      border: 1px solid var(--line); background: rgba(12, 24, 29, 0.72);
      font-family: var(--mono); font-size: 10px; font-weight: 600; white-space: nowrap;
    }
    .status-dot {
      width: 7px; height: 7px; border-radius: 999px;
      background: var(--muted); box-shadow: none;
    }
    .status-dot.live { background: var(--green); box-shadow: 0 0 0 0 rgba(0,212,170,0.5); animation: pulse 1.8s infinite; }
    .status-dot.warn { background: var(--gold); }
    .status-dot.dead { background: var(--red); }
    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(0,212,170,0.4); }
      70% { box-shadow: 0 0 0 8px rgba(0,212,170,0); }
      100% { box-shadow: 0 0 0 0 rgba(0,212,170,0); }
    }
    .shortcut-btn {
      appearance: none; border: 1px solid var(--line); background: rgba(12, 24, 29, 0.72);
      color: var(--muted); width: 28px; height: 28px; border-radius: var(--radius-sm);
      font-family: var(--mono); font-size: 13px; font-weight: 700; cursor: pointer;
      display: inline-flex; align-items: center; justify-content: center;
      transition: border-color 0.16s ease, color 0.16s ease;
    }
    .shortcut-btn:hover { border-color: var(--line-strong); color: var(--text); }

    /* ── Price Flash ── */
    @keyframes flashGreen { 0% { background-color: rgba(0,212,170,0.18); } 100% { background-color: transparent; } }
    @keyframes flashRed { 0% { background-color: rgba(255,107,107,0.18); } 100% { background-color: transparent; } }
    .flash-green { animation: flashGreen 0.4s ease-out; border-radius: var(--radius-sm); }
    .flash-red { animation: flashRed 0.4s ease-out; border-radius: var(--radius-sm); }

    /* ── Terminal Grid ── */
    .terminal-grid {
      min-height: 0; display: grid;
      grid-template-columns: 1fr min(24%, 340px);
      gap: 8px; overflow: hidden;
    }
    .terminal-grid.fullscreen-mode {
      grid-template-columns: 1fr;
    }
    .terminal-grid.fullscreen-mode .sidebar { display: none; }

    /* ── Cards & Panels ── */
    .chart-card, .panel {
      min-height: 0; border-radius: var(--radius-lg);
      border: 1px solid var(--line);
      background: var(--panel);
      overflow: hidden;
      box-shadow: var(--shadow);
      backdrop-filter: blur(10px);
    }
    .chart-card {
      display: grid; grid-template-rows: var(--toolbar-h) 1fr var(--footer-h);
      min-width: 0; position: relative;
    }

    /* ── Chart Toolbar ── */
    .chart-toolbar {
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
      padding: 0 10px; border-bottom: 1px solid var(--line);
      background: linear-gradient(180deg, rgba(14, 26, 32, 0.96), rgba(9, 18, 22, 0.96));
    }
    .toolbar-group { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
    .toolbar-label, .panel-title {
      color: var(--muted); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
    }
    .btn {
      appearance: none; border: 1px solid var(--line); background: rgba(13, 25, 30, 0.74);
      color: var(--text); height: 28px; padding: 0 9px; border-radius: var(--radius-sm);
      font-family: var(--mono); font-size: 11px; font-weight: 600;
      cursor: pointer; transition: all 0.14s ease; white-space: nowrap;
    }
    .btn:hover { border-color: var(--line-strong); background: rgba(18, 34, 40, 0.92); }
    .btn.active {
      color: #1b1208; background: linear-gradient(180deg, #f2cb74, #e8a849);
      border-color: rgba(232,168,73,0.8); box-shadow: 0 4px 12px rgba(232,168,73,0.15);
    }
    .btn.soft-active { background: rgba(124,181,212,0.12); border-color: var(--line-strong); color: var(--text-bright); }
    .btn.icon { width: 28px; padding: 0; font-size: 13px; }
    .btn .btn-meta { color: var(--muted); margin-left: 4px; font-weight: 500; }

    /* ── Indicator Menu ── */
    .toolbar-popover-wrap { position: relative; }
    .indicator-menu {
      position: absolute; top: calc(100% + 8px); left: 0;
      width: min(340px, 78vw); max-height: min(68vh, 540px);
      overflow: auto; padding: 10px; border-radius: var(--radius-md);
      border: 1px solid var(--line-strong);
      background: rgba(5, 11, 16, 0.98);
      box-shadow: 0 20px 48px rgba(0,0,0,0.6); z-index: 30; display: none;
    }
    .indicator-menu.open { display: block; }
    .indicator-menu-head {
      display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px;
    }
    .indicator-menu-title { display: flex; flex-direction: column; gap: 2px; }
    .indicator-menu-title strong { font-size: 12px; color: var(--text-bright); }
    .indicator-menu-title span { font-size: 10px; color: var(--muted); }
    .indicator-menu-actions { display: flex; gap: 6px; }
    .indicator-menu-actions .btn { height: 24px; padding: 0 8px; font-size: 10px; }
    .indicator-group { display: grid; gap: 5px; margin-top: 8px; }
    .indicator-group-label {
      color: var(--muted); font-size: 9px; letter-spacing: 0.12em;
      text-transform: uppercase; padding-top: 2px;
    }
    .indicator-option {
      display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; align-items: start;
      padding: 7px 8px; border-radius: var(--radius-sm);
      border: 1px solid rgba(124,181,212,0.14); background: rgba(13, 25, 30, 0.56);
      cursor: pointer; transition: all 0.14s ease;
    }
    .indicator-option:hover { border-color: var(--line-strong); background: rgba(17, 34, 40, 0.74); }
    .indicator-option input { margin-top: 1px; width: 14px; height: 14px; accent-color: var(--gold); cursor: pointer; }
    .indicator-option strong { display: block; font-size: 11px; color: var(--text-bright); margin-bottom: 1px; }
    .indicator-option span { display: block; font-size: 10px; color: var(--muted); line-height: 1.3; }
    .indicator-live-group { padding-top: 2px; border-top: 1px solid var(--line); margin-top: 10px; }
    .indicator-live-list { display: grid; gap: 5px; }
    .indicator-live-row {
      display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center;
      padding: 6px 8px; border-radius: var(--radius-sm);
      border: 1px solid rgba(124,181,212,0.14); background: rgba(13, 25, 30, 0.56); font-size: 11px;
    }
    .indicator-live-row span { color: var(--muted); }
    .indicator-live-row strong { color: var(--text-bright); white-space: nowrap; font-family: var(--mono); }

    /* ── Series Legend ── */
    .series-legend {
      display: flex; align-items: center; gap: 6px; color: var(--muted);
      font-size: 10px; white-space: nowrap; overflow: hidden; flex-wrap: wrap; justify-content: flex-end;
    }
    .legend-item {
      display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px;
      border-radius: 4px; background: rgba(13, 25, 30, 0.60); border: 1px solid rgba(124,181,212,0.14);
    }
    .legend-swatch { width: 10px; height: 2px; border-radius: 999px; display: inline-block; }

    /* ── Chart Stage ── */
    .chart-stage {
      position: relative; min-height: 0; overflow: hidden;
      background:
        radial-gradient(circle at 50% 82%, rgba(232,168,73,0.09) 0%, rgba(232,168,73,0.02) 14%, rgba(7,17,20,0) 26%),
        linear-gradient(180deg, rgba(12, 21, 26, 0.94) 0%, rgba(8, 14, 18, 0.98) 100%); isolation: isolate; display: flex; flex-direction: column;
    }
    .chart-main-wrap { position: relative; flex: 1 1 auto; min-height: 240px; }
    .chart-stage::after {
      content: ""; position: absolute; inset: 0;
      background-image: url('bitcoinisland-logo.png');
      background-repeat: no-repeat; background-position: center center;
      background-size: min(13vw, 170px); opacity: 0.20;
      pointer-events: none; z-index: 0;
    }
    #chart { position: absolute; inset: 0; z-index: 1; }
    #chartChain { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:0; opacity:.10; }
    @media (prefers-reduced-motion: reduce){ #chartChain{ display:none; } }
    .chart-pane {
      position: relative; display: none; flex: 0 0 110px; min-height: 80px;
      border-top: 1px solid rgba(124,181,212,0.12); background: rgba(9, 16, 21, 0.92); z-index: 1;
    }
    .chart-pane.visible { display: block; }
    .chart-pane-head {
      position: absolute; top: 6px; left: 10px; right: 10px;
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
      pointer-events: none; z-index: 3;
      font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
    }
    .chart-pane-head strong {
      color: var(--text); letter-spacing: 0.02em; text-transform: none;
      font-size: 11px; font-family: var(--mono);
    }
    #volumeChart, #rsiChart, #macdChart { position: absolute; inset: 0; }
    .chart-watermark { display: none; }
    .chart-empty {
      position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
      padding: 24px; text-align: center; color: var(--muted); font-size: 13px;
      z-index: 2; pointer-events: none;
    }
    .chart-empty.show { display: flex; }

    /* ── Chart Readout ── */
    .chart-readout {
      position: absolute; top: 10px; left: 12px;
      display: flex; align-items: center; gap: 10px;
      padding: 5px 8px; border-radius: var(--radius-sm);
      background: rgba(6, 12, 17, 0.76); backdrop-filter: blur(6px);
      border: 1px solid var(--line); font-size: 11px; z-index: 3;
      max-width: calc(100% - 24px); overflow-x: auto;
    }
    .ohlc-item { display: flex; align-items: center; gap: 4px; color: var(--muted); white-space: nowrap; font-family: var(--mono); }
    .ohlc-item strong { color: var(--text-bright); font-weight: 700; }

    /* ── Chart Footer ── */
    .chart-footer {
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
      padding: 0 10px; border-top: 1px solid var(--line);
      color: var(--muted); font-family: var(--mono); font-size: 10px;
      background: linear-gradient(180deg, rgba(11, 21, 26, 0.96), rgba(8, 16, 20, 0.96));
    }
    .chart-footer .left, .chart-footer .right {
      display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap;
    }
    .chart-footer strong { color: var(--text); }

    /* ── Sidebar ── */
    .sidebar {
      min-height: 0; min-width: 0;
      display: flex; flex-direction: column; gap: 6px;
      overflow-y: auto; overflow-x: hidden; padding-right: 2px;
    }
    .sidebar::-webkit-scrollbar { width: 6px; }
    .sidebar::-webkit-scrollbar-thumb { background: rgba(124,181,212,0.18); border-radius: 999px; }

    /* ── Panels ── */
    .panel { display: grid; align-content: start; min-width: 0; flex-shrink: 0; }
    .panel-head {
      display: flex; align-items: center; justify-content: space-between; gap: 6px;
      padding: 5px 8px; border-bottom: 1px solid var(--line);
      background: linear-gradient(180deg, rgba(14, 26, 32, 0.96), rgba(9, 18, 22, 0.96));
    }
    .panel-head.accent-green { border-left: 2px solid var(--green); }
    .panel-head.accent-blue { border-left: 2px solid var(--blue); }
    .panel-head.accent-gold { border-left: 2px solid var(--gold); }
    .panel-head.accent-purple { border-left: 2px solid var(--brand-purple); }
    .panel-head.accent-red { border-left: 2px solid var(--red); }
    .panel-title { margin: 0; font-size: 10px; }
    .panel-body { padding: 6px 7px 7px; min-height: 0; min-width: 0; }

    /* ── Stat Grid ── */
    .stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; }
    .stat-box {
      min-width: 0; padding: 4px 6px; border-radius: var(--radius-sm);
      border: 1px solid rgba(124,181,212,0.14); background: rgba(13, 25, 30, 0.56);
    }
    .stat-box .k {
      display: block; margin-bottom: 2px; color: var(--muted);
      font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
      overflow: hidden; text-overflow: ellipsis;
    }
    .stat-box .v {
      font-family: var(--mono); font-size: 12px;
      font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
      font-variant-numeric: tabular-nums; white-space: nowrap;
      overflow: hidden; text-overflow: ellipsis; color: var(--text-bright);
    }

    /* ── Sat / USD Converter ── */
    .sat-converter {
      margin-top: 8px; padding: 8px; border-radius: var(--radius-sm);
      border: 1px solid rgba(247,147,26,0.18);
      background: linear-gradient(180deg, rgba(247,147,26,0.04), rgba(247,147,26,0.01));
    }
    .sat-converter-row {
      display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 6px;
    }
    .sat-converter-side { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .sat-converter-label {
      font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
    }
    .sat-converter input {
      width: 100%; min-width: 0; padding: 4px 6px;
      border-radius: 4px; border: 1px solid rgba(124,181,212,0.18);
      background: rgba(8,16,20,0.7); color: var(--text-bright);
      font-family: var(--mono); font-size: 12px; font-weight: 700;
      font-variant-numeric: tabular-nums; line-height: 1.1;
    }
    .sat-converter input:focus {
      outline: none; border-color: rgba(247,147,26,0.55);
      box-shadow: 0 0 0 2px rgba(247,147,26,0.15);
    }
    .sat-converter input::-webkit-outer-spin-button,
    .sat-converter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
    .sat-converter input[type="number"] { -moz-appearance: textfield; }
    .sat-converter-eq {
      align-self: end; padding-bottom: 4px;
      color: rgba(247,147,26,0.55); font-size: 12px;
    }
    .sat-converter-foot {
      margin-top: 6px; font-size: 9px; letter-spacing: 0.10em;
      text-transform: uppercase; color: var(--muted);
      font-variant-numeric: tabular-nums; text-align: center;
    }

    /* ── Range & Stack ── */
    .range-wrap { display: grid; gap: 6px; }
    .range-bar {
      position: relative; height: 10px; border-radius: 999px;
      background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
      overflow: hidden;
    }
    .range-bar::after {
      content: ""; position: absolute; inset: 1px; border-radius: inherit;
      background: rgba(5,8,11,0.18);
    }
    .range-marker {
      position: absolute; top: -3px; width: 3px; height: 16px;
      border-radius: 999px; background: #fff;
      box-shadow: 0 0 0 2px rgba(10,14,23,0.9); z-index: 2;
      transform: translateX(-50%); left: 0%;
    }
    .range-meta {
      display: flex; justify-content: space-between; gap: 8px;
      color: var(--muted); font-size: 10px; font-family: var(--mono);
      min-width: 0; overflow: hidden;
    }
    .range-meta strong { color: var(--text-bright); }

    .stack-list, .indicator-list { display: grid; gap: 5px; }
    .stack-row {
      display: grid; grid-template-columns: minmax(0,auto) 1fr auto;
      align-items: center; gap: 8px; font-size: 10px; min-width: 0;
    }
    .stack-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
    .stack-track {
      position: relative; height: 6px; border-radius: 999px;
      background: rgba(124,181,212,0.12); overflow: hidden;
    }
    .stack-fill {
      position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
    }
    .indicator-head {
      display: flex; justify-content: space-between; gap: 8px; align-items: center;
      color: var(--muted); font-size: 10px; margin: 2px 0 0;
    }
    .indicator-list .stack-row { grid-template-columns: minmax(0,1fr) auto; }

    /* ── Trades ── */
    .trades-list { display: grid; gap: 4px; max-height: 160px; overflow: auto; padding-right: 2px; }
    .trades-list::-webkit-scrollbar { width: 6px; }
    .trades-list::-webkit-scrollbar-thumb { background: rgba(124,181,212,0.18); border-radius: 999px; }
    .trade-row {
      display: grid; grid-template-columns: auto minmax(0,1fr) minmax(0, auto);
      gap: 4px; align-items: center; padding: 4px 6px;
      border-radius: var(--radius-sm); border: 1px solid rgba(124,181,212,0.14);
      background: rgba(11, 21, 26, 0.62); font-family: var(--mono); font-size: 10px; min-width: 0;
    }
    .trade-row .time { color: var(--muted); }
    .trade-row .price { font-weight: 700; }
    .trade-row.buy .price { color: var(--green); }
    .trade-row.sell .price { color: var(--red); }
    .trade-row .size { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* ── Halving ── */
    .halving-progress {
      position: relative; height: 10px; border-radius: 999px;
      background: rgba(124,181,212,0.12); overflow: hidden; margin: 6px 0;
    }
    .halving-fill {
      position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit;
      background: linear-gradient(90deg, var(--brand-purple), var(--gold));
      transition: width 0.5s ease;
    }

    /* ── Shortcuts Overlay ── */
    .shortcuts-overlay {
      position: fixed; inset: 0; z-index: 100;
      background: rgba(5, 10, 14, 0.84); backdrop-filter: blur(8px);
      display: none; align-items: center; justify-content: center;
    }
    .shortcuts-overlay.show { display: flex; }
    .shortcuts-card {
      background: var(--panel); border: 1px solid var(--line-strong);
      border-radius: var(--radius-lg); padding: 20px 24px;
      max-width: 440px; width: 90%;
    }
    .shortcuts-card h3 {
      font-size: 14px; color: var(--text-bright); margin-bottom: 14px;
      font-weight: 700; letter-spacing: -0.02em;
    }
    .shortcut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
    .shortcut-row {
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
      font-size: 11px; padding: 4px 0;
    }
    .shortcut-row span { color: var(--muted); }
    .shortcut-row kbd {
      font-family: var(--mono); font-size: 11px; font-weight: 700;
      color: var(--text-bright); background: rgba(124,181,212,0.12);
      padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line);
      min-width: 24px; text-align: center;
    }

    .footer-note { color: var(--muted); }
    .mono { font-family: var(--mono); }
    .empty-state { color: var(--muted); font-size: 11px; padding: 2px 0; }

    /* ── Fullscreen toggle ── */
    .fullscreen-exit {
      display: none; position: absolute; top: 8px; right: 8px; z-index: 20;
    }
    .terminal-grid.fullscreen-mode .fullscreen-exit { display: block; }
    .terminal-grid.fullscreen-mode .chart-card { border-radius: 0; }

    /* ── Responsive ── */
    @media (max-width: 1360px) {
      .topbar { grid-template-columns: 1fr; }
      .topbar-status { justify-content: flex-start; }
      .hero-strip { grid-template-columns: repeat(5, minmax(0,1fr)); }
    }
    @media (max-width: 1240px) {
      body { overflow: auto; }
      .terminal-shell { height: auto; min-height: 100%; }
      .terminal-grid { grid-template-columns: 1fr; }
      .sidebar {
        display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
        grid-template-rows: none; overflow: visible; padding-right: 0;
        flex-direction: unset;
      }
      .chart-card { min-height: 70vh; }
    }
    @media (max-width: 920px) {
      .hero-strip, .sidebar, .stat-grid { grid-template-columns: 1fr 1fr; }
      .hero-tile.price { grid-column: 1 / -1; }
    }
    @media (max-width: 640px) {
      .terminal-shell { padding: 6px; gap: 6px; }
      .hero-strip, .sidebar, .stat-grid { grid-template-columns: 1fr; }
      .chart-toolbar { padding: 6px 8px; height: auto; flex-direction: column; align-items: flex-start; }
      .chart-card { grid-template-rows: auto 1fr auto; }
      .chart-stage::after { background-size: 40vw; opacity: 0.08; }
      .chart-main-wrap { min-height: 200px; }
      .chart-pane { flex-basis: 96px; }
      .chart-readout { left: 6px; right: 6px; }
      .ticker-tape { display: none; }
    }
