/* 유틸리티 — 인라인 style 속성이 CSP로 막혀 있어 클래스로 제공한다 */
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; } .mb20 { margin-bottom: 20px; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mt32 { margin-top: 32px; } .mt48 { margin-top: 48px; }
.fs12 { font-size: 12px; } .fs13 { font-size: 13px; } .fs14 { font-size: 14px; } .fs13n { font-size: 13px; font-weight: 400; }
.rowsp { justify-content: space-between; margin-bottom: 16px; }
.fl140 { flex: 1; min-width: 140px; } .fl160 { flex: 1; min-width: 160px; }
.w130 { width: 130px; }
.mw260 { max-width: 260px; }
.selectall { user-select: all; }
.hint13 { font-size: 13px; margin: 4px 0 12px; }
.ul-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
input.in-sm { width: 140px; padding: 5px 8px; font-size: 13px; }
.card > p.mb16 { margin-bottom: 16px; }

/* 포트 선택 / 포트별 카드 */
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); margin: 0; cursor: pointer; font-weight: 400; }
.chk input { accent-color: var(--primary); width: 15px; height: 15px; margin: 0; }
.appr { display: grid; gap: 8px; justify-items: end; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.svc { position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 10px; align-content: start; transition: border-color .2s, background .2s; }
.svc:hover { border-color: var(--hairline-strong); background: var(--surface-elevated); }
.svc-hd { display: flex; align-items: center; gap: 12px; }
.svc-t { display: grid; line-height: 1.3; }
.svc-t b { font-size: 15px; font-weight: 500; color: #fff; }
.svc-ft { display: flex; justify-content: space-between; align-items: center; }
.svc .switch { justify-self: start; }
.inline .switch { margin-left: 4px; }

/* 상태 띠 = command palette 카드 */
.strip { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-xl); border: 1px solid var(--hairline); margin-bottom: var(--s-md); background: var(--surface); }
.strip.ok { border-color: rgba(89, 212, 153, .3); }
.strip.warn { border-color: rgba(255, 197, 51, .3); }
.strip.bad { border-color: var(--bad-line); }
.strip b { font-size: 16px; font-weight: 500; color: #fff; }

/* 막대그래프 */
.chart svg { width: 100%; height: 150px; display: block; }
.chart .bar { fill: url(#barg); }
.chart .bar.zero { fill: var(--hairline); }
.chart g:hover .bar { filter: brightness(1.3); }
.chart .g-a { stop-color: var(--stripe-a); }
.chart .g-b { stop-color: var(--stripe-b); }
.chart-ax { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--mute); }
.chart-ax span:nth-child(2) { color: var(--body); }
a.stat { transition: border-color .2s, background .2s; }
a.stat:hover { border-color: var(--hairline-strong); background: var(--surface-elevated); opacity: 1; }
.svc-ft { display: flex; justify-content: space-between; align-items: center; }
.svc .switch { justify-self: start; }
.inline .switch { margin-left: 4px; }

/* 숫자 카드를 링크로 쓸 때 */
a.stat { color: inherit; }
a.stat:hover { color: inherit; }
.wht { color: #fff; font-weight: 500; }
.card.feature { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .g5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
input.in-search { width: 220px; height: 30px; font-size: 13px; }
.btn .cnt { font-size: 11.5px; opacity: .7; margin-left: 2px; }
.vd { margin: 2px 0; }
