:root {
  --bg: #d8dee9;
  --panel: #eceff4;
  --panel-alt: #e5e9f0;
  --ink: #2e3440;
  --muted: #4c566a;
  --line: #b8c1cf;
  --line-soft: #cbd2dd;
  --blue: #5e81ac;
  --blue-dark: #4c6f99;
  --cyan: #88c0d0;
  --teal: #8fbcbb;
  --amber: #d49b45;
  --red: #bf616a;
  --purple: #b48ead;
  --crumb-bg: #c3d8e6;
  --crumb-ink: #2e3440;
  --success-bg: #d6e7df;
  --success-ink: #35675d;
  --danger-bg: #ead7da;
  --danger-ink: #913e47;
  --warning-bg: #eee1c8;
  --warning-ink: #7a5925;
  --dialog-mask: rgba(216, 222, 233, .82);
  --shadow: 0 1px 3px rgba(46, 52, 64, .16);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--bg); font-family: var(--sans); font-size: 14px; }
body.drawer-open, body.dialog-open { overflow: hidden; }
a { color: inherit; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 200; padding: 10px 14px; color: #eceff4; background: var(--blue-dark); }
.skip-link:focus { top: 12px; }

.topbar {
  position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 48px 48px minmax(0,1fr) auto;
  height: 50px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); background: var(--panel);
}
.icon-button { display: grid; place-items: center; width: 48px; height: 47px; padding: 0; border: 0; border-right: 1px solid var(--line); background: transparent; }
.icon-button:hover, .icon-button:focus-visible { color: var(--blue); background: var(--panel-alt); outline: none; }
.menu-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mini-brand { display: grid; place-items: center; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mini-brand img { display: block; width: 38px; height: 38px; border-radius: 2px; object-fit: cover; }
.app-crumb { display: flex; align-items: center; min-width: 0; padding-left: 13px; }
.crumb-tag { position: relative; display: inline-flex; align-items: center; height: 28px; padding: 0 24px 0 12px; background: var(--crumb-bg); color: var(--crumb-ink); font-size: 13px; }
.crumb-tag::after { content: ""; position: absolute; top: 0; right: -12px; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 12px solid var(--crumb-bg); }
.top-actions { display: flex; align-items: center; height: 47px; }
.node-label { display: flex; align-items: center; gap: 7px; padding: 0 16px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(143,188,187,.18); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 12px; border: 1px solid var(--amber); border-radius: 50%; background: #ebcb8b; color: #2e3440; font: 700 12px/1 var(--mono); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 79; visibility: hidden; background: rgba(20,32,44,.34); opacity: 0; transition: opacity .18s ease, visibility .18s; }
.drawer { position: fixed; inset: 0 auto 0 0; z-index: 80; width: min(300px, calc(100vw - 46px)); background: #2e3440; color: #e5e9f0; transform: translateX(-101%); transition: transform .2s ease; box-shadow: 10px 0 30px rgba(10,20,30,.25); }
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { visibility: visible; opacity: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 12px 0 14px; border-bottom: 1px solid #4c566a; }
.drawer-brand { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 800; letter-spacing: -.04em; }
.drawer-brand img { width: 50px; height: 50px; border: 1px solid #4c566a; border-radius: 3px; object-fit: cover; }
.drawer-brand small { display: block; margin-top: 4px; color: #aeb9c7; font: 9px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.drawer-close { width: 34px; height: 34px; border: 0; border-radius: 3px; color: #d8dee9; background: transparent; font-size: 22px; }
.drawer-close:hover { background: #434c5e; }
.drawer-section { padding: 20px 12px 8px; color: #aeb9c7; font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.drawer-nav { display: grid; gap: 3px; padding: 0 9px; }
.drawer-nav a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; min-height: 46px; padding: 0 12px 0 5px; border-radius: 3px; color: #d8dee9; text-decoration: none; }
.drawer-nav a:hover, .drawer-nav a[aria-current="page"] { color: #eceff4; background: #434c5e; }
.drawer-nav a[aria-current="page"] { box-shadow: inset 3px 0 var(--cyan); }
.nav-icon { display: grid; place-items: center; color: #88c0d0; font-size: 16px; }
.nav-icon .ui-icon { width: 18px; height: 18px; stroke-width: 1.6; }
.nav-note { color: #aeb9c7; font: 10px/1 var(--mono); }
.drawer-footer { position: absolute; right: 18px; bottom: 20px; left: 18px; padding-top: 15px; border-top: 1px solid #4c566a; color: #aeb9c7; font: 10px/1.5 var(--mono); }

.subnav { display: flex; align-items: stretch; justify-content: space-between; min-height: 54px; border-bottom: 1px solid var(--line); background: var(--panel); }
.tabs { display: flex; padding-left: 8px; }
.tabs a { display: grid; place-items: center; min-width: 110px; padding: 0 15px; border-bottom: 2px solid transparent; color: var(--ink); text-decoration: none; }
.tabs a:hover { color: var(--blue); }
.tabs a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue); }
.sub-actions { display: flex; align-items: center; gap: 22px; padding-right: 17px; color: var(--blue); }
.sub-actions a { display: flex; align-items: center; gap: 7px; text-decoration: none; }
.ui-icon { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.control-deck { padding: 12px 8px 10px; border-bottom: 1px solid var(--line); background: var(--panel-alt); }
.control-row { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, 470px) 116px; gap: 8px; }
.dashboard-controls { padding-block: 8px; }
.dashboard-controls .control-row { grid-template-columns: minmax(260px, 1fr) minmax(260px, 470px) 116px; }
.dashboard-controls .filter-row { display: none; }
.dashboard-controls [data-dashboard-search], .dashboard-controls [data-dashboard-search] input { cursor: text; }
.search-box, .date-box { display: flex; align-items: center; height: 34px; border: 1px solid var(--line); background: var(--panel); }
.search-box span, .date-box span { display: grid; place-items: center; width: 36px; color: var(--blue); }
.search-box input { min-width: 0; flex: 1; height: 100%; padding-left: 10px; border: 0; outline: 0; }
.search-mode { padding: 0 11px; color: var(--blue); font-size: 12px; }
.date-box { justify-content: space-between; padding-right: 10px; }
.date-box strong { flex: 1; font-weight: 400; }
.text-action { color: var(--blue); font-size: 12px; }
.outline-button { height: 34px; border: 1px solid var(--blue); border-radius: 3px; color: var(--blue); background: var(--panel); }
.outline-button:hover { background: var(--panel-alt); }
.filter-row { display: flex; align-items: center; gap: 10px; padding-top: 9px; color: var(--blue); }
.filter-pill { padding: 6px 9px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); background: var(--panel); box-shadow: var(--shadow); font-size: 11px; }
.add-filter { border: 0; color: var(--blue); background: transparent; }

.workspace { padding: 8px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 3px 14px; }
.page-heading h1 { margin: 0; font-size: 19px; font-weight: 500; }
.page-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--teal); border-radius: 2px; color: var(--success-ink); background: var(--success-bg); font: 10px/1 var(--mono); text-transform: uppercase; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.metric-card { display: flex; min-height: 230px; padding: 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); box-shadow: var(--shadow); text-align: center; flex-direction: column; justify-content: center; }
.metric-value { display: block; color: var(--teal); font-size: clamp(31px, 3vw, 43px); font-weight: 650; line-height: 1; }
.metric-value.danger { color: var(--red); }
.metric-value.blue { color: var(--blue); }
.metric-label { display: block; margin-top: 8px; color: var(--ink); font-size: 13px; }
.metric-context { display: block; margin-top: 5px; color: var(--muted); font: 10px/1 var(--mono); text-transform: uppercase; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.85fr); gap: 8px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; min-height: 39px; padding: 0 10px; border-bottom: 1px solid var(--line-soft); }
.panel-head h2 { margin: 0; font-size: 12px; font-weight: 650; }
.panel-menu { border: 0; color: var(--muted); background: transparent; letter-spacing: 2px; }
.panel-state { color: var(--muted); font: 9px/1 var(--mono); text-transform: uppercase; }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); min-height: 295px; }
.device-item { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.device-item:nth-child(2n) { border-right: 0; }
.device-item:nth-last-child(-n+2) { border-bottom: 0; }
.device-item span { display: block; margin-bottom: 6px; color: var(--muted); font: 8px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.device-item strong { display: block; overflow: hidden; color: var(--ink); font: 600 10px/1.35 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.device-item:nth-child(4n+1) strong { color: var(--blue); }
.device-item:nth-child(4n+2) strong { color: var(--cyan); }
.device-item:nth-child(4n+3) strong { color: var(--purple); }
.device-item:nth-child(4n) strong { color: var(--amber); }
.wide-panel { grid-column: 1 / -1; }
.dashboard-events { min-height: 295px; }
.dashboard-events-panel { display: flex; min-height: 334px; flex-direction: column; }
.dashboard-events-panel .dashboard-events { flex: 1; }
.device-panel { grid-column: 2; overflow: hidden; }

.visitor-panel { overflow: hidden; }
.visitor-map { position: relative; min-height: 230px; overflow: hidden; background: radial-gradient(circle at 50% 48%, rgba(136,192,208,.12), transparent 48%), var(--panel-alt); }
.visitor-map svg { display: block; width: 100%; height: 175px; }
.map-grid { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .7; }
.landmass { fill: var(--line); stroke: var(--muted); stroke-width: 1.25; vector-effect: non-scaling-stroke; opacity: .78; }
.map-marker { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border: 3px solid var(--panel); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(191,97,106,.3), 0 0 18px rgba(191,97,106,.8); transform: translate(-50%,-50%); transition: top .35s ease, left .35s ease; }
.map-marker::after { content: ""; position: absolute; inset: -8px; border: 1px solid var(--red); border-radius: 50%; animation: map-pulse 2s ease-out infinite; }
.map-marker.is-hidden { display: none; }
@keyframes map-pulse { 0% { opacity: .9; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.45); } }
.visitor-readout { position: absolute; right: 10px; bottom: 10px; left: 10px; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 12px; padding: 10px 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 92%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.visitor-readout span { color: var(--muted); font: 8px/1.5 var(--mono); }
.visitor-readout strong { overflow: hidden; font: 10px/1.3 var(--mono); text-overflow: ellipsis; white-space: nowrap; }

.table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; min-height: 42px; padding: 7px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.table-tools strong { color: var(--ink); }
.table-scroll { overflow: auto; }
.event-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.event-table th { height: 34px; padding: 0 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel-alt); color: var(--ink); font-size: 11px; text-align: left; white-space: nowrap; }
.event-table td { height: 38px; padding: 0 9px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.event-table tbody tr { cursor: pointer; }
.event-table tbody tr:hover, .event-table tbody tr:focus-within { background: var(--panel-alt); }
.event-table .inspect-cell { width: 38px; color: var(--blue); text-align: center; }
.event-table .date-cell { width: 190px; }
.event-table .source-cell { width: 170px; }
.event-table .category-cell { width: 160px; }
.event-table .severity-cell { width: 125px; }
.event-table td.severity-cell { overflow: visible; text-overflow: clip; }
.event-link { border: 0; color: var(--blue); background: transparent; font-weight: 650; text-align: left; }
.severity { display: inline-block; min-width: 54px; padding: 3px 6px; border-radius: 2px; color: var(--success-ink); background: var(--success-bg); font: 700 9px/1 var(--mono); text-align: center; text-transform: uppercase; }
.severity.high, .severity.critical { color: var(--danger-ink); background: var(--danger-bg); }
.severity.medium { color: var(--warning-ink); background: var(--warning-bg); }
.empty-row td { height: 120px; color: var(--muted); text-align: center; }

.event-summary { padding: 12px 0 14px; border-bottom: 1px solid var(--line); text-align: center; }
.event-summary strong { display: block; font-size: 16px; }
.event-summary span { color: var(--muted); font-size: 11px; }
.event-chart { min-height: 282px; margin-bottom: 8px; }
.timeline-chart { padding: 8px 14px 12px; }
.timeline-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 28px; color: var(--muted); font: 9px/1 var(--mono); text-transform: uppercase; }
.timeline-series { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.timeline-series i { width: 9px; height: 9px; background: var(--teal); }
.timeline-viewport { overflow-x: auto; }
.timeline-svg { display: block; width: 100%; min-width: 720px; height: 205px; }
.timeline-grid { stroke: var(--line-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.timeline-baseline { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.timeline-axis { fill: var(--muted); font: 9px var(--mono); }
.timeline-axis-title { fill: var(--muted); font: 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.timeline-bar { fill: var(--teal); opacity: .84; transition: opacity .12s ease, fill .12s ease; }
.timeline-bar:hover { fill: var(--cyan); opacity: 1; }
.timeline-empty { fill: var(--muted); font: 11px var(--mono); }

.report-dialog { width: min(940px, calc(100vw - 60px)); height: 100vh; max-height: 100vh; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--panel); box-shadow: -10px 0 30px rgba(15,28,40,.18); }
.report-dialog[open] { display: flex; flex-direction: column; animation: slide-in .18s ease-out; }
.report-dialog::backdrop { background: var(--dialog-mask); }
@keyframes slide-in { from { transform: translateX(40px); opacity: .5; } }
.dialog-top { display: grid; grid-template-columns: 1fr auto; align-items: start; padding: 24px 24px 15px; }
.dialog-top h2 { margin: 0; font-size: 25px; font-weight: 450; }
.dialog-top p { margin: 4px 0 0; color: var(--muted); font: 10px/1.5 var(--mono); }
.dialog-close { width: 34px; height: 34px; border: 0; color: var(--muted); background: transparent; font-size: 25px; }
.dialog-close:hover { color: var(--blue); background: var(--panel-alt); }
.detail-meta { display: grid; grid-template-columns: repeat(4,1fr); margin: 0 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail-field { min-width: 0; padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-field span { display: block; color: var(--muted); font: 9px/1 var(--mono); text-transform: uppercase; }
.detail-field strong { display: block; margin-top: 6px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dialog-tabs { display: flex; margin: 18px 24px 0; border-bottom: 1px solid var(--line); }
.dialog-tabs span { padding: 9px 16px; border-bottom: 2px solid var(--blue); color: var(--blue); font-weight: 650; }
.report-body { flex: 1; overflow: auto; padding: 24px clamp(24px,5vw,64px) 50px; color: var(--ink); font-size: 14px; line-height: 1.7; }
.report-body h1 { margin: .5rem 0 1.6rem; color: var(--ink); font-size: clamp(28px,4vw,44px); line-height: 1.05; letter-spacing: -.035em; }
.report-body h2 { margin-top: 2.2rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 20px; }
.report-body code { font-family: var(--mono); }
.report-body pre { overflow: auto; padding: 14px; color: #eceff4; background: #2e3440; }
.report-body blockquote { margin-left: 0; padding: 8px 0 8px 17px; border-left: 3px solid var(--blue); color: var(--muted); }
.report-body a { color: var(--blue); }
.dialog-footer { display: flex; justify-content: flex-end; padding: 12px 24px; border-top: 1px solid var(--line); background: var(--panel-alt); }
.source-button { padding: 8px 13px; border: 1px solid var(--blue); border-radius: 2px; color: var(--blue); background: var(--panel); text-decoration: none; font-size: 11px; }

.operator-stage { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,.62fr) minmax(0,1fr); gap: 8px; }
.operator-card, .brand-card { min-height: 480px; padding: clamp(22px,3vw,36px); }
.operator-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.operator-index { color: var(--blue); font: 700 10px/1 var(--mono); }
.operator-avatar { width: clamp(150px,15vw,200px); aspect-ratio: 1; margin-top: 28px; border: 1px solid var(--line); border-radius: 4px; object-fit: cover; box-shadow: var(--shadow); }
.operator-card h2 { margin: 24px 0 6px; font-size: clamp(27px,3.5vw,44px); line-height: .95; letter-spacing: -.04em; }
.operator-role { color: var(--teal); font: 700 10px/1.4 var(--mono); text-transform: uppercase; }
.operator-card p { max-width: 430px; margin: 18px auto 28px; color: var(--muted); line-height: 1.6; }
.operator-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: auto; }
.operator-links a { padding: 8px 11px; border: 1px solid var(--line); color: var(--blue); background: var(--panel-alt); text-decoration: none; font-size: 11px; }
.operator-links a:hover { border-color: var(--blue); }
.brand-card { position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden; background: var(--panel-alt); text-align: center; }
.brand-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--cyan); }
.about-logo { display: block; width: min(205px,88%); margin: 26px auto 22px; border: 1px solid var(--line); border-radius: 4px; object-fit: cover; box-shadow: var(--shadow); }
.brand-card h1 { margin: 0; font-size: clamp(24px,2.3vw,34px); line-height: 1; letter-spacing: -.05em; }
.brand-card p { max-width: 310px; margin: 18px auto 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 15px 18px; border-top: 1px solid var(--line); color: var(--muted); background: var(--panel); font: 10px/1.5 var(--mono); }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2e3440;
    --panel: #3b4252;
    --panel-alt: #434c5e;
    --ink: #eceff4;
    --muted: #d8dee9;
    --line: #4c566a;
    --line-soft: #465062;
    --blue: #88c0d0;
    --blue-dark: #5e81ac;
    --cyan: #8fbcbb;
    --teal: #a3be8c;
    --amber: #ebcb8b;
    --red: #bf616a;
    --purple: #b48ead;
    --crumb-bg: #4c566a;
    --crumb-ink: #eceff4;
    --success-bg: #40564f;
    --success-ink: #a3d2c6;
    --danger-bg: #5b3d47;
    --danger-ink: #e4a0a8;
    --warning-bg: #5d503e;
    --warning-ink: #ebcb8b;
    --dialog-mask: rgba(46, 52, 64, .84);
    --shadow: 0 1px 4px rgba(0, 0, 0, .28);
  }
  html { color-scheme: dark; }
  .logo-image { filter: contrast(1.04) brightness(.88); }
}

@media (max-width: 900px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 130px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-events-panel { min-height: 334px; }
  .device-panel { grid-column: auto; }
  .visitor-map { min-height: 320px; }
  .visitor-map svg { height: 270px; }
  .wide-panel { grid-column: auto; }
  .operator-stage { grid-template-columns: 1fr; }
  .brand-card { order: -1; }
}
@media (max-width: 670px) {
  .topbar { grid-template-columns: 44px 44px minmax(0,1fr); }
  .icon-button { width: 44px; }
  .top-actions { display: none; }
  .subnav { min-height: 48px; }
  .tabs { padding-left: 0; }
  .tabs a { min-width: auto; padding: 0 18px; }
  .sub-actions { display: none; }
  .control-row, .dashboard-controls .control-row { grid-template-columns: 1fr 104px; }
  .date-box { display: none; }
  .metric-card { min-height: 108px; padding: 12px; }
  .metric-value { margin-top: 12px; font-size: 30px; }
  .metric-label { font-size: 11px; }
  .device-grid { grid-template-columns: 1fr; }
  .device-item, .device-item:nth-child(2n), .device-item:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .device-item:last-child { border-bottom: 0; }
  .operator-card { min-height: 360px; }
  .operator-avatar { margin-top: 32px; }
  .report-dialog { width: 100vw; }
  .detail-meta { grid-template-columns: 1fr 1fr; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr; }
  .filter-row { overflow: auto; }
  .metric-context { display: none; }
  .page-heading { align-items: flex-start; }
  .event-table { min-width: 760px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
