@font-face {
  font-family: 'Ravi';
  src: url('/assets/fonts/Ravi-Thin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: 'Ravi';
  src: url('/assets/fonts/Ravi-Light.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Ravi';
  src: url('/assets/fonts/Ravi-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Ravi';
  src: url('/assets/fonts/Ravi-Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Ravi';
  src: url('/assets/fonts/Ravi-SemiBold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Ravi';
  src: url('/assets/fonts/Ravi-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Ravi';
  src: url('/assets/fonts/Ravi-Black.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Ravi';
  src: url('/assets/fonts/Ravi-ExtraBlack.woff2') format('woff2');
  font-style: normal;
  font-weight: 950;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font-sans: 'Ravi', Tahoma, Arial, sans-serif;
  --ink: #172033;
  --ink-strong: #0b1220;
  --muted: #667085;
  --muted-strong: #475467;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-alt: #eef2f7;
  --border: #e4e9f1;
  --border-strong: #d3dae6;
  --accent: #5457e6;
  --accent-dark: #3d3fbd;
  --accent-soft: #eeefff;
  --cyan: #23bfd0;
  --cyan-soft: #e8fbfd;
  --success: #159f70;
  --success-soft: #e8f8f1;
  --warning: #d58b13;
  --warning-soft: #fff7df;
  --danger: #dc3c5a;
  --danger-soft: #fff0f3;
  --outage: #a82745;
  --maintenance: #7a5af8;
  --maintenance-soft: #f0edff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 3px 10px rgba(16, 24, 40, .035);
  --shadow-md: 0 14px 40px rgba(32, 43, 74, .09);
  --shadow-lg: 0 26px 75px rgba(18, 25, 52, .16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1180px;
  --header-height: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink-strong); line-height: 1.35; }
p { color: var(--muted); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 3px; }
::selection { background: var(--accent-soft); color: var(--accent-dark); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; inset: 12px auto auto 12px; z-index: 999; padding: 10px 16px; border-radius: 8px; background: var(--ink-strong); color: #fff; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 30; height: var(--header-height); border-bottom: 1px solid rgba(228, 233, 241, .8); background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 11px; }
.brand > span:last-child { display: grid; line-height: 1.35; }
.brand strong { font-size: 17px; font-weight: 900; letter-spacing: -.35px; }
.brand small { color: var(--muted); font-size: 10px; font-weight: 600; }
.brand-mark { position: relative; display: flex; align-items: center; justify-content: center; gap: 2.5px; width: 38px; height: 38px; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, var(--accent), #3436a8); box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 24%, transparent); transform: rotate(-2deg); }
.brand-mark::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 72% 22%, rgba(255,255,255,.32), transparent 35%); }
.brand-mark i { display: block; width: 3px; border-radius: 4px; background: #fff; animation: beat 2s ease-in-out infinite; }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 17px; animation-delay: -.25s; }
.brand-mark i:nth-child(3) { height: 25px; animation-delay: -.5s; }
.brand-mark i:nth-child(4) { height: 12px; animation-delay: -.75s; }
@keyframes beat { 0%, 100% { transform: scaleY(.8); opacity: .8; } 50% { transform: scaleY(1.08); opacity: 1; } }
.main-nav { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.main-nav a { position: relative; padding: 9px 13px; color: var(--muted-strong); border-radius: 10px; font-size: 13px; font-weight: 700; transition: .2s ease; }
.main-nav a:hover { background: var(--surface-soft); color: var(--ink-strong); }
.main-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 9px; padding: 9px 18px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; font-size: 13px; line-height: 1.4; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 9px 25px color-mix(in srgb, var(--accent) 25%, transparent); }
.button-primary:hover { box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 34%, transparent); }
.button-secondary { border-color: var(--border); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.button-secondary:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.button-ghost { background: transparent; color: var(--ink); }
.button-ghost:hover { background: rgba(255,255,255,.7); }
.button-block { width: 100%; }
.button-icon { font-size: 18px; color: var(--accent); }
.text-link, .text-button { color: var(--accent); font-weight: 800; font-size: 13px; }
.text-link:hover { color: var(--accent-dark); }
.text-button { border: 0; padding: 2px; background: none; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--muted-strong); }
.theme-toggle { width: 40px; height: 40px; flex: 0 0 auto; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--muted-strong); box-shadow: var(--shadow-sm); transition: color .18s, border-color .18s, background .18s, transform .18s, box-shadow .18s; }
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--border-strong); color: var(--accent); box-shadow: var(--shadow-md); }
.theme-toggle:active { transform: translateY(0); }
.theme-toggle-icon, .theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle-label { display: none; }
.theme-toggle--login { width: auto; display: inline-flex; gap: 8px; padding-inline: 13px; }
.theme-toggle--login .theme-toggle-label { display: inline; font-size: 10px; font-weight: 800; }
.login-card > .theme-toggle { margin-bottom: 24px; }

.hero-section { position: relative; isolation: isolate; overflow: hidden; padding: 92px 0 88px; background: radial-gradient(circle at 75% 45%, #f0efff 0, transparent 31%), linear-gradient(180deg, #fbfcff 0%, #f7f9fc 100%); }
.hero-section::before { content: ''; position: absolute; inset: 0; z-index: -2; opacity: .28; background-image: linear-gradient(rgba(82,87,230,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(82,87,230,.08) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); }
.hero-glow { position: absolute; z-index: -1; border-radius: 999px; filter: blur(2px); opacity: .56; }
.hero-glow-one { width: 340px; height: 340px; top: -170px; right: 7%; background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 24%, transparent), transparent 67%); }
.hero-glow-two { width: 390px; height: 390px; left: 3%; bottom: -250px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 25%, transparent), transparent 67%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr); align-items: center; gap: 90px; }
.eyebrow, .section-kicker { margin-bottom: 10px; color: var(--accent); font-weight: 900; font-size: 12px; letter-spacing: -.1px; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 13%, transparent); animation: livepulse 2.2s infinite; }
@keyframes livepulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 11%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--success) 3%, transparent); } }
.hero-copy h1 { margin-bottom: 22px; font-size: clamp(37px, 4.2vw, 60px); font-weight: 950; letter-spacing: -2.4px; }
.hero-copy h1 span { color: var(--accent); }
.hero-lead { max-width: 610px; margin-bottom: 30px; font-size: 17px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.overall-card { position: relative; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 38px; border: 1px solid rgba(255,255,255,.78); border-radius: var(--radius-xl); background: rgba(255,255,255,.83); box-shadow: var(--shadow-lg); text-align: center; backdrop-filter: blur(14px); }
.overall-card::before { content: ''; position: absolute; width: 280px; height: 280px; top: -170px; right: -100px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 11%, transparent); }
.overall-card h2 { margin: 22px 0 8px; font-size: 27px; font-weight: 950; }
.overall-card > p { max-width: 340px; margin-bottom: 24px; }
.status-orbit { position: relative; width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%; background: var(--success-soft); }
.status-orbit-symbol { position: relative; z-index: 2; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: var(--success); color: #fff; box-shadow: 0 10px 25px color-mix(in srgb, var(--success) 27%, transparent); font-style: normal; }
.status-orbit-symbol svg { width: 28px; height: 28px; }
.status-orbit span { position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); border-radius: 50%; animation: orbit 2.6s infinite ease-out; }
.status-orbit span:nth-child(2) { animation-delay: 1.3s; }
@keyframes orbit { from { transform: scale(.66); opacity: .8; } to { transform: scale(1.3); opacity: 0; } }
.overall-card.status-degraded .status-orbit, .overall-card.status-partial_outage .status-orbit { background: var(--warning-soft); }
.overall-card.status-degraded .status-orbit-symbol, .overall-card.status-partial_outage .status-orbit-symbol { background: var(--warning); box-shadow: 0 10px 25px rgba(213,139,19,.25); }
.overall-card.status-major_outage .status-orbit { background: var(--danger-soft); }
.overall-card.status-major_outage .status-orbit-symbol { background: var(--danger); box-shadow: 0 10px 25px rgba(220,60,90,.25); }
.overall-card.status-maintenance .status-orbit { background: var(--maintenance-soft); }
.overall-card.status-maintenance .status-orbit-symbol { background: var(--maintenance); }
.overall-card .status-orbit span { border-color: currentColor; opacity: .15; }
.overall-footer { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.overall-footer span:last-child { color: var(--muted-strong); font-weight: 700; }

.section { padding: 75px 0; }
.section-tight { padding-top: 58px; padding-bottom: 56px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 27px; }
.section-heading h2 { margin-bottom: 0; font-size: 25px; font-weight: 950; letter-spacing: -.5px; }
.section-heading .section-kicker { margin-bottom: 4px; }
.section-heading-wide { align-items: center; }
.section-description { max-width: 420px; margin: 0; font-size: 13px; }
.count-pill { min-width: 36px; height: 29px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted-strong); font-size: 12px; font-weight: 800; }

