:root {
  --bg: #f4f6f9; --card: #fff; --line: #d6dbe3; --ink: #1b2430; --sub: #5b6676;
  --brand: #1b3a6b; --brand2: #2f5fa0; --bubble: #eef2f8;
  --good: #12633a; --good-bg: #dcf5e3; --ok: #1b3a6b; --ok-bg: #e3ecf8;
  --care: #8a6100; --care-bg: #fff3cd; --warn: #b42318; --warn-bg: #fde8e8;
  --wh: #1f6f8b; --wh-bg: #e6f3f7;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--brand2); }

.top { background: var(--brand); color: #fff; }
.top-in { max-width: 920px; margin: 0 auto; padding: 12px 16px; display: flex; gap: 10px;
  align-items: center; justify-content: space-between; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 17px; }
.badge-warn { background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: 12px;
  padding: 3px 10px; border-radius: 4px; white-space: nowrap; }

.steps { background: var(--card); border-bottom: 1px solid var(--line); overflow-x: auto;
  white-space: nowrap; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps ol { list-style: none; margin: 0 auto; padding: 0 12px; max-width: 920px; display: flex; }
.steps li { padding: 9px 10px; font-size: 13px; color: var(--sub); }
.steps li.on { background: var(--brand2); color: #fff; font-weight: 700; }
.steps li.done { color: var(--good); }

.wrap { max-width: 920px; margin: 0 auto; padding: 18px 16px 24px; outline: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 18px; margin: 0 0 12px; }
.card.tint-good { background: var(--good-bg); border-color: var(--good-bg); }
.card.tint-ok { background: var(--ok-bg); border-color: var(--ok-bg); }
.card.tint-care { background: var(--care-bg); border-color: var(--care-bg); }
.card.tint-warn { background: var(--warn-bg); border-color: var(--warn-bg); }
.card.tint-bubble { background: var(--bubble); border-color: var(--bubble); }
.card.tint-wh { background: var(--wh-bg); border-color: var(--wh-bg); }
.card .card { margin-top: 12px; }

h1 { font-size: 24px; margin: 0 0 4px; color: var(--brand); line-height: 1.35; }
h2 { font-size: 18px; margin: 0 0 8px; line-height: 1.4; }
h3 { font-size: 16px; margin: 14px 0 6px; }
p { margin: 0 0 6px; }
.sub { color: var(--sub); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.pre { white-space: pre-line; }
.good { color: var(--good); } .ok { color: var(--ok); } .care { color: var(--care); } .warn { color: var(--warn); }
.wh { color: var(--wh); }
ul.dots { margin: 0; padding-left: 18px; }
ul.dots li { margin: 2px 0; }
.ref { font-size: 12px; color: var(--sub); margin-top: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 9px 18px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand);
  color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand2); border-color: var(--brand2); }
.btn.secondary { background: var(--card); color: var(--brand); }
.btn.secondary:hover { background: var(--ok-bg); }
.btn.whistle { background: var(--wh); border-color: var(--wh); }
.btn.whistle:hover { background: #2a86a6; }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .choice:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #8fb3e8; outline-offset: 2px; }
.nav { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin: 6px 0 12px; }

.choice { display: block; width: 100%; text-align: left; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0 0 8px; cursor: pointer;
  font-weight: 400; min-height: 48px; }
.choice:hover:not(:disabled) { background: var(--ok-bg); }
.choice.picked { background: var(--ok-bg); border: 2px solid var(--brand); }
.choice:disabled:not(.picked) { color: #9aa3af; cursor: default; }
.choice .desc { display: block; color: var(--sub); font-size: 13px; }

.chip { display: inline-block; background: var(--ok-bg); color: var(--brand); font-weight: 700;
  font-size: 13px; padding: 2px 10px; border-radius: 4px; margin-bottom: 8px; }
.narr { color: var(--sub); font-style: italic; }
.bubble { background: var(--bubble); border-radius: 8px; padding: 10px 14px; margin: 8px 0 0; }
.bubble b { color: var(--brand); font-size: 14px; display: block; }
.bubble q { font-size: 18px; quotes: "“" "”"; }

.check, .radio { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.check input, .radio input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.inline { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.item-fb { margin: 0 0 6px 32px; font-size: 14px; }
.field { margin-top: 14px; }
.field > label, .field .label { display: block; font-weight: 700; margin-bottom: 4px; }
.field .req { color: var(--warn); }
input[type=text], input[type=password], textarea { width: 100%; border: 1px solid #aab3c0;
  border-radius: 6px; padding: 10px 12px; background: #fff; }
textarea { min-height: 150px; resize: vertical; }
.hint { font-size: 13px; color: var(--sub); margin-top: 4px; }
.counter { text-align: right; font-size: 12px; color: var(--sub); }

.whead { background: var(--wh); color: #fff; border-radius: 10px 10px 0 0; padding: 12px 16px;
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.whead b { font-size: 18px; }
.whead span { background: #fff; color: var(--wh); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.wsteps { display: flex; background: var(--card); border: 1px solid var(--line); border-top: 0;
  margin-bottom: 12px; overflow-x: auto; white-space: nowrap; border-radius: 0 0 10px 10px; }
.wsteps div { padding: 8px 12px; font-size: 13px; color: var(--sub); }
.wsteps div.on { background: var(--wh); color: #fff; font-weight: 700; }
.wsteps div.done { color: var(--wh); }
.receipt { display: inline-block; background: var(--wh-bg); color: var(--wh); font-size: 22px; font-weight: 800;
  padding: 4px 14px; border-radius: 6px; letter-spacing: 1px; }
.file-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 4px 0; }

.tl-row { display: flex; gap: 12px; margin-bottom: 14px; opacity: 0; animation: rise .4s ease forwards; }
.tl-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand2); color: #fff;
  font-weight: 700; display: flex; align-items: center; justify-content: center; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tl-row { animation: none; opacity: 1; } }

.review { margin-bottom: 10px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 4px; margin-right: 6px; }
.tag.good { background: var(--good-bg); } .tag.ok { background: var(--ok-bg); } .tag.care { background: var(--care-bg); }

.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.scale label { border: 1px solid var(--line); border-radius: 8px; padding: 8px 4px; text-align: center;
  cursor: pointer; font-size: 13px; line-height: 1.3; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.scale input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.scale label:has(input:checked) { background: var(--ok-bg); border-color: var(--brand); font-weight: 700; }
.q-miss { border-color: var(--warn); }

.foot { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
.foot-in { max-width: 920px; margin: 0 auto; padding: 8px 16px; display: flex; gap: 8px; justify-content: flex-end; }

.modal { position: fixed; inset: 0; background: rgba(20, 28, 40, .55); z-index: 50; display: flex;
  align-items: center; justify-content: center; padding: 12px; }
.sheet { background: var(--bg); border-radius: 12px; width: 100%; max-width: 860px; max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden; }
.sheet.narrow { max-width: 460px; }
.sheet-head { background: var(--brand); color: #fff; padding: 12px 16px; display: flex;
  justify-content: space-between; align-items: center; }
.sheet-head b { font-size: 17px; }
.sheet-head button { background: transparent; border: 0; color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; min-width: 44px; min-height: 44px; }
.tabs { display: flex; background: var(--card); border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap; }
.tabs button { border: 0; background: transparent; padding: 10px 14px; cursor: pointer; min-height: 44px; }
.tabs button.on { background: var(--brand2); color: #fff; font-weight: 700; }
.sheet-body { overflow-y: auto; padding: 14px 16px; }
.sec-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sec-head .ref { margin: 0; }

.bars .bar { display: grid; grid-template-columns: 96px 1fr 44px; gap: 8px; align-items: center; font-size: 13px; }
.track { background: var(--bubble); height: 14px; border-radius: 3px; overflow: hidden; }
.fill { height: 100%; background: var(--brand2); }
.fill.mid { background: #a8b0bc; } .fill.low { background: var(--care); }
.kpi { display: flex; gap: 10px; flex-wrap: wrap; }
.kpi div { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.kpi b { display: block; font-size: 22px; color: var(--brand); }

@media (max-width: 560px) {
  body { font-size: 15px; }
  h1 { font-size: 21px; }
  .card { padding: 14px; }
  .bubble q { font-size: 16px; }
  .nav .btn { flex: 1 1 auto; }
  .scale { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .scale label { font-size: 11px; padding: 6px 2px; }
  .modal { padding: 0; }
  .sheet { max-height: 100vh; height: 100%; border-radius: 0; }
  .bars .bar { grid-template-columns: 80px 1fr 40px; }
}
