
    :root {
      --bg-paper: #F6F5F1;
      --ink-primary: #14161A;
      --ink-secondary: #484C54;
      --ink-muted: #6C707A;
      --line-subtle: #D5D3CC;
      --line-strong: #9A9890;
      --surface-subtle: #ECEAE4;
      --accent-green: #0F7A5A;
      --accent-green-dark: #14532D;
      --radius: 3px;
      --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    }

    *, *::before, *::after {
      box-sizing: border-box;
      border-radius: var(--radius);
    }

    html {
      background-color: var(--bg-paper);
      color: var(--ink-primary);
      font-family: var(--font-sans);
      font-size: 16px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    body {
      margin: 0;
      padding: 0;
      background-color: var(--bg-paper);
      color: var(--ink-primary);
      overflow-x: hidden;
    }

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

    a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    .mono {
      font-family: var(--font-mono);
      font-variant-numeric: tabular-nums;
    }

    .num-right {
      font-family: var(--font-mono);
      font-variant-numeric: tabular-nums;
      text-align: right;
    }

    .container {
      width: 100%;
      max-width: 1360px;
      margin: 0 auto;
      padding-left: 20px;
      padding-right: 20px;
    }

    .grid-12 {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: 16px;
    }

    .col-span-12 { grid-column: span 12 / span 12; }
    .col-span-8 { grid-column: span 12 / span 12; }
    .col-span-7 { grid-column: span 12 / span 12; }
    .col-span-6 { grid-column: span 12 / span 12; }
    .col-span-5 { grid-column: span 12 / span 12; }
    .col-span-4 { grid-column: span 12 / span 12; }
    .col-span-3 { grid-column: span 12 / span 12; }

    @media (min-width: 768px) {
      .container {
        padding-left: 32px;
        padding-right: 32px;
      }
      .col-md-6 { grid-column: span 6 / span 6; }
      .col-md-4 { grid-column: span 4 / span 4; }
      .col-md-8 { grid-column: span 8 / span 8; }
    }

    @media (min-width: 1024px) {
      .col-lg-3 { grid-column: span 3 / span 3; }
      .col-lg-4 { grid-column: span 4 / span 4; }
      .col-lg-5 { grid-column: span 5 / span 5; }
      .col-lg-6 { grid-column: span 6 / span 6; }
      .col-lg-7 { grid-column: span 7 / span 7; }
      .col-lg-8 { grid-column: span 8 / span 8; }
      .col-lg-12 { grid-column: span 12 / span 12; }
    }

    /* Top Header & Navigation */
    .site-header {
      border-bottom: 1px solid var(--line-subtle);
      padding-top: 14px;
      padding-bottom: 14px;
    }

    .header-top {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px 24px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--line-subtle);
    }

    .brand-link {
      font-family: var(--font-mono);
      font-weight: 700;
      font-size: 16px;
      letter-spacing: 0.04em;
      color: var(--ink-primary);
      padding: 4px 2px;
    }

    .sign-in-link {
      appearance: none;
      cursor: pointer;
      font-family: var(--font-mono);
      font-size: 13px;
      padding: 6px 12px;
      border: 1px solid var(--ink-primary);
      color: var(--ink-primary);
      background-color: transparent;
      display: inline-block;
    }

    .sign-in-form { margin: 0; }

    .header-account-actions { display: inline-flex; align-items: center; gap: 12px; }
    .header-account-actions .header__tabs__item { color: var(--ink-primary); }

    .sign-in-link:hover {
      background-color: var(--ink-primary);
      color: var(--bg-paper);
      text-decoration: none;
    }

    .primary-nav {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 16px;
      padding-top: 10px;
    }

    .primary-nav a {
      font-size: 13px;
      line-height: 1.4;
      color: var(--ink-secondary);
      padding: 4px 0;
      border-bottom: 1px solid transparent;
    }

    .primary-nav a:hover {
      color: var(--ink-primary);
      border-bottom-color: var(--accent-green);
      text-decoration: none;
    }

    /* Labels & Typography */
    .eyebrow {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ink-muted);
      display: inline-block;
    }

    .eyebrow-live {
      color: var(--accent-green-dark);
      border: 1px solid var(--accent-green);
      padding: 1px 6px;
      font-weight: 600;
    }

    .hero-title {
      font-size: 28px;
      line-height: 1.18;
      font-weight: 600;
      letter-spacing: -0.02em;
      margin: 10px 0 14px 0;
      color: var(--ink-primary);
    }

    @media (min-width: 1024px) {
      .hero-title {
        font-size: 38px;
      }
    }

    .section-title {
      font-size: 22px;
      line-height: 1.25;
      font-weight: 600;
      letter-spacing: -0.015em;
      margin: 8px 0 12px 0;
      color: var(--ink-primary);
    }

    @media (min-width: 1024px) {
      .section-title {
        font-size: 26px;
      }
    }

    .lead-copy {
      font-size: 15px;
      line-height: 1.55;
      color: var(--ink-secondary);
      margin: 0 0 18px 0;
    }

    .body-copy {
      font-size: 14px;
      line-height: 1.55;
      color: var(--ink-secondary);
      margin: 0 0 12px 0;
    }

    .fine-print {
      font-size: 12px;
      line-height: 1.5;
      color: var(--ink-muted);
      margin: 10px 0 0 0;
    }

    .fine-print__link {
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    /* Buttons & Action Links */
    .actions-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      margin-top: 14px;
      margin-bottom: 14px;
    }

    .btn-primary {
      font-family: var(--font-sans);
      font-size: 13px;
      font-weight: 500;
      padding: 9px 14px;
      background-color: var(--accent-green);
      color: #F6F5F1;
      border: 1px solid var(--accent-green);
      display: inline-block;
    }

    .btn-primary:hover {
      background-color: var(--accent-green-dark);
      border-color: var(--accent-green-dark);
      text-decoration: none;
    }

    .btn-secondary {
      font-family: var(--font-sans);
      font-size: 13px;
      font-weight: 500;
      padding: 9px 14px;
      background-color: transparent;
      color: var(--ink-primary);
      border: 1px solid var(--line-strong);
      display: inline-block;
    }

    .btn-secondary:hover {
      border-color: var(--ink-primary);
      background-color: var(--surface-subtle);
      text-decoration: none;
    }

    .inline-link {
      font-size: 13px;
      font-weight: 500;
      color: var(--accent-green-dark);
      border-bottom: 1px solid var(--accent-green);
      padding-bottom: 2px;
      display: inline-block;
    }

    .inline-link:hover {
      color: var(--ink-primary);
      border-bottom-color: var(--ink-primary);
      text-decoration: none;
    }

    /* Wavenumber Scale Divider (4000 -> 400 cm^-1 left to right) */
    .wn-divider {
      width: 100%;
      padding-top: 22px;
      padding-bottom: 18px;
    }

    .wn-scale-svg {
      width: 100%;
      height: 28px;
      display: block;
      overflow: visible;
    }

    /* Hero Spectrum & Workbench */
    .hero-section {
      padding-top: 24px;
      padding-bottom: 12px;
    }

    .spectrum-frame {
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
      padding-top: 12px;
      padding-bottom: 12px;
      margin-top: 16px;
      margin-bottom: 20px;
      background-color: var(--bg-paper);
    }

    .spectrum-svg {
      width: 100%;
      height: auto;
      display: block;
    }

    .spectrum-caption {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: baseline;
      gap: 8px;
      margin-top: 8px;
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--ink-secondary);
    }

    .workbench-box {
      border: 1px solid var(--line-subtle);
      padding: 8px;
      background-color: var(--surface-subtle);
    }

    /* 4 Tool Columns */
    .tools-section {
      padding-top: 10px;
      padding-bottom: 12px;
    }

    .tool-entry {
      border-top: 2px solid var(--ink-primary);
      padding-top: 12px;
      padding-bottom: 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;
    }

    .tool-title {
      font-size: 17px;
      font-weight: 600;
      margin: 6px 0 8px 0;
      color: var(--ink-primary);
    }

    .tool-desc {
      font-size: 14px;
      line-height: 1.5;
      color: var(--ink-secondary);
      margin: 0 0 14px 0;
    }

    /* Latest Library Additions Strip */
    .live-strip {
      padding-top: 8px;
      padding-bottom: 8px;
    }

    .live-row {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px 20px;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
      padding: 12px 4px;
    }

    .live-left {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
    }

    .live-heading {
      font-size: 15px;
      font-weight: 600;
      margin: 0;
    }

