

/* ================= status page ================= */
:where([data-script-page="status"]) .st-ok   { --st-c: var(--green-text);  --st-bg: rgba(52,199,89,0.09);   --st-bd: rgba(52,199,89,0.30); }
:where([data-script-page="status"]) .st-warn { --st-c: var(--amber-text);  --st-bg: rgba(252,211,77,0.09);  --st-bd: rgba(252,211,77,0.32); }
:where([data-script-page="status"]) .st-down { --st-c: var(--danger-text); --st-bg: rgba(252,165,165,0.09); --st-bd: rgba(252,165,165,0.34); }
:where([data-script-page="status"]) .st-info { --st-c: var(--accent-text); --st-bg: rgba(139,92,246,0.10);  --st-bd: rgba(139,92,246,0.30); }

/* ---- hero banner ---- */
:where([data-script-page="status"]) .st-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 34px);
  border: 1px solid var(--st-bd); border-radius: 18px;
  background:
    radial-gradient(120% 180% at 0% 0%, var(--st-bg), transparent 62%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
}
:where([data-script-page="status"]) .st-banner-main { min-width: 0; display: flex; align-items: flex-start; gap: clamp(14px, 2vw, 20px); }
:where([data-script-page="status"]) .st-h1 {
  font-family: var(--font-space-grotesk), sans-serif; font-weight: 700; color: var(--text-primary);
  font-size: clamp(27px, 4.2vw, 44px); line-height: 1.05; letter-spacing: -0.032em; margin: 0 0 10px;
  text-wrap: balance;
}
:where([data-script-page="status"]) .st-sub { font-size: clamp(14px, 1.5vw, 15.5px); line-height: 1.6; color: var(--text-secondary); margin: 0; max-width: 46ch; text-wrap: pretty; }
:where([data-script-page="status"]) .st-checked { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
:where([data-script-page="status"]) .st-checked-l { font-family: var(--font-jetbrains-mono), Menlo, monospace; font-size: 9.5px; letter-spacing: 0.16em; color: var(--text-muted); text-transform: uppercase; }
:where([data-script-page="status"]) .st-checked-v { font-family: var(--font-jetbrains-mono), Menlo, monospace; font-size: 13px; letter-spacing: 0.04em; color: var(--text-soft); font-variant-numeric: tabular-nums; }

/* ---- live indicator ---- */
:where([data-script-page="status"]) .st-live { position: relative; flex: none; width: 12px; height: 12px; margin-top: clamp(7px, 1.2vw, 12px); border-radius: 50%; background: var(--st-c); }
:where([data-script-page="status"]) .st-live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--st-c); opacity: .5; animation: stPulse 2.8s ease-out infinite;
}
@keyframes stPulse { 0% { transform: scale(.7); opacity: .6; } 70%, 100% { transform: scale(1.9); opacity: 0; } }

/* ---- pills ---- */
:where([data-script-page="status"]) .st-pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--font-jetbrains-mono), Menlo, monospace; font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--st-c); background: var(--st-bg); border: 1px solid var(--st-bd);
  border-radius: 999px; padding: 6px 11px;
}
:where([data-script-page="status"]) .st-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }

/* ---- summary strip ---- */
:where([data-script-page="status"]) .st-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--w-070); border-radius: 16px; overflow: hidden; background: var(--surface-2); }
:where([data-script-page="status"]) .st-sum { padding: clamp(16px, 2vw, 22px) clamp(14px, 2vw, 22px); border-left: 1px solid var(--w-055); }
:where([data-script-page="status"]) .st-sum:first-child { border-left: 0; }
:where([data-script-page="status"]) .st-sum-l { font-family: var(--font-jetbrains-mono), Menlo, monospace; font-size: 9.5px; letter-spacing: 0.15em; color: var(--text-muted); text-transform: uppercase; margin: 0 0 10px; }
:where([data-script-page="status"]) .st-sum-v { font-family: var(--font-space-grotesk), sans-serif; font-weight: 700; font-size: clamp(21px, 2.6vw, 29px); letter-spacing: -0.02em; color: var(--text-primary); line-height: 1; font-variant-numeric: tabular-nums; }
:where([data-script-page="status"]) .st-sum-n { font-size: 12px; color: var(--text-muted); margin: 8px 0 0; line-height: 1.5; }
@media (max-width: 860px) {
  :where([data-script-page="status"]) .st-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where([data-script-page="status"]) .st-sum:nth-child(3) { border-left: 0; }
  :where([data-script-page="status"]) .st-sum:nth-child(n+3) { border-top: 1px solid var(--w-055); }
}

