/* screens/report.css — styles for s06 s07 s11 s12 s16 s17.
   Every rule is scoped under its screen root. Tokens only (shared/tokens.css); no colour literals. Class prefix: rp-. */

/* ------------------------------------------------------------------ shared report-group layout */
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-10); align-items: start;
}
@media (min-width: 1080px) {
  :is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-layout {
    grid-template-columns: minmax(0, 720px) minmax(260px, 320px); justify-content: space-between; column-gap: var(--s-12);
  }
  /* one reading column when there is no side panel (no report here, not offered, s06 at Simple) */
  :is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-layout--none { grid-template-columns: minmax(0, 720px); justify-content: start; }
  .scr-s06 .rp-layout--single { grid-template-columns: minmax(0, var(--read-max)); justify-content: center; }
}
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-main { display: flex; flex-direction: column; gap: var(--s-8); min-width: 0; }
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-aside { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-side {
  display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); min-width: 0;
  background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-md);
}
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-side__title {
  font-size: var(--t-caption); line-height: var(--t-caption-lh); letter-spacing: 0.07em; text-transform: uppercase; font-weight: 600; color: var(--text-3);
}
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-side .hb-list { border-radius: var(--r-sm); }
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-side .hb-listrow { padding-left: var(--s-4); padding-right: var(--s-3); }
/* read-only view (a team member viewing the account): the reason sits beside the disabled save controls */
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-ro { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-ro .hb-ic { margin-top: 2px; flex: none; }

/* definition rows */
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-facts { margin: 0; display: flex; flex-direction: column; }
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-facts__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px var(--s-3); padding: 10px 0;
  border-top: 1px solid var(--border-subtle); font-size: var(--t-small); line-height: var(--t-small-lh);
}
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-facts__row:first-child { border-top: 0; padding-top: 2px; }
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-facts dt { color: var(--text-2); }
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-facts dd { margin: 0; text-align: right; color: var(--text-1); font-weight: 500; font-variant-numeric: tabular-nums; }
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-facts--data { padding: var(--s-3) var(--s-4); background: var(--surface-2); border-radius: var(--r-sm); }
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-facts--data .rp-facts__row { border-top-color: var(--border-subtle); }

/* the reference band's literal position, the first line under the strip (s06 Home card, s11, s12) */
:is(.scr-s06, .scr-s11, .scr-s12) .rp-band__line { margin-top: var(--s-2); max-width: 62ch; font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-1); }

/* this-sample identity mark (ember diamond); never a verdict */
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-sampledot {
  display: inline-block; flex: none; width: 9px; height: 9px; margin-right: 8px; transform: rotate(45deg); border-radius: 2px;
  background: var(--you); box-shadow: 0 0 0 2px var(--you-halo); vertical-align: 1px;
}
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-rowicon { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }

/* standalone text links keep a 44 px target */
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-datefix .hb-btn--link,
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-facts .hb-btn--link,
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-recorded .hb-btn--link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; vertical-align: middle;
}
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .hb-btn--link .hb-ic { width: 16px; height: 16px; }

/* explanation list (How this model behaves) */
:is(.scr-s11, .scr-s12) .rp-qa { display: flex; flex-direction: column; }
:is(.scr-s11, .scr-s12) .rp-qa__item { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5) 0; border-top: 1px solid var(--border-subtle); min-width: 0; }
:is(.scr-s11, .scr-s12) .rp-qa__item:first-child { border-top: 0; padding-top: 0; }
:is(.scr-s11, .scr-s12) .rp-qa__body { max-width: 64ch; color: var(--text-1); }
:is(.scr-s11, .scr-s12) .rp-qa__item .hb-fig { margin-top: var(--s-3); }
:is(.scr-s11, .scr-s12) .rp-qa__data { display: flex; flex-direction: column; gap: var(--s-3); padding-left: var(--s-4); border-left: 2px solid var(--border-subtle); font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }

/* ------------------------------------------------------------------ s06 · the letter
   Type ramp on this page: 36 (first fact) · 24 (title, other facts, finish line) · 18 (lead) · 17 (fact sentences)
   · 16 (rows) · 15 (links) · 14 (detail) · 12 (labels). */
