/* Service status page */
.status-page { background: var(--bg-soft); padding-block: clamp(28px, 4vw, 52px) clamp(40px, 5vw, 72px); }
.st-groups { display: grid; gap: 18px; margin-top: 18px; }

.st-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 22px; border-radius: 14px; background: #e6f8ef; border: 1px solid #b6e8cd; color: #0b5d3b; }
.st-banner strong { font-size: 1.2rem; color: var(--ink); }
.st-banner-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #1fb26f; color: #fff; }
.st-banner-ic .ic { width: 20px; height: 20px; }
.st-banner-meta { margin-left: auto; font-size: .86rem; color: #4d6a5c; }
.st-banner .btn { padding: 8px 18px; font-size: .86rem; margin: 0; }
.st-banner.is-degraded { background: #fff6e2; border-color: #f3d58a; color: #7a5200; }
.st-banner.is-degraded .st-banner-ic { background: #f0a020; }
.st-banner.is-outage { background: #fdebe9; border-color: #f2b6b0; color: #8c2018; }
.st-banner.is-outage .st-banner-ic { background: #e5483b; }
.st-banner.is-maintenance { background: #e8f0ff; border-color: #bcd1fa; color: #1d3f8f; }
.st-banner.is-maintenance .st-banner-ic { background: #2f6bf0; }
.st-banner.is-unknown, .st-banner.is-loading { background: #f1f4f9; border-color: var(--line); color: var(--muted, #5b6b8c); }
.st-banner.is-unknown .st-banner-ic, .st-banner.is-loading .st-banner-ic { background: #9aa6bf; }

.st-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px clamp(18px, 2.4vw, 30px); }
.st-card h2 { font-size: 1.35rem; margin: 0 0 4px; }
.st-sub { margin: 0 0 14px; color: var(--muted, #5b6b8c); font-size: .92rem; }

.st-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(130px, .8fr) minmax(0, 3fr); gap: 18px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.st-name strong { display: block; font-size: 1.02rem; color: var(--ink); }
.st-code { font-weight: 500; color: var(--ink); }
.st-name small { display: block; margin-top: 3px; font-size: .84rem; color: var(--muted, #5b6b8c); }
.st-state { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .93rem; padding-top: 1px; }
.st-dot { display: inline-block; flex: none; width: 11px; height: 11px; border-radius: 50%; background: #9aa6bf; }
.st-dot.is-operational { background: #1fb26f; }
.st-dot.is-degraded { background: #f0a020; }
.st-dot.is-outage { background: #e5483b; }
.st-dot.is-maintenance { background: #2f6bf0; }

.st-hist { min-width: 0; }
.st-uptime { display: block; text-align: right; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.st-bars { display: flex; gap: 2px; height: 30px; }
.st-bar { flex: 1 1 0; min-width: 0; border-radius: 2px; background: #1fb26f; }
.st-bar.is-degraded { background: #f0a020; }
.st-bar.is-outage { background: #e5483b; }
.st-bar.is-maintenance { background: #2f6bf0; }
.st-bar.is-nodata { background: #dbe2ee; }
.st-bar:hover { filter: brightness(.88); }
.st-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: .76rem; color: var(--muted, #5b6b8c); }

.st-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin: 18px 0 22px; font-size: .84rem; color: var(--muted, #5b6b8c); }
.st-legend span { display: inline-flex; align-items: center; gap: 8px; }

.st-cols { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; align-items: start; }
.st-none { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; padding: 14px 16px; border-radius: 10px; background: var(--bg-soft); color: var(--muted, #5b6b8c); font-size: .92rem; }
.st-none .ic { flex: none; width: 20px; height: 20px; }
.st-inc { padding: 16px 0; border-top: 1px solid var(--line); }
.st-inc:first-of-type { border-top: 0; }
.st-inc-top { display: flex; align-items: flex-start; gap: 12px; }
.st-inc-mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; margin-top: 1px; }
.st-inc-mark.is-operational { background: #1fb26f; }
.st-inc-mark.is-degraded { background: #f0a020; }
.st-inc-mark .ic { width: 14px; height: 14px; }
.st-inc-top h3 { flex: 1; margin: 0; font-size: 1rem; line-height: 1.35; }
.st-inc-state { font-weight: 800; }
.st-inc-date { flex: none; font-size: .84rem; color: var(--muted, #5b6b8c); }
.st-inc-sum { margin: 6px 0 10px 36px; font-size: .92rem; color: var(--muted, #5b6b8c); }
.st-tl { display: flex; gap: 40px; margin: 0 0 0 36px; padding: 0; list-style: none; }
.st-tl li { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; font-size: .84rem; font-weight: 600; }
.st-tl li small { grid-column: 2; font-weight: 400; color: var(--muted, #5b6b8c); }
.st-empty { text-align: center; padding: 22px 12px 10px; color: var(--muted, #5b6b8c); }
.st-empty-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; color: var(--teal-700); }
.st-empty-ic .ic { width: 38px; height: 38px; }
.st-empty strong { display: block; color: var(--ink); font-size: 1rem; }
.st-empty p { margin: 4px 0 0; font-size: .9rem; }
.st-maint { padding: 14px 0; border-top: 1px solid var(--line); }
.st-maint h3 { margin: 0 0 4px; font-size: 1rem; }
.st-maint time, .st-maint p { display: block; margin: 0; font-size: .88rem; color: var(--muted, #5b6b8c); }
.st-note { margin: 22px 0 0; text-align: center; font-size: .84rem; color: var(--muted, #5b6b8c); }

@media (max-width: 900px) {
  .st-cols { grid-template-columns: 1fr; }
  .st-row { grid-template-columns: 1fr; gap: 10px; }
  .st-state { order: 0; }
  .st-uptime { text-align: left; }
  .st-banner-meta { margin-left: 0; width: 100%; }
  .st-tl { flex-wrap: wrap; gap: 18px 28px; }
}
.st-banner .btn-ghost-teal { margin: 0 0 0 4px; background: #fff; border: 1px solid var(--teal-500); color: var(--teal-700); font-weight: 600; border-radius: 10px; }
.st-banner .btn-ghost-teal:hover { background: var(--teal-500); color: #fff; }

/* day tooltip */
.st-bar { cursor: default; outline-offset: 2px; }
.st-bar.is-degraded, .st-bar.is-outage, .st-bar.is-maintenance { cursor: help; }
.st-tip { display: none; position: fixed; z-index: 90; max-width: 260px; padding: 10px 13px; border-radius: 10px; background: #0b1b3a; color: #fff; font-size: .82rem; line-height: 1.4; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55); pointer-events: none; }
.st-tip b { display: block; font-size: .84rem; margin-bottom: 4px; }
.st-tip-st { display: flex; align-items: center; gap: 7px; color: #dfe9ff; font-weight: 600; }
.st-tip-line { display: block; margin-top: 3px; color: #c3d0ea; }
.st-tip-note { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .15); color: #e8eefb; }

/* planned maintenance: the nearest one (running, or the next) sits above the banner */
.st-notices:empty { display: none; }
.st-notice { display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; margin-bottom: 16px; border-radius: 16px; border: 1px solid #c7dafb; background: linear-gradient(90deg, #eaf2ff, #f6f9ff); }
.st-notice.is-active { border-color: #7aa6f5; background: linear-gradient(90deg, #dcebff, #eef5ff); box-shadow: 0 12px 30px -18px rgba(37, 99, 235, .55); }
.st-notice-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #2563eb; color: #fff; }
.st-notice-ic .ic { width: 24px; height: 24px; }
.st-notice-tag { margin: 0 0 2px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1d4fd7; }
.st-notice h2 { margin: 0 0 4px; font-size: 1.2rem; color: #0b1b3a; }
.st-notice time, .st-maint time { font-weight: 600; color: #1f2f55; }
.st-in { color: #4a5a78; }
.st-notice p { margin: 6px 0 0; color: #3a4a68; }
.st-notice .st-affects, .st-maint .st-affects { font-size: .88rem; color: #4a5a78; }
.st-maint.is-active { border-left: 3px solid #2563eb; padding-left: 12px; }
.st-tl-msg { flex-basis: 100%; font-style: normal; color: #4a5a78; font-size: .86rem; }
@media (max-width: 600px) { .st-notice { flex-direction: column; padding: 16px; } }