.incident-stack, .history-list { display: grid; gap: 16px; }
.incident-card { position: relative; display: grid; grid-template-columns: 5px 1fr; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.incident-card:hover { transform: translateY(-1px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.incident-accent { background: var(--warning); }
.incident-card.severity-operational .incident-accent { background: var(--success); }
.incident-card.severity-maintenance .incident-accent { background: var(--maintenance); }
.incident-card.severity-partial_outage .incident-accent { background: var(--warning); }
.incident-card.severity-major_outage .incident-accent { background: var(--danger); }
.incident-body { min-width: 0; padding: 24px 26px 25px; }
.incident-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.incident-topline > time { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; }
.status-badge, .lifecycle-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; color: var(--muted-strong); background: var(--surface-alt); font-size: 10px; font-weight: 900; line-height: 1.4; white-space: nowrap; }
.status-badge i, .lifecycle-badge i { width: 16px; height: 16px; display: inline-grid; place-items: center; border-radius: 50%; background: currentColor; color: #fff; font-style: normal; font-size: 10px; }
.status-badge.compact { padding: 4px 8px; }
.status-badge.status-operational { background: var(--success-soft); color: var(--success); }
.status-badge.status-degraded, .status-badge.status-partial_outage { background: var(--warning-soft); color: #a66b0b; }
.status-badge.status-major_outage { background: var(--danger-soft); color: var(--danger); }
.status-badge.status-maintenance { background: var(--maintenance-soft); color: var(--maintenance); }
.lifecycle-resolved { background: var(--success-soft); color: var(--success); }
.lifecycle-monitoring { background: var(--cyan-soft); color: #178999; }
.lifecycle-scheduled { background: var(--maintenance-soft); color: var(--maintenance); }
.incident-card h3 { margin-bottom: 7px; font-size: 18px; font-weight: 900; }
.incident-summary { margin-bottom: 16px; font-size: 13px; line-height: 1.9; white-space: pre-line; }
.incident-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 17px; }
.incident-facts div { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.incident-facts dt { color: var(--muted); }
.incident-facts dd { margin: 0; color: var(--muted-strong); font-weight: 700; }
.incident-facts dd, time, #generated-at, #service-updated { direction: rtl; unicode-bidi: plaintext; text-align: right; font-variant-numeric: tabular-nums; }
.affected-services { display: flex; align-items: flex-start; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 11px; }
.affected-services > strong { color: var(--muted); white-space: nowrap; }
.affected-services a { color: var(--accent); font-weight: 800; }
.affected-services a:hover { text-decoration: underline; }
.incident-timeline { position: relative; display: grid; gap: 0; margin: 21px 0 0; padding: 0; list-style: none; }
.incident-timeline::before { content: ''; position: absolute; top: 14px; bottom: 14px; right: 12px; width: 1px; background: var(--border-strong); }
.incident-timeline li { position: relative; display: grid; grid-template-columns: 25px 1fr; gap: 12px; padding: 0 0 18px; }
.incident-timeline li:last-child { padding-bottom: 0; }
.timeline-marker { position: relative; z-index: 1; width: 25px; height: 25px; display: grid; place-items: center; border: 3px solid var(--surface); border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 900; }
.timeline-content { padding: 2px 0 0; }
.timeline-content p { margin: 7px 0 0; font-size: 12px; line-height: 1.9; white-space: pre-line; }
.timeline-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.timeline-meta strong { font-size: 11px; }
.timeline-meta time { color: var(--muted); font-size: 10px; }

.services-section { background: #f1f4f9; border-block: 1px solid var(--border); }
.service-groups { display: grid; gap: 31px; }
.service-group-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.service-group-heading h3 { margin: 0; font-size: 14px; font-weight: 900; }
.service-group-heading span { color: var(--muted); font-size: 10px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service-card { min-width: 0; min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 19px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .18s, border-color .18s, box-shadow .18s; }
.service-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 28%, var(--border)); box-shadow: var(--shadow-md); }
.service-card-main { min-width: 0; display: flex; align-items: center; gap: 12px; }
.service-pulse { position: relative; width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--success-soft); color: var(--success); font-weight: 900; }
.service-pulse svg { width: 16px; height: 16px; }
.service-pulse.status-degraded, .service-pulse.status-partial_outage { background: var(--warning-soft); color: var(--warning); }
.service-pulse.status-major_outage { background: var(--danger-soft); color: var(--danger); }
.service-pulse.status-maintenance { background: var(--maintenance-soft); color: var(--maintenance); }
.service-card-copy { min-width: 0; display: grid; }
.service-card-copy strong { overflow: hidden; color: var(--ink-strong); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.service-card-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.service-arrow { flex: 0 0 auto; color: var(--border-strong); font-size: 18px; transition: color .18s, transform .18s; }
.service-card:hover .service-arrow { color: var(--accent); transform: translateX(-3px); }
.recent-section { background: var(--surface-soft); }
.recent-list { display: grid; gap: 13px; }
.recent-list .incident-card.compact .incident-body { padding: 21px 23px; }
.recent-list .incident-card.compact .incident-timeline { margin-top: 16px; }

.loading-card, .empty-state, .error-state { display: grid; justify-items: center; padding: 46px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: rgba(255,255,255,.66); text-align: center; }
.loading-card p, .empty-state p, .error-state p { max-width: 460px; margin: 9px 0 0; font-size: 13px; }
.empty-state h3, .error-state h3 { margin: 13px 0 0; font-size: 17px; }
.empty-state .button, .error-state .button { margin-top: 20px; }
.empty-icon, .error-state > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--success-soft); color: var(--success); font-size: 21px; font-weight: 900; }
.error-state > span { background: var(--danger-soft); color: var(--danger); }
.spinner { width: 29px; height: 29px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { display: block; overflow: hidden; border-radius: 8px; background: linear-gradient(90deg, #edf0f4 25%, #f8f9fb 47%, #edf0f4 70%); background-size: 250% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position-x: -250%; } }
.skeleton-title { width: 190px; height: 29px; margin: 24px auto 12px; }
.skeleton-title.wide { width: min(320px, 90%); margin: 10px 0; }
.skeleton-line { width: 260px; max-width: 100%; height: 13px; margin: 6px auto; }
.skeleton-line.short { width: 110px; margin: 0; }
.skeleton-badge { width: 110px; height: 33px; }
.skeleton-grid .skeleton-card { min-height: 90px; background: linear-gradient(90deg, #e8ecf2 25%, #f5f6f8 47%, #e8ecf2 70%); background-size: 250% 100%; animation: shimmer 1.4s linear infinite; }

.site-footer { background: #111827; color: #d1d7e2; }
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 60px; padding-block: 48px 42px; }
.brand-light strong { color: #fff; }
.brand-light small { color: #98a2b3; }
.footer-brand > p { max-width: 420px; margin: 18px 0 0; color: #98a2b3; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.footer-links a { color: #b9c1cf; font-size: 12px; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.footer-bottom { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.08); color: #7e899a; font-size: 10px; }
.powered-by { color: #98a2b3; font-size: 11px; font-weight: 500; }
.compact-footer .footer-bottom { border-top: 0; }

.modal { width: min(calc(100% - 32px), 610px); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 24px; background: transparent; box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(10, 16, 30, .7); backdrop-filter: blur(6px); }
.modal-shell { position: relative; padding: 34px; border-radius: 24px; background: var(--surface); }
.modal-close { position: absolute; left: 19px; top: 19px; font-size: 21px; }
.modal-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); font-size: 23px; }
.modal h2 { margin-bottom: 8px; font-size: 24px; }
.modal > p, .modal-shell > p:not(.section-kicker) { margin-bottom: 24px; font-size: 13px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > span:first-child, .field legend { color: var(--muted-strong); font-size: 11px; font-weight: 800; }
.field input, .field select, .input-with-icon { width: 100%; min-height: 46px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface); color: var(--ink); transition: border-color .18s, box-shadow .18s; }
.field input, .field select { padding: 9px 12px; }
.field input:focus, .field select:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); }
.field input::placeholder { color: #98a2b3; }
.field-error { min-height: 1.3em; color: var(--danger); font-size: 10px; }
.subscription-services { margin: 0 0 18px; padding: 0; border: 0; }
.subscription-services legend { margin-bottom: 8px; color: var(--muted-strong); font-size: 11px; font-weight: 800; }
.check-grid { max-height: 176px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow: auto; padding: 4px 0; }
.check-row { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); color: var(--muted-strong); font-size: 11px; }
.check-row input { width: 16px; height: 16px; accent-color: var(--accent); }
.check-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-all { margin-bottom: 7px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; }
.form-result { min-height: 1.7em; margin-bottom: 7px; color: var(--success); font-size: 11px; }
.form-result.is-error { color: var(--danger); }
.toast-region { position: fixed; z-index: 1000; left: 22px; bottom: 22px; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 12px 16px; border: 1px solid #c7ebdc; border-radius: 12px; background: var(--success-soft); color: #0b704e; box-shadow: var(--shadow-md); font-size: 12px; font-weight: 700; animation: toast-in .25s ease-out; }
.toast-error { border-color: #f3c7d0; background: var(--danger-soft); color: #a82745; }
.toast.leaving { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.page-hero { position: relative; overflow: hidden; padding: 53px 0 48px; border-bottom: 1px solid var(--border); background: linear-gradient(160deg, #fbfcff, #f1f2ff); }
.page-hero::after { content: ''; position: absolute; width: 330px; height: 330px; left: 4%; top: -225px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.breadcrumbs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 11px; }
.breadcrumbs a:hover { color: var(--accent); }
.page-title-row { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.page-title-row h1 { margin: 0 0 9px; font-size: clamp(30px, 4vw, 44px); font-weight: 950; letter-spacing: -1.3px; }
.page-title-row p { margin-bottom: 0; }
.history-summary { flex: 0 0 auto; display: grid; min-width: 150px; justify-items: center; padding: 17px 22px; border: 1px solid rgba(255,255,255,.9); border-radius: 17px; background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.history-summary strong { color: var(--accent); font-size: 26px; font-weight: 950; line-height: 1.2; }
.history-summary span { color: var(--muted); font-size: 10px; }

.history-section { min-height: 540px; }
.history-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 28px; }
.filters-card { position: sticky; top: 22px; padding: 21px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.filters-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 21px; }
.filters-heading h2 { margin: 0; font-size: 15px; }
.input-with-icon { display: flex; align-items: center; padding-inline: 10px; }
.input-with-icon > span { color: var(--muted); font-size: 18px; }
.input-with-icon input { min-height: 43px; padding-inline: 8px; border: 0; box-shadow: none !important; }
.filter-radios { display: grid; gap: 5px; margin: 0; padding: 0; border: 0; }
.filter-radios legend { margin-bottom: 7px; color: var(--muted-strong); font-size: 11px; font-weight: 800; }
.filter-radios label { cursor: pointer; }
.filter-radios input { position: absolute; opacity: 0; pointer-events: none; }
.filter-radios span { display: block; padding: 8px 10px; border-radius: 9px; color: var(--muted-strong); font-size: 11px; font-weight: 700; }
.filter-radios input:checked + span { background: var(--accent-soft); color: var(--accent); }
.filter-radios input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.results-meta { min-height: 40px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.results-meta p { margin: 0; color: var(--muted-strong); font-size: 12px; font-weight: 700; }
.results-meta > span { color: var(--muted); font-size: 10px; }
.load-more { min-width: 190px; margin: 24px auto 0; }
.month-divider { display: flex; align-items: center; gap: 14px; margin: 15px 0 3px; color: var(--muted); font-size: 11px; font-weight: 800; }
.month-divider::after { content: ''; height: 1px; flex: 1; background: var(--border); }

.service-hero { padding-bottom: 42px; }
.service-title-card { position: relative; z-index: 1; min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 27px 30px; border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius-lg); background: rgba(255,255,255,.82); box-shadow: var(--shadow-md); backdrop-filter: blur(12px); }
.service-title-copy { min-width: 0; }
.service-title-copy .service-group-label { display: block; margin-bottom: 5px; color: var(--accent); font-size: 11px; font-weight: 900; }
.service-title-copy h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); font-weight: 950; letter-spacing: -1px; }
.service-title-copy p { max-width: 680px; margin: 0; }
.service-title-status { flex: 0 0 auto; display: grid; justify-items: center; gap: 8px; padding: 15px 19px; border-radius: 16px; background: var(--surface-soft); }
.service-title-status .status-badge { font-size: 12px; padding: 7px 12px; }
.service-title-status small { color: var(--muted); font-size: 9px; }
.service-detail-section { background: var(--surface-soft); }
.service-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 24px; }
.service-main-column { min-width: 0; display: grid; gap: 24px; }
.uptime-card, .section-in-card, .info-card { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.uptime-card { padding: 27px; }
.card-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.card-heading h2 { margin: 0; font-size: 20px; }
.card-heading .section-kicker { margin-bottom: 3px; }
.uptime-score { display: grid; justify-items: end; }
.uptime-score strong { color: var(--success); font-size: 24px; font-weight: 950; direction: ltr; }
.uptime-score span { color: var(--muted); font-size: 9px; }
.uptime-bars { height: 55px; display: flex; align-items: stretch; gap: 2px; direction: ltr; }
.uptime-bar { min-width: 2px; flex: 1 1 0; border: 0; border-radius: 2px; background: var(--success); cursor: help; transition: transform .14s, filter .14s; }
.uptime-bar:hover, .uptime-bar:focus { z-index: 2; transform: scaleY(1.15); filter: brightness(.9); outline: 0; }
.uptime-bar.status-degraded, .uptime-bar.status-partial_outage { background: var(--warning); }
.uptime-bar.status-major_outage { background: var(--danger); }
.uptime-bar.status-maintenance { background: var(--maintenance); }
.uptime-skeleton { width: 100%; height: 100%; }
.uptime-axis { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 9px; }
.uptime-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; }
.uptime-legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; display: inline-block; border-radius: 3px; background: var(--success); }
.legend-dot.status-degraded { background: var(--warning); }
.legend-dot.status-major_outage { background: var(--danger); }
.legend-dot.status-maintenance { background: var(--maintenance); }
.section-in-card { padding: 27px; }
.service-sidebar { display: grid; gap: 16px; }
.info-card { padding: 22px; }
.info-card h2 { margin: 0 0 17px; font-size: 15px; }
.info-card dl { margin: 0; }
.info-card dl > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.info-card dl > div:last-child { border-bottom: 0; }
.info-card dt { color: var(--muted); font-size: 10px; }
.info-card dd { margin: 0; color: var(--muted-strong); font-size: 10px; font-weight: 800; text-align: right; }

@media (max-width: 980px) {
  :root { --header-height: 70px; }
  .header-inner { gap: 20px; }
  .hero-grid { grid-template-columns: 1fr 380px; gap: 42px; }
  .hero-copy h1 { font-size: 43px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-detail-grid { grid-template-columns: minmax(0, 1fr) 240px; }
}

@media (max-width: 780px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .site-header { background: #fff; backdrop-filter: none; }
  .header-inner { justify-content: space-between; }
  .brand small { display: none; }
  .main-nav { order: 3; position: fixed; z-index: 40; inset: auto 12px 12px; justify-content: center; gap: 3px; margin: 0; padding: 7px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); }
  .main-nav a { padding: 8px 11px; font-size: 11px; }
  .header-subscribe { min-height: 39px; padding-inline: 12px; font-size: 11px; }
  body { padding-bottom: 72px; }
  .hero-section { padding: 61px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 43px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-copy h1 { font-size: clamp(35px, 10vw, 48px); }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .overall-card { width: min(100%, 460px); min-height: 330px; margin-inline: auto; }
  .section { padding: 58px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .section-heading-wide { align-items: flex-start; flex-direction: column; }
  .footer-main { flex-direction: column; padding-top: 38px; }
  .footer-bottom { padding-block: 17px; }
  .history-layout { grid-template-columns: 1fr; }
  .filters-card { position: static; }
  .history-section { padding-top: 28px; }
  .history-content { min-width: 0; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  body { font-size: 14px; }
  .site-header { height: 65px; }
  .header-inner { gap: 9px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand strong { font-size: 15px; }
  .theme-toggle { width: 36px; height: 36px; border-radius: 10px; }
  .header-subscribe .button-icon { display: none; }
  .header-subscribe { max-width: 116px; padding-inline: 10px; }
  .main-nav a { padding-inline: 8px; }
  .hero-copy h1 { letter-spacing: -1.4px; }
  .overall-card { min-height: 310px; padding: 27px 20px; border-radius: 24px; }
  .status-orbit { width: 90px; height: 90px; }
  .status-orbit::after { width: 54px; height: 54px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 22px; }
  .section-heading .text-link { margin-top: 8px; }
  .incident-topline { align-items: flex-start; flex-direction: column; }
  .incident-body { padding: 19px 17px 21px; }
  .incident-card h3 { font-size: 16px; }
  .incident-facts { display: grid; gap: 6px; }
  .affected-services { display: grid; }
  .timeline-meta { align-items: flex-start; flex-direction: column; }
  .footer-main { gap: 30px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 3px; }
  .footer-links { gap: 8px 16px; }
  .modal-shell { padding: 27px 20px 22px; }
  .modal-close { left: 13px; top: 13px; }
  .check-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 35px 0 32px; }
  .page-title-row { align-items: flex-start; flex-direction: column; gap: 21px; }
  .history-summary { min-width: 130px; justify-items: start; }
  .results-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .service-title-card { align-items: flex-start; flex-direction: column; padding: 22px 19px; }
  .service-title-status { width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .card-heading { align-items: flex-start; }
  .uptime-card, .section-in-card { padding: 20px 16px; }
  .uptime-bars { gap: 1px; }
  .uptime-bar { min-width: 1px; }
  .service-sidebar { grid-template-columns: 1fr; }
}

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

/* Admin panel ------------------------------------------------------------ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none !important; }
.admin-body { min-height: 100vh; padding: 0; background: #f5f7fb; color: #172033; }
.admin-body svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-body .brand-mark span { position: relative; z-index: 1; display: block; width: 3px; border-radius: 4px; background: #fff; }
.admin-body .brand-mark span:nth-child(1) { height: 9px; }
.admin-body .brand-mark span:nth-child(2) { height: 23px; }
.admin-body .brand-mark span:nth-child(3) { height: 14px; }
.admin-body .brand > span:last-child { display: inline; color: inherit; font-size: 18px; font-weight: 950; }
.brand--light { color: #fff; }
.eyebrow--light { color: #aebcff; }
.button--primary { background: linear-gradient(135deg, var(--accent), #4246c9); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 22%, transparent); }
.button--secondary { border-color: var(--border); background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.button--ghost { border-color: transparent; background: transparent; color: var(--muted-strong); }
.button--wide { width: 100%; min-height: 49px; }
.button--small { min-height: 35px; padding: 6px 12px; font-size: 11px; }
.button--success-soft { background: var(--success-soft); color: var(--success); }
.button--danger-soft { border-color: #f2c8d0; background: var(--danger-soft); color: var(--danger); }
.button[disabled] { cursor: wait; opacity: .68; transform: none; }
.button-spinner { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.4); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-button--soft { border-color: var(--border); background: #f8f9fc; }
.icon-button--danger { border-color: transparent; background: transparent; color: #c23a54; }
.icon-button--danger:hover { background: var(--danger-soft); }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, .95fr) minmax(480px, 1.05fr); background: #fff; }
.login-visual { position: relative; min-height: 680px; display: flex; flex-direction: column; overflow: hidden; padding: 42px 8vw 48px 5vw; background: radial-gradient(circle at 25% 78%, rgba(101,88,245,.36), transparent 30%), linear-gradient(150deg, #101a37 0%, #16264d 55%, #111b36 100%); }
.login-visual::before { content: ''; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, #000, transparent); }
.login-visual > * { position: relative; z-index: 1; }
.login-visual__content { width: min(560px, 100%); margin-block: auto; }
.login-visual h1 { margin: 15px 0 25px; color: #fff; font-size: clamp(42px, 5vw, 70px); font-weight: 950; letter-spacing: -2.4px; }
.login-visual p { max-width: 520px; color: #b7c2db; font-size: 16px; line-height: 2; }
.signal-orbit { position: absolute; left: -70px; bottom: -110px; width: 410px; height: 410px; border: 1px solid rgba(168,180,255,.13); border-radius: 50%; }
.signal-orbit i { position: absolute; inset: 50%; border: 1px solid rgba(168,180,255,.16); border-radius: 50%; transform: translate(-50%, -50%); }
.signal-orbit i:nth-child(1) { width: 74%; height: 74%; }
.signal-orbit i:nth-child(2) { width: 49%; height: 49%; }
.signal-orbit i:nth-child(3) { width: 24%; height: 24%; }
.signal-orbit b { position: absolute; left: 49%; top: 8%; width: 15px; height: 15px; border: 4px solid rgba(255,255,255,.8); border-radius: 50%; background: #7b74ff; box-shadow: 0 0 0 9px rgba(123,116,255,.14); }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-card { width: min(420px, 100%); }
.login-brand { display: none; margin-bottom: 45px; }
.login-card h2 { margin: 4px 0 7px; font-size: 34px; font-weight: 950; }
.login-card > div > p { margin-bottom: 30px; font-size: 13px; }
.login-card .field { margin-bottom: 18px; }
.login-card .field > span:first-child { font-size: 12px; }
.login-card .field input { min-height: 50px; padding: 11px 14px; }
.password-field { position: relative; display: block; }
.password-field input { padding-left: 48px !important; }
.password-toggle { position: absolute; left: 6px; top: 6px; border: 0; background: transparent; }
.form-error { min-height: 24px; margin: 10px 0; color: var(--danger); font-size: 11px; text-align: center; }
.demo-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; padding: 12px 14px; border: 1px solid #d9dcff; border-radius: 12px; background: var(--accent-soft); color: #555997; font-size: 10px; line-height: 1.7; }
.status-icon { flex: 0 0 auto; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; }

.admin-app { min-height: 100vh; }
.admin-sidebar { position: fixed; z-index: 80; inset: 0 0 0 auto; width: 250px; display: flex; flex-direction: column; padding: 25px 16px 18px; background: linear-gradient(180deg, #101a35, #142142); color: #c2cbe0; box-shadow: 10px 0 35px rgba(12,20,42,.08); }
.sidebar-brand { gap: 10px; margin: 0 10px 34px; }
.sidebar-brand .brand-mark { width: 36px; height: 36px; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav__item { width: 100%; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 11px; min-height: 46px; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; color: #aab5ce; text-align: right; font-size: 12px; font-weight: 800; transition: .18s ease; }
.admin-nav__item:hover { background: rgba(255,255,255,.055); color: #fff; }
.admin-nav__item.is-active { background: linear-gradient(135deg, rgba(101,88,245,.32), rgba(101,88,245,.12)); color: #fff; box-shadow: inset 0 0 0 1px rgba(147,139,255,.2); }
.admin-nav__item b { min-width: 22px; height: 21px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.09); color: #d8def0; font-size: 9px; }
.sidebar-footer { display: grid; gap: 3px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-footer a, .sidebar-footer button { display: flex; align-items: center; gap: 10px; min-height: 41px; padding: 7px 11px; border: 0; border-radius: 10px; background: transparent; color: #9ca8c3; font-size: 11px; font-weight: 700; text-align: right; }
.sidebar-footer a:hover, .sidebar-footer button:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar-footer svg { width: 18px; }
.admin-main { min-height: 100vh; margin-right: 250px; }
.admin-topbar { position: sticky; z-index: 60; top: 0; min-height: 76px; display: flex; align-items: center; gap: 20px; padding: 12px 31px; border-bottom: 1px solid #e6eaf1; background: rgba(255,255,255,.9); backdrop-filter: blur(15px); }
.admin-topbar__title h1 { margin: 0 0 1px; font-size: 18px; font-weight: 950; }
.admin-topbar__title span { color: var(--muted); font-size: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #d9eee6; border-radius: 999px; background: #f4fcf8; color: #23795e; font-size: 9px; font-weight: 800; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(21,159,112,.11); }
.admin-avatar { width: 37px; height: 37px; display: grid; place-items: center; border: 3px solid #e6e8ff; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 900; }
.mobile-menu-button { display: none; }
.admin-content { width: min(100%, 1430px); margin-inline: auto; padding: 30px 32px 55px; }
.admin-view { display: none; }
.admin-view.is-active { display: block; animation: view-in .25s ease-out; }
@keyframes view-in { from { opacity: .2; transform: translateY(6px); } }
.welcome-row, .section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.welcome-row h2, .section-toolbar h2 { margin: 2px 0 5px; font-size: 25px; font-weight: 950; }
.welcome-row p, .section-toolbar p { margin: 0; font-size: 12px; }
.today-date { padding: 7px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--muted-strong); font-size: 10px; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { min-width: 0; display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid #e4e8f0; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.stat-card__icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; }
.stat-card__icon svg { width: 22px; height: 22px; }
.stat-card--blue .stat-card__icon { background: #ebefff; color: #5258dc; }
.stat-card--green .stat-card__icon { background: var(--success-soft); color: var(--success); }
.stat-card--amber .stat-card__icon { background: var(--warning-soft); color: var(--warning); }
.stat-card--red .stat-card__icon { background: var(--danger-soft); color: var(--danger); }
.stat-card--purple .stat-card__icon { background: var(--maintenance-soft); color: var(--maintenance); }
.stat-card--cyan .stat-card__icon { background: var(--cyan-soft); color: #1192a2; }
.stat-card > div:last-child { min-width: 0; display: grid; }
.stat-card strong { color: var(--ink-strong); font-size: 25px; font-weight: 950; line-height: 1.25; }
.stat-card span { color: var(--muted-strong); font-size: 11px; font-weight: 800; }
.stat-card small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 18px; margin-bottom: 18px; }
.admin-card { border: 1px solid #e4e8f0; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.admin-card__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid #edf0f5; }
.admin-card__head h3 { margin: 0 0 3px; font-size: 15px; font-weight: 950; }
.admin-card__head p { margin: 0; font-size: 9px; }
.health-summary { display: grid; grid-template-columns: 155px 1fr; align-items: center; gap: 27px; min-height: 240px; padding: 25px 28px; }
.health-ring { --health: 360deg; position: relative; width: 128px; height: 128px; display: grid; place-items: center; margin-inline: auto; border-radius: 50%; background: conic-gradient(var(--success) var(--health), #edf0f5 0); }
.health-ring::before { content: ''; width: 94px; height: 94px; border-radius: 50%; background: #fff; }
.health-ring > div { position: absolute; display: grid; justify-items: center; }
.health-ring strong { font-size: 23px; font-weight: 950; }
.health-ring span { color: var(--muted); font-size: 9px; }
.health-bars { display: grid; gap: 12px; }
.health-row > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; color: var(--muted-strong); font-size: 9px; }
.health-row b { font-size: 10px; }
.health-track { height: 6px; display: block; overflow: hidden; border-radius: 999px; background: #edf0f5; }
.health-fill { height: 100%; display: block; border-radius: inherit; background: var(--success); }
.health-fill--warning { background: var(--warning); }
.health-fill--orange { background: #ef731f; }
.health-fill--danger { background: var(--danger); }
.health-fill--info, .health-fill--purple { background: var(--maintenance); }
.compact-incident-list { min-height: 240px; padding: 8px 15px 15px; }
.compact-incident { width: 100%; display: grid; grid-template-columns: 4px 1fr 16px; align-items: center; gap: 11px; padding: 13px 5px; border: 0; border-bottom: 1px solid #edf0f5; background: transparent; text-align: right; }
.compact-incident__line { width: 4px; height: 36px; border-radius: 99px; background: var(--warning); }
.compact-incident__line--danger { background: var(--danger); }
.compact-incident__line--success { background: var(--success); }
.compact-incident__line--info, .compact-incident__line--purple { background: var(--maintenance); }
.compact-incident span:nth-child(2) { min-width: 0; display: grid; }
.compact-incident b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.compact-incident small { color: var(--muted); font-size: 9px; }
.compact-incident svg { width: 15px; color: #aeb6c5; }
.activity-card { margin-top: 18px; }
.activity-item { min-height: 62px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 10px 22px; border-bottom: 1px solid #edf0f5; }
.activity-item:last-child { border-bottom: 0; }
.activity-item__icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: #f0f2ff; color: var(--accent); font-size: 11px; font-weight: 950; }
.activity-item__icon--success { background: var(--success-soft); color: var(--success); }
.activity-item__icon--warning { background: var(--warning-soft); color: var(--warning); }
.activity-item > div { min-width: 0; }
.activity-item b { display: block; font-size: 11px; }
.activity-item p { overflow: hidden; margin: 1px 0 0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.activity-item time { color: var(--muted); font-size: 9px; }

.table-card { overflow: hidden; }
.table-tools, .incident-filters { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid #edf0f5; }
.table-tools select, .incident-filters select { min-height: 40px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--muted-strong); font-size: 10px; }
.search-field { min-width: 240px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.search-field svg { width: 17px; color: #98a2b3; }
.search-field input { width: 100%; min-height: 39px; border: 0; outline: 0; background: transparent; font-size: 10px; }
.search-field--push { margin-right: auto; }
.responsive-table { overflow-x: auto; }
.responsive-table table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.responsive-table th { padding: 11px 18px; border-bottom: 1px solid #e7eaf0; background: #fafbfc; color: var(--muted); font-size: 9px; font-weight: 800; text-align: right; }
.responsive-table td { padding: 13px 18px; border-bottom: 1px solid #edf0f5; color: var(--muted-strong); font-size: 10px; }
.responsive-table tbody tr:last-child td { border-bottom: 0; }
.responsive-table tbody tr:hover { background: #fbfcff; }
.service-cell, .subscriber-email { display: flex; align-items: center; gap: 10px; }
.service-glyph, .subscriber-email > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 950; }
.service-cell > span:last-child { display: grid; }
.service-cell b, .subscriber-email bdi { color: var(--ink); font-size: 11px; font-weight: 800; }
.service-cell small { color: var(--muted); font-size: 8px; }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; }
.row-actions .icon-button, td > .icon-button { width: 32px; height: 32px; border-radius: 9px; }
.row-actions svg, td > .icon-button svg { width: 16px; }
.visibility-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; }
.visibility-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.visibility-pill--visible { color: var(--success); }
.visibility-pill--visible::before { background: var(--success); }
.visibility-pill--hidden { color: var(--muted); }
.visibility-pill--hidden::before { background: #aab2c0; }
.status-badge--success { background: var(--success-soft); color: var(--success); }
.status-badge--warning { background: var(--warning-soft); color: #9e670b; }
.status-badge--orange { background: #fff0e5; color: #c65a13; }
.status-badge--danger { background: var(--danger-soft); color: var(--danger); }
.status-badge--info { background: var(--cyan-soft); color: #147f8c; }
.status-badge--purple { background: var(--maintenance-soft); color: var(--maintenance); }
.status-badge--subtle { box-shadow: inset 0 0 0 1px rgba(0,0,0,.035); }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--muted-strong); font-size: 10px; font-weight: 800; }
.filter-chip b { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 99px; background: #f0f2f6; font-size: 8px; }
.filter-chip.is-active { border-color: #d8d9ff; background: var(--accent-soft); color: var(--accent); }
.admin-incident-list { display: grid; gap: 12px; }
.admin-incident-card { position: relative; display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; overflow: hidden; border: 1px solid #e3e7ef; border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.admin-incident-card .incident-accent { width: 5px; background: var(--warning); }
.incident-accent--danger { background: var(--danger) !important; }
.incident-accent--success { background: var(--success) !important; }
.incident-accent--info, .incident-accent--purple { background: var(--maintenance) !important; }
.admin-incident-card__main { min-width: 0; padding: 18px 20px; }
.admin-incident-card__head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.admin-incident-card__head > div { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-incident-card__head > time { color: var(--muted); font-size: 9px; }
.admin-incident-card h3 { margin: 11px 0 5px; font-size: 15px; font-weight: 950; }
.admin-incident-card__main > p { max-width: 820px; margin-bottom: 11px; font-size: 10px; }
.affected-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.affected-row a, .affected-row b { padding: 2px 7px; border-radius: 7px; background: #f0f2ff; color: var(--accent); font-weight: 800; }
.latest-update { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 9px; margin-top: 13px; padding: 9px 11px; border-radius: 9px; background: #f8f9fc; }
.latest-update > span { color: var(--accent); font-size: 8px; font-weight: 900; }
.latest-update p { overflow: hidden; margin: 0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.latest-update time { color: var(--muted); font-size: 8px; }
.admin-incident-card__actions { display: flex; align-items: center; gap: 5px; padding: 18px; }
.subscriber-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 17px; }
.subscriber-summary article { display: grid; padding: 17px 20px; border: 1px solid #e4e8f0; border-radius: 14px; background: #fff; }
.subscriber-summary span { color: var(--muted-strong); font-size: 10px; font-weight: 800; }
.subscriber-summary strong { font-size: 23px; font-weight: 950; }
.subscriber-summary small { color: var(--muted); font-size: 8px; }

.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 18px; }
.settings-card .form-grid { padding: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.admin-body .field { min-width: 0; gap: 6px; margin: 0; }
.admin-body .field--wide { grid-column: 1 / -1; }
.admin-body .field > span:first-child { color: var(--muted-strong); font-size: 10px; font-weight: 800; }
.admin-body .field small { color: var(--muted); font-size: 8px; }
.admin-body .field input, .admin-body .field select, .admin-body .field textarea { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; color: var(--ink); outline: 0; font-size: 11px; resize: vertical; }
.admin-body .field textarea { min-height: 88px; }
.admin-body .field input:focus, .admin-body .field select:focus, .admin-body .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 9%, transparent); }
.color-field { min-height: 43px; display: flex; align-items: center; gap: 11px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 10px; }
.color-field input { width: 30px !important; min-height: 28px !important; padding: 0 !important; border: 0 !important; background: none !important; }
.color-field code { direction: ltr; color: var(--muted-strong); font-size: 10px; }
.form-actions { display: flex; justify-content: flex-end; padding: 17px 22px; border-top: 1px solid #edf0f5; }
.settings-aside { display: grid; gap: 15px; }
.preview-card, .danger-card { padding: 20px; }
.mini-status-preview { --preview-accent: var(--accent); margin-top: 11px; padding: 17px; border: 1px solid var(--border); border-radius: 12px; background: #f8f9fc; }
.mini-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; font-size: 10px; }
.mini-brand .brand-mark { width: 27px; height: 27px; border-radius: 8px; background: var(--preview-accent); box-shadow: none; }
.mini-banner { display: flex; align-items: center; gap: 7px; padding: 9px; border-radius: 8px; background: var(--success-soft); color: #21775b; font-size: 8px; font-weight: 800; }
.mini-banner i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.mini-lines { display: grid; gap: 5px; margin-top: 11px; }
.mini-lines span { height: 6px; border-radius: 99px; background: #e5e8ef; }
.mini-lines span:nth-child(2) { width: 82%; }
.mini-lines span:nth-child(3) { width: 63%; }
.danger-card { border-color: #f0d9dd; }
.danger-card h3 { margin: 0 0 5px; font-size: 13px; }
.danger-card p { font-size: 9px; }

.admin-dialog { width: min(calc(100% - 28px), 650px); max-height: calc(100vh - 34px); padding: 0; overflow: hidden auto; border: 0; border-radius: 19px; background: #fff; box-shadow: 0 30px 90px rgba(10,16,35,.28); }
.admin-dialog--large { width: min(calc(100% - 28px), 820px); }
.admin-dialog::backdrop { background: rgba(9,15,31,.66); backdrop-filter: blur(5px); }
.dialog-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid #e9ecf2; background: rgba(255,255,255,.95); }
.dialog-head .eyebrow { margin: 0; }
.dialog-head h2 { margin: 1px 0 0; font-size: 20px; font-weight: 950; }
.dialog-close { border: 0; background: #f4f5f8; }
.dialog-body { padding: 23px; }
.dialog-actions { position: sticky; z-index: 2; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid #e9ecf2; background: rgba(255,255,255,.96); }
.switch-field { display: flex; align-items: center; gap: 10px; min-height: 55px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 11px; cursor: pointer; }
.switch-field input { position: absolute; opacity: 0; }
.switch { position: relative; width: 38px; height: 22px; flex: 0 0 auto; border-radius: 99px; background: #cdd3dd; transition: .2s; }
.switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .2s; }
.switch-field input:checked + .switch { background: var(--accent); }
.switch-field input:checked + .switch::after { transform: translateX(-16px); }
.switch-field > span:last-child { display: grid; }
.switch-field b { font-size: 10px; }
.switch-field small { color: var(--muted); font-size: 8px; }
.switch-field--inline { margin-top: 17px; }
.service-picker { margin: 19px 0 0; padding: 0; border: 0; }
.service-picker legend { margin-bottom: 8px; color: var(--muted-strong); font-size: 10px; font-weight: 800; }
.service-picker > div { max-height: 230px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; overflow: auto; padding: 2px; }
.service-check { cursor: pointer; }
.service-check input { position: absolute; opacity: 0; }
.service-check > span { min-width: 0; display: grid; grid-template-columns: 13px 1fr; align-items: center; gap: 0 8px; min-height: 54px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; transition: .15s; }
.service-check i { grid-row: 1 / 3; width: 13px; height: 13px; border: 1px solid #b5bdca; border-radius: 4px; }
.service-check b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.service-check small { overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.service-check input:checked + span { border-color: #c9caff; background: var(--accent-soft); }
.service-check input:checked + span i { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--accent-soft); }
.empty-state__icon { width: 43px; height: 43px; display: grid; place-items: center; margin-inline: auto; border-radius: 13px; background: var(--accent-soft); color: var(--accent); font-size: 20px; font-weight: 900; }
.admin-body .empty-state { border: 0; background: transparent; }
.admin-body .empty-state h3 { margin: 9px 0 2px; font-size: 13px; }
.admin-body .empty-state p { margin: 0; font-size: 9px; }
.toast-region { pointer-events: none; }
.admin-body .toast { pointer-events: auto; min-width: 280px; display: grid; grid-template-columns: 23px 1fr 18px; align-items: center; gap: 8px; }
.admin-body .toast button { border: 0; background: transparent; color: currentColor; font-size: 17px; }
.admin-body .toast--error { border-color: #f1c6cf; background: var(--danger-soft); color: #9d2841; }
.admin-body .toast--info { border-color: #cbe9ee; background: var(--cyan-soft); color: #176f79; }
.toast__icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: currentColor; color: #fff; font-size: 10px; }
.sidebar-scrim { display: none; }

@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-incident-card { grid-template-columns: 5px minmax(0, 1fr); }
  .admin-incident-card__actions { grid-column: 2; padding-top: 0; }
}

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 28px; background: radial-gradient(circle at 50% -10%, var(--accent-soft), transparent 42%), #fff; }
  .login-brand { display: inline-flex; }
  .admin-sidebar { transform: translateX(110%); transition: transform .25s ease; }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-main { margin-right: 0; }
  .mobile-menu-button { display: grid; }
  .sidebar-scrim { position: fixed; z-index: 70; inset: 0; border: 0; background: rgba(9,15,31,.56); opacity: 0; pointer-events: none; transition: .2s; }
  .sidebar-scrim.is-visible { display: block; opacity: 1; pointer-events: auto; }
  .live-pill { display: none; }
}

@media (max-width: 680px) {
  .admin-content { padding: 22px 14px 45px; }
  .admin-topbar { min-height: 67px; padding: 10px 14px; }
  .admin-topbar__title span { display: none; }
  .admin-topbar__title h1 { font-size: 15px; }
  .topbar-actions .button { width: 39px; min-height: 39px; padding: 0; font-size: 0; }
  .topbar-actions .button svg { margin: 0; }
  .admin-avatar { display: none; }
  .welcome-row, .section-toolbar { align-items: flex-start; }
  .welcome-row h2, .section-toolbar h2 { font-size: 20px; }
  .today-date { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { display: grid; gap: 8px; padding: 14px; }
  .stat-card__icon { width: 35px; height: 35px; }
  .stat-card strong { font-size: 21px; }
  .health-summary { grid-template-columns: 1fr; }
  .activity-item { padding-inline: 14px; }
  .activity-item time { display: none; }
  .table-tools, .incident-filters { align-items: stretch; flex-wrap: wrap; }
  .search-field { min-width: 100%; }
  .search-field--push { order: -1; }
  .admin-incident-card__head { align-items: flex-start; flex-direction: column; }
  .admin-incident-card__actions { flex-wrap: wrap; padding-inline: 14px; }
  .latest-update { grid-template-columns: 1fr; }
  .subscriber-summary { grid-template-columns: 1fr; }
  .settings-aside { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-body .field--wide { grid-column: auto; }
  .service-picker > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-body { padding: 18px 15px; }
  .dialog-head, .dialog-actions { padding-inline: 15px; }
}

@media (max-width: 430px) {
  .stat-grid { grid-template-columns: 1fr; }
  .section-toolbar { flex-direction: column; }
  .section-toolbar > .button { width: 100%; }
  .service-picker > div { grid-template-columns: 1fr; }
  .admin-body .toast-region { inset-inline: 12px; left: 12px; bottom: 12px; }
  .admin-body .toast { min-width: 0; }
}

/* Dark theme ------------------------------------------------------------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #dce4f0;
  --ink-strong: #f5f7fb;
  --muted: #96a3b8;
  --muted-strong: #bdc7d6;
  --surface: #151e2d;
  --surface-soft: #0d1522;
  --surface-alt: #202b3d;
  --border: #29374b;
  --border-strong: #3a4a62;
  --accent: #8b8df8;
  --accent-dark: #6e72e8;
  --accent-soft: #29294d;
  --cyan: #43cad8;
  --cyan-soft: #12333a;
  --success: #3bc993;
  --success-soft: #123229;
  --warning: #efaa37;
  --warning-soft: #392b12;
  --danger: #f06a82;
  --danger-soft: #381b25;
  --outage: #f18498;
  --maintenance: #a792ff;
  --maintenance-soft: #2d274b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.22), 0 4px 14px rgba(0,0,0,.16);
  --shadow-md: 0 16px 42px rgba(0,0,0,.24);
  --shadow-lg: 0 28px 78px rgba(0,0,0,.34);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .admin-body { background: var(--surface-soft); color: var(--ink); }
html[data-theme="dark"] .site-header { border-color: var(--border); background: rgba(13,21,34,.9); }
html[data-theme="dark"] .button-ghost:hover { background: rgba(255,255,255,.055); }
html[data-theme="dark"] .theme-toggle { background: var(--surface-alt); }
html[data-theme="dark"] .hero-section { background: radial-gradient(circle at 75% 45%, #242749 0, transparent 32%), linear-gradient(180deg, #101827 0%, #0d1522 100%); }
html[data-theme="dark"] .hero-section::before { opacity: .2; background-image: linear-gradient(rgba(139,141,248,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(139,141,248,.13) 1px, transparent 1px); }
html[data-theme="dark"] .overall-card { border-color: rgba(113,130,158,.24); background: rgba(21,30,45,.86); }
html[data-theme="dark"] .services-section { background: #101927; }
html[data-theme="dark"] .loading-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .error-state { background: rgba(21,30,45,.72); }
html[data-theme="dark"] .skeleton { background: linear-gradient(90deg, #202b3b 25%, #29364a 47%, #202b3b 70%); background-size: 250% 100%; }
html[data-theme="dark"] .skeleton-grid .skeleton-card { background: linear-gradient(90deg, #1b2636 25%, #273448 47%, #1b2636 70%); background-size: 250% 100%; }
html[data-theme="dark"] .page-hero { background: linear-gradient(160deg, #111a29, #191b36); }
html[data-theme="dark"] .history-summary,
html[data-theme="dark"] .service-title-card { border-color: rgba(113,130,158,.25); background: rgba(21,30,45,.82); }
html[data-theme="dark"] .status-badge.status-degraded,
html[data-theme="dark"] .status-badge.status-partial_outage { color: #f4b64f; }
html[data-theme="dark"] .lifecycle-monitoring { color: #5bd3df; }
html[data-theme="dark"] .check-all { color: #c8c9ff; }
html[data-theme="dark"] .toast { border-color: #245b49; color: #78dfb8; }
html[data-theme="dark"] .toast-error { border-color: #643044; color: #ff9bae; }
html[data-theme="dark"] .site-footer { background: #080e18; }

html[data-theme="dark"] .admin-body .button--secondary,
html[data-theme="dark"] .admin-body .icon-button--soft,
html[data-theme="dark"] .today-date,
html[data-theme="dark"] .table-tools select,
html[data-theme="dark"] .incident-filters select,
html[data-theme="dark"] .search-field,
html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] .admin-body .field input,
html[data-theme="dark"] .admin-body .field select,
html[data-theme="dark"] .admin-body .field textarea,
html[data-theme="dark"] .service-check > span { background: var(--surface); color: var(--ink); border-color: var(--border); }
html[data-theme="dark"] .login-page,
html[data-theme="dark"] .login-panel { background: var(--surface-soft); }
html[data-theme="dark"] .demo-note { border-color: #414477; color: #c6c8ff; }
html[data-theme="dark"] .button--danger-soft { border-color: #623344; }
html[data-theme="dark"] .admin-topbar { border-color: var(--border); background: rgba(13,21,34,.9); }
html[data-theme="dark"] .live-pill { border-color: #285544; background: #112c25; color: #70d7b0; }
html[data-theme="dark"] .admin-avatar { border-color: #34365f; }
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-incident-card,
html[data-theme="dark"] .subscriber-summary article { border-color: var(--border); background: var(--surface); }
html[data-theme="dark"] .stat-card--blue .stat-card__icon { background: var(--accent-soft); color: #aeb0ff; }
html[data-theme="dark"] .stat-card--cyan .stat-card__icon { color: #61d4df; }
html[data-theme="dark"] .admin-card__head,
html[data-theme="dark"] .compact-incident,
html[data-theme="dark"] .activity-item,
html[data-theme="dark"] .table-tools,
html[data-theme="dark"] .incident-filters,
html[data-theme="dark"] .responsive-table th,
html[data-theme="dark"] .responsive-table td,
html[data-theme="dark"] .form-actions { border-color: var(--border); }
html[data-theme="dark"] .responsive-table th { background: #111a28; }
html[data-theme="dark"] .responsive-table tbody tr:hover { background: #192437; }
html[data-theme="dark"] .health-ring { background: conic-gradient(var(--success) var(--health), var(--surface-alt) 0); }
html[data-theme="dark"] .health-ring::before { background: var(--surface); }
html[data-theme="dark"] .health-track { background: var(--surface-alt); }
html[data-theme="dark"] .filter-chip b,
html[data-theme="dark"] .activity-item__icon,
html[data-theme="dark"] .affected-row a,
html[data-theme="dark"] .affected-row b { background: var(--accent-soft); }
html[data-theme="dark"] .filter-chip.is-active { border-color: #55588f; color: #b8b9ff; }
html[data-theme="dark"] .latest-update,
html[data-theme="dark"] .mini-status-preview { background: #111a28; }
html[data-theme="dark"] .mini-lines span { background: #35445a; }
html[data-theme="dark"] .mini-banner { color: #77d9b3; }
html[data-theme="dark"] .status-badge--orange { background: #3b2417; color: #ffab6e; }
html[data-theme="dark"] .status-badge--warning { color: #f4b64f; }
html[data-theme="dark"] .status-badge--info { color: #65d5df; }
html[data-theme="dark"] .danger-card { border-color: #59303b; }
html[data-theme="dark"] .admin-dialog { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .dialog-head,
html[data-theme="dark"] .dialog-actions { border-color: var(--border); background: rgba(21,30,45,.96); }
html[data-theme="dark"] .dialog-close { background: var(--surface-alt); }
html[data-theme="dark"] .switch { background: #506078; }
html[data-theme="dark"] .service-check i { border-color: #65738a; }
html[data-theme="dark"] .admin-body .field input:focus,
html[data-theme="dark"] .admin-body .field select:focus,
html[data-theme="dark"] .admin-body .field textarea:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
html[data-theme="dark"] .admin-body .toast--error { border-color: #643044; color: #ff9bae; }
html[data-theme="dark"] .admin-body .toast--info { border-color: #28535a; color: #7bd7df; }
html[data-theme="dark"] .toast__icon { background: rgba(255,255,255,.09); color: inherit; }

@media (max-width: 900px) {
  html[data-theme="dark"] .login-panel { background: radial-gradient(circle at 50% -10%, var(--accent-soft), transparent 42%), var(--surface-soft); }
}

@media (max-width: 780px) {
  html[data-theme="dark"] .site-header { background: var(--surface-soft); }
  html[data-theme="dark"] .main-nav { background: rgba(21,30,45,.96); }
}