.scr-s06 .rp-main { gap: var(--s-8); }
.scr-s06 .hb-letter { max-width: none; }
.scr-s06 .rp-lead { font-size: 1.125rem; line-height: 1.75rem; color: var(--text-1); max-width: 60ch; letter-spacing: -0.003em; }
.scr-s06 .rp-datefix { margin-top: -4px; font-size: var(--t-small); }
/* with a side panel (More, Data) its "Add" row carries the date fix on wide screens */
@media (min-width: 1080px) { .scr-s06:not([data-depth="simple"]) .rp-datefix { display: none; } }
.scr-s06 .rp-glance .hb-fig { margin: 0; }
.scr-s06 .rp-glance .hb-fig__cap { max-width: 62ch; }
.scr-s06 .rp-obsgroup { background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.scr-s06 .rp-obsgroup .hb-obs { border: 0; border-radius: 0; background: transparent; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--s-2) var(--s-6); padding: var(--s-6) var(--s-8) var(--s-5) var(--s-6); }
.scr-s06 .rp-obsgroup .hb-obs + .hb-obs { border-top: 1px solid var(--border-subtle); }
/* the figure: number with its unit underneath; the first fact at the report's count size, the others as supporting facts */
.scr-s06 .rp-obsgroup .hb-obs__fig { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 2px; }
.scr-s06 .rp-obsgroup .hb-obs__num { font-size: var(--t-h1); line-height: var(--t-h1-lh); color: var(--text-1); }
.scr-s06 .rp-obsgroup .hb-obs:first-child .hb-obs__num { font-size: var(--t-num); line-height: var(--t-num-lh); }
.scr-s06 .rp-obsgroup .hb-obs__unit { font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
.scr-s06 .rp-obsgroup .hb-obs__text { font-size: 1.0625rem; line-height: 1.625rem; padding-top: 4px; }
.scr-s06 .rp-obsgroup .hb-obs + .hb-obs .hb-obs__text { padding-top: 0; }
.scr-s06 .rp-obsgroup .hb-obs__more { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.scr-s06 .rp-obsgroup .hb-obs__more > .hb-btn--quiet { margin-left: calc(-1 * var(--s-3)); }
.scr-s06 .rp-obs--none .hb-obs__fig { color: var(--text-3); display: flex; padding-top: 2px; }
/* The first fact's supporting line: the counting threshold and relative sequence abundance, defined before the top-three sentence. */
.scr-s06 .rp-obs__more { display: block; margin-top: var(--s-3); font-size: var(--t-small); line-height: 1.375rem; color: var(--text-2); }
.scr-s06 .rp-obs__data { display: block; margin-top: var(--s-3); padding-left: var(--s-3); border-left: 2px solid var(--border-subtle); font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
.scr-s06 .rp-top3 { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; border-radius: var(--r-sm); background: var(--surface-2); }
.scr-s06 .rp-top3 li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: 10px var(--s-4); font-size: var(--t-small); line-height: var(--t-small-lh); }
.scr-s06 .rp-top3 li + li { border-top: 1px solid var(--border-subtle); }
.scr-s06 .rp-top3__shape { display: inline-flex; }
.scr-s06 .rp-top3__name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s-2); min-width: 0; color: var(--text-1); overflow-wrap: anywhere; }
.scr-s06 .rp-top3__group { flex-basis: 100%; font-size: var(--t-caption); line-height: var(--t-caption-lh); color: var(--text-3); }
.scr-s06 .rp-top3__pct { font-weight: 600; color: var(--text-1); }
.scr-s06 .rp-limit__title { font-weight: 600; margin-bottom: 2px; }
.scr-s06 .rp-data { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-2); }
.scr-s06 .rp-data .hb-table th[scope="row"] { font-weight: 500; color: var(--text-1); }
/* the finish line stays final: generous space above, then one quiet list */
.scr-s06 .hb-finish { padding: var(--s-10) 0 var(--s-6); }
.scr-s06 .rp-below { gap: var(--s-6); padding-top: 0; }
.scr-s06 .rp-qlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-subtle); }
.scr-s06 .rp-qlist > li { border-bottom: 1px solid var(--border-subtle); }
.scr-s06 .rp-qrow {
  -webkit-appearance: none; appearance: none; font: inherit; text-align: left; width: 100%; box-sizing: border-box;
  display: flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: var(--s-2) var(--s-2) var(--s-2) 0;
  border: 0; border-radius: 0; background: transparent; color: var(--text-1); text-decoration: none; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.scr-s06 .rp-qrow:hover { background: var(--brand-softer); }
.scr-s06 .rp-qrow:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.scr-s06 .rp-qrow--static { cursor: default; }
.scr-s06 .rp-qrow--static:hover { background: transparent; }
.scr-s06 .rp-qrow__icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; color: var(--text-2); }
.scr-s06 .rp-qrow__text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scr-s06 .rp-qrow__title { font-size: 1rem; line-height: 1.375rem; font-weight: 600; }
.scr-s06 .rp-qrow__desc { font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
.scr-s06 .rp-qrow__chev { flex: none; color: var(--text-3); }
/* Home's status line above the letter (a pending kit, or all ready) */
.scr-s06 .rp-next {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); min-height: 44px; padding: var(--s-2) var(--s-3) var(--s-2) var(--s-4); max-width: var(--read-max); box-sizing: border-box;
  border: 1px solid var(--border-subtle); border-radius: var(--r-pill); background: var(--surface-1);
  font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-1); text-decoration: none;
}
.scr-s06 a.rp-next:hover { background: var(--brand-softer); }
.scr-s06 a.rp-next:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.scr-s06 .rp-next__dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--you); box-shadow: 0 0 0 3px var(--you-halo); }
.scr-s06 .rp-next--done > .hb-ic { flex: none; color: var(--text-2); }
.scr-s06 .rp-next__text { flex: 1 1 14rem; min-width: 0; }
.scr-s06 .rp-next__go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--interactive); font-weight: 600; }
/* on a phone the line may take two rows, so the pill becomes a rounded box */
@media (max-width: 559px) { .scr-s06 .rp-next { border-radius: var(--r-md); } }
.scr-s06 .rp-homeage .hb-fig { margin: var(--s-2) 0 0; }
.scr-s06 .rp-reading { font-size: var(--t-caption); font-weight: 600; color: var(--you-ink); text-transform: uppercase; letter-spacing: 0.06em; }
.scr-s06 .rp-aside .hb-fig__legend { gap: var(--s-2) var(--s-3); }
.scr-s06 .rp-print-head, .scr-s06 .rp-print-foot { display: none; }
/* the feedback prompt belongs to the reading column */
.scr-s06 .hb-prompt { max-width: var(--read-max); background: transparent; border-top: 1px solid var(--border-subtle); border-radius: 0; padding: var(--s-4) 0; }
.scr-s06[data-depth="simple"] .hb-prompt { margin-inline: auto; }
@media (min-width: 1080px) {
  .scr-s06 .rp-aside.rp-aside--sticky { position: sticky; top: calc(var(--chrome-h) + var(--s-6)); }
}
@media (max-width: 767px) {
  .scr-s06 .hb-letter__head .hb-eyebrow { display: none; }
  .scr-s06 .rp-obsgroup { border-radius: var(--r-md); }
  .scr-s06 .rp-obsgroup .hb-obs { grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s-2) var(--s-4); padding: var(--s-5) var(--s-4); }
  .scr-s06 .rp-lead { font-size: 1.0625rem; line-height: 1.625rem; }
}
@media (max-width: 479px) {
  /* one column: the unit sits beside the number on its baseline */
  .scr-s06 .rp-obsgroup .hb-obs { grid-template-columns: minmax(0, 1fr); gap: var(--s-1) var(--s-4); }
  .scr-s06 .rp-obsgroup .hb-obs__fig { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 2px var(--s-2); }
  .scr-s06 .rp-obsgroup .hb-obs__text, .scr-s06 .rp-obsgroup .hb-obs + .hb-obs .hb-obs__text { padding-top: 0; }
}
/* Motion with intent, never under Motion: Off (Appearance; System follows reduced motion): the facts card fade-drops in
   once per report per session (ui.css hb-drop), its three facts fading in turn; newly shown More/Data detail fades in
   after a depth change (marked hb-grew; app.js plays it); at the finish line the check is drawn as it enters view, while a hairline in the
   mark's own colors wipes across (the logo's fill easing) and fades back, and the check glows once. Every flourish ends
   exactly where the still page is, so a capture with motion off shows the same letter. */
