/* REQ-126: release notes, the release calendar, plan releases, the release plan and a release's page. The colour tokens (:root) and shared components are in ../styles.css; this file never defines :root variables. */

.rp-fix { margin: 2px 0 0; font-size: 12.5px; font-weight: 700; color: var(--fixing); }

/* Release notes (#release-notes, REQ-39.2): an h2 per day, an h3 per version. */
.rn-list { display: flex; flex-direction: column; gap: 18px; }
.rn-entry { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 96px; }
.rn-entry.target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.rn-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rn-head h3 { margin: 0; font-size: 17px; }
.rn-self { color: var(--ink); text-decoration: none; }
.rn-self:hover { text-decoration: underline; }
.rn-self:focus-visible, .rn-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rn-meta { font: 12px/1.5 var(--font-mono); color: var(--faint); }
.rn-bullets { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.rn-refs { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rn-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 700 12px/1.2 var(--font-mono); text-decoration: none; overflow-wrap: anywhere; }
.rn-chip:hover { text-decoration: underline; }
.rn-by, .rn-coming { margin: 0; color: var(--faint); font-size: 13px; }
.rn-edit { align-self: flex-start; min-height: 44px; }
.rn-form { display: flex; flex-direction: column; gap: 6px; }
.rn-label { font: 700 10.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.rn-text, .rn-refs-input { flex: none; width: 100%; box-sizing: border-box; font: 14px/1.4 var(--font-body); }
.rn-text { resize: vertical; }
.rn-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.rn-btns .btn { min-height: 44px; }
.rn-form .err { margin: 0; }

/* Plan releases (Requirements page, REQ-39.3). */
.rp .rq-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.rp .rq-panel-head h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.rp .rq-panel-head .btn.icon { min-width: 44px; min-height: 44px; }
.rp-lede, .rp-body { padding: 0 20px; }
.rp-lede { margin: 0 0 12px; color: var(--mute); }
.rp-body { overflow-y: auto; padding-bottom: 24px; }
.rp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rp-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.rp-name { display: flex; align-items: baseline; gap: 10px; }
.rp-name b { font-size: 17px; }
.rp-count, .rp-note { color: var(--mute); font-size: 13px; margin: 0; }
.rp-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rp-date { flex: 0 1 200px; min-height: 44px; box-sizing: border-box; }
.rp-form .btn { min-height: 44px; }
.rp-shipped { margin: 0; color: var(--done); font-weight: 700; }
.rp-confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunken); }
.rp-confirm p { flex: 1 1 100%; margin: 0; }
.rp-confirm .btn { min-height: 44px; }
.rp-row .err { margin: 0; }


/* REQ-73.1 (Pablo): how a version's notes came to be, a neutral chip with
   an icon and words; requirement groups under the version; a redeploy muted. */
