/* /status (worker/status.js). Dark site style, instructions/DESIGN.md version 2. Status is always words plus colour. */
.st-head { padding-bottom: 48px; }
.st-head .eyebrow { margin-bottom: 20px; }
.st-overall { display: flex; align-items: center; gap: 18px; font-size: 56px; }
.st-overall .st-dot { width: 16px; height: 16px; }
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.st-o-operational .st-dot, .st-up .st-dot { background: var(--green); }
.st-o-degraded .st-dot, .st-degraded .st-dot { background: var(--amber); }
.st-o-outage .st-dot, .st-down .st-dot { background: var(--red); }
.st-head .lead { margin-top: 20px; }
.st-affected { margin-top: 12px; color: var(--text); }

.st-section + .st-section { padding-top: 0; }
.st-h2 { font-size: 28px; letter-spacing: -0.025em; margin-bottom: 20px; }
.st-intro { max-width: 760px; margin-bottom: 24px; }

.st-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.st-comp { padding: 24px 28px; }
.st-comp + .st-comp { border-top: 1px solid var(--border); }
.st-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.st-top h3 { font-size: 22px; }
.st-top .small { margin-top: 4px; color: var(--text-2); }
.st-state { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1.4 var(--head); color: var(--text); white-space: nowrap; margin-top: 4px; }
.st-unchecked { color: var(--muted); }

.st-bars { display: flex; gap: 2px; height: 32px; margin-top: 20px; }
.st-bar { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--border-strong); }
.st-bar.st-green { background: var(--green); }
.st-bar.st-amber { background: var(--amber); }
.st-bar.st-red { background: var(--red); }
.st-bar.st-none { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.st-axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 12px; }
.st-axis .st-d30 { display: none; }
.st-uptime { margin-top: 14px; font-size: 16px; }
.st-uptime b { font-family: var(--mono); font-weight: 400; font-size: 15px; letter-spacing: 0; }
.st-note { color: var(--muted); }
.st-meta { margin-top: 6px; color: var(--muted); font-size: 12px; letter-spacing: 0.02em; overflow-wrap: anywhere; }

.st-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; color: var(--muted); }
.st-legend span { display: inline-flex; align-items: center; gap: 8px; }
.st-legend .st-bar { display: inline-block; width: 10px; height: 14px; flex: none; }

.st-incidents { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.st-inc { padding: 20px 28px; }
.st-inc + .st-inc { border-top: 1px solid var(--border); }
.st-inc-top { display: flex; align-items: center; gap: 12px; }
.st-inc-when { margin: 8px 0 4px; color: var(--text-2); }
.st-inc .small { color: var(--text-2); }
.st-empty { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px 28px; color: var(--text-2); }

.st-how .st-intro { margin-bottom: 28px; }
.st-defs { margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; max-width: 1100px; }
.st-defs dt { color: var(--text); font: 500 16px/1.4 var(--head); }
.st-defs dd { margin: 6px 0 0; font-size: 16px; }

@media (max-width: 760px) {
  .st-overall { font-size: 36px; gap: 14px; }
  .st-overall .st-dot { width: 12px; height: 12px; }
  .st-comp, .st-inc, .st-empty { padding: 20px 16px; }
  .st-top { gap: 12px; }
  .st-top h3 { font-size: 20px; }
  .st-bars { height: 28px; }
  /* 30 days on a phone: 90 bars would be under 2 px each. */
  .st-bars .st-bar:nth-child(-n+60) { display: none; }
  .st-axis .st-d90 { display: none; }
  .st-axis .st-d30 { display: inline; }
  .st-defs { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .st-top { flex-direction: column; }
  .st-state { margin-top: 0; }
}
