/* Incident forms and records follow the school blue/yellow document layout. */
.report-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}.report-heading h2,.reports-heading h2{font-size:25px;letter-spacing:-.025em;margin:0}.report-heading p,.reports-heading p{font-size:13px;line-height:1.65;margin-top:7px;max-width:620px}.report-private-note{display:inline-flex;align-items:center;gap:7px;padding-top:5px;font-size:11px;color:var(--muted);white-space:nowrap}.report-private-note .icon{width:14px;height:14px}
.report-layout{grid-template-columns:minmax(0,1fr) 260px;gap:32px}.report-form-card{padding:27px 30px 30px;border:1px solid var(--line);border-top:4px solid var(--blue);border-radius:5px;background:white;box-shadow:none}.form-progress-heading{display:flex;justify-content:space-between;gap:16px;font-size:11px;font-weight:600;margin-bottom:12px;color:var(--ink)}#formProgressLabel{white-space:nowrap;color:var(--muted);font-weight:400}.form-progress{list-style:none;padding:0;margin:0 0 23px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:0;border-bottom:1px solid var(--line)}.form-progress li{display:flex;gap:8px;align-items:center;font-size:11px;padding:9px 0 11px;border-bottom:3px solid transparent;color:var(--muted)}.form-progress li>span{font-size:10px;display:grid;place-items:center;width:19px;height:19px;background:#edf0f4;color:#516177;flex-shrink:0}.form-progress li.is-complete{border-color:var(--blue);color:var(--blue)}.form-progress li.is-complete>span{background:var(--blue);color:white}
.report-form-card .identity-card{border:0;border-left:3px solid var(--blue);border-radius:0;background:#f3f5f8;padding:13px 16px;margin-bottom:29px}.report-form-card .identity-card strong{font-size:12px;margin-bottom:3px}.report-form-card .identity-card p{font-size:11px;line-height:1.7;color:var(--muted)}.report-form-card .card-heading{gap:12px;padding:0 0 12px;margin-bottom:21px;border-bottom:1px solid var(--line);align-items:flex-start}.form-section-number{width:29px;height:29px;border-radius:2px;background:var(--yellow);color:var(--navy);font-size:11px;font-weight:700;display:grid;place-items:center;flex-shrink:0}.report-form-card .card-heading h3{font-size:16px;margin:0 0 4px;line-height:1.45;letter-spacing:-.015em}.report-form-card .card-heading p{font-size:11px;color:var(--muted);line-height:1.6}.report-form-card .stack{gap:20px}.report-form-card .field label,.report-form-card .field-label{font-size:12px}.report-form-card .field input,.report-form-card .field textarea,.report-form-card .field select{min-width:0;font-size:13px;padding:11px 12px;border-radius:4px;border-color:#bbc6d4}.report-form-card .field input:focus,.report-form-card .field textarea:focus,.report-form-card .field select:focus{border-color:var(--blue);box-shadow:0 0 0 2px #003da510}.report-form-card .field small{font-size:11px;line-height:1.7}.report-form-card .counter{font-size:10px}.report-form-card .form-divider{height:0;background:none;margin:29px 0}
.report-form-card .upload-zone{border:1px dashed #9eafc6;border-radius:4px;background:#fafbfd;padding:23px 19px;gap:15px;min-height:104px}.report-form-card .upload-zone>.icon{width:29px;height:29px;color:var(--blue);padding:0;background:none;border-radius:0}.report-form-card .upload-zone strong{font-size:12px;color:var(--blue);margin-bottom:4px}.report-form-card .upload-zone strong span{font-size:12px;color:var(--ink);font-weight:400}.report-form-card .upload-zone>span{font-size:10px;line-height:1.8}.report-form-card .upload-zone.dragging{background:#eef3fb;border-color:var(--blue)}.report-form-card .file-item{padding:5px 7px 5px 10px;min-height:43px;background:#fafbfd;border-radius:4px}.report-form-card .file-item button{width:36px;height:36px;border-radius:4px;display:grid;place-items:center;flex-shrink:0}.report-form-card .file-item button:hover{background:#e9eef5}.report-form-card .file-name{min-width:0}.evidence-over-limit{color:#a32d27!important;font-weight:600}.report-form-card .consent{font-size:12px;line-height:1.75;padding:0;background:white;border:0;border-radius:0}.report-form-card .consent input{width:17px;height:17px;margin-top:3px}.report-form-card .submit-row{padding-top:20px;border-top:1px solid var(--line);align-items:center}.report-form-card .submit-row small{font-size:10px;line-height:1.8}.report-form-card .submit-row .button{min-width:155px;min-height:44px;border-radius:4px;box-shadow:none}
.report-sidebar{gap:16px;min-width:0;align-content:start}
.report-sidebar .guide-card{min-width:0;padding:20px;border:1px solid var(--line);border-top:3px solid var(--blue);border-radius:4px;background:var(--surface,white);box-shadow:none;animation:none}
.report-sidebar .guide-card h3{font-size:14px;line-height:1.5;letter-spacing:0;margin-bottom:11px}
.report-sidebar .guide-card p{font-size:12px;line-height:1.75}
.report-companion{display:block;width:110px;max-width:100%;margin:0 auto 16px}
.report-companion img{display:block;width:100%;height:130px;object-fit:contain}
.reporting-guide>.report-companion{border-bottom:3px solid var(--yellow);padding-bottom:14px;margin-bottom:21px;width:140px}
.report-sidebar .guide-list{margin-top:8px;gap:11px}
.report-sidebar .guide-list li{min-width:0;font-size:11px;line-height:1.7}
.report-sidebar .guide-list .icon{color:var(--blue);width:15px;height:15px;padding:0;background:none;border-radius:0;flex-shrink:0}
.next-steps{list-style:none;counter-reset:next-step;margin:14px 0 0;padding:0;display:grid;gap:15px}
.next-steps li{counter-increment:next-step;position:relative;padding-left:25px}
.next-steps li::before{content:counter(next-step) ".";position:absolute;left:0;top:0;color:var(--blue);font-size:11px;font-weight:600}
.next-steps strong,.next-steps span{display:block}
.next-steps strong{font-size:11px;color:var(--ink);font-weight:600}
.next-steps span{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.65}
.report-sidebar .emergency-card{min-width:0;margin:0;padding:20px;border:1px solid #d8cd9b;border-left:3px solid var(--yellow);border-radius:4px;background:#fffdf2}
.report-sidebar .emergency-card h3{font-size:12px}
.report-sidebar .emergency-card p{font-size:11px;line-height:1.7}
.success-card{position:relative;max-width:700px;padding:34px;text-align:left;border-radius:5px;border:1px solid var(--line);border-top:4px solid var(--blue);box-shadow:none;margin:0 auto}.success-illustration{float:right;width:76px;margin:-7px 0 12px 22px}.success-illustration .report-companion{width:76px;margin:0}.success-illustration .report-companion img{height:98px}.success-illustration .success-mark{display:none}.success-card h2{font-size:26px;margin:0 0 10px;line-height:1.25;letter-spacing:-.025em}.success-card p{line-height:1.8;font-size:13px;margin:0;max-width:510px}.tracking-label{clear:both;font-size:11px;font-weight:600;color:var(--muted);margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.success-card .tracking-box{display:flex;justify-content:space-between;width:100%;margin:8px 0 26px;padding:12px 14px;background:#f4f6f9;border:1px solid #c6d0de;border-radius:4px}.success-card .tracking-box code{font-size:19px;color:var(--navy);letter-spacing:.08em}.success-card .tracking-box .icon-button{border-radius:4px}.success-card .row{justify-content:flex-start;margin-top:25px;flex-wrap:wrap}.success-card .row .button{border-radius:4px}
.report-progress{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);padding:0;margin:0 0 23px;gap:0}.report-progress.report-progress-closed{grid-template-columns:repeat(2,1fr)}.report-progress li{position:relative;text-align:center;color:#637187;min-width:0}.report-progress li::after{content:"";height:1px;background:#c6d1df;position:absolute;left:calc(50% + 18px);right:calc(-50% + 18px);top:14px}.report-progress li:last-child::after{display:none}.report-progress li>span{display:grid;place-items:center;width:29px;height:29px;margin:0 auto 8px;border:1px solid #bbc6d4;border-radius:3px;background:white;font-size:11px;font-weight:600}.report-progress li>span .icon{height:16px;width:16px}.report-progress strong{font-size:11px;font-weight:600}.report-progress .is-complete{color:var(--blue)}.report-progress .is-complete>span{border-color:var(--blue);background:var(--blue);color:white}.report-progress .is-complete::after{background:var(--blue)}.report-progress .is-current{color:var(--navy)}.report-progress .is-current>span{background:var(--yellow);color:var(--navy);border-color:#d0b330;box-shadow:none}
.reports-heading{align-items:center}.reports-heading .button{flex-shrink:0;border-radius:4px}.history-reassurance{display:flex;gap:10px;align-items:flex-start;padding:11px 0 14px;border-bottom:1px solid var(--line);margin:0 0 20px;color:var(--muted);background:none;border-radius:0}.history-reassurance>.icon{margin-top:1px;width:17px;height:17px;color:var(--blue)}.history-reassurance p{font-size:11px;line-height:1.7}.queue-overview{margin-bottom:24px}.overview-label{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 11px}.overview-label>span{font-size:12px;font-weight:600;color:var(--ink)}.overview-label small{font-size:10px;color:var(--muted)}.queue-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:white;border:1px solid #c6d0de;border-radius:4px;overflow:hidden}.queue-stat{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:118px;padding:17px 21px 16px;border:0;border-right:1px solid #d7dee8;border-bottom:3px solid transparent;border-radius:0;background:white;color:var(--ink);box-shadow:none}.queue-stat:last-child{border-right:0}.queue-stat strong{font-size:29px;font-weight:700;line-height:1.1;letter-spacing:-.035em;margin-bottom:7px}.queue-stat>span:not(.queue-stat-icon){font-size:12px;font-weight:600}.queue-stat small{font-size:10px;line-height:1.6;color:var(--muted);margin-top:3px}.queue-stat-icon{position:absolute;right:18px;top:20px;color:var(--blue);background:none;border-radius:0}.queue-stat-icon .icon{width:17px;height:17px}.queue-stat:hover{background:#f7f9fc;box-shadow:none;transform:none}.queue-stat[aria-pressed=true]{background:#f1f4f9;border-bottom-color:var(--blue);box-shadow:none}
#reportFilters{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:17px 0;background:none;border-radius:0;align-items:end;margin-bottom:14px;gap:12px}#reportFilters .field label{font-size:11px}#reportFilters input,#reportFilters select{font-size:13px;border:1px solid #b9c5d4;border-radius:4px;min-height:42px;background:white}#reportFilters .button{min-height:42px;white-space:nowrap;border-radius:4px;box-shadow:none}#clearFilters{height:42px;white-space:nowrap;padding:0 4px;font-size:11px}.results-context{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:0 0 13px;font-size:11px;color:var(--muted)}#lastRefreshed{font-size:10px;white-space:nowrap}
.reports-list{gap:0;border:1px solid #c6d0de;border-top:3px solid var(--blue);border-radius:4px;overflow:hidden}.report-item{padding:20px 23px 15px;border:0;border-bottom:1px solid #d7dee8;border-radius:0;box-shadow:none;animation:none;background:white}.report-item:last-child{border-bottom:0}.report-item:hover{background:#f7f9fc;border-color:#d7dee8;box-shadow:none;transform:none}.report-item h3{font-size:16px;line-height:1.45;margin:6px 0 9px;letter-spacing:-.015em}.report-item .category-label{font-size:9px;letter-spacing:.1em;color:var(--blue)}.report-item-top>div{min-width:0}.report-item .status-badge{margin-top:1px;font-size:10px;padding:4px 8px;border-radius:4px}.report-meta{gap:15px;font-size:11px}.report-meta .report-reference{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;color:var(--navy)}.report-meta span{overflow-wrap:anywhere}.report-reporter{display:flex;gap:8px;align-items:center;border:0;padding:0;margin-top:13px;color:var(--ink);font-size:11px}.report-reporter>.icon{width:16px;height:16px;color:var(--muted);background:none;border-radius:0;padding:0;flex-shrink:0}.report-reporter span{overflow-wrap:anywhere;min-width:0}.report-reporter small{font-size:10px;display:inline;color:var(--muted);margin-left:9px}.report-status-description{font-size:11px;color:var(--muted);line-height:1.7;margin-top:12px}.report-item-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:10px;margin-top:11px;border-top:1px solid #edf0f4;color:var(--blue);font-size:10px;font-weight:600}.report-item-bottom>.icon{width:16px;height:16px}.reports-empty{padding:32px 24px;background:white;border:1px solid var(--line);border-radius:4px;text-align:center}.reports-empty .report-companion{width:75px;margin:0 auto 18px}.reports-empty .report-companion img{height:94px}.reports-empty h3{font-size:20px;letter-spacing:-.02em;margin-bottom:9px}.reports-empty p{font-size:12px;line-height:1.75;max-width:430px}.reports-empty .button,.pagination .button{border-radius:4px}
.detail-head{background:white;border-bottom:3px solid var(--yellow);position:sticky;top:0;z-index:1}.detail-head .status-badge{border-radius:4px}.detail-actions{display:flex;gap:7px;flex-shrink:0}.detail-head .detail-actions .icon-button{width:36px;height:36px;border-radius:4px}.detail-progress-card{background:#f7f8fa;border:1px solid #d5dde7;border-radius:4px;padding:18px 16px 13px}.detail-progress-card .report-progress{margin-bottom:14px}.detail-progress-card>p{text-align:center;color:var(--muted);font-size:11px;line-height:1.7}.detail-facts{background:white;border-bottom:1px solid var(--line);padding:0 0 20px;gap:19px}.detail-facts dt{font-size:10px;letter-spacing:.02em;margin-bottom:4px}.detail-facts dd{font-size:12px;line-height:1.7}.detail-body>section>h3{font-size:14px;border-bottom:1px solid var(--line);padding-bottom:8px}.detail-body .section-count{font-size:11px;font-weight:400;color:var(--muted);margin-left:5px}.evidence-link{padding:13px 12px;min-height:47px;background:#f7f8fa;border-radius:4px}.evidence-link>.icon:last-child{margin-left:auto;width:14px;height:14px}.evidence-footnote{font-size:10px;color:var(--muted);line-height:1.6;margin-top:8px}.timeline li{padding-left:24px;padding-bottom:22px;border-left:1px solid #c6d1df}.timeline li::before{left:-5px;width:9px;height:9px;top:5px;background:var(--blue)}.timeline strong{font-size:12px}.timeline time{font-size:10px}.timeline p{font-size:12px;line-height:1.75;background:none;border:0;border-radius:0;padding:0}.moderation-box{border:1px solid #c5d0df;border-left:3px solid var(--blue);border-radius:4px;padding:21px;background:#fafbfd}.moderation-box h3{font-size:17px;margin:0 0 9px}.moderation-guidance{font-size:12px;line-height:1.7;color:var(--muted);margin-bottom:17px}.moderation-box .field textarea{min-height:105px;background:white;border-radius:4px;border-color:#b9c5d4}.moderation-box .moderation-actions{gap:10px;margin-top:17px}.moderation-box .moderation-actions .button{min-height:42px;padding-left:17px;padding-right:17px;border-radius:4px;box-shadow:none}
@media(min-width:1100px){.report-sidebar{position:sticky;top:22px}}
@media(max-width:1050px){.report-heading{display:block}.report-private-note{padding-top:11px}.report-layout{grid-template-columns:minmax(0,1fr) 230px;gap:24px}.report-form-card{padding:24px}.queue-stat{padding:17px}.queue-stat-icon{right:14px}}
@media(max-width:780px){.report-layout{grid-template-columns:1fr}.report-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.report-sidebar .emergency-card{grid-column:1/-1;margin-top:0}.reporting-guide>.report-companion{width:110px}.reporting-guide>.report-companion img{height:104px}.report-heading h2,.reports-heading h2{font-size:23px}.queue-stat{min-height:111px;padding:15px 13px}.queue-stat strong{font-size:27px}.queue-stat-icon{right:11px;top:18px}.queue-stat-icon .icon{width:14px;height:14px}.queue-stat>span:not(.queue-stat-icon){font-size:11px}.queue-stat small{font-size:9px}#reportFilters .field:first-child{flex-basis:100%}.report-item{padding:19px 20px 14px}.success-card{padding:27px}}
@media(max-width:520px){.report-form-card{padding:20px 17px;border-radius:4px}.form-progress{gap:8px}.form-progress li{font-size:10px;padding:8px 0 11px;gap:6px}.form-progress li>span{height:17px;width:17px;font-size:9px}.form-progress-heading{font-size:10px;gap:8px}.report-form-card .field input,.report-form-card .field textarea,.report-form-card .field select{font-size:16px}.report-form-card .field small{font-size:11px}.report-form-card .card-heading h3{font-size:15px}.report-form-card .card-heading p{font-size:11px}.report-form-card .card-heading{gap:10px}.report-form-card .identity-card{padding:12px;margin-bottom:25px}.report-form-card .upload-zone{padding:18px 13px;gap:11px}.report-form-card .upload-zone>span{font-size:10px}.report-form-card .upload-zone strong,.report-form-card .upload-zone strong span{font-size:11px}.report-form-card .consent{font-size:11px}.report-form-card .submit-row{flex-direction:column-reverse;align-items:stretch}.report-form-card .submit-row small{text-align:center}.report-sidebar{grid-template-columns:minmax(0,1fr)}.report-sidebar .guide-card{display:block;padding:18px}.report-sidebar .reporting-guide{display:grid;grid-template-columns:minmax(0,1fr) 60px;gap:12px}.reporting-guide>.report-companion{grid-column:2;grid-row:1;width:60px;margin:0;padding:0;border:0}.reporting-guide>.report-companion img{height:72px}.report-sidebar .reporting-guide h3{grid-column:1;grid-row:1;align-self:center;margin:0}.reporting-guide .guide-list{grid-column:1/-1;margin:0}.reporting-guide .guide-list{gap:8px}.reporting-guide .guide-list li{font-size:11px}.report-sidebar .emergency-card{grid-column:auto;clear:both}.report-heading h2,.reports-heading h2{font-size:22px}.report-heading p,.reports-heading p{font-size:12px}.report-private-note{font-size:10px;white-space:normal}.reports-heading{gap:12px;align-items:flex-start}.reports-heading>.button{font-size:0;min-height:38px;width:38px;padding:9px}.reports-heading>.button .icon{width:17px;height:17px}.queue-stats{grid-template-columns:1fr 1fr}.queue-stat{padding:16px;min-height:109px}.queue-stat:nth-child(2){border-right:0}.queue-stat:nth-child(-n+2){border-bottom:1px solid #d7dee8}.queue-stat[aria-pressed=true]{background:#eef2f8;box-shadow:inset 3px 0 var(--blue)}.queue-stat strong{font-size:28px}.queue-stat-icon{right:15px;top:18px}.queue-stat small{font-size:10px}.queue-stat>span:not(.queue-stat-icon){font-size:11px}.overview-label small{font-size:9px}#reportFilters{padding:15px 0;gap:12px 10px}#reportFilters input,#reportFilters select{font-size:16px}#reportFilters .button{padding:10px 12px;font-size:12px}#clearFilters{height:31px;padding:0}.results-context{font-size:10px;align-items:flex-start}#lastRefreshed{font-size:9px}.report-item{padding:17px 15px 12px}.report-item h3{font-size:15px}.report-item-top{display:block}.report-item .status-badge{margin-top:11px}.report-meta{font-size:10px;gap:8px}.report-meta .report-reference{font-size:10px}.report-item-bottom{font-size:10px}.report-reporter{margin-top:12px}.report-reporter small{display:block;margin:3px 0 0}.report-status-description{font-size:11px}.pagination{font-size:10px;gap:9px}.pagination-range{display:none}.pagination .button{font-size:11px;min-height:38px}.reports-empty{padding:25px 18px}.reports-empty h3{font-size:20px}.reports-empty p{font-size:12px}.history-reassurance{padding:8px 0 13px}.success-card{padding:23px 20px}.success-illustration{width:55px;margin:0 0 12px 14px}.success-illustration .report-companion{width:55px}.success-illustration .report-companion img{height:77px}.success-card h2{font-size:23px}.success-card p{font-size:12px}.success-card .tracking-box code{font-size:15px}.success-card .row{flex-direction:column}.success-card .row .button{width:100%}.report-progress strong{font-size:10px}.detail-head h2{font-size:20px}.detail-head .eyebrow{font-size:9px}.detail-head{gap:12px;padding:20px 17px}.detail-actions{flex-direction:column-reverse;gap:6px}.detail-head .detail-actions .icon-button{width:33px;height:33px}.detail-body{padding:20px 17px}.detail-facts{gap:16px}.detail-progress-card{padding:17px 10px 13px}.detail-progress-card>p{font-size:11px}.moderation-box{padding:18px 15px}.moderation-box .field textarea{font-size:16px}.moderation-actions .button{flex:1}}

/* Dark mode preserves the form and record layout with slate surfaces. */
:root[data-theme="dark"] .report-form-card,
:root[data-theme="dark"] .success-card,
:root[data-theme="dark"] .reports-empty{background:#172336;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .report-form-card,
:root[data-theme="dark"] .success-card{border-top-color:var(--blue)}
:root[data-theme="dark"] .form-progress li>span{background:#23344d;color:var(--muted)}
:root[data-theme="dark"] .form-progress li.is-complete>span{background:#284b7d;color:#edf4ff}
:root[data-theme="dark"] .form-section-number{background:var(--yellow);color:#14243c}
:root[data-theme="dark"] .report-form-card .identity-card{background:#1b2a40;border-left-color:var(--blue)}
:root[data-theme="dark"] .report-form-card .identity-card strong{color:var(--ink)}
:root[data-theme="dark"] .report-form-card .field label,
:root[data-theme="dark"] .report-form-card .field-label,
:root[data-theme="dark"] #reportFilters label,
:root[data-theme="dark"] .moderation-box .field label{color:var(--ink)}
:root[data-theme="dark"] .report-form-card .field input,
:root[data-theme="dark"] .report-form-card .field textarea,
:root[data-theme="dark"] .report-form-card .field select,
:root[data-theme="dark"] #reportFilters input,
:root[data-theme="dark"] #reportFilters select,
:root[data-theme="dark"] .moderation-box .field textarea{background:#101a2a;color:var(--ink);border-color:#687c98;color-scheme:dark}
:root[data-theme="dark"] .report-form-card input::placeholder,
:root[data-theme="dark"] .report-form-card textarea::placeholder,
:root[data-theme="dark"] #reportFilters input::placeholder,
:root[data-theme="dark"] .moderation-box textarea::placeholder{color:#a3b2c8;opacity:1}
:root[data-theme="dark"] .report-form-card .field :is(input,textarea,select):focus,
:root[data-theme="dark"] #reportFilters :is(input,select):focus,
:root[data-theme="dark"] .moderation-box textarea:focus{border-color:var(--blue);box-shadow:0 0 0 2px #8eb8ff35}
:root[data-theme="dark"] .report-form-card .upload-zone{background:#1b2a40;border-color:#7086a4;color:var(--ink)}
:root[data-theme="dark"] .report-form-card .upload-zone.dragging{background:#23344d;border-color:var(--blue)}
:root[data-theme="dark"] .report-form-card .file-item{background:#1b2a40;border-color:var(--line)}
:root[data-theme="dark"] .report-form-card .file-item button{color:var(--muted)}
:root[data-theme="dark"] .report-form-card .file-item button:hover{background:#2a3d58;color:var(--ink)}
:root[data-theme="dark"] .report-form-card .consent{background:transparent;color:var(--muted)}
:root[data-theme="dark"] .report-form-card .consent input{accent-color:var(--blue);color-scheme:dark}
:root[data-theme="dark"] .evidence-over-limit{color:#ffb1b4!important}
:root[data-theme="dark"] :is(.report-form-card,#detailContent) .form-message{background:#40282b;border-color:#895158;color:#ffc5c7}
:root[data-theme="dark"] :is(.report-form-card,#detailContent) .form-message.success{background:#17392d;border-color:#42765b;color:#a5e1c2}
:root[data-theme="dark"] :is(.report-form-card,#detailContent) .form-message.info{background:#1c3352;border-color:#4f729e;color:#bdd6ff}
:root[data-theme="dark"] .report-sidebar .guide-card{background:transparent}
:root[data-theme="dark"] .report-sidebar .emergency-card{background:#2f2a1c;border-color:#6d613e;border-left-color:var(--yellow)}
:root[data-theme="dark"] .report-sidebar .emergency-card h3,
:root[data-theme="dark"] .report-sidebar .emergency-card>.icon{color:#f4d77e}
:root[data-theme="dark"] .report-sidebar .emergency-card p{color:#e3d2ac}
:root[data-theme="dark"] .success-card .tracking-box{background:#1b2a40;border-color:#566b86}
:root[data-theme="dark"] .report-progress li{color:var(--muted)}
:root[data-theme="dark"] .report-progress li::after{background:#5a6d88}
:root[data-theme="dark"] .report-progress li>span{background:#1b2a40;border-color:#687c98;color:var(--muted)}
:root[data-theme="dark"] .report-progress .is-complete{color:var(--blue)}
:root[data-theme="dark"] .report-progress .is-complete>span{background:#284b7d;border-color:#5b87c4;color:#edf4ff}
:root[data-theme="dark"] .report-progress .is-complete::after{background:#6e94c9}
:root[data-theme="dark"] .report-progress .is-current{color:var(--ink)}
:root[data-theme="dark"] .report-progress .is-current>span{background:var(--yellow);border-color:#d0b330;color:#14243c}
:root[data-theme="dark"] .queue-stats,
:root[data-theme="dark"] .queue-stat{background:#172336;border-color:var(--line)}
:root[data-theme="dark"] .queue-stat:hover{background:#1b2a40}
:root[data-theme="dark"] .queue-stat[aria-pressed="true"]{background:#23344d;border-bottom-color:var(--blue)}
:root[data-theme="dark"] .reports-list{border-color:var(--line);border-top-color:var(--blue)}
:root[data-theme="dark"] .report-item{background:#172336;border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] .report-item:hover{background:#1b2a40;border-color:var(--line)}
:root[data-theme="dark"] .report-item-bottom{border-color:var(--line)}
:root[data-theme="dark"] :is(#reportResults,#detailContent) .status-badge{background:#342e1d;color:#eed587;border-color:#7b6939}
:root[data-theme="dark"] :is(#reportResults,#detailContent) :is(.status-approved,.status-forwarded){background:#1d3352;color:#a9cbff;border-color:#577dac}
:root[data-theme="dark"] :is(#reportResults,#detailContent) .status-resolved{background:#17392d;color:#9adbb8;border-color:#497c60}
:root[data-theme="dark"] :is(#reportResults,#detailContent) .status-rejected{background:#40282b;color:#ffb1b4;border-color:#895158}
:root[data-theme="dark"] .detail-head{background:#172336;border-bottom-color:var(--yellow)}
:root[data-theme="dark"] .detail-progress-card{background:#1b2a40;border-color:var(--line)}
:root[data-theme="dark"] .detail-facts{background:transparent;border-color:var(--line)}
:root[data-theme="dark"] .detail-description,
:root[data-theme="dark"] .timeline p{color:#c3cfe0}
:root[data-theme="dark"] .evidence-link{background:#1b2a40;border-color:var(--line);color:var(--blue)}
:root[data-theme="dark"] .evidence-link:hover{background:#23344d;border-color:#6b83a4}
:root[data-theme="dark"] .timeline li{border-left-color:#5a6d88}
:root[data-theme="dark"] .timeline li::before{background:var(--blue);border-color:#172336;box-shadow:0 0 0 1px #6e94c9}
:root[data-theme="dark"] .moderation-box{background:#1b2a40;border-color:var(--line);border-left-color:var(--blue)}
@media(max-width:520px){:root[data-theme="dark"] .queue-stat:nth-child(-n+2){border-bottom-color:var(--line)}:root[data-theme="dark"] .queue-stat[aria-pressed="true"]{box-shadow:inset 3px 0 var(--blue)}}

/* Keep the report information block readable inside narrow dialogs. */
.report-form-card .field-row{align-items:start}
.report-form-card .field-row input{height:50px;min-height:50px}
.report-form-card input[type="datetime-local"]::-webkit-datetime-edit{padding:0}
.detail-body{gap:24px}
.detail-body>section,.detail-head>div:first-child,.detail-facts dl{min-width:0}
.detail-facts{padding:18px 20px;gap:20px 24px;border:1px solid var(--line);border-left:3px solid var(--blue);border-radius:4px}
.detail-facts dt{line-height:1.5;margin-bottom:5px}
.detail-facts dd{line-height:1.7;overflow-wrap:anywhere}
@media(max-width:520px){.detail-body{gap:22px}.detail-facts{padding:16px 14px;gap:17px 18px}.detail-head h2{line-height:1.35}.detail-head .eyebrow{line-height:1.7;display:block;overflow-wrap:anywhere}}
@media(max-width:380px){.detail-facts{grid-template-columns:1fr;gap:14px}.detail-facts dl+dl{border-top:1px solid var(--line);padding-top:12px}}

/* The evidence viewer stays above the open report without changing pages. */
.evidence-dialog{position:fixed;inset:0;margin:auto;padding:0;width:min(1000px,calc(100% - 48px));max-width:none;max-height:calc(100dvh - 48px);border:1px solid #b7c5d8;border-top:3px solid var(--blue);border-radius:5px;background:white;color:var(--ink);box-shadow:0 24px 80px #06152d55;overflow:hidden;overscroll-behavior:contain}
.evidence-dialog[open]{display:flex;flex-direction:column}
.evidence-dialog::backdrop{background:#061326ad;backdrop-filter:blur(2px)}
.evidence-viewer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 24px;border-bottom:1px solid var(--line);background:white;flex-shrink:0}
.evidence-viewer-head>div{min-width:0}
.evidence-viewer-head h2{font-size:20px;line-height:1.35;letter-spacing:-.02em;margin:0}
.evidence-viewer-head p{font-size:11px;color:var(--muted);line-height:1.6;margin-top:4px;overflow-wrap:anywhere}
.evidence-viewer-head .icon-button{width:40px;height:40px;border-radius:4px;flex-shrink:0}
.evidence-viewer-body{padding:20px 24px;overflow:auto;min-height:0;display:grid;gap:17px;flex:1;overscroll-behavior:contain}
.evidence-stage{display:grid;place-items:center;min-height:min(42dvh,360px);background:#f0f3f7;border:1px solid #d7dfe9;border-radius:4px;padding:15px;overflow:hidden}
.evidence-media{display:block;max-width:100%;max-height:min(58dvh,620px);margin:auto;object-fit:contain}
img.evidence-media{width:auto;height:auto}
video.evidence-media{width:100%;background:#0b1220;border-radius:2px;min-width:0}
.evidence-preview-message{display:flex;flex-direction:column;align-items:center;gap:13px;max-width:440px;padding:24px 15px;text-align:center}
.evidence-preview-message>.icon{height:30px;width:30px;color:var(--blue)}
.evidence-preview-message h3{font-size:17px;letter-spacing:-.015em;line-height:1.4;margin:0}
.evidence-preview-message p{font-size:13px;line-height:1.8;color:var(--muted);margin:0}
.evidence-preview-message small{font-size:11px;line-height:1.7;color:var(--muted)}
.evidence-preview-error>.icon{color:#a33f31}
.evidence-source{display:flex;align-items:center;justify-content:space-between;gap:18px}
.evidence-source>div{min-width:0;flex:1}
.evidence-source span{font-size:10px;font-weight:600;color:var(--muted)}
.evidence-source p{font-size:12px;line-height:1.7;color:var(--ink);margin:3px 0 0;overflow-wrap:anywhere;max-height:66px;overflow:auto}
.evidence-source .button{flex-shrink:0;min-height:40px;border-radius:4px}
.evidence-source .button .icon{width:15px;height:15px}
.evidence-viewer-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 24px;border-top:1px solid var(--line);flex-shrink:0;background:white}
.evidence-viewer-footer .button{border-radius:4px;min-height:42px;padding:10px 13px;font-size:12px;white-space:nowrap}
.evidence-viewer-footer .icon{height:16px;width:16px}
.evidence-back-arrow{display:inline-flex;transform:rotate(180deg)}
#evidencePosition{font-size:12px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
:root[data-theme="dark"] .evidence-dialog{background:#172336;border-color:#566e91;border-top-color:var(--blue);color:var(--ink);box-shadow:0 24px 80px #0008}
:root[data-theme="dark"] .evidence-viewer-head,
:root[data-theme="dark"] .evidence-viewer-footer{background:#172336;border-color:var(--line)}
:root[data-theme="dark"] .evidence-stage{background:#101a2a;border-color:var(--line)}
:root[data-theme="dark"] .evidence-preview-error>.icon{color:#ffb1b4}
@media(max-width:600px){.evidence-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 24px)}.evidence-viewer-head{padding:16px 17px;gap:12px}.evidence-viewer-head h2{font-size:18px}.evidence-viewer-body{padding:16px 17px;gap:15px}.evidence-stage{padding:8px;min-height:220px}.evidence-media{max-height:48dvh}.evidence-source{align-items:flex-start;flex-direction:column;gap:11px}.evidence-source p{font-size:11px}.evidence-source .button{font-size:11px;padding:9px 12px}.evidence-viewer-footer{padding:13px 17px;gap:10px}.evidence-viewer-footer .button{font-size:11px;padding:9px 11px;gap:6px}.evidence-preview-message{padding:18px 9px;gap:11px}.evidence-preview-message h3{font-size:16px}.evidence-preview-message p{font-size:12px}}
@media(max-width:380px){.evidence-viewer-head,.evidence-viewer-body{padding:14px}.evidence-viewer-footer{padding:12px 14px;gap:7px}.evidence-viewer-footer .button{padding:9px;font-size:10px}.evidence-viewer-footer .icon{width:14px;height:14px}#evidencePosition{font-size:11px}.evidence-stage{min-height:190px}}
@media(max-height:540px) and (min-width:601px){.evidence-dialog{max-height:calc(100dvh - 20px)}.evidence-viewer-head{padding:12px 20px}.evidence-viewer-body{padding:13px 20px}.evidence-viewer-footer{padding:10px 20px}.evidence-stage{min-height:140px}.evidence-media{max-height:45dvh}}