/* ---- service list ---- */
:where([data-script-page="status"]) .st-list { border: 1px solid var(--w-070); border-radius: 16px; background: var(--surface); overflow: hidden; }
:where([data-script-page="status"]) .st-svc { padding: clamp(18px, 2.2vw, 24px) clamp(16px, 2.2vw, 26px); border-top: 1px solid var(--w-055); }
:where([data-script-page="status"]) .st-svc:first-child { border-top: 0; }
:where([data-script-page="status"]) .st-svc-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; }
:where([data-script-page="status"]) .st-svc-name { font-family: var(--font-space-grotesk), sans-serif; font-weight: 600; font-size: clamp(15.5px, 1.7vw, 18px); color: var(--text-primary); letter-spacing: -0.012em; margin: 0; }
:where([data-script-page="status"]) .st-svc-desc { font-size: 13px; line-height: 1.55; color: var(--text-muted); margin: 6px 0 0; max-width: 58ch; text-wrap: pretty; }
:where([data-script-page="status"]) .st-svc-meta { margin-left: auto; display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
:where([data-script-page="status"]) .st-metric { font-family: var(--font-jetbrains-mono), Menlo, monospace; font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
:where([data-script-page="status"]) .st-metric b { color: var(--text-soft); font-weight: 400; }
:where([data-script-page="status"]) .st-metric span { color: var(--text-faint); }

/* segmented 90-day bar */
:where([data-script-page="status"]) .st-bars { display: flex; gap: 2px; margin-top: 16px; height: 30px; align-items: stretch; }
:where([data-script-page="status"]) .st-bars > i { flex: 1 1 0; min-width: 1px; border-radius: 1.5px; background: color-mix(in srgb, var(--green-text) 42%, transparent); transition: background .18s; }
:where([data-script-page="status"]) .st-bars > i[data-s="partial"] { background: color-mix(in srgb, var(--amber-text) 72%, transparent); }
:where([data-script-page="status"]) .st-bars > i[data-s="major"]   { background: color-mix(in srgb, var(--danger-text) 82%, transparent); }
:where([data-script-page="status"]) .st-bars > i[data-s="maint"]   { background: color-mix(in srgb, var(--accent-strong) 55%, transparent); }
@media (hover: hover) and (pointer: fine) { :where([data-script-page="status"]) .st-bars > i:hover { background: color-mix(in srgb, var(--green-text) 85%, transparent); } }
:where([data-script-page="status"]) .st-scale { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px;
  font-family: var(--font-jetbrains-mono), Menlo, monospace; font-size: 9.5px; letter-spacing: 0.13em; color: var(--text-faint); text-transform: uppercase; }
:where([data-script-page="status"]) .st-scale span:nth-child(2) { color: var(--text-muted); }
@media (max-width: 700px) {
  :where([data-script-page="status"]) .st-bars { height: 26px; gap: 1px; }
  :where([data-script-page="status"]) .st-svc-meta { margin-left: 0; width: 100%; }
  :where([data-script-page="status"]) .st-scale span:nth-child(2) { display: none; }
}

/* legend */
:where([data-script-page="status"]) .st-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px;
  font-family: var(--font-jetbrains-mono), Menlo, monospace; font-size: 10px; letter-spacing: 0.13em; color: var(--text-muted); text-transform: uppercase; }
:where([data-script-page="status"]) .st-legend span { display: inline-flex; align-items: center; gap: 8px; }
:where([data-script-page="status"]) .st-legend i { width: 9px; height: 9px; border-radius: 2px; }

/* ---- incidents ---- */
:where([data-script-page="status"]) .st-empty {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 2.4vw, 26px);
  padding: clamp(24px, 3.2vw, 40px) clamp(20px, 3vw, 34px);
  border: 1px solid var(--st-bd); border-radius: 16px;
  background: radial-gradient(140% 200% at 100% 0%, var(--st-bg), transparent 60%), var(--surface-2);
}
:where([data-script-page="status"]) .st-empty-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--st-c); background: var(--st-bg); border: 1px solid var(--st-bd); }
:where([data-script-page="status"]) .st-empty h3 { font-family: var(--font-space-grotesk), sans-serif; font-weight: 600; font-size: clamp(17px, 1.9vw, 21px); color: var(--text-primary); margin: 0 0 7px; letter-spacing: -0.015em; }
:where([data-script-page="status"]) .st-empty p { font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); margin: 0; max-width: 58ch; text-wrap: pretty; }