:root[data-motion="on"] .scr-s06 .rp-obsgroup.is-reveal { animation: hb-drop var(--dur-slow) var(--ease-out) both; }
:root[data-motion="on"] .scr-s06 .rp-obsgroup.is-reveal .hb-obs { animation: hb-fade var(--dur-slow) var(--ease-out) var(--stagger) both; }
:root[data-motion="on"] .scr-s06 .rp-obsgroup.is-reveal .hb-obs:nth-child(2) { animation-delay: calc(var(--stagger) * 2); }
:root[data-motion="on"] .scr-s06 .rp-obsgroup.is-reveal .hb-obs:nth-child(3) { animation-delay: calc(var(--stagger) * 3); }
@media screen {
  :root[data-motion="on"] .scr-s06 .rp-check--pending circle, :root[data-motion="on"] .scr-s06 .rp-check--pending path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  :root[data-motion="on"] .scr-s06 .rp-check--draw circle, :root[data-motion="on"] .scr-s06 .rp-check--draw path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-slow) var(--ease-out); }
  :root[data-motion="on"] .scr-s06 .rp-check--draw path { transition-delay: calc(var(--stagger) * 2); }
  .scr-s06 .hb-finish::after { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--s-10) - 0.5px); height: 2px; border-radius: 2px; pointer-events: none;
    background: linear-gradient(90deg, var(--pill-a), var(--pill-m) 34%, var(--pill-b) 72%, transparent); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
  :root[data-motion="on"] .scr-s06 .hb-finish.rp-finish--moment::after { animation: rp-finish-wipe 0.75s cubic-bezier(0.45, 0, 0.2, 1) 0.12s both, rp-finish-fade 0.9s ease-in 1.5s forwards; }
  :root[data-motion="on"] .scr-s06 .hb-finish.rp-finish--moment .hb-finish__mark .hb-ic { animation: rp-finish-glow 1.1s ease-out 0.4s both; }
}
@keyframes rp-finish-wipe { from { transform: scaleX(0); opacity: 1; } to { transform: scaleX(1); opacity: 1; } }
@keyframes rp-finish-fade { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(1); opacity: 0; } }
@keyframes rp-finish-glow { 0%, 100% { filter: none; } 40% { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--pill-a) 85%, transparent)); } }
@media print {
  .scr-s06 .rp-print-head { display: flex; align-items: center; gap: 16px; font-size: 12px; line-height: 16px; color: var(--text-2); padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--border-subtle); }
  .scr-s06 .rp-print-head > span:last-child { margin-left: auto; }
  .scr-s06 .rp-print-mark { display: inline-flex; align-items: center; gap: 8px; color: var(--logo-wordmark); font-size: 15px; letter-spacing: -0.01em; }
  .scr-s06 .rp-print-word b { font-weight: 700; }
  .scr-s06 .rp-print-mark .hblogo { width: 40px; height: 20px; }
  .scr-s06 .rp-print-mark .hbword { height: 14px; }
  .scr-s06 .hb-pagehead__tools, .scr-s06 .hb-finish .hb-small, .scr-s06 .rp-glance .hb-discwrap, .scr-s06 .hb-hiddenline { display: none !important; }
  .scr-s06 .rp-print-foot { display: block; margin-top: 16px; break-inside: avoid; }
  .scr-s06 .rp-print-lines { height: 48px; margin: 6px 0 6px; border-bottom: 1px solid var(--border-subtle); background: linear-gradient(var(--border-subtle) 1px, transparent 1px) 0 23px / 100% 24px; }
  /* one A4 page: a tighter print rhythm with the same content */
  .scr-s06 .rp-layout { display: block; }
  .scr-s06 .rp-main { gap: 10px; }
  .scr-s06 .hb-letter { gap: 10px; }
  .scr-s06 .hb-letter__head { padding-bottom: 8px; gap: 4px; }
  .scr-s06 .hb-letter__head .hb-eyebrow { display: none; }
  .scr-s06 .hb-letter__head .hb-display { font-size: 26px; line-height: 32px; }
  .scr-s06 .hb-letter__body { gap: 10px; font-size: 14px; line-height: 20px; }
  .scr-s06 .rp-lead { font-size: 15px; line-height: 21px; }
  .scr-s06 .rp-glance .hb-fig__cap { font-size: 11px; line-height: 15px; }
  .scr-s06 .hb-finish { padding: 8px 0 0; gap: 0; }
  .scr-s06 .hb-finish::before { margin-bottom: 8px; }
  .scr-s06 .hb-finish__mark { font-size: 18px; line-height: 24px; }
  .scr-s06 .rp-obsgroup .hb-obs { padding: 8px 14px; }
  .scr-s06 .rp-obsgroup .hb-obs__text { font-size: 14px; line-height: 20px; padding-top: 0; }
  .scr-s06 .rp-obsgroup .hb-obs__num { font-size: 22px; line-height: 26px; }
  .scr-s06 .rp-obsgroup .hb-obs:first-child .hb-obs__num { font-size: 28px; line-height: 32px; }
  .scr-s06 .hb-limit { padding: 8px 14px; font-size: 13px; line-height: 18px; }
  .scr-s06 .rp-print-foot .hb-h3 { font-size: 14px; line-height: 18px; }
  .scr-s06 .rp-aside, .scr-s06 .hb-below, .scr-s06 .hb-letter__body > .hb-actions, .scr-s06 .rp-next, .scr-s06 .hb-move, .scr-s06 .hb-obs__more > .hb-btn, .scr-s06 .rp-datefix, .scr-s06 .hb-samplebar .hb-btn, .scr-s06 .rp-data .hb-actions { display: none !important; }
  .scr-s06 .rp-obsgroup { box-shadow: none; }
  .scr-s06 .rp-check--pending circle, .scr-s06 .rp-check--pending path { stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* ------------------------------------------------------------------ s11 / s12 · model estimates */
:is(.scr-s11, .scr-s12) .rp-est {
  display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6) var(--s-8) var(--s-6);
  background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); box-shadow: var(--shadow-1); min-width: 0;
}
:is(.scr-s11, .scr-s12) .rp-est__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
:is(.scr-s11, .scr-s12) .rp-est__intro { font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
:is(.scr-s11, .scr-s12) .rp-est__define { font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); max-width: 62ch; }
:is(.scr-s11, .scr-s12) .rp-output { display: flex; flex-direction: column; gap: 2px; padding: var(--s-1) 0; border-radius: var(--r-sm); }
:is(.scr-s11, .scr-s12) .rp-output:focus { outline: none; }
:is(.scr-s11, .scr-s12) .rp-output:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
:is(.scr-s11, .scr-s12) .rp-output__label { display: flex; align-items: center; font-size: var(--t-small); line-height: var(--t-small-lh); font-weight: 600; color: var(--you-ink); }
:is(.scr-s11, .scr-s12) .rp-output__value { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); }
:is(.scr-s11, .scr-s12) .rp-output__num { font-size: 2rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text-1); }
:is(.scr-s11, .scr-s12) .rp-output__unit { font-size: 1.0625rem; font-weight: 500; color: var(--text-2); }
:is(.scr-s11, .scr-s12) .rp-est__explain { max-width: 62ch; color: var(--text-1); }
:is(.scr-s11, .scr-s12) .rp-est__word { font-size: var(--t-h2); line-height: var(--t-h2-lh); font-weight: 600; color: var(--text-1); text-wrap: balance; }
:is(.scr-s11, .scr-s12) .rp-est .hb-fig { margin: 0; }
:is(.scr-s11, .scr-s12) .rp-est__fact { display: flex; gap: var(--s-2); align-items: flex-start; max-width: 62ch; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--surface-2); font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-1); }
:is(.scr-s11, .scr-s12) .rp-est__fact .hb-ic { margin-top: 2px; flex: none; color: var(--text-2); }
:is(.scr-s11, .scr-s12) .rp-est__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--border-subtle); }
:is(.scr-s11, .scr-s12) .rp-est__foot .hb-btn--quiet { margin-left: calc(-1 * var(--s-3)); }
:is(.scr-s11, .scr-s12) .rp-est--state { flex-direction: row; align-items: flex-start; gap: var(--s-4); }
:is(.scr-s11, .scr-s12) .rp-state__icon { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
:is(.scr-s11, .scr-s12) .rp-state__text { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
:is(.scr-s11, .scr-s12) .rp-recorded {
  display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5) var(--s-6);
  border: 1px dashed var(--border-strong); border-radius: var(--r-md); background: var(--surface-0);
}
:is(.scr-s11, .scr-s12) .rp-notice { margin: calc(-1 * var(--s-4)) 0 var(--s-8); max-width: 720px; }
:is(.scr-s11, .scr-s12) .rp-behaves { display: flex; flex-direction: column; gap: var(--s-4); padding-top: var(--s-2); }
:is(.scr-s11, .scr-s12) .rp-behaves > .hb-h2 { padding-bottom: var(--s-2); }
.scr-s11 .rp-readback { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5) var(--s-6); border-radius: var(--r-md); background: var(--surface-2); }
.scr-s11 .rp-readback .hb-choice { background: var(--surface-1); }
.scr-s11 .rp-readback form { display: flex; flex-direction: column; gap: var(--s-4); }
.scr-s12 .rp-ask__q { font-family: var(--font-display); font-size: var(--t-h1); line-height: var(--t-h1-lh); font-weight: 420; letter-spacing: -0.01em; font-variation-settings: 'opsz' 36; text-wrap: balance; }
.scr-s12 .rp-ask__q:focus { outline: none; }
.scr-s12 .rp-cancannot { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.scr-s12 .rp-cancannot__col { display: flex; flex-direction: column; gap: 4px; padding: var(--s-4); border-radius: var(--r-sm); background: var(--surface-2); }
.scr-s12 .rp-ask__actions .hb-btn { flex: 1 1 200px; }
.scr-s12 .rp-setrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); background: var(--surface-2); }
.scr-s12 .rp-setrow__label { font-size: var(--t-small); color: var(--text-2); }
.scr-s12 .rp-setrow__value { font-weight: 600; }
.scr-s12 .rp-withdrawn .hb-list { box-shadow: none; }
@media (max-width: 767px) {
  :is(.scr-s11, .scr-s12) .rp-est { padding: var(--s-5) var(--s-4); border-radius: var(--r-md); }
  :is(.scr-s11, .scr-s12) .rp-recorded { padding: var(--s-4); }
  :is(.scr-s11, .scr-s12) .rp-output__num { font-size: 1.75rem; line-height: 2.25rem; }
  :is(.scr-s11, .scr-s12) .rp-notice { margin-top: calc(-1 * var(--s-2)); margin-bottom: var(--s-6); }
}
/* the preference sheet for estimates (dialog lives outside the page root, so it is scoped by its own content class) */
.hb-sheet.rp-sheet .rp-pref { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid var(--border-subtle); }
.hb-sheet.rp-sheet .rp-example { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-sm); background: var(--surface-2); }
.hb-sheet.rp-sheet .rp-example__name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-weight: 500; }
.hb-sheet.rp-sheet .rp-countline { padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--surface-2); }
.hb-sheet.rp-sheet .rp-facts { margin: 0; display: flex; flex-direction: column; }
.hb-sheet.rp-sheet .rp-facts__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px var(--s-3); padding: 10px 0; border-top: 1px solid var(--border-subtle); font-size: var(--t-small); line-height: var(--t-small-lh); }
.hb-sheet.rp-sheet .rp-facts__row:first-child { border-top: 0; padding-top: 0; }
.hb-sheet.rp-sheet .rp-facts dt { color: var(--text-2); }
.hb-sheet.rp-sheet .rp-facts dd { margin: 0; color: var(--text-1); font-weight: 500; }
.hb-sheet.rp-sheet .rp-facts--stack .rp-facts__row { flex-direction: column; }
.hb-sheet.rp-sheet .rp-facts--stack dt { color: var(--text-1); font-weight: 600; }
.hb-sheet.rp-sheet .rp-facts--stack dd { font-weight: 400; color: var(--text-2); }
.hb-sheet.rp-sheet .rp-rowicon { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.hb-sheet.rp-sheet .rp-qa { display: flex; flex-direction: column; }
.hb-sheet.rp-sheet .rp-qa__item { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) 0; border-top: 1px solid var(--border-subtle); min-width: 0; }
.hb-sheet.rp-sheet .rp-qa__item:first-child { border-top: 0; padding-top: 0; }
.hb-sheet.rp-sheet .rp-qa__item .hb-fig { margin-top: var(--s-2); }
.hb-sheet.rp-sheet .rp-qa__data { display: flex; flex-direction: column; gap: var(--s-3); padding-left: var(--s-4); border-left: 2px solid var(--border-subtle); font-size: var(--t-small); color: var(--text-2); }

