/* apicraft · status page. Layout follows the Studio Lite status page: hero state, grouped components,
   one uptime bar per day. Flat fills, no gradients, no glows. */
.st { padding: clamp(2rem, 6vw, 4rem) 0 clamp(2rem, 6vw, 4rem); }
.st-wrap { width: min(100% - 2 * var(--gutter), 46rem); }
.st-hero { display: grid; justify-items: center; gap: .6rem; margin-bottom: 2.25rem; text-align: center; }
.st-badge { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--s3); color: #fff; }
.st-badge svg { width: 26px; height: 26px; }
.st-badge.is-ok { background: var(--green); }
.st-badge.is-warn { background: #e8a21e; }
.st-badge.is-down { background: #dc2626; }
.st-h { margin: 0; font-size: clamp(1.7rem, 5vw, 2.4rem); letter-spacing: -.03em; line-height: 1.1; font-weight: 650; }
.st-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem .75rem; margin: 0; font-size: .92rem; color: var(--muted); }
.spin-light { border-color: rgba(13,13,18,.2); border-top-color: var(--ink); }

.st-groups { display: grid; gap: 1rem; }
.st-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.st-gh { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.st-gh > span:first-child { display: grid; line-height: 1.3; }
.st-gh h2 { margin: 0; font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; }
.st-gh small { font-size: .82rem; color: var(--muted); }
.st-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 8px; background: var(--s2); color: var(--muted); font-size: .78rem; font-weight: 650; white-space: nowrap; }
.st-pill.is-ok { background: #dcfce7; color: #166534; }
.st-pill.is-warn { background: #fef3c7; color: #78350f; }
.st-pill.is-down { background: #fee2e2; color: #991b1b; }
.st-item { padding: 1rem 1.15rem; }
.st-item + .st-item { border-top: 1px solid var(--line); }
.st-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .65rem; }
.st-name { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .55rem; min-width: 0; }
.st-name b { font-size: .95rem; }
.st-name small { grid-column: 2; font-size: .82rem; color: var(--muted); }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa4b2; }
.st-dot.is-ok { background: var(--green); }
.st-dot.is-warn { background: #e8a21e; }
.st-dot.is-down { background: #dc2626; }
.st-up { font-size: .85rem; font-weight: 650; color: #166534; white-space: nowrap; }
.st-bars { position: relative; display: flex; gap: 2px; height: 32px; }
.st-bars i { position: relative; flex: 1; min-width: 0; border-radius: 3px; background: var(--s3); outline-offset: 1px; }
.st-bars .b-ok, .st-legend .b-ok { background: #22a55a; }
.st-bars .b-warn, .st-legend .b-warn { background: #e8a21e; }
.st-bars .b-down, .st-legend .b-down { background: #dc2626; }
.st-legend .b-none { background: var(--s3); }
.st-bars i[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: 50%; bottom: 100%; z-index: 5; padding: .35rem .5rem; border-radius: 8px; background: var(--ink); color: #fff; font-size: .75rem; white-space: nowrap; transform: translate(-50%, -6px); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .st-bars i[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: 100%; z-index: 5; padding: .35rem .5rem; border-radius: 8px; background: var(--ink); color: #fff; font-size: .75rem; white-space: nowrap; transform: translate(-50%, -6px); pointer-events: none; }
}
@media (max-width: 520px) { .st-bars i:nth-child(-n+45) { display: none; } }
.st-scale { display: flex; justify-content: space-between; margin-top: .4rem; font-size: .72rem; color: var(--muted); }
.st-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.1rem; margin-top: 1.25rem; font-size: .8rem; color: var(--muted); }
.st-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.st-legend i { width: 12px; height: 12px; border-radius: 3px; }
.st-loading { margin: 0; padding: 1rem 1.15rem; font-size: .9rem; color: var(--muted); }

.st-incidents { margin-top: 2.25rem; }
.st-incidents h2 { margin: 0 0 .75rem; font-size: 1.15rem; letter-spacing: -.01em; }
.st-inc-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.st-inc { display: grid; gap: .15rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); font-size: .9rem; }
.st-inc b { font-weight: 650; }
.st-inc small { color: var(--muted); }
.st-inc.is-open { border-color: rgba(220,38,38,.35); }
.st-inc-empty { padding: .9rem 1rem; border-radius: var(--r-control); background: var(--s2); color: var(--muted); font-size: .9rem; }

.st-foot { margin-top: 2rem; padding: 1rem 1.15rem; border-radius: var(--r-card); background: var(--s2); font-size: .88rem; color: var(--ink-2); }
.st-foot p { margin: 0; }