:where([data-script-page="status"]) .st-tl { list-style: none; margin: clamp(24px, 3vw, 34px) 0 0; padding: 0 0 0 clamp(20px, 2.4vw, 26px); border-left: 1px solid var(--w-070); display: flex; flex-direction: column; gap: clamp(20px, 2.6vw, 30px); }
:where([data-script-page="status"]) .st-tl > li { position: relative; }
:where([data-script-page="status"]) .st-tl > li::before {
  content: ""; position: absolute; left: calc(-1 * clamp(20px, 2.4vw, 26px) - 4px); top: 7px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--st-c); box-shadow: 0 0 0 4px var(--background);
}
:where([data-script-page="status"]) .st-tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; }
:where([data-script-page="status"]) .st-tl-date { font-family: var(--font-jetbrains-mono), Menlo, monospace; font-size: 10.5px; letter-spacing: 0.13em; color: var(--text-muted); text-transform: uppercase; }
:where([data-script-page="status"]) .st-tl h3 { font-family: var(--font-space-grotesk), sans-serif; font-weight: 600; font-size: clamp(15.5px, 1.7vw, 18px); color: var(--text-primary); margin: 9px 0 0; letter-spacing: -0.012em; }
:where([data-script-page="status"]) .st-tl p { font-size: 13.5px; line-height: 1.65; color: var(--text-secondary); margin: 8px 0 0; max-width: 66ch; text-wrap: pretty; }
:where([data-script-page="status"]) .st-tl dl { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 14px 0 0;
  font-family: var(--font-jetbrains-mono), Menlo, monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
:where([data-script-page="status"]) .st-tl dt { color: var(--text-faint); }
:where([data-script-page="status"]) .st-tl dd { color: var(--text-soft); margin: 0 0 0 8px; }
:where([data-script-page="status"]) .st-tl dl > div { display: flex; }

/* ---- subscribe ---- */
:where([data-script-page="status"]) .st-sub-card {
  display: grid; gap: clamp(20px, 3vw, 44px); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  padding: clamp(24px, 3.2vw, 38px) clamp(20px, 3vw, 34px);
  border: 1px solid var(--w-080); border-radius: 18px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
@media (max-width: 820px) { :where([data-script-page="status"]) .st-sub-card { grid-template-columns: minmax(0, 1fr); } }
:where([data-script-page="status"]) .st-form { display: flex; flex-wrap: wrap; gap: 10px; }
:where([data-script-page="status"]) .st-form input {
  flex: 1 1 210px; min-width: 0; min-height: 48px; padding: 0 15px;
  font: inherit; font-size: 14.5px; color: var(--text-primary);
  background: var(--w-030); border: 1px solid var(--w-120); border-radius: 12px;
}
:where([data-script-page="status"]) .st-form input::placeholder { color: var(--text-faint); }
:where([data-script-page="status"]) .st-form input:hover { border-color: var(--w-200); }
:where([data-script-page="status"]) .st-form input:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-color: rgba(168,85,247,0.6); }
:where([data-script-page="status"]) .st-form button { flex: 0 0 auto; }
:where([data-script-page="status"]) .st-formnote { font-family: var(--font-jetbrains-mono), Menlo, monospace; font-size: 10px; letter-spacing: 0.12em; color: var(--text-muted); margin: 12px 0 0; line-height: 1.7; text-transform: uppercase; }
:where([data-script-page="status"]) .st-formnote[data-ok] { color: var(--green-text); }

@media (prefers-reduced-motion: reduce) {
  :where([data-script-page="status"]) .st-live::after { animation: none; }
  :where([data-script-page="status"]) .st-bars > i { transition: none; }
}

html[data-lx-scrollbar] { background-color: #05050a; }
html[data-lx-scrollbar="light"] { background-color: #f7f8fc; }
html[data-lx-scrollbar]::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-lx-scrollbar]::-webkit-scrollbar-track { background: #05050a; }
html[data-lx-scrollbar]::-webkit-scrollbar-thumb { background: #1a1a26; border-radius: 6px; }
html[data-lx-scrollbar]::-webkit-scrollbar-thumb:hover { background: #3a3350; }
html[data-lx-scrollbar="light"]::-webkit-scrollbar-track { background: #eceef6; }
html[data-lx-scrollbar="light"]::-webkit-scrollbar-thumb { background: #c7cbdd; }
html[data-lx-scrollbar="light"]::-webkit-scrollbar-thumb:hover { background: #aab0c8; }