/* ------------------------------------------------------------------ s07 · general ideas */
.scr-s07 .rp-main { gap: var(--s-10); }
.scr-s07 #rp-week { outline: none; border-radius: var(--r-lg); }
.scr-s07 .rp-idea { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); min-width: 0; background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.scr-s07 .rp-idea--hero { gap: var(--s-4); padding: var(--s-8); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--brand-softer), transparent 55%), var(--surface-1); }
.scr-s07 .rp-idea__top { display: flex; align-items: center; gap: var(--s-3); }
.scr-s07 .rp-idea__badge { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.scr-s07 .rp-idea__kicker { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scr-s07 .rp-idea__topic { font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
.scr-s07 .rp-idea__title { font-size: var(--t-h2); line-height: var(--t-h2-lh); font-weight: 600; letter-spacing: -0.006em; }
.scr-s07 .rp-idea--hero .rp-idea__title { font-family: var(--font-display); font-size: 2rem; line-height: 2.375rem; font-weight: 400; letter-spacing: -0.016em; font-variation-settings: 'opsz' 60; text-wrap: balance; }
.scr-s07 .rp-idea__body { max-width: 60ch; color: var(--text-1); }
.scr-s07 .rp-idea--hero .rp-idea__body { font-size: 1.0625rem; line-height: 1.75rem; }
.scr-s07 .rp-idea__ev { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); max-width: 62ch; font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
.scr-s07 .rp-idea__trying { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-2); font-size: var(--t-small); font-weight: 600; color: var(--text-1); }
.scr-s07 .rp-idea__trying .hb-ic { color: var(--brand); }
.scr-s07 .rp-idea__src { color: var(--text-3); }
.scr-s07 .rp-idea__actions { gap: var(--s-2); }
.scr-s07 .rp-why { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); background: var(--surface-2); }
.scr-s07 .rp-sechead { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--s-4); }
.scr-s07 .rp-sechead--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-4); }
.scr-s07 .rp-sechead .hb-h2:focus { outline: none; }
.scr-s07 .rp-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.scr-s07 .rp-pill {
  -webkit-appearance: none; appearance: none; font: inherit; min-height: 44px; padding: 0 var(--s-5); border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: var(--surface-1); color: var(--text-1); font-weight: 500; font-size: 0.9375rem; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.scr-s07 .rp-pill:hover { background: var(--surface-2); }
.scr-s07 .rp-pill[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }
.scr-s07 .rp-data { display: flex; flex-direction: column; gap: var(--s-3); }
.scr-s07 .rp-ideagrid { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
.scr-s07 .rp-browse__hint { padding: var(--s-4) var(--s-5); border: 1px dashed var(--border-strong); border-radius: var(--r-sm); }
.scr-s07 .rp-allseen { margin-bottom: var(--s-3); }
.scr-s07 .rp-hiddenline { font-size: var(--t-small); color: var(--text-2); }
.scr-s07 .rp-hiddenline .hb-btn--link { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 767px) {
  .scr-s07 .rp-idea--hero { padding: var(--s-5) var(--s-4); border-radius: var(--r-md); }
  .scr-s07 .rp-idea { padding: var(--s-5) var(--s-4); }
  .scr-s07 .rp-idea--hero .rp-idea__title { font-size: 1.625rem; line-height: 2rem; }
}

/* ------------------------------------------------------------------ s16 · help, feedback and private messages */
.scr-s16 .rp-main { gap: var(--s-10); }
.scr-s16 .rp-helpsec { display: flex; flex-direction: column; gap: var(--s-3); }
.scr-s16 .rp-sechead { display: flex; flex-direction: column; gap: 4px; }
.scr-s16 .rp-sechead .hb-h2:focus { outline: none; }
.scr-s16 .rp-helpsec > .hb-btn { align-self: flex-start; }
.scr-s16 .rp-emerg { display: flex; gap: var(--s-2); align-items: center; font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
.scr-s16 .rp-thread { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--surface-1); box-shadow: var(--shadow-1); }
.scr-s16 .rp-thread__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2); }
.scr-s16 .rp-thread__head .hb-h3:focus { outline: none; }
.scr-s16 .rp-msg { display: flex; flex-direction: column; gap: 6px; padding: var(--s-4); border-radius: var(--r-md); max-width: 92%; }
.scr-s16 .rp-msg--you { align-self: flex-end; background: var(--surface-2); border-bottom-right-radius: 6px; }
.scr-s16 .rp-msg--team { align-self: flex-start; background: var(--brand-softer); border: 1px solid var(--border-subtle); border-bottom-left-radius: 6px; }
.scr-s16 .rp-msg__meta { font-size: var(--t-caption); line-height: var(--t-caption-lh); font-weight: 600; color: var(--text-2); }
.scr-s16 .rp-msg__attach { display: flex; align-items: center; gap: 6px; font-size: var(--t-caption); line-height: var(--t-caption-lh); color: var(--text-2); }
.scr-s16 .rp-thread__status { font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
.scr-s16 .rp-thread__foot { padding-top: var(--s-2); border-top: 1px solid var(--border-subtle); }
.scr-s16 .rp-thread__foot .hb-btn--quiet { margin-left: calc(-1 * var(--s-3)); }
.scr-s16 .rp-confirm { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-sm); background: var(--surface-2); }
.scr-s16 .rp-confirm p:focus { outline: none; }
.scr-s16 .rp-where { gap: var(--s-4); }
.scr-s16 .rp-where__block { display: flex; flex-direction: column; gap: var(--s-2); padding-bottom: var(--s-4); border-bottom: 1px solid var(--border-subtle); }
:is(.scr-s16, .scr-s17) .rp-where__head { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: 0.9375rem; line-height: 1.375rem; color: var(--text-1); }
:is(.scr-s16, .scr-s17) .rp-where__head .hb-ic { color: var(--brand); }
.scr-s16 .rp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.scr-s16 .rp-tomb { color: var(--text-2); }

