/*
  병원MSO 프로그램 화면 스타일 — 뼈대는 건강검진 결과표(항목 │ 이번 결과 │ 지난번 │ 기준 막대 │ 판정), 색·모양은 '차분한 병원 서류'.
  2026-11-12 2차(상균 피드백 "안쪽 화면이 딱딱하고 AI 같다 — 색상"): 남색 머리띠·회청색 바탕·빨간 원격 띠·남색 네모 제목·
  색 칠한 표 머리를 걷어내고, 미색 바탕 + 흰 지면 + 소나무 초록 한 색 + 8~10px 모서리로 바꿨다.
  되돌리면(남색·회청색·2px 각진 칸) 같은 피드백이 다시 나온다. 1차(AI 템플릿: 둥근 카드+그림자, 큰 숫자 타일, 점 배지)도 되돌리지 않는다 — 그림자 없음.
  판정 색(정상·주의·관리 필요)은 판정 상자와 줄 바탕에만 쓴다. 글꼴 Pretendard(static/css/fonts/pretendard, SIL OFL 1.1) — 바깥 CDN 없음.

  화면 뼈대(layout/base.html): .bands(띠, 맨 위 고정) → .topbar(흰 머리줄) → .frame[ .side(왼쪽 메뉴) + .page(알림 + main) ]
  다른 화면이 그대로 쓰는 이름 — 바꾸지 말고 더하기만:
    본문 머리  .page-head .lead .crumbs
    지면      .box .box-head .panels/.panel(모듈 4칸) .area-block .plan(들어갈 내용 안내, 점선)
    숫자      .stats/.stat/.stat-num/.stat-label  .cards/.card/.card-title/.card-meta/.card-go
    판정      .badge(.on 정상 .warn·.sample 주의 .off 측정 전 .remote 관리 필요) .dot .chips/.chip(.on)
    결과표    table.sheet(정보 표) table.results(항목별 결과, 휴대폰에서 줄마다 접힘) .range-track/.range-dot(기준 막대)
    폼        form.row form.stack form.inline form.fields label.field label.check .narrow input.short
    단추      button button.secondary button.btn-on(켜기 — 기본 단추와 같은 모양) button.link
    글        .muted .empty .error .flash(.notice .problem) code/.code td.num
*/
@font-face { font-family: "Pretendard"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pretendard/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/pretendard/Pretendard-Medium.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/pretendard/Pretendard-SemiBold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pretendard/Pretendard-Bold.subset.woff2") format("woff2"); }

:root {
	--paper: #ffffff;
	--ground: #f6f5f1;
	--ground-2: #eeece6;
	--ink: #23211e;
	--ink-2: #5d5a54;
	--ink-3: #77736b;
	--rule: #e8e5de;
	--rule-strong: #d3cec4;
	--row-hover: #faf9f6;
	--brand: #1e6a5a;
	--brand-deep: #17534a;
	--brand-tint: #e3efea;
	--brand-ring: rgba(30, 106, 90, .2);
	--link: #1a5d4f;
	--ok: #2b7347;
	--ok-fill: #e6f1e9;
	--caution: #8f5a0a;
	--caution-fill: #faf0dc;
	--alert: #b0362a;
	--alert-fill: #fbe9e6;
	--none: #66625b;
	--none-fill: #f0ede7;
	--r-sm: 6px;
	--r: 8px;
	--r-lg: 10px;
	--ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--ground);
	/* 한글이 낱자 중간에서 끊기지 않게, 긴 code는 넘치지 않게 */
	word-break: keep-all;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	scrollbar-color: var(--rule-strong) transparent;
}
::selection { background: var(--brand-tint); color: var(--ink); }
input, textarea { caret-color: var(--brand); }

