:root {
  --ink: #172a26;
  --ink-soft: #5b6c68;
  --paper: #f3f5f1;
  --panel: #ffffff;
  --line: #dfe5e1;
  --line-dark: #31433e;
  --green-950: #102a25;
  --green-900: #15352f;
  --green-800: #18483f;
  --green-700: #17665a;
  --green-600: #148170;
  --green-100: #dff2ed;
  --gold: #cda764;
  --healthy: #0f8a62;
  --healthy-bg: #e1f4ec;
  --warning: #a5660a;
  --warning-bg: #fff1d6;
  --critical: #bb3a2e;
  --critical-bg: #fee8e5;
  --down: #841d24;
  --down-bg: #f8dfe1;
  --unknown: #66736f;
  --unknown-bg: #e9edeb;
  --shadow: 0 12px 40px rgba(24, 55, 47, .07);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 20; width: 252px; display: flex; flex-direction: column;
  padding: 24px 18px 18px; color: #eaf1ee; background:
    radial-gradient(circle at 5% 2%, rgba(205, 167, 100, .18), transparent 28%),
    linear-gradient(165deg, var(--green-900), var(--green-950) 62%);
  border-right: 1px solid rgba(255,255,255,.08);
}
.brand { display: flex; gap: 13px; align-items: center; margin: 0 5px 28px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(225,194,136,.55); color: #f5dfb5; font: 700 13px/1 Georgia, serif; letter-spacing: -.04em; border-radius: 50%; }
.brand strong { display: block; color: #fff; font: 600 20px/1.1 Georgia, serif; letter-spacing: .01em; }
.brand small { display: block; margin-top: 3px; color: #aebdb8; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.primary-nav { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #49635c transparent; }
.nav-label { margin: 22px 11px 8px; color: #81958f; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.primary-nav a, .nav-planned { min-height: 40px; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; margin: 3px 0; padding: 9px 10px; border-radius: 8px; font-size: 13px; text-decoration: none; }
.primary-nav a { color: #c9d5d1; transition: background .16s ease, color .16s ease; }
.primary-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.primary-nav a.active { color: #fff; background: rgba(255,255,255,.11); box-shadow: inset 2px 0 var(--gold); }
.nav-icon { color: #6f8a82; font-size: 9px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.active .nav-icon { color: #f0ce90; }
.nav-planned { color: #6e817b; cursor: default; }
.nav-planned em { padding: 2px 4px; color: #7d918a; border: 1px solid #3a5049; border-radius: 3px; font-size: 8px; font-style: normal; }
.sidebar-user { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 14px 9px 2px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; color: #18372f; background: #dfbf82; border-radius: 50%; font-size: 12px; font-weight: 800; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-user strong { color: #f4f7f6; font-size: 12px; }
.sidebar-user small { margin-top: 2px; color: #899c96; font-size: 10px; }
.sidebar-user form { margin: 0; }
.icon-button { width: 30px; height: 30px; padding: 0; border: 0; color: #a5b5b0; background: transparent; border-radius: 6px; cursor: pointer; }
.icon-button:hover { color: #fff; background: rgba(255,255,255,.08); }

.workspace { min-height: 100vh; margin-left: 252px; }
.topbar { height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 34px; background: rgba(250,251,249,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar p { margin: 0 0 3px; color: var(--green-700); font-size: 9px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.topbar h1 { margin: 0; font: 500 24px/1.1 Georgia, serif; letter-spacing: -.025em; }
.topbar-meta { display: flex; gap: 9px; align-items: center; color: var(--ink-soft); }
.topbar-meta strong, .topbar-meta small { display: block; }
.topbar-meta strong { color: var(--ink); font-size: 11px; }
.topbar-meta small { margin-top: 2px; font-size: 10px; }
.live-dot { width: 8px; height: 8px; background: var(--healthy); border-radius: 50%; box-shadow: 0 0 0 4px rgba(15,138,98,.12); }
.menu-button { display: none; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 8px 11px; color: var(--ink); }
.main-content { max-width: 1520px; margin: 0 auto; padding: 28px 34px 56px; }

.flash { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 0 0 18px; padding: 12px 15px; border: 1px solid; border-radius: 8px; font-size: 13px; }
.flash-success { color: #075c41; background: #e6f7f0; border-color: #b8e5d4; }
.flash-error { color: #922c23; background: #fff0ee; border-color: #f3c1bc; }
.flash button { border: 0; color: inherit; background: transparent; font-size: 18px; cursor: pointer; }

.eyebrow { margin: 0 0 7px; color: var(--green-700); font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin: 0 0 17px; }
.section-heading h2, .panel-heading h2 { margin: 0; font: 500 22px/1.2 Georgia, serif; letter-spacing: -.02em; }
.section-heading p, .panel-heading p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { border-color: #b8c6c1; background: #fafbf9; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button-primary { color: #fff; background: var(--green-800); border-color: var(--green-800); }
.button-primary:hover { color: #fff; background: var(--green-700); border-color: var(--green-700); }
.button-danger { color: #9c3028; background: #fff8f7; border-color: #edc1bd; }
.button-small { min-height: 30px; padding: 5px 9px; font-size: 10px; }
.button-quiet { color: var(--green-700); background: transparent; border-color: transparent; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 28px; }
.metric-card { min-height: 116px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 3px 16px rgba(30,55,48,.035); }
.metric-card > span { display: block; color: var(--ink-soft); font-size: 9px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.metric-card strong { display: block; margin: 12px 0 4px; font: 500 30px/1 Georgia, serif; letter-spacing: -.04em; }
.metric-card small { color: #7e8d89; font-size: 10px; }
.metric-card.status-healthy { border-top: 2px solid var(--healthy); }
.metric-card.status-warning { border-top: 2px solid #d99a31; }
.metric-card.status-critical { border-top: 2px solid var(--critical); }
.metric-card.status-down { border-top: 2px solid var(--down); }
.metric-card.status-unavailable { border-top: 2px solid var(--unknown); }

.system-alert { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 0 0 18px; padding: 15px 17px; color: #59450c; background: #fff8df; border: 1px solid #ead48b; border-radius: 9px; }
.system-alert strong, .system-alert span { display: block; }
.system-alert strong { margin-bottom: 4px; font-size: 13px; }
.system-alert div > span { color: #735d20; font-size: 11px; line-height: 1.5; }

.system-strip { display: grid; grid-template-columns: 1.4fr repeat(4,1fr); gap: 1px; margin-bottom: 29px; overflow: hidden; color: #e9f0ed; background: #314a43; border: 1px solid #314a43; border-radius: 9px; box-shadow: var(--shadow); }
.system-strip > div { min-height: 71px; display: flex; flex-direction: column; justify-content: center; padding: 13px 16px; background: var(--green-900); }
.system-strip .system-title { background: var(--green-800); }
.system-strip span { color: #8fa59e; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.system-strip strong { margin-top: 6px; color: #fff; font-size: 12px; }
.system-strip .good { color: #7be0ba; }
.system-strip .bad { color: #ff9e94; }

.content-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(320px,.85fr); gap: 20px; }
.website-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.website-card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 3px 18px rgba(26,54,46,.035); }
.website-card { padding: 18px; }
.website-card header { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 17px; }
.website-card h3 { margin: 0; font: 600 18px/1.2 Georgia, serif; }
.website-card .domain { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 10px; text-decoration: none; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.status-badge::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.badge-healthy, .badge-recovered, .badge-resolved { color: var(--healthy); background: var(--healthy-bg); }
.badge-warning { color: var(--warning); background: var(--warning-bg); }
.badge-critical, .badge-failed { color: var(--critical); background: var(--critical-bg); }
.badge-down, .badge-open { color: var(--down); background: var(--down-bg); }
.badge-unknown, .badge-paused, .badge-queued, .badge-probe_unavailable { color: var(--unknown); background: var(--unknown-bg); }
.badge-acknowledged, .badge-investigating, .badge-fix_applied { color: #315e8d; background: #e4eef9; }
.site-measures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.site-measures div { padding: 10px; background: #f7f9f7; border-radius: 7px; }
.site-measures span, .signal span { display: block; color: #71817c; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.site-measures strong { display: block; margin-top: 5px; font-size: 13px; }
.signal-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.signal { padding: 8px; border: 1px solid #e6ebe8; border-radius: 6px; }
.signal strong { display: block; margin-top: 4px; font-size: 10px; text-transform: capitalize; }
.signal .healthy { color: var(--healthy); }.signal .warning { color: var(--warning); }.signal .critical, .signal .down { color: var(--critical); }.signal .unknown, .signal .probe_unavailable { color: var(--unknown); }
.card-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 14px; padding-top: 13px; border-top: 1px solid #edf0ee; color: var(--ink-soft); font-size: 10px; }
.card-footer a { color: var(--green-700); font-weight: 750; text-decoration: none; }

.panel { overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; gap: 15px; align-items: start; padding: 18px 19px; border-bottom: 1px solid var(--line); }
.panel-body { padding: 19px; }
.panel + .panel { margin-top: 16px; }
.incident-list { margin: 0; padding: 0; list-style: none; }
.incident-list li { padding: 14px 0; border-bottom: 1px solid #edf0ee; }
.incident-list li:first-child { padding-top: 0; }.incident-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.incident-list a { display: block; text-decoration: none; }
.incident-list .incident-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.incident-list strong { font-size: 12px; }
.incident-list p { margin: 6px 0 4px; color: var(--ink); font-size: 12px; line-height: 1.4; }
.incident-list small { color: var(--ink-soft); font-size: 10px; }
.empty-state { display: grid; place-items: center; min-height: 180px; padding: 26px; color: var(--ink-soft); text-align: center; }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--ink); font: 500 19px Georgia, serif; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th { padding: 10px 12px; color: #74847f; background: #f7f9f7; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 800; letter-spacing: .11em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 12px; border-bottom: 1px solid #edf0ee; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table a { color: var(--green-700); font-weight: 700; text-decoration: none; }
.data-table .primary-cell strong, .data-table .primary-cell small { display: block; }
.data-table .primary-cell small { margin-top: 3px; color: var(--ink-soft); font-size: 9px; }
.nowrap { white-space: nowrap; }
.text-muted { color: var(--ink-soft); }
.text-danger { color: var(--critical); }.text-success { color: var(--healthy); }

.detail-hero { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; padding: 22px 24px; color: #e9f2ef; background: linear-gradient(135deg, var(--green-800), var(--green-950)); border-radius: 11px; box-shadow: var(--shadow); }
.detail-hero h2 { margin: 6px 0 5px; color: #fff; font: 500 27px Georgia, serif; }
.detail-hero p { margin: 0; color: #9db0aa; font-size: 12px; }
.detail-hero .eyebrow { color: #dcbc7e; }
.detail-hero .button { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.detail-hero .button-primary { background: #f1d39b; border-color: #f1d39b; color: #17372f; }
.summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 20px; }
.summary-item { padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.summary-item span { color: var(--ink-soft); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.summary-item strong { display: block; margin-top: 7px; font-size: 14px; }
.detail-columns { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.75fr); gap: 18px; }

.form-panel { max-width: 1040px; }
.form-section { padding: 22px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section h3 { margin: 0 0 4px; font: 600 18px Georgia, serif; }
.form-section > p { margin: 0 0 17px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.form-grid.cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field > span { display: block; margin: 0 0 6px; color: #40514d; font-size: 10px; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; padding: 9px 11px; color: var(--ink); background: #fbfcfa; border: 1px solid #ccd6d2; border-radius: 7px; outline: none; }
.field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(20,129,112,.1); }
.field small { display: block; margin-top: 5px; color: #7a8985; font-size: 9px; line-height: 1.5; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.checkbox { display: flex; gap: 8px; align-items: center; min-height: 38px; padding: 8px 10px; background: #f7f9f7; border: 1px solid #e3e8e5; border-radius: 7px; color: #40514d; font-size: 10px; }
.checkbox input { accent-color: var(--green-700); }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 18px 22px; background: #f8faf8; }
.inline-form { display: inline-flex; gap: 7px; align-items: center; margin: 0; }
.compact-form { display: grid; grid-template-columns: repeat(7,minmax(70px,1fr)) auto; gap: 7px; align-items: end; }
.compact-form .field input, .compact-form .field select { min-height: 32px; padding: 6px 7px; font-size: 10px; }
.compact-form .field label { font-size: 8px; }

.settings-stack { display: grid; gap: 18px; }
.monitor-settings { padding: 14px 16px; border-bottom: 1px solid #edf0ee; }
.monitor-settings:last-child { border-bottom: 0; }
.monitor-settings header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.monitor-settings h3 { margin: 0; font-size: 12px; }
.monitor-settings p { margin: 3px 0 0; color: var(--ink-soft); font-size: 9px; }
.anchor-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.anchor-tabs a { padding: 7px 10px; color: var(--green-700); background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; font-weight: 700; text-decoration: none; }

.filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: end; padding: 14px 16px; background: #f8faf8; border-bottom: 1px solid var(--line); }
.filters .field { min-width: 145px; }
.filters .field select { min-height: 34px; padding: 6px 9px; font-size: 10px; }

.report-columns { display: grid; grid-template-columns: minmax(420px,.8fr) minmax(560px,1.2fr); gap: 18px; margin-top: 18px; }
.report-matrix td { min-width: 112px; }
.report-matrix td:first-child { min-width: 180px; }
.report-cell-detail { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 9px; }
.badge-configured { color: var(--healthy); background: var(--healthy-bg); }
.badge-not_configured { color: var(--warning); background: var(--warning-bg); }

.incident-hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; margin-bottom: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--critical); border-radius: 9px; }
.incident-hero h2 { margin: 7px 0 6px; font: 500 24px Georgia, serif; }
.incident-hero p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.incident-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 7px; bottom: 7px; left: 5px; width: 1px; background: #dbe3df; }
.timeline li { position: relative; padding: 0 0 18px 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; top: 5px; left: 1px; width: 9px; height: 9px; background: #fff; border: 2px solid var(--green-600); border-radius: 50%; }
.timeline time { display: block; margin-bottom: 3px; color: #788783; font-size: 9px; }
.timeline strong { display: block; font-size: 11px; }
.timeline p { margin: 3px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.note { padding: 12px 0; border-bottom: 1px solid #edf0ee; }
.note:last-child { border-bottom: 0; }
.note header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 10px; }
.note p { margin: 0; color: #40514d; font-size: 11px; line-height: 1.6; white-space: pre-wrap; }
.technical-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.technical-grid div { padding: 10px; background: #f7f9f7; border-radius: 6px; }
.technical-grid span { display: block; color: var(--ink-soft); font-size: 8px; text-transform: uppercase; }
.technical-grid strong { display: block; margin-top: 4px; font-size: 11px; overflow-wrap: anywhere; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px,.85fr) minmax(500px,1.15fr); background: var(--paper); }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 42px; color: #e7efec; background: linear-gradient(145deg, var(--green-800), var(--green-950)); }
.login-brand::after { content: ""; position: absolute; width: 500px; height: 500px; right: -220px; bottom: -230px; border: 1px solid rgba(225,194,136,.22); border-radius: 50%; box-shadow: 0 0 0 60px rgba(225,194,136,.035), 0 0 0 120px rgba(225,194,136,.025); }
.login-brand .brand { position: relative; z-index: 1; margin: 0; }
.login-copy { position: relative; z-index: 1; max-width: 480px; margin: auto 0; }
.login-copy .eyebrow { color: #e3c489; }
.login-copy h1 { margin: 14px 0 18px; color: #fff; font: 500 48px/1.04 Georgia, serif; letter-spacing: -.045em; }
.login-copy p { max-width: 430px; color: #aebfba; font-size: 14px; line-height: 1.8; }
.login-signals { position: relative; z-index: 1; display: flex; gap: 20px; color: #a9bbb5; font-size: 10px; }
.login-signals span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; background: #71d7b1; border-radius: 50%; }
.login-form-wrap { display: grid; place-items: center; padding: 36px; }
.login-card { width: min(100%, 430px); padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.login-card h2 { margin: 0 0 7px; font: 500 28px Georgia, serif; }
.login-card > p { margin: 0 0 25px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.login-card .field { margin-bottom: 15px; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-field button { position: absolute; top: 5px; right: 5px; bottom: 5px; padding: 0 10px; border: 0; color: var(--green-700); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.login-card .button { width: 100%; min-height: 43px; margin-top: 4px; }
.login-links { display: flex; justify-content: center; margin-top: 16px; font-size: 11px; }
.login-links a { color: var(--green-700); font-weight: 700; }
.login-card .login-status { margin: 18px 0; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: #f7f9f7; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.login-card .login-status strong { display: block; margin-bottom: 4px; color: var(--ink); }
.login-note { margin: 17px 0 0; color: #81908c; font-size: 9px; line-height: 1.5; text-align: center; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(3,1fr); }
  .content-grid, .detail-columns, .report-columns { grid-template-columns: 1fr; }
  .system-strip { grid-template-columns: repeat(4,1fr); }
  .system-strip .system-title { grid-column: 1 / -1; }
  .compact-form { grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 18px 0 60px rgba(8,29,23,.25); }
  .sidebar-open .sidebar { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .menu-button { display: inline-flex; }
  .topbar { padding: 0 20px; }
  .main-content { padding: 22px 20px 45px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { min-height: 340px; }
  .login-copy h1 { font-size: 38px; }
}

@media (max-width: 640px) {
  .topbar { height: 73px; }
  .topbar p, .topbar-meta { display: none; }
  .topbar h1 { font-size: 20px; }
  .main-content { padding: 18px 14px 38px; }
  .section-heading, .detail-hero, .incident-hero, .system-alert { align-items: stretch; flex-direction: column; grid-template-columns: 1fr; }
  .section-heading { display: flex; }
  .metric-grid, .website-grid, .summary-grid, .form-grid, .form-grid.cols-3, .checkbox-grid, .technical-grid { grid-template-columns: 1fr; }
  .system-strip { grid-template-columns: repeat(2,1fr); }
  .site-measures { grid-template-columns: repeat(3,1fr); }
  .signal-row { grid-template-columns: repeat(2,1fr); }
  .compact-form { grid-template-columns: repeat(2,1fr); }
  .compact-form .button { grid-column: 1 / -1; }
  .login-brand { min-height: 290px; padding: 28px; }
  .login-copy h1 { font-size: 32px; }
  .login-copy p { font-size: 12px; }
  .login-signals { display: none; }
  .login-form-wrap { padding: 20px 14px; }
  .login-card { padding: 25px 21px; }
}
