:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #687287;
  --line: #dce1e8;
  --soft-line: #e9edf2;
  --paper: #ffffff;
  --canvas: #f5f6f8;
  --navy: #101a32;
  --gold: #d5a83d;
  --gold-soft: #f9f0d8;
  --urgent: #b42318;
  --urgent-soft: #fef3f2;
  --review: #b54708;
  --review-soft: #fff6ed;
  --watch: #175cd3;
  --watch-soft: #eff8ff;
  --clear: #027a48;
  --clear-soft: #ecfdf3;
  --shadow: 0 16px 42px rgba(18, 26, 45, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: linear-gradient(180deg, #eef0f4 0, var(--canvas) 220px); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(23, 92, 211, .28); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--navy); color: white; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 13px clamp(20px, 4vw, 64px); color: white; background: var(--navy); border-bottom: 3px solid var(--gold); }
.brand-lockup, .header-actions, .wordmark, .mode-state { display: flex; align-items: center; }
.brand-lockup { gap: 22px; }
.wordmark { gap: 12px; color: white; text-decoration: none; }
.wordmark b, .wordmark small { display: block; }
.wordmark b { font-family: Georgia, "Times New Roman", serif; font-size: 18px; letter-spacing: .01em; }
.wordmark small { margin-top: 2px; color: #aeb8cc; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--navy); background: var(--gold); border: 1px solid #efd37c; border-radius: 50%; font-family: Georgia, serif; font-size: 23px; font-weight: 900; box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 5px var(--gold); }
.environment-badge { padding: 6px 9px; color: #c7d0e0; border: 1px solid #35415c; border-radius: 999px; font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.header-actions { gap: 18px; }
.reviewer-field span { display: block; margin-bottom: 4px; color: #aeb8cc; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.reviewer-field input { width: 180px; padding: 8px 10px; color: white; background: #0b1429; border: 1px solid #3b4864; border-radius: 7px; }
.mode-state { gap: 8px; max-width: 260px; color: #cbd4e4; font-size: 12px; font-weight: 650; }
.state-dot { width: 9px; height: 9px; flex: 0 0 auto; background: #f79009; border: 2px solid rgba(255,255,255,.25); border-radius: 50%; }
.mode-state.is-enabled .state-dot { background: #12b76a; }

main { width: min(1440px, calc(100% - clamp(32px, 7vw, 104px))); margin: 0 auto; padding-bottom: 72px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 510px); align-items: end; gap: 64px; padding: 54px 0 36px; }
.eyebrow, .kicker { margin: 0 0 8px; color: #7a5b16; font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; color: var(--navy); }
h1 { margin-bottom: 13px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 62px); line-height: .98; letter-spacing: -.035em; }
.hero-copy { max-width: 710px; margin: 0; color: #535e73; font-size: 17px; line-height: 1.6; }
.hero-note { display: flex; gap: 14px; padding: 17px 19px; background: rgba(255,255,255,.72); border: 1px solid #d8dde6; border-radius: 10px; box-shadow: 0 7px 24px rgba(27,35,54,.04); }
.hero-note p { margin: 0; color: #586276; font-size: 13px; line-height: 1.55; }
.hero-note strong { color: var(--navy); }
.note-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; color: #7a5b16; background: var(--gold-soft); border: 1px solid #e7ce91; border-radius: 50%; font-family: Georgia, serif; font-weight: 900; }

.view-tabs { display: flex; align-items: center; gap: 4px; min-height: 55px; border-bottom: 1px solid #cfd5df; }
.view-tab, .refresh-button, .text-button { border: 0; background: none; }
.view-tab { align-self: stretch; padding: 0 18px; color: #667085; border-bottom: 3px solid transparent; font-size: 13px; font-weight: 800; }
.view-tab:hover { color: var(--navy); }
.view-tab.is-active { color: var(--navy); border-color: var(--gold); }
.tab-count { display: inline-block; min-width: 24px; margin-left: 5px; padding: 2px 6px; color: #6c531b; background: #f7edcf; border-radius: 99px; font-size: 11px; }
.refresh-button { margin-left: auto; padding: 9px 0 9px 16px; color: #4e5b72; font-size: 12px; font-weight: 750; }
.refresh-button span { display: inline-block; margin-right: 5px; font-size: 16px; }
.refresh-button.is-loading span { animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice-stack { display: grid; gap: 9px; margin-top: 20px; }
.notice { display: flex; justify-content: space-between; gap: 20px; padding: 12px 15px; color: #59430f; background: #fffaeb; border: 1px solid #fedf89; border-radius: 8px; font-size: 13px; line-height: 1.45; }
.notice.is-error { color: #7a271a; background: var(--urgent-soft); border-color: #fecdca; }
.notice button { align-self: center; color: inherit; border: 0; background: none; font-weight: 800; }
.view-panel { padding-top: 34px; }
.section-heading, .panel-heading, .table-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading { margin-bottom: 23px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(27px, 3vw, 36px); letter-spacing: -.02em; }
.last-refreshed, .section-explainer { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: right; }

.signal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.signal-card { position: relative; min-height: 144px; padding: 20px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid currentColor; border-radius: 8px; box-shadow: var(--shadow); }
.signal-card::after { content: ''; position: absolute; right: -28px; bottom: -34px; width: 104px; height: 104px; background: currentColor; border-radius: 50%; opacity: .04; }
.signal-card.urgent { color: var(--urgent); }
.signal-card.recommended { color: var(--review); }
.signal-card.watch { color: var(--watch); }
.signal-card.none { color: var(--clear); }
.signal-card strong { display: block; margin-bottom: 6px; color: currentColor; font-family: Georgia, serif; font-size: 42px; line-height: 1; }
.signal-card b { color: var(--navy); font-size: 13px; }
.signal-card p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .55fr); gap: 18px; margin-top: 18px; }
.panel-card { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 10px 28px rgba(18,26,45,.045); }
.panel-heading { align-items: flex-start; margin-bottom: 20px; }
.panel-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 22px; }
.definition-tag { padding: 5px 8px; color: #687287; background: #f3f5f7; border: 1px solid #e1e5ea; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--soft-line); border: 1px solid var(--soft-line); }
.metric { min-height: 94px; padding: 15px; background: white; }
.metric strong { display: block; margin-bottom: 5px; color: var(--navy); font-family: Georgia, serif; font-size: 27px; }
.metric span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.panel-footnote { margin: 17px 0 0; padding-left: 13px; color: var(--muted); border-left: 3px solid var(--gold); font-size: 11px; line-height: 1.55; }
.status-list { display: grid; gap: 10px; }
.status-row { display: grid; grid-template-columns: 11px 1fr auto; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--soft-line); font-size: 12px; }
.status-row:last-child { padding-bottom: 0; border: 0; }
.status-row i { width: 8px; height: 8px; background: #98a2b3; border-radius: 50%; }
.status-row.flagged i { background: var(--urgent); }
.status-row.verified i { background: var(--clear); }
.status-row.edited i { background: #7f56d9; }
.status-row.frozen i { background: var(--watch); }
.status-row.removed i { background: #475467; }
.status-row strong { color: var(--navy); font-family: Georgia, serif; font-size: 19px; }
.attention-card { margin-top: 18px; }
.text-button { padding: 4px; color: #735915; font-size: 12px; font-weight: 800; }
.priority-list { display: grid; }
.priority-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(180px, .5fr) minmax(190px, .55fr) 36px; align-items: center; gap: 18px; padding: 14px 4px; color: inherit; border: 0; border-top: 1px solid var(--soft-line); background: none; text-align: left; }
.priority-row:hover { background: #fafbfc; }
.priority-question strong { display: block; color: var(--navy); font-size: 13px; }
.priority-question span, .priority-reason { color: var(--muted); font-size: 11px; line-height: 1.4; }
.priority-row .arrow { color: #8c6b1d; font-size: 20px; text-align: center; }

.filter-bar { display: grid; grid-template-columns: minmax(250px, 1.4fr) repeat(5, minmax(130px, .6fr)) auto; gap: 8px; padding: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.filter-bar input, .filter-bar select { width: 100%; min-height: 40px; padding: 8px 10px; color: var(--ink); background: #fff; border: 1px solid #cfd5df; border-radius: 6px; font-size: 12px; }
.search-field { display: flex; align-items: center; gap: 8px; padding-left: 11px; border: 1px solid #cfd5df; border-radius: 6px; }
.search-field:focus-within { outline: 3px solid rgba(23,92,211,.18); }
.search-field input { padding-left: 0; border: 0; outline: 0 !important; }
.secondary-button, .danger-button, .primary-button, .community-button { min-height: 40px; padding: 9px 13px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.secondary-button { color: #344054; background: white; border: 1px solid #cfd5df; }
.secondary-button:hover { background: #f8f9fb; }
.primary-button { color: white; background: var(--navy); border: 1px solid var(--navy); }
.danger-button { color: white; background: var(--urgent); border: 1px solid var(--urgent); }
.community-button { color: #694c08; background: var(--gold-soft); border: 1px solid #e8ce8a; }
button:disabled { cursor: not-allowed; opacity: .46; }
.table-toolbar { margin: 13px 2px 8px; }
.table-toolbar p { margin: 0; color: var(--muted); font-size: 11px; }
.table-shell { overflow: auto; max-height: 66vh; background: white; border: 1px solid #d6dbe3; border-radius: 8px; box-shadow: 0 9px 28px rgba(18,26,45,.04); }
table { width: 100%; min-width: 1780px; border-collapse: collapse; table-layout: fixed; }
th { position: sticky; top: 0; z-index: 2; padding: 0; background: #f0f2f5; border-bottom: 1px solid #cdd3dc; }
th button { display: flex; align-items: center; justify-content: space-between; gap: 5px; width: 100%; min-height: 46px; padding: 10px 11px; color: #4d586c; background: none; border: 0; font-size: 10px; font-weight: 850; letter-spacing: .045em; text-align: left; text-transform: uppercase; }
th button:hover { color: var(--navy); background: #e9ecf1; }
th.is-sorted button { color: #725611; background: #f8f0dc; }
td { padding: 12px 11px; color: #435066; border-bottom: 1px solid #e9edf2; font-size: 11px; line-height: 1.4; vertical-align: middle; }
tbody tr { cursor: pointer; }
tbody tr:hover, tbody tr:focus-within { background: #f9fafb; }
tbody tr:last-child td { border-bottom: 0; }
.question-cell { color: var(--navy); font-size: 12px; font-weight: 750; }
.question-cell button { width: 100%; padding: 0; color: inherit; background: none; border: 0; text-align: left; font: inherit; }
.answer-cell, .source-cell { color: #667085; }
.number-cell { font-variant-numeric: tabular-nums; text-align: right; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid currentColor; border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: .035em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.pill.urgent { color: var(--urgent); background: var(--urgent-soft); }
.pill.recommended { color: var(--review); background: var(--review-soft); }
.pill.watch { color: var(--watch); background: var(--watch-soft); }
.pill.none { color: var(--clear); background: var(--clear-soft); }
.status-pill { display: inline-block; padding: 4px 7px; color: #475467; background: #f2f4f7; border-radius: 4px; font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.status-pill.flagged { color: #912018; background: #fee4e2; }
.status-pill.verified { color: #05603a; background: #d1fadf; }
.status-pill.edited { color: #6941c6; background: #ebe9fe; }
.status-pill.frozen { color: #175cd3; background: #d1e9ff; }
.status-pill.removed { color: #344054; background: #e4e7ec; }
.confidence { display: block; margin-top: 3px; color: #7b8496; font-size: 9px; white-space: nowrap; }
.empty-state { padding: 56px 20px; text-align: center; }
.empty-state span { color: #98a2b3; font-size: 38px; }
.empty-state h3 { margin: 9px 0 5px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }

.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.category-card { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.category-card header { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--soft-line); }
.category-card h3 { margin: 0; font-family: Georgia, serif; font-size: 20px; }
.exposure { text-align: right; }
.exposure strong, .exposure span { display: block; }
.exposure strong { color: #735915; font-family: Georgia, serif; font-size: 23px; }
.exposure span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.category-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 16px; }
.category-stats strong, .category-stats span { display: block; }
.category-stats strong { color: var(--navy); font-size: 17px; }
.category-stats span { margin-top: 2px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.category-card footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 10px; }
.category-card footer button { color: #735915; background: none; border: 0; font-weight: 800; }

.library-gate { display: grid; place-items: center; min-height: 340px; padding: 40px; background: white; border: 1px solid var(--line); border-radius: 9px; text-align: center; }
.library-gate .confirmation-icon { margin-bottom: 12px; }
.library-gate h3 { margin-bottom: 8px; font-family: Georgia, serif; font-size: 24px; }
.library-gate p { max-width: 580px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.library-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.library-summary .metric { min-height: 82px; border: 1px solid var(--line); border-radius: 7px; }
.library-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 14px; align-items: start; }
.library-sidebar, .library-main { background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 10px 28px rgba(18,26,45,.045); }
.library-sidebar { position: sticky; top: 12px; overflow: hidden; }
.library-sidebar-header, .library-main-header { padding: 18px; border-bottom: 1px solid var(--soft-line); }
.library-sidebar-header h3, .library-main-header h3 { margin: 0; font-family: Georgia, serif; font-size: 21px; }
.library-sidebar-header p, .library-main-header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.library-sidebar-tools { display: grid; gap: 8px; padding: 12px; background: #fafbfc; border-bottom: 1px solid var(--soft-line); }
.library-sidebar-tools input, .library-question-tools input { width: 100%; min-height: 39px; padding: 8px 10px; color: var(--ink); background: white; border: 1px solid #cfd5df; border-radius: 6px; font-size: 12px; }
.library-category-list { max-height: 590px; overflow-y: auto; padding: 6px; }
.library-category-button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; width: 100%; padding: 11px 10px; color: var(--ink); background: none; border: 0; border-radius: 6px; text-align: left; }
.library-category-button:hover { background: #f5f7fa; }
.library-category-button.is-selected { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.library-category-button strong, .library-category-button small { display: block; }
.library-category-button strong { color: var(--navy); font-size: 12px; }
.library-category-button small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.library-category-count { align-self: center; min-width: 32px; color: #6b5319; font-family: Georgia, serif; font-size: 17px; text-align: right; }
.library-main { min-width: 0; }
.library-main-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.library-main-title { min-width: 0; }
.library-main-title code { display: block; margin-top: 6px; color: #7a8497; font-size: 10px; word-break: break-all; }
.library-header-actions, .library-question-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.compact-button { min-height: 34px; padding: 7px 10px; border-radius: 6px; font-size: 10px; font-weight: 800; }
.library-rules { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; background: #fffcf5; border-bottom: 1px solid #f1e3b7; color: #6c551e; font-size: 10px; line-height: 1.45; }
.library-rules strong { color: #47370f; }
.library-question-tools { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--soft-line); }
.library-question-list { display: grid; max-height: 660px; overflow-y: auto; }
.library-question-row { display: grid; grid-template-columns: 52px minmax(220px, 1.25fr) minmax(160px, .75fr) 90px 160px; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--soft-line); }
.library-question-row:last-child { border-bottom: 0; }
.library-question-row:hover { background: #fbfcfd; }
.library-question-number { color: #7a8497; font-family: Georgia, serif; font-size: 16px; }
.library-question-copy strong, .library-question-copy span { display: block; }
.library-question-copy strong { color: var(--navy); font-size: 11px; line-height: 1.45; }
.library-question-copy span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.media-chip { display: inline-block; padding: 4px 6px; color: #475467; background: #f2f4f7; border-radius: 4px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.library-archived { border-top: 1px solid var(--line); }
.library-archived summary { padding: 14px 18px; color: #5c6679; background: #fafbfc; cursor: pointer; font-size: 11px; font-weight: 800; }
.archived-row { opacity: .78; }
.library-empty { padding: 54px 20px; color: var(--muted); text-align: center; font-size: 12px; }
.library-error { margin: 0 18px 14px; padding: 10px 12px; color: #912018; background: var(--urgent-soft); border: 1px solid #fecdca; border-radius: 6px; font-size: 11px; }

.catalog-editor-dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 28px); margin: auto; background: white; border-radius: 10px; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.catalog-editor-card { display: grid; max-height: calc(100vh - 28px); }
.catalog-editor-header { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.catalog-editor-header h2 { margin: 0; font-family: Georgia, serif; font-size: 24px; }
.catalog-editor-body { overflow-y: auto; padding: 22px; }
.catalog-editor-body label { display: block; margin-bottom: 14px; color: #4d586c; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.catalog-editor-body input, .catalog-editor-body textarea, .catalog-editor-body select { display: block; width: 100%; margin-top: 6px; padding: 10px; color: var(--ink); background: white; border: 1px solid #cfd5df; border-radius: 6px; text-transform: none; }
.catalog-editor-body textarea { min-height: 110px; resize: vertical; }
.catalog-editor-body .checkbox-label { display: flex; align-items: center; gap: 9px; text-transform: none; }
.catalog-editor-body .checkbox-label input { width: auto; margin: 0; }
.catalog-editor-note { margin: 0 0 16px; padding: 11px 13px; color: #5d4a18; background: var(--gold-soft); border-left: 3px solid var(--gold); font-size: 11px; line-height: 1.5; }
.media-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 14px; background: #f8f9fb; border: 1px solid var(--soft-line); border-radius: 7px; }
.media-fields .full-field { grid-column: 1 / -1; }
.catalog-editor-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 15px 22px; background: #fafbfc; border-top: 1px solid var(--line); }
.catalog-editor-card > .action-error { margin: 0; padding: 0 22px 12px; }

dialog { padding: 0; border: 0; }
dialog::backdrop { background: rgba(9, 16, 31, .66); backdrop-filter: blur(3px); }
.detail-dialog { width: min(1100px, calc(100% - 28px)); max-height: calc(100vh - 28px); margin: auto; background: white; border-radius: 10px; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.dialog-frame { min-height: 100%; }
.dialog-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; background: white; border-bottom: 1px solid var(--line); }
.dialog-header h2 { max-width: 820px; margin: 0; font-family: Georgia, serif; font-size: 24px; }
.icon-button { width: 38px; height: 38px; color: #475467; background: #f4f6f8; border: 1px solid #e0e4e9; border-radius: 50%; font-size: 25px; line-height: 1; }
.dialog-body { padding: 24px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 22px; }
.detail-section { padding: 20px; background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; }
.detail-section + .detail-section { margin-top: 14px; }
.detail-section h3 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 18px; }
.answer-block { margin-top: 16px; padding: 14px 16px; background: white; border-left: 4px solid var(--gold); box-shadow: inset 0 0 0 1px var(--soft-line); }
.answer-block span { display: block; margin-bottom: 5px; color: #7a5b16; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.answer-block strong { color: var(--navy); font-size: 16px; }
.media-frame { position: relative; display: grid; place-items: center; min-height: 220px; margin: 16px 0 0; overflow: hidden; background: #111827; border-radius: 7px; }
.media-frame img, .media-frame video { display: block; max-width: 100%; width: 100%; max-height: 430px; object-fit: contain; }
.media-unavailable { display: grid; place-items: center; min-height: 220px; padding: 24px; color: #fecaca; text-align: center; }
.media-unavailable strong, .media-unavailable span { display: block; }
.media-unavailable span { margin-top: 6px; color: #cbd5e1; font-size: 11px; }
.metric-definitions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.definition-card { padding: 14px; background: white; border: 1px solid var(--soft-line); border-radius: 6px; }
.definition-card strong { display: block; color: var(--navy); font-family: Georgia, serif; font-size: 22px; }
.definition-card b { display: block; margin: 5px 0; color: #435066; font-size: 10px; text-transform: uppercase; }
.definition-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.triage-reasons { margin: 12px 0 0; padding-left: 18px; color: #4d586c; font-size: 11px; line-height: 1.5; }
.record-list { display: grid; gap: 10px; }
.record-item { padding: 12px; background: white; border: 1px solid var(--soft-line); border-radius: 6px; }
.record-item header { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.record-item p { margin: 5px 0 0; color: #435066; font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
.record-item strong { color: var(--navy); }
.proposal-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.proposal-actions button { min-height: 32px; padding: 6px 9px; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.source-item { padding: 10px; background: white; border: 1px solid var(--soft-line); }
.source-item span, .source-item strong { display: block; }
.source-item span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.source-item strong { margin-top: 4px; color: var(--navy); font-size: 11px; word-break: break-word; }
.vote-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vote-box { padding: 12px; color: #05603a; background: var(--clear-soft); border: 1px solid #abefc6; border-radius: 6px; }
.vote-box.needs-change { color: #9c2a10; background: var(--review-soft); border-color: #fedf89; }
.vote-box strong, .vote-box span { display: block; }
.vote-box strong { font-family: Georgia, serif; font-size: 22px; }
.vote-box span { font-size: 10px; font-weight: 750; }
.action-editor label { display: block; margin-top: 11px; color: #4d586c; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.action-editor textarea, .action-editor input { width: 100%; margin-top: 5px; padding: 10px; color: var(--ink); background: white; border: 1px solid #cfd5df; border-radius: 6px; }
.action-editor textarea { min-height: 100px; resize: vertical; }
.action-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.action-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.action-error { min-height: 18px; margin: 8px 0 0; color: var(--urgent); font-size: 11px; }
.confirmation-dialog { width: min(440px, calc(100% - 28px)); margin: auto; background: white; border-radius: 10px; }
.confirmation-card { padding: 28px; text-align: center; }
.confirmation-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px; color: var(--urgent); background: var(--urgent-soft); border: 1px solid #fecdca; border-radius: 50%; font-weight: 900; }
.confirmation-card h2 { margin-bottom: 9px; font-family: Georgia, serif; }
.confirmation-card p:not(.kicker) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.confirmation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; gap: 8px; width: min(360px, calc(100% - 44px)); }
.toast { padding: 13px 15px; color: white; background: var(--navy); border-left: 4px solid var(--gold); border-radius: 7px; box-shadow: 0 14px 38px rgba(0,0,0,.22); font-size: 12px; line-height: 1.45; }
.toast.is-error { border-color: #f97066; }

@media (max-width: 1180px) {
  .filter-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search-field { grid-column: span 2; }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .library-question-row { grid-template-columns: 48px minmax(220px, 1fr) minmax(140px, .7fr) 150px; }
  .library-question-row > :nth-child(4) { display: none; }
}
@media (max-width: 840px) {
  .site-header, .header-actions, .hero, .overview-grid, .detail-grid { grid-template-columns: 1fr; }
  .site-header { display: grid; }
  .header-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .reviewer-field input { width: 100%; }
  .hero { gap: 22px; padding-top: 36px; }
  .section-heading { align-items: flex-start; }
  .last-refreshed, .section-explainer { text-align: left; }
  .metric-grid, .metric-definitions { grid-template-columns: repeat(2, 1fr); }
  .priority-row { grid-template-columns: 1fr 36px; }
  .priority-row > :nth-child(2), .priority-row > :nth-child(3) { display: none; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .search-field { grid-column: 1 / -1; }
  .category-grid { grid-template-columns: 1fr; }
  .library-summary { grid-template-columns: repeat(2, 1fr); }
  .library-layout { grid-template-columns: 1fr; }
  .library-sidebar { position: static; }
  .library-category-list { max-height: 260px; }
  .library-question-row { grid-template-columns: 42px minmax(190px, 1fr) 140px; }
  .library-question-row > :nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  main { width: min(100% - 24px, 1440px); }
  .site-header { padding-inline: 16px; }
  .brand-lockup { align-items: flex-start; justify-content: space-between; }
  .environment-badge { display: none; }
  .header-actions, .section-heading { display: grid; grid-template-columns: 1fr; }
  .view-tabs { overflow-x: auto; }
  .view-tab { padding-inline: 12px; white-space: nowrap; }
  .refresh-button { white-space: nowrap; }
  .signal-grid, .metric-grid, .metric-definitions, .source-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .category-stats { grid-template-columns: 1fr 1fr; }
  .dialog-body, .dialog-header { padding: 16px; }
  .confirmation-actions { grid-template-columns: 1fr; }
  .library-summary { grid-template-columns: 1fr 1fr; }
  .library-main-header, .library-question-tools { grid-template-columns: 1fr; display: grid; }
  .library-header-actions { justify-content: flex-start; }
  .library-question-row { grid-template-columns: 36px minmax(0, 1fr); }
  .library-question-row > :nth-child(5) { grid-column: 1 / -1; justify-content: flex-start; }
  .media-fields { grid-template-columns: 1fr; }
  .media-fields .full-field { grid-column: auto; }
}