a { color: var(--link); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.625rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 .25rem; text-wrap: balance; }
h2 { font-size: 1.0625rem; line-height: 1.45; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .9rem; color: var(--ink); }
h3 { font-size: .9375rem; line-height: 1.4; font-weight: 600; margin: 1.25rem 0 .5rem; }
code, .code { font-family: "D2Coding", Consolas, monospace; font-size: .8125rem; color: var(--ink-2); }
.muted { color: var(--ink-2); font-weight: 400; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── 띠: 데모·원격 제어 — 맨 위, 스크롤해도 보이게. 데모 띠는 바탕색으로 얇게, 원격 제어는 호박색(경고 빨강 아님) ── */
.bands { position: sticky; top: 0; z-index: 20; }
.band {
	display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .25rem .75rem;
	padding: .3rem 1rem; font-size: .8125rem; text-align: center;
}
.band-demo { padding: .2rem 1rem; background: var(--ground-2); color: var(--ink-2); font-size: .75rem; }
.band-remote { padding: .4rem 1rem; background: var(--caution-fill); color: var(--caution); font-weight: 600; border-bottom: 1px solid #ecd9b4; }
.band-remote strong { color: #6e4508; }
.band-remote .band-note { font-weight: 400; color: var(--ink-2); }
.band-remote button {
	min-height: 0; padding: .1rem .8rem; border-radius: var(--r-sm); font-size: .8125rem;
	background: #fff; border-color: #dcc395; color: #6e4508;
}
.band-remote button:hover { background: #fff8ea; border-color: var(--caution); }

/* ── 머리줄: 흰 지면 + 아래 1px 괘선. 프로그램 이름 앞 작은 초록 네모가 표시 ── */
.topbar {
	display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem;
	min-height: 3.5rem; padding: .5rem 1.5rem; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--rule);
}
.brand, .topbar a.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.brand::before { content: ""; flex: none; width: 1.125rem; height: 1.125rem; border-radius: 5px; background: var(--brand); }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.context { position: relative; padding-left: 1rem; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.context::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; border-left: 1px solid var(--rule-strong); }
.who { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .875rem; color: var(--ink-2); }
.topbar a, .topbar button.link { color: var(--ink-2); }
.topbar a:hover, .topbar button.link:hover { color: var(--ink); }
.topbar .muted { color: var(--ink-3); }

/* ── 왼쪽 메뉴(바탕 위) + 본문 ── */
.frame { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 3.5rem); }
.frame.no-nav { grid-template-columns: minmax(0, 1fr); }
.side {
	display: flex; flex-direction: column; gap: 2px;
	padding: 1.25rem .9rem 2rem; border-right: 1px solid var(--rule);
}
.side a {
	display: flex; align-items: center; justify-content: space-between; gap: .5rem;
	padding: .5rem .75rem; border-radius: var(--r); color: var(--ink); font-size: .9375rem;
	transition: background-color .15s var(--ease-out);
}
.side a:hover { background: var(--ground-2); text-decoration: none; }
.side a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-deep); font-weight: 600; }
.side h3 { margin: 1.25rem .75rem .35rem; font-size: .8125rem; font-weight: 600; color: var(--ink-3); }
.side .staff-link { position: relative; margin-top: 1.25rem; }
.side .staff-link::before { content: ""; position: absolute; top: -.65rem; left: .75rem; right: .75rem; border-top: 1px solid var(--rule); }
.side [data-menu-empty] { margin: .75rem; font-size: .875rem; }
.count {
	min-width: 1.35rem; padding: 0 .4rem; border-radius: var(--r-sm); background: var(--alert); color: #fff;
	font-size: .75rem; font-weight: 700; line-height: 1.35rem; text-align: center; font-variant-numeric: tabular-nums;
}
.page { padding: 2rem 2.5rem 3.5rem; min-width: 0; }
.page > main { max-width: 1120px; }

/* ── 본문 머리: 제목 + 오른쪽 기준 정보, 아래 1px 괘선 ── */
.page-head {
	display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: .75rem 1.5rem;
	margin-bottom: 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule-strong);
}
.page-head h1 { margin: 0; }
.page-head .facts { margin: 0; }
.lead { margin: .35rem 0 0; color: var(--ink-2); }
.crumbs { margin: 0 0 .35rem; font-size: .875rem; color: var(--ink-2); }