/* ------------------------------------------------------------------ s17 · short survey */
.scr-s17 .rp-whynow { display: flex; gap: var(--s-2); align-items: flex-start; margin-bottom: calc(-1 * var(--s-4)); font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
.scr-s17 .rp-whynow .hb-ic { margin-top: 2px; flex: none; }
.scr-s17 .rp-svcard { display: flex; flex-direction: column; gap: var(--s-6); padding: var(--s-8); min-width: 0; background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.scr-s17 .rp-svcard__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.scr-s17 .rp-svcard .hb-h2:focus, .scr-s17 .rp-svcard [tabindex="-1"]:focus { outline: none; }
.scr-s17 .rp-progress { display: flex; flex-direction: column; gap: var(--s-2); }
.scr-s17 .rp-progress__text { font-size: var(--t-small); line-height: var(--t-small-lh); font-weight: 500; color: var(--text-2); }
.scr-s17 .rp-progress__bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.scr-s17 .rp-progress__bar span { display: block; height: 100%; border-radius: 3px; background: var(--brand); transition: width var(--dur-slow) var(--ease-out); }
.scr-s17 .rp-q { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.scr-s17 .rp-q__legend { padding: 0; margin-bottom: var(--s-4); font-family: var(--font-display); font-size: var(--t-h1); line-height: var(--t-h1-lh); font-weight: 420; letter-spacing: -0.01em; font-variation-settings: 'opsz' 36; color: var(--text-1); }
.scr-s17 .rp-q__text:focus { outline: none; }
.scr-s17 .rp-scale { border: 0; margin: 0; padding: 0; min-width: 0; }
.scr-s17 .rp-scale__row { display: grid; gap: var(--s-2); grid-template-columns: repeat(7, minmax(0, 1fr)); }
.scr-s17 .rp-scale__row--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.scr-s17 .rp-scale__opt { position: relative; display: flex; }
.scr-s17 .rp-scale__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.scr-s17 .rp-scale__opt span {
  flex: 1; min-height: 52px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-1);
  color: var(--text-1); font-weight: 600; font-size: 1.0625rem; font-variant-numeric: tabular-nums; transition: background var(--dur-fast) var(--ease-out);
}
.scr-s17 .rp-scale__opt:hover span { background: var(--surface-2); }
.scr-s17 .rp-scale__opt input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.scr-s17 .rp-scale__opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.scr-s17 .rp-scale__ends { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-2); font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
.scr-s17 .rp-scale__na { margin-top: var(--s-4); }
.scr-s17 .rp-svnav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--border-subtle); }
.scr-s17 .rp-svnav .hb-btn--quiet { margin-left: calc(-1 * var(--s-3)); }
.scr-s17 .rp-later { font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); margin-top: calc(-1 * var(--s-4)); }
.scr-s17 .rp-later .hb-btn--link { display: inline-flex; align-items: center; min-height: 44px; }
.scr-s17 .rp-dest { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-sm); background: var(--surface-2); }
.scr-s17 .rp-dest__row { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-1); }
.scr-s17 .rp-dest__row .hb-ic { margin-top: 2px; flex: none; color: var(--brand); }
.scr-s17 .rp-kept { display: flex; flex-direction: column; gap: 4px; padding: var(--s-4); border-radius: var(--r-sm); background: var(--surface-2); }
.scr-s17 .rp-skipped { color: var(--text-3); font-style: italic; }
.scr-s17 .hb-table th[scope="row"] { font-weight: 500; color: var(--text-1); }
@media (max-width: 767px) {
  .scr-s17 .rp-svcard { padding: var(--s-5) var(--s-4); gap: var(--s-5); border-radius: var(--r-md); }
  .scr-s17 .rp-scale__row { gap: 6px; }
  .scr-s17 .rp-scale__opt span { min-height: 48px; border-radius: 10px; }
}

