/* 稼働状況ページ。色/基本レイアウトは landing.css の変数を再利用。
   CSP style-src-elem 'self' のため外部 CSS に分離 (inline <style> 不可)。 */
.st-main { max-width: 860px; margin: 0 auto; padding: 32px 20px 72px; }
.st-title { font-size: clamp(26px, 4.5vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 20px; }

/* 総合ステータスバナー */
.st-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); margin-bottom: 22px;
}
.st-banner strong { font-size: 18px; display: block; }
.st-banner__sub { font-size: 13px; color: var(--muted); }
.st-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.st-banner--ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, var(--border)); }
.st-banner--ok .st-dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.st-banner--ok strong { color: var(--ok); }
.st-banner--warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, var(--border)); }
.st-banner--warn .st-dot { background: var(--warn); }
.st-banner--warn strong { color: var(--warn); }
.st-banner--down { background: var(--ng-bg); border-color: color-mix(in srgb, var(--ng) 30%, var(--border)); }
.st-banner--down .st-dot { background: var(--ng); }
.st-banner--down strong { color: var(--ng); }
.st-banner--loading .st-dot { opacity: 0.5; }

/* 稼働率カード */
.st-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.st-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.st-card__label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.st-card__value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* セクション */
.st-section { margin-bottom: 30px; }
.st-section h2 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.st-section__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.st-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.st-legend__item { display: inline-flex; align-items: center; gap: 4px; }
.st-sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.st-sw--up { background: var(--ok); }
.st-sw--deg { background: var(--warn); }
.st-sw--down { background: var(--ng); }
.st-sw--none { background: var(--border); }

/* 90 日バー */
.st-bars { display: flex; gap: 2px; align-items: stretch; height: 42px; }
.st-bars .st-bar { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--border); position: relative; }
.st-bars .st-bar--up { background: var(--ok); }
.st-bars .st-bar--deg { background: var(--warn); }
.st-bars .st-bar--down { background: var(--ng); }
.st-note { margin-top: 8px; font-size: 12.5px; }

/* インシデント */
.st-incidents { display: flex; flex-direction: column; gap: 8px; }
.st-inc { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-left: 4px solid var(--ng); border-radius: 10px; background: var(--surface); font-size: 14px; }
.st-inc__time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-inc__dur { font-weight: 600; color: var(--ng); white-space: nowrap; }
.st-none { padding: 16px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); text-align: center; }

.st-foot { margin-top: 36px; }

@media (max-width: 560px) {
  .st-cards { grid-template-columns: repeat(2, 1fr); }
  .st-bars { height: 34px; }
}