/* ── 지면(흰 서류 한 장) — 1px 괘선, 그림자 없음 ── */
.box {
	background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg);
	padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; overflow-x: auto;
}
.box-head {
	display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem;
	margin-bottom: 1rem;
}
.box-head h2, .box-head p { margin: 0; }
.area-block { margin-bottom: 1.5rem; }
.area-block:last-child { margin-bottom: 0; }
/* 제목 옆 판정 상자(보여주기용·준비 중 등)가 제목 줄 가운데에 오게 */
.box > h2:first-child, .panel > h2, .area-block > h2, .box-head h2 { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.box > h3:first-child { margin-top: .25rem; }

/* 들어갈 내용 안내(임시) — 점선 지면으로 '아직 아님'을 보인다 */
.box.plan { border-style: dashed; border-color: var(--rule-strong); background: #fbfaf7; }
.box.plan ul { margin: .25rem 0 .5rem; padding-left: 1.1rem; }
.box.plan li { margin: .3rem 0; }
.box.plan li::marker { color: var(--ink-3); }

/* ── 알림 ── */
.flash { margin: 0 0 1rem; padding: .65rem .95rem; border: 1px solid; border-radius: var(--r); font-size: .9375rem; }
.flash.notice { background: var(--ok-fill); border-color: #c4dccb; color: var(--ok); }
.flash.problem { background: var(--alert-fill); border-color: #efc7c1; color: var(--alert); }
.error { color: var(--alert); font-size: .875rem; }
.empty { margin: 0; padding: .5rem 0; color: var(--ink-2); }

/* ── 표: 칠하지 않은 머리 + 가로 괘선만 ── */
table { width: 100%; border-collapse: collapse; background: var(--paper); font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
thead th {
	padding-top: .35rem; padding-bottom: .55rem; font-size: .8125rem; font-weight: 500; color: var(--ink-2);
	border-bottom: 1px solid var(--rule-strong); white-space: nowrap;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover > td { background: var(--row-hover); }
th.num, td.num { text-align: right; }
td.nowrap { white-space: nowrap; }
td.go { text-align: right; white-space: nowrap; }

/* 정보 표(수검자 정보 자리): 왼쪽 칸이 항목 이름 */
table.sheet tbody th {
	width: 8.5rem; font-size: .875rem; font-weight: 500; color: var(--ink-2);
	white-space: nowrap; vertical-align: top;
}
table.sheet tbody tr:first-child th, table.sheet tbody tr:first-child td { padding-top: .2rem; }
table.sheet tbody tr:hover > td { background: none; }

/* 항목별 결과 — 서명 장치: 기준 막대 위의 결과 점 */
table.results td.item { font-weight: 600; }
table.results td.item .muted { display: block; margin-top: .1rem; font-size: .8125rem; font-weight: 400; }
table.results td.value { font-weight: 600; white-space: nowrap; }
table.results td.blank { color: var(--ink-3); }
.range { min-width: 8rem; }
.range-track {
	position: relative; display: block; height: 6px; border-radius: 3px;
	background: repeating-linear-gradient(to right, transparent 0 calc(25% - 2px), var(--paper) calc(25% - 2px) 25%), var(--ground-2);
}
.range-dot {
	position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
	border: 2px solid var(--paper); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand);
	animation: range-in .8s var(--ease-out) both;
}
@keyframes range-in { from { left: 0; } }
.range-scale { display: flex; justify-content: space-between; margin-top: .15rem; font-size: .6875rem; color: var(--ink-3); }

/* 계약 표: 영역 표끼리 칸 너비를 맞춘다. 사용 중·기간 밖은 줄 바탕으로만 */
table.contracts { table-layout: fixed; min-width: 760px; }
table.contracts th:nth-child(1) { width: 24%; }
table.contracts th:nth-child(2) { width: 19%; }
table.contracts th:nth-child(3) { width: 11%; }
table.contracts th:nth-child(4) { width: 46%; }
tr.is-on > td { background: #f3f8f4; }
tr.is-warn > td { background: #fdf8ec; }
td .code { display: block; white-space: nowrap; }
.period { display: block; margin-top: .2rem; font-size: .8125rem; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
td.toggle button { min-width: 4.75rem; }
/* 기간·상태 고치기 칸: 상태·시작일·종료일·저장이 한 줄에 들어가게 작게 */
table.contracts td form.row :is(input, select, button) { min-height: 2.25rem; padding: .3rem .55rem; font-size: .875rem; }

/* ── 폼 ── */
form.inline { display: inline; }
form.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
form.fields { align-items: flex-end; }
form.fields .error { flex-basis: 100%; margin: 0; }
form.stack { display: flex; flex-direction: column; gap: .8rem; }
/* 칸 이름과 (설명)은 한 줄, 입력 칸은 그 아래 */
form.stack label { display: block; font-weight: 600; font-size: .875rem; color: var(--ink); }
form.stack label .muted { font-weight: 400; }
form.stack label:not(.check) > :is(input, select, textarea) { display: block; width: 100%; margin-top: .35rem; font-size: .9375rem; font-weight: 400; }
form.stack > button { align-self: flex-start; }
label.field { display: flex; flex-direction: column; gap: .25rem; font-size: .8125rem; color: var(--ink-2); }
label.field.grow { flex: 1 1 14rem; }
label.check { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: .45rem; font-weight: 400 !important; }
.narrow { max-width: 480px; }
fieldset { margin: 0; padding: .5rem .85rem .8rem; border: 1px solid var(--rule); border-radius: var(--r); }
legend { padding: 0 .35rem; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }

input, select, textarea {
	font: inherit; color: var(--ink); padding: .45rem .7rem; min-height: 2.5rem;
	border: 1px solid var(--rule-strong); border-radius: var(--r); background: #fff;
	transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { min-height: 2.5rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
/* 초점: 초록 테두리 + 연한 고리(키보드·마우스 같이). outline은 투명으로 남겨 고대비 모드에서 보이게 */
input:focus, select:focus, textarea:focus { outline: 2px solid transparent; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
input[type="checkbox"] { min-height: 0; width: 1rem; height: 1rem; accent-color: var(--brand); }
input.short { width: 5.5rem; }

button {
	font: inherit; font-weight: 600; font-size: .9375rem; padding: .45rem 1.05rem; min-height: 2.5rem; white-space: nowrap; cursor: pointer;
	border: 1px solid var(--brand); border-radius: var(--r); background: var(--brand); color: #fff;
	transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out);
}
button:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary { background: #fff; color: var(--ink); border-color: var(--rule-strong); }
button.secondary:hover { background: var(--ground); border-color: var(--ink-3); }
button.link { min-height: 0; padding: 0; border: 0; background: none; color: var(--link); font-weight: 400; }
button.link:hover { text-decoration: underline; background: none; }

/* ── 판정 상자(배지) — 연한 바탕 + 같은 색 글자, 테두리·점·알약 없음 ── */
.badge {
	display: inline-flex; align-items: center; padding: .05rem .5rem; border-radius: var(--r-sm);
	font-size: .75rem; font-weight: 600; line-height: 1.6; white-space: nowrap; vertical-align: middle;
	color: var(--none); background: var(--none-fill);
}
.badge.on { color: var(--ok); background: var(--ok-fill); }
.badge.warn, .badge.sample { color: var(--caution); background: var(--caution-fill); }
.badge.off { color: var(--none); background: var(--none-fill); }
.badge.remote { color: var(--alert); background: var(--alert-fill); }
.dot { display: inline-block; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--rule-strong); }
.dot.on { background: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
	display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem;
	border: 1px solid var(--rule-strong); border-radius: var(--r); background: #fff; color: var(--ink); font-size: .9375rem;
}
a.chip:hover { border-color: var(--brand); background: var(--row-hover); text-decoration: none; }
.chip.on .dot { background: var(--ok); }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 0 0 1rem; }
.facts div { display: flex; align-items: baseline; gap: .5rem; }
.facts dt { color: var(--ink-2); font-size: .8125rem; }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── 요약 줄(팀 첫 화면) — 큰 숫자 타일이 아니라 '이름 위, 숫자 아래'로 읽는 한 줄 ── */
.stats {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px;
	margin-bottom: 1.25rem; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden;
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .15rem; padding: .9rem 1.25rem 1rem; color: var(--ink); background: var(--paper); }
a.stat:hover { background: var(--row-hover); text-decoration: none; }
.stat-num { font-size: 1.375rem; font-weight: 700; line-height: 1.3; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-2); font-size: .8125rem; font-weight: 500; }
.stat.attention .stat-num { color: var(--caution); }

/* ── 카드(남은 곳만) — 그림자 없는 지면 ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.card {
	display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.15rem; color: var(--ink);
	background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg);
}
a.card:hover { border-color: var(--brand); text-decoration: none; }
.card-title { font-size: 1rem; font-weight: 600; }
.card-meta { font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card-go { margin-top: auto; padding-top: .4rem; color: var(--link); font-weight: 600; font-size: .875rem; }
.card .big { font-size: 1.5rem; font-weight: 700; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: .3rem 0; }
ol.roadmap { margin: .25rem 0 0; padding-left: 1.4rem; }
ol.roadmap li { margin: .4rem 0; padding-left: .2rem; }
ol.roadmap li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ── 모듈 4칸 — 같은 흰 지면 ── */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.panel {
	min-width: 0; padding: 1.25rem 1.5rem 1.4rem; background: var(--paper);
	border: 1px solid var(--rule); border-radius: var(--r-lg);
}
.panel h2 { margin-top: 0; }
.chart { margin-top: 1rem; }

/* ── 로그인·가입·비밀번호, 오류 화면 ── */
.no-nav .page { padding-top: 3rem; }
main.narrow {
	max-width: 440px; margin: 0 auto; padding: 2rem 2rem 1.5rem;
	background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg);
}
main.narrow .flash { margin: 1rem 0 0; }
main.narrow form.stack { margin-top: 1.25rem; }
main.narrow form.stack > button { align-self: stretch; margin-top: .25rem; padding: .55rem 1rem; }
main.narrow .foot { margin: 1.25rem 0 0; color: var(--ink-2); }

/* 로그인: 사진(결과지 정물, Kling 생성 — 출처 .impeccable/assets.md) + 입력 지면 */
main.auth-split {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 940px; margin: 0 auto;
	background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden;
}
.auth-photo { position: relative; margin: 0; min-height: 520px; background: #26302c; }
.auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-photo figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.75rem 1.5rem; color: #fff;
	background: linear-gradient(to top, rgba(28, 33, 31, .86), rgba(28, 33, 31, 0)); font-size: .9375rem; line-height: 1.5;
}
.auth-photo figcaption strong { display: block; font-size: 1.125rem; margin-bottom: .2rem; }
.auth-form { padding: 2.5rem 2.25rem 2rem; }
.auth-form h1 { font-size: 1.625rem; }
.auth-form .flash { margin: 1rem 0 0; }
.auth-form form.stack { margin-top: 1.5rem; }
.auth-form form.stack > button { align-self: stretch; margin-top: .25rem; padding: .55rem 1rem; }
.auth-form .foot { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: .9375rem; }

.error-page { display: grid; place-items: center; min-height: 100vh; margin: 0; padding: 1rem; }
.error-page main { width: 100%; text-align: center; }
.error-code { margin: 0 0 .25rem; font-size: 3rem; font-weight: 700; line-height: 1; color: var(--rule-strong); font-variant-numeric: tabular-nums; }
.error-actions { display: flex; justify-content: center; gap: 1.25rem; margin: 1.25rem 0 .25rem; }

@media (prefers-reduced-motion: reduce) {
	.range-dot { animation: none; }
	button, .side a, input, select, textarea { transition: none; }
}

/* ── 좁은 화면(휴대폰 폭): 왼쪽 메뉴는 본문 위 가로 줄, 결과표는 줄마다 접힘 ── */
@media (max-width: 760px) {
	body { font-size: 15px; }
	.topbar { padding: .5rem 1rem; }
	.who { margin-left: 0; width: 100%; font-size: .8125rem; }
	.band-note { display: none; }
	.frame { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.side {
		flex-direction: row; flex-wrap: wrap; align-items: center; gap: .35rem;
		padding: .6rem .75rem; border-right: 0; border-bottom: 1px solid var(--rule);
	}
	.side a { padding: .3rem .7rem; border: 1px solid var(--rule-strong); background: var(--paper); font-size: .875rem; }
	.side a[aria-current="page"] { border-color: var(--brand-tint); }
	.side .menu-area { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; width: 100%; }
	.side h3 { margin: 0 .25rem 0 0; }
	.side .staff-link { margin-top: 0; }
	.side .staff-link::before { display: none; }
	.side [data-menu-empty] { width: 100%; margin: 0; }
	.page { padding: 1rem 1rem 2rem; }
	.no-nav .page { padding-top: 1.25rem; }
	.box { padding: 1.1rem 1rem; }
	.panels { grid-template-columns: minmax(0, 1fr); }
	main.narrow { padding: 1.5rem 1.25rem 1.25rem; }
	main.auth-split { grid-template-columns: minmax(0, 1fr); }
	.auth-photo { min-height: 180px; }
	.auth-photo figcaption { padding: 1.5rem 1.25rem 1rem; }
	.auth-form { padding: 1.5rem 1.25rem 1.25rem; }

	/* 정보 표: 항목 이름을 값 위로 */
	table.sheet tbody th, table.sheet tbody td { display: block; width: auto; }
	table.sheet tbody th { padding-bottom: .25rem; border-bottom: 0; }

	/* 결과표: 표 머리를 숨기고 줄마다 '칸 이름: 값'으로 접는다 */
	table.results thead { display: none; }
	table.results, table.results tbody, table.results tr, table.results td { display: block; width: 100%; }
	table.results tr { padding: .6rem 0; border-bottom: 1px solid var(--rule); }
	table.results tr:last-child { border-bottom: 0; }
	table.results td { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; border: 0; }
	table.results td[data-label]::before { content: attr(data-label); flex: none; color: var(--ink-2); font-size: .8125rem; font-weight: 500; }
	table.results td.item { display: block; font-size: 1rem; }
	table.results td.range-cell { display: block; }
	table.results td.range-cell::before { display: block; margin-bottom: .3rem; }
	table.results tbody tr:hover > td { background: none; }
}
