*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    :root {
      --bg:        #080B14;
      --bg-panel:  #0E1220;
      --bg-card:   #10152A;
      --line:      rgba(255,255,255,0.08);
      --line-hi:   rgba(255,255,255,0.16);
      --ink:       rgba(255,255,255,0.94);
      --ink-2:     rgba(255,255,255,0.68);
      --ink-3:     rgba(255,255,255,0.44);
      --ink-4:     rgba(255,255,255,0.26);
      --cyan:      #22E4E0;
      --violet:    #8B7CFF;
      --up:        #22E4A8;
      --down:      #FF5C7A;
      --hold:      #FFC24D;
      --sans: 'DM Sans', sans-serif;
      --mono: 'DM Mono', monospace;
      --head: 'Space Grotesk', sans-serif;
    }

    body {
      background: var(--bg); color: var(--ink);
      font-family: var(--sans); font-size: 17.5px; line-height: 1.75; letter-spacing: -0.003em;
      overflow-x: hidden; -webkit-text-size-adjust: 100%;
    }
    a { color: inherit; }
    h1, h2, h3 { font-family: var(--head); }

    /* ═══ HEADER ═══ */
    #site-header {
      position: sticky; top: 0; z-index: 999;
      background: rgba(8,11,20,0.96);
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--line);
    }
    .hdr-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
    .hdr-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
    .hdr-logo { font-family: var(--head); font-weight: 700; font-size: 17px; color: #fff; letter-spacing: 0.2px; white-space: nowrap; }
    .hdr-logo span { color: var(--cyan); }
    .hdr-live-pip { display: flex; align-items: center; gap: 5px; background: rgba(34,228,224,0.1); border: 1px solid rgba(34,228,224,0.3); border-radius: 20px; padding: 3px 10px; }
    .hdr-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: liveDot 2s ease-in-out infinite; flex-shrink: 0; }
    @keyframes liveDot { 0%,100%{opacity:1} 50%{opacity:0.3} }
    .hdr-live-label { font-family: var(--mono); font-size: 9px; color: var(--cyan); letter-spacing: 2px; }
    .hdr-nav { display: flex; align-items: center; gap: 8px; }
    .hdr-navlink { display: flex; align-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 8px; padding: 7px 13px; color: var(--ink-2); font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-decoration: none; white-space: nowrap; transition: all 0.2s; }
    /* Hidden by default — only shown once the browser actually confirms
       installability via beforeinstallprompt, never just decorative. */
    .hdr-pwa-btn { display: none; cursor: pointer; background: rgba(34,228,224,0.1); border-color: rgba(34,228,224,0.28); color: var(--cyan); }
    .hdr-pwa-btn.show { display: flex; }
    .hdr-pwa-btn:hover { background: rgba(34,228,224,0.18); }
    .hdr-navlink:hover { background: rgba(255,255,255,0.1); color: #fff; }
    .hdr-menu-wrap { position: relative; }
    .hdr-menu-btn { display: flex; align-items: center; gap: 6px; background: rgba(34,228,224,0.1); border: 1px solid rgba(34,228,224,0.28); border-radius: 8px; padding: 7px 15px; color: var(--cyan); font-family: var(--mono); font-size: 10px; letter-spacing: 1px; cursor: pointer; white-space: nowrap; user-select: none; }
    .hdr-menu-wrap.open .hdr-dropdown { display: block; }
    .hdr-arrow { font-size: 8px; transition: transform 0.2s; }
    .hdr-menu-wrap.open .hdr-arrow { transform: rotate(180deg); }
    .hdr-dropdown { position: absolute; top: calc(100% + 10px); right: 0; background: #0E1220; border: 1px solid var(--line-hi); border-radius: 14px; padding: 10px; min-width: 260px; max-height: 80vh; overflow-y: auto; box-shadow: 0 24px 70px rgba(0,0,0,0.7); display: none; z-index: 1000; }
    .hd-section { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--violet); padding: 12px 10px 6px; }
    .hd-section:first-child { padding-top: 4px; }
    .hd-sep { height: 1px; background: var(--line); margin: 6px 8px; }
    .hdr-dropdown a { display: block; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: 14px; transition: background 0.15s, color 0.15s; }
    .hdr-dropdown a:hover { background: rgba(255,255,255,0.07); color: #fff; }

    /* ═══ TOP PANEL — LIVE SNAPSHOT GRIDS ═══ */
    #top-panel { max-width: 1180px; margin: 0 auto; padding: 22px 20px 0; }
    .snap-wrap { margin-bottom: 26px; }
    .pred-group { margin-bottom: 30px; }
    .pred-group-title { display: flex; align-items: baseline; gap: 8px; font-family: var(--head); font-size: 16px; font-weight: 600; color: var(--ink-2); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
    .pred-group-count { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-4); }
    .pred-group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
    @media (max-width: 768px) { .pred-group-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; } .pred-group-title { font-size: 15px; } }
    .sc-h2.snap-header { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 15px; letter-spacing: 0.3px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
    .sh-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }
    @keyframes skelPulse { 0%,100%{opacity:0.3} 50%{opacity:0.65} }
    .snap-skel { flex: 1 1 160px; min-width: 145px; height: 84px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; animation: skelPulse 1.4s ease-in-out infinite; }
    .snap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
    .snap-card { display: block; text-decoration: none; color: inherit; background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 60%), var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; transition: background .18s, border-color .18s, transform .18s; }
    .snap-card:hover { background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 60%), #141a30; border-color: var(--line-hi); transform: translateY(-1px); }
    .snap-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
    .snap-card-name { font-family: var(--mono); font-size: 12px; color: var(--ink-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 68%; }
    .snap-signal { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 1px; }
    .idx-closed { font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: 0.8px; color: var(--ink-4); background: rgba(255,255,255,0.06); border-radius: 4px; padding: 2px 5px; flex-shrink: 0; }
    .snap-signal.UP   { color: var(--up); }
    .snap-signal.DOWN { color: var(--down); }
    .snap-signal.HOLD { color: var(--hold); }
    .snap-meta { display: flex; justify-content: space-between; margin-bottom: 7px; align-items: center; }
    .snap-price { font-family: var(--mono); font-size: 15px; font-weight: 700; color: #fff; }
    .snap-change { font-family: var(--mono); font-size: 13px; font-weight: 600; }
    .snap-change.pos { color: var(--up); }
    .snap-change.neg { color: var(--down); }
    .snap-conf { font-family: var(--mono); font-size: 9px; color: var(--ink-4); }
    .snap-bar { height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; }
    .snap-bar-fill { height: 100%; border-radius: 2px; }
    .snap-bar-fill.UP   { background: var(--up); }
    .snap-bar-fill.DOWN { background: var(--down); }
    .snap-bar-fill.HOLD { background: var(--hold); }

    .news-filter-bar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
    .news-filter-chip { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--ink-3); background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; cursor: pointer; }
    .news-filter-chip.active { color: var(--cyan); border-color: rgba(34,228,224,0.4); background: rgba(34,228,224,0.08); }
    .news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
    .swipe-hint-row { display: none; } /* only meaningful once news-grid becomes a horizontal deck, see @media 768px */

    /* ═══ NEWS CARDS — had no CSS at all before this ═══ */
    .news-asset-card { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 55%), var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; transition: border-color .18s, background .18s; }
    .news-asset-card:hover { border-color: var(--line-hi); background: #141a30; }
    .news-asset-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
    .news-asset-name { font-family: var(--head); font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .news-score-num { font-family: var(--mono); font-size: 13px; font-weight: 700; flex-shrink: 0; }

    .news-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
    .news-more > summary { cursor: pointer; list-style: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; color: var(--cyan); -webkit-tap-highlight-color: transparent; }
    .news-more > summary::-webkit-details-marker { display: none; }
    .news-more > summary::after { content: ' \2193'; }
    .news-more[open] > summary::after { content: ' \2191'; }

    .news-callout-label { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 1.2px; margin-bottom: 5px; }
    .news-drivers { margin-top: 10px; padding: 9px 11px; background: rgba(139,124,255,0.06); border-left: 2px solid rgba(139,124,255,0.35); border-radius: 0 6px 6px 0; }
    .news-drivers .news-callout-label { color: var(--violet); }
    .news-driver-item { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; margin-bottom: 3px; }
    .news-callout { margin-top: 10px; padding: 9px 11px; border-radius: 0 6px 6px 0; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
    .news-callout.takeaway { background: rgba(34,228,224,0.06); border-left: 2px solid rgba(34,228,224,0.35); }
    .news-callout.takeaway .news-callout-label { color: var(--cyan); }
    .news-callout.risk { background: rgba(255,92,122,0.06); border-left: 2px solid rgba(255,92,122,0.35); }
    .news-callout.risk .news-callout-label { color: var(--down); }

    /* ═══ LIVE CHART HOST — populated by chart-engine.js ═══ */
    #live-dashboard { max-width: 1180px; margin: 26px auto 0; padding: 0 20px; }
    #mcx-chart-host { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 16px; min-height: 460px; max-height: 640px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--ink-4); font-family: var(--mono); font-size: 12px; letter-spacing: 1px; position: relative; }

    /* ═══ CHART INTERNALS — chart-engine.js only queries these via JS,
       it never injects its own styling, so this has to fully define
       layout for every element it builds. ═══ */
    #mcx-chart-wrap { --chart-accent: var(--cyan); width: 100%; height: 100%; min-height: 460px; display: flex; flex-direction: column; }
    #mcx-chart-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
    #mcx-chart-legend { display: flex; align-items: baseline; gap: 12px; }
    .mcx-cp-price { font-family: var(--mono); font-size: clamp(22px, 4vw, 30px); font-weight: 600; color: var(--chart-accent); }
    .mcx-cp-chg { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--ink-3); }
    #mcx-chart-ranges { display: flex; gap: 6px; }
    .mcx-cr-btn { --btn-accent: var(--cyan); background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.5px; padding: 6px 12px; border-radius: 7px; cursor: pointer; transition: all 0.15s; }
    .mcx-cr-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
    .mcx-cr-btn.active { color: var(--btn-accent); border-color: var(--btn-accent); background: color-mix(in srgb, var(--btn-accent) 12%, transparent); }
    #mcx-chart-container { position: relative; flex: 1; min-height: 340px; padding: 8px 8px 0; }
    #mcx-chart-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--bg-panel); z-index: 5; }
    .mcxcl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); animation: liveDot 1.2s ease-in-out infinite; }
    .mcxcl-text { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--ink-4); }
    #mcx-chart-tooltip { display: none; position: absolute; z-index: 10; pointer-events: none; background: #0E1220; border: 1px solid var(--line-hi); border-radius: 8px; padding: 8px 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
    .mcxct-price { font-family: var(--mono); font-size: 14px; font-weight: 600; }
    .mcxct-date { font-family: var(--mono); font-size: 10px; color: var(--ink-4); margin-top: 2px; }
    #mcx-chart-footer { padding: 8px 18px; border-top: 1px solid var(--line); }
    .mcxcf-hint { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; color: var(--ink-4); }
    /* Chart mobile rules live in the main @media 768px block below,
       consolidated there so they don't conflict with its viewport-
       relative chart sizing. */

    /* ═══ MAIN CONTENT ═══ */
    #site-content { max-width: 1180px; margin: 0 auto; }
    .sc-layout { padding: 40px 20px 20px; }
    .sc-section { margin-bottom: 56px; scroll-margin-top: 80px; }
    .reveal-section { animation: revealFade 0.5s ease both; }
    @keyframes revealFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

    .tag-label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; padding: 6px 16px; border-radius: 20px; margin-bottom: 18px; border: 1px solid; color: var(--cyan); background: rgba(34,228,224,0.08); border-color: rgba(34,228,224,0.28); }
    .sc-hero-h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.12; font-weight: 700; letter-spacing: -1.2px; margin-bottom: 22px; }
    .sc-hero-h1 span { color: var(--cyan); }
    .sc-lead { font-size: 19px; color: var(--ink-2); max-width: 68ch; line-height: 1.8; }

    .stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 22px 0; }
    .stat-box { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; }
    .stat-box .lbl { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); letter-spacing: 1px; margin-bottom: 5px; }
    .stat-box .val { font-size: 15px; font-weight: 600; }

    .sc-h2 { font-size: 27px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.5px; line-height: 1.25; }
    .sc-h3 { font-size: 18.5px; font-weight: 600; margin: 28px 0 12px; font-family: var(--head); letter-spacing: -0.2px; }
    .sc-sub { color: var(--ink-3); font-size: 15.5px; margin-bottom: 20px; line-height: 1.7; max-width: 70ch; }
    .sc-body-text { font-size: 17px; color: var(--ink-2); line-height: 1.85; margin-bottom: 16px; max-width: 72ch; }
    .sc-body-text strong { color: var(--ink); }

    .quant-block { background: var(--bg-panel); border: 1px solid rgba(139,124,255,0.25); border-left: 3px solid var(--violet); border-radius: 0 14px 14px 0; padding: 24px 26px; margin: 22px 0; }
    .quant-block-title { font-family: var(--head); font-size: 15px; color: var(--violet); margin-bottom: 10px; }

    /* ═══ AUTHOR REVIEW CARD ═══ */
    .review-card { background: radial-gradient(110% 130% at 100% 0%, rgba(139,124,255,0.06), rgba(0,0,0,0) 55%), var(--bg-panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; }
    .review-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
    .review-badge { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--cyan), var(--violet)); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 15px; color: #06080F; }
    .review-desk { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px; color: var(--ink-4); text-transform: uppercase; }
    .review-verdict { font-family: var(--head); font-size: 17px; font-weight: 600; color: #fff; margin-top: 2px; }
    .review-text { font-size: 16.5px; color: var(--ink-2); line-height: 1.8; margin: 0 0 14px; }
    .review-disclaimer { font-size: 12.5px; color: var(--ink-4); margin: 0; font-style: italic; }
    .quant-block p { color: var(--ink-2); font-size: 16px; line-height: 1.85; margin: 0; }

    .indicator-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
    .indicator-pill { display: flex; flex-direction: column; gap: 4px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; flex: 1 1 240px; }
    .indicator-pill .i-name { font-family: var(--mono); font-size: 11px; color: var(--cyan); font-weight: 500; letter-spacing: 0.5px; }
    .indicator-pill .i-desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }

    /* ═══ ASSET CARDS (indices / commodities / forex coverage) ═══ */
    .asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; margin: 22px 0; }
    .asset-card { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 55%), var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-decoration: none; color: inherit; display: block; transition: background .2s, border-color .2s, transform .2s; }
    .asset-card:hover { background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 55%), #141a30; border-color: var(--line-hi); transform: translateY(-2px); }
    .asset-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
    .asset-card-name { font-family: var(--head); font-size: 15px; color: #fff; font-weight: 600; }
    .asset-card-tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.5px; padding: 4px 9px; border-radius: 5px; white-space: nowrap; }
    .asset-card p { font-size: 15.5px; color: var(--ink-3); line-height: 1.7; margin: 0; }
    .asset-card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
    .asset-card-stat { font-family: var(--mono); font-size: 10px; color: var(--ink-4); background: rgba(255,255,255,0.05); padding: 5px 9px; border-radius: 5px; }

    /* ═══ CATEGORY PAGE SEARCH BOX ═══ */
    /* ═══ SEARCH OVERLAY — full-site asset search, all 176 markets ═══ */
    #asset-search-overlay { position: fixed; inset: 0; z-index: 2000; display: none; }
    #asset-search-overlay.open { display: block; }
    .aso-backdrop { position: absolute; inset: 0; background: rgba(4,6,12,0.7); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
    .aso-panel { position: relative; max-width: 620px; margin: 8vh auto 0; background: var(--bg-panel); border: 1px solid var(--line-hi); border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,0.6); max-height: 78vh; display: flex; flex-direction: column; overflow: hidden; }
    .aso-top { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
    .aso-top svg { flex-shrink: 0; opacity: 0.45; }
    #aso-input { flex: 1; background: transparent; border: none; outline: none; color: var(--ink); font-family: var(--sans); font-size: 17px; min-width: 0; }
    #aso-input::placeholder { color: var(--ink-4); }
    #aso-close { flex-shrink: 0; background: rgba(255,255,255,0.06); border: none; color: var(--ink-3); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px; }
    #aso-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
    .aso-results { overflow-y: auto; padding: 8px; }
    .aso-hint { padding: 28px 16px; text-align: center; color: var(--ink-4); font-family: var(--mono); font-size: 12px; letter-spacing: 0.5px; }
    .aso-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 10px; text-decoration: none; color: inherit; transition: background .15s; }
    .aso-result:hover { background: rgba(255,255,255,0.06); }
    .aso-result-name { font-size: 15px; color: var(--ink); font-weight: 500; }
    .aso-result-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; color: var(--ink-4); text-transform: uppercase; flex-shrink: 0; }
    @media (max-width: 640px) {
      .aso-panel { margin: 0; max-width: 100%; max-height: 100vh; border-radius: 0; height: 100%; }
      .aso-top { padding: 16px; }
      #aso-input { font-size: 16px; } /* avoids iOS auto-zoom */
    }

    .category-search-wrap { display: flex; align-items: center; gap: 10px; margin: 18px 0 22px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
    button.category-search-wrap { width: 100%; text-align: left; cursor: pointer; font: inherit; transition: background .15s, border-color .15s; }
    button.category-search-wrap:hover { background: #141a30; border-color: var(--line-hi); }
    #home-search-strip-wrap { max-width: 1180px; margin: 18px auto 0; padding: 0 20px; }
    #home-search-strip-wrap .category-search-wrap { margin: 0; }
    #home-search-strip svg { flex-shrink: 0; opacity: 0.45; }
    #home-search-strip-text { color: var(--ink-4); font-size: 15px; }
    @media (max-width: 768px) { #home-search-strip-wrap { padding: 0 14px; margin-top: 14px; } #home-search-strip-text { font-size: 14.5px; } }
    .category-search-wrap svg { flex-shrink: 0; opacity: 0.4; }
    #category-search-input, #prediction-search-input, #components-search-input { flex: 1; background: transparent; border: none; outline: none; color: var(--ink); font-family: var(--sans); font-size: 15px; min-width: 0; }
    #category-search-input::placeholder, #prediction-search-input::placeholder, #components-search-input::placeholder { color: var(--ink-4); }
    #category-search-count, #prediction-search-count, #components-search-count { font-family: var(--mono); font-size: 11px; color: var(--cyan); white-space: nowrap; }

    .coverage-more { display: block; text-align: center; padding: 16px; margin-top: 10px; border: 1px dashed var(--line-hi); border-radius: 12px; color: var(--ink-3); text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; }
    .coverage-more:hover { color: var(--cyan); border-color: rgba(34,228,224,0.4); }

    /* ═══ FULL DIRECTORY GRID (every single asset, compact) ═══ */
    .coverage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; margin: 18px 0 26px; }
    .coverage-card { display: block; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: inherit; transition: background .18s, border-color .18s, transform .18s; }
    .coverage-card:hover { background: #141a30; border-color: rgba(34,228,224,0.3); transform: translateY(-1px); }
    .coverage-card .cc-name { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
    .coverage-card .cc-sub { font-size: 12px; color: var(--ink-4); margin-top: 3px; }

    /* ═══ STRATEGY / FAQ CONTENT ═══ */
    .strategy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 20px 0; }
    .strategy-card { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 55%), var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
    .strategy-card h4 { font-family: var(--head); font-size: 15.5px; color: var(--cyan); margin-bottom: 8px; }
    .strategy-card p { font-size: 15.5px; color: var(--ink-2); line-height: 1.75; margin: 0; }
    .strategy-card .sc-risk { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; padding: 3px 9px; border-radius: 5px; }
    .risk-low  { color: var(--up); background: rgba(34,228,168,0.1); }
    .risk-med  { color: var(--hold); background: rgba(255,194,77,0.1); }
    .risk-high { color: var(--down); background: rgba(255,92,122,0.1); }

    .faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
    .faq-item:first-child { padding-top: 0; }
    .faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--head); font-size: 17px; font-weight: 600; color: var(--ink); -webkit-tap-highlight-color: transparent; line-height: 1.5; }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::after { content: '+'; font-size: 22px; color: var(--cyan); flex-shrink: 0; transition: transform .2s; }
    .faq-item[open] summary::after { transform: rotate(45deg); }
    .faq-item p { margin-top: 12px; font-size: 16px; color: var(--ink-2); line-height: 1.8; max-width: 72ch; }

    /* ═══ BREADCRUMB (visual, mirrors BreadcrumbList schema) ═══ */
    .breadcrumb-nav { max-width: 1180px; margin: 0 auto; padding: 14px 20px 0; }
    .breadcrumb-nav ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); }
    .breadcrumb-nav a { color: var(--ink-3); text-decoration: none; }
    .breadcrumb-nav a:hover { color: var(--cyan); }
    .breadcrumb-nav li[aria-current] { color: var(--ink-2); }
    .breadcrumb-nav .bc-sep { color: var(--ink-4); }

    /* ═══ PRICE HERO — top of every asset page ═══ */
    .price-hero { background: radial-gradient(120% 140% at 0% 0%, rgba(34,228,224,0.055), rgba(0,0,0,0) 55%), var(--bg-panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; margin: 20px 0; box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset; }
    .price-hero-top { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
    .price-hero-num { font-family: var(--mono); font-size: clamp(32px, 7vw, 44px); font-weight: 500; letter-spacing: -1px; color: #fff; }
    .price-hero-change { font-family: var(--mono); font-size: 17px; font-weight: 600; }
    .price-hero-change.pos { color: var(--up); }
    .price-hero-change.neg { color: var(--down); }
    .price-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
    .price-hero-meta .pm-item .pm-lbl { font-family: var(--mono); font-size: 10px; color: var(--ink-4); letter-spacing: 1px; margin-bottom: 3px; }
    .price-hero-meta .pm-item .pm-val { font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
    .price-hero-status { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.5px; padding: 4px 10px; border-radius: 20px; margin-left: auto; }
    .constituents-cta { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 13px 18px; background: rgba(34,228,224,0.07); border: 1px solid rgba(34,228,224,0.25); border-radius: 12px; color: var(--cyan); text-decoration: none; font-size: 15px; font-weight: 500; transition: background .18s, border-color .18s; scroll-margin-top: 80px; }
    .constituents-cta:hover { background: rgba(34,228,224,0.13); border-color: rgba(34,228,224,0.4); }
    .constituents-cta span { margin-left: auto; opacity: 0.7; }

    /* ═══ AI SIGNAL — multi-timeframe grid, sits right below price ═══ */
    /* ═══════════════════════════════════════════════════════════════
       TIMEFRAME CARDS — ported from mcxtrends' tf-card system.
       Mobile: vertical accordion, tap to open. Desktop (≥769px):
       horizontal snap deck, all cards forced open. Signal colour is one
       custom property per card (--sig), set inline per card.
    ═══════════════════════════════════════════════════════════════ */
    .tf-boot { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; text-align: center; color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; padding: 30px; }
    .tf-stack { display: flex; flex-direction: column; gap: 10px; overflow: visible; padding: 2px 0 8px; margin: 0; }
    .tf-swipe-deck { display: flex; flex-direction: row; gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 0 14px; margin: 0 -4px; }

    /* ── desktop scroll arrows for the timeframe deck ── */
    .tf-deck-outer { position: relative; }
    .tf-scroll-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 44px; height: 44px; border-radius: 50%; background: rgba(20,20,22,.92); border: 1px solid var(--line-hi); color: var(--ink-2); font-size: 22px; cursor: pointer; align-items: center; justify-content: center; transition: background .2s, color .2s, border-color .2s, opacity .2s; box-shadow: 0 8px 24px rgba(0,0,0,.7); backdrop-filter: blur(4px); }
    .tf-scroll-arrow:hover { background: rgba(34,34,38,1); color: #fff; border-color: var(--line-hi); }
    .tf-scroll-arrow.left { left: -20px; }
    .tf-scroll-arrow.right { right: -20px; }
    @media (min-width: 769px) { .tf-scroll-arrow { display: flex; } .tf-deck-outer { padding: 0 15px; } }
    .tf-swipe-deck::-webkit-scrollbar { display: none; }
    .tf-swipe-deck > .tf-card { scroll-snap-align: start; flex: 0 0 clamp(300px, 32%, 380px); min-width: clamp(300px, 32%, 380px); }

    .tf-card { --sig: var(--hold); --sig-dim: rgba(255,194,77,.09); --sig-line: rgba(255,194,77,.24); position: relative; background: linear-gradient(180deg, var(--sig-dim) 0%, rgba(0,0,0,0) 92px), var(--bg-card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-sizing: border-box; transition: border-color .2s ease, background .2s ease; }
    .tf-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--sig); opacity: .55; transition: opacity .2s ease; }
    .tf-card[open] { border-color: var(--sig-line); }
    .tf-card[open]::before { opacity: 1; }

    .tf-card > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "tag verdict chev" "peek peek peek" "conf conf conf"; align-items: center; gap: 4px 12px; padding: 14px 16px 13px 18px; -webkit-tap-highlight-color: transparent; }
    .tf-card > summary::-webkit-details-marker { display: none; }
    .tf-card > summary:focus-visible { outline: 2px solid var(--sig); outline-offset: -2px; }

    .tf-tag { grid-area: tag; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .5px; color: var(--sig); background: var(--sig-dim); border: 1px solid var(--sig-line); border-radius: 6px; padding: 5px 9px; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .tf-verdict { grid-area: verdict; display: flex; align-items: baseline; gap: 9px; min-width: 0; }
    .tf-sig { font-family: var(--mono); font-size: 22px; font-weight: 500; line-height: 1; letter-spacing: -.5px; color: var(--sig); }
    .tf-trend { font-family: var(--mono); font-size: 9px; letter-spacing: 1.6px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tf-chev { grid-area: chev; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; white-space: nowrap; transition: color .2s, border-color .2s; }
    .tf-card[open] .tf-chev { color: var(--sig); border-color: var(--sig-line); }
    .tf-card > summary:hover .tf-chev { color: var(--ink-2); }

    .tf-peek { grid-area: peek; margin: 8px 0 0; font-family: var(--sans); font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .tf-card[open] .tf-peek { -webkit-line-clamp: unset; }

    .tf-conf { grid-area: conf; display: flex; align-items: center; gap: 10px; margin-top: 11px; }
    .tf-conf-track { flex: 1; height: 4px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
    .tf-conf-track > i { display: block; height: 100%; background: var(--sig); border-radius: 3px; box-shadow: 0 0 10px -1px var(--sig); transition: width .45s cubic-bezier(.4,0,.2,1); }
    .tf-conf-num { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--sig); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
    .tf-conf-tier { font-family: var(--mono); font-size: 8px; letter-spacing: 1.2px; color: var(--ink-3); border-left: 1px solid var(--line); padding-left: 9px; white-space: nowrap; }

    .tf-body { border-top: 1px solid var(--line); padding: 15px 18px 0; animation: tfIn .22s ease; }
    @keyframes tfIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
    @media (prefers-reduced-motion: reduce) { .tf-body { animation: none; } .tf-conf-track > i { transition: none; } }
    .tf-eyebrow { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: 1.8px; color: var(--ink-4); margin-bottom: 9px; }
    .tf-full { font-family: var(--sans); font-size: 13px; line-height: 1.82; color: var(--ink-2); }
    .tf-full strong { color: var(--ink); font-weight: 600; }
    .tf-full .b { color: var(--sig); margin-right: 5px; }
    .tf-foot { margin-top: 14px; border-top: 1px solid var(--line); padding: 9px 0 11px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 8px; letter-spacing: 1.1px; color: var(--ink-4); }

    .tf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px 10px; }
    .tf-toolbar-label { font-family: var(--mono); font-size: 9px; letter-spacing: 1.6px; color: var(--ink-3); }
    .tf-toolbar-btn { font-family: var(--mono); font-size: 9px; letter-spacing: 1.2px; color: var(--ink-2); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 6px; padding: 6px 11px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .18s, color .18s, border-color .18s; }
    .tf-toolbar-btn:hover, .tf-toolbar-btn:active { background: rgba(255,255,255,.08); color: var(--ink); border-color: var(--line-hi); }
    @media (min-width: 769px) { .tf-toolbar { display: none; } }
    @media (min-width: 769px) { .tf-swipe-deck .tf-card > summary { cursor: default; } .tf-swipe-deck .tf-chev { display: none; } .tf-swipe-deck .tf-card { display: flex; flex-direction: column; } .tf-swipe-deck .tf-body { flex: 1; } }

    /* ═══ AI SIGNAL — real narrative content, not just bare tabs ═══ */
    .ai-headline { font-size: 17.5px; font-weight: 500; color: var(--ink); line-height: 1.6; margin: 4px 0 18px; padding: 14px 16px; background: rgba(139,124,255,0.06); border-left: 3px solid var(--violet); border-radius: 0 10px 10px 0; }
    #ai-full-analysis { margin-top: 18px; }
    #ai-full-analysis p { font-size: 15px; color: var(--ink-2); line-height: 1.85; margin: 0 0 12px; }
    /* Server-rendered signal narrative (SEO worker) — replaced by the
       real tf-card deck once core-engine-globalquant.js runs; only
       needs to look reasonable for that brief window. */
    .gq-ssr-narrative { padding: 16px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
    .gq-ssr-narrative strong { color: var(--ink); }
    #ai-full-analysis strong { color: var(--ink); }
    .ai-narrative-list { margin: 0 0 12px; padding-left: 20px; }
    .ai-narrative-list li { font-size: 15px; color: var(--ink-2); line-height: 1.8; margin-bottom: 6px; }
    .ai-narrative-list strong { color: var(--ink); }

    /* ═══ AFTER-HOURS OUTLOOK — compact, single card, low footprint ═══ */
    .afterhours-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
    .ah-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
    .ah-status { font-family: var(--mono); font-size: 11px; letter-spacing: 0.5px; color: var(--ink-3); }
    .ah-signal { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
    .ah-text { font-size: 14px; color: var(--ink-3); line-height: 1.6; margin: 0; }
    .ah-drivers { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
    .ah-driver { font-family: var(--mono); font-size: 10px; letter-spacing: 0.5px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px; }

    .sc-warning { background: rgba(255,92,122,0.07); border: 1px solid rgba(255,92,122,0.28); border-radius: 12px; padding: 18px 20px; margin: 24px 0; display: flex; gap: 12px; align-items: flex-start; }
    .sc-warning .w-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
    .sc-warning p { color: var(--ink-2); font-size: 15.5px; line-height: 1.8; margin: 0; }
    .sc-warning p strong { color: var(--ink); }
    .sc-disclaimer { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin-top: 26px; font-size: 13.5px; color: var(--ink-4); line-height: 1.8; }
    .sc-disclaimer strong { color: var(--ink-3); }

    .sc-footer { border-top: 1px solid var(--line); padding: 36px 20px; text-align: center; background: var(--bg); }
    .sc-footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; flex-wrap: wrap; }
    .sc-footer-links a { color: var(--cyan); text-decoration: underline; font-size: 14px; }
    .sc-footer-copy { color: var(--ink-4); font-size: 12px; }
    .sc-footer-disclaimer { color: var(--ink-4); opacity: 0.6; font-size: 11px; max-width: 620px; margin: 10px auto 0; line-height: 1.7; }


    /* ═══════════════════════════════════════════════════════════════
       MOBILE — patterned on mcxtrends' phone CSS. Key techniques
       borrowed from it rather than invented here:
         • 768px breakpoint (not 640px) — large phones in landscape and
           small tablets were getting the desktop layout before.
         • Edge-to-edge swipe decks: negative horizontal margin equal to
           the layout padding, with that padding added back inside, so a
           card can be ~88vw wide and still scroll cleanly off-screen.
         • Real 44px minimum tap targets on every interactive row.
         • Viewport-relative sizing (vh/vw) for the chart and decks
           instead of fixed pixel heights.
    ═══════════════════════════════════════════════════════════════ */
    @media (max-width: 768px) {
      /* Root guard — nothing may force the page wider than the viewport */
      html, body { max-width: 100%; overflow-x: hidden; }
      #site-content, #top-panel, #live-dashboard, .breadcrumb-nav { max-width: 100%; }

      body { font-size: 17px; line-height: 1.7; }
      .sc-layout { padding: 26px 14px 16px; }
      .sc-section { margin-bottom: 40px; }

      /* ── TYPOGRAPHY — larger than before; small text was the complaint ── */
      .sc-hero-h1 { font-size: clamp(29px, 8.4vw, 38px); line-height: 1.15; letter-spacing: -0.8px; margin-bottom: 16px; }
      .sc-lead { font-size: 17px; line-height: 1.75; }
      .sc-h2 { font-size: 22.5px; letter-spacing: -0.4px; line-height: 1.28; }
      .sc-h3 { font-size: 17.5px; }
      .sc-body-text { font-size: 16.5px; line-height: 1.8; margin-bottom: 15px; }
      .sc-sub { font-size: 15px; line-height: 1.65; }
      .tag-label { font-size: 9.5px; letter-spacing: 1.6px; padding: 6px 13px; margin-bottom: 14px; }

      /* ── HEADER — brand shrinks, nav never wraps ── */
      /* ── HEADER — single row on mobile ── */
.hdr-inner {
  padding: 8px 14px;
  gap: 8px;
  min-height: 56px;
  flex-wrap: nowrap;
}

.hdr-brand {
  min-width: 0;
  flex: 1 1 auto;
  gap: 7px;
}

.hdr-logo {
  font-size: 15.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hdr-live-pip {
  padding: 2px 7px;
}

.hdr-live-label {
  font-size: 8px;
  letter-spacing: 1.2px;
}

/* Keep INSTALL APP + MARKETS beside the logo */
.hdr-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  width: auto;
  justify-content: flex-end;
}

.hdr-navlink,
.hdr-menu-btn {
  padding: 9px 11px;
  font-size: 9.5px;
  letter-spacing: 0.6px;
  min-height: 38px;
  white-space: nowrap;
}

.hdr-dropdown {
  min-width: 0;
  width: calc(100vw - 28px);
  right: -7px;
}

      /* ── SNAPSHOT GRID — 2-up, tappable ── */
      /* ── SNAPSHOT GRID — 2-up, tappable ── */
.snap-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

.snap-card {
  padding: 14px 14px;
  border-radius: 13px;
}

.snap-card-name {
  font-size: 12px;
  max-width: 70%;
}

.idx-closed {
  display: none;
}

.snap-price {
  font-size: 15.5px;
}

.snap-change {
  font-size: 13px;
}

      /* ── NEWS: edge-to-edge horizontal swipe deck (mcxtrends pattern)
           instead of a cramped single column. Cards get ~88vw so one
           card reads comfortably and the next peeks in. ── */
      .news-grid {
        display: flex; flex-wrap: nowrap;
        overflow-x: auto; overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 11px;
        margin: 0 -14px; padding: 2px 14px 14px;
      }
      .news-grid::-webkit-scrollbar { display: none; }
      .swipe-hint-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 12px; }
      .swipe-hint {
        display: inline-flex; align-items: center; gap: 6px;
        font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px;
        color: var(--cyan); margin: 0;
        animation: swipeHintPulse 1.8s ease-in-out infinite;
      }
      .swipe-hint-btn {
        flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
        background: var(--cyan); border: none;
        color: #06131a; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        -webkit-tap-highlight-color: transparent; transition: transform .15s;
        box-shadow: 0 0 0 4px rgba(34,228,224,0.15), 0 4px 14px -2px rgba(34,228,224,0.6);
        animation: swipeBtnPulse 1.8s ease-in-out infinite;
      }
      .swipe-hint-btn:active { transform: scale(0.92); }
      @keyframes swipeBtnPulse { 0%,100% { box-shadow: 0 0 0 4px rgba(34,228,224,0.15), 0 4px 14px -2px rgba(34,228,224,0.6); } 50% { box-shadow: 0 0 0 7px rgba(34,228,224,0.08), 0 4px 18px 0px rgba(34,228,224,0.75); } }
      @media (prefers-reduced-motion: reduce) { .swipe-hint-btn { animation: none; } }
      @keyframes swipeHintPulse { 0%,100% { opacity: 0.55; transform: translateX(0); } 50% { opacity: 1; transform: translateX(3px); } }
      @media (prefers-reduced-motion: reduce) { .swipe-hint { animation: none; opacity: 0.85; } }
      .news-grid > .news-asset-card {
        flex: 0 0 88vw; max-width: 420px;
        scroll-snap-align: center;
        max-height: 68vh; overflow-y: auto;
        padding: 16px; border-radius: 15px;
      }
      /* asset/score header stays pinned while reading down a long card */
      .news-grid > .news-asset-card .news-asset-top {
        position: sticky; top: -1px; z-index: 3;
        background: var(--bg-card);
        margin: -16px -16px 10px; padding: 14px 16px 10px;
        border-bottom: 1px solid var(--line);
      }
      .news-asset-name { font-size: 15px; line-height: 1.45; }
      .news-score-num { font-size: 17px; }
      .news-more > summary { padding: 11px 0; min-height: 44px; display: flex; align-items: center; font-size: 11px; }
      .news-callout, .news-drivers { font-size: 13px; padding: 11px 13px; }
      .news-driver-item { font-size: 12.5px; }
      .news-filter-bar { margin: 0 -14px 8px; padding: 0 14px 10px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
      .news-filter-bar::-webkit-scrollbar { display: none; }
      .news-filter-chip { flex: 0 0 auto; padding: 9px 16px; font-size: 11px; min-height: 40px; display: flex; align-items: center; }

      /* ── OTHER GRIDS — single column, roomier cards ── */
      .asset-grid { grid-template-columns: 1fr; gap: 12px; }
      .asset-card { padding: 20px; border-radius: 15px; }
      .strategy-grid { grid-template-columns: 1fr; gap: 12px; }
      .strategy-card { padding: 20px; border-radius: 15px; }
      .coverage-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
      .coverage-card { padding: 13px 14px; min-height: 52px; }
      .stat-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
      .indicator-pill { flex: 1 1 100%; }
      #top-panel { padding: 16px 14px 0; }

      /* ── PRICE HERO — 5 meta items become a readable 2-col grid ── */
      .price-hero { padding: 20px 18px; border-radius: 16px; }
      .price-hero-top { gap: 11px; }
      .price-hero-num { font-size: clamp(30px, 9vw, 40px); }
      .price-hero-change { font-size: 16px; }
      .price-hero-status { margin-left: 0; font-size: 9px; }
      .price-hero-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
      .price-hero-meta .pm-item .pm-val { font-size: 14.5px; }

      /* ── TIMEFRAME CARDS — 44px targets, larger narrative text ── */
      .tf-stack { gap: 9px; }
      .tf-card > summary { padding: 13px 14px 13px 16px; gap: 5px 10px; min-height: 52px; }
      .tf-sig { font-size: 20px; }
      .tf-tag { font-size: 10.5px; padding: 5px 8px; }
      .tf-trend { font-size: 9px; }
      .tf-peek { font-size: 13.5px; line-height: 1.55; }
      .tf-chev { padding: 7px 10px; min-height: 32px; display: flex; align-items: center; }
      .tf-body { padding: 14px 16px 0; }
      .tf-full { font-size: 13.5px; line-height: 1.8; }
      .tf-toolbar-btn { padding: 9px 13px; min-height: 40px; }
      .ai-headline { font-size: 16.5px; padding: 13px 14px; line-height: 1.55; }

      /* ── CHART — viewport-relative height (mcxtrends pattern) ── */
      #mcx-chart-host { min-height: 0; max-height: none; }
      #mcx-chart-wrap { min-height: 0; }
      #mcx-chart-container { min-height: 0; height: clamp(280px, 48vh, 400px); }
      #mcx-chart-topbar { padding: 12px 14px; gap: 8px; }
      #mcx-chart-ranges { gap: 4px; }
      .mcx-cr-btn { padding: 8px 11px; font-size: 10px; min-height: 36px; }
      .mcx-cp-price { font-size: 21px; }
      .mcx-cp-chg { font-size: 13px; }
      #mcx-chart-footer { padding: 8px 14px; }
      .mcxcf-hint { display: none; } /* "hover to inspect" doesn't apply on touch */

      /* ── SEARCH BOX — 16px input avoids iOS auto-zoom on focus ── */
      .category-search-wrap { padding: 12px 14px; gap: 9px; margin: 14px 0 18px; border-radius: 12px; }
      #category-search-input, #prediction-search-input, #components-search-input { font-size: 16px; }
      #category-search-count, #prediction-search-count { font-size: 10.5px; }

      /* ── FAQ / REVIEW / BLOCKS ── */
      .faq-item { padding: 16px 0; }
      .faq-item summary { font-size: 16px; line-height: 1.5; min-height: 44px; }
      .faq-item p { font-size: 15.5px; line-height: 1.75; }
      .review-card, .quant-block { padding: 20px 18px; border-radius: 16px; }
      .review-text { font-size: 15.5px; }
      .review-badge { width: 40px; height: 40px; }
      .sc-warning { padding: 15px 16px; }
      .sc-warning p { font-size: 14.5px; line-height: 1.7; }
      .afterhours-card { padding: 15px 16px; }
      .ah-text { font-size: 14.5px; }

      /* ── BREADCRUMB / FOOTER ── */
      .breadcrumb-nav { padding: 12px 14px 0; }
      .breadcrumb-nav ol { font-size: 11px; }
      .sc-footer { padding: 30px 16px; }
      .sc-footer-links { gap: 14px 18px; }
      .sc-footer-links a { font-size: 14.5px; padding: 4px 0; }
    }

    @media (max-width: 420px) {
      .snap-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
      .snap-card { padding: 12px 12px; }
      /* Name gets more of the row — the signal badge only needs ~40px,
         so capping the name at 60% was wasting space it could use. */
      .snap-card-name { font-size: 11.5px; max-width: 66%; }
      .snap-price { font-size: 14.5px; }
      /* On the narrowest phones (≤340px) the price + change row can't fit
         side by side; let it wrap rather than squeeze or clip. */
      .snap-meta { flex-wrap: wrap; gap: 2px 6px; }
      /* Bring the signal badge / change% close to the name / price
         instead of stretched to the card's far edge — space-between
         maximizes the gap, which looks sparse on a narrow card. */
      .snap-card-top { justify-content: flex-start; gap: 8px; }
      .snap-card-name { max-width: none; flex-shrink: 1; min-width: 0; }
      .snap-meta { justify-content: flex-start; gap: 10px; }
      .snap-signal { font-size: 10px; letter-spacing: 0.5px; }
      .coverage-grid { grid-template-columns: 1fr; }
      .stat-row { grid-template-columns: 1fr; }
      .sc-hero-h1 { font-size: 26px; letter-spacing: -0.6px; }
      .sc-h2 { font-size: 21px; }
      .sc-layout { padding: 22px 12px 14px; }
      .hdr-logo { font-size: 14.5px; }
      /* hide the LIVE pip on very narrow screens so the nav never wraps */
      .hdr-live-pip { display: none; }
      /* deck cards take slightly more of the screen when it's this narrow */
      .news-grid { margin: 0 -12px; padding: 2px 12px 14px; }
      .news-grid > .news-asset-card { flex: 0 0 91vw; }
      .news-filter-bar { margin: 0 -12px 8px; padding: 0 12px 10px; }
    }