/* Status page (/status, /status/history, /status/incidents/{id}) and its super-admin screens (/admin/status…).
   Loaded after site.css on the public pages (warm editorial: Ledger headings, mk- tokens) and after app.css in the admin.
   Shared parts (uptime bars, colour key, tooltip, timeline) use the --st- tokens below; public-only rules sit under .mk,
   admin-only rules under .admin. States: ok (green), degraded (amber), partial (orange), major (red), maintenance (blue). */
:root {
  --st-ok: #2f9e6a; --st-ok-ink: #17744a; --st-ok-soft: #e5f5ec;
  --st-degraded: #e2a40c; --st-degraded-ink: #8a5a00; --st-degraded-soft: #fff4d6;
  --st-partial: #ea7b28; --st-partial-ink: #a4480b; --st-partial-soft: #fdeee2;
  --st-major: #d93d3d; --st-major-ink: #b42323; --st-major-soft: #fdeaea;
  --st-maint: #3f76d8; --st-maint-ink: #2556b0; --st-maint-soft: #e8effc;
  --st-none: #e6e1d8; --st-unknown-ink: #666; --st-unknown-soft: #f1eee8;
  --st-line: rgba(34, 34, 34, .1);
}
.admin { --st-none: #e3e6ee; --st-unknown-soft: #eef0f5; --st-line: var(--border); }

/* ── Uptime bars ───────────────────────────────────────────────────────────── */
.st-uptime { margin-top: 12px; }
.st-bars { display: flex; gap: 2px; height: 34px; padding: 2px 0; border-radius: 4px; outline-offset: 4px; cursor: default; }
.st-bar { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--st-none); transition: opacity 120ms ease, transform 120ms ease; }
.st-bar.lv-ok { background: var(--st-ok); }
.st-bar.lv-degraded { background: var(--st-degraded); }
.st-bar.lv-partial { background: var(--st-partial); }
.st-bar.lv-major { background: var(--st-major); }
.st-bar.lv-maintenance { background: var(--st-maint); }
.st-bars:hover .st-bar, .st-bars.is-nav .st-bar { opacity: .55; }
.st-bars .st-bar.is-cur { opacity: 1; transform: scaleY(1.08); }
.st-bars-scale { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--mk-muted, var(--muted)); white-space: nowrap; }
.st-bars-rule { flex: 1; height: 1px; background: var(--st-line); }
.st-bars-pct { font-weight: 500; color: var(--mk-ink-2, var(--ink-2)); }
.st-d30 { display: none; }
@media (max-width: 640px) {
  .st-bar.st-old { display: none; }
  .st-bars { gap: 3px; }
  .st-d90 { display: none; } .st-d30 { display: inline; }
}

/* Colour key */
.st-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--mk-muted, var(--muted)); }
.st-key li { display: inline-flex; align-items: center; gap: 7px; }
.st-key-sw { width: 10px; height: 10px; border-radius: 3px; background: var(--st-none); }
.st-key-sw.lv-ok { background: var(--st-ok); } .st-key-sw.lv-degraded { background: var(--st-degraded); } .st-key-sw.lv-partial { background: var(--st-partial); }
.st-key-sw.lv-major { background: var(--st-major); } .st-key-sw.lv-maintenance { background: var(--st-maint); }

/* Tooltip (one per page, positioned by status.js) */
.st-tip { position: absolute; z-index: 80; max-width: 260px; padding: 9px 12px; border-radius: 8px; background: #1f2b3f; color: #fff; font: 12.5px/1.5 var(--mk-font, var(--font)); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); pointer-events: none; white-space: pre-line; }
.st-tip strong { display: block; margin-bottom: 2px; font-weight: 600; }
.st-tip::after { content: ""; position: absolute; left: var(--st-tip-x, 50%); bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); }

/* Orb (big status mark) */
.st-orb { display: inline-grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: var(--st-ok); box-shadow: 0 0 0 8px var(--st-ok-soft); }
.st-orb-sm { width: 40px; height: 40px; box-shadow: 0 0 0 5px var(--st-ok-soft); }
.st-lv-maintenance .st-orb { background: var(--st-maint); box-shadow: 0 0 0 8px var(--st-maint-soft); }
.st-lv-degraded .st-orb { background: var(--st-degraded); box-shadow: 0 0 0 8px var(--st-degraded-soft); }
.st-lv-partial .st-orb { background: var(--st-partial); box-shadow: 0 0 0 8px var(--st-partial-soft); }
.st-lv-major .st-orb { background: var(--st-major); box-shadow: 0 0 0 8px var(--st-major-soft); }
.st-lv-maintenance .st-orb-sm, .st-lv-degraded .st-orb-sm, .st-lv-partial .st-orb-sm, .st-lv-major .st-orb-sm { box-shadow: 0 0 0 5px var(--st-unknown-soft); }

