/* ==========================================================================
   Modern Service 상태 페이지 — 공통 테마(/static/css/style.css)에 더하는 부분만
   ========================================================================== */

/* ───────── 전체 상태 배너 ───────── */
.overall { display: flex; flex-direction: row; align-items: flex-start; gap: 18px; background: var(--raised); border-radius: var(--radius);
           padding: 24px 26px; box-shadow: var(--shadow); border-left: 6px solid var(--text-muted); margin-bottom: 26px; }
/* 제목·설명은 한 줄로 흐르게 (좁아지면 어절 단위로만 줄바꿈) */
.overall h1 { font-size: clamp(1.15rem, 2.6vw, 1.6rem); margin: 0 0 4px; word-break: keep-all; overflow-wrap: break-word; line-height: 1.35; }
.overall-when { margin: 0; word-break: keep-all; }
.overall-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
/* 버튼: 글귀 오른쪽 아래 */
.overall-action { align-self: flex-end; margin-top: 12px; }
.overall-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto;
                background: var(--button); color: var(--text-muted); }
.overall-icon .icon { width: 28px; height: 28px; }
.overall.ok { border-left-color: var(--brand); }
.overall.ok .overall-icon { background: var(--brand-soft); color: var(--brand); }
.overall.slow { border-left-color: var(--orange); }
.overall.slow .overall-icon { background: var(--orange-soft); color: var(--orange); }
.overall.down { border-left-color: var(--red); }
.overall.down .overall-icon { background: var(--red-soft); color: var(--red); }

/* ───────── 서비스 · 노드 줄 ───────── */
.srow { padding: 18px 22px; border-bottom: 1px solid var(--divider); }
.srow:last-child { border-bottom: 0; }
.srow-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.srow-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.srow-name .strong { color: var(--text-strong); font-weight: 800; }
.srow-name a { color: inherit; }
.srow-state { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.sdot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; background: var(--text-muted); }
.sdot.dot-ok { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.sdot.dot-slow { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.sdot.dot-down { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.sdot.dot-wait { background: var(--orange); opacity: .6; }
.sdot.dot-none { background: var(--divider); }

/* ───────── 가동률 막대 ───────── */
.ubar-wrap { margin-top: 14px; }
.ubar { display: flex; gap: 2px; height: 32px; align-items: stretch; }
.ubar i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--brand); transition: filter .15s; }
.ubar i:hover { filter: brightness(1.35); }
.ubar i.ok-min { background: color-mix(in srgb, var(--brand) 70%, var(--orange)); }
.ubar i.warn { background: var(--orange); }
.ubar i.bad { background: var(--red); }
.ubar i.none { background: var(--divider); }
.ubar-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: .78rem; color: var(--text-muted); }
.ubar-pct { font-weight: 700; color: var(--text); }

/* ───────── 노드 ───────── */
.node + .node { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--divider); }
.node-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-top: 14px; }
.nmeter-head { display: flex; justify-content: space-between; font-size: .84rem; color: var(--text-muted); margin-bottom: 6px; }
.nmeter-head b { color: var(--text-strong); }
.meter-track { height: 8px; border-radius: 999px; background: var(--button); overflow: hidden; }
.meter-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 60%, transparent)); }
.flag { font-size: 1.15rem; }

@media (max-width: 720px) {
  .overall { padding: 20px; gap: 14px; }
  .overall-icon { width: 44px; height: 44px; border-radius: 13px; }
  .overall-icon .icon { width: 24px; height: 24px; }
  .srow { padding: 16px; }
  .ubar { height: 26px; }
  .ubar i { min-width: 1px; }
}
