:root {
  --main: #0c447c;
  --main-hover: #0a3866;
  --main-text: #185fa5;
  --main-tint: #e6f1fb;
  --ok: #1f7a4d;
  --ok-tint: #e5f3ea;
  --warn: #8a5a00;
  --warn-tint: #fbf1dc;
  --danger: #b3261e;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #16181d;
  --text-2: #5b616b;
  --text-3: #8a9099;
  --line: #e4e7eb;
  --line-strong: #cfd4da;
  --radius: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --main: #2f6db3;
    --main-hover: #3a7cc4;
    --main-text: #85b7eb;
    --main-tint: #13263c;
    --ok: #6cc597;
    --ok-tint: #12291d;
    --warn: #e8b85c;
    --warn-tint: #2c2210;
    --danger: #f28b82;
    --bg: #0f1115;
    --surface: #181b21;
    --text: #e8eaed;
    --text-2: #a4aab3;
    --text-3: #747a83;
    --line: #262a31;
    --line-strong: #353a42;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; padding: 0 16px 32px; }
button, input { font: inherit; color: inherit; }
.ico { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.bar { display: flex; align-items: center; gap: 10px; height: 56px; }
.bar h1 { font-size: 17px; font-weight: 600; margin: 0; flex: 1; }
.icon-btn { width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; display: grid; place-items: center; margin-left: -8px; }
.icon-btn:active { background: var(--line); }
.brand { display: flex; align-items: center; gap: 8px; flex: 1; }
.brand b { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.seal { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--main-text); color: var(--main-text); display: grid; place-items: center; font-size: 12px; font-weight: 700; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 12px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; color: var(--text-3); }
.title { font-size: 16px; font-weight: 600; margin: 2px 0 10px; }
.h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin: 8px 0 4px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 15px; font-weight: 600; }
.btn.primary { background: var(--main); border-color: var(--main); color: #fff; }
.btn.primary:active { background: var(--main-hover); }
.btn:disabled { opacity: 0.5; }
.btn + .btn { margin-top: 8px; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 6px; background: var(--line); color: var(--text-2); }
.badge.ok { background: var(--ok-tint); color: var(--ok); }
.badge .ico { width: 14px; height: 14px; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row.tap { cursor: pointer; }
.row .ico { color: var(--text-3); }

.field { margin: 16px 0; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field input { width: 100%; height: 48px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 14px; background: var(--surface); }
.field input:focus { outline: 2px solid var(--main-text); outline-offset: -1px; }
.field input::placeholder { color: var(--text-3); opacity: 1; }
.addr { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; background: var(--surface); text-align: left; display: flex; align-items: center; gap: 8px; }
.addr.unset { color: var(--text-3); }
.addr .ico { color: var(--text-3); }
.postcode { height: 460px; margin: 0 -8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; }
.chip.on, .seg .chip.on { background: var(--main); border-color: var(--main); color: #fff; }
.seg .chip { border-radius: 10px; height: 46px; }

.empty { text-align: center; padding: 56px 8px 24px; }
.empty .seal { width: 64px; height: 64px; font-size: 22px; margin: 0 auto 16px; border-width: 3px; }

.list-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.list-item:first-of-type { border-top: 0; }
.dot { width: 36px; height: 36px; border-radius: 10px; background: var(--main-tint); color: var(--main-text); display: grid; place-items: center; flex-shrink: 0; }

.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; background: var(--main-text); }

.thumbs { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; }
.thumbs img, .thumbs .ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--line); flex-shrink: 0; }

/* 카메라 */
.cam { position: fixed; inset: 0; background: #000; color: #fff; display: flex; flex-direction: column; z-index: 10; }
.cam-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.cam-top .icon-btn { color: #fff; margin: 0; }
.cam-view { position: relative; flex: 1; overflow: hidden; }
.cam-view video { width: 100%; height: 100%; object-fit: cover; }
.cam-guide { position: absolute; left: 12px; right: 12px; top: 12px; font-size: 13px; background: rgba(0,0,0,0.55); padding: 8px 12px; border-radius: 10px; text-align: center; }
.cam-bottom { padding: 14px 16px 28px; display: flex; align-items: center; justify-content: space-between; }
.shutter { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: none; display: grid; place-items: center; }
.shutter i { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: block; }
.shutter:active i { transform: scale(0.92); }
.cam-strip { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #222; position: relative; }
.cam-strip img { width: 100%; height: 100%; object-fit: cover; }
.cam-strip span { position: absolute; right: 2px; bottom: 2px; font-size: 11px; background: rgba(0,0,0,0.7); padding: 1px 5px; border-radius: 6px; }
.cam-done { width: 64px; height: 44px; border-radius: 10px; border: 0; background: #fff; color: #000; font-weight: 600; }
.cam-note { text-align: center; font-size: 11px; color: #aaa; padding-bottom: 6px; }

/* 시트 */
.sheet-wrap { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: flex-end; z-index: 20; }
.sheet { background: var(--surface); width: 100%; max-width: 520px; margin: 0 auto; border-radius: 20px 20px 0 0; padding: 12px 20px 28px; max-height: 88dvh; overflow-y: auto; }
.grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 16px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #16181d; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 30; max-width: 90vw; }