/* Timeline of updates */
.st-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.st-timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--st-line); }
.st-timeline > li { position: relative; display: flex; gap: 18px; padding-bottom: 22px; }
.st-timeline > li:last-child { padding-bottom: 0; }
.st-tl-dot { position: relative; z-index: 1; flex-shrink: 0; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: #fff; border: 3px solid var(--st-none); }
.st-timeline .st-is-investigating .st-tl-dot { border-color: var(--st-major); }
.st-timeline .st-is-identified .st-tl-dot { border-color: var(--st-partial); }
.st-timeline .st-is-monitoring .st-tl-dot, .st-timeline .st-is-scheduled .st-tl-dot, .st-timeline .st-is-in_progress .st-tl-dot { border-color: var(--st-maint); }
.st-timeline .st-is-resolved .st-tl-dot, .st-timeline .st-is-completed .st-tl-dot { border-color: var(--st-ok); }
.st-timeline .is-latest .st-tl-dot { background: currentColor; }
.st-timeline .is-latest.st-is-investigating { color: var(--st-major); } .st-timeline .is-latest.st-is-identified { color: var(--st-partial); }
.st-timeline .is-latest.st-is-monitoring, .st-timeline .is-latest.st-is-scheduled, .st-timeline .is-latest.st-is-in_progress { color: var(--st-maint); }
.st-timeline .is-latest.st-is-resolved, .st-timeline .is-latest.st-is-completed { color: var(--st-ok); }
.st-tl-body { flex: 1; min-width: 0; color: var(--mk-ink-2, var(--ink-2)); }
.st-tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 4px; }
.st-tl-head strong { color: var(--mk-ink, var(--ink)); font-weight: 600; }
.st-tl-head > span { font-size: 13.5px; color: var(--mk-muted, var(--muted)); }
.st-tl-text { margin: 0; overflow-wrap: anywhere; }

/* ── Public pages ──────────────────────────────────────────────────────────── */
.mk .st-wrap { max-width: 880px; }
.mk .st-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(28px, 4vw, 44px); background: linear-gradient(180deg, var(--mk-warm), #fff); }
.mk .st-hero-sub { padding-bottom: clamp(24px, 3vw, 36px); }
.mk .st-banner { display: flex; align-items: center; gap: 26px; margin-top: 6px; }
.mk .st-banner-text { min-width: 0; }
.mk .st-title { margin: 0; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; }
.mk .st-title-inc { margin-top: 14px; font-size: clamp(28px, 3.6vw, 40px); }
.mk .st-lead { margin: 10px 0 0; max-width: 60ch; font-size: clamp(16.5px, 1.3vw, 18px); color: var(--mk-muted); }
.mk .st-checked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 26px 0 0; font-size: 14px; color: var(--mk-muted); }
.mk .st-sep { color: var(--mk-faint); }
.mk .st-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--st-ok); }
.mk .st-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--st-ok); opacity: 0; animation: st-pulse 2.4s ease-out infinite; }
.mk .is-stale .st-pulse { background: var(--mk-faint); } .mk .is-stale .st-pulse::after { animation: none; }
@keyframes st-pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mk .st-pulse::after { animation: none; } }
.mk .st-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 14.5px; font-weight: 500; text-decoration: none; }
.mk .st-back:hover { text-decoration: underline; }

.mk .st-main { padding: 8px 0 clamp(64px, 8vw, 104px); }
.mk .st-block { margin-bottom: 36px; }
.mk .st-h2 { margin: 0 0 16px; font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -.5px; }
.mk .st-card { margin-bottom: 36px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--mk-line); border-radius: var(--mk-r-lg); background: #fff; box-shadow: var(--mk-shadow-card); }
.mk .st-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; margin-bottom: 4px; }
.mk .st-card-head .st-h2 { margin: 0; }
.mk .st-card-sub { margin: 0; font-size: 14px; color: var(--mk-muted); }
.mk .st-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }

