.st { min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--sans); }
.st-top { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.st-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1100px; height: 62px; margin: 0 auto; padding: 0 20px; }
.st-brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--sans); color: var(--ink); }
.st-brand em { margin-left: 2px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 500 12px/1 var(--sans); font-style: normal; }
.st-brand.small { font-size: 15px; }
.st-brand .mark { width: 26px; height: 26px; }
.st-nav { display: flex; align-items: center; gap: 6px; }
.st-nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; transition: color .2s var(--ease), background-color .2s var(--ease); }
.st-icon { display: grid; min-width: 34px; height: 34px; padding: 0 8px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font: 600 11.5px/1 var(--sans); cursor: pointer; }
.st-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
@media (hover: hover) { .st-nav a:hover { color: var(--ink); background: var(--surface-2); } }

.st-main { max-width: 1100px; margin: 0 auto; padding: 36px 20px 24px; }
.st-banner { --c: var(--muted); display: flex; align-items: center; gap: 12px; padding: 18px 22px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--ink); font: 600 18px/1.2 var(--sans); animation: st-in .5s var(--ease) both; }
.st-banner svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st-banner[data-state="ok"] { --c: var(--ok); }
.st-banner[data-state="partial"] { --c: #e3a21a; }
.st-banner[data-state="down"] { --c: var(--danger); }
@keyframes st-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.st-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 38px 0 14px; }
.st-head h1 { margin: 0; font: 700 24px/1.2 var(--display); letter-spacing: -.02em; }
.st-head p { margin: 0; color: var(--muted); font-size: 13px; }

.st-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.st-card { position: relative; padding: 18px 20px 16px; border-bottom: 1px solid var(--line); }
.st-card:nth-child(odd) { border-right: 1px solid var(--line); }
.st-card:nth-last-child(-n+2):nth-child(odd), .st-card:last-child { border-bottom: 0; }
.st-card:last-child:nth-child(odd) { border-right: 0; }
.st-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 15px/1.2 var(--sans); }
.st-tip { position: relative; display: inline-grid; width: 16px; height: 16px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 10px; cursor: help; }
.st-tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 3; width: max-content; max-width: 230px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--solid); color: var(--ink-2); font: 400 12px/1.4 var(--sans); opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s; }
.st-tip:hover::after, .st-tip:focus::after { opacity: 1; transform: translate(-50%, 0); }
.st-state { position: absolute; top: 16px; right: 18px; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--muted); }
.st-state svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.st-card[data-state="ok"] .st-state { background: var(--ok); }
.st-card[data-state="partial"] .st-state { background: #e3a21a; }
.st-card[data-state="down"] .st-state { background: var(--danger); }
.st-card[data-state="checking"] .st-state { background: transparent; border: 2px solid var(--line); border-top-color: var(--ink-2); animation: st-spin .8s linear infinite; }
.st-card[data-state="checking"] .st-state svg { display: none; }
@keyframes st-spin { to { transform: rotate(360deg); } }

.st-bars { display: flex; gap: 2px; height: 34px; }
.st-bars i { position: relative; flex: 1; min-width: 0; border-radius: 1.5px; background: color-mix(in srgb, var(--muted) 28%, transparent); }
.st-bars i[data-s="ok"] { background: var(--ok); opacity: .78; }
.st-bars i[data-s="partial"] { background: #e3a21a; opacity: .95; }
.st-bars i[data-s="down"] { background: var(--danger); opacity: .95; }
.st-bars i.live { outline: 1.5px solid var(--ink-2); outline-offset: 1px; }
@media (hover: hover) { .st-bars i:hover { opacity: 1; transform: scaleY(1.08); } }
.st-bars i::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 4; width: max-content; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--solid); color: var(--ink); font: 500 11.5px/1.3 var(--sans); white-space: pre; opacity: 0; pointer-events: none; transform: translate(-50%, 3px); transition: opacity .12s, transform .12s; }
.st-bars i:hover::after { opacity: 1; transform: translate(-50%, 0); }
.st-bars i:nth-child(-n+8)::after { left: 0; transform: translate(0, 3px); }
.st-bars i:nth-child(-n+8):hover::after { transform: none; }
.st-bars i:nth-last-child(-n+8)::after { left: auto; right: 0; transform: translate(0, 3px); }
.st-bars i:nth-last-child(-n+8):hover::after { transform: none; }
.st-scale { display: flex; align-items: center; gap: 12px; margin: 10px 0 8px; color: var(--muted); font-size: 12px; }
.st-scale hr { flex: 1; height: 1px; margin: 0; border: 0; background: var(--line); }
.st-scale b { color: var(--ink-2); font-weight: 500; }
.st-line { margin: 0; color: var(--muted); font-size: 12.5px; }

.st-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.st-foot p { margin: 0; max-width: 640px; line-height: 1.5; }
.st-foot a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.st-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 1100px; margin: 24px auto 0; padding: 22px 20px 36px; border-top: 1px solid var(--line); }
.st-bottom nav { display: flex; gap: 20px; }
.st-bottom nav a { color: var(--muted); font-size: 13px; }
@media (hover: hover) { .st-bottom nav a:hover { color: var(--ink); } }

@media (max-width: 760px) {
  .st-grid { grid-template-columns: 1fr; }
  .st-card:nth-child(odd) { border-right: 0; }
  .st-card:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .st-card:last-child { border-bottom: 0; }
  .st-nav a { display: none; }
  .st-bars { height: 28px; gap: 1px; }
  .st-banner { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .st-banner, .st-card[data-state="checking"] .st-state { animation: none; } }