.live-entry, .hdr-feed__item {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--ink-primary);
    }
.hdr-feed__time,.hdr-feed__user,.hdr-feed__name { font: inherit; color: inherit; }
.hdr-feed__time { color: var(--ink-muted); }
.hdr-feed__user { font-weight: 600; }
.hdr-feed__empty { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.hdr-feed__view { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.hdr-feed__track { display: inline-flex; align-items: center; white-space: nowrap; }
.hdr-feed__track.is-rolling { animation: hdrFeedRoll var(--hdr-feed-duration,40s) linear infinite; }
.hdr-feed__item { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 16px; border-left: 1px solid var(--line-subtle); }
@keyframes hdrFeedRoll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

    /* Data Tables / Rulers (No Cards) */
    .data-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 12px;
      margin-bottom: 14px;
      font-size: 14px;
    }

    .data-table th {
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--ink-muted);
      border-bottom: 1px solid var(--ink-primary);
      padding: 8px 6px;
      text-align: left;
    }

    .data-table th.is-num,
    .data-table td.is-num {
      font-family: var(--font-mono);
      font-variant-numeric: tabular-nums;
      text-align: right;
    }

    .data-table td {
      border-bottom: 1px solid var(--line-subtle);
      padding: 10px 6px;
      vertical-align: top;
      color: var(--ink-primary);
    }

    /* Human Expert Service */
    .expert-list {
      margin: 12px 0 16px 0;
      padding-left: 18px;
      color: var(--ink-primary);
      font-size: 14px;
    }

    .expert-list li {
      margin-bottom: 6px;
    }

    .steps-ruler {
      border-top: 2px solid var(--ink-primary);
      border-bottom: 1px solid var(--line-strong);
    }

    .step-item {
      display: grid;
      grid-template-columns: 44px 1fr;
      gap: 12px;
      align-items: baseline;
      padding: 14px 4px;
      border-bottom: 1px solid var(--line-subtle);
    }

    .step-item:last-child {
      border-bottom: none;
    }

    .step-num {
      font-family: var(--font-mono);
      font-size: 13px;
      font-weight: 700;
      color: var(--accent-green-dark);
      text-align: right;
    }

    .step-text {
      font-size: 15px;
      font-weight: 500;
      color: var(--ink-primary);
    }

    /* AI Reports Matrix */
    .ai-report-row {
      border-top: 1px solid var(--line-subtle);
      padding-top: 16px;
      padding-bottom: 16px;
    }

    .ai-report-row:last-child {
      border-bottom: 1px solid var(--line-subtle);
    }

    .ai-report-title {
      font-size: 17px;
      font-weight: 600;
      margin: 4px 0 6px 0;
      color: var(--ink-primary);
    }

    /* Local Section */
    .local-media {
      border: 1px solid var(--line-subtle);
      padding: 8px;
      background-color: var(--surface-subtle);
    }

    /* Forum Section */
    .forum-list {
      border-top: 1px solid var(--line-strong);
      margin-top: 14px;
    }

    .forum-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: baseline;
      gap: 8px 16px;
      padding: 11px 4px;
      border-bottom: 1px solid var(--line-subtle);
    }

    .forum-topic {
      font-size: 14px;
      font-weight: 500;
      color: var(--ink-primary);
    }

    .forum-time {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--ink-muted);
      text-align: right;
    }

    /* Footer */
    .site-footer {
      padding-top: 16px;
      padding-bottom: 36px;
      border-top: 2px solid var(--ink-primary);
      margin-top: 12px;
    }

    .footer-top {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 12px 24px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--line-subtle);
    }

    .footer-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 18px;
      padding-top: 14px;
    }

    .footer-nav a {
      font-size: 13px;
      color: var(--ink-secondary);
    }

    .footer-nav a:hover {
      color: var(--ink-primary);
    }
  /* Existing homepage notice/share controls are retained as functional page components. */