/* Components */
.mk .st-comps { margin: 0 0 22px; padding: 0; list-style: none; }
.mk .st-comp { padding: 22px 0; border-bottom: 1px solid var(--mk-line); }
.mk .st-comp:last-child { border-bottom: 0; }
.mk .st-comp-top { display: flex; align-items: center; gap: 14px; }
.st-comp-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--mk-surface-3, var(--surface-3)); color: var(--mk-ink-2, var(--ink-2)); }
.st-comp-icon-sm { width: 30px; height: 30px; border-radius: 8px; }
.mk .st-comp-name { flex: 1; min-width: 0; }
.mk .st-comp-name h3 { margin: 0; font: 500 16.5px/1.35 var(--mk-font); letter-spacing: 0; color: var(--mk-ink); }
.mk .st-comp-name p { margin: 1px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--mk-muted); }
.mk .st-comp-detail { margin: 10px 0 0 52px; font-size: 14px; color: var(--mk-ink-2); }
.mk .st-comp .st-uptime { margin-left: 52px; }
.mk .st-pill { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 5px 12px 5px 9px; border-radius: var(--mk-pill); font-size: 13px; font-weight: 600; background: var(--st-unknown-soft); color: var(--st-unknown-ink); }
.mk .st-pill.st-s-ok { background: var(--st-ok-soft); color: var(--st-ok-ink); }
.mk .st-pill.st-s-degraded { background: var(--st-degraded-soft); color: var(--st-degraded-ink); }
.mk .st-pill.st-s-down { background: var(--st-major-soft); color: var(--st-major-ink); }
.mk .st-key { padding-top: 18px; border-top: 1px solid var(--mk-line); }

/* Incidents */
.mk .st-inc { position: relative; margin-bottom: 16px; padding: 22px 24px 22px 28px; border: 1px solid var(--mk-line); border-radius: var(--mk-r-lg); background: #fff; box-shadow: var(--mk-shadow-card); overflow: hidden; }
.mk .st-inc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--st-degraded); }
.mk .st-imp-major.st-inc::before { background: var(--st-partial); }
.mk .st-imp-critical.st-inc::before { background: var(--st-major); }
.mk .st-imp-maintenance.st-inc::before { background: var(--st-maint); }
.mk .st-inc.is-resolved::before { background: var(--st-ok); }
.mk .st-inc-compact { margin: 12px 0 0; padding: 16px 18px 16px 22px; box-shadow: none; background: var(--mk-surface-2); }
.mk .st-inc-compact::before { width: 4px; }
.st-inc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; background: var(--st-degraded-soft); color: var(--st-degraded-ink); }
.st-tag-major { background: var(--st-partial-soft); color: var(--st-partial-ink); }
.st-tag-critical { background: var(--st-major-soft); color: var(--st-major-ink); }
.st-tag-maintenance { background: var(--st-maint-soft); color: var(--st-maint-ink); }
.st-tag-draft { background: var(--st-unknown-soft); color: var(--st-unknown-ink); }
.st-inc-status { font-size: 13px; font-weight: 600; color: var(--mk-muted, var(--muted)); }
.st-inc-status.st-is-investigating { color: var(--st-major-ink); } .st-inc-status.st-is-identified { color: var(--st-partial-ink); }
.st-inc-status.st-is-monitoring, .st-inc-status.st-is-scheduled, .st-inc-status.st-is-in_progress { color: var(--st-maint-ink); }
.st-inc-status.st-is-resolved, .st-inc-status.st-is-completed { color: var(--st-ok-ink); }
.mk .st-inc-title { margin: 10px 0 6px; font-size: 21px; letter-spacing: -.4px; }
.mk .st-inc-compact .st-inc-title { margin-top: 8px; font-size: 18px; }
.mk .st-inc-title a { color: var(--mk-ink); text-decoration: none; }
.mk .st-inc-title a:hover { color: var(--mk-accent-ink); text-decoration: underline; }
.mk .st-inc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 13.5px; color: var(--mk-muted); }
.mk .st-inc-affects::before { content: "·"; margin-right: 8px; color: var(--mk-faint); }
.mk .st-updates { margin: 14px 0 0; padding: 0; list-style: none; }
.mk .st-updates li { padding: 12px 0 0; border-top: 1px solid var(--mk-line); }
.mk .st-updates li + li { margin-top: 12px; }
.mk .st-update-body { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.mk .st-update-body strong { color: var(--mk-ink); font-weight: 600; }
.mk .st-update-time { margin: 3px 0 0; font-size: 13px; color: var(--mk-muted); }
.mk .st-inc-more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 500; }