/* ---------------------------------------------------------------- integration additions */
.scr-s07 .rp-notice { max-width: 720px; }
.scr-s06 .rp-hit { position: relative; }
.scr-s06 .rp-hit::after { content: ''; position: absolute; inset: -12px -10px; }
.rp-layout + .hb-prompt { margin-top: var(--s-10); }

/* ---------------------------------------------------------------- round E fixes */
/* s07: "Why this idea?" holds the how-ideas-are-chosen rows (the side panel was removed) */
.scr-s07 .rp-why .rp-facts__row:first-child { padding-top: 2px; }
/* s16: a case whose report the member hid while it is reviewed */
.scr-s16 .rp-hiddencase { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-sm); background: var(--surface-2); }
.scr-s16 .rp-hiddencase__title { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-1); }
/* s17: what else is sent with the answers, each item removable before sending */
.scr-s17 .rp-sendwith { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-sm); background: var(--surface-2); }
.scr-s17 .rp-sendwith .rp-where__head:focus { outline: none; }
.scr-s17 .rp-chips { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.scr-s17 .rp-chips .hb-chip { background: var(--surface-1); color: var(--text-1); min-height: 32px; font-weight: 500; font-size: var(--t-small); letter-spacing: 0; }

/* ---------------------------------------------------------------- beta: live-data states */
/* failures and saves inside a page: the error card sits in the reading column */
:is(.scr-s06, .scr-s07, .scr-s11, .scr-s12, .scr-s16, .scr-s17) .rp-main > .hb-state { max-width: 720px; }
:is(.scr-s07, .scr-s12, .scr-s16, .scr-s17) [id$="-err"]:focus { outline: none; }
.scr-s07 #rp-draw-err { margin-bottom: var(--s-4); }
.scr-s07 .rp-draw .rp-ro { margin-bottom: var(--s-3); }
.scr-s12 #rp-bmi-err { margin-bottom: calc(-1 * var(--s-4)); }
/* s16: a reply to the team inside the open message */
.scr-s16 .rp-reply { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--border-subtle); }
.scr-s16 .rp-reply .hb-actions { margin-top: 0; }
.scr-s16 .rp-thread .hb-skel { padding: var(--s-2) 0; }
.scr-s16 .rp-thread .hb-state { padding: var(--s-4) 0; }
