:root {
    --navy-950: #092332;
    --navy-900: #123a52;
    --navy-800: #18506c;
    --teal-600: #087f8c;
    --paper: #f4f6f7;
    --surface: #ffffff;
    --ink: #15252f;
    --muted: #60717b;
    --line: #d8e0e4;
    --amber: #e8b22d;
    --orange: #d96722;
    --danger: #b42318;
    --success: #287a52;
    --shadow: 0 18px 45px rgb(9 35 50 / 10%);
    --radius: 14px;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: 145px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI Variable", "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgb(8 127 140 / 35%); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 1000; padding: .7rem 1rem; background: white; color: var(--navy-950); }
.skip-link:focus { top: 1rem; }

.sticky-shell { position: sticky; top: 0; z-index: 1200; box-shadow: 0 7px 22px rgb(9 35 50 / 0%); transition: box-shadow .18s ease; }
.sticky-shell.is-condensed { box-shadow: 0 7px 22px rgb(9 35 50 / 16%); }
.site-header { min-height: 78px; padding: 14px clamp(18px, 3vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; background: var(--navy-950); border-bottom: 4px solid var(--amber); transition: min-height .18s ease, padding .18s ease; }
.sticky-shell.is-condensed .site-header { min-height: 62px; padding-top: 8px; padding-bottom: 8px; }
.brand-lockup { display: flex; align-items: center; min-width: 0; gap: 13px; }
.brand-lockup strong { display: block; max-width: 760px; font-family: Bahnschrift, "Arial Narrow", sans-serif; font-size: clamp(1rem, 1.7vw, 1.35rem); font-weight: 600; line-height: 1.16; letter-spacing: .015em; }
.brand-overline { display: block; margin-bottom: 3px; color: #9dc1d1; font-family: "Cascadia Code", Consolas, monospace; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 20%); transition: width .18s ease, height .18s ease; }
.sticky-shell.is-condensed .brand-mark { width: 38px; height: 38px; }
.brand-mark svg { width: 39px; fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linejoin: round; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.connection-state { display: inline-flex; align-items: center; gap: 8px; padding-right: 8px; color: #c5d8e0; font-size: .78rem; white-space: nowrap; }
.connection-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.connection-state[data-state="loading"] .connection-dot { animation: status-breathe 1s ease-in-out infinite alternate; }
.connection-state[data-state="ok"] .connection-dot { background: #58ce91; }
.connection-state[data-state="error"] .connection-dot { background: #ff7d6d; }

.button { position: relative; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: .58rem .9rem; border: 1px solid transparent; border-radius: 7px; font-weight: 650; font-size: .82rem; text-decoration: none; cursor: pointer; transition: transform .16s ease, background-color .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.98); }
.button:disabled { cursor: wait; opacity: .72; }
.button-icon { width: 19px; height: 19px; display: inline-grid; flex: 0 0 auto; place-items: center; color: currentColor; }
.button-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#refresh-now.is-loading .button-icon { animation: control-spin .8s linear infinite; }
.site-header .button[data-tooltip]::after { content: attr(data-tooltip); position: absolute; top: calc(100% + 10px); right: 0; z-index: 100; width: max-content; max-width: 220px; padding: 7px 9px; color: white; background: var(--navy-950); border: 1px solid rgb(255 255 255 / 18%); border-radius: 5px; box-shadow: 0 8px 22px rgb(9 35 50 / 24%); font-size: .7rem; font-weight: 600; line-height: 1.3; opacity: 0; visibility: hidden; transform: translateY(-3px); pointer-events: none; transition: opacity .14s ease, transform .14s ease, visibility .14s ease; }
.site-header .button[data-tooltip]:hover::after, .site-header .button[data-tooltip]:focus-visible::after { opacity: 1; visibility: visible; transform: translateY(0); }
.button-primary { color: white; background: var(--teal-600); border-color: var(--teal-600); }
.button-secondary { color: var(--navy-900); background: white; border-color: var(--line); }
.site-header .button-secondary { color: white; background: rgb(255 255 255 / 7%); border-color: rgb(255 255 255 / 18%); }
.site-header .active-alert-control { color: white; background: var(--danger); border-color: #ff9b8f; box-shadow: 0 0 0 3px rgb(255 155 143 / 12%); animation: active-alert-control-pulse 1.4s ease-in-out infinite alternate; }
@keyframes active-alert-control-pulse { to { background: #d4382b; box-shadow: 0 0 0 6px rgb(255 155 143 / 6%); } }
.site-header .active-alert-control.is-acknowledged { background: var(--teal-600); border-color: #65c4cc; box-shadow: none; animation: none; }
.text-button { padding: 0; border: 0; color: var(--teal-600); background: transparent; font-weight: 700; font-size: .8rem; cursor: pointer; }
.text-button:disabled { color: #98a4aa; cursor: not-allowed; }

.view-switcher { height: 53px; padding: 0 clamp(18px, 3vw, 48px); display: flex; align-items: end; gap: 6px; overflow-x: auto; background: var(--surface); border-bottom: 1px solid var(--line); transition: height .18s ease; }
.sticky-shell.is-condensed .view-switcher { height: 46px; }
.view-tab { height: 52px; padding: 0 18px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; font-weight: 700; cursor: pointer; }
.sticky-shell.is-condensed .view-tab { height: 45px; }
.view-tab.is-active { color: var(--navy-900); border-bottom-color: var(--amber); }
.tab-count { min-width: 20px; height: 20px; margin-left: 5px; padding: 0 6px; display: inline-grid; place-items: center; color: white; background: var(--danger); border-radius: 10px; font-size: .64rem; }
.role-chip { align-self: center; margin-left: 10px; padding: 4px 7px; color: var(--navy-800); background: #e8f2f5; border-radius: 4px; font: 700 .59rem "Cascadia Code", Consolas, monospace; text-transform: uppercase; white-space: nowrap; }
#last-updated { margin: 0 0 17px auto; color: var(--muted); font: .72rem "Cascadia Code", Consolas, monospace; }

main { width: min(1680px, 100%); margin: 0 auto; padding: clamp(18px, 2.4vw, 38px); }
.trial-notice { margin: 0 0 18px; padding: 12px 15px; color: #5b501f; background: #fff9e7; border: 1px solid #ead99e; border-left: 4px solid var(--amber); border-radius: 8px; font-size: .78rem; line-height: 1.45; }
.trial-notice strong { color: var(--navy-900); }
.view-panel { animation: view-in .22s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }

.source-ribbon { display: grid; grid-template-columns: 220px 1fr; align-items: stretch; margin-bottom: 20px; background: var(--navy-900); color: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ribbon-title { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgb(255 255 255 / 12%); }
.ribbon-title span { color: #a9c7d4; font-size: .69rem; text-transform: uppercase; letter-spacing: .1em; }
.ribbon-title strong { margin-top: 4px; font-family: Bahnschrift, sans-serif; font-size: 1.08rem; }
.source-ribbon ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.source-step { position: relative; padding: 14px 18px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; }
.source-step:not(:last-child)::after { content: ""; position: absolute; right: -7px; z-index: 2; width: 14px; height: 14px; background: var(--navy-900); border-top: 1px solid rgb(255 255 255 / 14%); border-right: 1px solid rgb(255 255 255 / 14%); transform: rotate(45deg); }
.step-node { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #7395a4; border-radius: 50%; color: #bad0da; font: 700 .72rem "Cascadia Code", monospace; }
.source-step strong, .source-step small { display: block; }
.source-step strong { font-size: .83rem; }
.source-step small { margin-top: 2px; color: #9fbdca; }
.step-health { color: #bfd1d9; font: .65rem "Cascadia Code", monospace; text-align: right; }
.source-step[data-health="operativa"] .step-node { color: #dffff0; border-color: #58ce91; background: rgb(88 206 145 / 16%); }
.source-step[data-health="fuera_de_servicio"] .step-node { color: #ffd1cb; border-color: #ff7d6d; background: rgb(255 125 109 / 14%); }

.aftershock-bulletin { margin: -4px 0 20px; padding: 13px 16px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; color: #274b5c; background: #edf6f8; border: 1px solid #c7dde5; border-left: 4px solid var(--teal-600); border-radius: 8px; }
.aftershock-bulletin[data-stale="true"] { color: #5b501f; background: #fff9e7; border-color: #ead99e; border-left-color: var(--amber); }
.aftershock-bulletin-icon { width: 25px; height: 25px; display: grid; place-items: center; color: white; background: var(--teal-600); border-radius: 50%; font: 800 .75rem Bahnschrift, sans-serif; }
.aftershock-bulletin[data-stale="true"] .aftershock-bulletin-icon { color: #493b08; background: var(--amber); }
.aftershock-bulletin strong { display: block; color: var(--navy-900); font-size: .82rem; }
.aftershock-bulletin p { margin: 2px 0 0; font-size: .77rem; line-height: 1.4; }
.aftershock-bulletin a { color: var(--teal-600); font-size: .72rem; font-weight: 750; text-decoration: none; white-space: nowrap; }

.principal-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .75fr); gap: 20px; }
.active-event { min-height: 590px; display: flex; flex-direction: column; padding: clamp(22px, 3vw, 42px); background: var(--surface); border: 1px solid var(--line); border-top: 7px solid var(--teal-600); border-radius: var(--radius); box-shadow: var(--shadow); }
.active-event[data-priority="2"] { border-top-color: var(--orange); }
.active-event[data-priority="3"] { border-top-color: var(--danger); }
.event-kicker { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .76rem; }
.event-badge { padding: 5px 8px; color: var(--teal-600); background: rgb(8 127 140 / 9%); border: 1px solid rgb(8 127 140 / 25%); border-radius: 4px; font: 700 .67rem "Cascadia Code", monospace; letter-spacing: .08em; }
.active-event[data-priority="2"] .event-badge { color: #a5470d; background: #fff1e8; border-color: #efb48e; }
.active-event[data-priority="3"] .event-badge { color: var(--danger); background: #fff0ee; border-color: #efaaa4; }
.event-core { flex: 1; display: grid; grid-template-columns: minmax(175px, .65fr) minmax(0, 1.35fr); align-items: center; gap: clamp(25px, 4vw, 65px); padding: 30px 0; }
.magnitude-block { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); }
.magnitude-prefix { color: var(--muted); font: .72rem "Cascadia Code", monospace; letter-spacing: .14em; }
.magnitude-block strong { margin: 2px 0 -8px; color: var(--navy-900); font: 700 clamp(5.8rem, 10vw, 9.5rem)/1 Bahnschrift, "Arial Narrow", sans-serif; letter-spacing: -.07em; }
.active-event[data-priority="2"] .magnitude-block strong { color: var(--orange); }
.active-event[data-priority="3"] .magnitude-block strong { color: var(--danger); }
.magnitude-block > span:last-child { color: var(--muted); font-size: .76rem; }
.status-label, .section-eyebrow { margin: 0 0 7px; color: var(--teal-600); font: 700 .68rem "Cascadia Code", monospace; letter-spacing: .12em; text-transform: uppercase; }
.event-summary h1 { max-width: 800px; margin: 0; color: var(--navy-950); font: 600 clamp(2rem, 3.5vw, 3.5rem)/1.03 Bahnschrift, "Arial Narrow", sans-serif; letter-spacing: -.025em; }
.event-summary > p:not(.status-label) { max-width: 720px; margin: 13px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.event-state-chips, .recent-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.recent-chips { margin-top: 5px; }
.recent-chips .status-chip, .recent-chips .relevance-chip { padding: 3px 6px; font-size: .56rem; }
.relevance-chip.muted { color: #52646d; background: #eef3f4; border-color: #cdd9dd; }
.event-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 30px 0 0; }
.event-facts div { padding-top: 10px; border-top: 1px solid var(--line); }
.event-facts dt { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.event-facts dd { margin: 5px 0 0; font: 600 .92rem "Cascadia Code", Consolas, monospace; }
.protocol-callout { display: flex; align-items: center; gap: 15px; padding: 16px 18px; background: #f2f7f8; border-left: 4px solid var(--teal-600); }
.active-event[data-priority="2"] .protocol-callout { background: #fff8f0; border-color: var(--orange); }
.active-event[data-priority="3"] .protocol-callout { background: #fff4f2; border-color: var(--danger); }
.protocol-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: white; background: var(--teal-600); border-radius: 50%; font: 800 1rem Bahnschrift, sans-serif; }
.active-event[data-priority="2"] .protocol-icon { background: var(--orange); }
.active-event[data-priority="3"] .protocol-icon { background: var(--danger); }
.protocol-callout strong { color: var(--navy-900); }
.protocol-callout p { margin: 3px 0 0; color: #435963; line-height: 1.4; }
.event-footer { margin-top: 22px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.event-footer p { max-width: 70%; margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.45; }

.operations-rail { display: flex; flex-direction: column; gap: 16px; }
.metric-board, .recent-board, .notice-board { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.operations-rail h2 { margin: 0; font: 600 1rem Bahnschrift, sans-serif; }
.section-note { margin: 3px 0 0; color: var(--muted); font-size: .68rem; }
.metric-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.metric-grid div { min-width: 0; padding: 14px 10px; text-align: center; }
.metric-grid div + div { border-left: 1px solid var(--line); }
.metric-grid strong { display: block; color: var(--navy-900); font: 650 1.8rem Bahnschrift, sans-serif; }
.metric-grid span { display: block; color: var(--muted); font-size: .65rem; line-height: 1.2; }
.section-heading, .card-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.recent-list { margin: 14px 0 0; padding: 0; list-style: none; }
.recent-list li { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.recent-list strong { font: 650 1.2rem Bahnschrift, sans-serif; }
.recent-copy b, .recent-copy small { display: block; }
.recent-copy b { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.recent-copy small, .recent-time { color: var(--muted); font-size: .65rem; }
.recent-time { font-family: "Cascadia Code", monospace; }
.notice-board { color: #5b4714; background: #fff9e8; border-color: #ead99f; }
.notice-board p { margin: 6px 0 0; font-size: .78rem; line-height: 1.45; }

.advanced-header { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 20px; }
.advanced-header h1 { margin: 0; color: var(--navy-950); font: 600 clamp(2rem, 3vw, 3rem)/1 Bahnschrift, sans-serif; }
.advanced-header p { max-width: 780px; margin: 10px 0 0; color: var(--muted); }
.advanced-actions { display: flex; gap: 8px; }
.print-report-header { display: none; }
.filter-bar { margin-bottom: 18px; padding: 15px; display: flex; align-items: end; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.filter-bar label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.filter-bar label:first-child { flex: 1; }
.filter-bar input[type="search"], .filter-bar select { min-height: 40px; padding: 7px 10px; color: var(--ink); background: #fbfcfc; border: 1px solid #bdcbd1; border-radius: 6px; text-transform: none; }
.filter-bar .checkbox-label { min-height: 40px; flex-direction: row; align-items: center; padding: 0 7px; white-space: nowrap; }
.advanced-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .55fr); gap: 18px; }
.map-card, .health-card, .table-card, .log-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgb(9 35 50 / 6%); overflow: hidden; }
.card-heading { min-height: 70px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-heading span { color: var(--muted); font-size: .7rem; }
.card-heading h2 { margin: 2px 0 0; color: var(--navy-900); font: 600 1.05rem Bahnschrift, sans-serif; }
#event-map { height: 430px; background: #dce5e7; }
.map-fallback { margin: 0; padding: 25px; color: var(--muted); }
.source-health-list { padding: 10px 18px 18px; }
.health-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.health-item:last-child { border: 0; }
.health-row { display: flex; justify-content: space-between; gap: 12px; }
.health-name { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.health-indicator { width: 9px; height: 9px; border-radius: 50%; background: #9ca9af; }
.health-item[data-health="operativa"] .health-indicator { background: var(--success); }
.health-item[data-health="degradada"] .health-indicator { background: var(--amber); }
.health-item[data-health="fuera_de_servicio"] .health-indicator { background: var(--danger); }
.health-status { color: var(--muted); font: .67rem "Cascadia Code", monospace; }
.health-meta { margin: 8px 0 0; color: var(--muted); font-size: .71rem; line-height: 1.5; }
.table-card, .log-card { margin-top: 18px; }
.table-scroll { max-height: 560px; overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { position: sticky; top: 0; z-index: 2; padding: 11px 13px; color: #51636c; background: #edf2f4; font-size: .65rem; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
td { padding: 12px 13px; border-bottom: 1px solid var(--line); font-size: .78rem; vertical-align: middle; }
tbody tr:hover { background: #f8fafb; }
.status-chip, .source-chip, .relevance-chip { display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 4px; font: 700 .62rem "Cascadia Code", monospace; white-space: nowrap; }
.status-chip { color: var(--navy-800); background: #e6f0f4; }
.status-chip.confirmed { color: var(--success); background: #e6f5ed; }
.source-chip { margin: 1px; color: #425761; background: #edf1f3; }
.dataset-chip { display: block; width: max-content; margin-top: 5px; padding: 3px 6px; color: #5f4a12; background: #fff7d9; border-radius: 4px; font: 700 .58rem "Cascadia Code", monospace; }
.relevance-chip { color: #a5470d; background: #fff0e5; }
.relevance-chip.high { color: var(--danger); background: #ffedeb; }
.table-mag { font: 650 1.12rem Bahnschrift, sans-serif; }
.table-place { min-width: 220px; max-width: 420px; }
.table-reference { display: block; margin-top: 4px; color: var(--muted); font: .65rem/1.35 "Cascadia Code", Consolas, monospace; }
.empty-state { padding: 28px !important; color: var(--muted); text-align: center; cursor: default !important; }
.system-log { max-height: 270px; margin: 0; padding: 12px 18px 18px; overflow: auto; list-style: none; color: #b8d0da; background: var(--navy-950); font: .72rem/1.55 "Cascadia Code", Consolas, monospace; }
.system-log li { padding: 5px 0; border-bottom: 1px solid rgb(255 255 255 / 6%); }
.system-log time { color: #6f98a8; }
.system-log .error { color: #ff9d91; }

.event-dialog { position: relative; width: min(850px, calc(100% - 32px)); max-height: 88vh; padding: 0; color: var(--ink); background: white; border: 0; border-radius: var(--radius); box-shadow: 0 30px 90px rgb(0 0 0 / 35%); }
.event-dialog[open] { animation: dialog-enter .2s cubic-bezier(.2, .8, .2, 1) both; }
.event-dialog::backdrop { background: rgb(5 24 34 / 72%); backdrop-filter: blur(3px); animation: backdrop-enter .18s ease-out both; }
.dialog-close-slot { position: absolute; top: 20px; right: 20px; z-index: 3; height: auto; margin: 0; }
.dialog-close { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--navy-900); background: white; cursor: pointer; transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.dialog-close:hover { color: white; background: var(--navy-900); border-color: var(--navy-900); transform: scale(1.05); box-shadow: 0 7px 18px rgb(9 35 50 / 18%); }
.dialog-close:active { transform: scale(.96); }
.dialog-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#dialog-content { padding: 30px; }
.dialog-title { padding-right: 45px; }
.dialog-title h2 { margin: 5px 0; color: var(--navy-950); font: 600 2rem Bahnschrift, sans-serif; }
.dialog-title p { margin: 0; color: var(--muted); }
.revision-timeline { margin: 28px 0 0; padding: 0; list-style: none; }
.revision-item { position: relative; margin-left: 14px; padding: 0 0 24px 28px; border-left: 2px solid var(--line); }
.revision-item::before { content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal-600); border: 3px solid white; box-shadow: 0 0 0 1px var(--teal-600); }
.revision-item strong { color: var(--navy-900); }
.revision-item p { margin: 6px 0 0; color: var(--muted); font-size: .78rem; }
.revision-origin { display: block; margin-top: 6px; color: #765b12; font: .64rem/1.4 "Cascadia Code", monospace; }
.revision-values { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 7px; }
.revision-values span { padding: 5px 7px; background: #f1f5f6; font: .7rem "Cascadia Code", monospace; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 2000; max-width: 390px; padding: 13px 16px; color: white; background: var(--navy-950); border-left: 4px solid var(--amber); border-radius: 6px; box-shadow: var(--shadow); animation: toast-enter .2s ease-out both; }
.back-to-top { position: fixed; right: 20px; bottom: 78px; z-index: 1400; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; color: white; background: var(--navy-900); border: 1px solid rgb(255 255 255 / 22%); border-radius: 50%; box-shadow: 0 10px 28px rgb(9 35 50 / 28%); cursor: pointer; transition: transform .16s ease, background-color .16s ease; }
.back-to-top:hover { background: var(--teal-600); transform: translateY(-2px); }
.back-to-top svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top::after { content: attr(data-tooltip); position: absolute; right: calc(100% + 10px); width: max-content; padding: 7px 9px; color: white; background: var(--navy-950); border-radius: 5px; font-size: .7rem; font-weight: 650; opacity: 0; visibility: hidden; transform: translateX(3px); pointer-events: none; transition: opacity .14s ease, transform .14s ease, visibility .14s ease; }
.back-to-top:hover::after, .back-to-top:focus-visible::after { opacity: 1; visibility: visible; transform: translateX(0); }
.logout-form { margin: 0; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #092332 0 54%, #123a52 54% 100%); }
.login-shell { width: min(480px, 100%); margin: 0; padding: 0; }
.login-card { overflow: hidden; background: white; border-top: 5px solid var(--amber); border-radius: 12px; box-shadow: 0 28px 80px rgb(0 0 0 / 32%); }
.login-brand { display: flex; align-items: center; gap: 13px; padding: 18px 22px; color: white; background: var(--navy-950); }
.login-brand .brand-mark { width: 42px; height: 42px; }
.login-brand span:not(.brand-mark) { display: block; color: #9dc1d1; font: .62rem "Cascadia Code", monospace; letter-spacing: .1em; text-transform: uppercase; }
.login-brand strong { display: block; margin-top: 3px; font-family: Bahnschrift, sans-serif; }
.login-copy, .login-form, .login-help, .form-error, .form-notice { margin-left: 32px; margin-right: 32px; }
.login-copy { margin-top: 34px; }
.login-copy h1 { margin: 0; color: var(--navy-950); font: 600 2.25rem/1 Bahnschrift, sans-serif; }
.login-copy p, .login-help { color: var(--muted); line-height: 1.5; }
.login-form { display: grid; gap: 9px; margin-top: 25px; }
.login-form label { color: var(--navy-900); font-size: .75rem; font-weight: 750; }
.login-form input, .criteria-grid input, .criteria-grid select { min-height: 43px; width: 100%; padding: 9px 11px; color: var(--ink); background: #fbfcfc; border: 1px solid #b9c8ce; border-radius: 6px; }
.login-form .button { margin-top: 5px; }
.login-help { margin-top: 22px; margin-bottom: 30px; font-size: .75rem; }
.form-error { padding: 10px 12px; color: #8f2018; background: #fff0ee; border-left: 3px solid var(--danger); font-size: .8rem; }
.form-notice { padding: 10px 12px; color: #235e44; background: #eaf6ef; border-left: 3px solid var(--success); font-size: .8rem; }

.settings-page { width: min(1180px, 100%); margin: 0 auto; }
.settings-page-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.settings-page-header h1 { margin: 0; color: var(--navy-950); font: 600 clamp(2rem, 3vw, 3rem)/1 Bahnschrift, sans-serif; }
.settings-page-header p { max-width: 760px; margin: 10px 0 0; color: var(--muted); }
.settings-form { padding: 0 26px 24px; background: white; border: 1px solid var(--line); border-top: 5px solid var(--teal-600); border-radius: var(--radius); box-shadow: var(--shadow); }
.credentials-form { padding-top: 26px; }
.role-explanation { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.role-explanation article { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.role-explanation article:last-child { border-top: 4px solid var(--amber); }
.role-explanation span { color: var(--teal-600); font: 700 .63rem "Cascadia Code", Consolas, monospace; letter-spacing: .1em; }
.role-explanation h2 { margin: 7px 0 5px; color: var(--navy-900); font: 600 1.15rem Bahnschrift, sans-serif; }
.role-explanation p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.local-test-notice { margin-bottom: 16px; padding: 15px 18px; color: #59450f; background: #fff8df; border: 1px solid #ead99f; border-left: 4px solid var(--amber); border-radius: 8px; }
.local-test-notice strong { color: #443509; }
.local-test-notice p { margin: 4px 0 0; font-size: .8rem; line-height: 1.45; }
.criteria-section { padding: 25px 0; border-bottom: 1px solid var(--line); }
.criteria-heading { display: flex; gap: 12px; align-items: start; margin-bottom: 16px; }
.criteria-heading > span { min-width: 48px; height: 29px; padding: 0 8px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--navy-900); font: 700 .58rem "Cascadia Code", monospace; letter-spacing: .06em; }
.criteria-heading h2, .criteria-heading h3 { margin: 0; color: var(--navy-900); font: 600 1.05rem Bahnschrift, sans-serif; }
.criteria-heading p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.criteria-grid { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 12px; }
.criteria-grid label { min-width: 0; padding: 12px; background: #f7f9fa; border: 1px solid var(--line); border-radius: 7px; }
.criteria-grid label > span { display: block; min-height: 30px; margin-bottom: 6px; color: var(--navy-900); font-size: .72rem; font-weight: 750; line-height: 1.3; }
.criteria-grid small { display: block; margin-top: 5px; color: var(--muted); font-size: .64rem; }
.criteria-grid-sound { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
.credentials-grid { grid-template-columns: repeat(2, minmax(200px, 1fr)); }
.sound-section { background: linear-gradient(90deg, rgb(232 178 45 / 10%), transparent 70%); }
.policy-example { margin: 14px 0 0; padding: 12px 14px; color: #59450f; background: #fff8df; border-left: 3px solid var(--amber); font-size: .78rem; line-height: 1.45; }
.settings-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 20px; }
.settings-actions p { margin: 0; color: var(--muted); font-size: .78rem; }

.followup-page { width: min(1280px, 100%); margin: 0 auto; }
.followup-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 18px; }
.followup-header h1 { margin: 0; color: var(--navy-950); font: 600 clamp(2rem, 3vw, 3rem)/1 Bahnschrift, sans-serif; }
.followup-header p { max-width: 790px; margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.followup-summary { min-width: 150px; padding: 14px 18px; text-align: center; background: white; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 9px; }
.followup-summary strong, .followup-summary span { display: block; }
.followup-summary strong { color: var(--navy-900); font: 700 2rem/1 Bahnschrift, sans-serif; }
.followup-summary span { margin-top: 5px; color: var(--muted); font-size: .68rem; }
.followup-guidance { margin-bottom: 16px; padding: 15px 18px; color: #5b4714; background: #fff8df; border: 1px solid #ead99f; border-left: 4px solid var(--amber); border-radius: 8px; }
.followup-guidance p { margin: 4px 0 0; font-size: .8rem; line-height: 1.45; }
.sequence-summary { margin-bottom: 16px; padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; color: white; background: var(--navy-900); border-left: 6px solid var(--teal-600); border-radius: 10px; box-shadow: var(--shadow); }
.sequence-summary .section-eyebrow { color: #9ed7dc; }
.sequence-summary h2 { margin: 0; font: 600 1.4rem Bahnschrift, sans-serif; }
.sequence-summary p { max-width: 760px; margin: 7px 0 0; color: #c5dbe4; font-size: .78rem; line-height: 1.5; }
.sequence-metrics { display: grid; grid-template-columns: repeat(3, minmax(105px, 1fr)); border: 1px solid rgb(255 255 255 / 16%); }
.sequence-metrics div { padding: 12px 14px; text-align: center; }
.sequence-metrics div + div { border-left: 1px solid rgb(255 255 255 / 16%); }
.sequence-metrics strong, .sequence-metrics span { display: block; }
.sequence-metrics strong { color: #ffda7d; font: 700 1.6rem Bahnschrift, sans-serif; }
.sequence-metrics span { margin-top: 3px; color: #b9d1db; font-size: .59rem; line-height: 1.3; }
.followup-list { display: grid; gap: 12px; }
.followup-card { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 20px 22px; background: white; border: 1px solid var(--line); border-left: 6px solid var(--orange); border-radius: 10px; box-shadow: 0 9px 28px rgb(9 35 50 / 7%); }
.followup-card[data-priority="3"] { border-left-color: var(--danger); }
.followup-card[data-sequence="possible-aftershock"] { background: linear-gradient(90deg, #eef8fa, white 32%); }
.followup-magnitude { min-height: 82px; display: grid; place-content: center; text-align: center; border-right: 1px solid var(--line); }
.followup-magnitude span { color: var(--muted); font: .6rem "Cascadia Code", monospace; letter-spacing: .1em; }
.followup-magnitude strong { color: var(--navy-900); font: 700 3.2rem/.95 Bahnschrift, sans-serif; }
.followup-body .event-state-chips { margin-top: 0; }
.followup-body h2 { margin: 9px 0 0; color: var(--navy-950); font: 600 1.2rem/1.25 Bahnschrift, sans-serif; }
.followup-meta, .followup-action { margin: 5px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.followup-action { color: var(--ink); }
.relevance-chip.acknowledged { color: var(--success); background: #e6f5ed; }
.operational-chip, .sequence-chip { padding: 4px 7px; border-radius: 4px; font: 700 .6rem "Cascadia Code", monospace; }
.operational-chip { color: var(--navy-800); background: #e6f0f4; }
.operational-chip.evaluation { color: #8f2018; background: #ffedeb; }
.sequence-chip { color: #12636b; background: #def2f4; }
.followup-countdown { width: max-content; max-width: 100%; margin: 8px 0 0; padding: 6px 8px; color: #365965; background: #edf4f6; border-radius: 4px; font: 700 .66rem "Cascadia Code", monospace; }
.followup-countdown[data-state="ending"] { color: #744807; background: #fff2d4; }
.followup-countdown[data-state="expired"] { color: #8f2018; background: #ffedeb; }
.followup-countdown[data-state="manual"] { color: #235e44; background: #eaf6ef; }
.followup-actions { display: grid; gap: 8px; }
.followup-dialog { width: min(620px, calc(100% - 32px)); }
.followup-form { position: static; height: auto; display: grid; gap: 15px; padding: 30px; text-align: left; }
.followup-form h2 { margin: 0; color: var(--navy-950); font: 600 2rem Bahnschrift, sans-serif; }
.followup-dialog-event { margin: -5px 0 5px; color: var(--muted); }
.followup-form label > span { display: block; margin-bottom: 6px; color: var(--navy-900); font-size: .74rem; font-weight: 750; }
.followup-form input, .followup-form select, .followup-form textarea { width: 100%; padding: 10px 11px; color: var(--ink); background: #fbfcfc; border: 1px solid #b9c8ce; border-radius: 6px; }
.followup-form textarea { resize: vertical; }

.seismic-alert { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 20px; }
.seismic-alert-backdrop { position: absolute; inset: 0; background: rgb(65 12 8 / 82%); backdrop-filter: blur(5px); }
.seismic-alert-panel { position: relative; width: min(680px, 100%); padding: clamp(28px, 5vw, 52px); color: white; background: #9f251b; border: 2px solid #ffb24d; border-top-width: 10px; box-shadow: 0 34px 100px rgb(0 0 0 / 48%); text-align: center; }
.seismic-alert-signal { height: 50px; display: flex; justify-content: center; align-items: end; gap: 7px; margin-bottom: 18px; }
.seismic-alert-signal span { width: 8px; height: 18px; background: #ffd378; animation: seismic-pulse .72s ease-in-out infinite alternate; }
.seismic-alert-signal span:nth-child(2), .seismic-alert-signal span:nth-child(4) { height: 38px; animation-delay: -.24s; }
.seismic-alert-signal span:nth-child(3) { height: 50px; animation-delay: -.48s; }
@keyframes seismic-pulse { to { transform: scaleY(.35); opacity: .55; } }
@keyframes status-breathe { to { transform: scale(1.35); box-shadow: 0 0 0 4px rgb(232 178 45 / 16%); } }
@keyframes control-spin { to { transform: rotate(360deg); } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes backdrop-enter { from { opacity: 0; } }
@keyframes toast-enter { from { opacity: 0; transform: translateY(8px); } }
.seismic-alert-kicker { color: #ffe0a3; font: 800 .72rem "Cascadia Code", Consolas, monospace; letter-spacing: .15em; }
.seismic-alert-panel h2 { margin: 9px 0 24px; font: 650 clamp(2rem, 5vw, 3.5rem)/1 Bahnschrift, sans-serif; }
.seismic-alert-event { display: grid; gap: 5px; padding: 18px 0; border-block: 1px solid rgb(255 255 255 / 30%); }
.seismic-alert-event strong { font: 750 clamp(3.2rem, 9vw, 6.4rem)/.9 Bahnschrift, sans-serif; }
.seismic-alert-event span { font-size: 1rem; line-height: 1.4; }
.seismic-alert-panel > p { margin: 17px auto 0; max-width: 560px; line-height: 1.45; }
.seismic-alert-audio { color: #ffe1a9; font-size: .8rem; }
.seismic-alert-actions { display: flex; justify-content: center; gap: 10px; margin: 26px 0 15px; }
.alert-stop-button { color: #70130d; background: white; border-color: white; font-size: 1rem; }
.seismic-alert-panel .button-secondary { color: white; background: transparent; border-color: rgb(255 255 255 / 55%); }
.seismic-alert-panel small { display: block; color: #ffd9d5; font-size: .7rem; line-height: 1.4; }
body.seismic-alert-open { overflow: hidden; }

@media (max-width: 1050px) {
    .principal-grid, .advanced-grid { grid-template-columns: 1fr; }
    .active-event { min-height: auto; }
    .operations-rail { display: grid; grid-template-columns: 1fr 1fr; }
    .notice-board { grid-column: 1 / -1; }
    .health-card { order: -1; }
}

@media (max-width: 760px) {
    .settings-page-header { align-items: stretch; flex-direction: column; }
    .role-explanation { grid-template-columns: 1fr; }
    .settings-form { padding-inline: 16px; }
    .criteria-grid, .criteria-grid-sound, .credentials-grid { grid-template-columns: 1fr; }
    .criteria-grid label > span { min-height: 0; }
    .settings-actions { align-items: stretch; flex-direction: column; }
    .followup-header { align-items: stretch; flex-direction: column; }
    .followup-summary { width: 100%; }
    .sequence-summary { grid-template-columns: 1fr; padding: 18px; }
    .sequence-metrics { grid-template-columns: 1fr; }
    .sequence-metrics div + div { border-left: 0; border-top: 1px solid rgb(255 255 255 / 16%); }
    .followup-card { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 16px; }
    .followup-magnitude { min-height: 72px; }
    .followup-magnitude strong { font-size: 2.5rem; }
    .followup-actions { grid-column: 1 / -1; }
    .followup-actions .button { width: 100%; }
    html { scroll-padding-top: 110px; }
    .site-header { min-height: auto; align-items: flex-start; padding: 12px 14px; }
    .brand-overline { font-size: .58rem; }
    .brand-lockup strong { font-size: .95rem; }
    .brand-mark { width: 40px; height: 40px; }
    .sticky-shell.is-condensed .site-header { min-height: 58px; padding-top: 7px; padding-bottom: 7px; }
    .sticky-shell.is-condensed .brand-overline { display: none; }
    .sticky-shell.is-condensed .brand-mark { width: 34px; height: 34px; }
    .sticky-shell.is-condensed .brand-mark svg { width: 30px; }
    .sticky-shell.is-condensed .brand-lockup strong { font-size: .82rem; line-height: 1.08; }
    .sticky-shell.is-condensed .view-switcher { height: 44px; }
    .sticky-shell.is-condensed .view-tab { height: 43px; }
    .header-actions .button { width: 42px; padding: 0; white-space: nowrap; }
    .header-actions .button-label { display: none; }
    .header-actions .button-icon { width: 20px; height: 20px; color: white; }
    .connection-state { display: none; }
    .view-switcher { padding: 0 10px; align-items: stretch; }
    .view-tab { padding: 0 11px; font-size: .75rem; }
    .role-chip { display: none; }
    #last-updated { display: none; }
    main { padding: 12px; }
    .source-ribbon { grid-template-columns: 1fr; margin-bottom: 12px; }
    .ribbon-title { padding: 11px 14px; border: 0; border-bottom: 1px solid rgb(255 255 255 / 12%); flex-direction: row; justify-content: space-between; }
    .source-ribbon ol { grid-template-columns: repeat(3, 1fr); }
    .source-step { padding: 10px 7px; grid-template-columns: 25px 1fr; gap: 6px; }
    .source-step .step-node { width: 24px; height: 24px; }
    .source-step .step-health { grid-column: 1 / -1; text-align: center; font-size: .56rem; }
    .source-step strong { font-size: .67rem; }
    .source-step small { font-size: .6rem; }
    .source-step:not(:last-child)::after { display: none; }
    .aftershock-bulletin { margin-bottom: 12px; grid-template-columns: 26px 1fr; padding: 12px; }
    .aftershock-bulletin a { grid-column: 2; }
    .active-event { padding: 17px; border-top-width: 6px; }
    .event-kicker { align-items: flex-start; flex-direction: column; gap: 8px; }
    .event-core { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
    .magnitude-block { min-height: 125px; border-right: 0; border-bottom: 1px solid var(--line); }
    .magnitude-block strong { font-size: 6rem; }
    .event-summary h1 { font-size: 2.15rem; }
    .event-facts { gap: 12px; margin-top: 20px; }
    .event-facts dd { font-size: .76rem; }
    .event-footer { align-items: flex-start; flex-direction: column; }
    .event-footer p { max-width: 100%; }
    .operations-rail { display: flex; }
    .advanced-header { align-items: flex-start; flex-direction: column; }
    .advanced-actions { width: 100%; }
    .advanced-actions .button { flex: 1; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar .checkbox-label { min-height: 30px; }
    #event-map { height: 340px; }
    .table-place { min-width: 190px; }
    .back-to-top { right: 14px; bottom: 70px; width: 46px; height: 46px; }
    .seismic-alert { padding: 10px; }
    .seismic-alert-panel { padding: 25px 18px; }
    .seismic-alert-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@page { size: A4 landscape; margin: 11mm 10mm 13mm; }

@media print {
    :root { color-scheme: light; }
    html, body { min-width: 0; color: #12232d; background: white; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .skip-link, .site-header, .view-switcher, .source-ribbon, #view-principal, #view-followup, #view-criteria, #view-admin, .advanced-header, .filter-bar, .advanced-grid, .log-card, .event-dialog, .seismic-alert, .toast, .back-to-top, .text-button { display: none !important; }
    #view-advanced { display: block !important; }
    main { width: 100%; margin: 0; padding: 0; }

    .print-report-header { display: block; margin-bottom: 5mm; }
    .print-report-brand { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 3mm; padding-bottom: 3mm; border-bottom: 1.5pt solid #e8b22d; }
    .print-report-mark { width: 12mm; height: 12mm; display: grid; place-items: center; border: .7pt solid #c9d5da; }
    .print-report-mark svg { width: 10mm; fill: none; stroke: #d59a08; stroke-width: 2.5; stroke-linejoin: round; }
    .print-report-brand span, .print-report-title > div > span { display: block; color: #52636d; font: 700 6.5pt "Cascadia Code", Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
    .print-report-brand strong { display: block; margin-top: 1mm; color: #092332; font: 700 11pt Bahnschrift, "Arial Narrow", sans-serif; }
    .print-report-meta { text-align: right; }
    .print-report-meta strong { font-size: 8pt; }
    .print-report-meta small { color: #60717b; font-size: 6.5pt; }
    .print-report-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8mm; padding: 4mm 0 3mm; }
    .print-report-title h1 { margin: 1mm 0; color: #092332; font: 700 19pt/1 Bahnschrift, "Arial Narrow", sans-serif; }
    .print-report-title p { margin: 0; color: #52636d; font-size: 7.5pt; }
    .print-report-summary { display: grid; grid-template-columns: repeat(4, 25mm); border: .7pt solid #cfdade; }
    .print-report-summary div { padding: 2.2mm 2mm; text-align: center; }
    .print-report-summary div + div { border-left: .7pt solid #cfdade; }
    .print-report-summary strong { display: block; color: #123a52; font: 700 12pt Bahnschrift, sans-serif; }
    .print-report-summary span { display: block; margin-top: .5mm; color: #52636d; font-size: 5.8pt; text-transform: uppercase; letter-spacing: .04em; }
    .print-report-note { margin: 0; padding: 2mm 2.5mm; color: #5b4714; background: #fff8df; border-left: 2pt solid #e8b22d; font-size: 7pt; }

    .table-card { margin: 0; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
    .table-card .card-heading { min-height: 0; padding: 0 0 2mm; border: 0; }
    .table-card .card-heading > div > span { display: none; }
    .table-card .card-heading h2 { margin: 0; color: #123a52; font-size: 10pt; }
    #table-count { color: #52636d; font-size: 7pt; }
    .table-scroll { max-height: none; overflow: visible; }
    table { table-layout: fixed; border-top: 1pt solid #123a52; }
    thead { display: table-header-group; }
    tr { break-inside: avoid; page-break-inside: avoid; }
    th { position: static; padding: 2mm 1.8mm; color: white; background: #123a52; border: 0; font-size: 6.2pt; letter-spacing: .04em; }
    td { padding: 2mm 1.8mm; border-bottom: .6pt solid #d2dce0; font-size: 7.2pt; line-height: 1.25; vertical-align: top; }
    tbody tr:nth-child(even) { background: #f3f6f7; }
    th:nth-child(1), td:nth-child(1) { width: 14%; }
    th:nth-child(2), td:nth-child(2) { width: 8%; }
    th:nth-child(3), td:nth-child(3) { width: 31%; }
    th:nth-child(4), td:nth-child(4) { width: 14%; }
    th:nth-child(5), td:nth-child(5) { width: 8%; }
    th:nth-child(6), td:nth-child(6) { width: 11%; }
    th:nth-child(7), td:nth-child(7) { width: 14%; }
    th:last-child, td:last-child { display: none; }
    .table-place { min-width: 0; max-width: none; }
    .table-reference { margin-top: 1mm; font-size: 6pt; }
    .table-mag { font-size: 9pt; }
    .status-chip, .source-chip, .relevance-chip { padding: 1mm 1.3mm; border: .6pt solid #c7d3d8; border-radius: 2px; font-size: 5.8pt; }
}
