/* status.smm.gg — shared styles for every page. */
:root {
  --bg: #000; --panel: #0e0e10; --panel-2: #161618; --panel-3: #1f1f22;
  --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #6e6e73;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --ok: #30d158; --minor: #ffd60a; --partial: #ff9f0a; --major: #ff453a; --maint: #0a84ff; --none: #2c2c2e;
  --accent: #0a84ff;
  --shadow: 0 30px 80px -30px rgba(0,0,0,.8);
  --ease: cubic-bezier(.2,.8,.2,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f7; --panel: #fff; --panel-2: #f5f5f7; --panel-3: #ebebef;
    --text: #1d1d1f; --text-2: #515154; --text-3: #86868b;
    --line: rgba(0,0,0,.08); --line-2: rgba(0,0,0,.14);
    --ok: #1fa347; --minor: #c99700; --partial: #e07800; --major: #e0352b; --maint: #0071e3; --none: #dcdce0;
    --accent: #0071e3;
    --shadow: 0 30px 70px -36px rgba(0,0,0,.25);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.wrap { width: min(980px, 100% - 32px); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Status colors: one variable per state, used by dots, bars and pills */
.s-operational { --c: var(--ok); } .s-degraded_performance, .s-minor { --c: var(--minor); }
.s-partial_outage, .s-major { --c: var(--partial); } .s-major_outage, .s-critical { --c: var(--major); }
.s-under_maintenance, .s-maintenance, .s-scheduled, .s-in_progress, .s-completed { --c: var(--maint); }
.s-nodata { --c: var(--none); } .s-none { --c: var(--ok); } .s-resolved { --c: var(--ok); }

/* Header */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand svg { height: 18px; width: auto; color: var(--text); }
.brand span { padding-left: 12px; border-left: 1px solid var(--line-2); color: var(--text-2); font-weight: 500; }
.nav-r { display: flex; align-items: center; gap: 4px; }
.lnk { padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-size: 14px; transition: color .2s, background .2s; }
.lnk:hover { color: var(--text); }
.lnk[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .2s var(--ease), opacity .2s; }
.pill:hover { opacity: .88; }
.pill:active { transform: scale(.97); }
.pill svg { width: 16px; height: 16px; }
.pill.ghost { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 640px) { .nav .lnk { padding: 8px 9px; font-size: 13.5px; } .nav .pill span { display: none; } .nav .pill { width: 36px; padding: 0; } .brand span { display: none; } }

/* Hero */
.hero { padding: 80px 0 48px; text-align: center; }
.orb { position: relative; width: 76px; height: 76px; margin: 0 auto 28px; display: grid; place-items: center; }
.orb::before, .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c); opacity: .16; animation: ring 3s var(--ease) infinite; }
.orb::after { animation-delay: 1.5s; }
.orb i { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--c); display: grid; place-items: center; box-shadow: 0 0 40px -6px var(--c); }
.orb svg { width: 26px; height: 26px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ring { 0% { transform: scale(.7); opacity: .3; } 100% { transform: scale(1.5); opacity: 0; } }
.hero h1 { margin: 0; font: 700 clamp(38px, 6.2vw, 66px)/1.03 var(--display); letter-spacing: -.045em; word-spacing: .04em; }
.hero p { max-width: 600px; margin: 16px auto 0; color: var(--text-2); font-size: clamp(16px, 1.7vw, 19px); }
.meta { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 8px 14px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.page-h { padding: 64px 0 36px; }
.page-h h1 { margin: 0; font: 700 clamp(34px, 5vw, 52px)/1.05 var(--display); letter-spacing: -.04em; }
.page-h p { margin: 10px 0 0; color: var(--text-2); font-size: 17px; }

/* Cards and sections */
.card { border-radius: 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.sec { margin-bottom: 64px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-h h2 { margin: 0; font: 700 clamp(24px, 3vw, 30px)/1.1 var(--display); letter-spacing: -.035em; }
.sec-h p { margin: 6px 0 0; color: var(--text-3); font-size: 14px; }
.sec-h a.more-l { color: var(--accent); font-size: 14px; font-weight: 500; }
.sec-h a.more-l:hover { text-decoration: underline; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .25s var(--ease), color .25s; }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* Active incident and maintenance banners */
.alerts { display: grid; gap: 12px; margin: 0 auto 48px; max-width: 760px; text-align: left; }
.alert { display: block; padding: 18px 20px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--c); transition: background .2s; }
.alert:hover { background: var(--panel-2); }
.alert-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.alert b { font-size: 16px; font-weight: 600; }
.alert p { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; }
.alert small { display: block; margin-top: 8px; color: var(--text-3); font-size: 12.5px; }
.badge { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 64px; border-radius: 22px; overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.stat { padding: 22px 22px 20px; background: var(--panel); }
.stat strong { display: block; font: 700 32px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat strong small { margin-left: 3px; color: var(--text-3); font-size: 16px; font-weight: 600; }
.stat span { display: block; margin-top: 8px; color: var(--text-3); font-size: 13px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat strong { font-size: 28px; } }

/* Components with history bars */
.comp { padding: 22px 24px 20px; }
.comp + .comp { border-top: 1px solid var(--line); }
.comp-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.comp-n { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-3); }
.ico svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.comp-n b { display: block; font-size: 16px; font-weight: 600; }
.comp-n small { display: block; color: var(--text-3); font-size: 13px; }
.st { display: inline-flex; align-items: center; gap: 7px; flex: none; color: var(--c); font-size: 14px; font-weight: 600; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.bars { display: flex; gap: 2px; height: 40px; }
.bars button { flex: 1 1 0; min-width: 0; padding: 0; border: 0; border-radius: 3px; background: var(--c); cursor: pointer; transform-origin: 50% 100%; transition: transform .18s var(--ease), opacity .2s; animation: grow .6s var(--ease) both; animation-delay: calc(var(--i) * 6ms); }
.bars:hover button { opacity: .5; }
.bars button:hover, .bars button:focus-visible, .bars button.is-on { opacity: 1; transform: scaleY(1.12); outline: none; }
@keyframes grow { from { transform: scaleY(.2); opacity: 0; } }
.axis { display: flex; justify-content: space-between; margin-top: 10px; color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.axis b { color: var(--text-2); font-weight: 600; }
@media (max-width: 560px) { .comp { padding: 18px 16px 16px; } .bars { gap: 1.5px; height: 34px; } .bars button { border-radius: 2px; } }

/* Response time charts */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 820px) { .charts { grid-template-columns: 1fr; } }
.chart { padding: 20px 20px 14px; }
.chart-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chart-h b { display: block; font-size: 15px; font-weight: 600; }
.chart-h small { color: var(--text-3); font-size: 12.5px; }
.big { text-align: right; }
.big strong { display: block; font: 700 26px/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.big strong em { margin-left: 2px; color: var(--text-3); font-size: 14px; font-style: normal; font-weight: 600; }
.big small { display: block; margin-top: 4px; }
.plot { position: relative; height: 128px; margin-top: 18px; touch-action: pan-y; }
.plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.plot .grid line { stroke: var(--line); stroke-width: 1; }
.plot .ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.yl { position: absolute; right: 0; transform: translateY(-100%); padding-bottom: 3px; color: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; pointer-events: none; }
.xl { display: flex; justify-content: space-between; margin-top: 8px; color: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-2); pointer-events: none; opacity: 0; }
.cross i { position: absolute; left: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--panel); }
.plot.is-hover .cross { opacity: 1; }
.chart-f { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chart-f b { color: var(--text-2); font-weight: 600; }

/* Incident list */
.month { margin: 28px 0 10px; color: var(--text-3); font-size: 13px; font-weight: 600; }
.month:first-child { margin-top: 0; }
.inc-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 10px; padding: 16px 20px; transition: background .2s; }
.inc-row:hover { background: var(--panel-2); }
.sev { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.inc-t b { display: block; font-size: 15px; font-weight: 600; }
.inc-t small { display: block; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.inc-r { display: flex; align-items: center; gap: 10px; }
.chev { width: 16px; height: 16px; stroke: var(--text-3); fill: none; stroke-width: 2; }
.clear { padding: 40px 20px; text-align: center; color: var(--text-2); }
.clear svg { display: block; width: 40px; height: 40px; margin: 0 auto 12px; stroke: var(--ok); fill: none; stroke-width: 1.8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); box-shadow: none; }
@media (max-width: 560px) { .inc-row { padding: 14px 16px; gap: 12px; } .inc-row .badge { display: none; } }

/* Incident detail */
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: var(--accent); font-size: 14px; font-weight: 500; }
.back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.detail-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 28px 0; border-radius: 20px; overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.facts div { padding: 16px 18px; background: var(--panel); }
.facts span { display: block; color: var(--text-3); font-size: 12.5px; }
.facts b { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }
.tl { margin: 0; padding: 26px 24px 24px 48px; list-style: none; }
.tl li { position: relative; padding: 0 0 26px 22px; border-left: 1px solid var(--line-2); }
.tl li:last-child { padding-bottom: 0; border-left-color: transparent; }
.tl li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 2px var(--c, var(--text-3)); }
.tl li:first-child::before { background: var(--c); }
.tl b { font-size: 15px; font-weight: 600; }
.tl p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.55; white-space: pre-line; }
.tl time { display: block; margin-top: 6px; color: var(--text-3); font-size: 13px; }
@media (max-width: 560px) { .tl { padding: 22px 18px 20px 36px; } }

/* Uptime calendars */
.cal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .cal-grid { grid-template-columns: 1fr; } }
.cal h3 { display: flex; justify-content: space-between; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.cal h3 span { color: var(--text-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-days i { aspect-ratio: 1; border-radius: 5px; background: var(--c); }
.cal-days i.pad { background: none; }
.cal-days i.wd { aspect-ratio: auto; background: none; color: var(--text-3); font-size: 11px; font-style: normal; font-weight: 600; text-align: center; }
.cal { max-width: 300px; }
@media (max-width: 760px) { .cal { max-width: none; } }
.cal-days button { aspect-ratio: 1; padding: 0; border: 0; border-radius: 5px; background: var(--c); cursor: pointer; transition: transform .15s var(--ease); }
.cal-days button:hover, .cal-days button:focus-visible { transform: scale(1.15); outline: none; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-2); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* Tooltip */
#tip { position: fixed; z-index: 50; min-width: 180px; max-width: 290px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--panel-2) 92%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); color: var(--text-2); font-size: 13px; line-height: 1.5; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s var(--ease); }
#tip.show { opacity: 1; transform: none; }
#tip b { display: block; color: var(--text); font-size: 13.5px; }
#tip .row { display: flex; align-items: center; gap: 7px; color: var(--c); font-weight: 600; }
#tip .row::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
#tip a, #tip em { display: block; margin-top: 6px; color: var(--text); font-style: normal; }

/* Subscribe sheet */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 16px; }
.sheet.open { display: grid; }
.sheet-bg { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: default; }
.sheet-card { position: relative; width: min(440px, 100%); padding: 28px 24px 22px; border-radius: 26px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.sheet-card h2 { margin: 0; font: 700 24px/1.15 var(--display); letter-spacing: -.03em; }
.sheet-card > p { margin: 6px 0 20px; color: var(--text-2); font-size: 14.5px; }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--panel-3); color: var(--text-2); font-size: 18px; cursor: pointer; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 8px; padding: 14px; border: 0; border-radius: 16px; background: var(--panel-2); text-align: left; cursor: pointer; transition: background .2s; }
.opt:hover { background: var(--panel-3); }
.opt .ico { background: var(--panel); }
.opt b { display: block; font-size: 15px; font-weight: 600; }
.opt small { display: block; color: var(--text-3); font-size: 13px; }
.sub-form { display: flex; gap: 8px; margin-bottom: 6px; }
.sub-form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; outline: none; }
.sub-form input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.sub-form .pill { height: 46px; border-radius: 14px; }
.sub-msg { min-height: 20px; margin: 4px 2px 6px; color: var(--text-2); font-size: 13.5px; }
.sub-msg.err { color: var(--major); }
@media (max-width: 560px) { .sheet { place-items: end center; padding: 0; } .sheet-card { width: 100%; border-radius: 26px 26px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); } }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); transform: translate(-50%, 20px); opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

footer { margin-top: 32px; padding: 28px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a:hover { color: var(--text); }
.reveal { animation: up .7s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
.skel { height: 220px; border-radius: 22px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
