:root {
  --navy-50: #eef2f7; --navy-100: #dce4ee; --navy-200: #b9c8dc; --navy-300: #8ea5c2;
  --navy-600: #1d3557; --navy-700: #162a45; --navy-800: #112136;
  --bg: #f4f5f7; --panel: #fff; --fg: #1f2937; --strong: #0f172a; --muted: #667085; --sub: #475467;
  --line: #d0d5dd; --line-soft: #e4e7ec; --head: #f2f4f7; --hover: #f7f9fc;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 14px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.5 "Pretendard Variable", "Pretendard", "Malgun Gothic", "맑은 고딕", sans-serif; }
a { color: #1d4f91; text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: ui-monospace, Consolas, "D2Coding", monospace; font-size: 12px; }
td, time, .num { font-variant-numeric: tabular-nums; }

.topbar { position: sticky; top: 0; z-index: 30; background: var(--navy-600); color: #fff; }
.topbar .in { max-width: 1400px; margin: 0 auto; padding: 0 12px; display: flex; align-items: center; height: 40px; }
.brand { display: flex; align-items: center; gap: 8px; margin-right: 20px; white-space: nowrap; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { height: 18px; display: block; }
.brand span { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.menu { display: flex; overflow-x: auto; }
.menu a { display: flex; align-items: center; height: 40px; padding: 0 12px; color: var(--navy-100); white-space: nowrap; font-size: 14px; }
.menu a:hover { background: var(--navy-700); color: #fff; text-decoration: none; }
.menu a.on { background: var(--navy-800); color: #fff; font-weight: 600; }
.menu .badge { margin-left: 5px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #d92d20; color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
.menu .sep { width: 1px; background: var(--navy-700); margin: 10px 6px; }
.me { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--navy-100); white-space: nowrap; font-size: 13px; }
.me form { margin: 0; }
.me button { height: 26px; padding: 0 8px; background: transparent; border: 1px solid var(--navy-300); color: var(--navy-100); font-size: 12px; }
.me button:hover { background: var(--navy-700); color: #fff; }
.notice-bar { background: #fdf3e1; color: #8a5300; border-bottom: 1px solid #ecd09a; font-size: 12px; text-align: center; padding: 4px 12px; }

.page { max-width: 1400px; margin: 0 auto; padding: 16px 16px 80px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; margin-bottom: 12px; flex-wrap: wrap; }
.head > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; min-width: 0; }
.head h1 { font-size: 17px; font-weight: 700; line-height: 32px; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.head .sub { font-size: 13px; color: var(--muted); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.cols.half { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .cols, .cols.half { grid-template-columns: minmax(0, 1fr); } }

.box { background: var(--panel); border: 1px solid var(--line); margin-bottom: 16px; }
.box > h2 { margin: 0; height: 36px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--head); border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: #1d2939; }
.box > h2 .count { color: var(--muted); font-weight: 500; font-size: 12px; }
.box > .body { padding: 12px; }
.box > .empty { padding: 16px 12px; color: var(--muted); font-size: 13px; }
.box > .foot { padding: 8px 12px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { height: 32px; padding: 0 10px; text-align: left; white-space: nowrap; background: var(--head); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--sub); }
td { height: 36px; padding: 4px 10px; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
tr:last-child td { border-bottom: 0; }
tr.link-row:hover td { background: var(--hover); }
tr.row-warn > td:first-child { box-shadow: inset 3px 0 0 #d92d20; }
td.num, th.num { text-align: right; }
.nowrap { white-space: nowrap; }
td.act { text-align: right; white-space: nowrap; }
td.act > * + * { margin-left: 4px; }
.dim { color: var(--muted); }
.small { font-size: 12px; }
.table-wrap { overflow-x: auto; }

dl.kv { display: grid; grid-template-columns: 112px minmax(0, 1fr); margin: 0; font-size: 13px; }
dl.kv dt, dl.kv dd { margin: 0; padding: 7px 12px; border-bottom: 1px solid var(--line-soft); }
dl.kv dt { color: var(--sub); background: #fafbfc; border-right: 1px solid var(--line-soft); }
dl.kv dd { overflow-wrap: anywhere; }
dl.kv > :nth-last-child(-n+2) { border-bottom: 0; }

.tag { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; padding: 0 6px; border: 1px solid; border-radius: 2px; font-size: 12px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.t-mute { background: #eef0f3; color: #344054; border-color: #d0d5dd; }
.t-info { background: #e8f0fb; color: #1d4f91; border-color: #b7cdea; }
.t-ok { background: #e7f4ec; color: #1e6b3a; border-color: #b5dcc2; }
.t-bad { background: #fbeaea; color: #a4262c; border-color: #eab8b8; }
.t-warn { background: #fdf3e1; color: #8a5300; border-color: #ecd09a; }
.t-wait { background: var(--navy-50); color: var(--navy-700); border-color: var(--navy-200); }

.callout { border: 1px solid; padding: 8px 12px; margin-bottom: 12px; font-size: 13px; }
.callout.ok { background: #e7f4ec; color: #1e6b3a; border-color: #b5dcc2; }
.callout.warn { background: #fdf3e1; color: #8a5300; border-color: #ecd09a; }
.callout.bad { background: #fdf2f2; color: #9b1c1c; border-color: #f0b4b4; }
.callout.info { background: #e8f0fb; color: #1d4f91; border-color: #b7cdea; }
.callout.mute { background: #eef0f3; color: #344054; border-color: #d0d5dd; }
.callout.wait { background: var(--navy-50); color: var(--navy-700); border-color: var(--navy-200); }
.callout a { font-weight: 600; }
.error { background: #fdf2f2; color: #9b1c1c; border: 1px solid #f0b4b4; padding: 6px 10px; margin-bottom: 12px; font-size: 13px; white-space: pre-line; }

.steps { display: flex; margin: 0 0 12px; padding: 0; list-style: none; border: 1px solid var(--line); background: var(--panel); }
.steps li { flex: 1; height: 34px; display: flex; align-items: center; justify-content: center; gap: 4px; color: #98a2b3; font-size: 13px; border-right: 1px solid var(--line-soft); }
.steps li:last-child { border-right: 0; }
.steps li.done { color: #1e6b3a; }
.steps li.done::before { content: "✓"; }
.steps li.now { color: #fff; background: var(--navy-600); font-weight: 600; }
.steps li.stop { color: #8a5300; background: #fdf3e1; font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { display: flex; flex-direction: column; justify-content: center; height: 72px; padding: 0 16px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); }
.tile:hover { background: var(--hover); text-decoration: none; }
.tile .l { order: 1; font-size: 13px; color: var(--sub); }
.tile .n { order: 2; font-size: 22px; font-weight: 700; line-height: 28px; color: var(--strong); font-variant-numeric: tabular-nums; }
.tile.hot { border-color: #f0a9a4; box-shadow: inset 3px 0 0 #d92d20; }
.tile.hot .l { color: #b42318; font-weight: 600; }
.tile.hot .n { color: #b42318; }

.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--navy-600); border-radius: 2px; background: var(--navy-600); color: #fff; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; user-select: none; }
.btn:hover, button:hover { background: var(--navy-700); border-color: var(--navy-700); text-decoration: none; }
.btn.line, button.line { background: #fff; color: #1f2937; border-color: var(--line); }
.btn.line:hover, button.line:hover { background: #f8fafc; }
.btn.danger, button.danger { background: #fff; color: #b91c1c; border-color: #fca5a5; }
.btn.danger:hover, button.danger:hover { background: #fef2f2; }
.btn.ok, button.ok { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.btn.sm, button.sm { height: 28px; padding: 0 8px; }
button:focus-visible, .btn:focus-visible { outline: 2px solid var(--navy-300); outline-offset: 1px; }

form.inline { display: inline; margin: 0; }
.form { max-width: 760px; }
.field { margin-bottom: 12px; }
.field > label, .label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; line-height: 16px; color: #344054; }
.field .hint { margin-top: 2px; font-size: 12px; color: var(--muted); }
.field .req { color: #dc2626; margin-left: 2px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  display: block; width: 100%; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 2px;
  background: #fff; color: var(--strong); font: inherit; font-size: 13px;
}
input::placeholder, textarea::placeholder { color: #98a2b3; }
textarea { height: auto; min-height: 80px; padding: 6px 8px; line-height: 1.5; resize: vertical; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 1px var(--navy-600); }
input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--navy-600); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.checks label { display: flex; gap: 8px; align-items: center; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; }
.checks label:has(input:checked) { border-color: var(--navy-600); background: var(--navy-50); }
.actions { display: flex; gap: 8px; align-items: center; padding-top: 4px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input[type=text] { flex: 1; min-width: 0; }

.choose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .choose { grid-template-columns: minmax(0, 1fr); } }
.choose h3 { margin: 0 0 6px; height: 24px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: #1d2939; }
.choose .group { background: #fff; border: 1px solid var(--line); }
.choose a.opt { display: block; padding: 10px 12px; color: var(--fg); border-bottom: 1px solid var(--line-soft); }
.choose a.opt:last-child { border-bottom: 0; }
.choose a.opt:hover { background: var(--hover); text-decoration: none; }
.choose a.opt strong { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; color: var(--strong); }
.choose a.opt .desc { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.timeline li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--line-soft); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.timeline .who { color: var(--muted); font-size: 12px; }

.target-form { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.target-form input[type=text] { flex: 1; min-width: 200px; height: 28px; }

pre { position: relative; margin: 4px 0 10px; padding: 8px 10px; background: #f8fafc; border: 1px solid var(--line); overflow-x: auto; font: 12px/1.6 ui-monospace, Consolas, monospace; }
pre.copyable { padding-right: 64px; }
pre.copyable .copy { position: absolute; top: 4px; right: 4px; height: 24px; padding: 0 8px; font-size: 12px; }
ol.check { margin: 0; padding-left: 18px; } ol.check li { margin: 3px 0; }
details summary { cursor: pointer; color: #1d4f91; font-size: 13px; }

.login { display: flex; flex-direction: column; align-items: center; padding: 12vh 16px 0; }
.login .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.login .logo img { height: 28px; }
.login .logo span { font-size: 17px; font-weight: 700; letter-spacing: 0.08em; color: #131b39; white-space: nowrap; }
.login .box { width: 100%; max-width: 384px; }
.login .box > h2 { height: 40px; font-size: 15px; }

.show-sm, .show-sm-inline { display: none; }
.row-acts { gap: 4px; margin-top: 4px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .topbar .in { height: auto; flex-wrap: wrap; padding: 0 8px; }
  .brand { height: 40px; }
  .menu { order: 3; flex-basis: 100%; }
  .menu a { height: 36px; }
  .page { padding: 12px 12px 60px; }
  th, td { padding-left: 8px; padding-right: 8px; }
  dl.kv { grid-template-columns: 96px minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { font-size: 12px; }
  .hide-sm { display: none; }
  .show-sm { display: flex; }
  .show-sm-inline { display: inline; }
  .head .btn { width: 100%; }
  .target-form input[type=text] { flex-basis: 100%; min-width: 0; }
  .me > span { display: none; }
}
.timeline.stack li { grid-template-columns: minmax(0, 1fr); gap: 0; }
.notice-bar.danger { background: #fbeaea; color: #a4262c; border-bottom-color: #eab8b8; font-weight: 600; }