/* Past incidents and history */
.mk .st-day { padding: 18px 0; border-bottom: 1px solid var(--mk-line); }
.mk .st-day-title { margin: 0; font: 600 15px/1.4 var(--mk-font); letter-spacing: 0; color: var(--mk-ink); }
.mk .st-none { margin: 4px 0 0; font-size: 14.5px; color: var(--mk-muted); }
.mk .st-month { margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1px solid var(--mk-line); font-size: 22px; letter-spacing: -.4px; }
.mk .st-empty { text-align: center; padding-block: 48px; }
.mk .st-empty .st-h2 { margin: 16px 0 8px; }
.mk .st-empty p { margin: 0 auto 16px; max-width: 46ch; color: var(--mk-muted); }
.mk .st-empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--st-ok-soft); color: var(--st-ok-ink); }
.mk .st-pager { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 14px; color: var(--mk-muted); }

/* Incident page facts */
.mk .st-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 22px 0 0; }
.mk .st-facts dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mk-muted); }
.mk .st-facts dd { margin: 3px 0 0; font-size: 15.5px; color: var(--mk-ink); }
.mk .st-timeline-card .st-h2 { margin-bottom: 22px; }
.mk .st-after { margin: 0; }

/* Footer */
.mk .st-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: clamp(22px, 3vw, 30px); border-radius: var(--mk-r-lg); background: var(--mk-surface-2); }
.mk .st-foot-title { margin: 0 0 10px; font-size: 19px; letter-spacing: -.3px; }
.mk .st-foot p { margin: 0 0 14px; font-size: 14.5px; color: var(--mk-muted); }
.mk .st-foot-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mk .st-foot-links a { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; text-decoration: none; }
.mk .st-foot-links a:hover { text-decoration: underline; }
.mk .st-version { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--mk-faint); }

@media (max-width: 640px) {
  .mk .st-banner { gap: 18px; align-items: flex-start; }
  .mk .st-orb { width: 44px; height: 44px; box-shadow: 0 0 0 6px var(--st-ok-soft); }
  .mk .st-lv-maintenance .st-orb { box-shadow: 0 0 0 6px var(--st-maint-soft); } .mk .st-lv-degraded .st-orb { box-shadow: 0 0 0 6px var(--st-degraded-soft); }
  .mk .st-lv-partial .st-orb { box-shadow: 0 0 0 6px var(--st-partial-soft); } .mk .st-lv-major .st-orb { box-shadow: 0 0 0 6px var(--st-major-soft); }
  .mk .st-orb .icon { width: 22px; height: 22px; }
  .mk .st-card { padding: 18px 16px; border-radius: var(--mk-r); }
  .mk .st-comp-top { align-items: flex-start; flex-wrap: wrap; }
  .mk .st-comp-name { flex-basis: calc(100% - 52px); }
  .mk .st-pill { margin-left: 52px; }
  .mk .st-comp-detail, .mk .st-comp .st-uptime { margin-left: 0; }
  .mk .st-inc { padding: 18px 16px 18px 20px; }
  .mk .st-foot { grid-template-columns: minmax(0, 1fr); }
}

