@layer views {
  .parallel-stage { display: flex; flex-direction: column; min-inline-size: 0; background: var(--bg-canvas); flex: 1; }

  /* Centered 3-Column Open-Page Reading Spread (zero wall lines, zero inner scrollbars) */
  .parallel-spread-sheet {
    inline-size: 100%; max-inline-size: min(1480px, 100%); min-inline-size: 0; margin-inline: auto;
    padding: 0.85rem clamp(1rem, 3vw, 2.5rem) 2.2rem;
    display: flex; flex-direction: column; gap: 0.85rem;
  }

  /* Single-Line Passage Header */
  .passage-bar {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: 8px 16px; padding: 10px 0 8px;
    border-bottom: 1px solid var(--border-hairline); min-inline-size: 0;
  }
  .passage-bar-left {
    display: flex; align-items: baseline; flex-wrap: wrap;
    gap: 6px 10px; min-inline-size: 0; flex: 1 1 auto;
  }
  h1.passage-h1 { margin: 0; font-size: 1.25rem; line-height: 1.25; font-weight: 600; min-inline-size: 0; }
  .bc-passage-trigger { padding: 2px 8px; font-weight: 600; max-inline-size: 100%; }
  .bc-sep { color: var(--text-muted); margin-inline: 2px; }
  .passage-subtitle { font-style: italic; font-size: 13px; color: var(--text-muted); }
  .unproc-banner {
    font-size: 12px; padding: 2px 8px; border: 1px solid var(--border-subtle);
    background: var(--bg-sunken); color: var(--text-secondary); border-radius: var(--r-sm);
  }

  .passage-bar-right { position: relative; flex: none; margin-inline-start: auto; max-inline-size: 100%; }
  .passage-bar-right .sv-strip { background: transparent; border: none; border-radius: 0; padding: 0; max-inline-size: 100%; }
  #sv-toggle-btn { font-size: 12.5px; color: var(--text-secondary); cursor: pointer; white-space: nowrap; user-select: none; }
  #sv-toggle-btn:hover, #sv-toggle-btn:focus-visible { color: var(--text-primary); }
  .sv-summary-range { color: var(--text-muted); font-variant-numeric: var(--font-nums); }
  #sv-strip[open] .sv-content {
    position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 6px);
    width: min(560px, calc(100vw - 32px)); max-block-size: min(60dvh, 420px); overflow-y: auto;
    background: var(--bg-elevated); border: 1px solid var(--border-subtle);
    border-radius: var(--r-md); box-shadow: var(--shadow-md);
    padding: 12px 14px; z-index: 40;
    display: flex; flex-direction: column; gap: 6px;
    font-size: var(--ts-xs); line-height: 1.5; color: var(--text-secondary);
  }
  .sv-row strong { color: var(--text-primary); font-weight: 600; }

  /* Desktop 38fr / 38fr / 24fr Borderless 3-Column Spread */
  .spread-board {
    display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 38fr) minmax(0, 24fr);
    column-gap: var(--spread-col-gap, clamp(28px, 2.8vw, 40px)); row-gap: 0.72rem;
    align-items: start; min-inline-size: 0;
  }
  .col-hdr {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-inline-size: 0; min-height: 36px; align-self: stretch;
    border-bottom: 1px solid var(--border-hairline); padding-block: 2px;
  }
  .col-hdr-modern { grid-column: 1; justify-content: flex-start; flex-wrap: wrap; row-gap: 4px; }
  .col-hdr-modern .va-tb-group { margin-inline-start: auto; flex: none; flex-wrap: nowrap; }
  .tanakh-section-badge {
    display: inline-flex; align-items: center; flex: none; white-space: nowrap;
    padding: 0.12rem 0.48rem; border-radius: var(--radius-pill);
    background: var(--lane-cobalt-bg); color: var(--lane-cobalt-fg);
    font-size: var(--ts-xs, 0.75rem); font-weight: 600; line-height: 1.3;
  }
  .col-hdr-kicker-group { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; flex: none; }
  .col-hdr-modern .va-kicker,
  .col-hdr-ms .va-kicker { white-space: nowrap; flex: none; }
  .col-hdr-ms { grid-column: 2; }
  .col-hdr-margin { grid-column: 3; justify-content: flex-end; }
  #source-hdr-controls,
  .source-hdr-controls { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 auto; min-inline-size: 0; flex-wrap: nowrap; }
  .bc-source-trigger { min-inline-size: 0; max-inline-size: 100%; font-size: var(--ts-xs); font-weight: 600; padding: 3px 9px; }
  #source-picker-label { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #source-info-btn { flex: none; }
  #parallel-paleo-btn { margin-inline-start: auto; }

  #spread-board .col-hdr .va-tb-group {
    display: flex; align-items: center; gap: 14px;
    background: transparent; border: none; border-radius: 0; padding: 0; overflow: visible;
  }
  #spread-board .va-tb-group .va-tb-btn,
  #parallel-paleo-btn {
    min-block-size: 0; background: transparent; border: none;
    border-bottom: 1.5px solid transparent; border-radius: 0;
    padding: 5px 2px; font-size: 12.5px; font-weight: 500; color: var(--text-secondary);
    white-space: nowrap; transition: color 0.14s ease, border-color 0.14s ease;
  }
  #spread-board .va-tb-group .va-tb-btn:hover,
  #parallel-paleo-btn:hover { color: var(--text-primary); border-bottom-color: var(--border-subtle); }
  #spread-board .va-tb-group .va-tb-btn:is([aria-pressed="true"], .is-active),
  #parallel-paleo-btn:is([aria-pressed="true"], .is-active) {
    background: transparent; color: var(--text-primary);
    font-weight: 600; border-bottom-color: var(--text-primary);
  }
  @media (forced-colors: active) {
    #spread-board .va-tb-group .va-tb-btn:is([aria-pressed="true"], .is-active),
    #parallel-paleo-btn:is([aria-pressed="true"], .is-active) { color: Highlight; border-bottom-color: Highlight; }
  }

  .spread-notices-row {
    grid-column: 1 / -1; display: grid;
    grid-template-columns: minmax(0, 38fr) minmax(0, 38fr) minmax(0, 24fr);
    column-gap: var(--spread-col-gap, clamp(28px, 2.8vw, 40px)); row-gap: 0.45rem;
    align-items: start; min-inline-size: 0;
  }
  .spread-notices-row:not(:has(> :not([hidden]))) { display: none; }
  .canon-notice-banner {
    grid-column: 1; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding: 0.42rem 0.68rem; border-radius: var(--radius-ui);
    background: var(--bg-elevated); border: 1px solid var(--border-hairline);
    font-size: var(--ts-xs, 0.75rem); color: var(--text-secondary); line-height: 1.42;
  }
  .canon-notice-banner[hidden] { display: none; }
  .quoted-source-banner {
    grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding: 0.42rem 0.68rem; border-radius: var(--radius-ui);
    background: color-mix(in oklab, var(--lane-terracotta-bg) 62%, var(--bg-elevated));
    border: 1px solid color-mix(in oklab, var(--lane-terracotta-fg) 22%, var(--border-hairline));
    font-size: var(--ts-xs, 0.75rem); color: var(--text-secondary); line-height: 1.42;
  }
  .quoted-source-banner strong { color: var(--lane-terracotta-fg); font-weight: 700; }
  .quoted-source-banner[hidden] { display: none; }
  @media (min-width: 768px) and (max-width: 1199.98px) {
    .col-hdr-modern { align-items: flex-end; padding-block-end: 4px; }
  }
  @media (max-width: 1199px) {
    .spread-notices-row { grid-template-columns: minmax(0, 1fr); }
    .canon-notice-banner,
    .quoted-source-banner { grid-column: 1; }
  }

  .spread-body {
    grid-column: 1 / -1; display: grid; grid-template-columns: subgrid;
    row-gap: var(--verse-gap, 26px); align-items: start; min-inline-size: 0;
  }
  .spread-verses-pane {
    grid-column: 1 / 3; display: grid; grid-template-columns: subgrid;
    row-gap: var(--verse-gap, 26px); align-items: start; min-inline-size: 0;
  }
  .verse-pair-row {
    grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start;
    border-radius: var(--radius-card); padding: 0.3rem 0.48rem; margin-inline: -0.48rem;
    scroll-margin-block: calc(var(--masthead-h, 46px) + 14px) calc(var(--phone-dock-h, 52px) + 14px);
    transition: background-color 0.14s ease, box-shadow 0.14s ease;
  }
  .verse-pair-row:hover, .verse-pair-row:focus-within { background: var(--verse-hover-bg); }
  .verse-pair-row[data-restored="true"] {
    background: color-mix(in oklab, var(--lane-emerald-bg) 52%, transparent);
    padding: 0.85rem 0.95rem; margin-inline: -0.95rem;
  }
  .verse-pair-row[data-restored="true"]:hover,
  .verse-pair-row[data-restored="true"]:focus-within {
    background: color-mix(in oklab, var(--lane-emerald-bg) 62%, var(--verse-hover-bg));
  }
  .verse-pair-row[data-focused="true"],
  .verse-pair-row[data-focused="true"]:hover,
  .verse-pair-row[data-focused="true"]:focus-within {
    background: var(--lane-cobalt-bg);
    box-shadow: 0 0 0 2px var(--focus-band-edge);
  }

  /* Column 1 Modern Bible & Column 2 Three-Layer Ink Hierarchy */
  .vp-modern-cell, .vp-ms-cell { min-inline-size: 0; display: flex; flex-direction: column; gap: 0.36rem; }
  .vp-verse-row-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
  .vp-verse-num { font-family: var(--font-mono); font-size: var(--ts-xs); font-weight: 700; color: var(--text-muted); }
  .vp-prose {
    font-family: var(--font-serif); font-size: var(--ts-prose);
    line-height: var(--prose-lh, 1.72); color: var(--text-primary);
  }
  .vp-ms-prose { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.58; color: var(--text-primary); }
  .vp-ms-prose.vp-ms-muted { color: var(--text-muted); }
  .ms-diff {
    background: var(--ms-diff-bg); border-bottom: 1.5px solid var(--ms-diff-border);
    color: var(--text-primary); border-radius: 2px; padding: 0 2px;
  }

  .sb-restored-wrap { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
  .sb-restored-tag {
    display: inline-flex; align-items: center; vertical-align: baseline;
    font-family: var(--font-mono); font-size: var(--ts-xs); font-weight: 700; padding: 1px 6px;
    border-radius: var(--radius-pill); background: var(--lane-emerald-bg); color: var(--lane-emerald-fg);
  }
  .sb-phrase { display: inline; }
  .sb-phrase-seg { cursor: pointer; }
  .sb-phrase[data-canon-dimmed="true"] { opacity: 0.72; }

  /* Subtle 1.5px dashed word hover & tap lexicon triggers on glossary words */
  .lex-term {
    display: inline; font: inherit; color: inherit; cursor: help; padding: 0 1px;
    border-radius: var(--radius-xs); vertical-align: baseline;
    text-decoration-line: underline; text-decoration-style: dashed;
    text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--lex-underline);
  }
  .lex-term:hover, .lex-term:focus-visible, .lex-term[aria-expanded="true"] {
    background: var(--lex-hover-bg); text-decoration-color: var(--accent-primary);
  }
  :is(.vp-source-script, .vp-source-gloss, .vp-source-gloss-muted) .lex-term {
    text-decoration: none; border-bottom: 1px dotted var(--border-subtle); border-radius: 0;
    transition: color 0.14s ease, border-color 0.14s ease;
  }
  :is(.vp-source-script, .vp-source-gloss, .vp-source-gloss-muted) .lex-term:is(:hover, :focus-visible, [aria-expanded="true"]) {
    background: transparent; color: var(--text-primary); border-bottom-color: var(--text-primary);
  }

  /* Ancient Source Script & Quiet Slate Gloss */
  .vp-source-list { display: flex; flex-direction: column; gap: 0.42rem; }
  .vp-source-item { display: flex; flex-direction: column; gap: 3px; text-align: start; }
  .vp-source-tag {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    margin-bottom: 4px; font-size: 11.5px; font-weight: 500; line-height: 1.3;
    color: var(--text-secondary); border: none; background: none; padding: 0;
  }
  .vp-source-tag .va-serial-id { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
  .vp-source-script {
    display: block; inline-size: fit-content; max-inline-size: 100%; align-self: flex-start;
    text-align: left; unicode-bidi: isolate;
    font-family: var(--font-serif); font-size: 15px; line-height: 1.55; color: var(--text-secondary);
  }
  .vp-source-script bdi { unicode-bidi: isolate; }
  .vp-source-muted { color: var(--text-muted); opacity: 0.90; }
  .vp-source-gloss,
  .vp-source-gloss-muted { font-size: 12px; line-height: 1.4; font-weight: 400; color: var(--text-muted); }
  .vp-source-gloss-muted { opacity: 0.88; }
  .vp-omitted-marker { font-family: var(--font-mono); font-size: var(--ts-xs); color: var(--text-muted); padding: 0.25rem 0; }

  /* Traditions Shared Badges & Cross-Links */
  .vp-trad-badges { display: flex; flex-wrap: wrap; gap: 4px; }
  .vp-trad-chip {
    font-family: var(--font-mono); font-size: var(--ts-xs); font-weight: 600;
    padding: 1px 7px; border-radius: var(--radius-pill); background: var(--bg-elevated); color: var(--text-muted);
  }
  .vp-trad-chip[data-state="restored"] { background: var(--lane-emerald-bg); color: var(--lane-emerald-fg); }
  .vp-trad-chip[data-state="excluded"] { background: var(--bg-subtle); color: var(--text-muted); text-decoration-line: line-through; }
  .vp-trad-chip[data-active="true"] { background: var(--lane-cobalt-bg); color: var(--lane-cobalt-fg); font-weight: 700; }
  .vp-prior-art { padding: 0.45rem 0.65rem; border-radius: var(--radius-ui); background: var(--bg-elevated); font-size: var(--ts-xs); color: var(--text-secondary); line-height: 1.48; }

  .parallel-cross-strip { padding-block: 1.1rem 0.5rem; display: flex; flex-direction: column; gap: 0.45rem; }

  /* Bottom Slide-Up Footnote Passage Timeline (>= 768px) */
  .footnote-bar {
    position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 62;
    block-size: var(--footnote-h, 40px); background: var(--bg-header);
    border-block-start: 1px solid var(--border-hairline);
    display: flex; align-items: center; justify-content: center;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
  }
  .footnote-toggle-btn {
    inline-size: min(1400px, 100%); block-size: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: var(--ts-xs); font-weight: 600; color: var(--text-secondary);
  }
  .footnote-toggle-btn:hover { color: var(--text-primary); }
  .footnote-toggle-btn > :last-child { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
  .footnote-summary-path { flex: 1 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
  .footnote-svg-wrap { overflow-x: auto; padding-block: 0.25rem; }
  .footnote-svg { display: block; inline-size: max(100%, 620px); block-size: auto; }
  .footnote-stop-node { cursor: pointer; }
  .phone-bottom-bar { display: none; }

  /* Floating Word & Etymology Popover + Story Dossier */
  .lex-popover {
    position: fixed; inset: auto; margin: 0; z-index: 95;
    inline-size: min(21rem, calc(100dvw - 24px)); padding: 0.72rem 0.82rem;
    background: var(--bg-surface); color: var(--text-primary);
    border: 1px solid var(--border-strong); border-radius: var(--radius-card);
    box-shadow: var(--shadow-popover); display: none; flex-direction: column; gap: 0.42rem;
  }
  .lex-popover:is(:popover-open, .\:popover-open, [data-open="true"]) { display: flex; }
  .lex-pop-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
  .lex-pop-title { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
  .lex-pop-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .lex-pop-pron { font-family: var(--font-mono); font-size: var(--ts-xs); color: var(--text-muted); }
  .lex-pop-cat {
    font-family: var(--font-mono); font-size: var(--ts-xs); font-weight: 700;
    padding: 1px 6px; border-radius: var(--radius-pill); background: var(--lane-cobalt-bg); color: var(--lane-cobalt-fg);
  }
  .lex-pop-def { font-size: var(--ts-sm); color: var(--text-primary); line-height: 1.48; }
  .lex-pop-root { font-size: var(--ts-xs); color: var(--text-secondary); padding: 0.35rem 0.5rem; background: var(--bg-elevated); border-radius: var(--radius-sm); }
  #lexicon-popover .va-modal-actions { flex-wrap: wrap; gap: 6px; }

  .story-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
  .story-tab-btn {
    min-block-size: 30px; padding: 0.2rem 0.62rem; border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong); background: var(--bg-elevated);
    font-size: var(--ts-xs); font-weight: 600; color: var(--text-secondary);
  }
  .story-tab-btn[aria-selected="true"] { background: var(--pill-active-bg); color: var(--pill-active-fg); border-color: var(--pill-active-bg); font-weight: 700; }
  .story-timeline-wrap { padding: 0.55rem 0.65rem; background: var(--bg-elevated); border: 1px solid var(--border-hairline); border-radius: var(--radius-ui); }
  .story-timeline-svg { display: block; inline-size: 100%; block-size: auto; }
  .story-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .story-card {
    padding: 0.65rem 0.75rem; background: var(--bg-elevated); border: 1px solid var(--border-strong);
    border-radius: var(--radius-ui); display: flex; flex-direction: column; gap: 0.3rem;
  }
  .story-card-copy { font-size: var(--ts-xs); color: var(--text-secondary); line-height: 1.52; }
}
