    :root {
      --bg: #080c10;
      --surface: #0e1520;
      --surface2: #141e2d;
      --border: rgba(100,140,200,.13);
      --border2: rgba(100,140,200,.22);
      --text: #dce8f5;
      --muted: #6b84a0;
      --accent: #4f9cf9;
      --accent2: #7ec8e3;
      --urgent0: #ff6b6b;
      --urgent1: #ff9f43;
      --urgent2: #ffd166;
      --urgent3: #06d6a0;
      --mono: 'DM Mono', monospace;
      --display: 'Syne', sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--mono);
      min-height: 100vh;
      overflow-x: hidden;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(rgba(79,156,249,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,156,249,.03) 1px, transparent 1px);
      background-size: 40px 40px;
      pointer-events: none;
      z-index: 0;
    }

    .wrap {
      position: relative;
      z-index: 1;
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* ===== HEADER ===== */
    header {
      padding: 32px 0 20px;
      border-bottom: 1px solid var(--border);
    }
    .header-inner {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }
    .logo-block h1 {
      font-family: var(--display);
      font-size: clamp(20px, 3.5vw, 32px);
      font-weight: 800;
      letter-spacing: -0.5px;
      line-height: 1;
    }
    .logo-block h1 span { color: var(--accent); }
    .logo-block .tagline {
      margin-top: 7px;
      font-size: 12px;
      color: var(--muted);
      letter-spacing: .5px;
      text-transform: uppercase;
    }
    .header-nav { display: flex; align-items: center; flex-wrap: wrap; }
    .nav-link {
      font-size: 11px;
      letter-spacing: .5px;
      text-transform: uppercase;
      color: var(--muted);
      text-decoration: none;
      padding: 4px 14px;
      transition: color .15s;
    }
    .nav-link + .nav-link { border-left: 1px solid var(--border); }
    .nav-link:hover { color: var(--text); }
    .nav-link[aria-current="page"] { color: var(--accent); }

    /* ===== STATUS ===== */
    .status-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px 0;
      font-size: 12px;
      color: var(--muted);
      border-bottom: 1px solid var(--border);
    }
    .status-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--urgent3);
      box-shadow: 0 0 8px var(--urgent3);
      flex-shrink: 0;
      animation: pulse 2.5s ease-in-out infinite;
    }
    @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

    /* ===== FUND SWITCHER ===== */
    .fund-switcher {
      margin-left: auto;
      position: relative;
      flex-shrink: 0;
    }
    .switcher-input {
      background: transparent;
      border: none;
      border-bottom: 1px solid var(--border2);
      color: var(--text);
      font-family: var(--mono);
      font-size: 11px;
      padding: 3px 20px 3px 6px;
      outline: none;
      width: 160px;
      transition: border-color .15s, width .2s;
    }
    .switcher-input::placeholder { color: rgba(107,132,160,.4); }
    .switcher-input:focus { border-bottom-color: var(--accent); width: 220px; }
    .switcher-clear {
      position: absolute;
      right: 2px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--muted);
      font-size: 13px;
      cursor: pointer;
      padding: 0 2px;
      line-height: 1;
      display: none;
    }
    .switcher-input:not(:placeholder-shown) ~ .switcher-clear { display: block; }
    .switcher-dropdown {
      display: none;
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      background: var(--surface);
      border: 1px solid var(--border2);
      border-radius: 10px;
      box-shadow: 0 12px 32px rgba(0,0,0,.5);
      width: 300px;
      max-height: 320px;
      overflow-y: auto;
      z-index: 200;
      scrollbar-width: thin;
      scrollbar-color: rgba(79,156,249,.2) transparent;
    }
    .switcher-dropdown.open { display: block; }
    .switcher-option {
      padding: 10px 14px;
      cursor: pointer;
      border-bottom: 1px solid var(--border);
      transition: background .1s;
    }
    .switcher-option:last-child { border-bottom: none; }
    .switcher-option:hover { background: rgba(79,156,249,.07); }
    .sw-ticker { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--accent); }
    .sw-name { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* ===== LOADING / ERROR ===== */
    .page-loading {
      padding: 80px 20px;
      text-align: center;
      color: var(--muted);
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }
    .spinner {
      width: 14px; height: 14px;
      border: 2px solid var(--border);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin .7s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .page-error {
      padding: 40px 20px;
      color: #ff9f9f;
      font-size: 13px;
      background: rgba(255,107,107,.07);
      border: 1px solid rgba(255,107,107,.2);
      border-radius: 10px;
      margin: 32px 0;
    }

    /* ===== HERO ===== */
    .fund-hero {
      margin: 28px 0 0;
      background: var(--surface);
      border: 1px solid var(--border2);
      border-radius: 14px;
      padding: 28px 28px 24px;
      position: relative;
      overflow: hidden;
    }
    .fund-hero::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: var(--hero-color, var(--accent));
    }
    .hero-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }
    .hero-left {}
    .hero-tickers {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
      margin-bottom: 8px;
      max-width: 560px;
    }
    .hero-ticker-sep {
      color: var(--border2);
      font-size: 18px;
      line-height: 1;
      user-select: none;
    }
    .hero-ticker-chip {
      font-family: var(--display);
      font-size: clamp(18px, 3vw, 28px);
      font-weight: 800;
      letter-spacing: -0.5px;
      line-height: 1;
      color: var(--text);
    }
    .hero-name {
      font-size: 14px;
      color: var(--muted);
      margin-bottom: 14px;
      max-width: 520px;
      line-height: 1.5;
    }
    .hero-meta {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
    }
    .hero-cik {
      font-size: 11px;
      color: var(--muted);
    }
    .hero-cik a { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(107,132,160,.4); }
    .hero-cik a:hover { color: var(--accent2); }

    .hero-right {
      text-align: right;
      flex-shrink: 0;
    }
    .next-label {
      font-size: 10px;
      letter-spacing: .7px;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 6px;
    }
    .next-date {
      font-family: var(--display);
      font-size: 22px;
      font-weight: 700;
      color: var(--text);
      line-height: 1;
      margin-bottom: 8px;
    }
    .days-badge {
      display: inline-block;
      font-size: 12px;
      font-weight: 500;
      padding: 4px 12px;
      border-radius: 999px;
      border: 1px solid var(--hero-color, var(--accent));
      color: var(--hero-color, var(--accent));
      background: rgba(79,156,249,.08);
    }
    .no-upcoming {
      font-size: 12px;
      color: var(--muted);
      font-style: italic;
    }

    /* ===== STATS STRIP ===== */
    .stats-strip {
      display: flex;
      align-items: stretch;
      flex-wrap: wrap;
      gap: 0;
      margin: 20px 0 0;
      background: var(--surface2);
      border-radius: 10px;
      border: 1px solid var(--border);
      overflow: hidden;
    }
    .stat-item {
      flex: 1 1 0;
      padding: 12px 14px;
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      min-width: 100px;
    }
    .stat-item:last-child { border-right: none; }
    .stat-item .label {
      font-size: 9px;
      letter-spacing: .5px;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 5px;
    }
    .stat-item .value {
      font-family: var(--display);
      font-size: 16px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.2;
      word-break: break-word;
    }
    .stat-item .value.small { font-size: 12px; }

    /* ===== SECTION ===== */
    .section {
      margin-top: 28px;
    }
    .section-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }
    .section-title {
      font-family: var(--display);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: var(--muted);
    }
    .section-note {
      font-size: 11px;
      color: var(--muted);
      opacity: .6;
    }

    /* ===== NPORT STATS ===== */
    .nport-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 0;
      margin-bottom: 12px;
      background: var(--surface2);
      border-radius: 10px;
      border: 1px solid var(--border);
      overflow: hidden;
    }
    .nport-stat {
      flex: 1 1 0;
      padding: 12px 16px;
      border-right: 1px solid var(--border);
      min-width: 100px;
    }
    .nport-stat:last-child { border-right: none; }
    .nport-stat .label {
      font-size: 9px;
      letter-spacing: .5px;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 5px;
    }
    .nport-stat .value {
      font-size: 15px;
      font-weight: 500;
      color: var(--text);
    }
    .nport-stat .value.small { font-size: 12px; }

    /* ===== ANALYTICS ===== */
    .analytics-charts {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 16px;
    }
    .analytics-chart-box {
      flex: 1 1 220px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px;
      min-width: 0;
    }
    .analytics-chart-box canvas {
      width: 100% !important;
      height: 260px !important;
    }
    .analytics-chart-title {
      font-size: 10px;
      letter-spacing: .6px;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 10px;
    }
    .top10-section {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 0;
    }
    .top10-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }
    .top10-list { display: flex; flex-direction: column; gap: 7px; }
    .top10-row {
      display: grid;
      grid-template-columns: 18px 1fr 52px 80px;
      align-items: center;
      gap: 8px;
      font-size: 12px;
    }
    .top10-rank { color: var(--muted); font-size: 10px; text-align: right; }
    .top10-name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .top10-pct  { color: var(--accent); text-align: right; font-size: 11px; }
    .top10-bar-wrap { background: rgba(100,140,200,.1); border-radius: 2px; height: 4px; }
    .top10-bar { background: var(--accent); border-radius: 2px; height: 4px; }
    .stat-info {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 12px;
      height: 12px;
      font-size: 9px;
      border-radius: 50%;
      border: 1px solid var(--muted);
      color: var(--muted);
      cursor: default;
      vertical-align: middle;
      line-height: 1;
    }

    /* ===== CHART CONTAINER ===== */
    .chart-box {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
    }
    .chart-scroll {
      overflow-x: auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(79,156,249,.2) transparent;
    }
    .chart-scroll::-webkit-scrollbar { height: 4px; }
    .chart-scroll::-webkit-scrollbar-thumb { background: rgba(79,156,249,.2); border-radius: 4px; }

    /* ===== QUARTER HEATMAP ===== */
    .heatmap-wrap {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px 20px 16px;
      overflow-x: auto;
    }
    .heatmap-grid {
      display: grid;
      gap: 0;
      min-width: max-content;
    }
    .hm-row {
      display: flex;
      align-items: center;
      gap: 0;
    }
    .hm-qlabel {
      width: 36px;
      font-size: 11px;
      color: var(--muted);
      letter-spacing: .3px;
      flex-shrink: 0;
    }
    .hm-year-header {
      display: flex;
      align-items: center;
      margin-bottom: 4px;
      padding-left: 36px;
      gap: 4px;
    }
    .hm-year-label {
      font-size: 10px;
      color: var(--muted);
      letter-spacing: .4px;
      text-align: center;
      flex-shrink: 0;
      width: 64px;
    }
    .hm-row { gap: 4px; }
    .hm-cell {
      width: 64px;
      height: 44px;
      border: 1px solid var(--border);
      border-radius: 5px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 1px;
      font-size: 11px;
      color: var(--muted);
      transition: all .15s;
      position: relative;
      flex-shrink: 0;
    }
    .hm-cell-month {
      font-size: 9px;
      letter-spacing: .3px;
      opacity: .75;
      text-transform: uppercase;
    }
    .hm-cell-day { font-size: 12px; font-weight: 500; line-height: 1; }
    .hm-cell.has-data {
      background: rgba(79,156,249,.14);
      border-color: rgba(79,156,249,.4);
      color: var(--accent);
      font-weight: 500;
    }
    .hm-cell.has-data:hover {
      background: rgba(79,156,249,.22);
      border-color: rgba(79,156,249,.6);
    }
    .hm-cell.future {
      border-style: dashed;
      border-color: rgba(100,140,200,.15);
      color: rgba(107,132,160,.4);
    }
    .hm-cell.future.has-data {
      background: rgba(6,214,160,.1);
      border-color: rgba(6,214,160,.4);
      border-style: solid;
      color: var(--urgent3);
    }
    .hm-tooltip {
      display: none;
      position: absolute;
      bottom: calc(100% + 6px);
      left: 50%;
      transform: translateX(-50%);
      background: var(--surface2);
      border: 1px solid var(--border2);
      border-radius: 6px;
      padding: 5px 9px;
      font-size: 11px;
      color: var(--text);
      white-space: nowrap;
      z-index: 10;
      pointer-events: none;
    }
    .hm-cell:hover .hm-tooltip { display: block; }

    /* ===== DEADLINES LIST ===== */
    .deadlines-list {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
    }
    .dl-row {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 13px 18px;
      border-bottom: 1px solid var(--border);
      transition: background .1s;
      flex-wrap: wrap;
    }
    .dl-row:last-child { border-bottom: none; }
    .dl-row:hover { background: rgba(79,156,249,.04); }
    .dl-date {
      font-size: 13px;
      font-weight: 500;
      color: var(--text);
      white-space: nowrap;
      min-width: 130px;
    }
    .dl-date.future { color: var(--accent); }
    .dl-date.past { color: var(--muted); }
    .dl-badge {
      font-size: 10px;
      padding: 2px 8px;
      border-radius: 999px;
      border: 1px solid currentColor;
      white-space: nowrap;
    }
    .dl-extras {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      flex: 1;
    }
    .dl-extra {
      font-size: 11px;
      color: var(--muted);
      white-space: nowrap;
    }
    .dl-extra span { color: var(--text); }
    .dl-link {
      margin-left: auto;
      font-size: 11px;
      color: var(--muted);
      text-decoration: none;
      border: 1px solid var(--border);
      padding: 3px 9px;
      border-radius: 5px;
      transition: all .12s;
      white-space: nowrap;
    }
    .dl-link:hover { color: var(--accent2); border-color: rgba(100,140,200,.3); }
    .dl-notes {
      width: 100%;
      font-size: 11px;
      color: var(--muted);
      padding-top: 4px;
      font-style: italic;
    }
    .stale-banner {
      margin: 12px 0 0;
      padding: 9px 14px;
      background: rgba(255,159,67,.07);
      border: 1px solid rgba(255,159,67,.2);
      border-radius: 8px;
      font-size: 11px;
      color: var(--urgent1);
      letter-spacing: .3px;
    }

    .empty-note {
      padding: 24px 18px;
      font-size: 12px;
      color: var(--muted);
      text-align: center;
    }

    /* ===== FOOTER ===== */
    footer {
      border-top: 1px solid var(--border);
      padding: 18px 0 32px;
      margin-top: 40px;
      font-size: 11px;
      color: var(--muted);
      line-height: 1.6;
      opacity: .7;
    }

    /* ===== EXPORT BUTTON ===== */
    .export-btn {
      display: none;
      align-items: center;
      gap: 5px;
      font-family: var(--mono);
      font-size: 11px;
      color: var(--muted);
      background: none;
      border: none;
      border-bottom: 1px solid var(--border2);
      padding: 3px 6px;
      cursor: pointer;
      transition: color .12s, border-color .15s;
      flex-shrink: 0;
    }
    .export-btn:hover { color: var(--accent2); border-bottom-color: var(--accent); }

    @media (max-width: 600px) {
      .hero-top { flex-direction: column; }
      .hero-right { text-align: left; }
      .stat-item { border-right: none; min-width: 45%; }
    }

    @media print {
      * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

      body { background: #080c10; color: #dce8f5; }
      body::before { display: none; }

      header, .status-bar, footer, .export-btn, .fund-switcher { display: none !important; }

      .wrap { max-width: 100%; padding: 0 12px; }

      .section { break-inside: avoid; margin-top: 20px; }
      .chart-box, .analytics-chart-box, .top10-section, .nport-stats, .stats-strip { break-inside: avoid; }

      .analytics-charts { flex-wrap: nowrap; }
      .analytics-chart-box canvas { height: 180px !important; }

      canvas { max-width: 100%; }

      a { color: inherit; text-decoration: none; }
    }