/* ── Admin screens ─────────────────────────────────────────────────────────── */
.admin .st-admin { display: grid; gap: 16px; }
.admin .st-admin > .stats { margin: 0; }
.admin .st-abanner { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.admin .st-abanner-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.admin .st-abanner-text { font-size: 13px; color: var(--muted); }
.admin .st-arows { display: grid; }
.admin .st-arow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--ink); text-decoration: none; }
.admin .st-arow:first-child { border-top: 0; }
.admin .st-arow:hover { background: var(--row-hover); text-decoration: none; }
.admin .st-arow-bar { align-self: stretch; width: 4px; border-radius: 4px; background: var(--st-degraded); }
.admin .st-imp-major .st-arow-bar { background: var(--st-partial); } .admin .st-imp-critical .st-arow-bar { background: var(--st-major); } .admin .st-imp-maintenance .st-arow-bar { background: var(--st-maint); }
.admin .st-arow-main { flex: 1; min-width: 0; display: grid; }
.admin .st-arow-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.admin .st-cname { display: inline-flex; align-items: center; gap: 10px; }
.admin .st-auptime { display: grid; gap: 18px; }
.admin .st-auptime-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: start; }
.admin .st-auptime-label { display: grid; padding-top: 6px; }
.admin .st-auptime .st-uptime { margin-top: 0; }
.admin .st-auptime .st-bars { height: 28px; }
.admin .st-auptime .st-key { padding-top: 14px; border-top: 1px solid var(--border); }
.admin .st-atabs { padding: 0 16px; }
.admin .st-atabs .tabs { margin: 0; }
.admin .st-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: var(--surface-3); }
.admin .st-seg a, .admin .st-seg label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 7px; color: var(--muted); font-weight: 500; text-decoration: none; cursor: pointer; }
.admin .st-seg a:hover, .admin .st-seg label:hover { color: var(--ink); text-decoration: none; }
.admin .st-seg a.is-on, .admin .st-seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.admin .st-seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.admin .st-seg-radio label:has(input:focus-visible) { box-shadow: var(--ring); }
.admin .st-anew { max-width: 760px; }
.admin .st-choices { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.admin .st-choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--r); cursor: pointer; }
.admin .st-choice:has(input:checked) { border-color: var(--primary); box-shadow: var(--ring); }
.admin .st-choice input { margin: 0; }
.admin .st-choice-bar { width: 4px; height: 22px; border-radius: 4px; background: var(--st-degraded); }
.admin .st-choice.st-imp-major .st-choice-bar { background: var(--st-partial); } .admin .st-choice.st-imp-critical .st-choice-bar { background: var(--st-major); }
.admin fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.admin fieldset.field > legend { padding: 0; margin-bottom: 6px; }
.admin .st-checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 16px; }
.admin .st-help-tight { margin-top: -6px; }
.admin .st-first { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.admin .st-first .form-section-title { margin: 0; }
.admin .st-ahead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin .st-more summary { cursor: pointer; color: var(--primary); font-size: 13px; font-weight: 500; }
.admin .st-more[open] summary { margin-bottom: 10px; }
.admin .st-timeline-admin .st-tl-head { align-items: center; }
.admin .st-tl-del { margin-left: auto; }
@media (max-width: 760px) {
  .admin .st-auptime-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .admin .st-auptime-label { grid-auto-flow: column; justify-content: space-between; padding-top: 0; }
  .admin .st-arow { flex-wrap: wrap; }
  .admin .st-arow-tags { justify-content: flex-start; }
  .admin .st-seg { display: flex; }
}
.admin .st-aempty { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.admin .st-aempty-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--st-ok-soft); color: var(--st-ok-ink); flex-shrink: 0; }
.admin .st-aempty-text { flex: 1 1 260px; display: grid; gap: 2px; }
.admin .st-aempty .btn-row { flex-wrap: wrap; }
.mk .st-pill.st-s-partial { background: var(--st-partial-soft); color: var(--st-partial-ink); }
.mk .st-pill.st-s-maintenance { background: var(--st-maint-soft); color: var(--st-maint-ink); }
.mk .st-comp-inc { margin-left: 4px; font-weight: 500; }
@media (max-width: 640px) {
  .mk .st-inc-meta .st-inc-affects { flex-basis: 100%; }
  .mk .st-inc-meta .st-inc-affects::before { content: none; }
}
.admin .st-anew .st-seg { justify-self: start; }
.admin .st-aback { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 13px; font-weight: 500; }
@media (max-width: 640px) {
  .admin .st-checks thead { display: none; }
  .admin .st-checks tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 12px 16px; border-top: 1px solid var(--border); }
  .admin .st-checks tbody tr:first-child { border-top: 0; }
  .admin .st-checks td { display: block; height: auto; padding: 0; border: 0; }
  .admin .st-checks td:nth-child(3) { grid-column: 1 / -1; padding-left: 40px; }
  .admin .st-arow { display: grid; grid-template-columns: 4px minmax(0, 1fr) 16px; grid-template-areas: "bar main chev" "bar tags chev"; gap: 6px 12px; }
  .admin .st-arow-bar { grid-area: bar; }
  .admin .st-arow-main { grid-area: main; }
  .admin .st-arow-tags { grid-area: tags; justify-content: flex-start; }
  .admin .st-arow > .icon { grid-area: chev; align-self: center; }
}
.admin .st-timeline-admin .st-tl-head { flex-wrap: nowrap; align-items: flex-start; }
.admin .st-timeline-admin .st-tl-head > .muted { flex: 1; min-width: 0; padding-top: 2px; }
.admin .st-timeline-admin .st-tl-head > .badge { flex-shrink: 0; }
@media (max-width: 640px) {
  .admin .st-seg-radio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin .st-seg-radio label { justify-content: center; }
}
