    :root {
      color-scheme: light;
      --bg: #f8fafc;
      --surface: #ffffff;
      --ink: #0f172a;
      --ink-2: #334155;
      --muted: #64748b;
      --faint: #94a3b8;
      --line: rgba(15, 23, 42, 0.08);
      --line-strong: rgba(15, 23, 42, 0.14);
      --accent: #e01e26;
      --accent-soft: rgba(224, 30, 38, 0.07);
      --hover: rgba(15, 23, 42, 0.03);
      --active: rgba(15, 23, 42, 0.065);
      --shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
      --radius: 12px;
      --radius-sm: 8px;
      --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
      --serif: "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
      --pad: 16px;
      --feed-w: 680px;
      --read-w: 640px;
    }
    @media (prefers-color-scheme: dark) {
      :root {
        color-scheme: dark;
        --bg: #0b0f19;
        --surface: #151b2c;
        --ink: #f8fafc;
        --ink-2: #cbd5e1;
        --muted: #94a3b8;
        --faint: #475569;
        --line: rgba(248, 250, 252, 0.09);
        --line-strong: rgba(248, 250, 252, 0.15);
        --accent: #ff4d52;
        --accent-soft: rgba(255, 77, 82, 0.12);
        --hover: rgba(248, 250, 252, 0.04);
        --active: rgba(248, 250, 252, 0.07);
      }
    }
    :root[data-theme="dark"] {
      color-scheme: dark;
      --bg: #0b0f19;
      --surface: #151b2c;
      --ink: #f8fafc;
      --ink-2: #cbd5e1;
      --muted: #94a3b8;
      --faint: #475569;
      --line: rgba(248, 250, 252, 0.09);
      --line-strong: rgba(248, 250, 252, 0.15);
      --accent: #ff4d52;
      --accent-soft: rgba(255, 77, 82, 0.12);
      --hover: rgba(248, 250, 252, 0.04);
      --active: rgba(248, 250, 252, 0.07);
    }
    :root[data-theme="light"] {
      color-scheme: light;
      --bg: #f8fafc;
      --surface: #ffffff;
      --ink: #0f172a;
      --ink-2: #334155;
      --muted: #64748b;
      --faint: #94a3b8;
      --line: rgba(15, 23, 42, 0.08);
      --line-strong: rgba(15, 23, 42, 0.14);
      --accent: #e01e26;
      --accent-soft: rgba(224, 30, 38, 0.07);
      --hover: rgba(15, 23, 42, 0.03);
      --active: rgba(15, 23, 42, 0.065);
    }

    * { box-sizing: border-box; }
    html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
    body {
      margin: 0;
      min-height: 100dvh;
      background: var(--bg);
      color: var(--ink);
      font: 15px/1.4 var(--sans);
      letter-spacing: -0.01em;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    a { color: inherit; text-decoration: none; }
    a:hover { color: var(--accent); }
    button {
      appearance: none;
      border: 0;
      margin: 0;
      padding: 0;
      background: transparent;
      color: inherit;
      font: inherit;
      cursor: pointer;
    }
    .hidden { display: none !important; }

    .progress {
      position: fixed;
      top: env(safe-area-inset-top, 0px);
      left: env(safe-area-inset-left, 0px);
      z-index: 50;
      height: 2px;
      width: 0;
      max-width: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
      background: var(--accent);
      pointer-events: none;
      transition: width 80ms linear;
    }

    /* Top bar */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      padding-top: env(safe-area-inset-top, 0px);
      padding-left: env(safe-area-inset-left, 0px);
      padding-right: env(safe-area-inset-right, 0px);
      background: color-mix(in srgb, var(--bg) 78%, transparent);
      backdrop-filter: saturate(180%) blur(20px);
      -webkit-backdrop-filter: saturate(180%) blur(20px);
      border-bottom: 0.5px solid var(--line);
    }
    .nav {
      width: min(100% - var(--pad) * 2, var(--feed-w));
      min-height: 48px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0;
    }
    .nav-left {
      display: flex;
      align-items: center;
      gap: 0;
      min-width: 0;
      flex: 1;
    }
    .nav-right {
      display: flex;
      align-items: center;
      gap: 2px;
      flex-shrink: 0;
      margin-left: auto;
    }
    /* Fixed-width lead slot so brand never shifts between feed / article.
       Arrow is right-aligned; same gap to B as feed lead slot. */
    .nav-lead {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      width: 30px;
      height: 34px;
      flex-shrink: 0;
      margin-left: -4px;
      margin-right: 4px;
    }
    .brand {
      display: inline-flex;
      align-items: center;
      height: 34px;
      margin-right: 10px;
      font-size: 19px;
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1;
      color: var(--ink);
      flex-shrink: 0;
    }
    .brand:hover { color: var(--ink); }
    .brand .mark {
      display: inline-flex;
      align-items: flex-end;
      height: 1em;
      line-height: 1;
    }
    .brand .dot {
      display: block;
      width: 5px;
      height: 5px;
      margin: 0 0 1px 1px;
      border-radius: 50%;
      background: var(--accent);
      flex-shrink: 0;
    }

    /* News / Magazine mode switch (icon tabs) */
    .mode-switch {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      padding: 3px;
      border-radius: 100px;
      background: var(--hover);
      flex-shrink: 0;
    }
    .mode-switch button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 28px;
      padding: 0;
      border-radius: 100px;
      color: var(--muted);
      transition: background 120ms ease, color 120ms ease;
    }
    .mode-switch button:hover { color: var(--ink); }
    .mode-switch button.active {
      color: var(--ink);
      background: var(--surface);
      box-shadow: 0 0 0 0.5px var(--line), var(--shadow);
    }
    .mode-switch button svg {
      width: 15px;
      height: 15px;
      display: block;
      fill: currentColor;
    }

    /* Icon buttons */
    .icon-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 8px;
      color: var(--ink-2);
      flex-shrink: 0;
      transition: background 120ms ease, color 120ms ease;
    }
    .icon-btn:hover { background: var(--hover); color: var(--ink); }
    .icon-btn:active { background: var(--active); }
    .icon-btn svg {
      width: 18px;
      height: 18px;
      display: block;
    }
    .icon-btn.accent { color: var(--accent); }
    .icon-btn.accent:hover { background: var(--accent-soft); color: var(--accent); }

    .back {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 34px;
      border-radius: 8px;
      color: var(--ink);
      flex-shrink: 0;
    }
    .back:hover { background: var(--hover); color: var(--ink); }
    .back svg { width: 18px; height: 18px; display: block; }

    /* Theme icons: only one visible (system / light / dark).
       Higher specificity than .icon-btn svg so inactive icons stay hidden. */
    .icon-btn svg.icon-theme { display: none; }
    .icon-btn svg.icon-theme.is-active { display: block; }

    /* Search */
    .search-wrap {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      position: relative;
      width: 220px;
      max-width: 32vw;
      min-width: 160px;
      flex: 1 1 220px;
      gap: 0;
    }
    .search-field {
      position: relative;
      display: flex;
      align-items: center;
      width: 100%;
      min-width: 0;
      flex: 1;
    }
    #search {
      width: 100%;
      height: 34px;
      padding: 0 34px 0 12px;
      border: 0;
      border-radius: 8px;
      outline: 0;
      background: var(--surface);
      box-shadow: inset 0 0 0 0.5px var(--line-strong);
      color: var(--ink);
      /* 16px prevents iOS Safari zoom-on-focus */
      font: 16px/1.2 var(--sans);
      letter-spacing: -0.01em;
      transition: width 160ms ease, opacity 120ms ease, padding 120ms ease;
    }
    #search::-webkit-search-cancel-button {
      -webkit-appearance: none;
      appearance: none;
    }
    #search::placeholder { color: var(--faint); }
    #search:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
    .search-clear {
      position: absolute;
      right: 3px;
      top: 50%;
      transform: translateY(-50%);
      display: none;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      border-radius: 6px;
      color: var(--muted);
      flex-shrink: 0;
    }
    .search-clear:hover { color: var(--ink); background: var(--hover); }
    .search-clear:active { background: var(--active); }
    .search-clear svg { width: 14px; height: 14px; display: block; }
    .search-wrap.has-query .search-clear { display: inline-flex; }
    .search-toggle { display: none; }

    /* Shell */
    main {
      width: min(100% - var(--pad) * 2, var(--feed-w));
      margin: 0 auto;
      padding: 12px 0 64px;
    }
    main.article {
      width: min(100% - var(--pad) * 2, var(--read-w));
      padding-top: 20px;
      padding-bottom: 96px;
    }

    /* Story list */
    .feed-card {
      background: var(--surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      border: 0.5px solid var(--line);
      overflow: hidden;
    }

    /* Businessweek magazine */
    .magazine {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .magazine-hero {
      display: grid;
      grid-template-columns: 96px minmax(0, 1fr);
      gap: 14px;
      align-items: center;
      padding: 14px 16px;
      background: var(--surface);
      border-radius: var(--radius);
      border: 0.5px solid var(--line);
      box-shadow: var(--shadow);
    }
    .magazine-hero img {
      width: 96px;
      height: auto;
      aspect-ratio: 3 / 4;
      object-fit: cover;
      border-radius: 6px;
      background: var(--line);
    }
    .magazine-kicker {
      margin: 0 0 4px;
      color: var(--accent);
      font-size: 12px;
      font-weight: 650;
      letter-spacing: -0.01em;
    }
    .magazine-hero h1 {
      margin: 0;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: -0.025em;
      line-height: 1.25;
    }
    .magazine-date {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 12px;
      font-weight: 500;
    }
    /* Section label once per category inside a single feed card */
    .list-section-label {
      padding: 14px 16px 2px;
      color: var(--accent);
      font-size: 12px;
      font-weight: 650;
      letter-spacing: -0.01em;
      line-height: 1.3;
    }
    .story + .list-section-label {
      border-top: 0.5px solid var(--line);
      padding-top: 14px;
      margin-top: 2px;
    }
    .list-section-label + .story { border-top: 0; }

    /* Article narration / listen */
    .narration {
      margin: 0 0 1.25em;
      padding: 12px 14px;
      border-radius: var(--radius-sm);
      background: var(--surface);
      border: 0.5px solid var(--line);
    }
    .narration-head {
      display: flex;
      align-items: baseline;
      flex-wrap: wrap;
      gap: 6px 10px;
      margin: 0 0 10px;
    }
    .narration-label {
      color: var(--accent);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .narration-title {
      flex: 1;
      min-width: 0;
      color: var(--ink-2);
      font-size: 13px;
      font-weight: 550;
      letter-spacing: -0.01em;
      line-height: 1.3;
    }
    .narration-dur {
      color: var(--muted);
      font-size: 12px;
      font-variant-numeric: tabular-nums;
      font-weight: 500;
    }
    .narration audio {
      display: block;
      width: 100%;
      height: 36px;
    }
    .narration a.narration-link {
      display: inline-block;
      margin-top: 8px;
      color: var(--accent);
      font-size: 12px;
      font-weight: 600;
    }

    .story {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 16px;
      align-items: start;
      padding: 14px 16px;
      border-bottom: 0.5px solid var(--line);
      transition: background 100ms ease;
      cursor: pointer;
    }
    .story:last-child { border-bottom: 0; }
    .story:hover { background: var(--hover); }
    .story:active { background: var(--active); }
    .story .copy { min-width: 0; }
    .story h2 {
      margin: 0;
      font-size: 15px;
      font-weight: 650;
      letter-spacing: -0.015em;
      line-height: 1.3;
      color: var(--ink);
    }
    .story h2 a {
      color: inherit;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .story:hover h2 a { color: var(--ink); }
    .meta-line {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0 6px;
      margin-top: 6px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 500;
      letter-spacing: -0.01em;
      line-height: 1.3;
    }
    .meta-line .section {
      color: var(--accent);
      font-weight: 600;
    }
    .meta-line .sep {
      color: var(--faint);
      font-weight: 400;
    }
    .meta-line time {
      font-variant-numeric: tabular-nums;
      color: var(--muted);
    }
    .dek {
      margin: 6px 0 0;
      color: var(--ink-2);
      font-size: 13px;
      font-weight: 400;
      letter-spacing: -0.01em;
      line-height: 1.38;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .thumb {
      width: 56px;
      height: 56px;
      object-fit: cover;
      border-radius: 8px;
      background: var(--bg);
      flex-shrink: 0;
      box-shadow: inset 0 0 0 0.5px var(--line);
    }

    /* Skeleton Loader CSS */
    @keyframes pulse {
      0%, 100% { opacity: 0.65; }
      50% { opacity: 0.35; }
    }
    .skeleton {
      animation: pulse 1.5s ease-in-out infinite;
      background: var(--line-strong);
      border-radius: 4px;
    }
    .story.skeleton-story:hover {
      background: transparent;
    }

    /* Status / errors */
    .status {
      padding: 28px 16px;
      text-align: center;
      color: var(--muted);
      font-size: 13px;
      font-weight: 500;
    }
    .error {
      margin: 12px 0;
      padding: 14px 16px;
      border-radius: var(--radius-sm);
      background: color-mix(in srgb, var(--accent) 9%, var(--surface));
      box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--accent) 28%, transparent);
      color: var(--ink);
      font-size: 13px;
      line-height: 1.45;
    }
    .error strong { display: block; margin-bottom: 4px; font-size: 14px; }
    .error a { color: var(--accent); font-weight: 600; }
    .error p { margin: 0 0 8px; color: var(--ink-2); }

    /* Article view */
    #article .meta {
      margin: 0 0 10px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 500;
      letter-spacing: -0.01em;
      line-height: 1.35;
    }
    .headline-row {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin: 0 0 12px;
    }
    .headline-row h1 {
      margin: 0;
      flex: 1;
      min-width: 0;
      font: 700 clamp(24px, 4.5vw, 32px)/1.2 var(--sans);
      letter-spacing: -0.03em;
      color: var(--ink);
    }
    .ext-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      margin-top: 2px;
      border-radius: 8px;
      color: var(--accent);
      flex-shrink: 0;
    }
    .ext-link:hover { background: var(--accent-soft); color: var(--accent); }
    .ext-link svg { width: 17px; height: 17px; display: block; }

    #article > .dek {
      margin: 0 0 20px;
      color: var(--ink-2);
      font-size: 16px;
      font-weight: 400;
      letter-spacing: -0.015em;
      line-height: 1.45;
      display: block;
      -webkit-line-clamp: unset;
    }
    figure { margin: 0 0 18px; }
    figure img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 10px;
      background: var(--surface);
    }
    figcaption {
      margin-top: 8px;
      color: var(--muted);
      font-size: 11.5px;
      font-weight: 500;
      letter-spacing: -0.005em;
      line-height: 1.4;
    }
    .lede { margin-bottom: 16px; }

    /* Key Highlights */
    .highlights {
      margin: 0 0 24px;
      border-radius: var(--radius-sm);
      background: var(--surface);
      border: 0.5px solid var(--line);
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .highlights summary {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 16px;
      list-style: none;
      cursor: pointer;
      color: var(--ink);
      font-size: 13.5px;
      font-weight: 650;
      letter-spacing: -0.01em;
      user-select: none;
    }
    .highlights summary::-webkit-details-marker { display: none; }
    .highlights summary::after {
      content: "";
      margin-left: auto;
      width: 6px;
      height: 6px;
      border-right: 1.5px solid var(--accent);
      border-bottom: 1.5px solid var(--accent);
      transform: rotate(45deg);
      transition: transform 150ms ease;
    }
    .highlights[open] summary::after {
      transform: rotate(-135deg);
    }
    .highlights summary:hover { background: var(--hover); }
    .highlights-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      border-radius: 100px;
      background: var(--accent-soft);
      color: var(--accent);
      font-size: 11px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
    }
    .highlights ul {
      margin: 0;
      padding: 0 16px 14px 28px;
      border-top: 0.5px solid var(--line);
      list-style: disc;
    }
    .highlights li {
      margin: 8px 0 0;
      color: var(--ink-2);
      font-size: 13.5px;
      font-weight: 450;
      letter-spacing: -0.01em;
      line-height: 1.45;
    }
    .highlights li::marker { color: var(--accent); }

    /* Article body */
    .body {
      font-family: var(--serif);
      font-size: 17.5px;
      line-height: 1.62;
      letter-spacing: -0.005em;
      color: var(--ink);
    }
    .body p { margin: 0 0 1.1em; }
    .body h2 {
      margin: 1.5em 0 0.55em;
      font: 700 1.05em/1.25 var(--sans);
      letter-spacing: -0.025em;
      color: var(--ink);
    }
    .body blockquote {
      margin: 1.15em 0;
      padding: 2px 0 2px 14px;
      border-left: 3px solid var(--accent);
      color: var(--ink-2);
      font-style: italic;
    }
    .body ul, .body ol {
      margin: 0 0 1.1em;
      padding-left: 1.25em;
    }
    .body li { margin: 0.25em 0; }
    .body li + li { margin-top: 0.35em; }
    .body figure { margin: 1.35em 0; }
    .body a {
      color: var(--accent);
      text-decoration: underline;
      text-underline-offset: 2px;
      text-decoration-thickness: 0.5px;
    }

    .article-end {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 36px 0 8px;
      color: var(--faint);
      font-size: 11px;
      font-weight: 650;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
    .article-end::before,
    .article-end::after {
      content: "";
      flex: 1;
      height: 0.5px;
      background: var(--line-strong);
    }

    @media (max-width: 720px) {
      .search-wrap {
        width: auto;
        max-width: none;
        min-width: 0;
        flex: 0 0 auto;
      }
      .search-toggle { display: inline-flex; }
      /* Collapsed: icon only, field off-flow */
      .search-wrap:not(.open) .search-field {
        position: absolute;
        right: 0;
        width: 0;
        height: 34px;
        padding: 0;
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
      }
      .search-wrap:not(.open) #search {
        width: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
      }
      /* Expand left from the icon — uses most of the toolbar, brand stays visible */
      .nav.searching .nav-lead {
        width: 0;
        margin: 0;
        overflow: hidden;
        pointer-events: none;
      }
      .nav.searching .nav-right {
        flex: 1;
        min-width: 0;
        margin-left: 4px;
      }
      .search-wrap.open {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
      }
      .search-wrap.open .search-field {
        position: static;
        width: 100%;
        height: 34px;
        opacity: 1;
        pointer-events: auto;
        overflow: visible;
      }
      .search-wrap.open #search {
        width: 100%;
        height: 34px;
        padding: 0 34px 0 12px;
        opacity: 1;
        pointer-events: auto;
      }
      .search-wrap.open .search-toggle { display: none; }
      .topbar { position: sticky; }
      .nav { position: relative; min-height: 44px; }
    }

    @media (max-width: 560px) {
      :root { --pad: 12px; }
      .story {
        padding: 11px 12px;
        gap: 10px;
      }
      .thumb {
        width: 52px;
        height: 52px;
      }
      .story h2 { font-size: 14.5px; }
      .body { font-size: 16.5px; line-height: 1.55; }
      main.article { padding-top: 14px; }
      .headline-row h1 { font-size: 23px; }
      .magazine-hero {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
      }
      .magazine-hero img { width: 80px; }
      .magazine-hero h1 { font-size: 16px; }
    }

    @media (min-width: 900px) {
      .story { padding: 13px 16px; }
      .story h2 { font-size: 15.5px; }
    }