.hdr-notice[hidden],.hdr-share-pop[hidden]{display:none!important}.hdr-notice{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px;background:rgba(20,22,26,.58)}.hdr-notice__panel{width:min(640px,100%);max-height:calc(100vh - 48px);overflow:auto;border:1px solid var(--line-strong);background:var(--bg-paper);padding:24px}.hdr-notice__ok{padding:10px 22px;border:1px solid var(--accent-green);background:var(--accent-green);color:white;cursor:pointer}.hdr-share-dock{position:fixed;right:18px;bottom:18px;z-index:9000}.hdr-share-fab{border:1px solid var(--ink-primary);background:var(--bg-paper);color:var(--ink-primary);padding:10px 16px;cursor:pointer}.hdr-share-pop{position:absolute;right:0;bottom:calc(100% + 8px);width:min(340px,calc(100vw - 32px));padding:14px;border:1px solid var(--line-strong);background:var(--bg-paper)}.hdr-share-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.hdr-share-channel{padding:8px;border:1px solid var(--line-subtle);text-align:center;font-size:12px}.hdr-feed__track{display:flex;gap:14px;overflow:auto}.hdr-feed__item{white-space:nowrap}

@media (max-width:700px) { .container { min-width:0; } .hdr-share-pop { max-width:calc(100vw - 24px); } .actions-row { flex-wrap:wrap; } }

.live-left { display:grid; grid-template-columns:auto auto minmax(0,1fr); width:100%; min-width:0; max-width:100%; }
.hdr-feed__view { min-width:0; max-width:100%; overflow:hidden; }
.hdr-feed__track { min-width:0; max-width:100%; scrollbar-width:thin; }
.live-entry { flex:0 0 auto; white-space:nowrap; }

/* Keep the live feed clipped to the content column on narrow screens. */
.live-left { width: 100%; min-width: 0; max-width: 100%; }
.hdr-feed__view { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
.hdr-feed__track { width: max-content; min-width: 100%; max-width: none; }
@media (max-width: 700px) {
  .live-left { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .hdr-feed__view { grid-column: 1 / -1; }
}
