/* 내 물건 점검 — 밝고 가벼운 테마. 따뜻한 흰 바탕, 먹색 글자, 강조색 하나(인디고). */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #15161b;
  --ink-2: #3d404a;
  --muted: #7a7f8c;
  --line: #e9e6df;
  --line-2: #d9d5cc;
  --accent: #4353ff;
  --accent-soft: #eef0ff;
  --ok: #0f9d58;
  --ok-soft: #e7f6ee;
  --warn: #c77700;
  --warn-soft: #fff4de;
  --danger: #e03e3e;
  --danger-soft: #fdecec;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(21, 22, 27, .04), 0 10px 30px rgba(21, 22, 27, .06);
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Consolas, monospace;
  /* 옛 이름을 쓰는 곳을 위해 남겨 둔다 */
  --text: var(--ink);
  --cyan: var(--accent);
  --amber: var(--warn);
  --red: var(--danger);
  --green: var(--ok);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { overflow-x: clip; } /* 소개 화면의 색 번짐이 옆으로 삐져나와 가로 스크롤이 생기지 않게 */

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.01em;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

a { color: var(--accent); text-underline-offset: 3px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
p { margin: 8px 0 0; }
[hidden] { display: none !important; }

/* ---------- 머리 ---------- */

.hud { position: sticky; top: 0; z-index: 6; background: rgba(246, 245, 241, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.classif { display: none; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 640px; margin: 0 auto; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { flex: none; display: flex; align-items: center; padding-right: 10px; border-right: 1px solid var(--line, #e4e2dc); }
.brand-logo img { display: block; height: 17px; width: auto; }
.brand-mark { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; top: 10px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; }
.brand-mark::before { left: 4px; }
.brand-mark::after { right: 4px; }
.brand-code { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.top h1 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.top-right { text-align: right; min-width: 0; }
.clock { font-size: 13px; color: var(--muted); }
.session { font-size: 10px; color: var(--muted); }
.room { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }

.alert-bar { display: flex; align-items: center; gap: 8px; max-width: 600px; margin: 0 auto 8px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; border-radius: 999px; background: #ecebe6; color: var(--muted); width: calc(100% - 32px); }
.alert-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.alert-bar.clear { background: var(--ok-soft); color: var(--ok); }
.alert-bar.warn { background: var(--warn-soft); color: var(--warn); }
.alert-bar.hot { background: var(--danger); color: #fff; }
.alert-bar.hot .dot { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }

main { max-width: 640px; margin: 0 auto; padding: 8px 16px 0; }

/* ---------- 카드 ---------- */

.box { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.box.nopad { padding: 0; overflow: hidden; }
.box.track { outline: 2px solid var(--accent); }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.box-head.pad { padding: 18px 20px 0; margin-bottom: 8px; }
.label { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.label i { display: none; }

.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #efeee9; color: var(--muted); white-space: nowrap; }
.badge.on { background: var(--ok-soft); color: var(--ok); }
.badge.sim { background: var(--warn-soft); color: var(--warn); }

/* ---------- 버튼 ---------- */

.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }

button, .btn {
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 20px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .12s ease;
  -webkit-tap-highlight-color: transparent;
}
button:active, .btn:active { transform: scale(.97); }
button.primary, .btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
button.danger { color: var(--danger); border-color: #f3c7c7; }
button.link { border: 0; background: none; padding: 4px 6px; min-height: 0; color: var(--muted); font-size: 13.5px; font-weight: 500; text-decoration: underline; }
button:disabled { opacity: .35; cursor: default; transform: none; }
.btn.busy { opacity: .5; pointer-events: none; }

.help { margin-top: 14px; padding: 14px 16px; background: var(--warn-soft); border-radius: var(--radius-sm); font-size: 14.5px; color: var(--ink-2); }
.help ol { margin: 6px 0 0; padding-left: 20px; }
.help code { display: block; margin: 8px 0; padding: 10px; background: #fff; border-radius: 8px; font-family: var(--mono); font-size: 12px; word-break: break-all; color: var(--ink); }
.status-line { margin-top: 14px; padding: 10px 14px; font-size: 14px; color: var(--ink-2); background: var(--accent-soft); border-radius: var(--radius-sm); }

/* ---------- 대시보드 ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { border-radius: 16px; padding: 12px 4px 10px; text-align: center; background: #f6f5f1; }
.stat b { display: block; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.s3 b { color: var(--danger); }
.stat.s2 b { color: var(--warn); }
.stat.s0 b { color: #b3b0a8; }
.stat.s3.live { background: var(--danger-soft); }
.stat.s2.live { background: var(--warn-soft); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.kpis > div { padding: 10px 12px; border-radius: 14px; background: #f6f5f1; min-width: 0; }
.kpis span { display: block; font-size: 11.5px; color: var(--muted); }
.kpis b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-label { margin-top: 16px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.sub-label i { font-style: normal; font-size: 11.5px; }
#trend { display: block; width: 100%; height: 72px; margin-top: 6px; border-radius: 12px; background: #f6f5f1; }

/* ---------- 표 ---------- */

table { width: 100%; border-collapse: collapse; }
.list th { font-size: 12px; font-weight: 500; color: var(--muted); text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.list td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list tr:last-child td { border-bottom: 0; }
.list tbody tr[data-id] { cursor: pointer; }
.list tbody tr.sel { background: var(--accent-soft); }
.list tbody tr.stale { opacity: .45; }
.list .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list .num b { font-size: 16px; font-weight: 700; }
.list .empty { text-align: center; color: var(--muted); padding: 32px 12px; }
.dev-name { font-weight: 700; overflow-wrap: anywhere; }
.dev-sub { font-size: 12.5px; color: var(--muted); }
.tgt { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; }
.sigbar { height: 4px; margin-top: 8px; background: #eeece6; border-radius: 2px; overflow: hidden; }
.sigbar i { display: block; height: 100%; background: #b3b0a8; border-radius: 2px; transition: width .3s; }
tr.lv3 .sigbar i { background: var(--danger); }
tr.lv2 .sigbar i { background: var(--warn); }

.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: #efeee9; color: var(--ink-2); font-style: normal; }
.tag.l3 { background: var(--danger-soft); color: var(--danger); }
.tag.l2 { background: var(--warn-soft); color: var(--warn); }

/* ---------- 추적 ---------- */

.track-id { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.track-id strong { font-size: 18px; overflow-wrap: anywhere; }
.meter { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.meter-num { font-family: var(--sans); font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.meter-num small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.meter-side { font-size: 15px; font-weight: 600; }
.meter-side .muted { font-weight: 400; font-size: 13.5px; }
.bar { height: 8px; margin-top: 14px; background: #eeece6; border-radius: 4px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .3s; }
#spark { display: block; width: 100%; height: 56px; margin-top: 12px; border-radius: 12px; background: #f6f5f1; }
.reasons { margin: 12px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); }
.reasons li { margin-bottom: 4px; }

/* ---------- 카메라 ---------- */

.cam-wrap { position: relative; background: #111; aspect-ratio: 3 / 4; overflow: hidden; }
.cam-wrap video { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.cam-off { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 28%; color: #9b9fa9; font-size: 14px; }
.cam-strip { position: absolute; left: 12px; right: 12px; top: 12px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(21, 22, 27, .6); border-radius: 12px; backdrop-filter: blur(8px); }
.cam-strip.alert { background: rgba(224, 62, 62, .9); }
.cam-foot { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .85); }
.reticle { position: absolute; inset: 60px 28px 48px; pointer-events: none; }
.reticle .c { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(255, 255, 255, .9); }
.reticle .tl { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.reticle .tr { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.reticle .bl { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.reticle .br { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.reticle .cross { display: none; }

/* ---------- 입력 ---------- */

input[type="range"] { width: 100%; margin: 8px 0 0; accent-color: var(--accent); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field > span b { color: var(--accent); margin-left: 6px; font-weight: 700; }
.field input[type="text"], select { width: 100%; font: inherit; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.field input[type="text"]:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
::placeholder { color: #b3b0a8; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.kv td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv tr:last-child td { border-bottom: 0; }
.kv td:last-child { text-align: right; font-weight: 700; font-size: 13.5px; }
.ok { color: var(--ok); }
.no { color: var(--danger); }

/* ---------- 감독관 기록 ---------- */

.rec-wrap { position: relative; }
.rec { display: grid; grid-template-columns: 76px 1fr; gap: 12px; margin-top: 8px; }
.rec.nophoto { grid-template-columns: 1fr; }
.rec img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
.rec img.big { grid-column: 1 / -1; width: 100%; height: auto; cursor: zoom-out; }
.rec-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); padding-right: 76px; }
.rec-case { font-weight: 700; color: var(--accent); }
.rec-title { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.rec-detail { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.rec-row { display: grid; grid-template-columns: 48px 1fr; gap: 3px 8px; font-size: 13.5px; margin: 6px 0 0; }
.rec-row dt { font-size: 12px; color: var(--muted); padding-top: 1px; }
.rec-row dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.rec-foot { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.rec-foot select { flex: 1; }
.stamp { position: absolute; right: 18px; top: 18px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; pointer-events: none; }
.stamp.pending { background: var(--warn-soft); color: var(--warn); }
.stamp.hit { background: var(--danger-soft); color: var(--danger); }
.stamp.cleared { background: #efeee9; color: var(--muted); }

/* ---------- 아래 탭 ---------- */

.tabs {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; gap: 2px; padding: 6px;
  width: min(calc(100% - 28px), 460px);
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-radius: 999px; box-shadow: 0 2px 6px rgba(21, 22, 27, .06), 0 16px 40px rgba(21, 22, 27, .14);
  z-index: 6;
}
.tabs button { flex: 1; border: 0; background: none; min-height: 46px; padding: 6px 4px; color: var(--muted); font-size: 14px; font-weight: 600; border-radius: 999px; white-space: nowrap; }
.tabs button i { display: none; }
.tabs button.on { background: var(--ink); color: #fff; }

/* ---------- 창·알림 ---------- */

dialog { width: min(92vw, 420px); border: 0; border-radius: 24px; padding: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(21, 22, 27, .3); }
dialog::backdrop { background: rgba(21, 22, 27, .45); backdrop-filter: blur(3px); }
dialog img { width: 100%; max-height: 40vh; object-fit: contain; background: #111; border-radius: 14px; margin: 8px 0 12px; }
dialog .btns { justify-content: flex-end; }

.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: 90vw; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; z-index: 10; box-shadow: 0 10px 30px rgba(21, 22, 27, .25); }

/* ---------- 모드 ---------- */

body[data-mode="none"] .alert-bar,
body[data-mode="none"] .proctor-only,
body[data-mode="examinee"] .proctor-only,
body[data-mode="none"] .examinee-only,
body[data-mode="proctor"] .examinee-only,
body[data-locked="1"] .tabs,
body[data-locked="1"] .alert-bar { display: none !important; }
body[data-mode="examinee"] .tabs button[data-mode="proctor"],
body[data-mode="proctor"] .tabs button[data-mode="examinee"] { display: none; }
/* 수험생 화면에서는 신호를 켜기 전까지 상태 띠를 숨겨 화면을 가볍게 둔다 */
body[data-mode="examinee"] .alert-bar.idle { display: none; }

.mode-card { display: block; width: 100%; text-align: left; padding: 20px; margin-bottom: 10px; border-radius: 18px; border: 1px solid var(--line); background: #fbfaf8; min-height: 0; }
.mode-card b { display: block; font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.mode-card > span { font-size: 14px; font-weight: 400; color: var(--muted); }
.mode-card .tag { margin-left: 6px; vertical-align: 2px; }
#proctor-lock { margin: 0 0 12px; }
#proctor-lock p { margin: 6px 0 12px; }

/* ---------- 수험생 점검 ---------- */

.progress { height: 6px; margin-top: 14px; background: #eeece6; border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .4s linear; }

/* 단계 번호와 짧은 안내 */
.step { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; vertical-align: 2px; }
.hint { margin: 0; font-size: 14.5px; color: var(--muted); }
.heard { margin: 12px 0 0; font-size: 13.5px; }
.heard summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
#self-found { flex: 1 1 100%; margin-top: 16px; }
.found-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.found-head span { color: var(--muted); font-size: 13px; }
.found { list-style: none; margin: 8px 0 0; padding: 0; }
.found li { padding: 12px 14px; margin-top: 8px; border-radius: 14px; background: var(--bg); overflow-wrap: anywhere; }
.found li.glasses { background: var(--danger-soft); }
.found li.close { background: var(--warn-soft); }
.found li.close .gtop b { color: var(--warn); }
.found .gtop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.found .gtop b { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.found li.glasses .gtop b { color: var(--danger); }
.found li.unknown .gtop b { color: var(--ink-2); font-weight: 700; }
.found .gtop i { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.found .gtop em { font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.found li > span { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-2); }
.found li > span.raw { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.note { margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.note .picks { margin-top: 10px; }
.note b { display: block; color: var(--warn); font-size: 12.5px; margin-bottom: 2px; }
.linkbox { display: block; text-decoration: none; color: inherit; position: relative; padding-right: 44px; }
.linkbox::after { content: "›"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--muted); }
.linkbox b { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.linkbox span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.app .fine.only { display: none; }
.fine { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.fine .link { font-size: 12.5px; padding: 0; }

/* 체크 항목은 눌러서 고르는 알약 */
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pick { position: relative; display: inline-flex; align-items: center; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 소개 화면의 세 단계 */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 14px; }
.steps3 > div { background: var(--surface); border-radius: 18px; padding: 16px 10px; text-align: center; box-shadow: var(--shadow); }
.steps3 .step { margin: 0 0 8px; }
.steps3 { grid-template-columns: 1fr 1fr; }
.steps3 > .main { grid-column: 1 / -1; padding: 22px 12px; border: 2px solid var(--accent); }
.steps3 > .main b { font-size: 19px; font-weight: 800; }
.steps3 > .main span:not(.step) { font-size: 13.5px; }
/* 블루투스 점검이 주인공: 카드에 테를 두르고 시작 버튼을 화면에서 가장 크게 */
.box.lead { border: 2px solid var(--accent); }
.box.lead .hint { font-size: 16px; }
.box.lead #self-scan { flex: 1 1 100%; min-height: 68px; border-radius: 20px; background: var(--accent); border-color: var(--accent); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.box.lead #self-chooser { flex: 1 1 100%; }
.steps3 b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; }
.steps3 span:not(.step) { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.35; }

.fig { padding: 12px; border-radius: 16px; background: #f6f5f1; color: #4a4d57; }
.fig svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }

/* 짧은 두 칸 목록: 굵은 낱말 + 한 줄 */
.tips { list-style: none; margin: 12px 0 0; padding: 0; }
.tips li { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.tips li:first-child { border-top: 0; }
.tips b { color: var(--ink); }

.shots { display: grid; gap: 10px; margin-top: 14px; }
.shot { display: grid; grid-template-columns: 1fr 100px; gap: 12px; align-items: center; border-radius: 16px; padding: 12px; background: #f6f5f1; }
.shot.done { background: var(--ok-soft); }
.shot-guide svg { display: block; width: 100%; height: auto; color: #4a4d57; }
.shot-guide img { display: block; width: 100%; max-height: 150px; object-fit: cover; border-radius: 10px; }
.shot-side { display: grid; gap: 4px; justify-items: stretch; text-align: center; }
.shot-side b { font-size: 15px; }
.shot-side .btn { min-height: 40px; padding: 8px 6px; font-size: 14px; margin-top: 4px; }
.shot-side .ok { font-size: 12px; font-weight: 700; }
@media (min-width: 560px) { .shots { grid-template-columns: repeat(3, 1fr); } .shot { grid-template-columns: 1fr; } }

.photo-verdict { margin-top: 16px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; padding: 14px 16px; border-radius: 14px; background: #f6f5f1; }
.photo-verdict.smart_likely { background: var(--danger-soft); color: var(--danger); }
.photo-verdict.mistakable { background: var(--warn-soft); color: var(--warn); }
.photo-verdict.ordinary { background: var(--ok-soft); color: var(--ok); }
.photo-verdict small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.feat-list { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; }
.feat-list li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.feat-list li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: #cfccc4; }
.feat-list li.flag::before { background: var(--warn); }
.feat-list b { display: block; }
.feat-list span { color: var(--ink-2); }

.verdict { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; padding: 18px; border-radius: 16px; background: #f6f5f1; }
.result.low .verdict { background: var(--ok-soft); color: var(--ok); }
.result.mid .verdict { background: var(--warn-soft); color: var(--warn); }
.result.high .verdict, .result.smart .verdict { background: var(--danger-soft); color: var(--danger); }

/* ---------- 소개 화면 ---------- */

.hero { position: relative; padding: 34px 6px 10px; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: -30%; right: -30%; top: -120px; height: 420px;
  background: radial-gradient(40% 55% at 30% 45%, rgba(67, 83, 255, .22), transparent 70%), radial-gradient(38% 50% at 72% 35%, rgba(255, 138, 92, .22), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }
.hero h2 { margin: 16px 0 12px; font-size: 36px; font-weight: 800; line-height: 1.2; letter-spacing: -.04em; text-wrap: balance; }
.hero p { margin: 0; color: var(--ink-2); font-size: 18px; }
.hero .btns { margin-top: 22px; }
.hero .fine { font-size: 12.5px; margin-top: 12px; color: var(--muted); }
.hero .fine + .fine { margin-top: 4px; }
.hero .btns .btn { flex: 1 1 auto; min-height: 54px; font-size: 16px; }
.facts br { display: block; }
.why { padding: 24px 22px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 14px; }
.facts > div { border-radius: var(--radius); padding: 18px; background: var(--surface); box-shadow: var(--shadow); }
.facts b { display: block; font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -.04em; color: var(--accent); }
.facts span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.lead { margin: 0 0 4px; color: var(--ink-2); }
.feat { list-style: none; margin: 14px 0 0; padding: 0; }
.feat li { padding: 14px 0; border-top: 1px solid var(--line); }
.feat li:last-child { padding-bottom: 0; }
.feat b { display: block; font-size: 16.5px; font-weight: 700; }
.feat span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.why { background: var(--ink); color: #fff; }
.why .label { color: #fff; }
.why p { margin: 0 0 10px; color: rgba(255, 255, 255, .72); }
.why p:last-child { margin-bottom: 0; color: #fff; font-weight: 700; font-size: 17px; }
.gate { text-align: center; padding: 28px 20px; }
.gate .btns { justify-content: center; }
.gate-title { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
  .alert-bar.hot .dot { animation: none; }
  button, .btn { transition: none; }
}

/* 안드로이드 앱(감독관 전용): 수험생 입구와 웹 전용 버튼을 감춘다 */
.app #mode-examinee,
.app #btn-mode,
.app #btn-chooser,
.app #self-chooser { display: none; }
.app #proctor-lock { margin-top: 0; }

/* 감독관 앱: 와이파이 상자 */
#wifi-box > .pad { padding: 0 20px 12px; }

/* ---------- 반입 금지 물품 문서 (items.html 과 첫 화면 탭이 함께 쓴다) ---------- */
.doc .doc-head { position: relative; padding: 34px 6px 10px; }
.doc .doc-head::before {
  content: ""; position: absolute; z-index: -1; left: -30%; right: -30%; top: -120px; height: 420px;
  background: radial-gradient(40% 55% at 30% 45%, rgba(67, 83, 255, .22), transparent 70%), radial-gradient(38% 50% at 72% 35%, rgba(255, 138, 92, .22), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.doc .doc-head h1 { margin: 16px 0 12px; font-size: 32px; font-weight: 800; line-height: 1.22; letter-spacing: -.04em; text-wrap: balance; }
.doc .doc-head p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.doc h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.doc h3 { margin: 18px 0 6px; font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; }
.doc h3 .tag { margin-left: 6px; }
.doc .box p { color: var(--ink-2); }
.doc .box ul { margin: 6px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.doc .box li { margin-bottom: 4px; }
.doc .jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.doc .jump a { padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.doc .no, .doc .ok, .doc .wait { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.doc .no { background: var(--danger-soft); color: var(--danger); }
.doc .ok { background: var(--ok-soft); color: var(--ok); }
.doc .wait { background: var(--warn-soft); color: var(--warn); }
.doc .scroll { overflow-x: auto; margin-top: 10px; }
.doc .grid { width: 100%; border-collapse: collapse; }
.doc .grid th, .doc .grid td { padding: 11px 6px 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; text-align: left; vertical-align: middle; }
.doc .grid th { color: var(--muted); font-weight: 500; font-size: 12.5px; white-space: nowrap; }
.doc .grid td:first-child { font-weight: 700; }
.doc .grid tr:last-child td { border-bottom: 0; }
.doc .src { font-size: 12.5px; color: var(--muted); }
.doc .cta { text-align: center; background: var(--ink); color: #fff; padding: 30px 20px; }
.doc .cta p { color: rgba(255, 255, 255, .72); }
.doc .cta .btns { justify-content: center; }
.doc .cta .btn.primary { background: #fff; border-color: #fff; color: var(--ink); }
.doc .cta a:not(.btn) { color: #fff; }

/* 아래 탭: 비회원·모드 선택 전에는 '금지 물품'과 '점검' 두 개만 보인다 */
body[data-mode="none"] .tabs button:not([data-tab="items"]):not([data-tab="self"]),
body[data-locked="1"] .tabs button:not([data-tab="items"]):not([data-tab="self"]) { display: none; }
body[data-mode="proctor"] .tabs button[data-tab="items"],
.tabs button[data-tab="guide"] { display: none; }
.app .tabs button[data-tab="items"] { display: none; }
body.app[data-mode="none"] .tabs { display: none !important; }
#tab-items .doc-head { padding-top: 14px; }

/* ---------- 짐 싸기 체크리스트 ---------- */
#pack h3 { margin: 18px 0 2px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
#pack h3 i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.seg { display: flex; gap: 6px; padding: 4px; margin-top: 12px; border-radius: 999px; background: var(--bg); }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 14.5px; font-weight: 700; }
.seg button.on { background: var(--ink); color: #fff; }
.chks { margin-top: 8px; }
.chk { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; margin-top: 6px; border-radius: 14px; background: var(--bg); font-size: 15.5px; font-weight: 600; cursor: pointer; }
.chk input { flex: none; width: 22px; height: 22px; accent-color: var(--accent); }
.chk:has(input:checked) { background: var(--ok-soft); color: var(--ok); }
.chks.out .chk:has(input:checked) span { text-decoration: line-through; }
.scan-cta { margin-top: 18px; padding: 20px 18px; border-radius: 18px; background: var(--accent); color: #fff; text-align: center; }
.scan-cta b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.scan-cta span { display: block; margin-top: 4px; font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.scan-cta button { width: 100%; min-height: 60px; margin-top: 14px; border: 0; border-radius: 16px; background: #fff; color: var(--accent); font-size: 18px; font-weight: 800; }
