    :root {
      --bg: #ede8e1;
      --card: #e5dfd7;
      --card-border: #c8c0b5;
      --chart-bg: #dbd4ca;
      --chart-border: #c8c0b5;
      --tile-bg: #d4cec7;
      --text: #111111;
      --text-2: #555555;
      --text-3: #888888;
      --text-4: #aaaaaa;
      --candle-up: #3dab7a;
      --candle-down: #d96b5c;
      --candle-live: #cccccc;
      --wick: #666666;
      --signal: #2d2d2d;
      --signal-empty: #ede8e2;
      --green: #2d8a5c;
      --green-bg: #e0f2e9;
      --red: #c0392b;
      --red-bg: #fde8e8;
      --orange: #c26000;
      --orange-bg: #fff0e3;
    }

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

    body {
      font-family:
        "DM Sans",
        -apple-system,
        sans-serif;
      background: var(--bg);
      max-width: 390px;
      margin: 0 auto;
      padding: 4px 12px 56px;
      color: #111;
      -webkit-font-smoothing: antialiased;
    }

    /* ── Header ── */
    .header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 0;
    }
    .header-logo {
      display: inline-block;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #888;
      text-decoration: none;
    }
    .header-logo:hover {
      color: #555;
    }
    .header-time {
      font-size: 11px;
      font-weight: 300;
      color: #aaa;
    }

    /* ── Live bar ── */
    .live-bar {
      font-size: 12px;
      font-weight: 300;
      color: #666;
      margin-bottom: 2px;
      min-height: 0;
      line-height: 1.2;
    }
    .hero-live-bar {
      margin-bottom: 5px;
    }
    .live-dot {
      display: inline-block;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #3dab7a;
      margin-right: 5px;
      vertical-align: middle;
      position: relative;
      top: -1px;
      animation: pulse 2s ease-in-out infinite;
    }
    .live-dot.closed {
      background: #bbb;
      animation: none;
    }
    @keyframes pulse {
      0%,
      100% {
        opacity: 1;
      }
      50% {
        opacity: 0.3;
      }
    }

    /* ── Cards ── */
    .card {
      background: var(--card);
      border-radius: 16px;
      padding: 14px 14px;
      margin-bottom: 10px;
      border: 1px solid var(--card-border);
    }

    /* ── Hero ── */
    .hero-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.13em;
      text-transform: uppercase;
      color: #aaa;
      margin-bottom: 4px;
    }
    .hero-pattern {
      font-size: 22px;
      font-weight: 600;
      letter-spacing: -0.02em;
      line-height: 1.15;
      white-space: nowrap;
      color: #111;
      margin-bottom: 10px;
    }

    /* ── Tape chart sections ── */
    .tape-section {
      background: var(--chart-bg);
      border-radius: 12px;
      padding: 12px 14px 10px;
      margin-bottom: 8px;
      border: 1px solid var(--chart-border);
    }
    .tape-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 10px;
    }
    .tape-title {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #888;
    }
    .tape-live-label {
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #bbb;
    }
    .tape-candles {
      display: block;
      width: 100%;
      height: 120px;
      overflow: visible;
    }

    /* ── Hero headline (newspaper tagline) ── */
    .hero-headline {
      font-size: 13px;
      font-weight: 600;
      font-style: italic;
      line-height: 1.55;
      color: #5a5248;
      margin: 8px 0 0;
    }

    /* ── Hero desc / pills ── */
    .hero-desc {
      font-size: 13px;
      font-weight: 300;
      line-height: 1.55;
      color: #555;
      margin: 10px 0 0;
    }
    .hero-context {
      margin-top: 10px;
    }
    .hero-meta {
      margin-top: 10px;
    }
    .hero-desc a {
      color: #555;
      text-decoration: underline;
      text-decoration-color: #ccc;
      text-underline-offset: 2px;
    }
    .hero-desc strong {
      font-weight: 600;
      color: #222;
    }
    .hero-desc a:hover {
      color: #222;
      text-decoration-color: #888;
    }
    .stocktwits-copy-anchor {
      white-space: nowrap;
    }
    .stocktwits-copy-btn {
      appearance: none;
      border: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
      display: inline-flex;
      align-items: baseline;
      gap: 4px;
      font: inherit;
      font-size: 1em;
      font-weight: 400;
      line-height: inherit;
      margin: 0;
      padding: 0;
      opacity: 0.68;
      text-decoration: underline;
      text-decoration-color: rgba(85, 85, 85, 0.22);
      text-underline-offset: 3px;
      transition:
        opacity 0.15s ease,
        text-decoration-color 0.15s ease;
    }
    .stocktwits-copy-btn:hover,
    .stocktwits-copy-btn:focus-visible {
      opacity: 1;
      outline: none;
      text-decoration-color: currentColor;
    }
    .stocktwits-copy-icon {
      width: 1em;
      height: 1em;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 1.8;
      transform: translateY(0.12em);
    }

    /* ── Live news paragraph ── */
    .hero-news {
      font-size: 13px;
      font-weight: 300;
      line-height: 1.55;
      color: #555;
      margin: 10px 0 0;
    }
    .hero-news a {
      color: #555;
      text-decoration: underline;
      text-decoration-color: #ccc;
      text-underline-offset: 2px;
    }
    .hero-news a:hover {
      color: #222;
      text-decoration-color: #888;
    }
    .hero-news-loading {
      color: #bbb;
      font-style: italic;
    }

    /* ── Elapsed trading day note ── */
    .elapsed-note {
      font-size: 11px;
      font-weight: 500;
      color: #aaa;
      margin: 8px 0 0;
      letter-spacing: 0.02em;
    }

    /* ── Outcome row dimming for resolved windows ── */
    .outcomes-row.resolved {
      opacity: 0.4;
    }
    .outcomes-row.resolved .outcomes-date::after {
      content: " · elapsed";
      font-size: 9px;
      color: #aaa;
      font-weight: 400;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .hero-meta {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .pill {
      display: inline-block;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 5px 12px;
      border-radius: 20px;
      background: #ede8e2;
      color: #777;
    }
    .pill.green {
      background: #e0f2e9;
      color: #2d8a5c;
    }
    .pill.orange {
      background: #fff0e3;
      color: #c26000;
    }

    /* ── Section label ── */
    .section-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.13em;
      text-transform: uppercase;
      color: #bbb;
      margin-bottom: 12px;
    }

    /* ── Time window label ── */
    .outcomes-table {
      width: 100%;
      margin-bottom: 8px;
    }
    .outcomes-header {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1.4fr;
      padding: 0 4px 5px;
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: #bbb;
    }
    .outcomes-row {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1.4fr;
      align-items: center;
      padding: 7px 4px;
      border-top: 1px solid #f0ece7;
    }
    .outcomes-date {
      font-size: 12px;
      font-weight: 600;
      color: #111;
      letter-spacing: -0.01em;
    }
    .outcomes-val {
      font-size: 14px;
      font-weight: 600;
      letter-spacing: -0.01em;
      color: #111;
    }
    .outcomes-val.green {
      color: var(--green);
    }
    .outcomes-val.red {
      color: var(--red);
    }
    .outcomes-bestworst {
      font-size: 12px;
      font-weight: 500;
    }
    .outcomes-bestworst .green {
      color: var(--green);
    }
    .outcomes-bestworst .red {
      color: var(--red);
    }
    .outcomes-bestworst .muted {
      color: #ccc;
    }

    .divider {
      height: 1px;
      background: #f0ece7;
      margin: 6px 0;
    }
    .baseline-row {
      display: flex;
      justify-content: space-between;
    }
    .baseline-label {
      font-size: 12px;
      font-weight: 300;
      color: #bbb;
    }
    .baseline-value {
      font-size: 12px;
      font-weight: 400;
      color: #bbb;
    }
    .interpretation {
      font-size: 13px;
      font-weight: 300;
      color: #666;
      line-height: 1.5;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid #f0ece7;
    }

    /* ── Signal strength ── */
    .signal-bar-container {
      display: flex;
      gap: 4px;
      margin: 10px 0;
    }
    .signal-bar {
      flex: 1;
      height: 5px;
      border-radius: 3px;
      background: var(--signal-empty);
    }
    .signal-bar.filled {
      background: var(--signal);
    }
    .signal-explain {
      font-size: 13px;
      font-weight: 300;
      color: #666;
      line-height: 1.5;
    }

    /* ── Match cards ── */
    .matches-grid {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .mobile-stats-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 6px;
    }
    .match-card {
      background: var(--card);
      border-radius: 12px;
      padding: 12px 12px 0;
      border: 1px solid var(--card-border);
      cursor: pointer;
      transition: border-color 0.15s;
      overflow: hidden;
    }
    .match-card:active {
      border-color: #bbb;
    }
    .match-card:focus {
      outline: 2px solid var(--signal);
      outline-offset: 2px;
    }
    .match-card:focus:not(:focus-visible) {
      outline: none;
    }

    .match-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 10px;
    }
    .match-date-range {
      font-size: 13px;
      font-weight: 600;
      color: #222;
      letter-spacing: -0.01em;
    }
    .match-score {
      font-size: 11px;
      font-weight: 300;
      color: #bbb;
      margin-top: 2px;
    }
    .outcome-badge {
      text-align: right;
      padding: 5px 10px;
      border-radius: 8px;
      min-width: 60px;
    }
    .outcome-badge.green {
      background: var(--green-bg);
    }
    .outcome-badge.red {
      background: var(--red-bg);
    }
    .outcome-badge-value {
      font-size: 14px;
      font-weight: 700;
      letter-spacing: -0.01em;
    }
    .outcome-badge.green .outcome-badge-value {
      color: var(--green);
    }
    .outcome-badge.red .outcome-badge-value {
      color: var(--red);
    }
    .outcome-badge-label {
      font-size: 9px;
      font-weight: 500;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: #bbb;
      margin-top: 1px;
    }

    .match-chart-wrap {
      margin: 0 -12px;
      padding: 0 12px;
      background: var(--chart-bg);
      border-top: 1px solid var(--card-border);
    }
    .match-candles {
      display: block;
      width: 100%;
      height: 72px;
      overflow: visible;
    }

    .match-caption {
      font-size: 11px;
      color: var(--dg-ink3);
      text-align: center;
      padding: 2px 8px 4px;
      letter-spacing: 0.02em;
    }

    .benchmark-chart {
      display: block;
      width: 100%;
      height: 190px;
      margin-top: 8px;
      background: var(--chart-bg);
      border: 1px solid var(--chart-border);
      border-radius: 4px;
    }

    .benchmark-meta {
      margin-top: 8px;
      font-size: 11px;
      color: var(--dg-ink3);
      line-height: 1.45;
    }

    .dm-benchmark {
      margin-top: 18px;
    }
    .dm-benchmark .benchmark-chart {
      height: 260px;
    }
    .match-expand {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 8px;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #bbb;
      gap: 4px;
    }

    /* ── Modal ── */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      z-index: 100;
      align-items: center;
      justify-content: center;
      padding: 24px 16px;
    }
    .modal-overlay.open {
      display: flex;
    }
    .modal-sheet {
      background: #fff;
      border-radius: 20px;
      width: 100%;
      max-width: 390px;
      padding: 20px 16px 32px;
      max-height: 90vh;
      overflow-y: auto;
    }
    .modal-drag {
      width: 40px;
      height: 4px;
      background: #e0dbd4;
      border-radius: 2px;
      margin: 0 auto 16px;
    }
    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 4px;
    }
    .modal-title {
      font-size: 16px;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: #111;
    }
    .modal-subtitle {
      font-size: 12px;
      font-weight: 300;
      color: #aaa;
      margin-top: 2px;
    }
    .modal-close {
      appearance: none;
      border: 0;
      background: transparent;
      font-family: inherit;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      margin: -12px -12px 0 8px;
      font-size: 20px;
      color: #bbb;
      cursor: pointer;
      line-height: 1;
    }
    .modal-close:focus-visible,
    .match-card:focus-visible,
    .dm-match-card:focus-visible {
      outline: 2px solid var(--signal);
      outline-offset: 3px;
    }

    .modal-chart-section {
      background: #f7f3ee;
      border-radius: 12px;
      padding: 14px;
      margin: 14px 0;
      border: 1px solid #ede8e2;
    }
    .modal-chart-zones {
      display: flex;
      align-items: baseline;
      margin-bottom: 6px;
    }
    .modal-chart-zone {
      flex: 1;
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #c8c4be;
    }
    .modal-chart-zone:first-child {
      text-align: left;
    }
    .modal-chart-zone.zone-pattern {
      text-align: center;
      color: #999;
    }
    .modal-chart-zone:last-child {
      text-align: right;
    }
    .modal-candles {
      display: block;
      width: 100%;
      height: 160px;
    }

    .modal-pattern-row {
      display: flex;
      gap: 16px;
      margin-top: 12px;
      padding: 10px 12px;
      background: #f7f4f0;
      border-radius: 10px;
      font-size: 11px;
      font-weight: 500;
      color: #888;
      flex-wrap: nowrap;
      white-space: nowrap;
    }
    .modal-pattern-row span {
      color: #111;
      font-weight: 700;
    }

    .modal-stats-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 10px;
    }
    .modal-stats-table thead th {
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #bbb;
      text-align: center;
      padding: 0 0 5px;
      border-bottom: 1px solid #ece9e4;
    }
    .modal-stats-table thead th:first-child {
      text-align: left;
    }
    .modal-stats-table tbody td {
      font-size: 13px;
      font-weight: 600;
      color: #111;
      text-align: center;
      padding: 7px 4px 0;
    }
    .modal-stats-table tbody td:first-child {
      text-align: left;
      font-size: 10px;
      font-weight: 500;
      color: #888;
      letter-spacing: 0.02em;
    }
    .modal-stats-table tbody td.green {
      color: #2d8a5c;
    }
    .modal-stats-table tbody td.red {
      color: #c0392b;
    }

    /* ══════════════════════════════════════════════════════════
       DESKTOP LAYOUT  (≥ 1024px)
       ══════════════════════════════════════════════════════════ */

    /* Default: hide desktop view */
    #desktop-view {
      display: none;
    }

    @media (min-width: 1024px) {
      /* Show/hide switching */
      #mobile-view {
        display: none !important;
      }
      #desktop-view {
        display: block !important;
      }

      /* Override body for desktop */
      body {
        max-width: none;
        padding: 0;
        font-family: "Space Grotesk", "DM Sans", sans-serif;
        background: var(--dg-bg);
      }

      /* Widen modal for desktop */
      .modal-sheet {
        max-width: 620px;
        border-radius: 12px;
      }
    }

    /* ── Desktop design tokens ── */
    :root {
      --dg-bg: #ede8e1;
      --dg-bg2: #e5dfd7;
      --dg-bg3: #dbd4ca;
      --dg-ink: #1c1814;
      --dg-ink2: #5a5248;
      --dg-ink3: #8a837a;
      --dg-rule: #c8c0b5;
      --dg-green: #3d9e72;
      --dg-red: #d4574a;
      --dg-gbg: #e8f4ee;
      --dg-rbg: #faeaea;
    }

    /* ── Inline brand (replaces header) ── */
    .dm-headline-brand {
      display: flex;
      align-items: baseline;
      gap: 14px;
    }
    .dm-brand-date {
      font-family: "Space Grotesk", sans-serif;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--dg-ink3);
    }
    .dm-brand-logo {
      display: inline-block;
      font-family: "Barlow Condensed", sans-serif;
      font-size: 22px;
      font-weight: 800;
      letter-spacing: 0.06em;
      color: var(--dg-ink);
      text-decoration: none;
    }
    .dm-brand-logo:hover {
      color: var(--dg-ink2);
    }

    /* ── Main container ── */
    .dm {
      max-width: 1440px;
      margin: 0 auto;
      padding: 0 40px 60px;
    }
    body.dt-compact .dm {
      padding-bottom: 40px;
    }

    /* ── Shared label style ── */
    .dt-label {
      display: block;
      font-family: "Space Grotesk", sans-serif;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--dg-ink3);
    }

    /* ── Shared rule ── */
    .dt-rule {
      height: 1px;
      background: var(--dg-rule);
    }

    /* ── Pattern headline section ── */
    .dm-headline {
      padding-top: 36px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--dg-rule);
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    body.dt-compact .dm-headline {
      padding-top: 16px;
      padding-bottom: 14px;
    }
    .dm-headline-top {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
    }
    .dm-headline-sub {
      font-size: 13px;
      line-height: 1.55;
      color: var(--dg-ink2);
      font-weight: 600;
      font-style: italic;
      margin-top: 4px;
    }
    .dm-h1-row {
      display: flex;
      align-items: baseline;
      gap: 20px;
      flex-wrap: wrap;
    }
    .dm-h1 {
      font-family: "Barlow Condensed", sans-serif;
      font-size: 64px;
      font-weight: 800;
      letter-spacing: -0.01em;
      line-height: 1;
      text-transform: uppercase;
      color: var(--dg-ink);
      margin: 0;
    }
    body.dt-compact .dm-h1 {
      font-size: 48px;
    }
    .dm-tags {
      display: flex;
      gap: 8px;
      margin-bottom: 4px;
      align-items: center;
      flex-wrap: wrap;
    }
    .dm-tag-filled {
      background: var(--dg-ink);
      color: var(--dg-bg);
      font-family: "Space Grotesk", sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 4px 9px;
      border-radius: 2px;
    }
    .dm-tag-outlined {
      border: 1.5px solid var(--dg-green);
      color: var(--dg-green);
      font-family: "Space Grotesk", sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 4px 9px;
      border-radius: 2px;
    }
    .dm-tag-outlined.bearish {
      border-color: var(--dg-red);
      color: var(--dg-red);
    }
    .dm-tag-outlined.neutral {
      border-color: var(--dg-ink3);
      color: var(--dg-ink3);
    }

    /* ── 2-column grid ── */
    .dm-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: start;
    }

    /* ── Col 1 ── */
    .dm-col1 {
      border-right: 1px solid var(--dg-rule);
      padding-right: 32px;
      padding-top: 28px;
    }
    body.dt-compact .dm-col1 {
      padding-top: 20px;
    }
    .dm-chart-block {
      margin-bottom: 24px;
    }
    .dm-chart-card {
      background: var(--dg-bg2);
      border: 1px solid var(--dg-bg3);
      border-radius: 6px;
      padding: 12px 12px 8px;
      margin-top: 12px;
    }
    .dm-canvas-big {
      display: block;
      width: 100%;
      height: 140px;
    }
    .dm-canvas-ctx {
      display: block;
      width: 100%;
      height: 110px;
    }
    .dm-mc-canvas {
      display: block;
      width: 100%;
      height: 70px;
    }
    .dm-analysis {
      margin-top: 22px;
    }
    .dm-analysis-rule {
      margin-bottom: 18px;
    }
    .dm-para {
      font-size: 13px;
      line-height: 1.75;
      color: var(--dg-ink2);
      margin-bottom: 12px;
    }
    .dm-para:last-child {
      margin-bottom: 0;
    }
    .dm-para a {
      color: var(--dg-ink2);
      text-decoration: underline;
      text-decoration-color: var(--dg-rule);
      text-underline-offset: 2px;
    }
    .dm-para a:hover {
      color: var(--dg-ink);
    }
    .dm-para strong {
      font-weight: 600;
      color: var(--dg-ink);
    }

    /* ── Col right (merged col 2+3) ── */
    .dm-col2 {
      padding-left: 32px;
      padding-right: 0;
      padding-top: 28px;
    }
    .dm-side-rule {
      margin: 20px 0;
    }
    .dm-inner-rule {
      margin: 16px 0;
    }
    .dm-side-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 32px;
    }
    .dm-stats-section-full {
      grid-column: 1 / -1;
    }
    .dm-stats-grid-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .dm-stats-section-full .dm-stats-grid-inner {
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .dm-stat-tile {
      background: var(--dg-bg2);
      border: 1px solid var(--dg-rule);
      border-radius: 6px;
      padding: 9px 10px;
      min-height: 78px;
      box-sizing: border-box;
    }
    .dm-stat-tile-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 5px;
    }
    .dm-stat-tile-label {
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.09em;
      color: var(--dg-ink3);
    }
    .dm-stat-tile-duration {
      font-size: 8px;
      color: var(--dg-ink3);
      opacity: 0.6;
      letter-spacing: 0.04em;
    }
    .dm-stat-spark {
      width: 100%;
      height: 30px;
      display: block;
      margin-bottom: 5px;
    }
    .dm-stat-tile-foot {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 8px;
    }
    .dm-stat-value {
      font-family: "Barlow Condensed", sans-serif;
      font-size: 20px;
      font-weight: 700;
      line-height: 1;
    }
    .dm-stat-sub {
      font-size: 10px;
      color: var(--dg-ink3);
      text-align: right;
      white-space: nowrap;
      line-height: 1.2;
    }
    .dm-block-label {
      display: block;
      margin-bottom: 12px;
    }
    body.dt-compact .dm-col2 {
      padding-top: 20px;
    }
    .dt-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 16px;
      margin-bottom: 16px;
    }
    .dt-table thead tr {
      border-bottom: 1px solid var(--dg-rule);
    }
    .dt-table thead th {
      text-align: left;
      padding-bottom: 10px;
      font-family: "Space Grotesk", sans-serif;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--dg-ink3);
    }
    .dt-table tbody tr {
      border-bottom: 1px solid var(--dg-bg3);
    }
    .dt-table tbody td {
      padding: 13px 0;
    }
    .dt-table .dt-resolved {
      opacity: 0.4;
    }
    .dt-baseline-row td {
      padding-top: 12px !important;
      border: none !important;
    }
    .dm-pull-quote {
      border-left: 3px solid var(--dg-green);
      padding-left: 16px;
      margin-bottom: 28px;
      margin-top: 20px;
    }
    body.dt-compact .dm-pull-quote {
      margin-bottom: 18px;
    }

    /* ── Col 3 ── */
    .dm-col3 {
      padding-left: 32px;
      padding-top: 28px;
    }
    body.dt-compact .dm-col3 {
      padding-top: 20px;
    }
    .dm-signal-bars {
      display: flex;
      gap: 4px;
      margin-top: 12px;
      margin-bottom: 10px;
    }
    .dm-sig-bar {
      flex: 1;
      height: 6px;
      border-radius: 3px;
      background: var(--dg-bg3);
    }
    .dm-sig-bar.on {
      background: var(--dg-ink);
    }
    .dm-sig-text {
      font-size: 12px;
      line-height: 1.65;
      color: var(--dg-ink2);
      margin-bottom: 24px;
    }
    body.dt-compact .dm-sig-text {
      margin-bottom: 16px;
    }

    /* ── Historical grid ── */
    .dm-historical {
      margin-top: 48px;
    }
    body.dt-compact .dm-historical {
      margin-top: 32px;
    }
    .dm-hist-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: 16px;
    }
    .dm-hist-rule {
      margin-bottom: 20px;
    }
    .dm-hist-count {
      font-size: 12px;
      color: var(--dg-ink3);
      margin-top: 5px;
    }
    .dm-filter-group {
      display: flex;
      gap: 6px;
    }
    .dm-filter {
      background: transparent;
      color: var(--dg-ink2);
      border: 1px solid var(--dg-rule);
      border-radius: 3px;
      padding: 4px 12px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.05em;
      cursor: pointer;
      font-family: "Space Grotesk", sans-serif;
      transition:
        background 0.15s,
        color 0.15s;
    }
    .dm-filter.active {
      background: var(--dg-ink);
      color: var(--dg-bg);
      border-color: var(--dg-ink);
    }
    .dm-matches {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 10px;
    }

    /* ── Match card ── */
    .dm-match-card {
      background: var(--dg-bg2);
      border: 1px solid var(--dg-bg3);
      border-radius: 6px;
      overflow: hidden;
      cursor: pointer;
      transition: border-color 0.15s;
    }
    .dm-match-card:hover {
      border-color: var(--dg-ink3);
    }
    .dm-mc-header {
      padding: 12px 12px 8px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
    }
    .dm-mc-date {
      font-size: 12px;
      font-weight: 600;
      line-height: 1.3;
      color: var(--dg-ink);
    }
    .dm-mc-sim {
      font-size: 10px;
      color: var(--dg-ink3);
      margin-top: 2px;
    }
    .dm-mc-badge {
      border-radius: 3px;
      padding: 4px 8px;
      text-align: center;
      flex-shrink: 0;
    }
    .dm-mc-badge-val {
      font-family: "Barlow Condensed", sans-serif;
      font-size: 14px;
      font-weight: 700;
      line-height: 1;
    }
    .dm-mc-badge-lbl {
      font-size: 8px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      opacity: 0.7;
      margin-top: 2px;
    }
    .dm-mc-chart {
      background: var(--dg-bg3);
      padding: 6px 6px 2px;
    }
    .dm-mc-footer {
      padding: 7px 12px;
      font-family: "Space Grotesk", sans-serif;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--dg-ink3);
      display: flex;
      align-items: center;
      gap: 4px;
    }

    /* ── Tweaks button ── */
    .dm-tweaks-btn {
      position: fixed;
      bottom: 24px;
      right: 24px;
      width: 38px;
      height: 38px;
      background: var(--dg-ink);
      color: var(--dg-bg);
      border: none;
      border-radius: 50%;
      font-size: 16px;
      cursor: pointer;
      z-index: 200;
      display: none;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
      transition: opacity 0.15s;
    }
    .dm-tweaks-btn:hover {
      opacity: 0.85;
    }

    @media (min-width: 1024px) {
      .dm-tweaks-btn {
        display: flex;
      }
    }

    /* ── Tweaks panel ── */
    .dm-tweaks-panel {
      position: fixed;
      bottom: 72px;
      right: 24px;
      background: var(--dg-bg);
      border: 1px solid var(--dg-rule);
      border-radius: 10px;
      padding: 16px 20px;
      min-width: 240px;
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
      z-index: 200;
      font-family: "Space Grotesk", sans-serif;
      color: var(--dg-ink);
    }
    .dm-tweaks-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 14px;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.05em;
    }
    .dm-tweaks-close {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 18px;
      color: var(--dg-ink3);
      line-height: 1;
    }
    .dm-tweak-section {
      margin-bottom: 14px;
    }
    .dm-tweak-label {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--dg-ink3);
      margin-bottom: 8px;
    }
    .dm-tweak-options {
      display: flex;
      gap: 5px;
    }
    .dm-tweak-btn {
      font-size: 10px;
      padding: 4px 9px;
      border-radius: 3px;
      border: 1px solid var(--dg-rule);
      background: transparent;
      color: var(--dg-ink2);
      cursor: pointer;
      font-family: "Space Grotesk", sans-serif;
      text-transform: capitalize;
      transition: background 0.15s;
    }
    .dm-tweak-btn.active {
      background: var(--dg-ink);
      color: var(--dg-bg);
      border-color: var(--dg-ink);
    }
    .dm-tweak-toggle-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0;
    }
    .dm-tweak-toggle-label {
      font-size: 11px;
      color: var(--dg-ink2);
    }
    .dm-toggle {
      width: 32px;
      height: 18px;
      border-radius: 9px;
      background: var(--dg-bg3);
      cursor: pointer;
      position: relative;
      transition: background 0.2s;
    }
    .dm-toggle.on {
      background: var(--dg-ink);
    }
    .dm-toggle-knob {
      position: absolute;
      top: 2px;
      left: 2px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #fff;
      transition: left 0.2s;
    }
    .dm-toggle.on .dm-toggle-knob {
      left: 16px;
    }

    /* ── Elapsed note on desktop ── */
    .dm-elapsed {
      font-size: 11px;
      font-weight: 500;
      color: var(--dg-ink3);
      margin-top: 6px;
      letter-spacing: 0.02em;
    }
