.recorded-screens { min-width: 0; color: #e8f1ff; font-size: 1rem; }
.recorded-screens [hidden] { display: none !important; }
.recorded-screens section { margin: 0 0 20px; }
.recorded-screens h2 { font-size: 1.4rem; line-height: 1.35; }
.recorded-screens button { min-height: 44px; font-size: .875rem; }
.rs-intro-header, .rs-record-header, .rs-results-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.rs-eyebrow { margin: 0 0 8px; font-size: .875rem; color: #86e0bd; letter-spacing: .06em; font-weight: 700; }
.rs-intro h2 { margin: 0 0 10px; }
.rs-intro-copy { max-width: 800px; margin: 0; color: #bdcfe3; font-size: 1rem; }
.recorded-screens .rs-refresh { width: auto; flex-shrink: 0; }
.rs-refresh:disabled { opacity: .65; cursor: wait; }
.rs-metadata { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #31475f; }
.rs-metadata p { margin: 0; color: #b4cbe0; font-size: .875rem; }
.rs-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rs-field { min-width: 0; }
.rs-field label { color: #c3d5e9; font-size: .875rem; }
.rs-field select, .rs-field input { width: 100%; min-height: 44px; padding: 10px 12px; font-size: 1rem; }
.rs-field select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23bcd2e6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.rs-status { margin: 0 0 16px; color: #b5cde2; font-size: .875rem; }
.rs-rule { padding: 18px 20px; background: #132b31; border-left: 3px solid #69c5a3; border-radius: 0 9px 9px 0; }
.rs-rule p { margin: 0 0 10px; color: #c1d9df; font-size: 1rem; }
.rs-rule p:last-child { margin: 0; }
.rs-rule strong { color: #d6f7e8; }
.rs-rule-version { overflow-wrap: anywhere; font-size: .875rem !important; color: #b3ccd2 !important; }
.rs-coverage h2, .rs-summary h2 { margin: 0 0 12px; }
.rs-coverage-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.rs-coverage-line p { margin: 0; color: #c0d2e6; font-size: .875rem; }
.rs-badge { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid #435a72; border-radius: 6px; background: #24384f; color: #d0e3f5; font-size: .875rem; font-weight: 600; }
.rs-badge-success { background: #183b2d; border-color: #416b55; color: #a8e9c7; }
.rs-badge-warning { background: #3b311f; border-color: #786440; color: #eed49f; }
.rs-badge-calibration { background: #282d48; border-color: #505a84; color: #cbd5ff; }
.rs-coverage-detail { margin: 12px 0 0; color: #adc5db; font-size: .875rem; }
.rs-summary-note { margin: 0 0 16px; color: #b5ccdf; font-size: 1rem; max-width: 920px; }
.rs-phase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rs-phase { background: #122339; border: 1px solid #3a516a; border-radius: 10px; padding: 20px; min-width: 0; }
.rs-phase h3 { margin: 0 0 8px; font-size: 1.125rem; color: #dcecff; }
.rs-phase p { margin: 0 0 15px; color: #b4cbe0; font-size: .875rem; }
.rs-phase-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 10px; }
.rs-stat { min-width: 0; }
.rs-stat strong { display: block; font-size: 1.7rem; line-height: 1.2; font-variant-numeric: tabular-nums; color: #dcefff; }
.rs-stat span { display: block; margin-top: 5px; color: #b7cde2; font-size: .875rem; }
.rs-phase .rs-rate { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #334b62; color: #bce3d2; font-size: 1rem; }
.rs-results-header { align-items: flex-end; margin-bottom: 16px; }
.rs-results-header h2 { margin: 0 0 8px; }
.rs-results-header p { margin: 0; color: #b4cce1; font-size: .875rem; }
.rs-result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.recorded-screens .rs-result-actions button { width: auto; }
.recorded-screens .rs-clear { background: transparent; color: #a8d4f3; padding: 10px 6px; text-decoration: underline; text-underline-offset: 3px; }
.rs-export:disabled { opacity: .5; cursor: default; }
.rs-record-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.recorded-screens .rs-record { padding: 20px; min-width: 0; margin: 0; }
.rs-record-header { flex-wrap: wrap; gap: 9px; font-size: .875rem; color: #abc6de; }
.rs-record-header time { color: #c9deef; }
.rs-record-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rs-capture-line { margin: 14px 0 0; font-size: .875rem; color: #b9cfe3; }
.rs-first { margin: 8px 0 0; color: #bce3d2; font-size: .875rem; }
.rs-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 20px 0; }
.rs-team { min-width: 0; }
.rs-team-away { text-align: right; }
.rs-team-side { display: block; margin-bottom: 7px; color: #9dbbd5; font-size: .875rem; font-weight: 600; }
.recorded-screens .rs-team h3 { margin: 0; color: #e9f3ff; font-size: 1.125rem; line-height: 1.35; overflow-wrap: anywhere; }
.rs-canonical { margin: 5px 0 0; color: #b4cbe0; font-size: .875rem; }
.rs-ppg { margin: 12px 0 8px; }
.rs-ppg strong { display: block; color: #d5f2e4; font-size: 1.9rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rs-ppg span { display: block; margin-top: 4px; color: #b6cede; font-size: .875rem; }
.rs-history-counts, .rs-history-range { margin: 6px 0 0; color: #adc6dd; font-size: .875rem; }
.rs-gap { margin: 0 0 10px; padding: 11px 12px; border: 1px solid #344f67; border-radius: 7px; background: #102137; color: #c8ddee; font-size: .875rem; font-variant-numeric: tabular-nums; }
.rs-reason { margin: 0 0 10px; font-size: 1rem; color: #d1e2f0; }
.rs-result { margin-top: 18px; padding: 16px; border: 1px solid #3c536b; background: #13273c; border-radius: 8px; }
.rs-result h4 { margin: 0 0 8px; color: #d9e9f6; font-size: 1rem; }
.rs-result p { margin: 6px 0 0; font-size: .875rem; color: #b7cee3; }
.rs-result .rs-score { font-size: 1.25rem; color: #ecf6ff; font-variant-numeric: tabular-nums; }
.rs-detail { margin-top: 16px; border-top: 1px solid #344c63; }
.rs-detail summary { width: fit-content; padding: 12px 0; min-height: 44px; cursor: pointer; color: #afd7f4; font-size: .875rem; font-weight: 600; }
.rs-detail-note { margin: 4px 0 14px; color: #b0c7dc; font-size: .875rem; }
.rs-date-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.recorded-screens .rs-date-team h4 { margin: 0 0 10px; color: #d6e8f8; font-size: .875rem; overflow-wrap: anywhere; }
.rs-date-list, .rs-revision-list { list-style: none; padding: 0; margin: 0; }
.rs-date-list li { padding: 8px 0; border-bottom: 1px solid #2f475f; }
.rs-date-list li:last-child { border: 0; }
.rs-date-list time, .rs-date-list span { display: block; font-size: .875rem; }
.rs-date-list time { color: #c7dceb; }
.rs-date-list span { margin-top: 4px; color: #aac3da; }
.rs-revision-list li { margin: 10px 0; padding: 12px; background: #112237; border: 1px solid #314b64; border-radius: 6px; }
.rs-revision-list strong { display: block; color: #d6e8f8; font-size: .875rem; }
.rs-revision-list p, .rs-provenance p { margin: 6px 0 0; color: #b3cbe1; font-size: .875rem; overflow-wrap: anywhere; }
.rs-provenance { margin-top: 14px; padding-top: 12px; border-top: 1px solid #304960; }
.recorded-screens .rs-more { display: block; width: auto; margin: 24px auto 0; min-width: 220px; }
.rs-empty { grid-column: 1 / -1; text-align: center; padding: 28px; }
.rs-empty h3 { margin: 0 0 10px; font-size: 1.125rem; }
.rs-empty p { margin: 0; font-size: 1rem; color: #b5cde1; }
.rs-notice { margin-bottom: 20px; padding: 18px; border: 1px solid #786342; border-radius: 10px; background: #342b1e; color: #e9d4af; }
.rs-notice p { margin: 0 0 12px; font-size: 1rem; }
.recorded-screens .rs-retry { width: auto; }
.recorded-screens :is(button, select, input, summary):focus-visible { outline: 2px solid #8ce4c3; outline-offset: 3px; }
@media (max-width: 1050px) {
  .rs-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-record-list { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .rs-intro-header, .rs-results-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .rs-controls { padding: 16px; gap: 14px 10px; }
  .rs-field select, .rs-field input { padding-left: 9px; font-size: .875rem; }
  .rs-phase-grid { grid-template-columns: 1fr; }
  .rs-phase { padding: 16px; }
  .rs-phase-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recorded-screens .rs-record { padding: 16px 12px; }
  .rs-teams { gap: 12px; }
  .recorded-screens .rs-team h3 { font-size: 1rem; }
  .rs-record-header time { width: 100%; }
  .rs-date-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .recorded-screens button { transition: none; } }