.rn-mark { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; font: 600 11.5px/1.8 var(--font-mono); color: var(--mute); background: var(--panel); white-space: nowrap; }
.rn-group { margin: 12px 0 4px; font: 700 14px/1.35 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.rn-group a { color: inherit; }
.rn-bullets li .rn-chip { vertical-align: baseline; }
.rn-redeploy { color: var(--mute); margin: 8px 0 0; }
@media (max-width: 600px) { .rn-bullets li .rn-chip, .rn-group a { min-height: 44px; display: inline-flex; align-items: center; } }

/* REQ-82.3.4: a version's 'what's new' tour, and 'Show me' on a change. */
.rn-tour { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 6px; font-weight: 700; }
.rn-showme { display: inline-flex; align-items: center; min-height: 28px; font-size: 13px; font-weight: 600; }
@media (max-width: 600px) { .rn-showme { min-height: 44px; } }

/* REQ-90.2: releases per product. The filter (Pablo 1): one single-choice
   chip group, 44 px, the same place on notes and calendar; each chip with its
   count of open releases, muted. The product chip (Pablo 2): words plus a
   two-letter mark, neutral, never a colour of its own. */
.rn-products { display: flex; flex-wrap: wrap; gap: 6px; }
.rn-product { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font: 700 13.5px/1 var(--font-body); cursor: pointer; }
.rn-product.on { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.rn-product:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rn-product-n { font: 600 12px/1 var(--font-mono); color: var(--faint); }
.rn-product.on .rn-product-n { color: inherit; opacity: 0.85; }
.rel-product { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border-radius: 999px; background: var(--sunken); color: var(--mute); font: 600 12px/1.4 var(--font-body); white-space: nowrap; }
.rel-mark { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 3px; border-radius: 999px; background: var(--panel); color: var(--ink); font: 700 10.5px/1 var(--font-mono); letter-spacing: 0.02em; }
/* REQ-90.1: Plan releases, per product, with a New release form (product first). */
.rp-add { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 14px; }
.rp-add-title, .rp-product-head { margin: 0; font-size: 15px; }
.rp-product-head { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; }
.rp-field { display: flex; flex-direction: column; gap: 4px; }
.rp-label { font-size: 12.5px; font-weight: 700; color: var(--mute); }
.rp-add-product, .rp-add-version { min-height: 44px; box-sizing: border-box; }
.rp-add-version { width: 9em; }
.rp-add .rp-form { align-items: flex-end; }
.rp-add .err { margin: 0; }
/* REQ-90.3: app and website releases on the notes page. */
/* REQ-192.2.2: recorded app builds, newest first. */
.rn-builds { margin-bottom: 18px; }
.rn-builds-app { margin: 10px 0 4px; font-size: 15px; }
.rn-builds-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rn-build { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); overflow-wrap: anywhere; }
.rn-builds-none { margin: 0; color: var(--mute); }
.rn-plan-first { min-height: 44px; align-self: flex-start; margin-top: 4px; }
#rcCal .rn-plan-first { margin: 0 0 12px; }

/* REQ-91: the release plan. Status chips in one family, shape + word (Pablo 1,
   re-check): Draft dashed outline, Ready to plan hollow circle, Shipped tick
   filled. Late is a separate warning chip next to the date. No release is a
   neutral chip with a dash (Pablo 2). */
.rel-status { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; font: 700 12px/1.6 var(--font-body); color: var(--ink); white-space: nowrap; }
.rel-status.draft { border: 1.5px dashed var(--mute); }
.rel-status.ready-to-plan { border: 1.5px solid var(--accent); }
.rel-status.shipped { background: var(--done-soft); color: var(--done); border: 1.5px solid transparent; }
.rel-late { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; font: 700 12px/1.6 var(--font-body); background: var(--needs-soft); color: var(--needs); white-space: nowrap; }
.rel-none { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font: 600 12px/1.6 var(--font-body); background: var(--sunken); color: var(--mute); white-space: nowrap; }

/* REQ-96: a release's page (#releases/<product>/<version>) and its slideshow.
   Pablo's notes on REQ-96: header with product and status chips, the version
   as the title, Present and Copy link; cards with a 16:10 design preview
   (on top on a phone); a neutral info banner for Draft states. */
#releaseDocView { max-width: 1100px; margin: 0 auto; padding: 16px; }
.rd-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 700; text-decoration: none; }
.rd-back:hover { text-decoration: underline; }
.rd-head { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: end; margin: 4px 0 16px; }
.rd-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.rd-title { margin: 0; font: 800 30px/1.15 var(--font-display); }
.rd-title:focus { outline: none; }
.rd-date { grid-column: 1; margin: 0; color: var(--mute); }
.rd-actions { grid-column: 2; grid-row: 2 / span 2; display: flex; gap: 8px; flex-wrap: wrap; }
.rd-actions .btn { min-height: 44px; }
.rd-status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font: 700 12.5px/1.3 var(--font-body); background: var(--idle-soft); color: var(--idle); }
.rd-status-ready-to-plan { background: var(--working-soft); color: var(--working); }
.rd-status-shipped { background: var(--done-soft); color: var(--done); }
.rd-banner { display: flex; gap: 8px; align-items: center; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line); color: var(--ink); }
.rd-banner-icon { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--panel); color: var(--mute); font-weight: 800; }
.rd-note, .rd-count { color: var(--mute); margin: 8px 0; }
.rd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rd-card { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 16px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.rd-card.rd-new { animation: rd-in 400ms ease-out; }
.rd-card.rd-gone { display: block; color: var(--mute); background: var(--sunken); }
@keyframes rd-in { from { opacity: 0; } to { opacity: 1; } }
.rd-preview { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--sunken); display: grid; place-items: center; }
.rd-preview img { width: 100%; height: 100%; object-fit: cover; }
.rd-preview-none span { color: var(--mute); font-weight: 600; }
.rd-preview-link a, .rd-proto { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--accent); font-weight: 700; }
.rd-proto { position: absolute; right: 6px; bottom: 6px; background: var(--panel); border-radius: 8px; }
.rd-card-body { min-width: 0; }
.rd-card-top { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 4px; }
.rd-id { font: 600 12.5px/1 var(--font-mono); color: var(--mute); }
.rd-uat { padding: 3px 8px; border-radius: 999px; font: 700 12px/1.2 var(--font-body); background: var(--idle-soft); color: var(--idle); }
.rd-uat-done { background: var(--done-soft); color: var(--done); }
.rd-uat-blocked { background: var(--blocked-soft); color: var(--blocked); }
.rd-uat-needs { background: var(--needs-soft); color: var(--needs); }
.rd-card-title { margin: 0 0 4px; font: 800 18px/1.25 var(--font-display); }
.rd-card-title a { color: var(--ink); text-decoration: none; }
.rd-card-title a:hover { text-decoration: underline; }
.rd-why { margin: 0 0 6px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-owners { margin: 0; color: var(--mute); font-size: 13px; }
.rd-slide-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13.5px; }
.rd-slide-toggle input { width: 20px; height: 20px; }
.rn-doc { margin: 8px 0; }
.rn-doc .btn { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  .rd-head { grid-template-columns: 1fr; }
  .rd-actions { grid-column: 1; grid-row: auto; }
  .rd-card { grid-template-columns: 1fr; }
  .rd-title { font-size: 24px; }
}

