/* Status page components (umami-grade minimal). Tokens + reset come from theme.css.
   Load order: theme.css then status.css. Client accent_color overrides --accent inline. */

.sp { max-width: 680px; margin: 0 auto; padding: 56px 24px 80px; }

/* Header */
.sp-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.sp-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sp-logo { height: 32px; width: auto; border-radius: 7px; display: block; }
.sp-name { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--accent); }
.sp-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.sp-status .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sp-status--up { color: var(--up); } .sp-status--up .dot { background: var(--up); }
.sp-status--down { color: var(--down); } .sp-status--down .dot { background: var(--down); }
.sp-updated { font-size: 12.5px; color: var(--faint); margin: 0 0 44px; }

/* Monitors */
.sp-monitors { display: flex; flex-direction: column; gap: 26px; }
.sp-mon-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.sp-mon-name { font-size: 15px; font-weight: 500; }
.sp-mon-uptime { font-size: 13px; color: var(--muted); }
.sp-bars { display: flex; gap: 3px; height: 34px; }
.bar { flex: 1; min-width: 0; border-radius: 2px; background: var(--none); position: relative; }
.bar--up { background: var(--up); }
.bar--high { background: var(--high); }
.bar--warn { background: var(--warn); }
.bar--low { background: var(--low); }
.bar--down { background: var(--down); }
.bar--none { background: var(--none); }
.bar-tip { display: none; }
.bar-tooltip {
  position: fixed; z-index: 50; pointer-events: none;
  max-width: 260px; padding: 10px 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  font-family: var(--sans); font-size: 12px; line-height: 1.5;
}
.bar-tooltip[hidden] { display: none; }
.bar-tooltip .bar-tip-date { display: block; font-weight: 600; }
.bar-tooltip .bar-tip-up { display: block; color: var(--muted); }
.bar-tooltip .bar-tip-inc { display: block; margin-top: 6px; color: var(--down); }
.bar-tooltip .bar-tip-ok { display: block; margin-top: 4px; color: var(--up); }

/* Incidents */
.sp-incidents { margin-top: 48px; }
.sp-inc-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.sp-inc { display: flex; gap: 14px; padding-bottom: 22px; }
.sp-inc + .sp-inc { border-top: 1px solid var(--border); padding-top: 22px; }
.sp-inc-rail { width: 2px; background: var(--border); border-radius: 2px; flex: none; margin-top: 5px; }
.sp-inc-body { min-width: 0; flex: 1; }
.sp-inc-head { font-size: 14px; font-weight: 600; }
.sp-inc-head .meta { font-weight: 400; color: var(--faint); font-size: 13px; }
.sp-timeline { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.sp-entry { font-size: 13px; line-height: 1.5; }
.sp-entry .when { font-weight: 600; color: var(--ink); }
.sp-entry .src { color: var(--faint); font-size: 12px; }
.sp-entry .text { color: var(--muted); display: block; margin-top: 2px; }

/* Subscribe block */
.sp-subscribe { margin: 32px 0 8px; }
.sp-subscribe summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.sp-sub-body { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.sp-sub-form { display: flex; gap: 8px; }
.sp-sub-form input { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.sp-sub-form button { padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--ink); color: var(--bg); cursor: pointer; font: inherit; white-space: nowrap; }
.sp-sub-rss { font-size: 13px; color: var(--muted); }

/* Footer */
.sp-footer { margin-top: 56px; text-align: center; font-size: 12px; color: var(--faint); }
.sp-footer a { color: var(--muted); text-decoration: none; }
.sp-footer a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 480px) {
  .sp { padding: 36px 18px 60px; }
  .sp-header { flex-wrap: wrap; gap: 10px; }
  .sp-name { font-size: 27px; }
  .sp-updated { margin-bottom: 34px; }
}
