  :root {
    --ink: #0f0e11;
    --ink2: #3a3845;
    --ink3: #7a7590;
    --paper: #faf9f6;
    --paper2: #f2f0eb;
    --paper-warm-1: #f7f4ed;
    --paper-warm-2: #f3efe7;
    --violet: #5b4fcf;
    --violet-light: #ede9ff;
    --violet-mid: #8b80e8;
    --border2: rgba(15,14,17,0.06);
    --sans: system-ui, -apple-system, sans-serif;
    --serif: Georgia, serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; }
  body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* ── Nav ── */
  .nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250,249,246,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border2);
  }
  .nav-inner {
    max-width: 1080px; margin: 0 auto;
    padding: 0 15px 0 11px;
    height: 56px;
    display: flex; align-items: center; gap: 28px;
  }
  .brand {
    display: inline-flex; align-items: center; gap: 8px;
    flex-shrink: 0;
  }
  .brand-name {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .nav .mosaic-mark { width: 20px; height: 20px; }
  .brand-was-here-please-ignore { display: none; }
  .nav-links {
    display: flex; align-items: center; gap: 20px;
    flex: 1;
  }
  .nav-links a {
    font-size: 13px; color: var(--ink2);
    text-decoration: none;
    white-space: nowrap;
    transition: color .12s;
  }
  .nav-links a:hover { color: var(--ink); }

  /* ── Nav dropdown (Use cases) ── */
  .nav-dd { position: static; }
  .nav-dd-trigger {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; color: var(--ink2);
    background: transparent; border: none;
    cursor: pointer; padding: 6px 13px;
    border-radius: 2px;
    font-family: var(--sans);
    transition: background .15s, color .15s;
    white-space: nowrap;
  }
  .nav-dd-trigger:hover,
  .nav-dd.open > .nav-dd-trigger {
    background: rgba(91,79,207,0.08);
    color: var(--ink);
  }
  .nav-dd-chev {
    transition: transform .2s ease;
    opacity: 0.7;
  }
  .nav-dd.open .nav-dd-chev { transform: rotate(180deg); }

  .nav-dd-panel {
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: min(880px, calc(100vw - 32px));
    background: rgba(250,249,246,0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border2);
    border-radius: 2px;
    box-shadow: 0 24px 60px rgba(15,14,17,0.10), 0 4px 14px rgba(15,14,17,0.04);
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .22s cubic-bezier(0.22,1,0.36,1), visibility .18s;
    z-index: 110;
  }
  .nav-dd.open .nav-dd-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .nav-dd-title {
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 12px;
  }
  .nav-dd-sub {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink2);
    margin: 0 0 20px;
    max-width: 320px;
  }
  .nav-dd-see {
    display: inline-flex; align-items: center;
    padding: 9px 18px;
    background: rgba(15,14,17,0.04);
    border: 1px solid var(--border2);
    border-radius: 2px;
    font-size: 12.5px;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--sans);
    transition: background .15s;
  }
  .nav-dd-see:hover { background: rgba(15,14,17,0.07); }

  .nav-dd-right {
    display: flex; flex-direction: column;
    gap: 2px;
    align-self: center;
  }
  .nav-dd-item {
    display: grid;
    grid-template-columns: 28px 1fr 14px;
    align-items: center;
    gap: 16px;
    padding: 14px 14px;
    border-radius: 2px;
    text-decoration: none;
    color: var(--ink);
    transition: background .12s;
  }
  .nav-dd-item:hover { background: rgba(91,79,207,0.07); }
  .nav-dd-ico {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--violet);
  }
  .nav-dd-ico svg { width: 22px; height: 22px; }
  .nav-dd-text {
    display: flex; flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .nav-dd-name {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    font-family: var(--sans);
  }
  .nav-dd-desc {
    font-size: 12px;
    color: var(--ink3);
    line-height: 1.45;
  }
  .nav-dd-arrow {
    width: 14px; height: 14px;
    color: var(--ink3);
    transition: transform .15s, color .15s;
  }
  .nav-dd-item:hover .nav-dd-arrow {
    color: var(--violet);
    transform: translateX(2px);
  }

  @media (max-width: 720px) {
    .nav-dd-panel { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
    .nav-dd-title { font-size: 26px; }
  }
  .btn-primary {
    font-size: 13px; font-weight: 500;
    color: #fff; background: var(--violet);
    padding: 7px 15px; border-radius: 2px;
    text-decoration: none; white-space: nowrap;
    transition: opacity .12s;
    border: none; cursor: pointer;
    font-family: var(--sans);
  }
  .btn-primary:hover { opacity: 0.88; }
  .btn-secondary {
    font-size: 13.5px; font-weight: 500;
    color: var(--violet); background: transparent;
    padding: 11px 20px; border-radius: 2px;
    text-decoration: none;
    border: 1px solid rgba(91,79,207,0.35);
    transition: background .12s;
    cursor: pointer; font-family: var(--sans);
  }
  .btn-secondary:hover { background: var(--violet-light); }
  .btn-cta {
    font-size: 13.5px; font-weight: 500;
    color: #fff; background: var(--violet);
    padding: 11px 24px; border-radius: 2px;
    text-decoration: none;
    border: none; cursor: pointer;
    transition: opacity .12s;
    font-family: var(--sans);
  }
  .btn-cta:hover { opacity: 0.88; }

  /* ── Hero ── */
  .hero {
    position: relative;
    overflow: hidden;
    min-height: auto;
    background: var(--paper);
    border-bottom: none;
  }
  .hero-canvas {
    position: absolute; inset: 0;
    z-index: 0;
    width: 100%; height: 100%;
    display: block;
  }
  /* Soft radial fade ,  keeps text legible at center while letting tiles show through edges */
  .hero-fade {
    position: absolute; inset: 0; z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(ellipse 70% 55% at 50% 52%,
        rgba(250,249,246,0.72) 0%,
        rgba(250,249,246,0.38) 38%,
        rgba(250,249,246,0.08) 70%,
        rgba(250,249,246,0.00) 100%);
  }
  .hero-inner {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto;
    padding: 80px 40px 52px;
    min-height: auto;
    display: flex; flex-direction: column;
    align-items: stretch; justify-content: flex-start;
    text-align: left;
  }
  .hero-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: 72px;
    align-items: start;
  }
  /* Smaller hero headline on the two-column landing (scoped so single-column hero.html
     keeps its 84px). Match the copy column's top offset to the aside's padding-top so the
     headline's first line starts on the same line as the right-column text. */
  .hero-grid h1.hero-title { font-size: 44px; }
  .hero-grid .hero-copy { padding-top: 16px; }
  @media (max-width: 920px) { .hero-grid .hero-copy { padding-top: 0; } }
  .hero-copy {
    width: 100%;
    display: flex; flex-direction: column;
    align-items: flex-start;
  }
  .hero-aside {
    padding-top: 16px;
    max-width: 480px;
  }
  .hero-lede {
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--ink2);
    margin: 0;
    text-wrap: pretty;
  }
  .hero-lede-built {
    display: inline-block;
    margin-top: 7px;
    color: var(--ink2);
    font-size: 1em;
  }
  /* Lead line, the "scattered" statement, given a touch more weight. */
  .hero-lede--lead {
    font-size: 21px;
    line-height: 1.45;
    color: var(--ink);
    font-weight: 500;
  }
  /* Supporting paragraph, set smaller + muted beneath the lead. */
  .hero-lede--sub {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink2);
  }
  /* Icon slideshow standing in for the scattered apps / folders / tabs. */
  .lede-scatter.ico-scatter {
    width: 1.12em; height: 1.12em;
    vertical-align: -0.2em;
    margin: 0 0 0 0.6em;
  }
  .lede-scatter .lede-ico {
    object-fit: contain;
  }
  /* 11-step crossfade through the real research apps the work is scattered
     across (Zotero, Mendeley, EndNote, Evernote, Docs, Word, PubMed, Claude,
     OpenAI, Drive, OneDrive). Each tile holds the stage ~1/11 of the loop. */
  .ico-scatter .lede-ico {
    animation: icoScatter 14.3s linear infinite !important;
  }
  .ico-scatter .lede-ico:nth-child(1)  { animation-delay: 0s     !important; }
  .ico-scatter .lede-ico:nth-child(2)  { animation-delay: -1.3s  !important; }
  .ico-scatter .lede-ico:nth-child(3)  { animation-delay: -2.6s  !important; }
  .ico-scatter .lede-ico:nth-child(4)  { animation-delay: -3.9s  !important; }
  .ico-scatter .lede-ico:nth-child(5)  { animation-delay: -5.2s  !important; }
  .ico-scatter .lede-ico:nth-child(6)  { animation-delay: -6.5s  !important; }
  .ico-scatter .lede-ico:nth-child(7)  { animation-delay: -7.8s  !important; }
  .ico-scatter .lede-ico:nth-child(8)  { animation-delay: -9.1s  !important; }
  .ico-scatter .lede-ico:nth-child(9)  { animation-delay: -10.4s !important; }
  .ico-scatter .lede-ico:nth-child(10) { animation-delay: -11.7s !important; }
  .ico-scatter .lede-ico:nth-child(11) { animation-delay: -13.0s !important; }
  @keyframes icoScatter {
    0%    { opacity: 0; transform: scale(0.78); }
    1.4%  { opacity: 1; transform: scale(1); }
    7%    { opacity: 1; transform: scale(1); }
    8.6%  { opacity: 0; transform: scale(0.78); }
    100%  { opacity: 0; transform: scale(0.78); }
  }
  @media (prefers-reduced-motion: reduce) {
    .ico-scatter .lede-ico { animation: none !important; opacity: 0; transform: none !important; }
    .ico-scatter .lede-ico:first-child { opacity: 1; }
  }
  /* Inline icon cycler, crossfades between two brand marks in place,
     standing in for the app name (references / drafting tools). */
  .ico-cycle {
    position: relative;
    display: inline-block;
    width: 1.2em; height: 1.2em;
    vertical-align: -0.24em;
    margin: 0 0.1em;
  }
  /* Single static icon (the assistant mark) sized to match the cyclers. */
  .ico-solo {
    display: inline-block;
    width: 1.28em; height: 1.28em;
    vertical-align: -0.28em;
    margin: 0 0.08em;
  }
  .ico-solo .lede-ico {
    width: 100%; height: 100%;
    transform: none;
    opacity: 1;
  }
  /* Inline cluster of icons illustrating a noun (apps / folders / tabs). */
  .ico-stack {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    vertical-align: -0.22em;
    margin: 0 0.18em;
  }
  .ico-stack .lede-ico {
    width: 1.08em; height: 1.08em;
    transform: none;
    opacity: 1;
  }
  .ico-cycle .lede-ico {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    transform: none;
    opacity: 0;
  }
  .ico-cycle .lede-ico:nth-child(1) { animation: icoCycleA 4.6s ease-in-out infinite; }
  .ico-cycle .lede-ico:nth-child(2) { animation: icoCycleB 4.6s ease-in-out infinite; }
  /* Stagger the second cycler so the two pairs don't flip in unison. */
  .hero-lede .ico-cycle:nth-of-type(2) .lede-ico { animation-delay: -2.3s; }
  @keyframes icoCycleA {
    0%   { opacity: 1; }
    50%  { opacity: 1; }
    58%  { opacity: 0; }
    92%  { opacity: 0; }
    100% { opacity: 1; }
  }
  @keyframes icoCycleB {
    0%   { opacity: 0; }
    42%  { opacity: 0; }
    50%  { opacity: 1; }
    92%  { opacity: 1; }
    100% { opacity: 0; }
  }
  /* Three-icon cycler (the assistant slot): each mark holds ~a third of the
     cycle, with overlapping crossfades so one is always visible. */
  .ico-cycle--3 .lede-ico {
    animation: ico3 6.6s ease-in-out infinite !important;
  }
  .ico-cycle--3 .lede-ico:nth-child(1) { animation-delay: 0s !important; }
  .ico-cycle--3 .lede-ico:nth-child(2) { animation-delay: -2.2s !important; }
  .ico-cycle--3 .lede-ico:nth-child(3) { animation-delay: -4.4s !important; }
  @keyframes ico3 {
    0%   { opacity: 0; }
    3%   { opacity: 1; }
    30%  { opacity: 1; }
    36%  { opacity: 0; }
    100% { opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .ico-cycle .lede-ico { animation: none; opacity: 0; }
    .ico-cycle .lede-ico:first-child { opacity: 1; }
  }
  .lede-brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-weight: 500;
    color: var(--ink);
  }
  .lede-ico {
    width: 1.15em; height: 1.15em;
    flex-shrink: 0;
    transform: translateY(0.02em);
  }
  .hero-mark {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 28px;
  }
  .hero-mark .mosaic-mark { width: 26px; height: 26px; }
  .hero-mark-name {
    font-family: Georgia, serif;
    font-size: 22px;
    color: var(--ink);
    letter-spacing: -0.015em;
    line-height: 1;
  }
  h1.hero-title {
    font-family: Georgia, serif;
    font-size: 60px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.04;
    letter-spacing: -0.022em;
    color: var(--ink);
    margin-bottom: 30px;
    text-align: left;
    text-wrap: balance;
  }
  h1.hero-title #typer {
    white-space: pre-line;
  }
  .typer-caret {
    display: inline-block;
    width: 4px; height: 0.78em;
    background: var(--ink);
    transform: translateY(0.06em);
    margin-left: 6px;
    animation: blink 1s steps(2) infinite;
    vertical-align: baseline;
    opacity: 1;
    transition: opacity 200ms ease;
  }
  @keyframes blink { 50% { opacity: 0; } }
  /* Caret fades out the moment the typer finishes, no lingering line. */
  .typer-caret.hidden {
    opacity: 0;
    animation: none;
    pointer-events: none;
  }
  .hero-sub {
    font-size: 16px; line-height: 1.55;
    color: var(--ink2);
    margin-bottom: 36px;
    max-width: 540px;
  }
  .hero-ctas {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap; justify-content: flex-start;
  }
  /* Hero: stack the two columns on tablet & down */
  @media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; row-gap: 30px; }
    .hero-aside { padding-top: 0; max-width: 560px; }
    .hero-lede { font-size: 17px; }
  }
  .btn-cta {
    padding: 11px 22px;
    font-size: 13px;
  }
  .btn-secondary {
    padding: 11px 20px;
    font-size: 13px;
  }
  .hero-fineprint {
    font-size: 11.5px;
    color: var(--ink3);
  }

  /* ── Mosaic logo (svg) ── */
  .mosaic-mark {
    width: 22px; height: 22px;
    display: inline-block;
    flex-shrink: 0;
  }

  /* ── Tweaks fallback (panel mounts itself; this is just safety) ── */
  #tweaks-root { position: fixed; inset: 0; pointer-events: none; z-index: 2000; }

  /* ── Footer hint floating at bottom ── */
  .hero-hint {
    position: absolute;
    left: 50%; bottom: 28px;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink3);
    pointer-events: none;
    display: flex; align-items: center; gap: 10px;
    opacity: 0.55;
  }
  .hero-hint::before, .hero-hint::after {
    content: ''; width: 24px; height: 1px;
    background: rgba(15,14,17,0.18);
  }

  /* tweaks button styling override */
  .om-tweaks-toggle { z-index: 9999 !important; }

  /* ────────────────────────────────────────────────────────────────────
     Assembly section ,  9 mosaic tiles converging into the logo formation
     ──────────────────────────────────────────────────────────────────── */
  .assembly {
    position: relative;
    background: var(--paper);
    border-top: 1px solid var(--border2);
    padding: 140px 32px 160px;
    overflow: hidden;
  }
  .assembly-inner {
    max-width: 1080px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  @media (max-width: 880px) {
    .assembly-inner { grid-template-columns: 1fr; gap: 56px; }
    .assembly { padding: 96px 24px 112px; }
  }

  /* ── Stage (left column) ── */
  .assembly-stage-wrap {
    display: flex; justify-content: center; align-items: center;
  }
  .assembly-stage {
    position: relative;
    width: 380px; height: 380px;
    max-width: 100%;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    /* Step/tile ratio 1:0.8 mirrors the source logo (gap 1.5 / tile 6 = 25%).
       So step = tile / 0.8 = tile * 1.25. */
    --mosaic-tile: 60px;
    --mosaic-step: 75px;
    --mosaic-scatter: 220px;
  }
  .assembly-stage-inner {
    position: absolute; inset: 0;
  }
  .assembly-tile {
    position: absolute;
    top: 50%; left: 50%;
    width: var(--w, 60px);
    height: var(--h, 60px);
    margin: var(--m, -30px) 0 0 var(--m, -30px);
    border-radius: calc(var(--w, 60px) * 0.25);
    background: var(--violet);
    opacity: var(--op, 1);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    /* placed state: every already-earned block sits here, upright, no motion */
    transform: translate3d(var(--tx), var(--ty), 0) scale(1);
    transform-origin: 50% 50%;
    transition:
      transform 720ms cubic-bezier(0.34, 1.4, 0.5, 1) var(--delay, 0ms),
      opacity   460ms ease var(--delay, 0ms);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    pointer-events: none;
  }
  .assembly-tile--icon, .assembly-tile--center, .assembly-tile--plain { /* no size overrides */ }
  .assembly-tile svg { display: block; }
  /* Only the block(s) THIS section adds animate in, dropping onto the rest. */
  .assembly-stage-inner[data-state="scattered"] .assembly-tile--new {
    transform: translate3d(var(--tx), var(--ty), 0) scale(0.18);
    opacity: 0;
  }
  .assembly-stage-inner[data-state="assembled"] .assembly-tile--new {
    transform: translate3d(var(--tx), var(--ty), 0) scale(1);
    opacity: var(--op);
  }

  /* Hero-sized stage (smaller version above the headline) */
  .hero-assembly-stage {
    width: 180px; height: 180px;
    margin: 0 auto 28px;
    --mosaic-tile: 28px;
    --mosaic-step: 35px;
    --mosaic-scatter: 130px;
  }

  /* ── Copy (right column) ── */
  .assembly-copy {
    max-width: 460px;
  }
  .assembly-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 20px;
  }
  .assembly-title {
    font-family: Georgia, serif;
    font-size: clamp(44px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0 0 24px;
  }
  .assembly-body {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink2);
    margin: 0 0 28px;
  }
  .assembly-list {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 12px 28px;
  }
  .assembly-list li {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 14px;
    color: var(--ink2);
  }
  .assembly-list .swatch {
    width: 14px; height: 14px;
    border-radius: 4px;
    background: var(--violet);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
  }
  .assembly-list .swatch svg { width: 9px; height: 9px; }
  .assembly-hint {
    margin-top: 32px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink3);
  }

  /* ────────────────────────────────────────────────────────────────────
     Demo reveal ,  sticky scroll track that grows the frame to fullscreen
     ──────────────────────────────────────────────────────────────────── */
  .demo-reveal-track {
    position: relative;
    /* Shorter track + earlier completion = less "stuck" feeling. The frame
       reaches fullscreen almost as soon as it enters view, then the page
       continues scrolling normally. */
    height: 140vh;
    background: var(--paper);
    border-top: 1px solid var(--border2);
  }
  .demo-reveal-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--paper);
  }

  /* The frame. Width / height / radius / shadow are JS-driven so the frame
     can grow from a contained card to nearly fill the viewport as scroll
     runs. Transitions smooth out per-frame value changes so the resize
     reads as fluid even when scroll events come in bursts. */
  .demo-frame {
    position: relative;
    width: var(--w, 1100px);
    height: var(--h, 640px);
    max-width: 100vw;
    max-height: 100vh;
    border-radius: var(--r, 18px);
    background: var(--paper);
    border: 1px solid rgba(15,14,17, var(--border-alpha, 0.06));
    box-shadow:
      0 calc(40px * var(--shadow-amt, 1)) calc(100px * var(--shadow-amt, 1)) rgba(15,14,17, calc(0.14 * var(--shadow-amt, 1))),
      0 calc(8px  * var(--shadow-amt, 1)) calc(24px  * var(--shadow-amt, 1)) rgba(15,14,17, calc(0.06 * var(--shadow-amt, 1))),
      inset 0 1px 0 rgba(255,255,255, calc(0.4 * var(--shadow-amt, 1)));
    overflow: hidden;
    will-change: width, height, border-radius;
    /* Smooth out scroll-driven size changes so the resize never reads as
       jittery, while still tracking input quickly enough to feel responsive. */
    transition:
      width 220ms cubic-bezier(0.22, 1, 0.36, 1),
      height 220ms cubic-bezier(0.22, 1, 0.36, 1),
      border-radius 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Demo tab bar, reference-style pill tabs above the preview. */
  .demo-tabs {
    display: flex;
    gap: 4px;
    width: 100%;
    max-width: min(1280px, 94vw);
    margin: 0 auto;
    padding: 6px;
    box-sizing: border-box;
    background: rgba(15,14,17,0.04);
    border: 1px solid var(--border2);
    border-radius: 16px;
  }
  .demo-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border: 0;
    background: transparent;
    border-radius: 11px;
    font-family: system-ui;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink2);
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
  }
  .demo-tab:hover { color: var(--ink); }
  .demo-tab.active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(15,14,17,0.10), 0 4px 12px rgba(15,14,17,0.05);
  }
  .demo-tab-ico {
    display: inline-flex;
    width: 18px; height: 18px;
    color: var(--violet);
    flex-shrink: 0;
  }
  .demo-tab-ico svg { width: 100%; height: 100%; }
  /* Tabs drive the demo now, the in-frame sidebar is display only. */
  .demo-frame .ws-sb-item { pointer-events: none; }

  /* Desktop: render the preview as a STATIC panel that sits directly under
     the hero text and peeks up off the bottom of the viewport (no sticky
     scroll-zoom). Overrides the JS-driven --w/--h with !important, exactly
     like the mobile treatment does. */
  @media (min-width: 761px) {
    .demo-reveal-track {
      height: auto;
      border-top: none;
      overflow: hidden;
    }
    .demo-reveal-sticky {
      position: static;
      height: auto;
      overflow: visible;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      padding: 0 24px;
    }
    .demo-frame {
      width: min(1280px, 94vw) !important;
      height: min(72vh, 700px) !important;
      max-height: none;
      border-radius: 16px 16px 0 0 !important;
      border-bottom: none !important;
      box-shadow:
        0 30px 80px rgba(15,14,17,0.13),
        0 8px 24px rgba(15,14,17,0.06) !important;
      transition: none !important;
      margin: 0 auto;
    }
  }

  /* Play button ,  fades out once the frame has fully landed */
  .demo-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(var(--play-sc, 1));
    width: 84px; height: 84px;
    border-radius: 50%;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    box-shadow:
      0 14px 40px rgba(91,79,207,0.30),
      0 2px 6px rgba(15,14,17,0.08);
    cursor: pointer;
    z-index: 6;
    transition: transform 200ms ease, background 200ms ease;
  }
  .demo-play:hover { background: #fff; transform: translate(-50%, -50%) scale(1.06); }
  .demo-play::after {
    content: '';
    width: 0; height: 0;
    border-left: 20px solid var(--violet);
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    margin-left: 5px;
  }
  .demo-play-label {
    position: absolute;
    top: calc(50% + 64px);
    left: 50%;
    transform: translateX(-50%);
    font-family: system-ui;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ink2);
    background: rgba(255,255,255,0.85);
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 6;
    pointer-events: none;
    white-space: nowrap;
  }

  /* ── App workspace mock (fills the demo frame) ── */
  .workspace {
    width: 100%; height: 100%;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    grid-template-rows: 44px minmax(0, 1fr);
    background: var(--paper);
    font-family: system-ui;
    color: var(--ink);
  }
  .ws-topbar {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 14px;
    padding: 0 14px;
    border-bottom: 1px solid var(--border2);
    background: rgba(242,240,235,0.65);
    font-size: 11.5px;
    color: var(--ink2);
  }
  .ws-topbar-brand {
    display: inline-flex; align-items: center; gap: 8px;
  }
  .ws-topbar-brand-name {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  .ws-topbar-divider {
    width: 1px; height: 18px;
    background: var(--border2);
  }
  .ws-topbar-project {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px;
    color: var(--ink2);
  }
  .ws-topbar-project::before {
    content: ''; width: 7px; height: 7px;
    border-radius: 2px;
    background: var(--violet);
  }
  .ws-topbar-right { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
  .ws-topbar-btn {
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid var(--border2);
    background: rgba(255,255,255,0.7);
    font-size: 10.5px;
    color: var(--ink2);
  }
  .ws-topbar-btn.primary { background: var(--violet); color: #fff; border-color: transparent; }
  .ws-avatar {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--violet-light);
    color: var(--violet);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9.5px; font-weight: 600;
  }

  .ws-sidebar {
    border-right: 1px solid var(--border2);
    background: rgba(242,240,235,0.42);
    padding: 12px 8px;
    font-size: 11.5px;
    overflow: hidden;
  }
  .ws-sidebar-block {
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border2);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 12px;
  }
  .ws-sidebar-block .name {
    display: flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 500;
    color: var(--ink);
  }
  .ws-sidebar-block .name .swatch {
    width: 3px; height: 18px; border-radius: 2px;
    background: var(--violet);
  }
  .ws-sidebar-block .sub {
    font-size: 9.5px;
    color: var(--ink3);
    margin-top: 3px;
    margin-left: 11px;
  }
  .ws-sidebar-label {
    font-size: 9px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink3);
    padding: 6px 8px 3px;
  }
  .ws-sidebar-item {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 8px;
    border-radius: 3px;
    color: var(--ink2);
    margin-bottom: 1px;
    font-size: 11px;
  }
  .ws-sidebar-item.active {
    background: rgba(255,255,255,0.95);
    color: var(--violet);
    font-weight: 500;
    border: 1px solid rgba(91,79,207,0.14);
  }
  .ws-sidebar-item .icn {
    width: 12px; text-align: center;
    color: var(--ink3);
    font-size: 11px;
  }
  .ws-sidebar-item.active .icn { color: var(--violet); }
  .ws-sidebar-item .count {
    margin-left: auto;
    font-size: 9px;
    color: var(--ink3);
    background: rgba(15,14,17,0.05);
    padding: 1px 5px;
    border-radius: 999px;
  }
  .ws-sidebar-item .count.new {
    background: var(--violet-light);
    color: var(--violet);
  }

  .ws-main {
    padding: 22px 28px 28px;
    overflow: hidden;
    background: var(--paper);
  }
  .ws-main-tabs {
    display: flex; gap: 18px;
    border-bottom: 1px solid var(--border2);
    margin-bottom: 18px;
  }
  .ws-main-tabs span {
    padding: 0 0 7px;
    font-size: 11px;
    color: var(--ink3);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
  }
  .ws-main-tabs span.active {
    color: var(--violet);
    border-bottom-color: var(--violet);
    font-weight: 500;
  }
  .ws-doc-title {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
  }
  .ws-doc-meta {
    font-size: 10.5px;
    color: var(--ink3);
    margin-bottom: 18px;
  }
  .ws-section-label {
    font-size: 9.5px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink3);
    position: relative;
    margin: 14px 0 8px;
  }
  .ws-section-label::after {
    content: '';
    position: absolute;
    left: 130px; right: 0; top: 50%;
    height: 1px; background: var(--border2);
  }
  .ws-doc-body p {
    font-size: 12.5px;
    line-height: 1.78;
    color: var(--ink2);
    margin: 0 0 9px;
  }
  .ws-cite {
    display: inline-block;
    background: var(--violet-light);
    color: var(--violet);
    padding: 0 5px;
    border-radius: 3px;
    font-size: 10.5px;
    font-weight: 500;
    vertical-align: baseline;
    margin: 0 1px;
  }
  .ws-caret {
    display: inline-block;
    width: 2px; height: 1em;
    background: var(--ink);
    vertical-align: text-bottom;
    animation: ws-blink 1s steps(2) infinite;
  }
  @keyframes ws-blink { 50% { opacity: 0; } }
  .ws-ai-chip {
    margin-top: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--violet-light);
    color: var(--violet);
    font-size: 11px; font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
  }
  .ws-ai-chip::before { content: '✦'; }

  .ws-right {
    border-left: 1px solid var(--border2);
    background: rgba(242,240,235,0.42);
    padding: 14px 12px;
    overflow: hidden;
    font-size: 11px;
  }
  .ws-right-label {
    font-size: 9.5px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink3);
    margin-bottom: 10px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .ws-right-label .more { color: var(--violet); font-weight: 400; font-size: 9.5px; letter-spacing: 0; text-transform: none; }
  .ws-right-card {
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--border2);
    border-radius: 4px;
    padding: 9px 11px;
    margin-bottom: 7px;
  }
  .ws-right-card .src { font-size: 9.5px; color: var(--ink3); margin-bottom: 3px; }
  .ws-right-card .ttl { font-size: 11px; line-height: 1.32; color: var(--ink); font-weight: 500; }
  .ws-right-card .note {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.45;
    background: var(--violet-light);
    color: var(--violet);
    padding: 5px 7px;
    border-radius: 3px;
    font-style: italic;
  }
  .ws-right-stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 14px;
  }
  .ws-stat {
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border2);
    border-radius: 4px;
    padding: 8px;
    text-align: center;
  }
  .ws-stat .n { font-family: Georgia, serif; font-size: 18px; color: var(--ink); }
  .ws-stat .l { font-size: 9px; color: var(--ink3); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 1px; }

  /* Frame chrome (still used by mock typography inside other places ,  keep) */

  /* ────────────────────────────────────────────────────────────────────
     Workspace Overview variant, mirrors the mosaic app
     (Topbar.tsx + Sidebar.tsx + OverviewPanel.tsx) 1:1. Token names
     reflect what the real app uses: --section-project-label, sb-count,
     bact, panel-title, tb-btn.primary, etc.
     ──────────────────────────────────────────────────────────────────── */
  .workspace--overview {
    /* App grid: 248px sidebar + flexible main */
    grid-template-columns: 248px minmax(0, 1fr);
    grid-template-rows: 48px minmax(0, 1fr);
    background: var(--paper);
    /* Tokens used by the real app */
    --ws-ink: var(--ink);
    --ws-ink2: var(--ink2);
    --ws-ink3: #7a7590;
    --ws-violet: var(--violet);
    --ws-violet-light: var(--violet-light);
    --ws-border: rgba(15,14,17,0.10);
    --ws-border2: rgba(15,14,17,0.06);
    --ws-proj: #4f6fd6;
    --ws-proj-alt: #c45a54;
    --ws-paper: var(--paper);
    --ws-paper2: rgba(242,240,235,0.42);
  }

  /* ── Topbar (grid-spans whole top row, internal 248px + 1fr split) ── */
  .workspace--overview .ws-topbar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 248px minmax(0,1fr);
    align-items: center;
    padding: 0;
    background: rgba(250,249,246,0.92);
    border-bottom: 1px solid var(--ws-border2);
    font-size: 12.5px;
    color: var(--ws-ink2);
  }
  .workspace--overview .ws-topbar-left {
    display: flex; align-items: center; gap: 0;
    height: 100%;
    padding: 0 12px 0 16px;
    border-right: 1px solid var(--ws-border2);
    min-width: 0;
  }
  .workspace--overview .ws-topbar-brand {
    display: inline-flex; align-items: center; gap: 7px;
    flex-shrink: 0;
  }
  .workspace--overview .ws-topbar-brand-name {
    font-family: Georgia, serif;
    font-size: 18px;
    color: var(--ws-ink);
  }
  .workspace--overview .ws-topbar-org {
    margin-left: 14px;
    padding-left: 12px;
    border-left: 1px solid var(--ws-border2);
    display: flex; align-items: center; gap: 8px;
    min-width: 0;
  }
  .workspace--overview .ws-topbar-org-name {
    font-size: 12.5px;
    color: var(--ws-ink2);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .workspace--overview .ws-topbar-org-caret {
    font-size: 10px;
    color: var(--ws-ink3);
  }
  .workspace--overview .ws-topbar-right-col {
    padding: 0 16px;
    min-width: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .workspace--overview .ws-topbar-action {
    display: inline-flex; align-items: center; gap: 5px;
    flex-shrink: 0;
    min-height: 30px;
    padding: 0 13px;
    font: 600 12.5px system-ui;
    color: #fff;
    background: var(--violet);
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    white-space: nowrap;
  }
  .workspace--overview .ws-topbar-action .plus { font-size: 14px; line-height: 1; }
  .workspace--overview .ws-topbar-action[hidden] { display: none; }
  /* page title moved to the topbar; collapse the in-panel header so there is no gap */
  .workspace--overview .app-panel > .app-panel-header,
  .workspace--overview .ws-page--overview > .ws-main-header { display: none !important; }
  .workspace--overview .ws-topbar-crumb {
    font-size: 12.5px;
    font-weight: 400;
    color: var(--ws-ink2);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ── Sidebar ── */
  .workspace--overview .ws-sidebar {
    background: rgba(242,240,235,0.58);
    border-right: 1px solid var(--ws-border2);
    padding: 8px 8px 12px;
    overflow-y: auto;
    display: flex; flex-direction: column;
  }
  .workspace--overview .ws-sb-section {
    padding: 0 4px;
    margin-bottom: 4px;
  }
  .workspace--overview .ws-sb-label {
    display: block;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ws-ink3);
    padding: 6px 8px 5px;
  }
  .workspace--overview .ws-sb-item {
    display: flex; align-items: center; gap: 10px;
    min-height: 30px;
    padding: 0 8px;
    margin: 0 4px;
    border-radius: 3px;
    border: 1px solid transparent;
    color: var(--ws-ink2);
    font-size: 12px;
    cursor: default;
    user-select: none;
  }
  .workspace--overview .ws-sb-item.active {
    background: rgba(255,255,255,0.94);
    color: var(--ws-violet);
    font-weight: 500;
    border-color: rgba(91,79,207,0.12);
    box-shadow: 0 8px 18px rgba(15,14,17,0.04);
  }
  .workspace--overview .ws-sb-ico {
    width: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ws-ink2);
    flex-shrink: 0;
  }
  .workspace--overview .ws-sb-ico-glyph {
    font-size: 15px;
    line-height: 1;
    transform: translateY(-0.06em);
  }
  .workspace--overview .ws-sb-item.active .ws-sb-ico { color: var(--ws-violet); }
  .workspace--overview .ws-sb-count {
    margin-left: auto;
    font-size: 8.5px;
    background: rgba(15,14,17,0.05);
    padding: 1px 5px;
    border-radius: 999px;
    color: var(--ws-ink3);
    min-width: 18px;
    text-align: center;
  }
  .workspace--overview .ws-sb-count.new {
    background: rgba(91,79,207,0.10);
    color: var(--ws-violet);
    padding: 1px 7px;
    min-width: 40px;
    font-size: 9px;
  }
  .workspace--overview .ws-sb-divider {
    height: 1px;
    background: var(--ws-border2);
    margin: 8px 4px;
  }

  /* Active project header card */
  .workspace--overview .ws-sb-project {
    display: flex; align-items: stretch; gap: 9px;
    padding: 10px;
    margin: 0 4px 4px;
    border-radius: 3px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(15,14,17,0.08);
    box-shadow: 0 8px 24px rgba(15,14,17,0.04);
  }
  .workspace--overview .ws-sb-project-bar {
    width: 4px;
    border-radius: 999px;
    background: var(--ws-proj);
    flex-shrink: 0;
  }
  .workspace--overview .ws-sb-project-meta {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; justify-content: center;
  }
  .workspace--overview .ws-sb-project-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ws-ink);
    line-height: 1.35;
    word-break: break-word;
  }
  .workspace--overview .ws-sb-project-sub {
    font-size: 10px;
    color: var(--ws-ink3);
    margin-top: 2px;
  }
  .workspace--overview .ws-sb-project-toggle {
    font-size: 12px;
    color: var(--ws-ink3);
    flex-shrink: 0;
    align-self: center;
  }

  /* Bottom account row */
  .workspace--overview .ws-sb-account {
    margin-top: auto;
    padding: 10px 8px 4px;
    border-top: 1px solid rgba(15,14,17,0.05);
    display: flex; align-items: center; gap: 10px;
  }
  .workspace--overview .ws-sb-avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(15,14,17,0.08);
    color: var(--ws-ink2);
    font-size: 10px;
    font-weight: 500;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .workspace--overview .ws-sb-account-meta {
    min-width: 0;
    display: grid; gap: 1px; flex: 1;
  }
  .workspace--overview .ws-sb-account-name {
    font-size: 12px;
    color: var(--ws-ink);
    line-height: 1.25;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .workspace--overview .ws-sb-account-email {
    font-size: 10px;
    color: var(--ws-ink3);
    line-height: 1.25;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .workspace--overview .ws-sb-account-caret {
    font-size: 10px;
    color: var(--ws-ink3);
    flex-shrink: 0;
  }

  /* ── Main panel ── */
  .workspace--overview .ws-main {
    background: var(--ws-paper);
    overflow: hidden;
    display: flex; flex-direction: column;
    min-width: 0;
  }
  .workspace--overview .ws-main-header {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 8px 20px;
    border-bottom: 1px solid var(--ws-border2);
    background: rgba(250,249,246,0.76);
    flex-shrink: 0;
  }
  .workspace--overview .ws-panel-title {
    display: none;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ws-ink);
    margin: 0;
  }
  .workspace--overview .ws-tb-btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 32px;
    font-size: 11.5px;
    font-weight: 500;
    padding: 0 12px;
    border-radius: 2px;
    border: 1px solid transparent;
    background: var(--ws-violet);
    color: #fff;
    font-family: var(--sans);
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
  }
  .workspace--overview .ws-tb-btn-plus { font-size: 13px; line-height: 1; margin-top: -1px; }

  .workspace--overview .ws-main-body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 308px;
    overflow: hidden;
  }

  /* Columns */
  .workspace--overview .ws-col-left {
    overflow-y: auto;
    padding: 18px 20px 22px;
    border-right: 1px solid var(--ws-border2);
  }
  .workspace--overview .ws-col-right {
    overflow-y: auto;
    padding: 18px 16px 22px;
    background: rgba(242,240,235,0.50);
  }

  /* Discreet scrollbars throughout the workspace demo. Auto-hides on Mac,
     thin & translucent on Windows/Linux. */
  .workspace--overview *,
  .workspace--overview {
    scrollbar-width: thin;
    scrollbar-color: rgba(15,14,17,0.12) transparent;
  }
  .workspace--overview *::-webkit-scrollbar { width: 6px; height: 6px; }
  .workspace--overview *::-webkit-scrollbar-track { background: transparent; }
  .workspace--overview *::-webkit-scrollbar-thumb {
    background: rgba(15,14,17,0.12);
    border-radius: 999px;
  }
  .workspace--overview *::-webkit-scrollbar-thumb:hover {
    background: rgba(15,14,17,0.22);
  }
  .workspace--overview *::-webkit-scrollbar-corner { background: transparent; }
  .workspace--overview .ws-h2 {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--ws-ink);
    margin: 0 0 4px;
  }

  /* Project row (used in both columns) */
  .workspace--overview .ws-proj-row {
    display: flex; align-items: stretch; gap: 10px;
    margin: 24px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ws-border2);
  }
  .workspace--overview .ws-proj-bar {
    width: 3px;
    border-radius: 999px;
    background: var(--ws-proj);
    flex-shrink: 0;
    align-self: stretch;
  }
  .workspace--overview .ws-proj-bar--alt { background: var(--ws-proj-alt); }
  .workspace--overview .ws-proj-name {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--ws-ink);
    line-height: 1.1;
  }
  .workspace--overview .ws-proj-open {
    font-size: 10px;
    color: var(--ws-ink3);
    margin-left: auto;
    white-space: nowrap;
    align-self: center;
  }

  /* Briefing item */
  .workspace--overview .ws-brief {
    padding: 12px 0;
    border-bottom: 1px solid var(--ws-border2);
  }
  .workspace--overview .ws-brief-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ws-ink);
    line-height: 1.35;
    margin: 0 0 4px;
  }
  .workspace--overview .ws-brief-line {
    font-size: 11px;
    color: var(--ws-ink2);
    line-height: 1.5;
    margin-bottom: 1px;
  }
  .workspace--overview .ws-brief-line strong {
    font-weight: 600;
    color: var(--ws-ink2);
  }
  .workspace--overview .ws-brief-line em { font-style: italic; }
  .workspace--overview .ws-brief-journal {
    display: flex; align-items: center; gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 6px;
  }
  .workspace--overview .ws-brief-pubmed {
    font-size: 10px;
    color: var(--ws-violet);
    text-decoration: none;
  }
  .workspace--overview .ws-brief-abs {
    font-size: 11.5px;
    line-height: 1.65;
    color: var(--ws-ink2);
    margin: 0 0 6px;
  }
  .workspace--overview .ws-brief-overview {
    display: inline-block;
    font-size: 10.5px;
    color: var(--ws-violet);
    margin-bottom: 8px;
  }
  .workspace--overview .ws-brief-acts {
    display: flex;
    gap: 3px;
    margin-top: 6px;
  }
  .workspace--overview .ws-bact {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid var(--ws-border);
    background: transparent;
    color: var(--ws-ink3);
    font-family: var(--sans);
    cursor: pointer;
  }
  .workspace--overview .ws-bact-save {
    background: var(--ws-violet-light);
    color: var(--ws-violet);
    border-color: transparent;
  }
  .workspace--overview .ws-more {
    font-size: 10.5px;
    color: var(--ws-ink3);
    padding: 4px 0 10px;
  }
  .workspace--overview .ws-more span {
    color: var(--ws-violet);
    cursor: pointer;
  }

  /* Tasks column */
  .workspace--overview .ws-task-group { margin-bottom: 4px; }
  .workspace--overview .ws-task-empty {
    font-size: 11.5px;
    color: var(--ws-ink3);
    padding: 6px 0 10px;
  }
  .workspace--overview .ws-task-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--ws-border2);
  }
  .workspace--overview .ws-task-cb {
    width: 11px;
    height: 11px;
    border: 1px solid var(--ws-border);
    border-radius: 2px;
    flex-shrink: 0;
  }
  .workspace--overview .ws-task-title {
    flex: 1;
    font-size: 11.5px;
    color: var(--ws-ink);
    line-height: 1.3;
    min-width: 0;
  }
  .workspace--overview .ws-task-due {
    font-size: 10px;
    color: var(--ws-ink3);
    flex-shrink: 0;
    font-family: var(--sans);
  }
  .workspace--overview .ws-task-due--overdue {
    color: #c94040;
  }
  .workspace--overview .ws-task-add {
    font-size: 11.5px;
    color: var(--ws-ink3);
    margin-top: 4px;
  }

  /* ── Page swapping ── */
  .workspace--overview .ws-main {
    position: relative;
    min-height: 0;
  }
  .workspace--overview .ws-page {
    display: none;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }
  .workspace--overview[data-active-page="overview"] .ws-page[data-page="overview"],
  .workspace--overview[data-active-page="assistant"] .ws-page[data-page="assistant"],
  .workspace--overview[data-active-page="library"] .ws-page[data-page="library"],
  .workspace--overview[data-active-page="documents"] .ws-page[data-page="documents"],
  .workspace--overview[data-active-page="tasks"] .ws-page[data-page="tasks"],
  .workspace--overview[data-active-page="briefing"] .ws-page[data-page="briefing"] {
    display: flex;
  }

  /* The .app-panel rules (header, tabs, library split, brief split, chat) are
     defined in mosaic-build.css under :is(.build-demo.build-demo--app, .workspace--overview)
     so they apply equally inside the big workspace demo. */
  .workspace--overview .app-panel {
    position: relative;
    inset: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .workspace--overview .ws-sb-item[data-page] { cursor: pointer; }

  /* Empty states (Documents / Tasks pages with no data) */
  .workspace--overview .ws-empty-state {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px;
    padding: 40px 24px;
    text-align: center;
    color: var(--ws-ink3);
  }
  .workspace--overview .ws-empty-icon {
    color: var(--ws-ink3);
    opacity: 0.5;
    margin-bottom: 4px;
  }
  .workspace--overview .ws-empty-title {
    font-family: Georgia, serif;
    font-size: 16px;
    color: var(--ws-ink);
  }
  .workspace--overview .ws-empty-sub {
    font-size: 12px;
    line-height: 1.55;
    max-width: 320px;
    color: var(--ws-ink3);
  }

  /* Tasks table, mirrors TasksPanel/TasksTable.tsx 1:1 in column rhythm,
     fonts, and pill tones. */
  .workspace--overview .app-tasks-table {
    overflow: hidden;
    padding: 6px 20px 4px;
  }
  .workspace--overview .tasks-head {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) 100px 110px 90px;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--ws-border2);
    position: sticky; top: 0;
    background: rgba(250,249,246,0.96);
  }
  .workspace--overview .tasks-head-cell {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--ws-ink3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-left: 2px;
  }
  .workspace--overview .tasks-row {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) 100px 110px 90px;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(15,14,17,0.05);
    transition: background-color 120ms ease;
  }
  .workspace--overview .tasks-row:hover { background: rgba(255,255,255,0.75); }
  .workspace--overview .tasks-cell { min-width: 0; }
  .workspace--overview .tasks-cell--title {
    display: flex; align-items: center; gap: 9px;
  }
  .workspace--overview .tasks-cb {
    width: 14px; height: 14px;
    border-radius: 2px;
    border: 1.5px solid rgba(15,14,17,0.16);
    background: rgba(255,255,255,0.82);
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .workspace--overview .tasks-cb--done {
    background: var(--ws-violet);
    border-color: var(--ws-violet);
    position: relative;
  }
  .workspace--overview .tasks-cb--done::after {
    content: ''; width: 6px; height: 4px;
    border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg) translate(0.5px, -1px);
  }
  .workspace--overview .tasks-title {
    font-size: 12px;
    color: var(--ws-ink);
    line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .workspace--overview .tasks-title--done {
    color: var(--ws-ink3);
    text-decoration: line-through;
  }
  .workspace--overview .tasks-cell--due {
    font-size: 11px;
    color: var(--ws-ink2);
  }
  .workspace--overview .tasks-cell--overdue { color: #c94040; font-weight: 500; }
  .workspace--overview .tasks-cell--muted { color: var(--ws-ink3); }

  /* Status + priority pills, sharp 2px corners per CLAUDE.md. */
  .workspace--overview .tasks-pill {
    display: inline-flex; align-items: center;
    padding: 2px 7px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
  }
  .workspace--overview .tasks-pill--inprogress {
    background: rgba(91,79,207,0.10);
    color: var(--ws-violet);
  }
  .workspace--overview .tasks-pill--backlog {
    background: rgba(15,14,17,0.06);
    color: var(--ws-ink2);
  }
  .workspace--overview .tasks-pill--open {
    background: #e0f5ee;
    color: #1a9e75;
  }
  .workspace--overview .tasks-pill--done {
    background: rgba(15,14,17,0.06);
    color: var(--ws-ink3);
  }
  .workspace--overview .tasks-pill--high {
    background: rgba(201,64,64,0.10);
    color: #c94040;
  }
  .workspace--overview .tasks-pill--med {
    background: rgba(185,115,24,0.10);
    color: #b97318;
  }
  .workspace--overview .tasks-pill--low {
    background: rgba(15,14,17,0.05);
    color: var(--ws-ink3);
  }

  /* Tasks Cards (kanban) view, mirrors TasksPanel/TasksBoard.tsx */
  .workspace--overview .tasks-board-toolbar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--ws-border2);
    background: rgba(250,249,246,0.76);
    flex-shrink: 0;
  }
  .workspace--overview .tasks-search {
    flex: 1;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 11px;
    border: 1px solid var(--ws-border);
    border-radius: 2px;
    background: rgba(255,255,255,0.78);
    font-size: 11.5px;
    color: var(--ws-ink3);
  }
  .workspace--overview .tasks-toolbar-right {
    display: inline-flex; gap: 8px;
  }
  .workspace--overview .tasks-select {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 11px;
    border: 1px solid var(--ws-border);
    border-radius: 2px;
    background: rgba(255,255,255,0.78);
    font-size: 11.5px;
    color: var(--ws-ink);
  }
  .workspace--overview .tasks-select-caret {
    font-size: 8px;
    color: var(--ws-ink3);
  }

  .workspace--overview .tasks-board {
    flex: 1;
    overflow: hidden;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    background: rgba(242,240,235,0.42);
  }
  .workspace--overview .tasks-column {
    background: var(--ws-paper);
    border: 1px solid var(--ws-border2);
    border-radius: 2px;
    padding: 12px;
    display: flex; flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
  }
  .workspace--overview .tasks-column-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ws-border2);
  }
  .workspace--overview .tasks-column-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ws-ink3);
  }
  .workspace--overview .tasks-column-count {
    font-size: 10px;
    color: var(--ws-ink3);
    background: rgba(15,14,17,0.05);
    padding: 1px 6px;
    border-radius: 2px;
    min-width: 16px;
    text-align: center;
  }
  .workspace--overview .tasks-card {
    border: 1px solid var(--ws-border2);
    background: var(--ws-paper);
    border-radius: 2px;
    padding: 10px 12px;
    display: flex; flex-direction: column;
    gap: 7px;
    box-shadow: 0 1px 0 rgba(15,14,17,0.03);
  }
  .workspace--overview .tasks-card-title {
    font-size: 12px;
    line-height: 1.4;
    color: var(--ws-ink);
    font-weight: 500;
  }
  .workspace--overview .tasks-card--done .tasks-card-title {
    color: var(--ws-ink3);
    text-decoration: line-through;
  }
  .workspace--overview .tasks-card-meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 10.5px;
    color: var(--ws-ink3);
  }
  .workspace--overview .tasks-card-sep { color: var(--ws-ink3); }
  .workspace--overview .tasks-card-due { color: var(--ws-ink3); }
  .workspace--overview .tasks-card-due--overdue {
    color: #c94040;
    font-weight: 500;
  }
  .workspace--overview .tasks-add {
    font-size: 11px;
    color: var(--ws-ink3);
    padding-top: 2px;
  }

  /* ── Tasks: three views (Main Table / Cards / Timeline) ── */
  .workspace--overview .ws-page--tasks .tasks-view { display: none; }
  .workspace--overview .ws-page--tasks[data-tasks-view="table"] .tasks-view--table { display: flex; flex-direction: column; min-height: 0; }
  .workspace--overview .ws-page--tasks[data-tasks-view="cards"] .tasks-view--cards { display: grid; }
  .workspace--overview .ws-page--tasks[data-tasks-view="timeline"] .tasks-view--timeline { display: flex; flex-direction: column; min-height: 0; }
  .workspace--overview .ws-page--tasks[data-tasks-view="table"] .tasks-view--table,
  .workspace--overview .ws-page--tasks[data-tasks-view="cards"] .tasks-view--cards,
  .workspace--overview .ws-page--tasks[data-tasks-view="timeline"] .tasks-view--timeline { animation: tasksViewIn 0.34s ease; }
  @keyframes tasksViewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
  .workspace--overview .tasks-rows { display: flex; flex-direction: column; overflow: hidden; }

  /* a new row is typed in — subtle neutral edit tint, plus a blinking caret */
  .workspace--overview .tasks-row.is-adding { background: rgba(15,14,17,0.025); }
  .workspace--overview .is-typing::after {
    content: ''; display: inline-block; width: 1.5px; height: 12px;
    background: var(--ws-ink2); margin-left: 1px; vertical-align: text-bottom;
    animation: wsCaretBlink 1s steps(1) infinite;
  }
  @keyframes wsCaretBlink { 50% { opacity: 0; } }

  /* ── Inline "+ Add task" bottom row + its editors (dropdowns, calendar) ── */
  .workspace--overview .tasks-row--add { cursor: pointer; }
  .workspace--overview .tasks-add-plus { color: var(--ws-ink3); font-size: 13px; margin-right: 3px; }
  .workspace--overview .tasks-add-label { color: var(--ws-ink3); font-size: 12px; }
  .workspace--overview .tasks-add-ph { color: rgba(15,14,17,0.30); font-size: 11px; }
  /* while adding, cells host popups (menus/calendar) */
  .workspace--overview .tasks-row.is-adding .tasks-cell { position: relative; }
  /* focused task-name input box — subtle, inset from the left edge so it lines
     up with where the committed row's title sits */
  .workspace--overview .tasks-title-box {
    flex: 1; min-width: 0;
    margin-left: 23px;
    min-height: 27px;   /* reserve full height so the empty box doesn't open collapsed then grow */
    display: flex; align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--ws-border);
    border-radius: 4px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 1px 2px rgba(15,14,17,0.03);
  }
  .workspace--overview .tasks-title-box .tasks-title { font-size: 12px; white-space: nowrap; }
  /* status/priority/date "select" affordance shown before its picker opens */
  .workspace--overview .tasks-pick {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 8px;
    border: 1px solid var(--ws-border);
    border-radius: 3px;
    background: rgba(255,255,255,0.92);
    font-size: 11px; color: var(--ws-ink3);
    cursor: pointer;
  }
  .workspace--overview .tasks-pick.is-open {
    border-color: var(--ws-violet);
    box-shadow: 0 0 0 3px rgba(91,79,207,0.10);
    color: var(--ws-ink);
  }
  .workspace--overview .tasks-pick-caret { font-size: 8px; color: var(--ws-ink3); }
  /* allow the calendar popup to escape the table's clip while it is open */
  .workspace--overview .ws-page--tasks.is-picking .app-tasks-table,
  .workspace--overview .ws-page--tasks.is-picking .tasks-rows { overflow: visible; }

  /* calendar date-picker popup — opens upward (the add row sits low in the
     table, so growing up keeps the whole month on-screen) */
  .workspace--overview .tasks-calendar {
    position: absolute; bottom: calc(100% + 4px); top: auto; right: 0;
    z-index: 60; width: 210px;
    background: #fff; border: 1px solid var(--ws-border);
    border-radius: 7px; box-shadow: 0 16px 36px rgba(15,14,17,0.20);
    padding: 10px; animation: tasksCalIn 0.16s ease;
  }
  @keyframes tasksCalIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  .workspace--overview .tasks-cal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2px 8px;
  }
  .workspace--overview .tasks-cal-month { font-size: 12px; font-weight: 600; color: var(--ws-ink); }
  .workspace--overview .tasks-cal-nav { font-size: 14px; color: var(--ws-ink3); width: 18px; text-align: center; }
  .workspace--overview .tasks-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
  .workspace--overview .tasks-cal-dow {
    font-size: 8.5px; color: var(--ws-ink3); text-align: center;
    padding: 2px 0 5px; text-transform: uppercase; letter-spacing: 0.02em;
  }
  .workspace--overview .tasks-cal-day {
    font-size: 11px; color: var(--ws-ink2); text-align: center;
    padding: 4px 0; border-radius: 4px;
  }
  .workspace--overview .tasks-cal-day--muted { color: rgba(15,14,17,0.20); }
  .workspace--overview .tasks-cal-day.is-hover { background: rgba(91,79,207,0.10); }
  .workspace--overview .tasks-cal-day.is-pick { background: var(--ws-violet); color: #fff; font-weight: 600; }

  /* card drag: lift + follow, then settle into the new column. No violet — the
     lift (shadow + scale/tilt) alone reads as "picked up to drag". */
  .workspace--overview .tasks-card { transition: transform 0.5s cubic-bezier(0.34,0.02,0.24,1), box-shadow 0.18s ease, border-color 0.18s ease; }
  .workspace--overview .tasks-card.is-dragging {
    box-shadow: 0 16px 32px rgba(15,14,17,0.22);
    border-color: rgba(15,14,17,0.16);
    position: relative; z-index: 5; pointer-events: none;
  }
  /* the dragged card's column floats above its neighbours and stops clipping,
     so the card rides over the board instead of behind it */
  .workspace--overview .tasks-column.is-drag-from { overflow: visible; position: relative; z-index: 30; }

  /* Shared footer: subtle Hide/Show completed text link, bottom-right of every view */
  .workspace--overview .tasks-footer {
    display: flex; justify-content: flex-end;
    padding: 8px 22px 12px; flex-shrink: 0;
  }
  .workspace--overview .tasks-toggle-done {
    border: none; background: none; padding: 2px;
    font-size: 11px; font-weight: 500; color: var(--ws-ink3);
    cursor: pointer;
  }
  .workspace--overview .tasks-toggle-done:hover { color: var(--ws-ink2); }
  /* hidden completed items (rows / cards) across every view */
  .workspace--overview .ws-page--tasks.hide-done .tasks-row--done,
  .workspace--overview .ws-page--tasks.hide-done .tasks-card--done,
  .workspace--overview .ws-page--tasks.hide-done .tl-row--done { display: none; }

  /* Timeline (Gantt) view */
  .workspace--overview .tasks-timeline { overflow: hidden; padding: 12px 22px 8px; background: rgba(242,240,235,0.42); }
  .workspace--overview .tl-axis {
    display: flex; justify-content: space-between;
    margin-left: 320px; padding: 0 2px 8px;
    border-bottom: 1px solid var(--ws-border2);
    font-size: 9.5px; letter-spacing: 0.04em; color: var(--ws-ink3);
  }
  .workspace--overview .tl-rows { flex: 1; display: flex; flex-direction: column; }
  .workspace--overview .tl-row {
    display: grid; grid-template-columns: 310px 1fr; align-items: center; gap: 10px;
    padding: 9px 0; border-bottom: 1px solid var(--ws-border2);
  }
  /* leftmost column: checkbox + full task name (no truncation) */
  .workspace--overview .tl-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
  .workspace--overview .tl-check {
    width: 14px; height: 14px; flex-shrink: 0;
    border-radius: 2px; border: 1.5px solid rgba(15,14,17,0.16);
    background: rgba(255,255,255,0.82);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background-color 140ms ease, border-color 140ms ease;
  }
  .workspace--overview .tl-check--done { background: var(--ws-violet); border-color: var(--ws-violet); position: relative; }
  .workspace--overview .tl-check--done::after {
    content: ''; width: 6px; height: 4px;
    border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg) translate(0.5px, -1px);
  }
  .workspace--overview .tl-label {
    font-size: 10.5px; color: var(--ws-ink); line-height: 1.35;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .workspace--overview .tl-label--done { color: var(--ws-ink3); text-decoration: line-through; }
  .workspace--overview .tl-track { position: relative; height: 16px; background: rgba(15,14,17,0.035); border-radius: 2px; }
  .workspace--overview .tl-bar { position: absolute; top: 3px; height: 10px; border-radius: 2px; }
  .workspace--overview .tl-bar--high { background: rgba(201,64,64,0.5); }
  .workspace--overview .tl-bar--med  { background: rgba(185,115,24,0.5); }
  .workspace--overview .tl-bar--low  { background: rgba(15,14,17,0.2); }
  .workspace--overview .tl-bar--done { background: rgba(26,158,117,0.45); }
  /* completed bar: dimmed + struck through, mirroring the crossed-out label */
  .workspace--overview .tl-bar.is-done { opacity: 0.5; }
  .workspace--overview .tl-bar.is-done::after {
    content: ''; position: absolute; left: 0; right: 0; top: 50%;
    height: 1.5px; background: rgba(15,14,17,0.55); transform: translateY(-50%);
  }
  .workspace--overview .tasks-new-btn.ws-press { animation: wsDemoPress 0.34s ease; }

  /* Documents list view ,  mirrors DocumentList.tsx (11px medium title,
     uppercase 11px group label, gap-4 between groups, thin bottom border
     per row). */
  .workspace--overview .app-doc-list {
    flex: 1;
    overflow: hidden;
    padding: 16px 0 18px;                 /* horizontal padding moved onto the rows/titles so the picked-row highlight is full-bleed */
    display: flex; flex-direction: column;
    gap: 16px;
  }
  .workspace--overview .doc-list-group { display: flex; flex-direction: column; }
  .workspace--overview .doc-list-group-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ws-ink3);
    margin-bottom: 6px;
    padding: 0 22px;
  }
  .workspace--overview .doc-list-body {
    display: flex; flex-direction: column;
  }
  .workspace--overview .doc-list-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 22px;
    border: 0;
    border-bottom: 1px solid rgba(15,14,17,0.05);
    background: transparent;
    text-align: left;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 80ms;
  }
  .workspace--overview .doc-list-row:hover {
    background: rgba(15,14,17,0.02);
  }
  .workspace--overview .doc-list-name {
    display: flex; align-items: center; gap: 8px;
    flex: 1; min-width: 0;
  }
  .workspace--overview .doc-list-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--ws-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .workspace--overview .doc-list-opened {
    font-size: 10.5px;
    color: var(--ws-ink3);
    flex-shrink: 0;
  }
  .workspace--overview .doc-list-more {
    width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
    color: var(--ws-ink3);
    flex-shrink: 0;
  }


  /* ─────────────────────────────────────────────────────────────────
     Mobile layout (≤ 760px). Stacks nav, shrinks hero, collapses the
     workspace-overview demo sidebar to an icon rail, and tightens
     section padding. Desktop above 760px is untouched.
     ───────────────────────────────────────────────────────────────── */

  /* Burger menu (mobile only), placed outside the @media block so the
     base styles exist; the actual show/hide flip lives inside the media
     query below. */
  .nav-burger { display: none; position: relative; }
  .nav-burger > summary {
    list-style: none;
    -webkit-appearance: none;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 32px; height: 32px;
    border: 0;
    background: transparent;
    padding: 0;
  }
  .nav-burger > summary::-webkit-details-marker { display: none; }
  .nav-burger > summary span {
    display: block;
    width: 18px; height: 1px;
    background: var(--ink);
    border-radius: 0;
    transition: transform .2s, opacity .2s;
  }
  .nav-burger[open] > summary span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-burger[open] > summary span:nth-child(2) { opacity: 0; }
  .nav-burger[open] > summary span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .nav-burger > summary span:nth-child(2) {}
  .nav-burger[open] > summary {
    position: fixed;
    top: 14px; right: 18px;
    z-index: 240;
  }

  /* Full-screen overlay panel */
  .nav-burger-panel {
    position: fixed;
    inset: 0;
    background: var(--paper, #faf9f6);
    padding: 18px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    z-index: 230;
  }
  .nav-burger-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
  }
  .nav-burger-brand .mosaic-mark { width: 22px; height: 22px; }
  .nav-burger-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border2);
    color: var(--ink);
    text-decoration: none;
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: -0.01em;
    transition: color .15s;
  }
  .nav-burger-item:hover { color: var(--violet); }
  .nav-burger-item:first-of-type,
  .nav-burger-sub:first-of-type .nav-burger-item--toggle {
    border-top: 1px solid var(--border2);
  }
  .nav-burger-ico { display: none; }
  .nav-burger-item--child .nav-burger-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--violet);
    flex-shrink: 0;
  }
  .nav-burger-item--child .nav-burger-ico svg { width: 20px; height: 20px; }
  .nav-burger-text { flex: 1; }
  .nav-burger-arrow {
    width: 15px; height: 15px;
    color: var(--ink3);
    transition: transform .15s, color .15s;
  }
  .nav-burger-item:hover .nav-burger-arrow {
    color: var(--violet);
    transform: translateX(2px);
  }

  /* CTA, bottom-pinned Mosaic block button */
  .nav-burger-item--cta {
    margin-top: auto;
    margin-bottom: 12px;
    padding: 9px 18px;
    background: var(--violet);
    color: #fff;
    border-bottom: 0;
    border-radius: 2px;
    font-family: var(--sans, system-ui);
    font-size: 13px;
    font-weight: 500;
    justify-content: center;
    letter-spacing: 0;
  }
  .nav-burger-item--cta:hover {
    background: var(--violet);
    color: #fff;
    opacity: 0.92;
  }
  .nav-burger-item--cta .nav-burger-text { flex: 0 0 auto; }
  .nav-burger-item--cta .nav-burger-arrow { display: none; }

  /* Nested use cases, toggle row + indented children */
  .nav-burger-sub { display: contents; }
  .nav-burger-sub > summary {
    list-style: none;
    cursor: pointer;
  }
  .nav-burger-sub > summary::-webkit-details-marker { display: none; }
  .nav-burger-item--toggle { width: 100%; }
  .nav-burger-chev {
    width: 15px; height: 15px;
    color: var(--ink3);
    transition: transform .2s ease, color .15s;
  }
  .nav-burger-sub[open] > summary .nav-burger-chev {
    transform: rotate(180deg);
    color: var(--violet);
  }
  .nav-burger-sub-panel {
    display: flex;
    flex-direction: column;
  }
  .nav-burger-item--child {
    padding-left: 20px;
    font-size: 16px;
    font-family: Georgia, serif;
    color: var(--ink2);
    gap: 12px;
  }
  .nav-burger-item--child:hover { color: var(--violet); }

  /* Briefing demo image, hidden by default (desktop uses live demo),
     swapped in on mobile via the @media block below */
  .build-demo-image { display: none; }

  @media (max-width: 760px) {
    /* Nav: hide desktop links + primary CTA, show burger.
       Also drop backdrop-filter so it stops being a containing block
       for the fixed full-screen burger panel. */
    .nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    .feat-nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    .nav-inner, .feat-nav-inner { gap: 10px; padding: 0 14px; }
    .nav-links, .feat-nav-links { display: none !important; }
    .nav .btn-primary, .feat-btn-primary { display: none !important; }
    .nav-inner > a[href="/login"],
    .nav-inner > a[href="#signin"] { display: none !important; }
    .nav-burger { display: inline-block; margin-left: auto; }

    /* Hero */
    .hero { min-height: calc(100svh - 57px); padding-top: 16px; padding-bottom: 28px; display: flex; align-items: center; }
    .hero-inner { padding: 0 14px; max-width: 100%; text-align: center; align-items: center; justify-content: center; }
    .hero-mark { margin-bottom: 14px; gap: 8px; justify-content: center; margin-top: 0; }
    .hero-mark .mosaic-mark { width: 20px; height: 20px; }
    .hero-mark-name { font-size: 16px; }
    h1.hero-title { font-size: clamp(38px, 12vw, 52px) !important; line-height: 1.06; margin-bottom: 12px; letter-spacing: -0.01em; text-align: center; }
    h1.hero-title #typer { font-size: clamp(38px, 12vw, 52px) !important; }
    .hero-sub { font-size: 13.5px; line-height: 1.45; max-width: none; margin: 0 auto 16px; text-wrap: balance; }
    .hero-sub br { display: none; }
    .hero-ctas { width: 100%; margin-bottom: 8px; justify-content: center; }
    .hero-hint { display: none; }
    /* Center the hero column + supporting copy (desktop left-aligns these). */
    .hero-copy { align-items: center; text-align: center; }
    .hero-aside { max-width: 100%; margin: 0 auto; text-align: center; }
    .hero-lede { text-align: center; overflow-wrap: anywhere; }
    .hero-lede--lead { font-size: 17px; line-height: 1.3; }
    .hero-lede--sub { font-size: 14px; line-height: 1.45; margin-top: 7px; }
    .hero-lede-built { margin-top: 4px; }
    .waitlist-form { width: 100%; max-width: 360px; margin: 0 auto; }

    /* Demo reveal section, kill the giant zoom track on mobile. The
       JS-driven --w/--h get overridden below; the frame sits as a
       static, scaled-down desktop snapshot. */
    .demo-reveal-track { height: auto; }
    .demo-reveal-sticky {
      position: static;
      height: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      padding: 40px 16px 56px;
    }
    .demo-tabs { padding: 4px; border-radius: 13px; display: flex; gap: 2px; }
    /* Stack a tiny label under each icon so the five near-identical glyphs
       are distinguishable (Library/Documents/Tasks/Briefing/Assistant). */
    .demo-tab { flex-direction: column; gap: 3px; padding: 8px 0; font-size: 9px; line-height: 1; font-weight: 500; letter-spacing: 0.01em; justify-content: center; flex: 1; }
    .demo-tab-ico { width: 18px; height: 18px; }
    .demo-play { width: 60px; height: 60px; }
    .demo-play::after {
      border-left-width: 14px;
      border-top-width: 9px;
      border-bottom-width: 9px;
    }
    .demo-play-label { font-size: 11px; }

    /* ── Demo frames keep their DESKTOP shape, scaled down to fit ──
       Instead of restructuring each demo's grid for mobile (sidebar →
       icon rail, columns stacked, etc.) we render the demo at desktop
       dimensions and scale the whole thing down with a CSS transform.
       The outer frame collapses to the scaled height so it fits the
       phone screen exactly. */
    .workspace--overview {
      width: 1280px !important;
      height: 760px !important;
      transform: scale(calc((100vw - 32px) / 1280px));
      transform-origin: top left;
      grid-template-columns: 248px minmax(0, 1fr) !important;
    }
    /* Frame size: width × (scaled-down height of 760px). 100vw - 32px is
       the inner width after demo-frame's own viewport margins; the height
       must match scale × 760 so the frame doesn't leave dead space.
       transition:none: the desktop scroll-zoom easing must never animate
       the frame while these static !important sizes hold. */
    .demo-frame {
      width: calc(100vw - 32px) !important;
      height: calc((100vw - 32px) * (760 / 1280)) !important;
      max-width: none;
      border-radius: 12px !important;
      box-shadow: 0 12px 30px rgba(15,14,17,0.10);
      margin: 0 auto;
      overflow: hidden;
      transition: none !important;
    }
    /* Re-show internal chrome we previously hid (sidebar labels, split
       panes, etc.), the desktop shape is what we want now. */
    .workspace--overview .ws-topbar {
      grid-template-columns: 248px minmax(0, 1fr) !important;
    }
    .workspace--overview .ws-main-body {
      grid-template-columns: minmax(0, 1.2fr) 308px !important;
    }
    .workspace--overview .tasks-board {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    :is(.build-demo.build-demo--app, .workspace--overview) .app-library-split {
      grid-template-columns: minmax(0, 1fr) 158px;
    }
    /* Workspace overview's briefing page inherits the desktop layout
      , same grid, same sidebar width, same typography, just rendered
       at the scaled-down workspace dimensions. */
    :is(.build-demo.build-demo--app, .workspace--overview) .app-filter-sidebar,
    :is(.build-demo.build-demo--app, .workspace--overview) .app-brief-sidebar {
      display: block !important;
    }

    /* Build-row demos: render at desktop dimensions and scale to fit
       the phone width. Each .build-demo keeps the desktop 1280:800
       aspect ratio so layout doesn't shift. */
    .build-demo {
      aspect-ratio: 1280 / 800;
      height: auto;
      overflow: hidden;
      position: relative;
    }
    .build-demo > .app-panel,
    .build-demo > .app-doc-editor {
      width: 1280px !important;
      height: 800px !important;
      position: absolute !important;
      inset: 0 !important;
      transform-origin: 0 0;
      transform: scale(calc((100vw - 48px) / 1280px));
    }

    /* Per-row zoom-in. Each rule targets exactly one row via
       [data-step="N"] so they're independent, changing one cannot
       affect the others. Anything that overflows the 1280:800 box
       gets clipped by overflow:hidden on .build-demo. */

    /* Row 1, References: zoom in on the Library header + paper rows.
       Filter sidebar hidden so the paper list spans full width. */
    .build-row[data-step="1"] .build-demo > .app-panel {
      transform: scale(calc((100vw - 48px) / 1280px * 2.2));
    }
    .build-row[data-step="1"] .app-library-split {
      grid-template-columns: 1fr !important;
    }
    .build-row[data-step="1"] .app-filter-sidebar {
      display: none !important;
    }

    /* Row 2, Documents: let the editor render at the box's natural
       width (instead of forcing 1280px) so the paragraph wraps and the
       popup fits below the highlight, matching the desktop reference
       screenshot composition. */
    .build-row[data-step="2"] .build-demo {
      aspect-ratio: 1280 / 800;
    }
    .build-row[data-step="2"] .build-demo > .app-doc-editor {
      width: auto !important;
      height: auto !important;
      transform: none !important;
      inset: 0 !important;
      display: flex;
      flex-direction: column;
    }
    /* Hide the chrome/toolbar/section so the editor body has room
       for the paragraph + full popup */
    .build-row[data-step="2"] .ade-chrome,
    .build-row[data-step="2"] .ade-toolbar,
    .build-row[data-step="2"] .ade-section {
      display: none !important;
    }
    /* Tighten body padding/typography for the small frame */
    .build-row[data-step="2"] .ade-body {
      padding: 14px 16px !important;
      flex: 1;
      min-height: 0;
      position: relative;
    }
    .build-row[data-step="2"] .ade-section {
      font-size: 10px !important;
      margin-bottom: 6px !important;
    }
    .build-row[data-step="2"] .ade-para {
      font-size: 10px !important;
      line-height: 1.5 !important;
      margin: 0 0 8px !important;
    }
    /* Popup: position right under the paragraph, not bottom-anchored */
    .build-row[data-step="2"] .ade-find-pop {
      position: static !important;
      width: auto !important;
      max-width: 260px !important;
      padding: 7px 9px !important;
      gap: 3px !important;
    }
    /* Drop the noisy subheaders so just the result + actions show */
    .build-row[data-step="2"] .afp-sub,
    .build-row[data-step="2"] .afp-results-label,
    .build-row[data-step="2"] .afp-quote {
      display: none !important;
    }
    .build-row[data-step="2"] .afp-title { font-size: 10.5px !important; }
    .build-row[data-step="2"] .afp-back { font-size: 8px !important; padding: 1px 5px !important; }
    .build-row[data-step="2"] .afp-status { font-size: 8.5px !important; }
    .build-row[data-step="2"] .afp-source-card { padding: 5px 6px !important; gap: 2px !important; }
    .build-row[data-step="2"] .afp-source-title { font-size: 8.5px !important; line-height: 1.3 !important; }
    .build-row[data-step="2"] .afp-source-meta { font-size: 7.5px !important; }
    .build-row[data-step="2"] .afp-actions { gap: 4px !important; margin-top: 2px !important; }
    .build-row[data-step="2"] .afp-badge { font-size: 7px !important; padding: 1px 4px !important; }
    .build-row[data-step="2"] .afp-view { font-size: 8px !important; }
    .build-row[data-step="2"] .afp-insert { font-size: 8px !important; padding: 2px 6px !important; }

    /* Row 3, Assistant: render the chat panel at the box's natural
       width (no 1280px scale hack) so the whole conversation fits.
       Matches the desktop reference: breadcrumb top, user/asst
       messages, composer at bottom. */
    .build-row[data-step="3"] .build-demo {
      aspect-ratio: 1280 / 800;
    }
    .build-row[data-step="3"] .build-demo > .app-panel {
      width: auto !important;
      height: auto !important;
      transform: none !important;
      inset: 0 !important;
      display: flex;
      flex-direction: column;
    }
    /* Compact the top row */
    .build-row[data-step="3"] .app-chat-top {
      padding: 6px 10px !important;
    }
    .build-row[data-step="3"] .app-chat-crumb,
    .build-row[data-step="3"] .app-chat-newconv {
      font-size: 9px !important;
    }
    .build-row[data-step="3"] .app-chat-new-btn {
      width: 18px !important; height: 18px !important; font-size: 13px !important;
    }
    /* Compact the message feed */
    .build-row[data-step="3"] .app-chat-feed {
      padding: 6px 10px !important;
      gap: 5px !important;
      overflow: hidden;
    }
    .build-row[data-step="3"] .app-chat-user {
      font-size: 9px !important;
      padding: 4px 9px !important;
      line-height: 1.4 !important;
      border-radius: 10px !important;
    }
    .build-row[data-step="3"] .app-chat-context {
      font-size: 7.5px !important;
    }
    .build-row[data-step="3"] .app-chat-asst {
      font-size: 9px !important;
      line-height: 1.45 !important;
    }
    .build-row[data-step="3"] .app-chat-asst p {
      margin: 0 0 4px !important;
    }
    .build-row[data-step="3"] .app-chat-asst-h {
      font-size: 9.5px !important;
      margin: 4px 0 2px !important;
    }
    .build-row[data-step="3"] .app-chat-stat {
      font-size: 7.5px !important;
      padding: 0 4px !important;
    }
    .build-row[data-step="3"] .app-chat-pill {
      font-size: 7.5px !important;
      padding: 0 5px !important;
    }
    /* Composer hidden on mobile, the conversation needs the room */
    .build-row[data-step="3"] .app-chat-composer {
      display: none !important;
    }

    /* Row 4, Briefing: replace the live demo with a static screenshot
       on mobile. The demo is hidden, the image is shown in its place
       and given the same aspect ratio so it slots into the build-row. */
    .build-row[data-step="4"] .build-demo {
      display: none !important;
    }
    .build-row[data-step="4"] .build-demo-image {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 4px;
      box-shadow: 0 12px 30px rgba(15,14,17,0.10);
    }
    .build-row {
      padding-left: 16px !important;
      padding-right: 16px !important;
      grid-template-columns: 1fr !important;
    }
    .build-row.reverse {
      grid-template-columns: 1fr !important;
    }
    .build-row.reverse .build-left { order: 1 !important; }
    .build-row.reverse .build-right { order: 2 !important; }

    /* Build section already stacks at 880px (mosaic-build.css), nothing
       more needed here. Tighten the intro spacing only. */
    .build-intro { margin: 0 auto 40px; padding: 0 20px; }
    .build-intro h2 { font-size: 36px; }

    /* Endmark / final CTA */
    .endmark-cta { min-height: 480px; }
    .endmark-cta-inner { padding: 24px 20px; }
    .endmark-cta-inner h2 { font-size: 38px !important; }
    .endmark-cta-inner p { font-size: 14px; }

    /* Use-cases split → horizontal swipe carousel on mobile.
       Higher specificity than the inline override is handled in each
       page's <style> block; this is the global fallback. */
    .usecases-split { grid-template-columns: 1fr !important; }
  }

  /* ────────────────────────────────────────────────────────────────────
     Workspace-tab demo animations. Motion applied to the existing .ws-page
     mockups so each tab plays like a short recording of the real app. Driven
     by workspace-demos.js; the static markup is the reduced-motion / no-JS
     fallback. Scoped to .workspace--overview.
     ──────────────────────────────────────────────────────────────────── */

  /* Entrance for message/row "beats" — hidden until JS adds .is-in. */
  .workspace--overview .ws-demo-in {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity .34s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform .34s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .workspace--overview .ws-demo-in.is-in {
    opacity: 1;
    transform: translateY(0);
  }

  /* Streaming text caret. */
  /* "Thinking" indicator shown while an assistant reply streams — the word
     "Thinking" plus three small violet dots that pulse opacity in sequence.
     Matches the live app 1:1 (word 12.5px ink3; dots 4px, violet-mid, 1.1s
     staggered opacity pulse). There is NO typewriter caret in the real app. */
  .workspace--overview .ws-demo-think {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--sans);
    font-size: 11px;
    line-height: 1.5;
    color: var(--ap-ink3, var(--ink3));
  }
  .workspace--overview .ws-demo-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  .workspace--overview .ws-demo-dots span {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--violet-mid);
    opacity: 0.3;
    animation: wsDemoDot 1.1s ease-in-out infinite;
  }
  .workspace--overview .ws-demo-dots span:nth-child(2) { animation-delay: 0.18s; }
  .workspace--overview .ws-demo-dots span:nth-child(3) { animation-delay: 0.36s; }
  @keyframes wsDemoDot {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 1; }
  }

  /* Composer text brightens while the demo "types" a query into it, with a
     clean thin black blinking caret (the ::after) — reads as real typing. */
  .workspace--overview .app-chat-composer-text.is-typing { color: var(--ap-ink); }
  .workspace--overview .app-chat-composer-text.is-typing::after {
    content: ''; display: inline-block; width: 1.5px; height: 14px;
    background: var(--ap-ink); margin-left: 2px; vertical-align: text-bottom;
    animation: wsCaretBlink 1s steps(1) infinite;
  }

  /* Assistant comparison table — styled to match the bottom demo's bot-table:
     bold dark headers, hairline row rules, muted body, emphasised first column,
     no zebra/box, and a staggered row reveal. */
  .workspace--overview .app-chat-table { margin: 6px 0 2px; overflow-x: auto; }
  .workspace--overview .app-chat-table table { border-collapse: collapse; width: 100%; }
  .workspace--overview .app-chat-table th {
    text-align: left; font-size: 11px; font-weight: 600; color: var(--ap-ink);
    padding: 6px 16px 7px 0; border-bottom: 1px solid var(--border2, rgba(15,14,17,0.08)); white-space: nowrap;
  }
  .workspace--overview .app-chat-table td {
    text-align: left; font-size: 11px; color: var(--ap-ink2); line-height: 1.45; vertical-align: top;
    padding: 8px 16px 8px 0; border-bottom: 1px solid var(--border2, rgba(15,14,17,0.08));
  }
  .workspace--overview .app-chat-table th:last-child,
  .workspace--overview .app-chat-table td:last-child { padding-right: 0; }
  .workspace--overview .app-chat-table tbody tr:last-child td { border-bottom: none; }
  .workspace--overview .app-chat-table td:first-child { color: var(--ap-ink); font-weight: 500; white-space: nowrap; }
  .workspace--overview .app-chat-table tbody tr { opacity: 0; animation: botRowIn 0.42s ease forwards; }
  .workspace--overview .app-chat-table tbody tr:nth-child(1) { animation-delay: 0.10s; }
  .workspace--overview .app-chat-table tbody tr:nth-child(2) { animation-delay: 0.22s; }
  .workspace--overview .app-chat-table tbody tr:nth-child(3) { animation-delay: 0.34s; }
  .workspace--overview .app-chat-table tbody tr:nth-child(4) { animation-delay: 0.46s; }
  .workspace--overview .app-chat-note { font-size: 11.5px; line-height: 1.65; color: var(--ap-ink2); }

  /* ── Assistant carousel: attach-a-document picker (via the "+" button) ── */
  .workspace--overview .app-chat-composer { position: relative; }
  .workspace--overview .app-chat-icon.is-pulse { animation: wsDemoPulse 0.36s ease; }
  .workspace--overview .app-chat-icon.is-hot { color: var(--ap-violet); }
  /* feed items keep their natural height (the feed scrolls via scrollTop); without
     this, the flex column shrinks tall artifact cards and clips their content */
  .workspace--overview .app-chat-feed > * { flex-shrink: 0; }
  .workspace--overview .app-chat-feed .bot-art { margin-top: 2px; }

  /* The picker, chips and artifact cards are borrowed from the (larger) bottom
     assistant demo — scale them down to this panel's ~11.5px chat. */
  .workspace--overview .askbot-picker { width: 300px; padding: 7px; border-radius: 11px; bottom: calc(100% + 8px); box-shadow: 0 16px 40px rgba(15,14,17,0.16), 0 3px 9px rgba(15,14,17,0.06); }
  .workspace--overview .pick-tabs { gap: 4px; border-radius: 8px; padding: 2px; }
  .workspace--overview .pick-tab { padding: 5px 8px; font-size: 11px; border-radius: 6px; gap: 5px; }
  .workspace--overview .pick-search { gap: 7px; margin-top: 5px; padding: 6px 10px; border-radius: 8px; font-size: 11px; }
  .workspace--overview .pick-search svg { width: 13px; height: 13px; }
  .workspace--overview .pick-list { max-height: 130px; margin-top: 3px; }
  .workspace--overview .pick-row { gap: 9px; padding: 6px; border-radius: 7px; }
  .workspace--overview .pick-ico { width: 17px; height: 17px; }
  .workspace--overview .pick-title { font-size: 11.5px; }
  .workspace--overview .pick-sub { font-size: 10px; }
  .workspace--overview .pick-check { width: 15px; height: 15px; border-radius: 4px; }

  .workspace--overview .askbot-ctx { gap: 6px; margin-bottom: 7px; }
  .workspace--overview .ctx-chip { gap: 5px; padding: 4px 9px 4px 7px; border-radius: 7px; font-size: 10.5px; max-width: 190px; }
  .workspace--overview .ctx-chip svg { width: 12px; height: 12px; }

  .workspace--overview .bot-art { max-width: 560px; border-radius: 10px; box-shadow: 0 6px 20px rgba(15,14,17,0.05), 0 1px 2px rgba(15,14,17,0.04); }
  .workspace--overview .bot-art-head { padding: 8px 13px; font-size: 11px; gap: 7px; }
  .workspace--overview .bot-art-head svg { width: 13px; height: 13px; }
  .workspace--overview .bot-table table { font-size: 11.5px; }
  .workspace--overview .bot-table th { font-size: 10.5px; padding: 7px 12px; }
  .workspace--overview .bot-table td { padding: 7px 12px; }
  .workspace--overview .bot-edit .bot-art-body { padding: 12px 14px; font-size: 12px; line-height: 1.75; }
  .workspace--overview .bot-edit-foot { padding: 8px 13px; font-size: 11px; }
  .workspace--overview .bot-outline .bot-art-body { padding: 11px 15px 13px; }
  .workspace--overview .bot-outline ol { font-size: 12px; line-height: 1.55; padding-left: 18px; }
  .workspace--overview .bot-outline ol > li { margin-bottom: 7px; }
  .workspace--overview .bot-outline ul li { font-size: 11px; }
  .workspace--overview .app-chat-docpick {
    position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 40;
    width: 260px; background: #fff; border: 1px solid var(--ap-border, rgba(15,14,17,0.1));
    border-radius: 8px; box-shadow: 0 14px 34px rgba(15,14,17,0.16); padding: 5px;
    opacity: 0; transform: translateY(6px); transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .workspace--overview .app-chat-docpick.is-in { opacity: 1; transform: none; }
  .workspace--overview .docpick-head {
    font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ap-ink3); padding: 5px 8px 6px;
  }
  .workspace--overview .docpick-row {
    display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 5px;
    font-size: 11.5px; color: var(--ap-ink); cursor: pointer;
  }
  .workspace--overview .docpick-row.is-hover { background: rgba(91,79,207,0.08); }
  .workspace--overview .app-chat-doc-ico { color: var(--ap-ink3); flex-shrink: 0; }
  .workspace--overview .docpick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .workspace--overview .docpick-sub { font-size: 9.5px; color: var(--ap-ink3); white-space: nowrap; }

  /* attached-document chip (in the composer, then echoed on the user turn) */
  .workspace--overview .app-chat-attached { margin-bottom: 7px; }
  .workspace--overview .app-chat-doc-chip {
    display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
    padding: 3px 9px; border-radius: 999px; background: rgba(15,14,17,0.05);
    border: 1px solid rgba(15,14,17,0.08); font-size: 10.5px; color: var(--ap-ink2);
  }
  .workspace--overview .app-chat-user--doc { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .workspace--overview .app-chat-user--doc .app-chat-doc-chip { background: rgba(255,255,255,0.5); }
  .workspace--overview .app-chat-user-text { display: block; }

  /* ── Rigor: review flags ── */
  .workspace--overview .app-chat-review { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 2px; }
  .workspace--overview .rev-row { display: flex; gap: 9px; align-items: flex-start; }
  .workspace--overview .rev-tag {
    flex-shrink: 0; font-size: 9px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 3px; margin-top: 1px;
  }
  .workspace--overview .rev-tag--warn { background: rgba(179,70,70,0.10); color: #b34646; }
  .workspace--overview .rev-body { min-width: 0; }
  .workspace--overview .rev-claim { font-size: 11.5px; color: var(--ap-ink); font-style: italic; margin-bottom: 2px; }
  .workspace--overview .rev-note { font-size: 11px; line-height: 1.55; color: var(--ap-ink2); }

  /* ── Proposed manuscript edit (tracked-changes diff, Apply/Discard) ── */
  .workspace--overview .app-chat-proposal {
    border: 1px solid rgba(91,79,207,0.22); background: rgba(91,79,207,0.04);
    border-radius: 2px; padding: 10px 12px; margin: 6px 0 2px;
  }
  .workspace--overview .prop-head {
    display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600;
    letter-spacing: 0.04em; text-transform: uppercase; color: var(--ap-ink3); margin-bottom: 8px;
  }
  .workspace--overview .prop-body { font-size: 11.5px; line-height: 1.6; color: var(--ap-ink); }
  .workspace--overview .prop-del { color: #b34646; text-decoration: line-through; text-decoration-thickness: 1px; }
  .workspace--overview .prop-ins { color: #0f6f53; text-decoration: underline; text-decoration-color: rgba(26,158,117,0.4); }
  .workspace--overview .prop-acts { display: flex; gap: 8px; margin-top: 10px; }
  .workspace--overview .prop-btn {
    font-size: 10.5px; padding: 4px 12px; border-radius: 3px; border: 1px solid rgba(15,14,17,0.12);
    color: var(--ap-ink2); background: #fff;
  }
  .workspace--overview .prop-btn--apply { background: var(--ap-violet); border-color: var(--ap-violet); color: #fff; }

  /* ── Fault Line: contradiction card + reconciliation table ── */
  .workspace--overview .app-chat-conflict {
    border: 1px solid rgba(179,70,70,0.20); background: rgba(179,70,70,0.035);
    border-radius: 2px; padding: 10px 12px; margin: 6px 0 2px;
  }
  .workspace--overview .conf-head { font-size: 11px; font-weight: 600; color: var(--ap-ink); margin-bottom: 8px; }
  .workspace--overview .conf-badge {
    font-size: 9px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 3px; background: rgba(179,70,70,0.12); color: #b34646; margin-right: 7px;
  }
  .workspace--overview .conf-quote { padding: 6px 0; border-top: 1px solid rgba(15,14,17,0.06); }
  .workspace--overview .conf-quote:first-of-type { border-top: none; }
  .workspace--overview .conf-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
  .workspace--overview .conf-in { font-size: 9.5px; color: #0f6f53; }
  .workspace--overview .conf-quote p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--ap-ink2); font-style: italic; }
  .workspace--overview .app-chat-recon { margin: 6px 0 2px; overflow-x: auto; }
  .workspace--overview .app-chat-recon table { border-collapse: collapse; }
  .workspace--overview .app-chat-recon th {
    text-align: left; font-size: 10.5px; font-weight: 600; color: var(--ap-ink);
    padding: 4px 18px 6px 0; border-bottom: 1px solid var(--border2, rgba(15,14,17,0.08)); white-space: nowrap;
  }
  .workspace--overview .app-chat-recon td {
    text-align: left; font-size: 10.5px; color: var(--ap-ink2);
    padding: 6px 18px 6px 0; border-bottom: 1px solid var(--border2, rgba(15,14,17,0.08)); white-space: nowrap;
  }
  .workspace--overview .app-chat-recon td:first-child { color: var(--ap-ink3); }
  .workspace--overview .app-chat-recon tbody tr:last-child td { border-bottom: none; }

  /* Send button pulse when a query "sends". */
  .workspace--overview .app-chat-send.is-pulse { animation: wsDemoPulse 0.36s ease; }
  @keyframes wsDemoPulse {
    0% { transform: scale(1); }
    45% { transform: scale(0.9); }
    100% { transform: scale(1); }
  }

  /* Click feedback (no cursor): the "Add Source" button presses down, and the
     paper card flashes as it is clicked to open the reader. */
  .workspace--overview .ws-topbar-action.ws-press { animation: wsDemoPress 0.34s ease; }
  @keyframes wsDemoPress {
    0% { transform: scale(1); filter: brightness(1); }
    45% { transform: scale(0.93); filter: brightness(0.9); }
    100% { transform: scale(1); filter: brightness(1); }
  }
  .workspace--overview .paper-row.ws-press-card { animation: wsDemoPressCard 0.5s ease; border-radius: 4px; }
  @keyframes wsDemoPressCard {
    0% { background: rgba(15,14,17,0); }
    30% { background: rgba(15,14,17,0.045); }
    100% { background: rgba(15,14,17,0); }
  }

  /* Feed fades out between loop iterations. */
  .workspace--overview .app-chat-feed.is-out {
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  @media (prefers-reduced-motion: reduce) {
    .workspace--overview .ws-demo-in {
      opacity: 1;
      transform: none;
      transition: none;
    }
    .workspace--overview .ws-demo-think { display: none; }
    .workspace--overview .ws-demo-dots span { animation: none; opacity: 0.6; }
  }

  /* ────────────────────────────────────────────────────────────────────
     Library feature section, header + two cards (Library page / PDF reader)
     ──────────────────────────────────────────────────────────────────── */
  .libfeat {
    max-width: 1320px;
    margin: 0 auto;
    padding: 104px 24px 96px;
    box-sizing: border-box;
  }
  .libfeat-head {
    display: grid;
    grid-template-columns: 200px 1fr 0.82fr;
    gap: 44px;
    align-items: center;
    margin-bottom: 40px;
  }
  .libfeat-stage {
    position: relative;
    width: 150px;
    height: 150px;
    justify-self: center;
    --mosaic-tile: 34px;
    --mosaic-step: 43px;
    --mosaic-scatter: 108px;
  }
  .libfeat-stage .assembly-tile { box-shadow: none; }
  .libfeat-lede { align-self: center; }
  .libfeat-eyebrow {
    font: 600 12.5px var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--violet);
    margin: 0 0 16px;
  }
  .libfeat-title {
    font: 400 46px/1.04 var(--serif);
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 26px;
  }
  /* Desktop: forces "Your daily / digest" onto two lines. On mobile this
     becomes a normal space (see the mobile block) so it reads on one line. */
  .ttl-break::before { content: "\A"; white-space: pre; }
  .libfeat-cta {
    display: inline-flex;
    align-items: center;
    font: 500 14px var(--sans);
    color: #fff;
    background: var(--violet);
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 2px;
    white-space: nowrap;
    transition: opacity .15s;
  }
  .libfeat-cta:hover { opacity: 0.88; }
  .libfeat-lede {
    font: 400 18px/1.6 var(--sans);
    color: var(--ink2);
    margin: 6px 0 0;
    max-width: 470px;
    text-wrap: pretty;
  }

  /* Dashed import box above the cards */
  .libimport {
    margin: 0 0 28px;
    padding: 38px 32px;
    border: 1.5px dashed rgba(91,79,207,0.34);
    border-radius: 18px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .libimport-ico {
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--violet);
  }
  .libimport-ico svg { width: 26px; height: 26px; }
  .libimport-title {
    font: 600 16px var(--sans);
    color: var(--ink);
    margin: 2px 0 0;
  }
  .libimport-text {
    font: 400 15px/1.6 var(--sans);
    color: var(--ink2);
    margin: 0;
    max-width: 580px;
    text-wrap: pretty;
  }

  .libfeat-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .libfeat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 620px;
    padding: 40px;
    border-radius: 24px;
    box-sizing: border-box;
    overflow: hidden;
    color: var(--ink);
    /* Clear frosted-glass material: faint body, a bright inner rim and sheen. */
    background:
      linear-gradient(155deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 50%, rgba(238,233,255,0.07) 100%);
    -webkit-backdrop-filter: blur(4px) saturate(130%);
    backdrop-filter: blur(4px) saturate(130%);
    border: 1px solid rgba(60,52,110,0.08);
    box-shadow:
      inset 0 1px 1px rgba(255,255,255,0.45),
      inset 0 0 0 1px rgba(60,52,110,0.03),
      inset 0 -16px 34px rgba(60,52,110,0.03);
  }
  /* top-left specular sheen on the glass material */
  .libfeat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
      linear-gradient(125deg, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,0) 82%, rgba(255,255,255,0.12) 100%),
      radial-gradient(72% 38% at 18% -8%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 60%);
    z-index: 3;
  }
  .libfeat-card--feature {
    color: var(--ink);
  }
  .libfeat-card--light {
    color: var(--ink);
  }
  .libfeat-card-eyebrow {
    display: block;
    font: 600 11.5px var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin: 0 0 9px;
  }
  .libfeat-card--feature .libfeat-card-eyebrow { color: var(--violet); }
  .libfeat-card--light .libfeat-card-eyebrow { color: var(--violet); }
  .libfeat-card-title {
    font: 400 27px/1.12 var(--serif);
    letter-spacing: -0.01em;
    margin: 0;
  }
  .libfeat-card--light .libfeat-card-title { color: var(--ink); }
  .libfeat-card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 30px 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 18px 46px rgba(15,14,17,0.13), 0 4px 12px rgba(15,14,17,0.07);
  }
  .libfeat-card--light .libfeat-card-visual {
    box-shadow: 0 14px 38px rgba(15,14,17,0.09), 0 3px 10px rgba(15,14,17,0.04);
    border: 1px solid var(--border2);
  }
  .libfeat-shot {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    height: auto;
  }
  /* Library: show the full list view (tabs + table), no crop */
  .libfeat-card--feature .libfeat-card-visual {
    aspect-ratio: 1992 / 1374;
  }
  .libfeat-card--feature .libfeat-shot {
    width: 100%;
    top: 0;
  }

  /* Library card: two layered views (list + table) so it reads as "2 views" */
  .libfeat-views {
    position: relative;
    margin-top: 14px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: none;
  }
  .libfeat-card--feature .libfeat-views { box-shadow: none; }
  .libfeat-view {
    position: absolute;
    width: 74%;
    aspect-ratio: 4 / 3;
    margin: 0;
    border-radius: 11px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 16px 42px rgba(15,14,17,0.16), 0 4px 12px rgba(15,14,17,0.08);
  }
  .libfeat-view img {
    position: absolute;
    display: block;
    width: 100%;
    height: auto;
  }
  /* Zoom into the top of each library screenshot; windows bleed off the bottom */
  .libfeat-view--back img { top: 0; left: 0; width: 200%; }
  .libfeat-view--front img { top: 0; left: 0; width: 200%; }
  .libfeat-view--back {
    top: 22%;
    left: 3%;
    right: auto;
    bottom: auto;
    width: 60%;
    height: 130%;
    aspect-ratio: auto;
    transform: none;
    z-index: 1;
  }
  .libfeat-view--front {
    top: 8%;
    right: -2%;
    left: auto;
    bottom: auto;
    width: 62%;
    height: 135%;
    aspect-ratio: auto;
    transform: none;
    z-index: 2;
  }
  /* PDF reader: zoom into the article title + Assistant answer (centre-right) */
  .libfeat-card--light .libfeat-card-visual {
    aspect-ratio: 1710 / 1096;
  }
  /* Both library visuals flex to fill the card and center their 16:9 media,
     so the caption pins to the bottom, same formatting as the documents cards. */
  #library-feature .libfeat-card-visual {
    aspect-ratio: auto;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border: 0;
    background: transparent;
    overflow: visible;
  }
  #library-feature .libfeat-views {
    width: 100%;
    margin: 0;
    aspect-ratio: 16 / 10.5;
  }
  /* Match the PDF reader video box to the inline-citations video size */
  #library-feature .libfeat-card--light .docvideo {
    aspect-ratio: 16 / 10.5;
  }
  .libfeat-card--light .libfeat-shot {
    width: 100%;
    left: 0;
    top: 0;
  }
  .libfeat-card-cap {
    margin: 0;
    font: 400 15px/1.55 var(--sans);
    max-width: 420px;
    text-wrap: pretty;
  }
  .libfeat-card--feature .libfeat-card-cap { color: var(--ink2); }
  .libfeat-card--light .libfeat-card-cap { color: var(--ink2); }

  /* ── Library page mock (in the feature card) ── */
  .lib2-win {
    width: 100%;
    max-width: 392px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15,14,17,0.28), 0 4px 12px rgba(15,14,17,0.14);
    overflow: hidden;
    font-family: var(--sans);
    color: var(--ink);
  }
  .lib2-win-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border2);
  }
  .lib2-win-title { font-family: var(--serif); font-size: 18px; }
  .lib2-win-add {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 500; color: #fff;
    background: var(--violet); padding: 5px 11px; border-radius: 7px;
  }
  .lib2-plus { font-size: 13px; line-height: 1; margin-top: -1px; }
  .lib2-tabs {
    display: flex; gap: 18px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border2);
    font-size: 11.5px; color: var(--ink3);
  }
  .lib2-tab em { font-style: normal; opacity: 0.6; margin-left: 2px; }
  .lib2-tab.on { color: var(--violet); font-weight: 500; }
  .lib2-tab.on em { opacity: 1; }
  .lib2-list { padding: 2px 16px 6px; }
  .lib2-paper { padding: 13px 0; border-bottom: 1px solid var(--border2); }
  .lib2-paper:last-child { border-bottom: 0; }
  .lib2-paper-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
  .lib2-badge { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
  .lib2-badge--pubmed { background: #e6f4ea; color: #1a7e4a; }
  .lib2-badge--arxiv { background: #fbe9e7; color: #c0392b; }
  .lib2-badge--key { background: var(--violet-light); color: var(--violet); }
  .lib2-yr { font-size: 10px; color: var(--ink3); }
  .lib2-paper-title { font-size: 13px; font-weight: 600; line-height: 1.32; margin-bottom: 4px; }
  .lib2-paper-auth { font-size: 11px; color: var(--ink3); }
  .lib2-paper-auth em { font-style: italic; }

  /* ── PDF reader mock (in the light card) ── */
  .lib2-pdf {
    width: 100%;
    max-width: 404px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15,14,17,0.12), 0 3px 10px rgba(15,14,17,0.06);
    overflow: hidden;
    font-family: var(--sans);
    color: var(--ink);
  }
  .lib2-pdf-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border2);
    font-size: 11px; color: var(--ink2);
  }
  .lib2-pdf-name em { font-style: italic; color: var(--ink3); }
  .lib2-pdf-pg { font-size: 10.5px; color: var(--ink3); }
  .lib2-pdf-page { padding: 20px 22px 22px; }
  .lib2-pdf-h { font-family: var(--serif); font-size: 15px; margin-bottom: 11px; color: var(--ink); }
  .lib2-pdf-p { font-size: 11.5px; line-height: 1.75; color: var(--ink2); margin: 0 0 12px; }
  .lib2-pdf-p mark {
    background: rgba(91,79,207,0.16);
    color: var(--ink);
    padding: 0 2px;
    border-radius: 2px;
    box-shadow: inset 0 -2px 0 rgba(91,79,207,0.45);
  }
  .lib2-note {
    background: var(--violet-light);
    border: 1px solid rgba(91,79,207,0.14);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--ink2);
  }
  .lib2-note-label {
    display: block;
    font-size: 9px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 3px;
  }

  /* ── Tasks feature: one large interactive kanban board ── */
  .taskfeat {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 24px 104px;
    box-sizing: border-box;
  }
  .taskfeat-head { max-width: 760px; margin: 0 0 38px; }
  .taskfeat-eyebrow {
    font: 600 12.5px var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--violet);
    margin: 0 0 16px;
  }
  .taskfeat-title {
    font: 400 46px/1.04 var(--serif);
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 18px;
  }
  .taskfeat-lede {
    font: 400 18px/1.6 var(--sans);
    color: var(--ink2);
    margin: 0;
    max-width: 580px;
    text-wrap: pretty;
  }
  .kanban-wrap {
    position: relative;
    border-radius: 24px;
    padding: 24px;
    background:
      linear-gradient(155deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 50%, rgba(238,233,255,0.07) 100%);
    -webkit-backdrop-filter: blur(4px) saturate(130%);
    backdrop-filter: blur(4px) saturate(130%);
    border: 1px solid rgba(60,52,110,0.08);
    box-shadow:
      inset 0 1px 1px rgba(255,255,255,0.45),
      inset 0 0 0 1px rgba(60,52,110,0.03),
      inset 0 -16px 34px rgba(60,52,110,0.03);
  }
  .kanban-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
      linear-gradient(125deg, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,0) 82%, rgba(255,255,255,0.12) 100%),
      radial-gradient(72% 38% at 18% -8%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 60%);
    z-index: 0;
  }
  .kanban { position: relative; z-index: 1; }
  .kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start;
  }
  .kanban-col {
    background: rgba(247,244,237,0.6);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 16px 14px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    transition: background .15s, border-color .15s;
  }
  .kanban-col.drag-over {
    background: rgba(15,14,17,0.025);
    border-color: var(--border2);
  }
  .kanban-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 13px;
  }
  .kanban-col-title {
    font: 600 12px var(--sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink3);
  }
  .kanban-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 500 12px var(--sans);
    color: var(--ink3);
    background: #fff;
    border: 1px solid var(--border2);
    border-radius: 4px;
  }
  .kanban-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 40px;
  }
  .kanban-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border2);
    border-radius: 6px;
    padding: 14px 14px 13px;
    box-shadow: 0 1px 2px rgba(15,14,17,0.04);
    cursor: grab;
    transition: box-shadow .15s, transform .05s;
  }
  .kanban-card:hover { box-shadow: 0 8px 22px rgba(15,14,17,0.10); }
  .kanban-card:active { cursor: grabbing; }
  .kanban-card.dragging { opacity: 0.45; }
  .kanban-card-title {
    font: 500 14.5px/1.4 var(--sans);
    color: var(--ink);
    padding-right: 16px;
  }
  .kanban-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 11px;
  }
  .kanban-pill {
    font: 600 12px var(--sans);
    border-radius: 4px;
    padding: 3px 9px;
    cursor: pointer;
    user-select: none;
  }
  .kanban-pill--low  { background: var(--paper2); color: var(--ink3); }
  .kanban-pill--med  { background: var(--violet-light); color: var(--violet); }
  .kanban-pill--high { background: rgba(201,64,64,0.10); color: #c94040; }
  .kanban-due { font: 400 13px var(--sans); color: var(--ink3); }
  .kanban-due--soon { color: #c94040; }
  .kanban-card-del {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: 0;
    background: transparent;
    color: var(--ink3);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    border-radius: 5px;
    transition: opacity .12s, background .12s;
  }
  .kanban-card:hover .kanban-card-del { opacity: 1; }
  .kanban-card-del:hover { background: var(--paper2); color: var(--ink); }
  .kanban-add {
    margin-top: 10px;
    font: 500 13px var(--sans);
    color: var(--ink3);
    cursor: default;
    pointer-events: none;
    padding: 7px 4px;
    border-radius: 7px;
  }
  .kanban-add-input {
    width: 100%;
    resize: none;
    font: 500 14px/1.4 var(--sans);
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(91,79,207,0.4);
    border-radius: 6px;
    padding: 12px;
    margin-top: 2px;
    outline: none;
    box-shadow: 0 4px 14px rgba(91,79,207,0.12);
  }
  @media (max-width: 880px) {
    .taskfeat { padding: 24px 20px 64px; }
    .taskfeat-title { font-size: 36px; }
    /* Keep all three columns side-by-side, just tighter, so the board reads
       as a board on mobile instead of a single stacked list. */
    .kanban { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .kanban-wrap { padding: 14px 12px; }
    .kanban-col { min-height: 0; padding: 9px 7px; border-radius: 12px; }
    .kanban-col-head { padding: 1px 2px 9px; }
    .kanban-col-title { font-size: 10px; letter-spacing: 0.04em; }
    .kanban-count { min-width: 18px; height: 18px; font-size: 11px; }
    .kanban-list { gap: 7px; }
    .kanban-card { padding: 9px 9px; border-radius: 9px; }
    .kanban-card-title { font-size: 12px; padding-right: 4px; }
    .kanban-card-meta { gap: 6px; margin-top: 8px; flex-wrap: wrap; }
    .kanban-pill { font-size: 10px; padding: 2px 5px; }
    .kanban-due { font-size: 11px; }
    .kanban-card-del { display: none; }
    .kanban-add { font-size: 11px; margin-top: 7px; }
  }

  /* ── Assistant: interactive chatbot ── */
  .askbot-wrap {
    position: relative;
    width: 100%;
    margin-top: 52px;
    border-radius: 24px;
    padding: 36px 32px 80px;
    background:
      linear-gradient(155deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 50%, rgba(238,233,255,0.07) 100%);
    -webkit-backdrop-filter: blur(4px) saturate(130%);
    backdrop-filter: blur(4px) saturate(130%);
    border: 1px solid rgba(60,52,110,0.08);
    box-shadow:
      inset 0 1px 1px rgba(255,255,255,0.45),
      inset 0 0 0 1px rgba(60,52,110,0.03),
      inset 0 -16px 34px rgba(60,52,110,0.03);
  }
  .askbot-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
      linear-gradient(125deg, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,0) 82%, rgba(255,255,255,0.12) 100%),
      radial-gradient(72% 38% at 18% -8%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 60%);
  }
  .askbot { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 360px; }
  .askbot-intro { text-align: center; padding: 24px 0 0; }
  .askbot-mark {
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--violet);
  }
  .askbot-h { font: 400 42px/1.06 var(--serif); letter-spacing: -0.015em; color: var(--ink); margin-top: 18px; }
  .askbot-feed { display: none; flex-direction: column; gap: 18px; padding: 4px 2px; max-width: 760px; width: 100%; margin: 0 auto; }
  .askbot.is-active .askbot-intro { display: none; }
  .askbot.is-active .askbot-try { display: none; }
  .askbot.is-active .askbot-feed { display: flex; flex: 1; overflow-y: auto; min-height: 280px; max-height: 560px; margin-bottom: 18px; }
  .askbot-composer {
    width: 100%; max-width: 760px; margin: 26px auto 0;
    border: 1px solid var(--border2); border-radius: 18px; background: #fff;
    padding: 18px 18px 12px;
    box-shadow: 0 10px 36px rgba(15,14,17,0.07), 0 1px 2px rgba(15,14,17,0.04);
  }
  .askbot.is-active .askbot-composer { margin-top: 0; }
  .askbot-composer textarea {
    width: 100%; border: 0; outline: 0; resize: none; background: transparent;
    font: 400 18px/1.5 var(--sans); color: var(--ink); min-height: 62px;
  }
  .askbot-composer textarea::placeholder { color: var(--ink3); }
  .askbot-bar { display: flex; align-items: center; gap: 18px; margin-top: 8px; color: var(--ink3); }
  .askbot-bar-spacer { flex: 1; }
  .askbot-ico { display: inline-flex; cursor: pointer; }
  .askbot-ico svg { width: 21px; height: 21px; }
  .askbot-send {
    width: 48px; height: 48px; border: 0; border-radius: 6px; cursor: pointer;
    background: var(--violet); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: opacity .15s;
  }
  .askbot-send svg { width: 21px; height: 21px; }
  .askbot-send:hover { opacity: 0.88; }
  .askbot-try { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; max-width: 760px; width: 100%; margin: 20px auto 0; }
  .askbot-try-label { display: inline-flex; align-items: center; gap: 8px; font: 500 15px var(--sans); color: var(--ink); }
  .askbot-try-label svg { color: var(--violet); }
  .askbot-chip {
    font: 400 15px var(--sans); color: var(--ink); background: #fff;
    border: 1px solid var(--border2); border-radius: 10px; padding: 11px 16px;
    cursor: pointer; transition: border-color .15s, color .15s; text-align: left;
  }
  .askbot-chip:hover { border-color: rgba(91,79,207,0.5); color: var(--violet); }
  .askbot-msg--user {
    align-self: flex-end; max-width: 80%;
    background: var(--paper2); border-radius: 15px; padding: 11px 16px;
    font: 400 15px/1.5 var(--sans); color: var(--ink);
  }
  .askbot-msg--asst {
    align-self: flex-start; max-width: 90%;
    font: 400 15px/1.6 var(--sans); color: var(--ink2);
  }
  .askbot-msg--asst strong { color: var(--ink); font-weight: 600; }
  .askbot-msg--asst em { font-style: italic; }
  .askbot-think { align-self: flex-start; display: inline-flex; gap: 5px; padding: 4px 2px; }
  .askbot-think span { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-mid); opacity: 0.5; animation: askbotDot 1.1s ease-in-out infinite; }
  .askbot-think span:nth-child(2) { animation-delay: 0.18s; }
  .askbot-think span:nth-child(3) { animation-delay: 0.36s; }
  @keyframes askbotDot { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
  /* ── Animation mode (self-playing, non-interactive) ── */
  .askbot.is-anim .askbot-composer textarea,
  .askbot.is-anim .askbot-chip,
  .askbot.is-anim .askbot-ico,
  .askbot.is-anim .askbot-send { cursor: default; }
  .askbot.is-anim .askbot-composer textarea { caret-color: transparent; }
  /* Chip the animation is currently "picking". */
  .askbot-chip.is-active { border-color: rgba(91,79,207,0.5); color: var(--violet); background: var(--paper2); }
  /* Send button pulse on dispatch. */
  .askbot-send.is-pulse { animation: askbotPulse 0.36s ease; }
  @keyframes askbotPulse { 0% { transform: scale(1); } 45% { transform: scale(0.9); } 100% { transform: scale(1); } }
  /* User bubble entrance. */
  .askbot-msg--in { animation: askbotMsgIn 0.34s cubic-bezier(0.22,0.61,0.36,1) both; }
  @keyframes askbotMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  /* Streaming cursor for the assistant answer. */
  .askbot-cursor { display: inline-block; width: 8px; height: 1.05em; vertical-align: -0.16em; margin-left: 2px; border-radius: 1px; background: var(--violet); opacity: 0.85; animation: askbotBlink 0.9s steps(1) infinite; }
  @keyframes askbotBlink { 0%, 50% { opacity: 0.85; } 51%, 100% { opacity: 0; } }
  /* Feed fade-out between loops. */
  .askbot-feed.is-out { opacity: 0; transform: translateY(-6px); transition: opacity 0.4s ease, transform 0.4s ease; }
  /* ── Artifacts produced by the assistant ── */
  .bot-art { 
    align-self: flex-start; width: 100%; max-width: 640px; margin-top: 2px;
    border: 1px solid var(--border2); border-radius: 14px; background: #fff; overflow: hidden;
    box-shadow: 0 8px 26px rgba(15,14,17,0.06), 0 1px 2px rgba(15,14,17,0.04);
    animation: botArtIn 0.5s cubic-bezier(0.22,0.61,0.36,1) both;
  }
  .bot-art.bot-table { max-width: 100%; }
  @keyframes botArtIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .bot-art-head {
    display: flex; align-items: center; gap: 8px; padding: 11px 16px;
    border-bottom: 1px solid var(--border2); background: var(--paper2);
    font: 500 12.5px/1 var(--sans); letter-spacing: 0.02em; color: var(--ink2); text-transform: none;
  }
  .bot-art-head svg { color: var(--violet); flex: none; }
  /* Comparison table */
  .bot-table .bot-art-body { overflow-x: auto; }
  .bot-table table { width: 100%; border-collapse: collapse; font: 400 13.5px/1.5 var(--sans); }
  .bot-table th { text-align: left; font: 600 12px var(--sans); color: var(--ink); padding: 9px 14px; border-bottom: 1px solid var(--border2); white-space: nowrap; }
  .bot-table td { padding: 10px 14px; border-bottom: 1px solid var(--border2); color: var(--ink2); vertical-align: top; }
  .bot-table tbody tr:last-child td { border-bottom: 0; }
  .bot-table td:first-child, .bot-table th:first-child { color: var(--ink); font-weight: 500; }
  .bot-table tbody tr { opacity: 0; animation: botRowIn 0.42s ease forwards; }
  .bot-table tbody tr:nth-child(1) { animation-delay: 0.16s; }
  .bot-table tbody tr:nth-child(2) { animation-delay: 0.28s; }
  .bot-table tbody tr:nth-child(3) { animation-delay: 0.40s; }
  .bot-table tbody tr:nth-child(4) { animation-delay: 0.52s; }
  .bot-table tbody tr:nth-child(5) { animation-delay: 0.64s; }
  .bot-table tbody tr:nth-child(6) { animation-delay: 0.76s; }
  @keyframes botRowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  /* Outline */
  .bot-outline .bot-art-body { padding: 14px 18px 16px; }
  .bot-outline ol { margin: 0; padding-left: 20px; font: 500 14px/1.6 var(--sans); color: var(--ink); }
  .bot-outline ol > li { margin-bottom: 9px; padding-left: 4px; }
  .bot-outline ol > li::marker { color: var(--violet); font-weight: 600; }
  .bot-outline ul { margin: 5px 0 0; padding-left: 16px; list-style: disc; }
  .bot-outline ul li { font: 400 13px/1.55 var(--sans); color: var(--ink2); margin-bottom: 3px; }
  /* Drafted document */
  .bot-doc-body { margin: 0; padding: 16px 20px 18px; font: 400 15px/1.7 var(--serif); color: var(--ink2); }
  .bot-doc-body em { font-style: italic; color: var(--ink); }
  @media (max-width: 880px) {
    .bot-art { max-width: 100%; }
    .bot-table table { font-size: 12.5px; }
    .bot-table th, .bot-table td { padding: 8px 11px; }
  }
  /* ── Context picker popover ── */
  .askbot-composer { position: relative; }
  .askbot-picker {
    position: absolute; left: 8px; bottom: calc(100% + 10px);
    width: 380px; max-width: calc(100% - 16px);
    background: #fff; border: 1px solid var(--border2); border-radius: 14px;
    box-shadow: 0 22px 54px rgba(15,14,17,0.18), 0 4px 12px rgba(15,14,17,0.07);
    padding: 9px; z-index: 8; transform-origin: bottom left;
    animation: pickIn 0.26s cubic-bezier(0.22,0.61,0.36,1) both;
  }
  .askbot-picker.is-closing { animation: pickOut 0.2s ease forwards; }
  @keyframes pickIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
  @keyframes pickOut { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
  .pick-tabs { display: flex; gap: 5px; background: var(--paper2); border-radius: 10px; padding: 3px; }
  .pick-tab {
    flex: 1; border: 0; background: transparent; border-radius: 7px; padding: 7px 10px; cursor: default;
    font: 500 13px var(--sans); color: var(--ink3);
    display: flex; align-items: center; justify-content: center; gap: 7px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  }
  .pick-tab span { font-weight: 400; color: var(--ink3); }
  .pick-tab.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,14,17,0.12); }
  .pick-tab.is-on span { color: var(--ink2); }
  .pick-search {
    display: flex; align-items: center; gap: 9px; margin-top: 7px;
    padding: 8px 12px; border-radius: 10px; background: var(--paper2);
    color: var(--ink3); font: 400 13px var(--sans);
  }
  .pick-search svg { color: var(--ink3); flex: none; width: 15px; height: 15px; }
  .pick-list { margin-top: 4px; max-height: 158px; overflow-y: auto; }
  .pick-row { display: flex; align-items: center; gap: 11px; padding: 8px 8px; border-radius: 9px; transition: background 0.15s; }
  .pick-ico { flex: none; width: 20px; height: 20px; color: var(--violet-mid); display: flex; align-items: center; justify-content: center; }
  .pick-ico.is-gdoc { color: #4285F4; }
  .pick-meta { flex: 1; min-width: 0; }
  .pick-title { font: 500 13.5px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pick-sub { font: 400 11.5px var(--sans); color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
  .pick-check {
    flex: none; width: 18px; height: 18px; border: 1.6px solid rgba(60,52,110,0.25);
    border-radius: 5px; display: flex; align-items: center; justify-content: center;
    color: #fff; transition: background 0.15s, border-color 0.15s;
  }
  .pick-row.is-hot { background: var(--paper2); }
  .pick-row.is-sel { background: var(--paper2); }
  .pick-row.is-sel .pick-check { background: var(--violet); border-color: var(--violet); }
  /* ── Context chips (composer + user bubble) ── */
  .askbot-ctx { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
  .ctx-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px;
    border-radius: 9px; background: var(--paper2); border: 1px solid var(--border2);
    font: 500 13px var(--sans); color: var(--ink); max-width: 230px;
    animation: ctxIn 0.24s cubic-bezier(0.22,0.61,0.36,1) both;
  }
  @keyframes ctxIn { from { opacity: 0; transform: translateY(4px) scale(0.94); } to { opacity: 1; transform: none; } }
  .ctx-chip svg { color: var(--violet); flex: none; }
  .ctx-chip.is-gdoc svg { color: #4285F4; }
  .ctx-chip-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ctx-chip-more { color: var(--ink2); }
  .askbot-msg--user .ctx-chip { background: #fff; }
  .askbot-utext { display: block; }
  /* ── Document-edit (diff) artifact ── */
  .bot-edit .bot-art-body { padding: 16px 18px; font: 400 14.5px/1.9 var(--sans); color: var(--ink2); }
  .bot-edit del { text-decoration: line-through; text-decoration-thickness: 1.5px; color: oklch(0.55 0.14 25); background: oklch(0.94 0.045 25); border-radius: 3px; padding: 0 2px; }
  .bot-edit ins { text-decoration: none; color: oklch(0.46 0.11 150); background: oklch(0.93 0.05 150); border-radius: 3px; padding: 0 2px; }
  .bot-edit em { font-style: italic; }
  .bot-edit-foot {
    display: flex; align-items: center; gap: 8px; padding: 11px 16px;
    border-top: 1px solid var(--border2); background: var(--paper2);
    font: 500 12.5px var(--sans); color: var(--ink2);
  }
  .bot-edit-foot svg { color: oklch(0.55 0.11 150); flex: none; }
  @media (max-width: 880px) {
    .askbot-picker { left: 0; }
    .bot-edit .bot-art-body { font-size: 13.5px; line-height: 1.85; }
  }
  @media (max-width: 880px) {
    .askbot-h { font-size: 30px; }
    /* Widen the composer bubble: trim the glass wrapper's side padding so the
       card stretches closer to the screen edges. */
    .askbot-wrap { padding: 26px 14px 56px; border-radius: 20px; }
    /* Long, compact composer: drop the tall 62px textarea so the box hugs its
       text instead of leaving a big empty block below the placeholder. */
    .askbot-composer { padding: 14px 16px 9px; }
    .askbot-composer textarea { font-size: 16px; min-height: 24px; line-height: 1.4; }
    .askbot-bar { margin-top: 4px; gap: 14px; }
    .askbot-ico svg { width: 17px; height: 17px; }
    .askbot-send { width: 34px; height: 34px; border-radius: 8px; }
    .askbot-send svg { width: 16px; height: 16px; }
  }

  /* ── Briefings feature: two glass cards with mock panels ── */
  .brieffeat .libfeat-card-visual {
    aspect-ratio: auto;
    flex: 1;
    min-height: 0;
    margin: 26px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .brieffeat .libfeat-card--light .libfeat-card-visual { box-shadow: none; border: 0; }
  .brief-mock {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 20px 20px 18px;
    box-shadow: 0 14px 38px rgba(15,14,17,0.10), 0 3px 10px rgba(15,14,17,0.05);
    text-align: left;
  }
  .brief-mock-eyebrow { font: 600 10.5px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet); margin-bottom: 11px; }
  .brief-mock-title { font: 600 16px/1.35 var(--sans); color: var(--ink); margin: 0 0 9px; }
  .brief-mock-meta { font: 400 12.5px/1.5 var(--sans); color: var(--ink3); margin-bottom: 11px; }
  .brief-mock-meta strong { color: var(--ink2); font-weight: 600; }
  .brief-mock-meta em { font-style: italic; }
  .brief-mock-abs { font: 400 13px/1.55 var(--sans); color: var(--ink2); margin: 0 0 13px; }
  .brief-mock-why { display: flex; align-items: center; gap: 8px; font: 500 12px var(--sans); color: var(--ink2); background: var(--violet-light); border-radius: 7px; padding: 8px 11px; margin-bottom: 14px; }
  .brief-mock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); flex-shrink: 0; }
  .brief-mock-acts { display: flex; align-items: center; gap: 10px; }
  .brief-mock-save { font: 600 12.5px var(--sans); white-space: nowrap; color: #fff; background: var(--violet); border-radius: 7px; padding: 8px 14px; }
  .brief-mock-dismiss { font: 500 12.5px var(--sans); color: var(--ink3); padding: 8px 6px; }
  .brief-stack { position: relative; width: 100%; max-width: 460px; height: 340px; }
  .brief-list { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
  .brief-paper { padding: 9px 2px; border-bottom: 1px solid var(--border2); }
  .brief-paper:last-child { border-bottom: 0; }
  .brief-paper-title { font: 600 13px/1.3 var(--sans); color: var(--ink); margin-bottom: 5px; }
  .brief-paper-line { font: 400 11.5px/1.45 var(--sans); color: var(--ink2); }
  .brief-paper-line strong { font-weight: 600; color: var(--ink); }
  .brief-paper-line em { font-style: italic; }
  .brief-paper-year { color: var(--ink3); margin: 0 7px; }
  .brief-paper-link { color: var(--violet); }
  .brief-paper-abs {
    font: 400 11.5px/1.45 var(--sans);
    color: var(--ink2);
    margin: 4px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .brief-paper-overview { display: inline-block; margin-top: 5px; font: 500 11.5px var(--sans); color: var(--violet); }
  .brief-paper-acts { display: flex; gap: 8px; margin-top: 7px; }
  .brief-bact { font: 600 11.5px var(--sans); border-radius: 5px; padding: 5px 11px; }
  .brief-bact--save { color: var(--violet); background: var(--violet-light); }
  .brief-bact--dismiss { color: var(--ink2); background: transparent; border: 1px solid var(--border2); }
  /* Briefing save flow: a Save press, a "Saved" success state, and topic tags
     that pop into the sidebar as they're learned from the saved paper. */
  .workspace--overview .brief-bact { transition: background 0.15s ease, color 0.15s ease; }
  .workspace--overview .brief-bact.ws-press { animation: wsDemoPress 0.34s ease; }
  .workspace--overview .brief-bact--save.is-saved { color: #0f6f53; background: rgba(26,158,117,0.10); }
  .workspace--overview .brief-tag--in { animation: briefTagIn 0.36s cubic-bezier(0.22,0.61,0.36,1) both; }
  @keyframes briefTagIn { from { opacity: 0; transform: translateY(4px) scale(0.9); } to { opacity: 1; transform: none; } }

  .brief-notif {
    position: absolute;
    top: 4px;
    left: 50%;
    z-index: 2;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: calc(100% - 14px);
    max-width: 360px;
    padding: 11px 13px;
    border-radius: 18px;
    transform: translateX(-50%) translateY(-170%);
    opacity: 0;
    transition: transform .55s cubic-bezier(.16,1,.3,1), opacity .35s ease;
    background:
      linear-gradient(155deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.86) 100%);
    -webkit-backdrop-filter: blur(7px) saturate(115%);
    backdrop-filter: blur(7px) saturate(115%);
    border: 1px solid rgba(15,14,17,0.07);
    box-shadow:
      0 14px 36px rgba(15,14,17,0.10),
      inset 0 1px 1px rgba(255,255,255,0.55);
  }
  .brief-notif.is-shown { transform: translateX(-50%) translateY(0); opacity: 1; }
  @media (prefers-reduced-motion: reduce) { .brief-notif { transition: opacity .2s ease; } }
  .brief-notif-gmail { width: 38px; height: 38px; flex-shrink: 0; display: block; border-radius: 10px; box-shadow: 0 2px 6px rgba(15,14,17,0.12); }
  .brief-notif-body { flex: 1; min-width: 0; }
  .brief-notif-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .brief-notif-app { font: 600 13px var(--sans); color: var(--ink); }
  .brief-notif-time { font: 400 12px var(--sans); color: var(--ink3); flex-shrink: 0; }
  .brief-notif-subject { font: 600 13.5px/1.3 var(--sans); color: var(--ink); margin-top: 1px; }
  .brief-notif-text { font: 400 13px/1.35 var(--sans); color: var(--ink2); margin-top: 1px; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  .brief-tags-mock {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 14px 38px rgba(15,14,17,0.09), 0 3px 10px rgba(15,14,17,0.04);
    text-align: left;
  }
  .brief-tags-label { font: 600 11px var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink3); margin-bottom: 16px; }
  .brief-learn { display: flex; flex-direction: column; gap: 15px; }
  .brief-learn-src { display: block; font: 600 10.5px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink3); margin-bottom: 9px; }
  .brief-learn-row .brief-tags-row { margin-bottom: 0; }
  .brief-graph-wrap { width: 100%; max-width: 440px; }
  .brief-graph-svg { width: 100%; height: auto; display: block; overflow: visible; }
  .brief-gedge { stroke: rgba(15,14,17,0.12); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
  .brief-gedge--hl { stroke: var(--violet); stroke-width: 1.6; opacity: 0.55; }
  .brief-gnode { fill: #f2f0eb; stroke: rgba(15,14,17,0.16); stroke-width: 1.2; }
  .brief-gnode--hl { fill: var(--violet-light); stroke: var(--violet); stroke-width: 1.5; }
  .brief-ghub { fill: var(--violet); stroke: #fff; stroke-width: 2; }
  .brief-ghub-halo { fill: none; stroke: rgba(91,79,207,0.38); stroke-width: 1.5; }
  .brief-ghub-label { font: 600 7.5px var(--sans); fill: #fff; text-anchor: middle; letter-spacing: 0.02em; }
  .brief-gpaper { fill: #d8d3e6; }
  .brief-gpaper--hl { fill: var(--violet-mid); }
  .brief-glabel { font: 500 9.5px var(--sans); fill: var(--ink2); }
  .brief-glabel--hl { fill: var(--violet); font-weight: 600; }
  .brief-ghalo { fill: rgba(91,79,207,0.14); }
  /* build-once growth, edges draw in, nodes/labels pop, then it stays */
  .brief-gnode, .brief-gpaper, .brief-ghub, .brief-ghub-halo, .brief-ghalo { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0.2); }
  .brief-glabel, .brief-ghub-label { opacity: 0; }
  .brief-graph-wrap.is-building .brief-gedge { animation: briefDraw .85s ease-out var(--d, 0s) forwards; }
  .brief-graph-wrap.is-building .brief-gnode,
  .brief-graph-wrap.is-building .brief-gpaper,
  .brief-graph-wrap.is-building .brief-ghub,
  .brief-graph-wrap.is-building .brief-ghub-halo,
  .brief-graph-wrap.is-building .brief-ghalo { animation: briefPop .55s cubic-bezier(.2,1.3,.4,1) var(--d, 0s) forwards; }
  .brief-graph-wrap.is-building .brief-glabel,
  .brief-graph-wrap.is-building .brief-ghub-label { animation: briefFadeIn .6s ease-out var(--d, 0s) forwards; }
  @keyframes briefDraw { to { stroke-dashoffset: 0; } }
  @keyframes briefPop { to { opacity: 1; transform: scale(1); } }
  @keyframes briefFadeIn { to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .brief-gedge { stroke-dashoffset: 0; }
    .brief-gnode, .brief-gpaper, .brief-ghub, .brief-ghub-halo, .brief-ghalo { opacity: 1; transform: none; }
    .brief-glabel, .brief-ghub-label { opacity: 1; }
  }
  .brief-algo-out { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border2); }
  .brief-algo-arrow { color: var(--ink3); font-size: 13px; }
  .brief-algo-result { flex: 1; font: 500 12.5px var(--sans); color: var(--ink2); }
  .brief-algo-score { font: 600 12px var(--sans); color: var(--violet); background: var(--violet-light); border-radius: 5px; padding: 3px 8px; font-variant-numeric: tabular-nums; }
  .brief-tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .brief-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 500 13px var(--sans); color: var(--ink2); background: var(--paper2); border-radius: 7px; padding: 6px 11px; }
  .brief-chip--new { color: var(--violet); background: var(--violet-light); }
  .brief-chip-new { font: 700 8.5px var(--sans); letter-spacing: 0.05em; color: #fff; background: var(--violet); border-radius: 3px; padding: 2px 4px; }
  .brief-tags-input { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border2); border-radius: 8px; padding: 9px 9px 9px 13px; }
  .brief-tags-input > span:first-child { font: 400 13px var(--sans); color: var(--ink3); }
  .brief-tags-add { font: 600 12.5px var(--sans); color: #fff; background: var(--violet); border-radius: 6px; padding: 6px 13px; }
  @media (max-width: 880px) {
    .brief-mock, .brief-tags-mock { max-width: none; }
  }

  @media (max-width: 880px) {
    .libfeat { padding: 64px 20px; }
    .libfeat-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
    .libfeat-stage { display: none; }
    .libfeat-title { font-size: 36px; }
    /* "Your daily digest" on one line on mobile, the break becomes a space. */
    .libfeat-title--briefings .ttl-break::before { content: " "; }
    .libfeat-lede { font-size: 16px; max-width: none; }
    .libfeat-cards { grid-template-columns: 1fr; }
    .libfeat-card { min-height: 0; padding: 26px; }
    .libfeat-card-visual { padding: 24px 0; }
  }

  /* ── Documents feature: visuals are live mocks, not framed screenshots ── */
  .docfeat .libfeat-card-visual {
    aspect-ratio: auto;
    flex: 1;
    min-height: 300px;
    margin: 26px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .docfeat .libfeat-card--light .libfeat-card-visual { box-shadow: none; border: 0; }
  .docfeat .libfeat-card--light .docvideo { box-shadow: 0 14px 38px rgba(15,14,17,0.10), 0 3px 10px rgba(15,14,17,0.05); aspect-ratio: 16 / 10.5; }

  /* Connect-to-editor animation */
  .docconn {
    position: relative;
    width: 100%;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 6px;
  }
  .docconn-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 84px;
    flex-shrink: 0;
    z-index: 2;
  }
  .docconn-node svg {
    width: 50px; height: 50px;
  }
  .docconn-node span {
    font: 500 11.5px var(--sans);
    color: var(--ink2);
  }
  .docconn-core {
    flex-shrink: 0;
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    z-index: 3;
  }
  .docconn-mark { width: 52px; height: 52px; }
  .docconn-wire {
    position: relative;
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(91,79,207,0.42) 0 5px, rgba(91,79,207,0) 5px 10px);
    z-index: 1;
  }
  .docconn-token {
    position: absolute;
    top: 50%;
    font: 600 10px var(--sans);
    color: var(--violet);
    background: var(--violet-light);
    border: 1px solid rgba(91,79,207,0.2);
    border-radius: 5px;
    padding: 2px 5px;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  @media (prefers-reduced-motion: no-preference) {
    .docconn-wire--left .docconn-token { animation: docTokenL 2.6s ease-in-out infinite; }
    .docconn-wire--right .docconn-token { animation: docTokenR 2.6s ease-in-out infinite; }
  }
  @keyframes docTokenL {
    0% { left: 0; opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    18% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    72% { left: 100%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
    86%, 100% { left: 100%; opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  }
  @keyframes docTokenR {
    0% { left: 100%; opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    18% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    72% { left: 0; opacity: 1; transform: translate(-50%, -50%) scale(1); }
    86%, 100% { left: 0; opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  }
  .docconn-status {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 6px;
    font: 500 11px var(--sans);
    color: #1a7e4a;
    background: #e6f4ea;
    border-radius: 999px;
    padding: 4px 11px;
  }
  .docconn-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #1a7e4a;
  }
  @media (prefers-reduced-motion: no-preference) {
    .docconn-dot { animation: docPulse 1.8s ease-in-out infinite; }
  }
  @keyframes docPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

  /* Connect-to-editor: converging light beams */
  .docconn--beam .docconn-wire { overflow: hidden; }
  .docconn--beam .docconn-beam {
    position: absolute; top: 50%;
    height: 4px; width: 54px;
    transform: translateY(-50%);
    border-radius: 4px;
  }
  .docconn--beam .docconn-wire--left .docconn-beam { background: linear-gradient(90deg, rgba(91,79,207,0), var(--violet)); left: -54px; }
  .docconn--beam .docconn-wire--right .docconn-beam { background: linear-gradient(270deg, rgba(91,79,207,0), var(--violet)); left: 100%; }
  @media (prefers-reduced-motion: no-preference) {
    .docconn--beam .docconn-wire--left .docconn-beam { animation: docBeamL 2.2s ease-in infinite; }
    .docconn--beam .docconn-wire--right .docconn-beam { animation: docBeamR 2.2s ease-in infinite; }
  }
  @keyframes docBeamL {
    0% { left: -54px; opacity: 0; }
    14% { opacity: 1; }
    78% { left: 100%; opacity: 1; }
    88%,100% { left: 100%; opacity: 0; }
  }
  @keyframes docBeamR {
    0% { left: 100%; opacity: 0; }
    14% { opacity: 1; }
    78% { left: 0; opacity: 1; }
    88%,100% { left: -54px; opacity: 0; }
  }

  /* Connect-to-editor: orbiting integration icons around the Mosaic mark */
  .orbit {
    position: relative;
    width: 360px;
    height: 360px;
    flex-shrink: 0;
  }
  /* The 360px orbit is wider than the feature card's inner width on phones
     (~338px at 390, ~308px at 360), so its dashed ring + side icons get
     clipped into a non-circle. Scale it down to fit; the counter-rotation
     math is preserved by scaling the whole element. */
  @media (max-width: 480px) {
    .orbit { transform: scale(0.72); transform-origin: center; margin: -50px 0; }
  }
  .orbit-ring {
    position: absolute;
    inset: 40px;
    border: 1.5px dashed rgba(60,52,110,0.18);
    border-radius: 50%;
  }
  .orbit-spin {
    position: absolute;
    inset: 0;
  }
  @media (prefers-reduced-motion: no-preference) {
    .orbit-spin { animation: orbitSpin 26s linear infinite; }
  }
  .orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
  }
  .orbit-item--0 { transform: rotate(0deg)   translateY(-140px) rotate(0deg); }
  .orbit-item--1 { transform: rotate(90deg)  translateY(-140px) rotate(-90deg); }
  .orbit-item--2 { transform: rotate(180deg) translateY(-140px) rotate(-180deg); }
  .orbit-item--3 { transform: rotate(270deg) translateY(-140px) rotate(-270deg); }
  .orbit-chip {
    position: absolute;
    top: -36px;
    left: -36px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  @media (prefers-reduced-motion: no-preference) {
    .orbit-chip { animation: orbitCounter 26s linear infinite; }
  }
  .orbit-chip svg { width: auto; height: 33px; display: block; }
  .orbit-chip svg.orbit-ic--docs  { height: 37px; }
  .orbit-chip svg.orbit-ic--word  { height: 33px; }
  .orbit-chip svg.orbit-ic--od    { height: 28px; }
  .orbit-chip svg.orbit-ic--drive { height: 37px; }
  .orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 132px;
    height: 132px;
    margin: -66px 0 0 -66px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }
  .orbit-core svg { width: 84px; height: 84px; display: block; }
  @keyframes orbitSpin { to { transform: rotate(360deg); } }
  @keyframes orbitCounter { to { transform: rotate(-360deg); } }

  /* Citation flow video (Card 2 visual) */
  .docvideo {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border2);
    box-shadow: 0 14px 38px rgba(15,14,17,0.10), 0 3px 10px rgba(15,14,17,0.05);
  }
  .docvideo iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }
  /* Demo first-frame reveal: while JS drives the iframe (preload → hold on
     frame 0 → play on view) the iframe is transparent until its first frame
     has painted, so the loading white body never flashes. JS-gated via
     .demo-js, so with scripting off the iframe stays visible. */
  .docvideo.demo-js iframe { opacity: 0; transition: opacity 0.3s ease; }
  .docvideo.demo-js iframe.demo-ready { opacity: 1; }

  /* Citation side panel mock */
  .doccite {
    position: relative;
    width: 100%;
    max-width: 460px;
    min-height: 512px;
  }
  .doccite-doc {
    position: absolute;
    inset: 8px 0 8px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15,14,17,0.08);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    font-family: var(--sans);
  }
  .doccite-h { height: 13px; width: 52%; border-radius: 5px; background: rgba(15,14,17,0.16); margin-bottom: 6px; }
  .doccite-l { height: 7px; border-radius: 4px; background: rgba(15,14,17,0.07); }
  .doccite-l--w90 { width: 90%; }
  .doccite-l--w70 { width: 70%; }
  .doccite-sentence {
    font: 400 13px/1.6 var(--sans);
    color: var(--ink);
    margin: 0;
  }
  .doccite-sentence {
    background: linear-gradient(rgba(91,79,207,0.14), rgba(91,79,207,0.14));
    box-shadow: inset 0 -2px 0 rgba(91,79,207,0.4);
    border-radius: 2px;
    padding: 0 1px;
  }
  .doccite-caret {
    display: inline-block;
    width: 1.5px; height: 14px;
    background: var(--violet);
    margin-left: 1px;
    vertical-align: -2px;
  }
  @media (prefers-reduced-motion: no-preference) {
    .doccite-caret { animation: docBlink 1.1s step-end infinite; }
  }
  @keyframes docBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
  .doccite-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 296px;
    background: #fff;
    border: 1px solid rgba(15,14,17,0.1);
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(15,14,17,0.2), 0 2px 6px rgba(15,14,17,0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--sans);
  }
  /* header */
  .dc-header { display: flex; align-items: center; gap: 8px; padding: 11px 12px 10px; }
  .dc-logo { display: inline-flex; }
  .dc-logo svg { width: 19px; height: 19px; }
  .dc-grow { flex: 1; }
  .dc-iconbtn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 5px; color: var(--ink3);
  }
  .dc-iconbtn svg { width: 14px; height: 14px; }
  /* tabs */
  .dc-tabs { display: flex; gap: 4px; padding: 0 11px 9px; border-bottom: 1px solid rgba(15,14,17,0.06); }
  .dc-tab {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 30px; border-radius: 5px; border: 1px solid transparent;
    font: 500 12px var(--sans); color: var(--ink3);
  }
  .dc-tab--on { background: var(--violet-light); color: var(--violet); border-color: rgba(91,79,207,0.16); }
  .dc-tab-count {
    font: 600 9.5px var(--sans); padding: 1px 5px; border-radius: 3px;
    background: rgba(15,14,17,0.06); color: var(--ink3);
  }
  /* citing-claim context */
  .dc-ctx { padding: 12px 14px 13px; border-bottom: 1px solid rgba(15,14,17,0.06); background: rgba(237,233,255,0.3); }
  .dc-ctx-row { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
  .dc-ctx-label {
    font: 600 9.5px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3);
  }
  .dc-ctx-dismiss { margin-left: auto; display: inline-flex; color: var(--ink3); }
  .dc-ctx-dismiss svg { width: 11px; height: 11px; }
  .dc-ctx-claim {
    font: 500 14px/1.45 var(--sans); color: var(--ink); letter-spacing: -0.005em;
  }
  .dc-ctx-actions { display: flex; gap: 8px; margin-top: 12px; }
  .dc-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center;
    font: 500 11.5px var(--sans); color: var(--ink2);
    padding: 8px 10px; border-radius: 5px;
    border: 1px solid rgba(15,14,17,0.1); background: rgba(255,255,255,0.9);
  }
  .dc-btn--primary { background: rgba(237,233,255,0.74); border-color: rgba(91,79,207,0.18); color: var(--violet); }
  /* body */
  .dc-body { padding: 13px 14px 15px; }
  .dc-status { font: 500 11px var(--sans); color: #1a9e75; margin-bottom: 11px; }
  .dc-hero {
    border: 1px solid rgba(15,14,17,0.06); border-radius: 8px;
    padding: 12px 13px; background: rgba(250,249,246,0.7);
  }
  .dc-hero-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
  .dc-chip { display: inline-flex; align-items: center; gap: 5px; font: 600 11px var(--sans); color: #1a9e75; }
  .dc-ck { font-size: 10px; }
  .dc-best {
    margin-left: auto; font: 600 9.5px var(--sans);
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink3);
  }
  .dc-quote { font: 450 13.5px/1.5 var(--sans); color: var(--ink); }
  .dc-src { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(15,14,17,0.06); }
  .dc-rtitle { font: 400 11.5px/1.4 var(--sans); color: var(--ink2); }
  .dc-byline { margin-top: 3px; font: 400 11px var(--sans); color: var(--ink3); }
  .dc-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
  .dc-viewsrc { font: 500 11.5px var(--sans); color: var(--violet); white-space: nowrap; }
  .doccite-insert {
    margin-left: auto;
    white-space: nowrap;
    font: 500 11.5px var(--sans);
    color: #fff;
    background: var(--violet);
    border: 1px solid rgba(91,79,207,0.26);
    border-radius: 4px;
    padding: 6px 13px;
    cursor: pointer;
    transition: background .15s;
  }
  .doccite-insert:hover { background: #4a3fbe; }

  @media (max-width: 880px) {
    .docfeat .libfeat-card-visual { min-height: 240px; }
    .doccite { max-width: 380px; margin: 0 auto; }
  }