/* The slideshow (96.2, Pablo 4–8): a 16:9 stage, letterboxed, dark by default. */
body.rd-showing { overflow: hidden; }
.rd-show { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: var(--rd-bg); color: var(--rd-ink); font-family: var(--font-body); }
.rd-show.dark { --rd-bg: #0D0B13; --rd-stage: #181520; --rd-ink: #F2F0F7; --rd-mute: #C4C1D2; --rd-accent: #A78BFA; --rd-sunken: #110E18; --rd-line: rgba(255,255,255,0.24); --rd-primary: #6D28D9; --rd-on-primary: #FFFFFF; }
.rd-show.light { --rd-bg: #ECEAF2; --rd-stage: #FFFFFF; --rd-ink: #17151F; --rd-mute: #55526A; --rd-accent: #7C3AED; --rd-sunken: #EFEDF5; --rd-line: rgba(23,21,31,0.2); --rd-primary: #6D28D9; --rd-on-primary: #FFFFFF; }
.rd-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 16px; touch-action: pan-y; }
.rd-slide { position: relative; box-sizing: border-box; width: min(100%, calc((100vh - 110px) * 16 / 9)); aspect-ratio: 16 / 9; max-height: 100%; background: var(--rd-stage); border-radius: 16px; padding: clamp(16px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: clamp(8px, 1.4vw, 20px); overflow: hidden; container-type: inline-size; }
.rd-s-eyebrow { margin: 0; color: var(--rd-mute); font: 700 clamp(13px, 1.6cqi, 22px)/1.2 var(--font-mono); letter-spacing: .04em; }
.rd-s-title { margin: 0; font: 800 clamp(22px, 4.2cqi, 64px)/1.1 var(--font-display); color: var(--rd-ink); }
.rd-s-sub, .rd-s-why { margin: 0; color: var(--rd-mute); font-size: clamp(15px, 2.2cqi, 32px); line-height: 1.3; }
.rd-s-bullets, .rd-s-list { margin: 0; padding-left: 1.2em; font-size: clamp(14px, 2cqi, 28px); line-height: 1.35; }
.rd-s-bullets li + li, .rd-s-list li + li { margin-top: .3em; }
.rd-s-id { font-family: var(--font-mono); color: var(--rd-mute); }
.rd-slide-feature { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(12px, 3cqi, 48px); }
.rd-s-text { display: flex; flex-direction: column; gap: clamp(6px, 1.2cqi, 18px); min-width: 0; }
.rd-s-design { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--rd-sunken); display: grid; place-items: center; }
.rd-s-design img { width: 100%; height: 100%; object-fit: contain; }
.rd-s-design a { color: var(--rd-accent); font-weight: 700; font-size: clamp(14px, 1.8cqi, 26px); }
.rd-s-design.none span { color: var(--rd-mute); font-size: clamp(14px, 1.8cqi, 26px); font-weight: 600; }
.rd-s-n { position: absolute; right: clamp(12px, 2cqi, 28px); bottom: clamp(8px, 1.6cqi, 22px); margin: 0; color: var(--rd-mute); font: 600 clamp(12px, 1.3cqi, 18px)/1 var(--font-mono); }
.rd-bar { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rd-line); transition: opacity 200ms; flex-wrap: wrap; }
.rd-show.idle .rd-bar { opacity: 0; }
.rd-show.idle { cursor: none; }
.rd-bar .btn { min-height: 44px; min-width: 44px; color: var(--rd-ink); background: transparent; border: 1px solid var(--rd-line); }
.rd-bar .btn.primary { color: var(--rd-on-primary); background: var(--rd-primary); border-color: transparent; }
.rd-bar .btn:focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 2px; }
.rd-bar .btn:disabled { opacity: .45; }
.rd-counter { min-width: 70px; text-align: center; font: 700 15px/1 var(--font-mono); }
.rd-print { display: none; }
@media (max-width: 760px), (orientation: portrait) {
  .rd-slide { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 12px; justify-content: flex-start; overflow: auto; }
  .rd-slide-feature { grid-template-columns: 1fr; align-content: start; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-card.rd-new { animation: none; }
  .rd-bar { transition: none; }
}
/* Printing the slideshow: one slide per page, light, with its number. */
@media print {
  body.rd-showing > *:not(.rd-print) { display: none !important; }
  body.rd-showing .rd-print { display: block; --rd-stage: #fff; --rd-ink: #000; --rd-mute: #444; --rd-sunken: #f2f2f2; --rd-accent: #5b21b6; color: #000; }
  .rd-print .rd-slide { width: 100%; aspect-ratio: 16 / 9; border: 1px solid #ccc; break-after: page; page-break-after: always; }
  .rd-print .rd-slide:last-child { break-after: auto; page-break-after: auto; }
}

/* REQ-96.1.4: screenshots of the built feature under the design preview,
   each opening full size (the UAT lightbox) with its UAT id. */
.rd-pics { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rd-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rd-shot { position: relative; padding: 0; min-height: 56px; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--sunken); cursor: zoom-in; color: var(--mute); font: 600 11px/1.2 var(--font-mono); }
.rd-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd-shot-id { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 6px; background: var(--panel); color: var(--ink); font: 600 10.5px/1.4 var(--font-mono); }
.rd-lb-uat { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font: 700 13px/1 var(--font-mono); }
.rd-s-design { position: relative; }
.rd-s-shot-id { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 8px; background: var(--rd-stage); color: var(--rd-mute); font: 600 clamp(11px, 1.2cqi, 16px)/1.4 var(--font-mono); }
/* REQ-130.2 (Pablo): a release's images: thumbnails labelled with size and language,
   a full-size dialog with Previous / Next and Download, 'No images yet'. */
.ri { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ri-title { margin: 0; font: 700 10.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ri-strip { list-style: none; margin: 0; padding: 2px; display: flex; gap: 10px; overflow-x: auto; }
.ri-thumb { display: flex; flex-direction: column; gap: 6px; padding: 6px; min-height: 44px; background: var(--sunken); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font: 600 12px/1.3 var(--font-body); text-align: left; cursor: pointer; }
.ri-thumb:hover { border-color: var(--line-strong); }
.ri-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ri-frame { display: block; height: 88px; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--panel); }
.ri-frame.wide { aspect-ratio: 16 / 9; }
.ri-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ri-frame.missing { border: 1px dashed var(--line-strong); }
.ri-none { margin: 0; color: var(--faint); font-size: 13px; }
.ri-dlg { width: min(960px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); box-sizing: border-box; margin: auto; padding: 16px; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); }
.ri-dlg::backdrop { background: var(--scrim); }
.ri-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ri-dlg-title { margin: 0; font: 800 18px/1.2 var(--font-display); overflow-wrap: anywhere; }
.ri-fig { margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.ri-full { display: block; width: 100%; height: auto; max-height: calc(100dvh - 220px); object-fit: contain; border-radius: 10px; background: var(--sunken); }
.ri-cap { color: var(--mute); font-size: 13px; }
.ri-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ri-nav .btn { min-height: 44px; }

/* REQ-175.4: the Trains tab (Pablo's mockup m1): per product the current
   release as a card, the next one smaller; tokens only. */
.rt { display: flex; flex-direction: column; gap: 24px; }
.rt-ph { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 18px; }
.rt-card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.rt-head { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
.rt-head h3 { margin: 0; font: 800 22px/1.1 var(--font-display); }
.rt-tag { font: 700 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.rt-state { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 700; font-size: 13px; color: var(--ink); }
.rt-state.s-proposed { border-style: dashed; }
.rt-line { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; align-items: stretch; }
.rt-date { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-top: 3px solid var(--line-strong); }
.rt-date.past { border-top-color: var(--accent); color: var(--mute); }
.rt-date.next { border-top-color: var(--accent); background: var(--accent-soft); border-radius: 0 0 10px 10px; }
.rt-dl { font-size: 12px; font-weight: 700; color: var(--mute); }
.rt-count { font-size: 13px; font-weight: 700; color: var(--accent); }
.rt-today { align-self: center; padding: 4px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 700 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.rt-prog { display: flex; flex-direction: column; gap: 6px; }
.rt-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--sunken); border: 1px solid var(--line); }
.rt-seg.passed { background: var(--done); }
.rt-seg.qa { background: var(--qa); }
.rt-seg.building { background: var(--working); }
.rt-words { margin: 0; font-weight: 700; }
.rt-reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rt-req { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.rt-req:hover, .rt-req:focus-visible { border-color: var(--accent); }
.rt-title { flex: 1; overflow-wrap: anywhere; }
.rt-st { flex: none; font-size: 12px; font-weight: 700; color: var(--mute); }
/* ISS-96: Steven's Approve and Change on a Proposed card. */
.rt-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-acts .btn { min-height: 44px; }
/* ISS-96: owners and how far along, on their own line under the title. */
.rt-who { flex-basis: 100%; font-size: 12px; color: var(--mute); }
.rt-none { margin: 0; color: var(--mute); }
@media (max-width: 600px) {
  .rt-line { flex-direction: column; }
  .rt-date { border-top: none; border-left: 3px solid var(--line-strong); }
  .rt-date.past, .rt-date.next { border-left-color: var(--accent); }
  .rt-date.next { border-radius: 0 10px 10px 0; }
  .rt-today { align-self: flex-start; }
  .rt-req { flex-wrap: wrap; }
}

/* REQ-214.1: the Releases page, one card per release (Pablo's mockup m1, v7 to v10).
   The current release is the full card; the next and other open ones are
   slimmer; shipped releases are rows; the backlog folds. Tokens only. */
.rr { display: flex; flex-direction: column; gap: 28px; }
/* REQ-214.10: a release card's ⋯ menu (a dialog; a bottom sheet on a phone) and its history. */
.rr-menu { margin-left: auto; }
.rr-move { width: min(440px, calc(100vw - 32px)); box-sizing: border-box; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); }
.rr-move::backdrop { background: var(--scrim); }
.rr-move h2 { margin: 0; font: 800 18px/1.2 var(--font-display); overflow-wrap: anywhere; }
.rr-move-state { margin: 4px 0 8px; color: var(--mute); font-size: 13px; }
.rr-move-tbd { margin: 0 0 12px; color: var(--mute); font-size: 13px; }
.rr-move .btn { min-height: 44px; }
.rr-move-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* 214.4: '+ Add requirements' on a card, and its search (a .rr-move dialog: a bottom sheet on a phone). */
.rr-waits { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--needs-soft); }
.rr-waits-head { margin: 0 0 6px; font: 700 13px/1.3 var(--font-display); }
.rr-waits-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rr-wait-req { display: inline-flex; gap: 8px; align-items: baseline; min-height: 44px; color: var(--ink); }
.rr-wait-why { display: block; color: var(--ink); font-size: 12.5px; }
/* REQ-213.3: design pending (planned before Ready) and what dropped at the scope freeze. */
.rr-design-pending { font-size: 11.5px; font-weight: 600; color: var(--needs); border: 1px solid currentColor; border-radius: 999px; padding: 0 6px; white-space: nowrap; }
.rr-dropped { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--needs-soft); }
.rr-dropped-head { margin: 0 0 6px; font: 700 13px/1.3 var(--font-display); }
.rr-dropped-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rr-add { width: 100%; min-height: 44px; margin-top: 12px; justify-content: center; }
.rr-add-closed { margin: 12px 0 0; color: var(--mute); font-size: 13px; }
.rr-add-dlg { width: min(640px, calc(100vw - 32px)); }
.rr-add-q, .rr-add-why { width: 100%; box-sizing: border-box; min-height: 44px; }
.rr-add-count { margin: 8px 0 4px; color: var(--mute); font-size: 13px; }
.rr-add-list { list-style: none; margin: 0; padding: 0; max-height: min(50vh, 420px); overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.rr-add-item + .rr-add-item { border-top: 1px solid var(--line); }
.rr-add-pick { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 2px 10px; min-height: 44px; padding: 8px 12px; cursor: pointer; }
.rr-add-pick input { width: 20px; height: 20px; margin: 0; }
.rr-add-id { font: 700 13px/1.3 var(--font-mono); }
.rr-add-title { overflow-wrap: anywhere; }
.rr-add-meta { grid-column: 3; color: var(--mute); font-size: 12.5px; }
.rr-add-note { margin: 0 12px 8px 42px; color: var(--mute); font-size: 12.5px; }
.rr-new { width: 100%; min-height: 44px; margin-top: 12px; justify-content: center; }
.rr-new-dlg { width: min(560px, calc(100vw - 32px)); }
.rr-new-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.rr-new-field .field { flex: 0 0 auto; height: 44px; min-height: 44px; box-sizing: border-box; width: 100%; }
.rr-new-hint { margin: 0; color: var(--mute); font-size: 12.5px; }
.rr-new-err { margin: 0; }
.rr-new-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 12px; }
.rr-move-tbd-pick { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.rr-move-tbd-pick input { width: 20px; height: 20px; margin: 0; }
.rr-history { display: flex; flex-direction: column; gap: 6px; }
.rr-history-head { margin: 0; font: 700 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.rr-history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rr-event { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.rr-event:first-child { border-top: 0; }
.rr-event[hidden] { display: none; }
.rr-event-when { color: var(--mute); font: 600 12px/1.6 var(--font-mono); white-space: nowrap; }
.rr-history-all { align-self: flex-start; min-height: 44px; }
/* REQ-214.11: a website's deploys since the last release, as the history list. */
.rr-since { display: flex; flex-direction: column; gap: 6px; }
.rr-since-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rr-since-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 13.5px; min-width: 0; }
.rr-since-row:first-child { border-top: 0; }
.rr-since-row[hidden] { display: none; }
.rr-since-by { color: var(--mute); font-size: 12.5px; }
.rr-since-refs { font: 600 12.5px/1.6 var(--font-mono); overflow-wrap: anywhere; }
.rr-since-what { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
.rr-since-empty { margin: 0; color: var(--mute); font-size: 13.5px; }
.rr-since-all { align-self: flex-start; min-height: 44px; }
.rr-product { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rr-card { scroll-margin-top: 96px; min-width: 0; }
.rr-current { border-color: var(--line-strong); }
.rr-next, .rr-planned { gap: 10px; padding: 14px 16px; }
.rr-next .rt-head h3, .rr-planned .rt-head h3 { font-size: 19px; }
.rr-head h3 { overflow-wrap: anywhere; }
.rr-state.s-none { border-style: dotted; color: var(--mute); }
.rr-approval { margin: -6px 0 0; color: var(--mute); font-size: 14px; }
.rr-approval.a-proposed { color: var(--needs); font-weight: 700; }
/* REQ-214.9: the token cost range, one line under the dates; it wraps on a phone. */
.rr-cost { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 14px; min-width: 0; }
.rr-cost-lab { font: 700 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.rr-cost-words { min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rr-cost-reading .rr-cost-words { color: var(--mute); }
.rr-cost-link { min-height: 44px; display: inline-flex; align-items: center; }
.rr-tbd { margin: 0; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--mute); font-weight: 600; }
.rr-content { display: flex; flex-direction: column; gap: 8px; }
.rr-reqs .rq-pill { flex: none; }
/* REQ-214.8: the requirements by status (a fold with its count), then by owner
   (a heading that never folds, sticky on a phone); Closed rows striped. */
.rr-group { border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; }
.rr-group[open] { padding-bottom: 10px; }
.rr-group-head { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font: 700 12px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.rr-group-head::-webkit-details-marker { display: none; }
.rr-group-head::before { content: '▸' / ''; color: var(--mute); }
.rr-group[open] > .rr-group-head::before { content: '▾' / ''; }
.rr-glyph { color: var(--st); }
.rr-group-n { font-weight: 700; color: var(--mute); }
.rr-group-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.rr-owner-group { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.rr-owner { display: flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; font: 700 15px/1.3 var(--font-body); color: var(--ink); background: var(--panel); }
.rr-owner-n { font: 600 12px/1 var(--font-mono); color: var(--faint); }
.rr-others { display: inline-flex; gap: 2px; }
.rr-other[data-agent] .ag-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rr-other img { margin: 0; }
/* Closed: diagonal stripes from two tokens (ink stays readable on both), and the word Closed on its chip. */
.rr-closed .rt-req { background: repeating-linear-gradient(135deg, var(--panel) 0 7px, var(--sunken) 7px 14px); }
.rr-closed .rt-title { text-decoration: line-through; text-decoration-color: var(--faint); }
.rr-links { display: flex; flex-wrap: wrap; gap: 8px; }
.rr-links .btn { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.rr-acts { align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.rr-only { margin: 0; color: var(--mute); font-size: 13px; }
.rr-card .rn-entry { box-shadow: none; }
.rr-shipped { display: flex; flex-direction: column; gap: 8px; }
.rr-shipped-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rr-part { margin: 8px 0 0; font: 700 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.rr-journeys { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.rr-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.rr-row { display: grid; grid-template-columns: 9em 5em minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 8px 16px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.rr-row:first-child { border-top: 0; }
.rr-row.open { background: var(--sunken); }
.rr-v { font: 800 16px/1.2 var(--font-display); color: var(--accent); overflow-wrap: anywhere; }
.rr-date { font: 600 12.5px/1.4 var(--font-mono); color: var(--mute); }
.rr-sum { font-weight: 600; overflow-wrap: anywhere; }
.rr-rowlinks { display: flex; gap: 14px; justify-content: flex-end; }
.rr-link, .rr-journeys { color: var(--accent); text-decoration: none; }
.rr-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.rr-link:hover, .rr-journeys:hover { text-decoration: underline; }
.rr-deploys { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.rr-deploy[aria-current] { color: var(--ink); text-decoration: underline; }
.rr-row > .rn-entry { grid-column: 1 / -1; margin: 4px 0 8px; }
.rr-row > .rr-since { grid-column: 1 / -1; margin: 4px 0 4px; }   /* REQ-214.11.4: deploys under the latest shipped row */
.rr-older > summary, .rr-backlog > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; }
.rr-older { padding: 0 4px; }
.rr-older > .rr-rows { margin-top: 6px; }
.rr-backlog { padding: 4px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.rr-backlog[open] { padding-bottom: 14px; }
@media (max-width: 600px) {
  /* 214.1.5: the product chips scroll sideways; the card stacks; Approve and Change stick to the bottom. */
  #releaseNotesView .rn-products { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  #releaseNotesView .rn-product { flex: none; }
  .rr-card { padding: 14px 12px; }
  .rr-acts { position: sticky; bottom: 0; z-index: 2; margin: 0 -12px -14px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--panel); border-radius: 0 0 16px 16px; }
  .rr-acts .btn[data-act="approve"] { flex: 1; }
  .rr-only { flex-basis: 100%; }
  .rr-row { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 12px; }
  .rr-sum { grid-column: 1 / -1; }
  .rr-rowlinks { grid-column: 1 / -1; justify-content: flex-start; }
  .rr-links .btn { flex: 1 1 auto; justify-content: center; }
  /* 214.8.4: the groups full width; an owner's heading stays in view while you scroll its requirements. */
  .rr-group { margin: 0 -4px; padding: 0 6px; }
  .rr-owner { position: sticky; top: var(--nav-h, 0px); z-index: 2; }
  /* 214.10: Move date's form opens as a bottom sheet, like the card's ⋯ menu (action-menu.css). */
  .rr-move { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  /* The dates as a short list (mockup section 7). */
  .rr-line { gap: 2px; }
  .rr-line .rt-date { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 4px 10px; }
  .rr-line .rt-dl { min-width: 7.5em; }
}
/* REQ-211.1.1, 211.4.1: a release train's document, from its card and its page. */
.rd-spec { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--accent); }
.rd-spec:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
