/* 나루 — 항구의 관제실. 안개 낀 회색 바탕에 남색 글자, 강조색은 바닷빛 하나. 그림자 대신 선으로 나눈다.
   테마: html[data-theme]가 있으면 그것, 없으면 시스템 설정. 어두운 값은 두 곳에 같이 적는다 (CSS만으로는 나눠 쓸 수 없다). */
/* 글꼴 — Pretendard 1.3.9 (SIL OFL 1.1, fonts/Pretendard-LICENSE.txt). Naru가 직접 내려준다 — 바깥 CDN을 쓰지 않는다. */
@font-face {
  font-family: "Pretendard Variable";
  src: url("/static/fonts/PretendardVariable.woff2") format("woff2-variations"), url("/static/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f5f6;
  --card: #ffffff;
  --soft: #ebeff1;
  --line: #d8dfe4;
  --line-2: #c3cdd4;
  --text: #142430;
  --text-2: #4f5f6b;
  --text-3: #6a7a86;
  --accent: #1d6f8e;
  --accent-2: #165a74;
  --accent-soft: #e2eff4;
  --ok: #2e7d53;
  --ok-soft: #e5f1ea;
  --warn: #9a5b14;
  --warn-soft: #f6ecdf;
  --bad: #c4352f;
  --bad-soft: #f8e6e5;
  --term: #0f1c25;
  --term-text: #d5e0e7;
  --harbor: #0e1e29;
  --harbor-text: #c9d5dd;
  --harbor-soft: #8fa3b1;
  --tide: #5bb3d0;
  --shadow: none;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c171f; --card: #13212b; --soft: #1a2a35; --line: #233541; --line-2: #304553;
    --text: #e6edf1; --text-2: #a9b8c3; --text-3: #8396a3;
    --accent: #5bb3d0; --accent-2: #7cc6de; --accent-soft: #15313d;
    --ok: #5cc28c; --ok-soft: #11281e; --warn: #e0a04a; --warn-soft: #2a2113; --bad: #f0706a; --bad-soft: #321919;
    --term: #08121a; --harbor: #08121a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c171f; --card: #13212b; --soft: #1a2a35; --line: #233541; --line-2: #304553;
  --text: #e6edf1; --text-2: #a9b8c3; --text-3: #8396a3;
  --accent: #5bb3d0; --accent-2: #7cc6de; --accent-soft: #15313d;
  --ok: #5cc28c; --ok-soft: #11281e; --warn: #e0a04a; --warn-soft: #2a2113; --bad: #f0706a; --bad-soft: #321919;
  --term: #08121a; --harbor: #08121a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
code, .mono { font-family: var(--mono); font-size: .9em; }
h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
h2 { margin: 0; font-size: 16px; font-weight: 600; }
.spacer { flex: 1; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }

/* 상단 */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; height: 62px; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #6d6de0, #9b8cf7); box-shadow: 0 4px 12px -4px rgba(91, 91, 214, .6); }
.menu { display: flex; gap: 4px; }
.menu a { padding: 7px 12px; border-radius: 9px; color: var(--text-2); font-weight: 500; }
.menu a:hover { color: var(--text); background: var(--soft); }
.menu a[aria-current="page"] { color: var(--text); background: var(--card); box-shadow: var(--shadow); }
.lang, .seg { display: inline-flex; background: var(--soft); border-radius: 9px; padding: 3px; }
.lang a, .seg a { padding: 4px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.seg a { padding: 7px 16px; font-size: 14px; }
.lang a[aria-current], .seg a[aria-current] { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

.page { max-width: 1240px; margin: 0 auto; padding: 24px 16px 96px; }
.narrow { max-width: 720px; }
.hero { margin: 12px 0 20px; }
.hero h1 { font-size: 28px; letter-spacing: -.03em; }
.hero p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* 버튼·입력 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); border-radius: 10px; padding: 9px 16px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--text-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.quiet:hover { background: var(--soft); color: var(--text); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.wide { width: 100%; padding: 11px 16px; }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 500; font-size: 14px; }
.field small { color: var(--text-3); font-size: 13px; }
.input { width: 100%; border: 1px solid var(--line-2); background: var(--card); border-radius: 11px; padding: 11px 14px; font-size: 15px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.row-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
/* Enter 키는 DOM에서 첫 번째 제출 버튼을 누른다 — 기본 동작을 앞에 두고, 보조 동작은 화면에서만 왼쪽으로 */
.row-actions .later { order: -1; margin-right: auto; }

/* 알림 */
.flash { margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; font-size: 14px; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.bad { background: var(--bad-soft); color: var(--bad); }
.flash.warn { background: var(--warn-soft); color: var(--warn); }
ul.plain { margin: 6px 0 0; padding-left: 18px; }
ul.plain li { margin: 2px 0; overflow-wrap: anywhere; }
.nginx { color: var(--text-3); font-family: var(--mono); font-size: 11.5px; margin-left: 4px; }
.pair { display: flex; gap: 8px; flex-wrap: wrap; }
.pair .input { flex: 1 1 180px; width: auto; }
pre.code.why { margin-top: -8px; }
.sub-heading { margin: 20px 0 6px; font-size: 14px; color: var(--text-2); }
.check { margin: 0; padding: 11px 14px; border-radius: 12px; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.check.ok { background: var(--ok-soft); color: var(--ok); }
.check.warn { background: var(--warn-soft); color: var(--warn); }
.check.bad { background: var(--bad-soft); color: var(--bad); }
.check span { color: var(--text-2); }
.notice { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.notice.warn { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent); }
.notice-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--warn); font-weight: 700; }
.notice-text { flex: 1; min-width: 200px; }
.notice-text b { display: block; }
.notice-text span { color: var(--text-2); font-size: 14px; }

/* 카드 */
.stack { display: flex; flex-direction: column; gap: 16px; }
.section { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); scroll-margin-top: 120px; }
.section > h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.section .desc { margin: 4px 0 0; color: var(--text-3); font-size: 13.5px; }
.section .seg { margin-top: 12px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 14px 0 0; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.empty { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line-2); border-radius: 18px; color: var(--text-2); }
.empty b { color: var(--text); font-size: 16px; }
.server { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 26px; padding: 16px 20px; border-radius: 16px; background: var(--soft); font-size: 13.5px; color: var(--text-2); }
.server b { color: var(--text); font-weight: 600; }
.server-title { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.meter { appearance: none; -webkit-appearance: none; width: 56px; height: 5px; border: 0; border-radius: 3px; background: var(--line-2); vertical-align: middle; margin-left: 8px; overflow: hidden; }
.meter::-webkit-progress-bar { background: var(--line-2); border-radius: 3px; }
.meter::-webkit-progress-value { background: var(--accent); border-radius: 3px; }
.meter::-moz-progress-bar { background: var(--accent); border-radius: 3px; }
.code { margin: 12px 0; background: var(--term); color: var(--term-text); border-radius: 12px; padding: 12px 14px; font-family: var(--mono); font-size: 13px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* 로그인 전 — 가운데 카드 */
body.center { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.card-wrap { width: 100%; max-width: 440px; }
.card-top { display: flex; align-items: center; margin-bottom: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.card .lede { margin: 0; color: var(--text-2); }
.steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps li { border-top: 3px solid var(--line); padding-top: 7px; font-size: 12.5px; color: var(--text-3); }
.steps li b { margin-right: 5px; }
.steps li.done { border-top-color: var(--accent); }
.steps li[aria-current] { border-top-color: var(--accent); color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
  .top-in { gap: 10px; height: 56px; }
  .logo .word { display: none; }
  .menu a { padding: 6px 9px; }
  .section { padding: 18px; }
  .card { padding: 22px; }
  .hero h1 { font-size: 25px; }
}

/* 서비스 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.svc { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: transform .18s ease; }
.svc:hover { transform: translateY(-2px); }
.svc-top { display: flex; align-items: center; gap: 12px; }
.svc-names { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.svc-names b { font-size: 16px; font-weight: 600; }
.svc-names small { color: var(--text-3); font-size: 12.5px; }
.svc-domain { color: var(--text-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-foot { display: flex; gap: 6px; font-size: 13px; color: var(--text-3); padding-top: 12px; border-top: 1px solid var(--line); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.state { font-weight: 500; color: var(--text-2); }
.state.ok { color: var(--ok); }
.state.warn { color: var(--warn); }
.state.bad { color: var(--bad); }
.avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px; flex: none; }
.avatar.big { width: 58px; height: 58px; border-radius: 16px; font-size: 24px; }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.dot.muted { background: var(--text-3); }
.notice.bad { background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 22%, transparent); }
.notice.bad .notice-icon { background: var(--bad); }
.notice .why { display: block; margin-top: 6px; font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }
.server.slim { margin-top: 10px; padding: 12px 20px; }

/* 서비스 상세 */
.back { display: inline-block; color: var(--text-3); font-size: 14px; margin: 6px 0 16px; }
.back:hover { color: var(--text); }
.detail-head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.detail-head h1 { margin: 0; }
.sub { display: flex; gap: 8px; flex-wrap: wrap; color: var(--text-2); font-size: 14.5px; }
.ext { color: var(--accent); font-weight: 500; }
.ext:hover { text-decoration: underline; }
.big-state { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin: 12px 0 0; }
.rows { list-style: none; margin: 12px 0 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.chip { padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.chip.on { background: var(--accent-soft); color: var(--accent); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.rows li.sub { border-top: 0; padding: 0 0 10px; margin-top: -6px; }
.cert-line { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--text-2); }

/* 서비스 색 — 이름마다 늘 같은 색 */
.c0 { background: linear-gradient(135deg, #7c66dc, #b29cff); }
.c1 { background: linear-gradient(135deg, #12a594, #62d5c6); }
.c2 { background: linear-gradient(135deg, #d6409f, #f38fd2); }
.c3 { background: linear-gradient(135deg, #0b8af0, #6cc4ff); }
.c4 { background: linear-gradient(135deg, #f76b15, #ffa057); }
.c5 { background: linear-gradient(135deg, #30a46c, #7ce2a8); }
.c6 { background: linear-gradient(135deg, #5a6372, #9aa4b3); }

/* M3 — 서비스 추가 · 배포 · 관리 */
.hero.row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.hero.row > div { flex: 1; min-width: 0; }
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-bottom: 20px; }
.kind { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); }
.kind:hover { border-color: var(--line-2); }
.kind.on { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.kind b { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.kind span { color: var(--text-3); font-size: 13.5px; }
.new-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 6px; }
.narrow-form { max-width: 720px; }
details.more { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
details.more > summary { cursor: pointer; padding: 12px 0; color: var(--text-2); font-weight: 500; }
details.more[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
details.more > .form { margin: 12px 0 16px; }
details.reveal > summary { cursor: pointer; color: var(--accent); }
details.reveal code { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--soft); color: var(--text-2); }
.pill.success { background: var(--ok-soft); color: var(--ok); }
.pill.failed { background: var(--bad-soft); color: var(--bad); }
.pill.running { background: var(--accent-soft); color: var(--accent); }
.head-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.detail-head { flex-wrap: wrap; }
.rows.deploys li { gap: 10px; }
.dep-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.dep-main:hover .dep-msg { text-decoration: underline; }
.dep-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.inline-form .input { flex: 1 1 220px; width: auto; }
.check-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.section.danger { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.code.log { max-height: 520px; overflow: auto; white-space: pre-wrap; font-size: 12.5px; line-height: 1.6; }
.progress { list-style: none; margin: 0; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.progress li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.progress .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); flex: none; }
.progress li.done .mark { background: var(--ok); }
.progress li.done .mark::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 700; }
.progress li.failed .mark { background: var(--bad); }
.progress li.failed .mark::after { content: "✕"; color: #fff; font-size: 12px; font-weight: 700; }
.progress li.doing .mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .progress li.doing .mark::after { animation: none; } }
.dep-main .muted, .dep-main code { white-space: nowrap; }
.top-in form .btn { white-space: nowrap; }
@media (max-width: 860px) {
  .top-in { gap: 12px; }
  .logo .word { display: none; }
}
/* 아주 좁은 화면: 언어 전환은 설정 화면에서 */
@media (max-width: 520px) {
  .top .lang { display: none; }
  .menu a { padding: 6px 8px; }
}

/* 로그 */
.code.logs { max-height: 70vh; font-size: 12.5px; line-height: 1.55; }
.code.logs .ts { color: var(--term-dim, #8a8f98); }
.code.logs .tag { display: inline-block; min-width: 2.6em; padding: 0 4px; border-radius: 4px; font-size: 11px; text-align: center; background: rgba(255,255,255,.08); }
.code.logs .tag.stderr { background: rgba(255,107,112,.22); }
.code.logs .tag.req { background: rgba(76,195,138,.18); }
.code.logs .st { font-weight: 600; }
.code.logs .st[class*="s4"], .code.logs .st[class*="s5"] { color: #ff6b70; }

/* 주의가 필요한 것 (M6-3) */
.attention { margin-bottom: 20px; }
.attention h2 { font-size: 15px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.attention .count { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--line); border-radius: 999px; padding: 1px 8px; }
.findings { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.finding { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); flex-wrap: wrap; }
.finding.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 22%, transparent); }
.finding.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 22%, transparent); }
.finding > .dot { flex: none; }
.finding-text { flex: 1; min-width: 200px; }
.finding-text b { display: block; font-size: 14px; }
.finding-text b a { color: inherit; }
.finding-text span { color: var(--text-2); font-size: 13px; }
.finding .why { display: block; margin-top: 6px; font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }
.allgood { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; margin: 0 0 20px; }

/* 서비스 CPU·메모리 (M6-4) */
.svc-usage { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.svc-usage b { color: var(--text-2); font-weight: 600; }

/* 이 서버의 다른 컨테이너 — 보기만 한다 */
.others { margin-top: 28px; }
.others-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.others-head h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.others-head .count { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--line); border-radius: 999px; padding: 1px 8px; }
.others-head .muted { font-size: 12.5px; }
.others-list { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.others-group { padding: 8px 16px; font-size: 12.5px; color: var(--text-2); background: var(--soft); border-top: 1px solid var(--line); }
.others-group:first-child { border-top: 0; }
.others-group b { color: var(--text); font-weight: 600; }
.other { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.other > .dot { flex: none; }
.other-text { flex: 1; min-width: 200px; }
.other-text b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.other-text span { color: var(--text-2); font-size: 12.5px; overflow-wrap: anywhere; }
.other-text em.warn { font-style: normal; color: var(--warn); }
.other.off .other-text b { color: var(--text-2); }
.other.off .other-text span { color: var(--text-3); }
.others-note { margin: 8px 2px 0; font-size: 12.5px; color: var(--text-3); }
.other-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 저장소로 옮기기 — 가져올 환경 변수 고르기, 주소 옮기기 */
fieldset.pick { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.pick legend { padding: 0; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 6px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.pick-list .check-label { overflow-wrap: anywhere; }
.pick-list .check-label.muted { color: var(--text-3); }
.takeover { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--soft); }
.takeover .check-label { color: var(--text); align-items: flex-start; }
.takeover small { color: var(--text-3); font-size: 13px; }

/* 로그 — 배포 고르기 · 찾기 */
.logs-find { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.logs-find .input { flex: 1; min-width: 180px; }
.logs-find select.input { flex: 0 1 auto; min-width: 200px; }

/* 서버 화면 — 그래프 (서버가 SVG로 그린다) */
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; margin-bottom: 8px; }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.chart-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.chart-now { display: block; font-size: 22px; font-weight: 600; margin: 2px 0 6px; }
.chart-now small { font-size: 13px; color: var(--text-3); font-weight: 400; }
svg.chart { display: block; width: 100%; height: 60px; }
svg.spark { width: 60px; height: 16px; vertical-align: middle; }
svg .ln { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ln.cpu { stroke: #378ADD; } .ln.mem { stroke: #1D9E75; } .ln.disk { stroke: #BA7517; } .ln.in { stroke: #888780; } .ln.out { stroke: #7F77DD; }
i.key { display: inline-block; width: 10px; height: 2px; vertical-align: middle; margin: 0 4px 0 8px; }
i.key.in { background: #888780; } i.key.out { background: #7F77DD; }
.svc-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 12px; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr); gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; align-items: center; }
.svc-row:first-child { border-top: 0; }
.svc-row.head { background: var(--soft); color: var(--text-2); font-size: 12.5px; }
.svc-row a { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.bad-text { color: var(--bad); }
.desc.small, .small { font-size: 12.5px; }

/* 빌드 방식 · Compose */
.method { display: grid; gap: 6px; margin: -8px 0 20px; }
.method-label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.method small { color: var(--text-3); font-size: 13px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.field-note { display: block; color: var(--text-3); font-size: 13px; margin-top: -6px; }
.target-form { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: 10px; }
.target-form select, .inline-form select { width: auto; min-width: 110px; padding-top: 4px; padding-bottom: 4px; }
input.port { width: 84px; }
.ok-text { color: var(--ok); }


/* ── 표 화면 (컨테이너 · 이미지 · 볼륨) — 넓은 화면, 표, 배지, 도구 막대 ───────── */
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 12px 0 20px; }
.page-head > div { flex: 1; min-width: 0; }
.page-head h1 { font-size: 28px; letter-spacing: -.03em; }
.page-head p { margin: 0; color: var(--text-2); font-size: 14.5px; }
svg.ic { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.ic { margin-left: -2px; }
.btn.tiny { padding: 4px 9px; font-size: 12px; border-radius: 8px; gap: 5px; }
.btn.tiny svg.ic { width: 13px; height: 13px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); transition: border-color .15s; }
a.tile:hover { border-color: var(--line-2); }
.tile span { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.tile b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile b small { font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.tile.bad b { color: var(--bad); }
.tile.warn b { color: var(--warn); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.toolbar .search { position: relative; flex: 0 1 260px; min-width: 180px; color: var(--text-3); }
.toolbar .search svg.ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); }
.toolbar .search .input { padding: 7px 12px 7px 32px; font-size: 13.5px; border-radius: 9px; }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
a.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); padding: 4px 11px; font-size: 12.5px; }
a.chip b { font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
a.chip:hover { border-color: var(--line-2); color: var(--text); }
a.chip.on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
a.chip.on b { color: var(--accent); }
.bulk { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.table-scroll { overflow-x: auto; }
table.dt { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; min-width: 760px; }
.dt col.c-check { width: 42px; } .dt col.c-state { width: 22%; } .dt col.c-usage { width: 15%; } .dt col.c-ports { width: 13%; } .dt col.c-link { width: 22%; }
.dt th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 9px 12px; background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.dt td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow: hidden; text-overflow: ellipsis; }
.dt tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.dt tbody:last-of-type tr:last-child td { border-bottom: 0; }
.dt tbody tr:not(.grp):hover td { background: color-mix(in srgb, var(--soft) 55%, transparent); }
.dt td.c-check { text-align: center; padding-right: 0; }
.dt input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; vertical-align: middle; }
.dt .lock { color: var(--text-3); display: inline-flex; }
.dt .lock svg.ic { width: 14px; height: 14px; }
.dt tr.grp td { background: color-mix(in srgb, var(--soft) 70%, var(--card)); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.dt tbody + tbody tr.grp td { border-top: 1px solid var(--line); }
.grp-in { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.grp-name { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.grp-name b { color: var(--text); font-weight: 600; }
.grp-name .muted { font-size: 12.5px; }
.grp-in > .muted { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.grp-actions { margin-left: auto; display: inline-flex; gap: 6px; flex-wrap: wrap; }
.dt td.name a { display: block; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt td.name a:hover { color: var(--accent); }
.dt td.name .img { display: block; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt tr.off td.name a { color: var(--text-2); }
.dt td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dt td.link { font-size: 13px; }
.dt td.link .domain { display: block; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-link { color: var(--accent); font-weight: 500; }
.tag-link:hover, .add-link:hover { text-decoration: underline; }
.add-link { color: var(--text-3); font-size: 12.5px; }
.warn-text { color: var(--warn); display: block; }
.empty-row { text-align: center; color: var(--text-3); padding: 36px 12px !important; }
.foot-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--text-3); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--soft); color: var(--text-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--accent-soft); color: var(--accent); }
.badge.muted { background: var(--soft); color: var(--text-3); }
.since { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 컨테이너 상세 */
.c-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; }
.c-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.c-icon svg.ic { width: 24px; height: 24px; }
.c-title { flex: 1; min-width: 0; }
.c-title h1 { font-family: var(--mono); font-size: 22px; letter-spacing: -.01em; margin: 0 0 4px; overflow-wrap: anywhere; }
.c-title .sub { align-items: center; font-size: 13.5px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-h h2 { font-size: 14.5px; }
.panel-h .spacer + * { margin-left: 0; }
.panel-b { padding: 14px 16px; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); margin: 0; font-size: 13.5px; }
.kv dt { color: var(--text-3); padding: 8px 0; border-top: 1px solid var(--line); }
.kv dd { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.kv dt:first-of-type, .kv dd:first-of-type { border-top: 0; }
.kv .mono { font-size: 12.5px; }
.env-names { display: flex; flex-wrap: wrap; gap: 5px; }
.env-names code { background: var(--soft); border-radius: 6px; padding: 1px 7px; font-size: 12px; }
.panel .code.logs { margin: 0; border-radius: 0; max-height: 60vh; }
.panel .logs-find { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.panel .logs-find .input { padding: 7px 12px; font-size: 13.5px; }
.danger-zone { margin-top: 16px; border: 1px solid color-mix(in srgb, var(--bad) 30%, var(--line)); border-radius: 16px; padding: 16px; background: var(--card); }
.danger-zone h2 { font-size: 14.5px; color: var(--bad); }
.danger-zone p { margin: 4px 0 0; color: var(--text-3); font-size: 13px; }

/* 이미지 · 볼륨 */
.dt.store col.c-size { width: 12%; } .dt.store col.c-age { width: 14%; } .dt.store col.c-use { width: 16%; } .dt.store col.c-del { width: 300px; }
.del-form { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.del-form .input { width: 150px; padding: 5px 9px; font-size: 12.5px; border-radius: 8px; font-family: var(--mono); }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 22px 2px 10px; }
.section-title .count { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--line); border-radius: 999px; padding: 1px 8px; }

@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 10px 12px; }
  .tile b { font-size: 20px; }
  .page-head h1 { font-size: 24px; }
  .toolbar .search { flex: 1 1 100%; }
  .bulk { width: 100%; }
}
.gap-top { margin-top: 16px; }

/* 탭 · 지우기 확인 · 네트워크 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; color: var(--text-3); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.dt col.c-what { width: 40%; } .dt col.c-net { width: 26%; } .dt col.c-driver { width: 16%; } .dt col.c-subnet { width: 16%; }
.dt td.what { font-size: 13px; color: var(--text-2); }
.confirm-box { display: grid; gap: 12px; padding: 16px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bad-soft) 35%, var(--card)); }
.confirm-box .check-label { align-items: flex-start; color: var(--text); }
.confirm-box .inline-form { margin-top: 2px; }
.confirm-input { flex: 0 1 160px !important; }
.tb-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; }
.tb-input { width: 200px; padding: 6px 10px; font-size: 13.5px; border-radius: 9px; }
select.tb-input { width: auto; min-width: 160px; }
.toolbar.attach { border-top: 1px solid var(--line); border-bottom: 0; }
.members { display: flex; flex-wrap: wrap; gap: 4px; }
.member { font-size: 11.5px; background: var(--soft); border-radius: 6px; padding: 1px 7px; color: var(--text-2); }
.member:hover { color: var(--accent); }
.lock-note { display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); font-size: 12px; }
.lock-note svg.ic { width: 13px; height: 13px; }
.panel-h h2 { display: inline-flex; align-items: center; gap: 6px; }

/* 홈 — 요약 타일 · 서비스 표 */
.tile .meter.wide { display: block; width: 100%; margin: 8px 0 0; height: 4px; }
.dt.svc-dt { min-width: 680px; }
.dt.svc-dt col.c-domain { width: 28%; } .dt.svc-dt col.c-state { width: 20%; } .dt.svc-dt col.c-usage { width: 16%; } .dt.svc-dt col.c-go { width: 56px; }
.svc-cell a { display: flex; align-items: center; gap: 10px; min-width: 0; }
.svc-cell a span:last-child { display: flex; flex-direction: column; min-width: 0; }
.svc-cell b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-cell small { color: var(--text-3); font-size: 12px; }
.svc-cell a:hover b { color: var(--accent); }
.avatar.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
.dt td.go { text-align: right; }
.home-foot { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--soft); font-size: 13px; }
.foot-item { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.foot-item b { color: var(--text); font-weight: 600; }
a.foot-item:hover .tag-link { text-decoration: underline; }

/* 서비스 상세 — 머리 · 고정 탭 */
.svc-title .sub { gap: 10px; }
.tabs.sticky { position: sticky; top: 62px; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin: 0 0 16px; }
.tabs.sticky a { font-size: 13.5px; padding: 8px 12px; }
@media (max-width: 640px) { .tabs.sticky { top: 56px; } }

/* 새 서비스 · 로그 · 배포 진행 */
.kinds { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.kind { position: relative; padding: 16px 18px 16px 62px; min-height: 84px; justify-content: center; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.kind-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--text-2); }
.kind-icon svg.ic { width: 18px; height: 18px; }
.kind.on .kind-icon { background: var(--accent-soft); color: var(--accent); }
.kind.on::after { content: ""; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.method { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin: -6px 0 18px; }
.new-form { max-width: 820px; }
.toolbar .search.grow { flex: 1 1 240px; }
.panel .code.logs, .panel .code.log { margin: 0; border-radius: 0; }
.panel .empty-row { margin: 0; padding: 40px 16px; text-align: center; color: var(--text-3); }
.deploy-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.deploy-side { display: grid; gap: 12px; position: sticky; top: 80px; }
.btn.wide { width: 100%; }
.code.deploy-log { max-height: 75vh; overflow: auto; }
@media (max-width: 900px) { .deploy-grid { grid-template-columns: 1fr; } .deploy-side { position: static; } }
.kinds, .method { max-width: 820px; }

/* ══ 나루 디자인 — 사이드바 · 선으로 나눈 면 · 점 배지 ══════════════════════════ */
body { font-size: 14.5px; }
h1, .page-head h1, .hero h1 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.wordmark { display: inline-flex; flex-direction: column; gap: 4px; color: inherit; }
.wm-name { font-size: 22px; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
svg.tide { width: 46px; height: 6px; fill: none; stroke: var(--tide); stroke-width: 1.6; stroke-linecap: round; }

body.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--harbor); color: var(--harbor-text); display: flex; flex-direction: column; padding: 20px 12px 14px; }
.side-home { padding: 0 10px 20px; color: #fff; }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--harbor-text); font-size: 14px; font-weight: 500; }
.side-nav a svg.ic { width: 16px; height: 16px; opacity: .75; }
.side-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side-nav a[aria-current] { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 2px 0 0 var(--tide); }
.side-nav a[aria-current] svg.ic { opacity: 1; color: var(--tide); }
.alerts { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; color: #fff; background: #c4352f; border-radius: 5px; padding: 0 6px; font-variant-numeric: tabular-nums; }
.side-group { font-size: 11.5px; color: var(--harbor-soft); padding: 18px 10px 4px; }
.side-foot { margin-top: auto; display: grid; gap: 8px; padding: 14px 4px 0; }
.side .lang { display: flex; background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 2px; }
.side .lang a { flex: 1; text-align: center; color: var(--harbor-soft); border-radius: 5px; font-size: 12px; padding: 4px 6px; }
.side .lang a:hover { color: #fff; }
.side .lang a[aria-current] { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.side-me { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding: 10px 6px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.me-name { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-out { background: none; border: 0; color: var(--harbor-soft); font-size: 12.5px; padding: 4px 6px; border-radius: 5px; }
.me-out:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.page { max-width: 1180px; margin: 0; padding: 30px 40px 96px; }
.nav-open { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mtop, .side-scrim { display: none; }
@media (max-width: 900px) {
  body.shell { display: block; }
  .mtop { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; background: var(--harbor); color: #fff; padding: 10px 16px; }
  .mtop .wm-name { font-size: 19px; }
  .mtop-menu { display: inline-flex; padding: 6px; border-radius: 6px; cursor: pointer; color: #fff; }
  .mtop-menu svg.ic { width: 22px; height: 22px; }
  .nav-open:focus-visible ~ .mtop .mtop-menu { outline: 2px solid var(--tide); outline-offset: 2px; }
  .side { position: fixed; top: 0; bottom: 0; left: 0; width: 264px; height: auto; z-index: 30; transform: translateX(-100%); transition: transform .2s ease; }
  .nav-open:checked ~ .side { transform: none; }
  .nav-open:checked ~ .side-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(4, 10, 15, .55); }
  .page { padding: 20px 16px 80px; }
  .tabs.sticky { top: 52px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* 면 — 그림자 없이 선으로. 모서리는 쓰임에 따라 (조작 6px, 면 10px) */
.section, .panel, .chart-card, .finding, .kind, .svc, .card, .progress, .empty, .danger-zone, .others-list, .pick-list, details.more { box-shadow: none; border-radius: 10px; }
.section { padding: 18px 20px; }
.btn { border-radius: 6px; font-weight: 600; }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--card); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.input { border-radius: 6px; }
.input:focus { box-shadow: 0 0 0 3px var(--accent-soft); }
a.chip, .chip { border-radius: 6px; }
.lang, .seg { border-radius: 7px; }
.lang a, .seg a { border-radius: 5px; }
.menu a[aria-current="page"], .lang a[aria-current], .seg a[aria-current] { box-shadow: none; border: 1px solid var(--line); }
.tabs a[aria-current] { border-bottom-color: var(--text); }

/* 요약 — 카드 여러 장 대신 한 줄 계기판 */
.tiles { gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.tile { border: 0; border-radius: 0; box-shadow: -1px -1px 0 0 var(--line); background: transparent; padding: 12px 16px; }
a.tile:hover { background: var(--soft); }
.tile span { font-size: 12px; }
.tile b { font-size: 22px; font-weight: 650; }

/* 상태 — 바탕색 칠한 알약 대신 점과 글자 */
.badge { background: none !important; padding: 0; gap: 7px; font-size: 13px; }
.badge::before { width: 7px; height: 7px; }
.badge.muted { color: var(--text-3); }
.pill { border-radius: 5px; }

/* 표 — 머리는 칠하지 않고 선 하나 */
.dt th { background: none; color: var(--text-3); font-weight: 500; border-bottom: 1px solid var(--line); }
.dt tr.grp td { background: var(--soft); }
.dt tbody tr:not(.grp):hover td { background: color-mix(in srgb, var(--soft) 60%, transparent); }

/* 알림 — 왼쪽 상태 막대 */
.finding, .finding.bad, .finding.warn { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--line-2); }
.finding.bad { border-left-color: var(--bad); }
.finding.warn { border-left-color: var(--warn); }
.finding > .dot { display: none; }
.notice, .notice.warn, .notice.bad { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 10px; }
.notice.bad { border-left-color: var(--bad); }
.notice-icon { background: var(--warn-soft); color: var(--warn); border-radius: 8px; }
.notice.bad .notice-icon { background: var(--bad-soft); color: var(--bad); }
.flash { border-radius: 8px; border: 1px solid transparent; }
.flash.ok { background: var(--ok-soft); color: var(--text); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.flash.bad { background: var(--bad-soft); color: var(--text); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.flash.warn { background: var(--warn-soft); color: var(--text); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.home-foot { background: none; border: 1px solid var(--line); border-radius: 10px; }

/* 이름 머리글자 — 그라데이션 대신 차분한 단색 */
.c0 { background: #3d5a80; } .c1 { background: #2a7f7a; } .c2 { background: #8a4f6b; } .c3 { background: #1d6f8e; }
.c4 { background: #9a6a2f; } .c5 { background: #3f7a4f; } .c6 { background: #5b6672; }
.avatar { border-radius: 8px; font-weight: 700; }
.avatar.big { border-radius: 12px; }

/* 로그인 전 화면 */
body.center { background: var(--bg); }
.card-top .wordmark { color: var(--text); }
.card { border-radius: 12px; }
.lang a, .seg a { border: 1px solid transparent; }
.side .lang a[aria-current] { border-color: transparent; }
