:root {
  color-scheme: light;
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 32px; }
.page-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.eyebrow { margin: 0 0 12px; color: #1d4ed8; font-size: .78rem; font-weight: 800; letter-spacing: .13em; }
h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; letter-spacing: -.04em; }
.subtitle { max-width: 680px; margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.refresh-button { border: 1px solid var(--border); border-radius: 12px; padding: 11px 16px; background: white; color: var(--text); font-weight: 700; cursor: pointer; box-shadow: 0 1px 3px rgb(15 23 42 / .08); }
.refresh-button:disabled { opacity: .6; cursor: wait; }
.refreshing { animation: pulse .8s infinite alternate; }
.overall { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; padding: 20px 24px; border-radius: 18px; }
.overall-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; background: #fff; font-weight: 900; }
.overall span { display: block; margin-bottom: 3px; color: var(--muted); font-size: .85rem; }
.overall strong { display: block; font-size: 1.25rem; }
.overall-unknown { background: #e2e8f0; }
.overall-ok { background: #dcfce7; color: #166534; }
.overall-warning { background: #fef3c7; color: #92400e; }
.overall-error { background: #fee2e2; color: #991b1b; }
.connection-error { margin: 0 0 20px; padding: 14px 18px; border: 1px solid #fecaca; border-radius: 12px; background: #fff1f2; color: #9f1239; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 190px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 2px 8px rgb(15 23 42 / .04); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(15 23 42 / .08); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; }
.led { position: relative; display: block; width: 18px; height: 18px; border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 7px currentColor; }
.led-ok { color: #bbf7d0; background: #22c55e; }
.led-warning { color: #fde68a; background: #f59e0b; animation: blink 1.6s infinite; }
.led-error { color: #fecaca; background: #ef4444; animation: blink 1s infinite; }
.badge { padding: 6px 11px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-error { background: #fee2e2; color: #991b1b; }
.service-card h2 { margin: 0 0 10px; font-size: 1.3rem; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.55; }
footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; }
@keyframes blink { 50% { opacity: .45; } }
@keyframes pulse { to { opacity: .45; } }
@media (max-width: 850px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .container { padding-top: 36px; } .page-header, footer { align-items: stretch; flex-direction: column; } .services-grid { grid-template-columns: 1fr; } .refresh-button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
