/*
 * Report workspace styles: intake queue, report profile and screening pages
 * (owner requests, 3 Oct 2026). Kept as a plain committed stylesheet, like
 * the template's styles.css, so these pages are styled straight after a pull
 * or upload without running `npm run build`. Loaded after the Vite bundle in
 * components/layouts/shell.blade.php.
 */

/* Report profile and guided screening (owner request, 3 Oct 2026). */
.rp-page .page { display: grid; gap: 20px; }
.rp-page .page > * { margin: 0; min-width: 0; }
.rp-page .panel-head { flex-wrap: wrap; align-items: flex-start; }
.rp-page .panel-head > div { flex: 1 1 260px; }
.rp-banner { align-items: flex-start; flex-wrap: wrap; }
.rp-banner > div:first-child { flex: 1 1 360px; min-width: 0; }
.rp-banner-side { flex: 0 1 300px; display: grid; gap: 8px; justify-items: end; text-align: right; }
.rp-banner-side p { font-size: .74rem; }
.rp-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.rp-badge-light { background: rgba(255, 255, 255, .14); color: #fff; }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.rp-main, .rp-side { display: grid; gap: 20px; min-width: 0; }
.rp-main .panel, .rp-side .panel { margin: 0; min-width: 0; }
.rp-info-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.rp-info-grid .info-item { min-width: 0; overflow-wrap: anywhere; }
.rp-info-grid .info-item strong { display: block; margin-top: 3px; font-size: .88rem; color: var(--plum-950); }
.rp-sub { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.rp-subhead { margin: 22px 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--plum-700); }
.rp-checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.rp-checklist li { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; padding: 9px 11px; border-radius: 10px; background: #faf7f9; }
.rp-checklist li::before { flex: 0 0 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; margin-top: 1px; }
.rp-checklist li.is-yes::before { content: "✓"; background: #eaf8f2; color: #177453; }
.rp-checklist li.is-no { color: var(--muted); }
.rp-checklist li.is-no::before { content: "–"; background: #eee7ec; color: var(--muted); }
.rp-account { margin: 0 0 16px; padding: 16px 18px; border-left: 4px solid var(--coral); border-radius: 0 12px 12px 0; background: #fff8f5; font-size: .95rem; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.rp-note { margin: 0 0 12px; }

.rp-action { border-width: 2px; border-color: #f2c9b9; background: linear-gradient(180deg, #fff9f6, #fff); }
.rp-action.is-done { border-color: #bfe6d4; background: linear-gradient(180deg, #f3fbf7, #fff); }
.rp-action .panel-head { margin-bottom: 12px; }
.rp-action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rp-action-row form { margin: 0; }
.rp-action-extra { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.rp-assign { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.rp-assign .field { flex: 1 1 240px; }

.rp-locked { text-align: center; padding: 28px 20px; }
.rp-locked-icon { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--plum-100); color: var(--plum-800); font-size: 1.4rem; }
.rp-locked h3 { margin: 0 0 6px; color: var(--plum-950); font-size: 1rem; }
.rp-locked p { margin: 0 auto 14px; max-width: 520px; font-size: .86rem; color: var(--muted); }

.rp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: rp-step; }
.rp-steps li { counter-increment: rp-step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px; border-radius: 10px; font-size: .84rem; color: var(--muted); }
.rp-steps li::before { content: counter(rp-step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .74rem; font-weight: 800; background: #eee7ec; color: var(--muted); }
.rp-steps li strong { display: block; color: inherit; font-size: .86rem; }
.rp-steps li small { font-size: .72rem; }
.rp-steps li.is-done { color: #155c43; }
.rp-steps li.is-done::before { content: "✓"; background: #1f9d6c; color: #fff; }
.rp-steps li.is-current { background: #fff5f1; color: var(--plum-950); box-shadow: inset 3px 0 0 var(--coral); }
.rp-steps li.is-current::before { background: var(--coral); color: #fff; }
.rp-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .78rem; color: var(--muted); }
.rp-progress .progress-track { flex: 1 1 auto; }

.rp-form { display: grid; gap: 16px; }
.rp-form .form-grid { gap: 14px; }
.rp-form textarea { min-height: 96px; }
.rp-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rp-split .field { padding: 12px; border-radius: 12px; background: #faf7f9; border: 1px solid #eee7ec; }
.rp-options { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.rp-options legend { font-size: .82rem; font-weight: 760; color: #4c4650; margin-bottom: 6px; padding: 0; }
.rp-option { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; font-size: .86rem; }
.rp-option:hover { border-color: #c99bc1; }
.rp-option input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--plum-800); }
.rp-option:has(input:checked) { border-color: var(--plum-700); background: #fcf8fb; box-shadow: 0 0 0 2px var(--plum-100); }
.rp-option:has(input:focus-visible) { outline: 3px solid var(--plum-100); outline-offset: 2px; }
.rp-option small { display: block; color: var(--muted); font-size: .74rem; }
.rp-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rp-form-actions .tiny { flex: 1 1 220px; }

.rp-alternatives { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.rp-alternatives > p { margin: 0 0 4px; font-size: .8rem; color: var(--muted); }
.rp-alt { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rp-alt > summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: .86rem; font-weight: 700; color: var(--plum-800); }
.rp-alt > summary::-webkit-details-marker { display: none; }
.rp-alt > summary::after { content: "+"; font-size: 1.1rem; color: var(--muted); }
.rp-alt[open] > summary::after { content: "–"; }
.rp-alt > summary small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.rp-alt > summary:focus-visible { outline: 3px solid var(--plum-100); outline-offset: 2px; border-radius: 12px; }
.rp-alt .rp-form { padding: 0 14px 14px; }
.rp-alt.is-danger > summary { color: #b92d4b; }

.rp-candidate { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.rp-candidate-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.rp-candidate-head strong { color: var(--plum-950); }
.rp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-chips span { padding: 4px 9px; border-radius: 999px; background: #f4eff3; font-size: .72rem; color: var(--plum-800); font-weight: 650; }
.rp-candidate details > summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--plum-800); }
.rp-candidate details .rp-form { margin-top: 12px; }

.rp-history .timeline-item p { overflow-wrap: anywhere; }
.rp-history dl { margin: 6px 0 0; display: grid; gap: 4px; font-size: .76rem; }
.rp-history dt { font-weight: 750; color: var(--plum-800); }
.rp-history dd { margin: 0 0 4px; color: var(--ink); white-space: pre-line; }
.rp-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: .82rem; }
.rp-kv dt { color: var(--muted); }
.rp-kv dd { margin: 0; font-weight: 650; color: var(--plum-950); overflow-wrap: anywhere; }

.queue-ref { font-weight: 800; color: var(--plum-800); text-decoration: underline; text-underline-offset: 3px; }
.queue-ref:focus-visible { outline: 3px solid var(--plum-100); outline-offset: 2px; }
.queue-assignment small { display: block; font-size: .72rem; color: var(--muted); }

@media (max-width: 1100px) { .rp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .rp-banner-side { justify-items: start; text-align: left; }
  .rp-badges { justify-content: flex-start; }
  .rp-split { grid-template-columns: minmax(0, 1fr); }
  .rp-form-actions .btn { width: 100%; }
}

/* Intake queue (owner request, 3 Oct 2026): template stat cards, toolbar and case table. */
.queue-tabs { margin-top: 0; }
.queue-section .toolbar { align-items: center; }
.queue-section .toolbar label:not(.search-box) { display: contents; }
.queue-table td:first-child { border-left: 4px solid transparent; }
.queue-row.is-immediate-attention td:first-child { border-left-color: var(--red); }
.queue-row.is-priority-review td:first-child { border-left-color: var(--amber); }
.queue-row:hover td { background: #fcf9fb; }
.queue-row .case-id { overflow-wrap: anywhere; }
.queue-row .case-id:focus-visible { outline: 3px solid var(--plum-100); outline-offset: 2px; border-radius: 4px; }
.queue-alert { display: inline-block; margin-top: 4px; color: #83600e; font-weight: 700; }
@media (max-width: 600px) { .queue-section .toolbar .btn { flex: 1 1 auto; } }
@media (max-width: 700px) {
  .queue-table { min-width: 0; }
  .queue-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .queue-table, .queue-table tbody, .queue-table tr, .queue-table td { display: block; width: 100%; }
  .queue-table tr.queue-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 14px; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
  .queue-table tr.queue-row.is-immediate-attention { border-left-color: var(--red); }
  .queue-table tr.queue-row.is-priority-review { border-left-color: var(--amber); }
  .queue-table tr.queue-row td { padding: 0; border: 0; min-width: 0; }
  .queue-table tr.queue-row td:first-child { grid-column: 1 / -1; border: 0; }
  .queue-table td[data-label]::before { content: attr(data-label); display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 3px; }
  .queue-table td:first-child::before { display: none; }
  .queue-table td.queue-open { grid-column: 1 / -1; }
  .queue-table td.queue-open .btn { width: 100%; }
}

/* The reporter's account as a reading panel (owner request, 3 Oct 2026). */
.rp-reading { padding: 0; overflow: hidden; border-color: #ead9e5; }
.rp-reading-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 20px 24px 16px; background: linear-gradient(180deg, #fbf6fa, #fff); border-bottom: 1px solid var(--line); }
.rp-reading-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.rp-reading-head h3 { margin: 4px 0 2px; font-size: 1.35rem; color: var(--plum-950); }
.rp-reading-head p { margin: 0; font-size: .8rem; color: var(--muted); }
.rp-reading-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rp-reading-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.rp-reading-text { position: relative; padding: 26px 32px 28px 40px; font-size: 1.05rem; line-height: 1.8; color: var(--ink); max-width: 78ch; overflow-wrap: anywhere; }
.rp-reading-text::before { content: ""; position: absolute; left: 22px; top: 28px; bottom: 30px; width: 4px; border-radius: 4px; background: var(--coral); }
.rp-reading-text p { margin: 0 0 1em; white-space: pre-line; }
.rp-reading-text p:last-child { margin-bottom: 0; }
.rp-reading-context { padding: 22px 22px 24px; background: #faf7f9; border-left: 1px solid var(--line); }
.rp-reading-context dl { margin: 0; display: grid; gap: 4px; }
.rp-reading-context dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.rp-reading-context dd { margin: 0 0 10px; font-size: .88rem; font-weight: 700; color: var(--plum-950); overflow-wrap: anywhere; }
.rp-reading-context dd:last-child { margin-bottom: 0; }
.rp-subhead-first { margin-top: 0; }
#next-step:focus { outline: 3px solid var(--plum-100); outline-offset: 3px; }
@media (max-width: 900px) {
  .rp-reading-body { grid-template-columns: minmax(0, 1fr); }
  .rp-reading-context { border-left: 0; border-top: 1px solid var(--line); }
  .rp-reading-context dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  .rp-reading-context dt:nth-of-type(n), .rp-reading-context dd { grid-column: auto; }
}
@media (max-width: 600px) {
  .rp-reading-head { padding: 16px; }
  .rp-reading-tools { align-items: flex-start; }
  .rp-reading-text { padding: 18px 16px 20px 28px; font-size: 1rem; }
  .rp-reading-text::before { left: 12px; top: 20px; bottom: 22px; }
  .rp-reading-context { padding: 16px; }
  .rp-reading-context dl { grid-template-columns: minmax(0, 1fr); }
}

/* Decision chooser, screening team and approvals (owner request, 3 Oct 2026). */
.rp-decide { padding: 0; overflow: hidden; border: 2px solid #f2c9b9; }
.rp-decide-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 20px 22px 16px; background: linear-gradient(180deg, #fff6f1, #fff); border-bottom: 1px solid var(--line); }
.rp-decide-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.rp-decide-head h3 { margin: 4px 0 4px; font-size: 1.2rem; color: var(--plum-950); }
.rp-decide-head p { margin: 0; font-size: .82rem; color: var(--muted); }
.rp-decide-head.is-quiet { align-items: center; background: #faf7f9; border-bottom: 0; }
.rp-decide:has(.is-quiet) { border-color: var(--line); }
.rp-decide-mark { flex: 0 0 44px !important; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--plum-100); font-size: 1.2rem; }
.rp-decide-progress { display: flex; gap: 5px; padding-top: 6px; }
.rp-decide-progress i { width: 26px; height: 6px; border-radius: 6px; background: #eee7ec; }
.rp-decide-progress i.is-done { background: #1f9d6c; }
.rp-decide-progress i.is-now { background: var(--coral); }
.rp-decide > .emergency-note, .rp-decide > .rp-callout { margin: 16px 22px 0; }
.rp-choices { border: 0; margin: 0; padding: 18px 22px 6px; min-width: 0; }
.rp-choices legend { padding: 4px 0 0; margin-bottom: 12px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); }
.rp-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.rp-choice { position: relative; display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.rp-choice:hover { border-color: #c99bc1; }
.rp-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rp-choice-icon { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .9rem; background: #f4eff3; color: var(--plum-800); }
.rp-choice.tone-go .rp-choice-icon { background: #eaf8f2; color: #177453; }
.rp-choice.tone-stop .rp-choice-icon { background: #fff0f3; color: #b92d4b; }
.rp-choice-text { min-width: 0; }
.rp-choice-text strong { display: block; font-size: .9rem; color: var(--plum-950); line-height: 1.3; }
.rp-choice-text small { display: block; margin-top: 3px; font-size: .74rem; color: var(--muted); line-height: 1.4; }
.rp-choice:has(input:checked) { border-color: var(--plum-700); background: #fcf8fb; box-shadow: 0 0 0 3px var(--plum-100); }
.rp-choice.tone-go:has(input:checked) { border-color: #1f9d6c; background: #f3fbf7; box-shadow: 0 0 0 3px #d5f0e3; }
.rp-choice.tone-stop:has(input:checked) { border-color: #d9435f; background: #fff7f9; box-shadow: 0 0 0 3px #fbdde4; }
.rp-choice:has(input:focus-visible) { outline: 3px solid var(--plum-700); outline-offset: 2px; }
.rp-decide-panel { margin: 12px 22px 22px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fcfafb; }
.rp-decide-panel h4 { margin: 0 0 12px; font-size: .95rem; color: var(--plum-950); }
@supports selector(:has(*)) {
  .rp-decide-panel { display: none; }
  .rp-decide:has(#choice-screening_started:checked) [data-choice="screening_started"],
  .rp-decide:has(#choice-identity_contact_checked:checked) [data-choice="identity_contact_checked"],
  .rp-decide:has(#choice-content_screened:checked) [data-choice="content_screened"],
  .rp-decide:has(#choice-location_matched:checked) [data-choice="location_matched"],
  .rp-decide:has(#choice-duplicate_reviewed:checked) [data-choice="duplicate_reviewed"],
  .rp-decide:has(#choice-validated:checked) [data-choice="validated"],
  .rp-decide:has(#choice-clarification_requested:checked) [data-choice="clarification_requested"],
  .rp-decide:has(#choice-invalid:checked) [data-choice="invalid"],
  .rp-decide:has(#choice-malicious:checked) [data-choice="malicious"],
  .rp-decide:has(#choice-closed:checked) [data-choice="closed"],
  .rp-decide:has(#choice-reopened:checked) [data-choice="reopened"],
  .rp-decide:has(#choice-approve:checked) [data-choice="approve"],
  .rp-decide:has(#choice-approval_returned:checked) [data-choice="approval_returned"] { display: block; }
  .rp-decide-panel h4 { display: none; }
}
.rp-callout { padding: 14px 16px; border-radius: 12px; background: #f4eff3; border-left: 4px solid var(--plum-700); }
.rp-callout.is-warn { background: #fff5dd; border-left-color: #e0a31a; }
.rp-callout strong { display: block; color: var(--plum-950); font-size: .9rem; }
.rp-callout p { margin: 4px 0 0; font-size: .84rem; }
.rp-callout small { display: block; margin-top: 6px; font-size: .72rem; color: var(--muted); }
.rp-callout dl { margin: 10px 0 0; display: grid; gap: 3px; font-size: .82rem; }
.rp-callout dt { font-weight: 750; color: var(--plum-800); }
.rp-callout dd { margin: 0 0 6px; white-space: pre-line; overflow-wrap: anywhere; }

.rp-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rp-seat { border: 1.5px dashed #dccfd8; border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; background: #fcfafb; min-width: 0; }
.rp-seat.is-filled { border-style: solid; border-color: var(--line); background: #fff; }
.rp-seat.is-screener { border-color: #9fb9ea; box-shadow: 0 0 0 3px #edf3ff; }
.rp-seat header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rp-seat-kind { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--plum-700); }
.rp-seat .person-cell strong { display: block; font-size: .88rem; color: var(--plum-950); }
.rp-seat .person-cell small { display: block; font-size: .72rem; color: var(--muted); }
.rp-seat-empty { margin: 0; font-size: .82rem; color: var(--muted); }
.rp-seat-form { display: grid; gap: 8px; }
.rp-seat-form select { width: 100%; min-height: 40px; border: 1px solid #dcd4da; border-radius: 10px; padding: 8px 10px; background: #fff; font: inherit; }
.rp-seat-form .btn { justify-self: start; }
.rp-seat-note { margin: 0; }
.rp-restriction { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rp-restriction > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.rp-restriction > summary::-webkit-details-marker { display: none; }
.rp-restriction > summary::after { content: "+"; color: var(--muted); font-size: 1.1rem; }
.rp-restriction[open] > summary::after { content: "–"; }
.rp-restriction > summary strong, .rp-restriction.is-on strong { display: block; font-size: .86rem; color: #8a2338; }
.rp-restriction > summary small { display: block; font-size: .74rem; color: var(--muted); }
.rp-restriction .rp-form { margin-top: 12px; }
.rp-restriction.is-on { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; background: #fff7f9; border-color: #f3c5cf; }
.rp-restriction.is-on p { margin: 2px 0 0; font-size: .78rem; color: var(--muted); }
.rp-restriction.is-on form { margin: 0; }
.rp-past { margin-top: 12px; }
.rp-past > summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--plum-800); }
.rp-past .rp-checklist { margin-top: 8px; }
@media (max-width: 700px) {
  .rp-team-grid { grid-template-columns: minmax(0, 1fr); }
  .rp-choices { padding: 16px 16px 4px; }
  .rp-decide-head { padding: 16px; }
  .rp-decide-panel { margin: 10px 16px 16px; padding: 14px; }
  .rp-decide > .emergency-note, .rp-decide > .rp-callout { margin: 14px 16px 0; }
}
.queue-seat + .queue-seat { margin-top: 6px; }
.mini-avatar.is-school { background: #fff2ea; color: #a8441f; }

/* Report workspace: screening and report profile pages (owner request, 3 Oct 2026). */
.rw-page .page { display: grid; gap: 22px; max-width: 1480px; }
.rw-page .page > * { margin: 0; min-width: 0; }
.rw-back { font-size: .8rem; font-weight: 700; color: var(--muted); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.rw-back:hover { background: #f4eff3; color: var(--plum-800); }
.rw-back:focus-visible { outline: 3px solid var(--plum-100); }

.rw-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 28px 30px 22px; color: #fff;
  background: radial-gradient(circle at 92% -10%, rgba(255,107,61,.35), transparent 42%), linear-gradient(125deg, var(--plum-950), var(--plum-800) 55%, var(--plum-700));
  box-shadow: 0 18px 40px rgba(40, 17, 36, .18); }
.rw-hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; }
.rw-hero-title { flex: 1 1 420px; min-width: 0; }
.rw-hero .eyebrow { color: #ffb59c; }
.rw-ref { font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.rw-hero h2 { margin: 6px 0 12px; font-size: 1.9rem; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.rw-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rw-meta li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); font-size: .78rem; color: #f3e8f0; max-width: 100%; overflow-wrap: anywhere; }
.rw-hero-status { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rw-hero-status .badge { font-size: .72rem; padding: 6px 11px; }
.rw-badge-lock { background: #fff0f3; color: #b92d4b; }
.rw-stepper { list-style: none; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.rw-stepper li { position: relative; display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.rw-stepper li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 38px; right: 6px; height: 2px; background: rgba(255,255,255,.18); }
.rw-stepper li.is-done:not(:last-child)::after { background: #39b98a; }
.rw-step-dot { position: relative; z-index: 1; flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; background: rgba(255,255,255,.12); color: #e9dbe5; border: 1px solid rgba(255,255,255,.22); }
.rw-stepper li.is-done .rw-step-dot { background: #39b98a; border-color: #39b98a; color: #fff; }
.rw-stepper li.is-current .rw-step-dot { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 0 0 5px rgba(255,107,61,.28); }
.rw-step-label { position: relative; z-index: 1; padding-top: 34px; margin-left: -40px; font-size: .74rem; font-weight: 700; color: #f6edf4; line-height: 1.25; }
.rw-step-label small { display: block; margin-top: 2px; font-weight: 600; font-size: .66rem; color: #c9b4c3; text-transform: uppercase; letter-spacing: .06em; }
.rw-stepper li.is-current .rw-step-label small { color: #ffb59c; }
.rw-stepper li.is-done .rw-step-label small { color: #9be2c4; }

.rw-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.rw-fact { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; display: grid; gap: 4px; min-width: 0; box-shadow: 0 1px 2px rgba(40,17,36,.03); }
.rw-fact span { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); }
.rw-fact strong { font-size: 1.02rem; color: var(--plum-950); overflow-wrap: anywhere; }
.rw-fact em { font-style: normal; font-size: .78rem; color: #b3364f; }
.rw-fact-bar { display: block; height: 6px; margin-top: 4px; border-radius: 6px; background: #eee7ec; overflow: hidden; }
.rw-fact-bar b { display: block; height: 100%; width: var(--progress); background: linear-gradient(90deg, var(--plum-700), var(--coral)); border-radius: inherit; }

.rw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.rw-main { min-width: 0; }
.rw-rail { display: grid; gap: 16px; position: sticky; top: 92px; min-width: 0; }
.rw-tabs { margin: 0 0 18px; padding: 0 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; gap: 2px; }
.rw-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 15px 16px 13px; font-size: .86rem; font-weight: 750; white-space: nowrap; }
.rw-tabs button:hover { color: var(--plum-800); }
.rw-tabs button:focus-visible { outline: 3px solid var(--plum-100); outline-offset: -3px; border-radius: 10px; }
.rw-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #f1ebf0; color: var(--plum-800); font-size: .7rem; font-weight: 800; }
.rw-count.is-hot { background: var(--coral); color: #fff; }
.tab-panel.active.rw-panel-stack { display: grid; gap: 18px; padding-top: 0; }
.rw-page .panel { border-radius: 18px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(40,17,36,.03), 0 10px 26px rgba(40,17,36,.04); }
.rw-page .panel-head h3 { font-size: 1.06rem; }
.rw-page .panel-head p { font-size: .8rem; }
.rw-page .rp-reading, .rw-page .rp-decide { padding: 0; }

.rw-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 20px; display: grid; gap: 8px; box-shadow: 0 1px 2px rgba(40,17,36,.03), 0 10px 26px rgba(40,17,36,.05); min-width: 0; }
.rw-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; color: var(--plum-950); }
.rw-card p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.rw-card-kicker { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--coral-dark); }
.rw-next.is-hot { border-top: 4px solid var(--coral); }
.rw-next.is-done { border-top: 4px solid #39b98a; }
.rw-actions { display: grid; gap: 8px; margin-top: 6px; }
.rw-actions form { margin: 0; }
.rw-actions .btn { width: 100%; }
.rw-actions-extra { padding-top: 12px; margin-top: 8px; border-top: 1px dashed var(--line); }
.rw-person { display: flex; gap: 11px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f1ecf0; }
.rw-person:last-of-type { border-bottom: 0; }
.rw-person strong { display: block; font-size: .86rem; color: var(--plum-950); }
.rw-person small { display: block; font-size: .72rem; color: var(--muted); }
.rw-person.is-empty strong { color: var(--muted); font-weight: 600; }
.rw-kv { margin: 4px 0 6px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; font-size: .82rem; }
.rw-kv dt { color: var(--muted); }
.rw-kv dd { margin: 0; font-weight: 700; color: var(--plum-950); overflow-wrap: anywhere; text-align: right; }
.rw-rail .rp-team { padding: 18px; }
.rw-rail .rp-team .panel-head p { display: none; }
.rw-rail .rp-team-grid { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 1250px) {
  .rw-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rw-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1050px) {
  .rw-layout { grid-template-columns: minmax(0, 1fr); }
  .rw-rail { position: static; order: -1; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  .rw-stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .rw-stepper li:nth-child(3)::after { display: none; }
}
@media (max-width: 600px) {
  .rw-hero { padding: 20px 18px 18px; border-radius: 18px; }
  .rw-hero h2 { font-size: 1.45rem; }
  .rw-hero-status { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .rw-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rw-stepper li::after { display: none; }
  .rw-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rw-fact:last-child { grid-column: 1 / -1; }
  .rw-tabs { padding: 0; }
  .rw-tabs button { padding: 13px 12px 11px; font-size: .8rem; }
  .rw-page .panel { padding: 18px 16px; }
  .rw-page .rp-reading, .rw-page .rp-decide { padding: 0; }
}

/* School data returns: safeguarding self-check (ADR-027). */
.self-check-row { border: 1px solid var(--line, #e7e1ec); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; }
.self-check-row legend { padding: 0 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.self-check-options { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.self-check-options .checkbox { margin: 0; }
