:root {
  color-scheme: dark;
  --bg: #06100e;
  --panel: #0a1714;
  --panel-2: #0d1d19;
  --line: rgba(155, 241, 201, .13);
  --text: #effbf5;
  --muted: #829b91;
  --green: #63f2aa;
  --green-2: #16b86a;
  --cyan: #5dd8ee;
  --amber: #ffcd6c;
  --red: #ff6f74;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: radial-gradient(circle at 9% -8%, rgba(36, 209, 123, .14), transparent 27rem), radial-gradient(circle at 92% 12%, rgba(57, 167, 145, .08), transparent 30rem), var(--bg); }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .15; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; z-index: 20; }
a { color: inherit; }
.topbar { width: min(1240px, calc(100% - 40px)); height: 84px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .08em; }
.brand em { color: var(--green); font-style: normal; font-weight: 650; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--green); border-radius: 9px; color: var(--green); box-shadow: inset 0 0 18px rgba(99, 242, 170, .11), 0 0 24px rgba(99, 242, 170, .08); }
.live { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .875rem; }
.live span:first-child { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 205, 108, .08); }
.live.online span:first-child { background: var(--green); box-shadow: 0 0 0 5px rgba(99, 242, 170, .08); animation: pulse 2.4s ease-out infinite; }
.live.offline span:first-child { background: var(--red); box-shadow: 0 0 0 5px rgba(255, 111, 116, .08); }
main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.overview { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 64px 0 38px; }
.eyebrow { color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .16em; margin-bottom: 10px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.35rem, 5vw, 4.65rem); line-height: .98; letter-spacing: -.05em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -.035em; }
.overview-copy p { color: var(--muted); margin-top: 14px; font-size: 1rem; }
.overview-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.updated { color: var(--muted); font-size: .82rem; }
.panel-button { padding: 13px 17px; border: 1px solid rgba(99, 242, 170, .28); border-radius: 11px; background: rgba(99, 242, 170, .07); color: var(--green); font-size: .875rem; font-weight: 750; text-decoration: none; transition: .2s ease; }
.panel-button:hover { transform: translateY(-2px); border-color: var(--green); background: rgba(99, 242, 170, .12); }
.panel-button span { margin-left: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(9, 22, 18, .72); box-shadow: 0 28px 80px rgba(0,0,0,.18); }
.metric-card { min-width: 0; min-height: 220px; padding: 23px; border-right: 1px solid var(--line); position: relative; }
.metric-card:last-child { border-right: 0; }
.metric-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(99,242,170,.22), transparent); opacity: 0; }
.metric-primary { background: radial-gradient(circle at 15% 10%, rgba(99,242,170,.1), transparent 70%); }
.metric-primary::after { opacity: 1; }
.metric-head, .metric-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .78rem; }
.metric-head span:first-child { color: #b7c9c1; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.metric-head span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-value { margin: 31px 0 17px; display: flex; align-items: baseline; gap: 4px; }
.metric-value strong { font: 680 clamp(2.7rem, 4vw, 4rem)/.9 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.08em; }
.metric-value small { color: var(--green); font: 700 1.05rem ui-monospace, monospace; }
.metric-value.compact strong { font-size: clamp(1.75rem, 2.6vw, 2.5rem); letter-spacing: -.055em; }
.meter { height: 4px; background: rgba(255,255,255,.06); border-radius: 9px; overflow: hidden; margin-bottom: 18px; }
.meter i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--green-2), var(--green)); border-radius: inherit; transition: width .7s ease; box-shadow: 0 0 14px rgba(99,242,170,.25); }
.metric-foot { font-size: .74rem; }
.metric-foot span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-foot span:last-child { color: #b7c9c1; white-space: nowrap; }
.metric-foot.split { padding: 9px 0; border-top: 1px solid var(--line); }
.charts-section, .systems, .incidents { padding-top: 76px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.range-picker { display: flex; padding: 4px; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 10px; }
.range-picker button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 700 .78rem inherit; padding: 8px 11px; border-radius: 7px; cursor: pointer; }
.range-picker button:hover { color: var(--text); }
.range-picker button.active { color: #04110b; background: var(--green); }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chart-card { background: linear-gradient(160deg, rgba(14,31,26,.86), rgba(7,17,14,.88)); border: 1px solid var(--line); border-radius: var(--radius); padding: 21px 21px 14px; overflow: hidden; }
.chart-wide { grid-column: 1 / -1; }
.chart-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .82rem; color: #b7c9c1; margin-bottom: 13px; }
.chart-title > span { display: flex; align-items: center; gap: 7px; }
.chart-title strong { color: var(--text); font: 650 .86rem ui-monospace, monospace; }
.legend { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--green); }
.legend.memory { background: var(--cyan); }
.legend.down { background: var(--green); }
.legend.up { background: var(--cyan); margin-left: 9px; }
canvas { display: block; width: 100%; height: 215px; }
.chart-wide canvas { height: 185px; }
.chart-axis { display: flex; justify-content: space-between; color: #597067; font: .68rem ui-monospace, monospace; padding-top: 7px; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 18px; min-height: 73px; padding: 14px 18px; border: 1px solid var(--line); background: rgba(10,23,20,.7); border-radius: 13px; }
.service-name { display: flex; align-items: center; min-width: 0; gap: 12px; font-weight: 700; }
.service-name i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 13px rgba(99,242,170,.45); }
.service-row.down .service-name i { background: var(--red); box-shadow: 0 0 13px rgba(255,111,116,.35); }
.service-meta { color: var(--muted); font: .72rem ui-monospace, monospace; white-space: nowrap; }
.service-state { min-width: 91px; text-align: right; color: var(--green); font-size: .78rem; font-weight: 750; }
.service-row.down .service-state { color: var(--red); }
.uptime-bars { display: flex; height: 24px; gap: 2px; margin-top: 8px; }
.uptime-bars i { flex: 1; min-width: 2px; background: var(--green-2); border-radius: 2px; opacity: .85; }
.skeleton { height: 73px; border-radius: 13px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03)); background-size: 200% 100%; animation: skeleton 1.5s infinite; }
.incidents { padding-bottom: 84px; }
.incidents-list { border-top: 1px solid var(--line); }
.incident { display: grid; grid-template-columns: 170px minmax(0,1fr) auto; gap: 20px; padding: 21px 4px; border-bottom: 1px solid var(--line); }
.incident-time { color: var(--muted); font: .75rem ui-monospace, monospace; }
.incident strong { display: block; font-size: .92rem; margin-bottom: 6px; }
.incident p { color: var(--muted); font-size: .8rem; }
.incident-status { color: var(--green); font-size: .75rem; font-weight: 750; }
.incident-status.open { color: var(--red); }
.empty { padding: 34px 20px; border: 1px solid var(--line); border-radius: 13px; background: rgba(10,23,20,.5); color: var(--muted); text-align: center; }
.muted { color: var(--muted); font-size: .78rem; }
footer { width: min(1240px, calc(100% - 40px)); margin: auto; border-top: 1px solid var(--line); padding: 26px 0 38px; display: flex; justify-content: space-between; gap: 20px; color: #50655c; font-size: .7rem; letter-spacing: .07em; }
.tooltip { position: fixed; z-index: 40; pointer-events: none; padding: 9px 11px; background: #12241f; border: 1px solid rgba(99,242,170,.23); border-radius: 8px; box-shadow: 0 12px 35px rgba(0,0,0,.4); color: var(--text); font: .72rem/1.45 ui-monospace, monospace; white-space: nowrap; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(99,242,170,.24); } 70% { box-shadow: 0 0 0 9px rgba(99,242,170,0); } 100% { box-shadow: 0 0 0 0 rgba(99,242,170,0); } }
@keyframes skeleton { to { background-position: -200% 0; } }
@media (max-width: 980px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric-card { min-height: 210px; }
}
@media (max-width: 720px) {
  .topbar, main, footer { width: min(100% - 24px, 1240px); }
  .topbar { height: 70px; }
  .brand { font-size: .86rem; }
  .brand-mark { width: 31px; height: 31px; }
  .live { font-size: .78rem; }
  .overview { display: block; padding: 43px 0 27px; }
  .overview-actions { justify-content: space-between; margin-top: 28px; }
  .updated { display: none; }
  .panel-button { width: 100%; text-align: center; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card, .metric-card:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-card:last-child { border-bottom: 0; }
  .metric-card { min-height: 192px; }
  .charts-section, .systems, .incidents { padding-top: 58px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .range-picker { width: 100%; }
  .range-picker button { flex: 1; }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-wide { grid-column: auto; }
  canvas, .chart-wide canvas { height: 190px; }
  .service-list { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: minmax(0,1fr) auto; }
  .service-meta { display: none; }
  .incident { grid-template-columns: 1fr auto; }
  .incident-time { grid-column: 1 / -1; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
