/*
 * Amanut Bridge — 공통 부품
 * tokens.css 다음에 로드한다. 화면(템플릿)별 <style> 금지 — 필요한 모양은
 * 여기에 부품으로 추가한다.
 * 문맥(body 클래스): ctx-citizen · ctx-instructor · ctx-admin · ctx-dash · ctx-auth
 */

/* ───────── 0. 기본 ───────── */
*,
*::before,
*::after { box-sizing: border-box; }
[hidden],
[x-cloak] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-desk);
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body.ctx-citizen { font-size: var(--fs-citizen); }
body.ctx-instructor { font-size: var(--fs-instructor); }
body.ctx-admin,
body.ctx-dash { --bg: var(--bg-desk); }
body.ctx-auth { --bg: var(--bg-desk); }

a { color: var(--point); text-underline-offset: 2px; }
button { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
img, svg { max-width: 100%; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--surface-3); padding: 1px 6px; border-radius: var(--r-xs); }

.icon { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

.muted { color: var(--ink-3); }
.text-2 { color: var(--ink-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.spacer { flex: 1; }
.spacer-lg { min-height: 40vh; }
.form-fill { flex: 1; display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--sp-3); }
.row-flex { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.row-center { justify-content: center; }
.row-end { justify-content: flex-end; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }
.mt-10 { margin-top: 40px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap;
}

/* ───────── 1. 모바일 틀(시민·강사) ───────── */
.phone {
  max-width: var(--phone-max);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
@media (min-width: 480px) {
  .phone { box-shadow: 0 0 0 1px var(--line), var(--shadow-md); }
}
.screen { flex: 1; display: flex; flex-direction: column; padding: 28px 24px 24px; }
.brand { font-weight: 700; font-size: 16px; color: var(--ink-2); letter-spacing: -0.2px; }

.ctx-citizen h1 { font-size: 26px; line-height: 1.35; margin: 28px 0 6px; letter-spacing: -0.6px; }
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 32px; }

.topbar {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.topbar h2 { font-size: 18px; margin: 0; flex: 1; min-width: 0; }
.topbar .bk {
  font-size: 22px; line-height: 1; color: var(--ink-2); background: none; border: 0; cursor: pointer;
  padding: 6px 8px 6px 0; text-decoration: none; min-width: 32px; min-height: 32px;
  display: inline-flex; align-items: center;
}
.topbar .topbar-action { color: var(--ink-3); font-size: 14px; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 8px 0; }
.body { padding: 20px; flex: 1; }
.ctx-instructor h1 { font-size: 24px; margin: 24px 0 20px; letter-spacing: -0.5px; }
.foot {
  padding: 12px 20px 20px; border-top: 1px solid var(--line); background: var(--surface);
  position: sticky; bottom: 0;
}
.mfa-qr { max-width: 200px; margin: 0 auto; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.mfa-qr svg { width: 100%; height: auto; display: block; }
.eyebrow { font-weight: 700; color: var(--ink-2); margin-top: 8px; }
.date { font-size: 15px; color: var(--ink-3); margin: 4px 0 14px; }

/* ───────── 2. 버튼 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: var(--fs-md); font-weight: 600; line-height: 1.3;
  min-height: var(--control-h); border: 1px solid transparent; border-radius: var(--r-sm); padding: 8px 14px;
  background: var(--point); color: #fff; cursor: pointer; text-decoration: none;
  white-space: nowrap; box-shadow: var(--shadow-xs);
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover { background: var(--point-hover); }
.btn:active { background: var(--point-press); }
.btn:disabled,
.btn[aria-disabled="true"] { background: var(--disabled); border-color: transparent; color: #fff; cursor: not-allowed; box-shadow: none; }
.btn .icon { width: 16px; height: 16px; }
/* 보조 */
.btn-sub { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-sub:hover { background: var(--surface-2); }
.btn-sub:active { background: var(--surface-3); }
.btn-sub:disabled { background: var(--surface-2); color: var(--ink-4); border-color: var(--line); }
/* 위험 */
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-danger:active { background: var(--danger-hover); }
.btn-danger-sub { background: var(--surface); color: var(--danger); border-color: var(--danger-line); }
.btn-danger-sub:hover { background: var(--danger-weak); }
/* 글자만 */
.btn-ghost { background: transparent; color: var(--ink-2); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-3); }
.btn-ghost:active { background: var(--line); }
/* 아이콘 */
.btn-icon {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; color: var(--ink-2);
  cursor: pointer; list-style: none;
}
.btn-icon:hover { background: var(--surface-3); color: var(--ink); }
.btn-icon::-webkit-details-marker { display: none; }
/* 작은 */
.btn-sm { min-height: 30px; padding: 5px 10px; font-size: var(--fs-sm); }
.btn-block { display: flex; width: 100%; }
/* 모바일 큰 버튼 */
.btn-lg {
  display: flex; width: 100%; border-radius: var(--r-lg);
  font-size: 18px; padding: 16px; min-height: 56px;
}
.ctx-citizen .btn-lg { font-size: 20px; padding: 18px; }
.btn-lg.btn-sub { background: var(--bg); border: 0; color: var(--ink); }
.btn-text {
  background: none; border: 0; font: inherit; color: var(--ink-3); cursor: pointer;
  padding: 8px 0; text-decoration: none; align-self: flex-start;
}
.btn-text:hover { color: var(--ink-2); }
.ctx-citizen .btn-text { font-size: 17px; }

/* ───────── 3. 입력 ───────── */
.field-label { display: block; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; margin: 0 0 6px; }
.ctx-citizen .field-label { font-size: 17px; margin-bottom: 8px; font-weight: 500; }
.ctx-instructor .field-label { font-size: 15px; font-weight: 500; }
.field-help { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 6px; }

.input,
:is(.ctx-admin, .area-admin) :is(input[type="text"], input[type="number"], input[type="date"], input[type="email"],
  input[type="password"], input[type="search"], input[type="tel"], input[type="url"],
  input[type="datetime-local"], input[type="time"], input[type="file"],
  input:not([type]), select, textarea),
.ctx-auth :is(input[type="text"], input[type="password"], input:not([type])) {
  font: inherit; font-size: var(--fs-md); min-height: var(--control-h); padding: 7px 11px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); outline: none; max-width: 100%;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
:is(.ctx-admin, .area-admin) select:not([multiple]),
select.input {
  appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
:is(.ctx-admin, .area-admin) select[multiple]{ min-height: 140px; width: 100%; background-image: none; padding-right: 11px; }
:is(.ctx-admin, .area-admin) textarea{ width: 100%; min-height: 80px; resize: vertical; }
.input:hover,
:is(.ctx-admin, .area-admin) :is(input, select, textarea):hover{ border-color: var(--ink-4); }
.input:focus,
:is(.ctx-admin, .area-admin) :is(input, select, textarea):focus,
.ctx-auth input:focus { border-color: var(--point); box-shadow: var(--focus-ring); }
:is(.ctx-admin, .area-admin) :is(input, select, textarea):disabled{ background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
::placeholder { color: var(--ink-4); }
/* 파일 입력칸: 다른 입력칸과 같은 테두리 + 안쪽 선택 단추는 보조 버튼 모양 */
:is(.ctx-admin, .area-admin) input[type="file"]{ padding: 5px 8px; font-size: var(--fs-sm); cursor: pointer; }
:is(.ctx-admin, .area-admin) input[type="file"]::file-selector-button{ margin-right: 10px; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }

/* 모바일 큰 입력 */
.input-lg,
.fields-lg :is(input[type="text"], input[type="password"], input[type="tel"], input:not([type])) {
  display: block; width: 100%; font: inherit; font-size: 18px; padding: 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md); margin-bottom: 16px; outline: none;
  background: var(--surface); color: var(--ink);
}
.ctx-citizen .input-lg,
.ctx-citizen .fields-lg :is(input[type="text"], input[type="tel"]) { font-size: 22px; padding: 16px; border-radius: var(--r-lg); margin-bottom: 22px; }
.input-lg:focus,
.fields-lg input:focus { border-color: var(--point); box-shadow: var(--focus-ring); }
.input-inline { width: 90px; margin: 0; }

.textarea {
  width: 100%; font: inherit; font-size: 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  padding: 12px; min-height: 72px; resize: vertical; outline: none; background: var(--surface); color: var(--ink);
}
.textarea:focus { border-color: var(--point); }

.check { display: flex; gap: 8px; align-items: center; color: var(--ink-2); margin-bottom: 20px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--point); margin: 0; flex: none; }

.agree {
  display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border-radius: var(--r-lg);
  padding: 16px; font-size: 17px; line-height: 1.5; margin-bottom: 12px;
}
.agree input { width: 26px; height: 26px; margin: 1px 0 0; accent-color: var(--point); flex: none; }
.agree .field-label { margin: 0; color: var(--ink); font-size: 17px; }
.agree small { display: block; color: var(--ink-3); font-size: 15px; }

.radio-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.radio-list label { display: flex; gap: 8px; align-items: center; font-size: 16px; cursor: pointer; min-height: 32px; }
.radio-list input { width: 20px; height: 20px; accent-color: var(--point); margin: 0; }

/* 선택지 행: 라디오·체크와 문구가 한 덩어리로 붙는다 */
.option-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.option-list.row { flex-direction: row; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.fieldset-plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset-plain > legend { padding: 0; margin-bottom: var(--sp-2); width: 100%; }
.option {
  display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--ink);
  font-size: var(--fs-md); line-height: 1.45;
}
.option input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--point); flex: none; }
.option small { display: block; color: var(--ink-3); font-size: var(--fs-sm); }

.field-error { color: var(--danger); font-size: var(--fs-sm); margin: -8px 0 14px; }
.ctx-citizen .field-error { font-size: 17px; margin: -12px 0 18px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--danger); font-size: var(--fs-sm); }

/* 토글 스위치: <label class="switch"><input type="checkbox" role="switch"><span></span></label> */
.switch { position: relative; display: inline-flex; flex: none; width: 40px; height: 24px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch > span {
  position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--line-strong);
  transition: background-color 0.18s var(--ease);
}
.switch > span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.18s var(--ease);
}
.switch input:checked + span { background: var(--point); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { box-shadow: var(--focus-ring); }
.switch input:disabled + span { opacity: 0.5; cursor: not-allowed; }

/* 체크 카드: 설명이 붙은 선택지(역할 등) */
.check-cards { display: grid; gap: var(--sp-2); }
.check-card {
  position: relative; display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  cursor: pointer; transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.check-card:hover { border-color: var(--line-strong); }
.check-card input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--point); flex: none; }
.check-card b { display: block; font-size: var(--fs-md); font-weight: 600; color: var(--ink); }
.check-card small { display: block; font-size: var(--fs-sm); color: var(--ink-3); margin-top: 2px; line-height: 1.45; }
.check-card:has(input:checked) { border-color: var(--point); background: var(--point-weak); }
.check-card:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.facility-auto { margin: 0; padding: 10px 12px; border-radius: var(--r-md, 8px); background: var(--surface-2, #f5f6f8); font-weight: 600; color: var(--ink); }
.copy-field { display: flex; gap: 8px; align-items: center; }
.copy-field input { flex: 1; min-width: 0; font-family: var(--font-mono, monospace); font-size: var(--fs-sm); }
.copy-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.table .col-actions > .btn + .menu, .table .col-actions > .cell-sub + .menu { margin-left: 6px; }
.table .col-actions > .cell-sub { display: inline; margin-left: 6px; }

/* 관리자 폼 */
.form-stack { display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.form-stack label { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; margin-top: 12px; }
.form-stack label:first-child { margin-top: 0; }
.form-stack :is(input, select, textarea) { width: 100%; }
.form-stack .form-actions { margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid label { display: block; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
.form-grid :is(input, select, textarea) { width: 100%; }
.form-grid .form-actions { align-self: end; }
.form-inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.form-inline :is(input, select) { width: auto; }
.form-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.field { display: flex; flex-direction: column; margin-bottom: var(--sp-4); }
.field :is(input, select, textarea) { width: 100%; }
.field .errorlist { margin-top: 6px; }

/* ───────── 4. 카드·패널 ───────── */
.card {
  display: block; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px;
  margin-bottom: 10px; text-decoration: none; color: inherit; background: var(--surface);
  box-shadow: var(--shadow-xs); transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
a.card:hover { border-color: var(--point-line); box-shadow: var(--shadow-sm); }
a.card:active { background: var(--surface-2); }
.card-title { font-weight: 600; font-size: 18px; }
.card-meta { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.card .badges { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; margin-bottom: 16px; min-width: 0; box-shadow: var(--shadow-xs);
}
.panel > h3,
.panel-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.panel-desc { margin: -8px 0 16px; font-size: var(--fs-sm); color: var(--ink-3); }
.panel-head { display: flex; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.panel-head > div:first-child { flex: 1 1 240px; min-width: 0; }
.panel-head .panel-title { margin-bottom: 2px; }
.panel-head .panel-desc { margin: 0; }
.area-dash .panel{ padding: 20px; }
.panel-dashed { border-style: dashed; box-shadow: none; }
.panel-flush { padding: 0; overflow: hidden; }
.kv { display: grid; grid-template-columns: 140px 1fr; row-gap: 10px; column-gap: 12px; color: var(--ink-2); margin: 0; }
.kv > dt { color: var(--ink-3); }
.kv > dd { margin: 0; color: var(--ink); font-weight: 500; }
/* 종류별 한 줄 설명(가져오기·내보내기) */
.kind-list { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0 0 14px; font-size: var(--fs-sm); }
.kind-list > dt { font-weight: 700; color: var(--ink); }
.kind-list > dd { margin: 0; color: var(--ink-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid2 > .panel { margin-bottom: 0; }
.grid-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }

/* ───────── 5. 표 ───────── */
/* 좁은 화면에서 표가 잘리지 않도록 가로는 표 안에서만 스크롤한다. */
.tbl {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; overflow-y: hidden; background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.tbl.scroll,
.tblwrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: var(--fs-md); }
.table th,
.table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th {
  font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; background: var(--surface-2);
  white-space: nowrap; letter-spacing: 0.01em;
}
.table tbody tr { transition: background-color 0.12s var(--ease); }
.table tbody tr:hover > td { background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .wrap { white-space: normal; min-width: 180px; }
.table .nowrap { white-space: nowrap; }
.table .col-actions { width: 1%; white-space: nowrap; text-align: right; }
.table tr.is-link { cursor: pointer; }
.table a.row-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.table a.row-link:hover { color: var(--point); text-decoration: underline; }
.table td.actions { white-space: nowrap; }
.table td.actions form { display: inline; }
.table .form-inline { flex-wrap: nowrap; }
.table .form-inline input { width: 140px; padding: 5px 8px; font-size: 13px; min-height: 30px; }
.table .cell-main { font-weight: 600; color: var(--ink); }
.table .cell-sub { display: block; font-size: var(--fs-sm); color: var(--ink-3); font-weight: 400; }
.table-empty { padding: 32px 16px !important; text-align: center; color: var(--ink-3); }
.area-dash .table th,
.area-dash .table td{ padding: 10px 12px; white-space: nowrap; }
.area-dash .table th{ font-size: 12.5px; background: none; }
.area-dash .tbl{ overflow-x: auto; }
.table td.layer { font-size: 12px; color: var(--ink-3); font-weight: 600; background: var(--surface-2); }
.tbl-foot { padding: 10px 14px; font-size: var(--fs-sm); color: var(--ink-3); border-top: 1px solid var(--line); background: var(--surface-2); }

/* 목록 도구줄: 검색·필터·건수 */
.toolbar { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-3); }
.toolbar .search { position: relative; flex: 1 1 220px; max-width: 320px; }
.toolbar .search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; }
.toolbar .search input { width: 100%; padding-left: 34px; }
.toolbar .count { margin-left: auto; font-size: var(--fs-sm); color: var(--ink-3); }

/* ───────── 6. 배지·칩·상태 ───────── */
.bd {
  display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); line-height: 1.4;
  padding: 2px 8px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap; font-weight: 600;
}
.ctx-instructor .bd { font-size: 13px; padding: 3px 9px; }
.bd-ok { background: var(--ok-weak); color: var(--ok); border-color: var(--ok-line); }
.bd-warn { background: var(--warn-weak); color: var(--warn); border-color: var(--warn-line); }
.bd-bad { background: var(--danger-weak); color: var(--danger); border-color: var(--danger-line); }
.bd-info { background: var(--point-weak); color: var(--point-press); border-color: var(--point-line); }
.bd-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bd-lg { font-size: var(--fs-sm); padding: 4px 10px; }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 600;
  padding: 2px 8px; border-radius: var(--r-xs); background: var(--surface-3); color: var(--ink-2); white-space: nowrap;
}
.chip-brand { background: var(--point-weak); color: var(--point-press); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }

.st { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.st i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--ink-3); }
.st-ok i { background: var(--ok); }
.st-warn i { background: var(--warn-dot); }
.st-bad i { background: var(--bad); }
.na { color: var(--ink-3); font-size: 13px; }
.pending {
  display: inline-block; font-size: 12px; padding: 3px 7px; border-radius: var(--r-xs);
  background: var(--surface-3); color: var(--ink-3); white-space: nowrap;
}

/* ───────── 7. 탭·세그먼트 ───────── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a {
  padding: 10px 12px; color: var(--ink-3); text-decoration: none; border-bottom: 2px solid transparent;
  white-space: nowrap; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; font-size: var(--fs-md); border-radius: var(--r-xs) var(--r-xs) 0 0;
}
.tabs a:hover { color: var(--ink); background: var(--surface-3); }
.tabs a.on,
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--point); font-weight: 600; }
.tabs a small { color: var(--ink-3); font-weight: 500; font-size: var(--fs-xs); background: var(--surface-3); padding: 0 6px; border-radius: var(--r-pill); }

.seg { display: flex; background: var(--surface-3); border-radius: var(--r-md); padding: 4px; margin-bottom: 14px; }
.seg > label,
.seg > button {
  flex: 1; position: relative; border: 0; background: none; font: inherit; font-size: 16px;
  padding: 10px; border-radius: var(--r-sm); cursor: pointer; color: var(--ink-2);
  text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.seg > label > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg > label:has(input:checked),
.seg > button.on {
  background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm);
}
.seg > label:has(input:focus-visible) { box-shadow: var(--focus-ring); }

/* ───────── 8. 출석 명단·토글 ───────── */
.roster-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line); min-height: 64px;
}
.roster-row .nm { font-size: 18px; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tg {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 84px; min-height: 40px; line-height: 1.2;
  border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-pill);
  padding: 9px 14px; font: inherit; font-size: 16px; cursor: pointer; color: var(--ink-3);
}
.tg.on { border-color: var(--point); background: var(--point); color: #fff; font-weight: 600; }
.tg[aria-disabled="true"] { cursor: default; }
.add-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.add-row .input-lg { margin: 0; flex: 1 1 100%; min-width: 0; }
.add {
  width: 100%; border: 1.5px dashed var(--line-strong); background: none; border-radius: var(--r-md);
  padding: 14px; font: inherit; color: var(--ink-2); cursor: pointer; margin-top: 14px;
}
.add-row .add { width: auto; margin: 0; flex: none; }
.add-row .btn { flex: 1; }
.inline-field { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.inline-field .field-label { margin: 0; }

/* ───────── 9. 1~5 척도 ───────── */
.sec { font-size: 14px; color: var(--ink-3); font-weight: 600; margin: 22px 0 6px; }
.fi { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fi p { margin: 0 0 10px; font-size: 16px; line-height: 1.45; }
.fi p b { color: var(--ink-3); font-weight: 600; margin-right: 4px; }
.scale { display: flex; gap: 6px; }
.scale button {
  flex: 1; min-height: 44px; border: 1.5px solid var(--line); background: var(--surface);
  border-radius: var(--r-sm); font: inherit; font-size: 16px; cursor: pointer; color: var(--ink); padding: 0 4px;
}
.scale button.on { border-color: var(--point); background: var(--point-weak); color: var(--point-press); font-weight: 700; }
.scale button.na { flex: 1.3; font-size: 14px; color: var(--ink-3); }
.scale button.na.on { color: var(--point-press); }

/* ───────── 10. 시민 설문 ───────── */
.progress { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink-3); }
.track { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.track > i { display: block; height: 100%; background: var(--point); border-radius: 3px; transition: width 0.2s; }
.part {
  margin-top: 22px; font-size: 16px; color: var(--ink-2); background: var(--bg);
  padding: 12px 14px; border-radius: var(--r-md); line-height: 1.5; white-space: pre-line;
}
.question { font-size: 24px; line-height: 1.45; font-weight: 600; margin: 22px 0 26px; letter-spacing: -0.4px; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  font: inherit; font-size: 20px; text-align: left; padding: 17px 18px; min-height: var(--opt-min-h);
  border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); cursor: pointer;
}
.opt.sel { border-color: var(--point); background: var(--point-weak); font-weight: 600; }
.opt:disabled { opacity: 0.5; cursor: default; }
.done-mark {
  width: 64px; height: 64px; border-radius: 50%; background: var(--point-weak);
  display: grid; place-items: center; margin-top: 40px;
}
.done-mark svg { width: 32px; height: 32px; color: var(--point); }
.closing { font-size: 18px; line-height: 1.7; color: var(--ink-2); margin-top: 8px; }
.closing p { margin: 0 0 12px; }

/* ───────── 11. 배너·빈 상태·알림 ───────── */
.banner {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: var(--fs-md); line-height: 1.55; padding: 12px 14px; border-radius: var(--r-md); margin-bottom: 14px;
  border: 1px solid transparent;
}
/* 반영 전·반영 완료처럼 지금 상태를 크게 알리는 띠 */
.banner-lg { font-size: var(--fs-lg); padding: 16px 18px; border-width: 2px; }
.banner > .icon { margin-top: 2px; }
.ctx-citizen .banner { font-size: 16px; margin: 14px 0 0; display: block; }
.banner-warn { background: var(--warn-weak); color: var(--warn); border-color: var(--warn-line); }
.banner-bad { background: var(--danger-weak); color: var(--danger); border-color: var(--danger-line); }
.banner-info { background: var(--point-weak); color: var(--point-press); border-color: var(--point-line); }
.banner-ok { background: var(--ok-weak); color: var(--ok); border-color: var(--ok-line); }
.banner a { color: inherit; font-weight: 600; }
.banner b { font-weight: 700; }

.empty { text-align: center; color: var(--ink-2); padding: 48px 12px; line-height: 1.6; }
.empty .empty-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface-3); color: var(--ink-3);
  display: grid; place-items: center; margin: 0 auto 12px;
}
.empty .empty-title { font-weight: 600; color: var(--ink); }
.empty .empty-desc { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 4px; }
.panel.empty { padding: 48px 24px; }
.area-dash .empty{ padding: 56px; }

.skel {
  background: linear-gradient(90deg, var(--skel-a) 0, var(--skel-b) 50%, var(--skel-a) 100%);
  background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: var(--r-md);
  height: 84px; margin-bottom: 10px;
}
.skel-row { height: 40px; border-radius: var(--r-sm); margin: 8px 0; }
.skel-chart { height: 260px; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

.note { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.6; margin-top: 10px; }

/* 토스트: 화면 오른쪽 아래, 몇 초 뒤 사라진다(static/js/ui.js) */
.toast-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; gap: 8px;
  max-width: min(380px, calc(100vw - 32px));
}
.toast {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--ink); color: #fff; font-size: var(--fs-md); box-shadow: var(--shadow-lg);
  animation: toast-in 0.2s var(--ease);
}
.toast .icon { margin-top: 1px; }
.toast-ok .icon { color: #86efac; }
.toast-warn .icon,
.toast-bad .icon { color: #fca5a5; }
.toast button { margin-left: auto; background: none; border: 0; color: rgba(255, 255, 255, 0.7); cursor: pointer; padding: 0 0 0 8px; }
.toast.leaving { opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ───────── 12. 관리자 틀 ───────── */
.app-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line); padding: 0 24px;
}
.app-top { display: flex; align-items: center; gap: 14px; height: var(--top-h); }
.app-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.app-brand .logo,
.app-top .logo { height: 24px; width: auto; display: block; object-fit: contain; object-position: left center; }
.app-brand b { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; color: var(--brand); padding-left: 10px; border-left: 1px solid var(--line); white-space: nowrap; }
.app-top .title { font-weight: 600; color: var(--ink-2); font-size: 14px; padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-top .fresh { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.app-top .end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.app-top .fresh + .end { margin-left: 0; }
.app-top form { margin: 0; }
.app-top .logout { white-space: nowrap; background: none; border: 0; color: var(--ink-3); font-size: 13px; cursor: pointer; padding: 6px 0; }
.nav-toggle { display: none; }
.app-header .tabs { border-bottom: 0; margin-bottom: 0; gap: 2px; }
.app-header .tabs a { padding: 12px 14px; }

/* 이름 메뉴 */
.user-menu > summary {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: var(--r-pill);
  cursor: pointer; list-style: none; color: var(--ink); border: 1px solid transparent;
}
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { background: var(--surface-3); }
.user-menu[open] > summary { background: var(--surface-3); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--point-weak); color: var(--point-press);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none;
}
.user-menu .who { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.user-menu .who b { font-size: 13px; font-weight: 600; }
.user-menu .who small { font-size: 12px; color: var(--ink-3); }

/* 더보기·이름 메뉴 공통 펼침 목록: <details class="menu"> */
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 90; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 6px; text-align: left;
}
.menu-list.up { top: auto; bottom: calc(100% + 6px); }
.menu-list form { margin: 0; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-sm);
  background: none; font: inherit; font-size: var(--fs-md); color: var(--ink); text-decoration: none; cursor: pointer;
  text-align: left; white-space: nowrap;
}
.menu-item:hover { background: var(--surface-3); }
.menu-item .icon { color: var(--ink-3); width: 16px; height: 16px; }
.menu-item.danger { color: var(--danger); }
.menu-item.danger .icon { color: var(--danger); }
/* 이름 메뉴 역할 전환: 지금 역할은 남색 바탕 + 흰 글자로 확실히 강조 */
.menu-item[aria-current="true"], .menu-item[aria-current="true"]:hover { font-weight: 600; background: var(--brand); color: #fff; cursor: default; }
.menu-item[aria-current="true"] .icon { color: #fff; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-label { padding: 6px 10px 4px; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }

.layout {
  display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-h));
  /* 본문이 길어도 왼쪽 메뉴 칸의 흰 면·경계선이 끝까지 이어지게 한다 */
  background: linear-gradient(90deg, var(--surface) calc(var(--side-w) - 1px), var(--line) calc(var(--side-w) - 1px), var(--line) var(--side-w), transparent var(--side-w));
}
.side {
  position: sticky; top: var(--top-h); align-self: start; height: calc(100vh - var(--top-h)); overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px 24px;
}
.side .grp { font-size: 11px; font-weight: 700; color: var(--ink-4); padding: 16px 10px 6px; letter-spacing: 0.04em; }
.side a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 500; margin-bottom: 1px;
}
.side a .icon { color: var(--ink-4); width: 17px; height: 17px; }
.side a:hover { background: var(--surface-3); color: var(--ink); }
.side a.on { background: var(--point-weak); color: var(--point-press); font-weight: 600; }
.side a.on .icon { color: var(--point); }
.main { padding: 28px 32px 56px; min-width: 0; }
.main > :not(dialog):not(.toast-stack) { max-width: var(--content-max); }
.nav-backdrop { display: none; }

#content-indicator {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 130;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 5px 14px; font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow-md);
}

/* 페이지 머리: 제목 + 한 줄 설명 + 오른쪽 주요 버튼 */
.page-head { display: flex; align-items: flex-start; gap: var(--sp-4); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.page-head > div:first-child { flex: 1; min-width: 240px; }
.page-head h1 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.5px; line-height: 1.3; }
.page-desc { margin-top: 4px; color: var(--ink-3); font-size: var(--fs-md); }
.page-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.head h1 { font-size: 22px; margin: 0; flex: 1; letter-spacing: -0.4px; min-width: 0; }
.crumb {
  display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--ink-3);
  text-decoration: none; margin-bottom: 8px;
}
.crumb:hover { color: var(--ink); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.steps { display: flex; gap: 8px; margin-bottom: 16px; color: var(--ink-3); font-size: var(--fs-sm); align-items: center; flex-wrap: wrap; }
.steps .on { color: var(--point-press); font-weight: 600; }
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; flex-wrap: wrap; }
.stepper li {
  display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-3);
  padding: 4px 12px 4px 4px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
}
.stepper li i {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); font-size: var(--fs-xs); font-weight: 700;
}
.stepper li.on { color: var(--point-press); border-color: var(--point-line); background: var(--point-weak); font-weight: 600; }
.stepper li.on i { background: var(--point); color: #fff; }
.stepper li.done i { background: var(--ok-weak); color: var(--ok); }
.history-list { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; padding-left: 16px; }
.print-sheet { max-width: 640px; margin: 32px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; text-align: center; }
.print-sheet h1 { font-size: 26px; margin: 0 0 4px; }
.print-sheet .lead { font-size: 17px; margin: 0 0 16px; }
.print-sheet img { width: 320px; height: 320px; }
.print-sheet .note { font-size: 15px; }
@media print { .print-sheet { border: 0; margin: 0 auto; } }
.qr-img { width: 120px; height: 120px; border: 8px solid var(--surface); outline: 1px solid var(--line); }
.mono { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }

/* ───────── 13. 오른쪽 슬라이드 패널: <dialog class="drawer"> ───────── */
dialog.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(var(--drawer-w), 100vw); max-width: 100vw;
  height: 100%; max-height: 100%; padding: 0; border: 0; border-left: 1px solid var(--line);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column;
}
dialog.drawer[open] { display: flex; animation: drawer-in 0.22s var(--ease); }
dialog.drawer::backdrop { background: var(--overlay); animation: fade-in 0.2s; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.drawer-head > div { flex: 1; min-width: 0; }
.drawer-head h2 { font-size: var(--fs-lg); font-weight: 700; }
.drawer-head p { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 2px; }
.drawer form.drawer-form { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; }
.drawer-inner { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--surface-2); }

/* 확인 대화상자: <dialog class="modal"> */
dialog.modal {
  width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); color: var(--ink);
}
dialog.modal::backdrop { background: var(--overlay); }
.modal-body { padding: 22px 24px 8px; }
.modal-body h2 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 6px; }
.modal-body p { color: var(--ink-2); font-size: var(--fs-md); }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 16px 24px 20px; }
.modal-foot form { margin: 0; }

/* ───────── 14. 파일 드롭 영역 ───────── */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 168px; padding: 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg);
  background: var(--surface-2); color: var(--ink-2); text-align: center; cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.dropzone:hover { border-color: var(--point); background: var(--point-weak); }
.dropzone.is-over { border-color: var(--point); background: var(--point-weak); box-shadow: var(--focus-ring); }
.dropzone:focus-within { border-color: var(--point); box-shadow: var(--focus-ring); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone .dz-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--point);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); margin-bottom: 4px;
}
.dropzone .dz-title { font-weight: 600; color: var(--ink); }
.dropzone .dz-title u { color: var(--point); text-decoration: none; }
.dropzone .dz-hint { font-size: var(--fs-sm); color: var(--ink-3); }
.dropzone.has-file { min-height: 0; padding: 0; border: 0; background: none; cursor: default; box-shadow: none; }
.dropzone.has-file > :not(.file-chip) { display: none; }
.file-chip {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface); text-align: left; box-shadow: var(--shadow-xs);
}
.file-chip .fc-icon { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--ok-weak); color: var(--ok); display: grid; place-items: center; flex: none; }
.file-chip .fc-name { display: block; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .fc-size { display: block; font-size: var(--fs-sm); color: var(--ink-3); }
.file-chip > span:nth-child(2) { flex: 1; min-width: 0; }
.upload-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.guide { font-size: var(--fs-sm); color: var(--ink-2); }
.guide h4 { margin: 0 0 8px; font-size: var(--fs-md); color: var(--ink); }
.guide ol { margin: 0 0 12px; padding-left: 18px; }
.guide li { margin-bottom: 6px; line-height: 1.5; }

/* ───────── 15. 설정 목록: 이름·한 줄 설명 | 입력 ───────── */
.settings { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.settings + .settings { margin-top: var(--sp-5); }
.settings-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.settings-head h2 { font-size: var(--fs-base); font-weight: 700; }
.settings-head p { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 2px; }
.setting-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 24px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row .label b { display: block; font-weight: 600; color: var(--ink); }
.setting-row .label p { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 2px; }
.setting-row .control { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.setting-row .control :is(input, select) { width: 100%; }
.setting-row .control .switch { align-self: flex-end; }
.setting-row .control .errorlist { align-self: stretch; }
.setting-row .control .value { color: var(--ink-2); font-size: var(--fs-md); text-align: right; }
.settings-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.inline-warn { display: inline-flex; align-items: center; gap: 6px; color: var(--warn); font-size: var(--fs-sm); font-weight: 600; }

/* ───────── 16. 로그인·2단계 인증 카드 ───────── */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card {
  width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: 36px 32px 32px;
}
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; text-align: center; }
.auth-brand img { height: 30px; width: auto; }
.auth-brand b { font-size: var(--fs-lg); font-weight: 700; color: var(--brand); letter-spacing: -0.3px; }
.auth-card h1 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.4px; text-align: center; }
.auth-card .auth-desc { color: var(--ink-3); font-size: var(--fs-md); text-align: center; margin-top: 6px; }
.auth-card form { margin-top: 24px; }
.auth-card .field input { width: 100%; min-height: 44px; font-size: var(--fs-base); }
.auth-card .code-input { text-align: center; font-size: 22px !important; letter-spacing: 0.4em; font-variant-numeric: tabular-nums; font-family: var(--mono); padding-left: 0.4em !important; }
.auth-card .check { font-size: var(--fs-md); margin: 4px 0 20px; }
.auth-card .btn { width: 100%; min-height: 44px; font-size: var(--fs-base); }
.auth-alt { margin-top: 18px; text-align: center; font-size: var(--fs-md); color: var(--ink-3); }
.auth-alt a { font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-foot { margin-top: 20px; font-size: var(--fs-sm); color: var(--ink-3); text-align: center; }
.auth-card .banner { margin: 16px 0 0; }
.auth-card .mfa-qr { margin-top: 20px; }
.code-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; list-style: none; padding: 14px; margin: 16px 0 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.code-list li { font-family: var(--mono); font-size: 15px; text-align: center; padding: 4px; letter-spacing: 0.08em; }

/* ───────── 17. 대시보드 ───────── */
.dash-filters {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 32px;
  background: var(--surface); border-bottom: 1px solid var(--line); margin: 0;
}
.dash-filters select {
  font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-2);
}
.dash-filters select:disabled { color: var(--ink-3); background: var(--bg); cursor: not-allowed; }
.dash-filters .btn { font-size: 14px; padding: 7px 12px; }
.dash-filters .note { margin: 0; flex-basis: 100%; }
.dash-main { padding: 24px 32px 48px; max-width: var(--dash-max); }
.qlabel { margin: 0 0 6px; font-size: 13px; color: var(--point-press); font-weight: 600; }
.area-dash h2{ margin: 0 0 4px; font-size: 19px; letter-spacing: -0.3px; }
.area-dash h3{ margin: 20px 0 8px; font-size: 15px; }
.basis { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }
.row2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.map {
  height: 380px; border-radius: var(--r-md); overflow: hidden; background: var(--chart-grid);
  position: relative; display: grid; place-items: center; color: var(--ink-3); font-size: 14px;
  text-align: center; padding: 20px; line-height: 1.6;
}
.chart { width: 100%; height: 280px; }
.chart-sm { height: 240px; }
.stat { font-size: 40px; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat small { font-size: 15px; color: var(--ink-3); font-weight: 400; margin-left: 8px; letter-spacing: 0; }
.suppressed {
  background: var(--surface-2); color: var(--ink-3); padding: 16px; border-radius: var(--r-sm);
  text-align: center; font-size: 14px;
}
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); margin: 6px 0 0; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 2px; display: inline-block; background: var(--chart-series); }
.legend i.muted-series { background: var(--chart-muted); }

/* ───────── 18. 인쇄 ───────── */
@media print {
  .no-print, .side, .app-header, .dash-filters, .toast-stack { display: none !important; }
  body { background: #fff; }
  .layout { display: block; }
  .main { padding: 0; }
}

/* ───────── 19. 브랜드 부품(시민·강사·대시보드) ───────── */
.brandbar { display: flex; align-items: center; gap: var(--sp-2); font-size: 14px; color: var(--ink-2); }
.brandbar .logo { height: 24px; width: auto; display: block; }
.brandbar .sep { color: var(--ink-3); }
.brandbar .count { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.dots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-3); }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-weak); }
.dots i.done { background: var(--brand); }
.dots i.now { background: var(--point); }

.ctx-citizen .eyebrow { color: var(--point); font-size: 16px; font-weight: 600; margin: var(--sp-8) 0 var(--sp-2); }
.ctx-citizen .question { font-size: 26px; line-height: 1.4; font-weight: 700; color: var(--brand); letter-spacing: -0.5px; margin: 0 0 var(--sp-6); }
.opt-pill { display: block; width: 100%; text-align: left; font: inherit; font-size: 20px; min-height: var(--opt-min-h); padding: 14px 24px; margin-bottom: 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); cursor: pointer; }
.opt-pill:hover { border-color: var(--point); }
.opt-pill.sel, .opt-pill[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.nav-pair { display: flex; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-6); }
.btn-pill { font: inherit; font-weight: 600; font-size: 19px; min-height: 58px; border-radius: var(--r-pill); border: 0; padding: 0 24px; cursor: pointer; background: var(--point); color: #fff; flex: 1; }
.btn-pill:hover { background: var(--point-hover); }
.btn-pill.outline { background: var(--surface); color: var(--brand); border: 2px solid var(--brand); flex: 0 0 34%; }
.btn-pill.outline:hover { background: var(--brand-weak); }
.btn-pill:disabled { background: var(--disabled); cursor: not-allowed; }
a.btn-pill { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.notice { border-radius: var(--r-lg); padding: var(--sp-5); font-size: 18px; line-height: 1.6; margin: var(--sp-4) 0; }
.notice.info { background: var(--point-weak); color: var(--brand); }
.notice.warn { background: var(--warn-weak); color: var(--warn); }
.notice.ok { background: var(--ok-weak); color: var(--ok); }
.notice b { display: block; font-size: 20px; margin-bottom: var(--sp-1); }

.hero { background: var(--brand); color: #fff; padding: 22px 20px 20px; }
.hero .brandbar { color: rgba(255,255,255,.85); }
.hero .brandbar .logo { height: 24px; }
.hero h1 { color: #fff; font-size: 26px; margin: 18px 0 4px; }
.hero .meta { font-size: 15px; color: rgba(255,255,255,.85); }
.hero .hero-end { margin: 0 0 0 auto; }
.hero .hero-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; color: rgba(255,255,255,.85); text-decoration: underline; cursor: pointer; }
.hero .brandbar span { min-width: 0; }
.hero .brandbar .one-line { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-session { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-3); color: var(--ink-2); text-decoration: none; }
.icon-btn { margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }

.att-head { display: flex; justify-content: space-between; align-items: baseline; margin: var(--sp-4) 0 var(--sp-2); }
.att-head b { font-size: 18px; color: var(--brand); }
.att-head span { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.att-row { display: flex; align-items: center; gap: var(--sp-2); padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 8px; background: var(--surface); }
.att-row.unknown { background: var(--point-weak); }
.att-row .nm { flex: 1; min-width: 0; font-size: 18px; }
.att-row .nm small { font-size: 13px; color: var(--point); margin-left: 6px; }
.att-btn { display: inline-flex; align-items: center; justify-content: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent; min-width: 64px; min-height: 48px; padding: 0 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.att-btn.present.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.att-btn.absent.on { background: var(--absent); border-color: var(--absent); color: #fff; font-weight: 700; }
.att-row .nm .save-state,
.save-state { color: var(--ok); font-size: 15px; font-weight: 600; margin-left: 6px; }
.add-dashed { min-height: 52px; touch-action: manipulation; width: 100%; border: 1.5px dashed var(--point); background: none; border-radius: var(--r-lg); padding: 14px; font: inherit; color: var(--point); cursor: pointer; margin-top: 4px; }
.add-row .add-dashed { margin-top: 0; }

.fid-card { background: var(--point-weak); border-radius: var(--r-lg); padding: var(--sp-4); margin-top: var(--sp-4); }
.fid-card summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 700; color: var(--brand); list-style: none; }
.fid-card summary span { font-weight: 400; font-size: 14px; color: var(--ink-2); }
.fid-item { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); font-size: 15px; }
.fid-item p { flex: 1; margin: 0; line-height: 1.4; }
.scale-dots { display: flex; gap: 6px; }
.scale-dots button { touch-action: manipulation; width: 44px; height: 48px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); font: inherit; cursor: pointer; }
.scale-dots button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.scale-dots button.na { width: auto; padding: 0 8px; font-size: 12px; color: var(--ink-3); }

.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); font: inherit; font-size: 18px; cursor: pointer; text-align: left; }
.choice.sel { border-color: var(--brand); background: var(--point-weak); font-weight: 700; color: var(--brand); }

.kiosk-bar { background: var(--gold-ink); color: #fff; font-size: 14px; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center; }
.kiosk-bar button { background: none; border: 1px solid rgba(255,255,255,.7); color: #fff; border-radius: var(--r-pill); padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }

.dash-shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }
.dash-head { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-4); padding: 14px 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dash-head .logo { height: 30px; }
.dash-head .title { font-weight: 700; color: var(--brand); font-size: 17px; padding-left: var(--sp-4); border-left: 1px solid var(--line); }
.dash-head .role { color: var(--ink-2); font-size: 14px; }
.dash-head .fresh { margin-left: auto; color: var(--ink-2); font-size: 13px; }
.dash-head form { margin: 0; }
.dash-head .logout { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 13px; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.dash-side { background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px; }
.dash-side a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; cursor: pointer; font-size: 14px; font-weight: 500; margin-bottom: 1px; }
.dash-side a:hover { background: var(--surface-3); color: var(--ink); }
.dash-side a.on { background: var(--point-weak); color: var(--point-press); font-weight: 600; }
.dash-body { padding: 24px 32px 48px; min-width: 0; }
.dash-body :where(.area-dash) .panel { margin-bottom: 0; }
.dash-body > :where(.area-dash) > * + * { margin-top: var(--sp-4); }
.dash-body :where(.area-dash) .panel h2 { margin: 0 0 4px; font-size: 17px; }
.filter-row { display: flex; gap: var(--sp-3); align-items: flex-end; flex-wrap: wrap; margin-bottom: var(--sp-5); }
.filter-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.filter-row select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); min-width: 120px; }
.filter-row input[type="date"] { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); }
.filter-row .btn { font-size: 14px; padding: 8px 14px; }
.filter-row .spacer { flex: 1; }
.filter-more { flex-basis: 100%; }
.filter-more > summary { display: inline-block; font-size: 13px; color: var(--point); cursor: pointer; }
.filter-more[open] > summary { margin-bottom: var(--sp-2); }
.filter-more .filter-row { margin-bottom: 0; }

.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-xs); }
.stat-tile .k { font-size: 13px; color: var(--ink-2); }
.stat-tile .v { font-size: 28px; font-weight: 700; color: var(--brand); margin: 6px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.stat-tile .d { font-size: 12.5px; color: var(--ink-3); }
.stat-tile .pending { font-size: 15px; }
.stat-tile .v.na { color: var(--ink-3); }
/* 등록 인원 옆 연결 대기·명단 외(표기만 나눔, v0.9.22b) */
.stat-tile .v .v-sub { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

/* 관리자 참여자 화면(강좌 기준): 강좌 정보 한 줄, 4칸 요약, 회차 출석 표시 */
.course-line { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0 0 var(--sp-3); color: var(--ink-2); font-size: var(--fs-sm); }
.course-line strong { color: var(--ink); font-size: var(--fs-md); }
.stat-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--sp-2); }
.stat-note { margin: 0 0 var(--sp-4); font-size: var(--fs-sm); color: var(--ink-2); }
.pm-att-marks, .pm-att-head { display: inline-flex; font-variant-numeric: tabular-nums; }
.pm-att-head { display: flex; margin-top: 2px; font-weight: 400; color: var(--ink-3); font-size: var(--fs-xs); }
.pm-att { display: inline-block; width: 20px; text-align: center; }
.pm-att-present { color: var(--ok); }
.pm-att-absent { color: var(--danger); }
.pm-att-unknown { color: var(--ink-2); }
.pm-att-before { color: var(--ink-4); }
.pm-att-off { color: var(--ink-4); opacity: .55; }
.pm-att-legend { margin-top: var(--sp-2); }

.program-card { background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: 20px 22px; margin-top: var(--sp-5); }
.program-card .tag { display: inline-block; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.16); border-radius: var(--r-pill); padding: 4px 12px; }
.program-card .title { font-size: 26px; font-weight: 700; margin: 12px 0 4px; letter-spacing: -0.5px; }
.program-card .place { font-size: 17px; color: rgba(255,255,255,.85); }

.purpose { font-size: 18px; line-height: 1.55; color: var(--ink); margin: var(--sp-6) 0 var(--sp-5); }
.purpose b { color: var(--brand); }
.purpose-sub { font-size: 16px; color: var(--ink-2); margin: calc(-1 * var(--sp-3)) 0 var(--sp-5); }

.info-list { display: flex; flex-direction: column; gap: 12px; margin-top: var(--sp-5); }
.info-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.info-item .label { display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand); background: var(--brand-weak); border-radius: var(--r-pill); padding: 3px 12px; margin-bottom: 8px; }
.info-item .value { font-size: 19px; line-height: 1.5; color: var(--ink); }
.info-item .value small { display: block; font-size: 15px; color: var(--ink-2); margin-top: 4px; }

.link-btn { background: none; border: 0; font: inherit; font-size: 17px; color: var(--point); text-decoration: underline; text-underline-offset: 3px; padding: 12px 0; cursor: pointer; align-self: center; }

.title-brand { color: var(--brand); }
.ctx-citizen .question.q-start { margin-top: var(--sp-6); }
/* 설문지 머리·부 제목·소제목·안내문(문항 위). */
.ctx-citizen .q-head { margin-top: var(--sp-5); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.ctx-citizen .q-head p { margin: 0; }
.ctx-citizen .q-title { font-size: 18px; font-weight: 700; color: var(--brand); }
.ctx-citizen .q-sub { font-size: 16px; color: var(--ink); margin-top: 2px !important; }
.ctx-citizen .q-lead { font-size: 15px; color: var(--ink-2); margin-top: 2px !important; }
.ctx-citizen .q-part { margin: var(--sp-5) 0 0; font-size: 15px; line-height: 1.5; color: var(--point); display: flex; flex-wrap: wrap; column-gap: 10px; }
.ctx-citizen .q-part b { font-weight: 700; }
.ctx-citizen .q-part span { color: var(--ink-2); }
.ctx-citizen .q-guide { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ctx-citizen .q-part + .question.q-start, .ctx-citizen .q-guide + .question.q-start { margin-top: var(--sp-4); }
.nav-pair.col { flex-direction: column; }
.nav-pair.col .btn-pill.outline { flex: auto; }
.ctx-citizen .done-mark svg { color: var(--brand); }
.grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-4); align-items: start; }
.col-stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.kv-2 { display: grid; grid-template-columns: 1fr 1fr; row-gap: 6px; column-gap: var(--sp-3); }
.kv-2 .muted { font-size: 13px; }
.kv-2 b { font-weight: 700; color: var(--ink); line-height: 1.5; }

.qr-box { width: 100%; max-width: 244px; aspect-ratio: 1; margin: var(--sp-6) auto; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); display: grid; place-items: center; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; display: block; }
.input-link { width: 220px; max-width: 100%; }

.legend-dots { display: flex; gap: var(--sp-4); font-size: 13px; color: var(--ink-2); margin: 0 0 var(--sp-3); }
.legend-dots span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; box-sizing: border-box; }
.legend-dots .pre::before { border: 2px solid var(--brand); background: var(--surface); }
.legend-dots .post::before { background: var(--brand); }
.chart-empty { min-height: 240px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--ink-2); font-size: 14px; text-align: center; padding: var(--sp-4); }
.chart-empty.sm { min-height: 150px; }
.chart-xs { height: 190px; }
.tbl-toggle { margin-top: var(--sp-3); }
.tbl-toggle > summary { font-size: 13px; color: var(--point); cursor: pointer; }
.tbl-toggle[open] > summary { margin-bottom: var(--sp-2); }
.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.count-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin: 0; }
.count-list > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.count-list dt { font-size: 13px; color: var(--ink-2); }
.count-list dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }

/* 강사 계정 링크 칸 */
.link-cell { max-width: 280px; }
.link-copy-text {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: none; border: 0; padding: 0; font: inherit; font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  cursor: pointer; text-align: left;
}
.link-copy-text:hover { color: var(--point); }

/* ───────── 20. 반응형 ───────── */
@media (max-width: 1100px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .qgrid, .count-list { grid-template-columns: 1fr 1fr; }
  .dash-shell { grid-template-columns: 1fr; }
  .dash-head { padding: 12px 16px; flex-wrap: wrap; gap: 6px var(--sp-3); }
  .dash-head .logo { height: 24px; }
  .dash-head .title { font-size: 15px; padding-left: var(--sp-3); }
  .dash-head .fresh { margin-left: 0; }
  .dash-side { display: flex; overflow-x: auto; gap: 4px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dash-side a { flex: none; white-space: nowrap; padding: 8px 12px; }
  .dash-body { padding: 16px 16px 40px; }
  .upload-grid { grid-template-columns: 1fr; }
  .grid-aside { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .row2 { grid-template-columns: 1fr; }
  .dash-main, .dash-filters { padding-left: 16px; padding-right: 16px; }
  .grid2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .app-header { padding: 0 12px; }
  .app-top { gap: 8px; }
  .nav-toggle { display: inline-grid; }
  .app-brand b { display: none; }
  .app-top .title { display: none; }
  .user-menu .who { display: none; }
  .layout { grid-template-columns: 1fr; background: none; }
  .side {
    position: fixed; top: var(--top-h); left: 0; bottom: 0; height: auto; z-index: 70; width: min(280px, 84vw);
    transform: translateX(-100%); transition: transform 0.22s var(--ease); box-shadow: var(--shadow-lg);
  }
  body.nav-open .side { transform: none; }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: var(--top-h) 0 0 0; z-index: 65; background: var(--overlay); }
  .main { padding: 20px 16px 48px; }
  .page-head { margin-bottom: var(--sp-5); }
  .page-head h1 { font-size: var(--fs-xl); }
  .page-actions { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 110px 1fr; }
  .kind-list { grid-template-columns: 1fr; }
  .setting-row { grid-template-columns: 1fr; gap: 10px; }
  .setting-row .control { align-items: stretch; }
  .setting-row .control .value { text-align: left; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
  .toolbar .count { margin-left: 0; }
  .panel { padding: 16px; }

  /* 표 → 카드: 머리글 문구는 ui.js가 각 칸의 data-label로 옮긴다 */
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table){ border: 0; background: none; box-shadow: none; overflow: visible; }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .table{ background: none; }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .table thead{ display: none; }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .table tbody tr{
    display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 6px 14px; margin-bottom: 10px; box-shadow: var(--shadow-xs); position: relative;
  }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .table tbody tr:hover > td{ background: none; }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .table td{
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 16px;
    padding: 8px 0; border-bottom: 1px solid var(--line); text-align: right; min-width: 0; white-space: normal;
  }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .table td .cell-sub{ flex-basis: 100%; }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .table td:last-child{ border-bottom: 0; }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .table td::before{
    content: attr(data-label); flex: none; max-width: 45%; text-align: left; color: var(--ink-3); font-size: var(--fs-sm); font-weight: 500;
  }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .table td:not([data-label])::before,
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .table td[data-label=""]::before{ display: none; }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .table td[colspan]{ display: block; text-align: left; }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .table td.col-actions{ justify-content: flex-end; width: auto; }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .table td .chips,
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .table td .badge-row{ justify-content: flex-end; }
  :is(.ctx-admin, .area-admin) .tbl.keep-table{ overflow-x: auto; }
  :is(.ctx-admin, .area-admin) .tbl.keep-table .table th,
  :is(.ctx-admin, .area-admin) .tbl.keep-table .table td{ white-space: nowrap; }
}
@media (max-width: 600px) {
  .qgrid, .count-list { grid-template-columns: 1fr; }
  .filter-row label { flex: 1 1 40%; }
  .filter-row select { min-width: 0; width: 100%; }
  .map { height: 220px; }
  .app-top .fresh { font-size: 12px; text-align: right; }
}
@media (max-width: 480px) {
  .auth-wrap { justify-content: flex-start; padding: 24px 12px; }
  .auth-card { padding: 28px 20px 24px; border-radius: var(--r-lg); }
  .stepper li { padding-right: 8px; }
}

/* ───────── 강사 화면(휴대폰) — 누르기 쉬운 크기·간격, 글자 17px 이상 ───────── */
.ctx-instructor .btn,
.ctx-instructor .btn-pill,
.ctx-instructor .seg > label,
.ctx-instructor .seg > button { min-height: 48px; touch-action: manipulation; }
.ctx-instructor .btn { font-size: 17px; }
.ctx-instructor .seg > label { display: flex; align-items: center; justify-content: center; font-size: 17px; }
.ctx-instructor .card { padding: 16px 18px; margin-bottom: 12px; }
.ctx-instructor .card-meta,
.ctx-instructor .att-head span,
.ctx-instructor .fid-card summary span,
.ctx-instructor .btn-text { font-size: 17px; }
.ctx-instructor .fid-item { font-size: 17px; flex-wrap: wrap; }
.ctx-instructor .fid-item p { flex: 1 1 100%; }
.ctx-instructor .scale-dots { flex-wrap: wrap; }
.ctx-instructor .scale-dots button.na { font-size: 15px; }
.ctx-instructor .radio-list label { font-size: 17px; min-height: 48px; }
.ctx-instructor .input,
.ctx-instructor .textarea { font-size: 17px; min-height: 48px; }
.ctx-instructor .note { font-size: 16px; }
.ctx-instructor .att-row { padding: 10px 12px 10px 16px; margin-bottom: 10px; gap: 8px; }
.ctx-instructor .att-row .bd { font-size: 14px; }
.ctx-instructor .foot { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.foot-hint { font-size: 16px; color: var(--ink-2); text-align: center; margin: 0 0 8px; }
.ctx-instructor .field-label,
.ctx-instructor .att-btn,
.ctx-instructor .card-meta { font-size: 17px; }

/* ───────── 시민 설문(휴대폰) — 한 줄 진행 표시, 하단 고정 이전·다음 ───────── */
.progress-line { height: 4px; border-radius: 2px; background: var(--brand-weak); margin-top: var(--sp-3); overflow: hidden; }
.progress-line i { display: block; height: 100%; background: var(--brand); border-radius: 2px; transition: width 0.2s var(--ease); }
.ctx-citizen .brandbar .count { white-space: nowrap; font-size: 16px; }
.ctx-citizen .opt-pill { min-height: 56px; touch-action: manipulation; }
.nav-pair.nav-fixed {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  max-width: var(--phone-max); margin: 0 auto;
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.nav-pair.nav-fixed .btn-pill { touch-action: manipulation; }
/* 고정 버튼(58px)+위아래 여백만큼 본문 아래를 비워 마지막 선택지가 가리지 않게 한다. */
.form-fill.has-fixed-nav { padding-bottom: calc(58px + 40px + env(safe-area-inset-bottom)); }

/* ───────── 참여자 동의서(C01) — 항목별 카드, 질문은 큰 선택 버튼 ───────── */
.consent-title { font-size: 22px; line-height: 1.4; color: var(--brand); margin: var(--sp-5) 0 var(--sp-3); letter-spacing: -0.4px; }
.consent-title span { display: block; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.consent-intro { font-size: 17px; line-height: 1.6; color: var(--ink); margin: 0 0 var(--sp-4); }
.consent-items { display: flex; flex-direction: column; gap: 10px; margin: 0 0 var(--sp-6); }
.consent-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.consent-item dt { font-size: 16px; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.consent-item dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.consent-item dd + dd { margin-top: 6px; }
.consent-q { border: 0; padding: 0; margin: 0 0 var(--sp-5); min-width: 0; }
.consent-q legend { font-size: 19px; font-weight: 700; line-height: 1.45; color: var(--brand); padding: 0; margin-bottom: 12px; }
.opt-radio { position: relative; display: flex; align-items: center; }
.opt-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-radio:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.opt-radio:has(input:focus-visible) { outline: 3px solid var(--point); outline-offset: 2px; }
.consent-foot { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: var(--sp-4) 0 0; }

/* 대리 입력 완료 화면 상단 띠 — 곧 다음 분 화면으로 돌아간다는 안내 */
.kiosk-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--sp-4); padding: 12px 14px; border-radius: var(--r-lg); background: var(--point-weak); color: var(--brand); font-size: 16px; line-height: 1.4; }
.kiosk-next .btn { flex: none; min-height: 44px; font-size: 15px; }

/* 인벤토리 표 — 한 줄 아이콘 동작 버튼, 행 높이 48~56px */
.table-compact th,
.table-compact td { padding: 8px 12px; }
.table-compact .cell-sub { display: inline; margin-left: 6px; }
.row-actions { display: inline-flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.row-actions .btn-icon { width: 36px; height: 36px; }
.btn-icon.danger:hover { background: var(--danger-weak); color: var(--danger); }
.btn-icon:disabled { opacity: 0.4; cursor: not-allowed; }

/* ───────── 강사 회차 화면(출석 / 설문 / 운영 기록 탭) ─────────
   화면 높이 한 칸: 상단 머리·하단 탭은 고정, 가운데만 스크롤.
   출석 요약 줄은 가운데 스크롤 안에서 위에 붙는다. */
.sess { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.sess-top { display: flex; align-items: center; gap: var(--sp-2); background: var(--brand); color: #fff; padding: 12px 12px 12px 16px; flex: none; }
.sess-back { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: #fff; }
.sess-title { flex: 1; min-width: 0; }
.sess-title h1 { color: #fff; font-size: 20px; margin: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sess-title .meta { font-size: 14px; color: rgba(255,255,255,.85); }
.sess-title .one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sess-body { flex: 1; overflow-y: auto; padding: 0 16px 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sess-body::-webkit-scrollbar { display: none; } /* 스크롤은 되고 막대만 숨김(휴대폰 화면처럼) */
.sess-body > section > .banner { margin-top: 12px; }
.att-tools { display: flex; align-items: center; gap: 6px; }
.att-tools .input { flex: 1; min-width: 0; min-height: 44px; }
.att-row.compact { padding: 6px 8px 6px 14px; margin-bottom: 6px; }
.att-row.compact .att-btn { min-height: 44px; min-width: 60px; }
.toast-inline { background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 10px 14px; margin-bottom: 10px; font-size: 15px; }
.survey-open { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 12px; font-size: 16px; }
.survey-open b { font-size: 20px; color: var(--brand); }
.survey-counts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.survey-counts > div { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.survey-counts span { font-size: 14px; color: var(--ink-3); }
.survey-counts b { font-size: 22px; }
.fid-progress { position: sticky; top: 0; z-index: 2; background: var(--surface); display: flex; align-items: center; justify-content: space-between; padding: 12px 0 8px; border-bottom: 1px solid var(--line); font-size: 17px; }
.fid-area { margin-top: 18px; }
.fid-area-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--brand); font-size: 17px; margin-bottom: 6px; }
.fid-area-head b { font-size: 15px; color: var(--ink-2); }
.fid-q { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fid-q p { margin: 0 0 10px; font-size: 16px; line-height: 1.5; }
.fid-area-head { gap: 10px; }
.fid-area-head b { flex: none; }
.fid-q p.fid-domain { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.fid-foot { margin-top: var(--sp-4); }
.fid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fid-opt { min-height: 56px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.fid-opt b { font-size: 18px; line-height: 1.1; }
.fid-opt.na b { font-size: 15px; }
.fid-opt small { font-size: 12px; color: var(--ink-3); }
.fid-opt.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.fid-opt.on small { color: rgba(255,255,255,.85); }
/* 하단 탭(2026-10-30 디자인 확정 시안 "강사 홈"): 반투명 흰 바, 고른 탭만 남색·채운 아이콘·굵은 글자.
   아이콘은 sprite의 tab-* — 고르면 --ic-fill(채움)·--ic-mark(안쪽 표시 흰색)를 넘긴다. */
.tabbar { flex: none; display: flex; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tabbar button { flex: 1; min-width: 0; min-height: 64px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.tabbar button.on { color: var(--brand); font-weight: 800; --ic-fill: currentColor; --ic-mark: var(--surface); --ic-qr-last: none; --ic-clip: var(--surface); }
/* 탭 아이콘 + 할 일 표시(출석 = 미확인 인원, 운영 기록 = 미제출 점) */
.tab-ic { position: relative; width: 56px; height: 32px; display: flex; align-items: center; justify-content: center; }
.tab-ic .icon { width: 27px; height: 27px; }
.tab-badge { position: absolute; top: -2px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: var(--r-pill); background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.tab-dot { position: absolute; top: 2px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
/* 머리 ⋯ 버튼, 취소·연기 표시, 오늘이 아닌 회차 머리·띠 */
.more-btn { flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.45); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.more-btn .icon { width: 24px; height: 24px; }
.sess-flag { flex: none; padding: 3px 10px; border-radius: var(--r-pill); background: var(--warn-weak); color: var(--warn); border: 1px solid var(--warn-line); font-size: 13px; font-weight: 700; white-space: nowrap; }
.sess-top.past { background: #5b4a26; } /* 지난 회차: 갈색 머리(흰 글자 대비 8.9) */
.when-band { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 0 16px; min-height: 44px; font-size: 15px; font-weight: 600; }
.when-band.past { background: #fff4d6; color: #6b4a00; border-bottom: 1px solid var(--warn-line); }
.when-band.future { background: var(--point-weak); color: var(--point-press); border-bottom: 1px solid var(--point-line); }
.when-band a { flex: none; min-height: 44px; display: inline-flex; align-items: center; color: inherit; font-weight: 800; text-decoration: underline; white-space: nowrap; }
/* ⋯ 메뉴 */
.menu-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.menu-head b { font-size: 18px; color: var(--brand); }
.menu-head span { font-size: 14px; color: var(--ink-3); }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); width: 100%; min-height: 54px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.menu-row em { font-style: normal; font-size: 15px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.menu-row.quiet { color: var(--ink-3); font-weight: 500; border-bottom: 0; }
.menu-sheet form { margin: 0; }
.sheet-sub { margin: -8px 0 14px; font-size: 15px; color: var(--ink-3); }
.sheet-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: var(--phone-max); background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 90dvh; overflow-y: auto; }
.sheet h2 { margin: 0 0 14px; font-size: 20px; }
.sheet .seg > button { min-height: 48px; }

/* 회차 QR 첫 화면 두 갈래 버튼 */
.choice-stack { display: flex; flex-direction: column; gap: var(--sp-3); }
.choice-stack .entry-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; min-height: 64px; font-size: 20px; flex: none; }
.identity-heading { font-size: 24px; margin: 24px 0 0; }
.att-row .nm .tag { font-size: 12px; margin-left: 6px; padding: 1px 6px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); }
.att-row .nm .tag.qr { background: var(--point-weak); color: var(--point-press); }
.att-row .nm .tag.declined { background: var(--warn-weak); color: var(--warn); }

/* 강사 화면 홈 탭: 오늘 수업 큰 카드 + 다른 회차 목록 */
.home-title { font-size: 18px; margin: 16px 0 10px; color: var(--brand); }
.card-today { padding: 18px 18px 16px; }
.card-today .card-title { font-size: 22px; }
.card-today.sel, .session-row.sel { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.card-count { font-size: 16px; color: var(--ink-2); margin: 6px 0 4px; }
.card-count b { font-size: 20px; color: var(--ink); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin-top: 14px; }
.card-actions .btn { min-height: 52px; font-size: 17px; }
.sess-top form { flex: none; margin: 0; }
.session-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.session-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); min-height: 48px; }
.session-row .when { font-weight: 600; color: var(--brand); }
.session-row .what { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-row .badges { grid-column: 1 / -1; }
.session-row.past { background: var(--surface-2); }
.session-row.past .when { color: var(--ink-3); }
.qr-actions { display: flex; gap: var(--sp-2); margin-top: 12px; }
.qr-actions .btn { flex: 1; min-height: 56px; font-size: 17px; }
.fid-q.missing { background: var(--warn-weak); border-radius: var(--r-md); padding-left: 8px; padding-right: 8px; }
.h-note { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 6px; }

/* 시민 화면 틀(.screen)은 세로 flex라, 그 바로 아래 둔 .btn-pill(flex: 1)이 세로로 늘어나
   큰 타원이 된다. 버튼은 .nav-pair 안에 두고, 실수로 바로 둬도 늘어나지 않게 막는다. */
.screen > .btn-pill { flex: none; min-height: 58px; }
.fid-done { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 58px; justify-content: center; padding: 12px 16px; border-radius: var(--r-lg); background: var(--surface-3); color: var(--ink-2); text-align: center; }
.fid-done b { font-size: 17px; color: var(--ink); }
.fid-done span { font-size: 14px; }
.fid-progress .bd { margin-left: 8px; }

/* QR 종류 구분(출석 = 남색, 사후 설문 = 주황)과 회차 날짜·회차 크게. */
.qr-kind { display: inline-block; width: fit-content; align-self: flex-start; margin: var(--sp-5) 0 0; padding: 6px 14px; border-radius: var(--r-pill); font-size: 18px; font-weight: 800; color: #fff; background: var(--brand); }
.qr-kind.post { background: var(--post); }
.session-big { margin: var(--sp-3) 0 var(--sp-2); font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: -0.4px; }
.btn.btn-post, .btn-pill.btn-post { background: var(--post); border-color: var(--post); color: #fff; }
.btn.btn-post-line { background: var(--surface); border: 1.5px solid var(--post); color: var(--post); }
.qr-head { text-align: center; margin-top: var(--sp-4); display: flex; flex-direction: column; align-items: center; }
.qr-head .qr-kind { align-self: center; }
.qr-head .qr-kind { font-size: 22px; padding: 8px 20px; }
.qr-head .session-big { font-size: 28px; }
.confirm-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.confirm-sheet .sheet-body { width: 100%; max-width: 480px; background: var(--surface); border-radius: 18px 18px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
.confirm-sheet p { font-size: 18px; line-height: 1.5; margin: 0 0 18px; color: var(--ink); }
.confirm-sheet .nav-pair { padding-top: 0; }
.confirm-sheet[hidden] { display: none; }
.inline-form { display: inline; }

/* C02 제출: 마지막 화면의 큰 [제출하기], 전송 중 전체 화면 안내 */
.btn-pill.btn-submit { min-height: 64px; font-size: 21px; }
.notice .btn-pill { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.send-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, 0.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.send-overlay-box { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 28px 24px; text-align: center; max-width: 360px; width: 100%; }
.send-overlay-box b { display: block; font-size: 22px; margin-top: 12px; }
.send-overlay-box p { font-size: 19px; margin: 6px 0 0; }
.send-spinner { display: inline-block; width: 40px; height: 40px; border: 4px solid var(--disabled); border-top-color: var(--point); border-radius: 50%; animation: send-spin 0.9s linear infinite; }
@keyframes send-spin { to { transform: rotate(360deg); } }

/* ───────────── 강의 일정 공용(짧은 라벨·배지·말줄임) ───────────── */
/* 긴 글자는 말줄임 + title(마우스 올리면 전체) — 잘린 글자가 보이지 않게. */
.trunc { display: block; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-bottom: var(--sp-2); }
.dv-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dv-legend .sq-brand { background: var(--brand); } .dv-legend .sq-light { background: var(--point-line); }
.dv-legend .sq-muted { background: var(--chart-muted); } .dv-legend .sq-gold { background: var(--gold); }
.dv-legend .sq-post { background: var(--post); }
.dv-legend .ln-brand, .dv-legend .ln-muted, .dv-legend .ln-gold, .dv-legend .ln-ok, .dv-legend .ln-bad { width: 14px; height: 3px; border-radius: 2px; vertical-align: 3px; }
.dv-legend .ln-brand { background: var(--brand); } .dv-legend .ln-muted { background: var(--chart-muted); }
.dv-legend .ln-gold { background: repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 7px); }
.dv-legend .ln-ok { background: var(--ok); } .dv-legend .ln-bad { background: var(--bad); }
.dv-legend .dot-brand, .dv-legend .dot-muted, .dv-legend .dot-off, .dv-legend .dot-none { border-radius: 50%; }
.dv-legend .dot-brand { background: var(--brand); } .dv-legend .dot-muted { background: var(--chart-muted); }
.dv-legend .dot-off { background: var(--line-strong); } .dv-legend .dot-none { border: 1px solid var(--line-strong); background: none; }
.dv-badge { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dv-badge.trunc { display: inline-block; vertical-align: middle; max-width: 180px; }
.dv-badge.b-ok { background: var(--ok-weak); color: var(--ok); } .dv-badge.b-bad { background: var(--bad-weak); color: var(--bad); }
.dv-badge.b-mid { background: var(--surface-3); color: var(--ink-2); } .dv-badge.b-pt { background: var(--point-weak); color: var(--point); }
.dv-badge.b-gold, .dv-badge.b-post { background: var(--gold-weak); color: var(--gold-ink); }
.dv-badge.b-now { background: var(--ok-weak); color: var(--ok); } .dv-badge.b-next { background: var(--point-weak); color: var(--point); }
.dv-badge.t-a { background: var(--brand-weak); color: var(--brand); } .dv-badge.t-b { background: var(--point-weak); color: var(--point); }
.dv-badge.t-c { background: var(--surface-3); color: var(--ink-2); } .dv-badge.t-d { background: var(--gold-weak); color: var(--gold-ink); }
.dv-badge.b-done { background: var(--surface-3); color: var(--ink-3); }
/* ───────────── 강의 일정(관리자, 조회 전용 — docs/mockups/schedule_view.html) ───────────── */
.sv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px 20px; margin-bottom: var(--sp-4); box-shadow: var(--shadow-xs); }
.sv-card h3 { margin: 0 0 12px; font-size: 15px; }
.sv-card h3 small { color: var(--ink-3); font-weight: 500; font-size: 15px; }
.sv-cardhead { display: flex; align-items: flex-end; gap: var(--sp-3); flex-wrap: wrap; }
.sv-cardhead .dv-legend { margin-left: auto; margin-bottom: 14px; }
.sv-legend .bridge { background: var(--brand); } .sv-legend .gen { border: 2px solid var(--point); background: var(--surface); }
.sv-legend .warn { outline: 2px dashed var(--overlap-line); outline-offset: 0; }
.sv-legend .done { background: var(--brand); border-radius: 50%; } .sv-legend .left { border: 2px solid var(--brand); background: var(--surface); border-radius: 50%; }
.sv-legend .last { border: 2px solid var(--gold); background: var(--surface); transform: rotate(45deg); border-radius: 2px; }
.sv-legend .post { width: 18px; height: 8px; border-radius: 99px; background: var(--dh-gold, var(--gold)); opacity: .55; }
.sv-postband { position: absolute; top: 34px; height: 12px; min-width: 6px; border-radius: 99px; background: var(--dh-gold, var(--gold)); opacity: .55; z-index: 1; }
/* 「2차 설문」 글자는 띠 밖 별도 요소(띠 투명도에 묻히지 않게). 위치는 schedule.py가 정함 — 띠 끝 바로 뒤에
   오늘 선이 있으면 오늘 선 오른쪽(E9). 바탕을 깔아 선·막대 위에서도 읽히게. */
.sv-postlabel { position: absolute; top: 31px; margin-left: 6px; padding: 0 3px; border-radius: 4px; background: var(--surface); font-size: 11px; font-weight: 700; line-height: 1.3; color: var(--gold-ink); white-space: nowrap; z-index: 3; }
.sv-gr .lb small { display: block; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; } /* 부제 줄바꿈(말줄임 없음) */
.sv-gr .lb .sv-gname { min-width: 0; overflow-wrap: anywhere; }
.sv-fold > summary { cursor: pointer; list-style: none; }
.sv-fold > summary::-webkit-details-marker { display: none; }
.sv-fold > summary h3::before { content: "▸ "; color: var(--ink-4); }
.sv-fold[open] > summary h3::before { content: "▾ "; }
.sv-cal .dh-card { margin-bottom: var(--sp-4); }
.sv-page .sv-cardhead .sv-legend .post { width: 18px; height: 8px; border: 0; border-radius: 99px; }
.sv-today { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-3); }
.sv-tc { border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 18px; position: relative; overflow: hidden; min-width: 0; }
.sv-tc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.sv-tc .t { font-size: 22px; font-weight: 700; letter-spacing: -.02em; padding-right: 64px; }
.sv-tc .n { font-weight: 650; margin-top: 4px; display: flex; gap: 6px; align-items: center; min-width: 0; }
.sv-tc .n .trunc { flex: 0 1 auto; }
.sv-tc .m { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.sv-tc .st { position: absolute; right: 12px; top: 12px; }
.sv-scroll { overflow-x: auto; }
.sv-tt { display: grid; border-top: 1px solid var(--line); padding-bottom: 12px; }
.sv-tt .h { padding: 8px 6px; text-align: center; font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--line); background: var(--surface); }
.sv-tt .h small { display: block; color: var(--ink-4); font-weight: 500; font-size: 11px; }
.sv-tt .h.on { color: #fff; background: var(--brand); border-radius: 10px 10px 0 0; }
.sv-tt .h.on small { color: rgba(255, 255, 255, .8); }
.sv-ov { display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 700; color: var(--overlap-ink); background: var(--overlap-weak); border-radius: var(--r-pill); padding: 1px 7px; }
.sv-tt .h.on .sv-ov { background: var(--surface); }
.sv-col { position: relative; border-left: 1px solid var(--surface-3); }
.sv-col.on { background: var(--point-weak); }
.sv-hours { position: relative; }
.sv-hours span { position: absolute; right: 6px; transform: translateY(-6px); font-size: 11px; color: var(--ink-4); }
.sv-gl { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--surface-3); }
.sv-ev { position: absolute; border-radius: var(--r-md); padding: 6px 8px; color: #fff; font-size: 12px; line-height: 1.35; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--c); }
.sv-ev b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-ev.has-ov b { padding-right: 46px; }
.sv-ev .s { opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-ev.gen { background: var(--surface); color: var(--ink); border: 2px solid var(--c); }
.sv-ev.warn { outline: 2px dashed var(--overlap-line); outline-offset: 1px; }
.sv-ovtag { position: absolute; right: 6px; top: 6px; font-size: 10px; font-weight: 700; background: rgba(255, 255, 255, .9); color: var(--overlap-ink); border-radius: var(--r-pill); padding: 1px 6px; }
.sv-ev.gen .sv-ovtag { background: var(--overlap-weak); }
.sv-nowline { position: absolute; left: 0; right: 0; border-top: 2px solid var(--now-line); z-index: 3; }
.sv-nowline::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--now-line); }
.sv-gantt { min-width: 760px; }
.sv-gr { display: grid; grid-template-columns: 250px 1fr; align-items: center; border-bottom: 1px solid var(--surface-3); min-height: 52px; }
.sv-gr .lb { min-width: 0; padding-right: 10px; }
.sv-gr .lb b { display: flex; gap: 6px; align-items: center; font-size: 13.5px; min-width: 0; }
.sv-gr .lb small { color: var(--ink-3); font-size: 12px; }
.sv-track { position: relative; height: 52px; margin-right: 24px; }
.sv-bar { position: absolute; top: 22px; height: 8px; border-radius: 99px; background: var(--surface-3); }
.sv-bar i { display: block; height: 100%; border-radius: 99px; background: var(--c); }
.sv-dot { position: absolute; z-index: 3; top: 16px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; border: 2px solid var(--c); background: var(--surface); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--c); box-sizing: border-box; }
.sv-dot.done { background: var(--c); color: #fff; }
.sv-dot.last { border-radius: 5px; transform: rotate(45deg); border-color: var(--gold); color: var(--gold-ink); }
.sv-dot.last.done { background: var(--gold); color: #fff; }
.sv-dot.last span { transform: rotate(-45deg); }
.sv-axis { display: grid; grid-template-columns: 250px 1fr; }
.sv-ticks { position: relative; height: 26px; border-bottom: 1px solid var(--line); margin-right: 24px; }
.sv-ticks span { position: absolute; font-size: 11px; color: var(--ink-4); transform: translateX(-50%); white-space: nowrap; }
.sv-todayv { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--now-line); z-index: 2; }
.sv-ticks .sv-todayv::after { white-space: nowrap; content: "오늘"; position: absolute; top: -2px; left: 4px; font-size: 11px; color: var(--now-line); font-weight: 700; }

/* ───────────── v0.9.9u: 강사 [삭제]·QR 안내·시민 확인 ───────────── */
.att-del { flex: none; border: 0; background: none; padding: 8px 6px; font: inherit; font-size: 14px; color: var(--ink-3); text-decoration: underline; cursor: pointer; }
.att-del:hover { color: var(--danger); }
.btn-pill.danger { background: var(--danger); }
.btn-pill.danger:hover { background: var(--danger-hover); }
.confirm-sheet p small { display: block; margin-top: 6px; font-size: 15px; }
.qr-help { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.identity-confirm { font-size: var(--fs-citizen); line-height: 1.5; margin: 0 0 24px; }
.identity-confirm b { color: var(--brand); }

/* ───────────── v0.9.9v: 강좌 구분 배지·시민 카드 강사명·QR 버튼 ───────────── */
.kind-badge { display: inline-flex; align-items: center; flex: none; vertical-align: middle; margin-left: 6px; padding: 1px 8px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.kind-badge.kind-bridge { background: var(--brand); color: #fff; }
.kind-badge.kind-general { background: var(--surface); color: var(--ink-3); border: 1px solid var(--line-strong); }
.program-card .place.trunc { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-pair.col > form { display: block; width: 100%; }
.nav-pair.col > form .btn-pill, .nav-pair.col > .btn-pill { width: 100%; flex: none; }
.sv-ev b { display: flex; align-items: center; gap: 4px; min-width: 0; }
.sv-ev b .kind-badge { margin-left: 2px; font-size: 10px; padding: 0 6px; }
.sv-ev:not(.gen) .kind-badge.kind-bridge { background: rgba(255, 255, 255, .22); }
.sv-tc .n .kind-badge, .sv-gr .lb .kind-badge { margin-left: 0; }
.chk-line { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.chk-line input { width: 20px; height: 20px; margin: 0; }

/* ───────── 강사 출석 탭: QR 출석 상태 띠, 필터 칩, 도구 줄, 명단 편집(제외) ───────── */
.att-band { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin: 12px 0 0; padding: 4px 12px; min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); font-size: 15px; font-weight: 600; }
.att-band.live { background: var(--ok-weak); color: var(--ok); border-color: var(--ok-line); }
.att-band .dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 2px; }
.att-band a { flex: none; min-height: 44px; display: inline-flex; align-items: center; color: inherit; font-weight: 800; text-decoration: underline; white-space: nowrap; }
.att-band .btn { flex: none; min-height: 40px; }
.att-filter { position: sticky; top: 0; z-index: 2; display: flex; flex-direction: column; gap: 8px; background: var(--surface); padding: 12px 0 10px; margin-bottom: 8px; }
.att-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.att-chip { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; touch-action: manipulation; }
.att-chip b { font-size: 20px; line-height: 1.2; color: var(--ink); }
.att-chip.on { border-color: var(--brand); background: var(--brand-weak); color: var(--brand); font-weight: 700; }
.att-chip.on b { color: var(--brand); }
.tool-btn { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--point-line); border-radius: var(--r-md); background: var(--point-weak); color: var(--point-press); font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tool-btn.solid { background: var(--point); border-color: var(--point); color: #fff; }
.att-tools:not(.has-search) .tool-btn { flex: 1; }
.att-found { margin: 0; font-size: 14px; color: var(--ink-3); }
.empty-done { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 12px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty-done b { color: var(--ink); font-size: 17px; }
.empty-done .tool-btn { margin-top: 8px; }
.edit-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 12px 0 8px; padding: 6px 8px 6px 14px; border-radius: var(--r-md); background: var(--brand-weak); color: var(--brand); font-size: 16px; font-weight: 700; }
.edit-bar .btn { min-height: 40px; }
.edit-hint { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.att-row.editing { padding-left: 4px; min-height: 56px; }
.ex-btn { flex: none; position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.ex-btn::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--danger); }
.ex-btn::after { content: ""; position: absolute; left: 17px; right: 17px; top: 21px; height: 2px; border-radius: 1px; background: #fff; }
.ex-btn:disabled { cursor: not-allowed; }
.ex-btn:disabled::before { background: var(--line-strong); }
.att-row .nm .ex-why { display: block; margin-left: 0; font-size: 13px; color: var(--ink-3); }
.confirm-sheet .sheet-note { margin: -8px 0 16px; font-size: 15px; color: var(--ink-2); }
/* 화면 안 알림(모두 출석 표시, 운영 기록 제출): 스크롤 위치와 상관없이 탭 바로 위에 뜬다. */
.toast-float { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: calc(100% - 32px); max-width: calc(var(--phone-max) - 32px); z-index: 40; background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 12px 14px; font-size: 15px; box-shadow: var(--shadow-sm); }
/* 홈 탭 다음 수업·지난 수업 묶음: 해당 회차가 없으면 제목째 숨긴다. */
.home-group:not(:has(li)) { display: none; }
/* 홈 탭 다음 수업·지난 수업: 제목(summary)을 눌러 접고 펼친다. */
.home-group > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 6px; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.home-group > summary::-webkit-details-marker { display: none; }
.home-group > summary .fold { width: 22px; height: 22px; color: var(--ink-3); transition: transform 0.15s var(--ease); }
.home-group:not([open]) > summary .fold { transform: rotate(-90deg); }
.home-group > summary .home-title { margin: 0; }
.card-today .card-meta + .card-meta { margin-top: 0; }
/* 강사 화면 버튼 모양 통일(C4): 모달 버튼(.btn-pill)까지 모서리 10px 둥근 사각형.
   상태를 나타내는 작은 배지(.bd, .kind-badge, .sess-flag)는 알약 모양 그대로 둔다. 시민 화면은 바꾸지 않는다. */
.ctx-instructor .btn,
.ctx-instructor .btn-pill,
.ctx-instructor .tg { border-radius: var(--r-md); }
/* 강사 화면 모달의 보조 버튼(닫기·취소): 2px 남색 테두리 대신 다른 보조 버튼과 같은 1px 회색 테두리. */
.ctx-instructor .btn-pill.outline { border: 1px solid var(--line-strong); color: var(--ink); }
/* QR 탭: 상태마다 카드 하나(상태 배지 + 설명 + 버튼 하나), 응답 수 카드. */
.qr-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.qr-card.live { background: var(--ok-weak); border-color: var(--ok-line); }
.qr-card.post { background: var(--post-weak); border-color: var(--post); }
.qr-card-head { display: flex; align-items: center; justify-content: space-between; align-self: stretch; gap: var(--sp-2); }
.qr-card-head b { font-size: 18px; color: var(--ink); }
.qr-card p { margin: 0; font-size: 16px; color: var(--ink-2); }
.qr-card form { align-self: stretch; margin-top: 4px; }
.qr-card .btn-sm { min-height: 44px; padding: 0 16px; }
.bd.bd-post { background: var(--post); color: #fff; border-color: var(--post); }
.qr-count { display: flex; align-items: baseline; gap: 8px; font-size: 16px; color: var(--ink-2); }
.qr-count span:first-child { width: 40px; }
.qr-count b { font-size: 22px; color: var(--ink); }
/* 운영 기록 탭: 5~1 한 줄(양 끝에만 선택지 이름), "해당 없음"은 문항 오른쪽 위 칩,
   답한 문항은 한 줄로 접고, 진행 수와 [제출하기]는 탭 바로 위에 고정. 문구·값 코딩은 그대로. */
.fid-q { padding: 10px 0; }
.fid-q-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fid-q-head p { flex: 1; margin: 0 0 8px; }
.fid-grid { grid-template-columns: repeat(5, 1fr); }
.fid-grid .fid-opt { min-height: 52px; font-size: 18px; font-weight: 700; }
.fid-opt.na { flex: none; min-height: 36px; padding: 0 12px; border-width: 1px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--ink-3); }
.fid-opt.na.on { color: #fff; }
.fid-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.fid-q.folded { padding: 4px 0; border-bottom: 0; }
.fid-fold { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: var(--r-md); background: var(--surface-2); font: inherit; font-size: 16px; color: var(--ink-2); text-align: left; cursor: pointer; }
.fid-fold .tnum { flex: none; font-weight: 700; color: var(--ink-3); }
.fid-fold-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fid-fold b { flex: none; color: var(--brand); }
.fid-progress { position: static; flex: none; display: block; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); border-bottom: 0; background: var(--surface); }
.fid-progress .field-error { margin: 0 0 6px; }
.fid-progress-row { display: flex; align-items: center; gap: 10px; }
.fid-progress-row b { font-size: 17px; }
.fid-progress-row .fid-submit { flex: 1; min-height: 52px; margin-left: auto; font-size: 17px; }
.fid-submit.pending { background: var(--line-strong); color: var(--ink-2); }
.fid-progress .fid-done { min-height: 0; padding: 8px 12px; }
/* 마지막 문항 아래는 하단 고정 줄의 윗선과 겹치므로 선을 뺀다. */
.fid-area:last-of-type > .fid-q:last-of-type { border-bottom: 0; }
/* 문항 머리: 질문이 한 줄이어도 [해당 없음] 칩과 숫자 버튼 사이가 붙지 않게, 간격은 머리 줄 전체 아래에 둔다. */
.fid-q-head { align-items: flex-start; margin-bottom: 10px; }
.fid-q-head p { margin: 0; padding-top: 5px; }
/* 저장 표시 아이콘: 저장 중 = 작은 스피너, 저장됨 = 초록 체크(잠깐 뒤 사라짐). */
.save-ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; }
.save-ic .spin { width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; animation: save-spin 0.8s linear infinite; }
.save-ic.ok { color: var(--ok); }
.save-ic.ok .icon { width: 20px; height: 20px; stroke-width: 3; }
@keyframes save-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .save-ic .spin { animation-duration: 2s; } }
/* 강사 강좌 QR 화면(I05): 강좌명 크게, 상태 칩 두 개, QR은 좌우 여백만 남기고 크게(다른 화면의 .qr-box는 그대로). */
.pqr-title { margin: 16px 0 8px; font-size: 26px; font-weight: 800; line-height: 1.3; color: var(--brand); text-align: center; letter-spacing: -0.4px; }
.pqr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.qr-box.pqr-box { max-width: 360px; margin: 16px auto; padding: 10px; }
.nav-pair.col .qr-help { margin: 0 0 4px; text-align: center; }
/* 강사 화면 머리 띠: 로고 이미지는 점 아이콘이 위로 솟아 글자(Amanut)가 아래쪽에 있다.
   상자 기준 가운데 정렬이면 옆 글자가 로고 글자보다 높아 보이므로, 글자 가운데를 로고 글자 가운데에 맞춰 살짝 내린다. */
.ctx-instructor .brandbar > span { line-height: 1; transform: translateY(1.5px); }
/* 강사 화면 주 버튼은 메인(남색). 청록은 보조 버튼(.tool-btn 옅은 바탕)·링크에만. 색 값은 tokens.css. */
.ctx-instructor .btn:not(.btn-sub):not(.btn-post):not(.btn-post-line),
.ctx-instructor .btn-pill:not(.outline):not(.danger):not(.btn-post),
.ctx-instructor .tool-btn.solid { background: var(--brand); border-color: var(--brand); }
.ctx-instructor .btn:not(.btn-sub):not(.btn-post):not(.btn-post-line):hover,
.ctx-instructor .btn-pill:not(.outline):not(.danger):not(.btn-post):hover { background: var(--brand-hover); }
.ctx-instructor .btn:not(.btn-sub):not(.btn-post):not(.btn-post-line):active,
.ctx-instructor .btn-pill:not(.outline):not(.danger):not(.btn-post):active { background: var(--brand-press); }
.ctx-instructor .btn-pill:disabled { background: var(--disabled); }
.ctx-instructor .fid-progress .btn-pill.fid-submit.pending { background: var(--line-strong); color: var(--ink-2); }
/* QR 탭 카드의 열림 배지: 옅은 초록 카드 위에서 묻히지 않게 채운 모양(사후 설문 열림 배지와 같은 형식). */
.qr-card-head .bd.bd-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.qr-card-head .bd { font-weight: 500; }
/* 강사 화면 하단 창(⋯ 메뉴, 수업 취소·연기, 진행 시간, 모두 출석·제외 확인, 열기 확인):
   열릴 때 바탕은 서서히 어두워지고 창은 아래에서 위로 올라온다. x-show·hidden으로 display가
   none에서 바뀔 때마다 애니메이션이 다시 시작된다. 움직임 줄이기 설정이면 끈다. */
.ctx-instructor .sheet-backdrop,
.ctx-instructor .confirm-sheet { animation: sheet-fade 0.2s ease-out; }
.ctx-instructor .sheet-backdrop > .sheet,
.ctx-instructor .confirm-sheet > .sheet-body { animation: sheet-up 0.28s var(--ease); }
@keyframes sheet-fade { from { background-color: transparent; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .ctx-instructor .sheet-backdrop,
  .ctx-instructor .confirm-sheet,
  .ctx-instructor .sheet-backdrop > .sheet,
  .ctx-instructor .confirm-sheet > .sheet-body { animation: none; }
}
/* 홈 목록에서 보고 있는 회차는 다시 누르면 선택 해제(오늘 수업으로). 오늘 카드도 누르면 오늘 수업으로. */
.card-today.switchable { cursor: pointer; }
.card-today.switchable:active { background: var(--surface-2); }
/* 홈 다음·지난 수업 목록: 강좌 종류 배지(일반·Bridge)는 줄 오른쪽 위 끝에, 강좌명·회차는 왼쪽에 이어서. */
.session-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.session-row > .kind-badge { justify-self: end; margin-left: 0; }

/* ───────── 시민 화면 개선(2026-10-19 시민 개선안) ───────── */
/* 끝 화면 공통 틀(D1·D2·P3): 가운데 한 덩어리. ① 결과(큰 체크 + 가장 큰 글씨) ② 누가 무엇을 ③ 참고(작은 회색). */
.ctx-citizen .end-screen { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 8px 8px; }
.ctx-citizen .end-screen.compact { padding-top: 28px; }
.ctx-citizen .end-mark { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; background: var(--ok-weak); border: 2px solid var(--ok-line); color: var(--ok); }
.ctx-citizen .end-mark.info { background: var(--point-weak); border-color: var(--point-line); color: var(--point); }
.ctx-citizen .end-mark svg { width: 38px; height: 38px; }
.ctx-citizen .end-title { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.35; color: var(--ink); letter-spacing: -0.4px; }
.ctx-citizen .end-meta { margin: 10px 0 0; font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--ink-2); }
.ctx-citizen .end-note { margin-top: 28px; font-size: 16px; line-height: 1.7; color: var(--ink-3); }
.ctx-citizen .end-note p { margin: 0; }
.ctx-citizen .end-next { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.ctx-citizen .end-next p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); text-align: center; }
.ctx-citizen .end-next p b { display: block; font-size: 19px; color: var(--brand); }
.ctx-citizen .end-next .btn-pill { display: flex; align-items: center; justify-content: center; text-decoration: none; min-height: 58px; }
/* 첫 화면(P1): 입력칸 위 할 일 한 문장 */
.ctx-citizen .entry-lead { margin-bottom: 4px; font-size: 20px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.ctx-citizen .entry-lead b { color: var(--brand); }
.ctx-citizen .entry-sub { margin: 0; font-size: 17px; color: var(--ink-2); }
/* 동의서(P2·N1·N2) */
.ctx-citizen .consent-check { display: flex; flex-direction: column; gap: 4px; margin-top: var(--sp-4); padding: 14px 16px; border: 1px solid var(--warn-line); border-radius: var(--r-lg); background: var(--warn-weak); color: #6b4a00; font-size: 16px; line-height: 1.55; }
.ctx-citizen .consent-check b { font-size: 17px; }
.ctx-citizen .consent-check a { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; color: inherit; font-weight: 800; text-decoration: underline; }
.ctx-citizen .consent-q.missing { margin-left: -10px; margin-right: -10px; padding: 12px 10px 2px; border: 2px solid var(--absent); border-radius: var(--r-lg); background: #fdf3ef; }
.ctx-citizen .consent-q-miss { margin: -6px 0 10px; font-size: 16px; font-weight: 700; color: var(--absent); }
/* 설문(Q1~Q4) */
.ctx-citizen .q-head { padding: 12px 14px; border: 0; border-radius: var(--r-lg); background: var(--surface-3); }
.ctx-citizen .q-tip { margin: 10px 0 12px; padding: 8px 12px; border-radius: var(--r-md); background: var(--point-weak); color: var(--point-press); font-size: 16px; }
.ctx-citizen .opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ctx-citizen .opt-grid .opt-pill { margin-bottom: 0; padding: 10px 12px; text-align: center; font-size: 19px; }
.ctx-citizen .btn-pill.dim { background: var(--disabled); }
.ctx-citizen .q-need { position: fixed; left: 50%; bottom: calc(58px + 36px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; margin: 0; padding: 10px 16px; border-radius: var(--r-md); background: var(--ink); color: #fff; font-size: 17px; white-space: nowrap; }
.ctx-citizen .brandbar .count { color: var(--brand); font-weight: 800; font-size: 18px; }
.ctx-citizen .progress-line { height: 6px; border-radius: 3px; background: var(--line); }
.ctx-citizen .consent .nav-fixed .btn-pill.outline { flex: 1; }  /* 답 전 [아래 질문에 답해 주세요 ↓]는 한 줄 전체 폭 */
/* 시민 화면 버튼·선택지 모양(시민 개선안, 강사 화면 C4와 같은 결정): 알약 대신 모서리 10px 둥근 사각형.
   나란히 놓인 버튼·선택지의 칸이 또렷하게 나뉜다. 상태 배지는 알약 그대로. */
.ctx-citizen .btn-pill,
.ctx-citizen .opt-pill { border-radius: var(--r-md); }
/* 수업 없는 날(P3, A안): 화면 가운데 한 덩어리. 강좌명 작게 → 결과 한 줄 크게 → 다음 수업 상자. */
.ctx-citizen .noclass { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 56px 0 0; }
.ctx-citizen .noclass p { margin: 0; }
.ctx-citizen .noclass-course { font-size: 16px; color: var(--ink-2); }
.ctx-citizen .noclass-title { margin: 14px 0 0; font-size: 30px; font-weight: 800; line-height: 1.35; letter-spacing: -0.5px; color: var(--ink); }
/* 다음 수업 카드(B안): 왼쪽 달력 칸 + 오른쪽 날짜·시간. */
.ctx-citizen .noclass-next { align-self: stretch; display: flex; align-items: center; gap: 14px; margin-top: 32px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); text-align: left; }
.ctx-citizen .noclass-next .cal { flex: none; width: 60px; height: 60px; border-radius: var(--r-md); background: var(--point-weak); color: var(--point-press); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ctx-citizen .noclass-next .cal span { font-size: 13px; font-weight: 700; }
.ctx-citizen .noclass-next .cal b { font-size: 24px; font-weight: 800; }
.ctx-citizen .noclass-next .when { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ctx-citizen .noclass-next .when > span { font-size: 15px; color: var(--ink-3); }
.ctx-citizen .noclass-next .when b { font-size: 20px; font-weight: 800; color: var(--ink); }
.ctx-citizen .noclass-hint { margin-top: 10px !important; font-size: 15px; color: var(--ink-3); }
/* 시민 화면 위쪽 여백: 결과 화면(끝 화면·수업 없는 날)은 남은 높이 가운데보다 조금 위에 놓고,
   입력 화면(첫 화면·동의서)은 머리줄과 본문 사이를 넓힌다. 설문 문항 화면은 그대로(질문에 자리를 준다). */
.ctx-citizen .screen > .end-screen,
.ctx-citizen .screen > .noclass { margin-top: auto; margin-bottom: auto; padding-top: 0; padding-bottom: 12vh; }
.ctx-citizen .screen > .brandbar + .entry-head,
.ctx-citizen .screen > .brandbar + .form-fill.consent { margin-top: 28px; }
/* 성함·뒤 4자리 입력 화면의 제목 머리: 무엇을 하는 화면인지(출석·사후 설문)를 가장 크게, 그 아래 날짜·회차. */
.ctx-citizen .entry-head { margin-top: 28px; }
.ctx-citizen .entry-title { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.3; letter-spacing: -0.5px; color: var(--ink); }
.ctx-citizen .entry-date { margin: 4px 0 0; font-size: 20px; font-weight: 700; color: var(--brand); }
/* 출석 첫 화면(2026-10-19 사용자 시안): 머리(요일·날짜 | 회차·출석) → 강좌 카드 → 안내 한 줄 → 입력 → 아래 고정 버튼. */
.ctx-citizen .att-entry-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; }
.ctx-citizen .att-entry-head > div { display: flex; flex-direction: column; font-size: 24px; line-height: 32px; color: var(--ink); }
.ctx-citizen .att-entry-head .when { font-weight: 700; }
.ctx-citizen .att-entry-head .what { align-items: flex-end; text-align: right; font-weight: 400; color: var(--ink-2); }
.ctx-citizen .att-entry-card { margin-top: 18px; padding: 24px 16px; border-radius: var(--r-md); background: var(--brand); color: #fff; }
.ctx-citizen .att-entry-card .name { padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .35); font-size: 22px; font-weight: 700; line-height: 30px; }
.ctx-citizen .att-entry-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ctx-citizen .att-entry-card li { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; line-height: 26px; }
.ctx-citizen .att-entry-card li .icon { width: 22px; height: 22px; flex: none; opacity: .85; }
.ctx-citizen .att-entry-card li span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-citizen .att-entry-lead { margin: 18px 0 0; font-size: 18px; word-break: keep-all; line-height: 27px; color: var(--ink-2); text-align: left; }
.ctx-citizen .att-entry-form { flex: 1; display: flex; flex-direction: column; margin-top: 34px; }
.ctx-citizen .att-entry-form .field-label { margin: 0 0 8px; font-size: 20px; font-weight: 600; color: var(--ink-2); }
.ctx-citizen .att-entry-form .input-lg { height: 52px; min-height: 0; padding: 0 14px; font-size: 18px; margin: 0 0 16px; border-radius: var(--r-md); }
.ctx-citizen .att-entry-form .att-entry-submit { flex: none; min-height: 56px; margin-top: auto; font-size: 22px; }
.ctx-citizen .att-entry-lead b { font-weight: 700; color: var(--ink); }
/* 시민 화면 머리줄의 화면 이름(출석·참여자 동의서·설문 등): 14px은 너무 작아 키운다. 진행 수(.count)는 따로. */
.ctx-citizen .brandbar > span:not(.count) { font-size: 17px; font-weight: 600; color: var(--ink-2); line-height: 1; transform: translateY(2.5px); }  /* 로고 글자(Amanut) 가운데에 맞춤 */
.ctx-citizen .consent-title span { margin-top: 4px; font-weight: 400; }  /* 제목 아래 사업명(보통 굵기) */
.ctx-citizen .consent-title { margin-bottom: 22px; }  /* 제목 영역(제목·사업명) 아래 여백 */
.ctx-citizen .consent-title + .consent-intro { margin-bottom: 26px; }  /* 소개 문단 아래 여백(맺음말 문단은 그대로) */
.ctx-citizen .consent-item dt { font-size: 18px; margin-bottom: 8px; }  /* 항목 제목(개인정보 수집·이용 등)을 본문(16px)보다 한 단계 크게 */
.ctx-citizen .question.q-start + .q-tip { margin-top: -4px; }  /* 질문과 화면용 안내 사이 34px → 20px */
.ctx-citizen .btn-pill.outline { border-width: 1px; }  /* 보조 버튼(이전 등) 테두리 2px → 1px, 색은 그대로 */
.ctx-citizen .q-part { font-size: 18px; }  /* 부 제목(1부. 기본 사항 등) 15px → 18px, 아래 부 안내(16px)보다 크게 */
/* 부 제목 옆 소제목: 네모(■) 대신 옅은 세로 막대로 구분 → "1부. … | 사람들과 지내면서" */
.ctx-citizen .q-part .q-group { display: inline-flex; align-items: center; }
.ctx-citizen .q-part .q-group::before { content: ""; width: 1.5px; height: 0.9em; margin-right: 10px; background: var(--line-strong); }
.kiosk-exit-lead { margin: 8px 0 20px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }  /* 대리 입력 종료 화면 안내 한 줄 */

/* ── 대시보드 공통 개선(2026-10-20, 대시보드 개선안 G1~G4) ── */
/* G4: 좌측 메뉴 주제 묶음 이름(눌리지 않는 작은 회색 글씨) */
.dash-side .dash-side-group { margin: 16px 12px 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.dash-side a { display: flex; align-items: center; gap: 6px; }
/* G2: 산출식 확정 전 화면 "준비 중" */
.dash-side .soon { margin-left: auto; flex: none; font-size: 11px; font-weight: 500; line-height: 18px; color: var(--ink-3); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 0 7px; }
/* G1: 본문 맨 위 화면 제목 + 답하는 행정질문 */
.dash-page-head { display: grid; gap: 8px; }
.dash-title { margin: 0; font-size: 22px; font-weight: 700; color: var(--brand); letter-spacing: -0.3px; line-height: 1.3; }
.dash-qs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dash-qs li { font-size: 13px; color: var(--point-press); background: var(--point-weak); border-radius: var(--r-sm); padding: 3px 10px; }
.dash-qs li b { margin-right: 6px; font-weight: 700; }
.dash-qs li.plain { background: none; color: var(--ink-3); padding: 0; }
@media (max-width: 1100px) {
  .dash-side .dash-side-group { display: none; }  /* 좁은 화면: 메뉴가 가로 스크롤 탭이 되므로 묶음 이름은 뺀다 */
  .dash-side .soon { margin-left: 4px; }
}
@media (max-width: 768px) {
  .dash-title { font-size: 19px; }
}

/* ── D01 정책 요약(2026-10-20, 대시보드 개선안 G2·S3) ── */
/* G2: 잔존율(값 있음)을 넓게, 내년도 참고 자료는 좁게 */
.summary-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .summary-main { grid-template-columns: 1fr; } }
/* S3: 내년도 참고 — 항목 이름 위, 값 아래로 쌓는다(좁은 칸에서 두 열이 엇갈리지 않게) */
.ref-list { margin: 12px 0 0; display: grid; gap: 14px; }
.ref-list dt { font-size: 13px; color: var(--ink-3); }
.ref-list dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); line-height: 1.5; }
.ref-list dd .na { font-weight: 500; }
/* G2: 산출식 확정 전 지표 — 큰 빈 상자 대신 한 줄 띠 */
.soon-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); color: var(--ink-3); font-size: 13px; }
.soon-strip b { color: var(--ink); font-size: 14px; }
.soon-strip .soon { font-size: 11px; font-weight: 500; line-height: 18px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 0 7px; }

/* ── 대시보드 글자 크기 단계(2026-10-20 사용자 기준, PC) ──
   보통 16px · 작은 글씨 14px · 뱃지처럼 작은 칸 13px · 제목은 보통보다 크게(화면 제목 26, 패널 제목 20, 소제목 18).
   관리자 화면과 같이 쓰는 클래스(.table·.st·.na 등)는 .ctx-dash 안에서만 바꾼다. */
body.ctx-dash { font-size: 16px; }
/* 머리줄 */
.ctx-dash .app-brand b { font-size: 16px; }
.ctx-dash .app-top .title { font-size: 16px; }
.ctx-dash .app-top .fresh { font-size: 14px; }
.ctx-dash .user-menu .who b { font-size: 14px; }
.ctx-dash .user-menu .who small { font-size: 13px; }
.area-dash .menu-label{ font-size: 13px; }
/* 좌측 메뉴 */
.ctx-dash .dash-side a { font-size: 16px; }
.ctx-dash .dash-side .dash-side-group { font-size: 14px; }
.ctx-dash .dash-side .soon { font-size: 12px; line-height: 20px; }
/* 화면 제목·질문 */
.area-dash .dash-title{ font-size: 26px; }
.area-dash .dash-qs li{ font-size: 14px; padding: 4px 10px; }
.area-dash .dash-qs li.plain{ padding: 0; }  /* 질문이 없는 화면(데이터 품질)의 안내 글은 칩이 아니라 글씨만 */
/* 패널·표 */
.area-dash h2,
.dash-body .area-dash .panel h2{ font-size: 20px; }
.area-dash h3{ font-size: 18px; }
.area-dash .h-note{ font-size: 14px; }
.area-dash .basis,
.area-dash .note,
.area-dash .legend-dots,
.area-dash .tbl-toggle > summary{ font-size: 14px; }
.area-dash .table{ font-size: 16px; }
.area-dash .table th{ font-size: 14px; }
.area-dash .table .cell-sub,
.area-dash .table td.layer{ font-size: 14px; }
.area-dash .mono,
.area-dash .legend,
.area-dash .st,
.area-dash .na{ font-size: 14px; }
.area-dash .kind-badge{ font-size: 13px; }
.area-dash .chart-empty{ font-size: 16px; }
.area-dash .empty .empty-desc{ font-size: 14px; }
/* 핵심 수치 */
.area-dash .stat-tile .k{ font-size: 16px; }
.area-dash .stat-tile .v{ font-size: 30px; }
.area-dash .stat-tile .d{ font-size: 14px; }
.area-dash .count-list dt{ font-size: 14px; }
.area-dash .count-list dd{ font-size: 24px; }
/* 정책 요약: 내년도 참고·준비 중 띠 */
.area-dash .ref-list dt{ font-size: 14px; }
.area-dash .ref-list dd{ font-size: 16px; }
.area-dash .soon-strip{ font-size: 14px; }
.area-dash .soon-strip b{ font-size: 16px; }
.area-dash .soon-strip .soon{ font-size: 12px; line-height: 20px; }

/* ── 운영 묶음(2026-10-20, 대시보드 개선안 O1·Q1·Q2) ── */
/* O1: 패널 제목 줄(지도 자리 없이 표만) */
.dash-panel-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.dash-panel-head h2 { margin: 0; }
/* Q2: 기록 회차 3회 미만 — 숫자 회색 + "기록 적음" */
.fid-avg tr.thin td.num { color: var(--ink-3); }
.few-badge { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: 13px; font-weight: 500; line-height: 20px; color: var(--ink-3); white-space: nowrap; }
/* Q4 2안(운영품질 9항목 표): 머리행 한 줄 = 번호 + 짧은 항목 이름, A·B는 머리 칸 위 색 띠(청록·남색)와 5번·6번 사이 세로선 */
.area-dash .fid-avg th.item{ text-align: center; vertical-align: bottom; white-space: normal; min-width: 5em; cursor: help; }
.fid-avg th.item small { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink-2); }
.fid-avg td.num { text-align: center; }
.fid-avg th.ga { box-shadow: inset 0 4px 0 var(--area-a); }
.fid-avg th.gb { box-shadow: inset 0 4px 0 var(--area-b); }
.fid-avg .gend { border-right: 1px solid var(--line-strong); }
.fid-legend { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-3); }
.fid-legend span::before { content: ""; display: inline-block; width: 16px; height: 4px; margin-right: 6px; border-radius: 2px; vertical-align: middle; background: var(--area-a); }
.fid-legend .gb::before { background: var(--area-b); }
/* 1안: 대응표 A·B 구분 줄 */
.fid-pairs td.lay { font-weight: 700; color: var(--brand); background: var(--surface-2); }

/* ── 참여 실태 묶음(2026-10-20, 대시보드 개선안 R1·R2·P1) ── */
/* R1: 잔존율 차트 오른쪽 강좌 목록(마우스를 올리면 그 선 강조, 누르면 고정) */
.q2-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: start; }
.q2-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 300px; overflow-y: auto; }
.q2-legend button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: var(--r-sm); background: none; font: inherit; font-size: 14px; color: var(--ink-2); text-align: left; cursor: pointer; }
.q2-legend button i { flex: none; width: 16px; height: 2px; border-radius: 1px; background: var(--chart-muted); }
.q2-legend button:hover,
.q2-legend button:focus-visible,
.q2-legend button[aria-pressed="true"] { background: var(--brand-weak); color: var(--brand); font-weight: 600; }
.q2-legend button:hover i,
.q2-legend button:focus-visible i,
.q2-legend button[aria-pressed="true"] i { height: 3px; background: var(--brand); }
/* 다른 강좌에 마우스를 올린 동안에는 고정된 강좌 표시를 옅게 */
.q2-legend.hovering button[aria-pressed="true"]:not(.hover) { background: none; color: var(--ink-2); font-weight: 400; }
.q2-legend.hovering button[aria-pressed="true"]:not(.hover) i { height: 2px; background: var(--chart-muted); }
@media (max-width: 1100px) { .q2-wrap { grid-template-columns: 1fr; } .q2-legend { max-height: none; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
/* R2: 유입경로 3/4 + 처음 참여 1/4 카드, 큰 숫자 + 한 줄 100% 막대 */
.row-3-1 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
@media (max-width: 1100px) { .row-3-1 { grid-template-columns: 1fr; } }
.area-dash .row-3-1 .stat{ font-size: 36px; color: var(--brand); line-height: 1.1; }
.split-bar { display: flex; height: 12px; margin-top: 12px; border-radius: 3px; overflow: hidden; background: var(--chart-muted); }
.split-bar i { display: block; background: var(--brand); }
.split-legend { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.split-legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; background: var(--chart-muted); }
.split-legend li.on::before { background: var(--brand); }
/* P1: 참여자 구성 거주지 패널 — 전체 폭 + 막대를 두 열로 나눠 간격 넓힘 */
.qgrid > .qgrid-wide { grid-column: 1 / -1; }
.chart-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6, 32px); }
@media (max-width: 768px) { .chart-split { grid-template-columns: 1fr; } }
/* P2(2안): 참여자 구성 배치 — 연령대·가구 반반 / 거주지 전체 / 참여 활동·유입경로·처음 참여 세 칸 */
.qgrid.comp-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.comp-grid > .panel { grid-column: span 3; }
.comp-grid > .qgrid-wide { grid-column: 1 / -1; }
.comp-grid > .qgrid-third { grid-column: span 2; }
.area-dash .comp-grid .stat{ font-size: 36px; color: var(--brand); line-height: 1.1; }
@media (max-width: 1100px) { .comp-grid > .qgrid-third { grid-column: span 3; } }
@media (max-width: 768px) { .qgrid.comp-grid { grid-template-columns: 1fr; } .comp-grid > .panel, .comp-grid > .qgrid-third { grid-column: 1 / -1; } }
/* 참여자 구성: 같은 줄 카드 높이가 달라도 [표 보기]는 카드 맨 아래에 */
.comp-grid { align-items: stretch; }
.comp-grid > .panel { display: flex; flex-direction: column; }
.comp-grid > .panel > .tbl-toggle { margin-top: auto; padding-top: 12px; }

/* ── 성과 묶음(2026-10-20, 대시보드 개선안 G2 적용: 과정경험·변화 신호) ── */
/* 산출식 확정 전: 빈 표 대신 가운데 안내 카드 하나 */
.area-dash .soon-card{ display: grid; justify-items: center; gap: 12px; padding: 56px 24px; text-align: center; }
.soon-card .soon { font-size: 13px; font-weight: 500; line-height: 22px; color: var(--ink-3); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 0 10px; }
.area-dash .soon-card h2{ margin: 0; }
.soon-card p { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.soon-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.soon-list li { font-size: 14px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 12px; }

/* 좌측 메뉴 고정(2026-10-20): 머리줄처럼 본문을 내려도 메뉴가 그 자리에 남는다.
   sticky는 머리줄 높이(56px + 아래 테두리 1px)와 페이지 높이의 소수점 때문에 스크롤할 때 1px 안팎 흔들려서 fixed로 둔다.
   메뉴는 흐름에서 빠지므로 본문을 둘째 칸에 직접 놓는다. PC 너비에서만 — 1100px 이하는 위쪽 가로 탭이라 그대로. 메뉴가 화면보다 길면 메뉴만 따로 스크롤. */
@media (min-width: 1101px) {
  .dash-side { position: fixed; top: calc(var(--top-h) + 1px); bottom: 0; left: 0; width: var(--side-w); overflow-y: auto; z-index: 20; }
  .dash-shell > .dash-body { grid-column: 2; }
}

/* ── 대시보드 필터(2026-10-20, 대시보드 개선안 공통: 필터 F1~F6) ── */
/* F4: 한 줄 필터 — 이름표(작은 회색)를 칸 안 앞쪽에, 고른 값은 청록 굵게. 테두리는 바깥 칸(label)에 두고
   선택 상자는 이름표 오른쪽에 테두리 없이 둔다(선택 상자 안에 여백을 두면 펼친 목록까지 밀려 보여서).
   이름표를 눌러도 목록이 열린다(dashboard.js). 필터 줄은 카드로 감싸지 않고 화면 바탕에 둔다. */
.dash-filter-form { display: grid; gap: 10px; margin-top: 12px; }  /* 질문 줄(Q1·Q2…)과 필터 줄 사이 */
@media print { .dash-filter-form { display: none !important; } }
.nf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nf { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-left: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.nf-k { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.nf select { field-sizing: content; min-width: 3em; }  /* 고른 값 길이에 맞춰 칸 폭을 줄여 필터를 한 줄에(지원 브라우저) */
/* 테두리·화살표는 바깥 칸(.nf, .nf::after) 하나만. 선택 상자는 브라우저 기본 모양을 끄고 테두리·바탕·화살표를 모두 지운다
   (관리자 화면 입력칸 규칙이나 브라우저별 꾸밈 선택 상자 구현이 안쪽 테두리·화살표를 한 겹 더 그리지 않게, 선택자를 한 단계 높임). */
.dash-filter-form .nf select { -webkit-appearance: none; -moz-appearance: none; appearance: none; height: 38px; min-height: 0; max-width: 200px; padding: 0 32px 0 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; background-image: none; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer; text-overflow: ellipsis; outline: none; }
.dash-filter-form .nf select::-ms-expand { display: none; }
.nf::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.nf:hover { border-color: var(--ink-3); }
.nf:focus-within { outline: 2px solid var(--point); outline-offset: 1px; }
.nf.on { border-color: var(--point); background: var(--point-weak); }
.dash-filter-form .nf.on select { color: var(--point-press); font-weight: 700; }
.nf.on .nf-k { color: var(--point); }
.nf.on::after { border-color: var(--point); }
.dash-filter-form .nf.nf-wide select { max-width: 260px; }
/* F2: [상세 필터] 버튼 + 작은 창(운영상태 단추·기간). details라 스크립트 없이도 열린다. */
.nf-pop { position: relative; margin-left: auto; }  /* 개선안 시안대로 [상세 필터]는 필터 줄 오른쪽 끝 */
.nf-pop > summary { list-style: none; }
.nf-pop > summary::-webkit-details-marker { display: none; }
.nf-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid var(--brand); border-radius: var(--r-sm); background: var(--surface); font-size: 16px; font-weight: 600; color: var(--brand); cursor: pointer; white-space: nowrap; }
.nf-btn.on, .nf-pop[open] > .nf-btn { background: var(--brand-weak); }
.nf-pop .pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 420px; max-width: calc(100vw - 32px); display: grid; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.pop .pg { margin: 0; padding: 0; border: 0; min-width: 0; }
.pop .pl { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.pop .pseg { display: flex; flex-wrap: wrap; gap: 6px; }
.pop .pseg label { position: relative; }
.pop .pseg input { position: absolute; opacity: 0; pointer-events: none; }
.pop .pseg span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); cursor: pointer; }
.pop .pseg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pop .pseg input:focus-visible + span { outline: 2px solid var(--point); outline-offset: 2px; }
.pop .pdates { display: flex; gap: 8px; margin-top: 10px; }
.nf-pop.ready:not(.custom) .pdates { display: none; }  /* 스크립트가 있으면 "직접 선택"일 때만 날짜 칸 */
.pop .pdates label { display: grid; gap: 4px; font-size: 14px; color: var(--ink-3); }
.pop .pdates input { font: inherit; font-size: 16px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); }
.pop .pa { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pop .pa .lnk2 { background: none; border: 0; padding: 4px; font: inherit; font-size: 14px; color: var(--ink-3); text-decoration: underline; cursor: pointer; }
.pop .pa .btn { font-size: 16px; padding: 8px 18px; }
/* F3: 적용된 필터 칩(✕로 하나씩) + [모두 초기화]. 관리자 화면의 .chip(역할 표시)과 겹치지 않게 fchip */
.fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 12px; border-radius: var(--r-pill); background: var(--point-weak); font-size: 14px; color: var(--point-press); }
.fchip button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 12px; color: inherit; cursor: pointer; }
.fchip button:hover, .fchip button:focus-visible { background: var(--point-line); }
.chips-reset { margin-left: 6px; font-size: 14px; font-weight: 600; color: var(--ink-3); text-decoration: underline; }
/* F6: 결과가 없을 때 빈 상태 아래 칩 */
.empty .fchips { justify-content: center; margin-top: 12px; }
@media (max-width: 768px) {
  .nf-row .nf { flex: 1 1 45%; }
  .dash-filter-form .nf select, .dash-filter-form .nf.nf-wide select { flex: 1; min-width: 0; max-width: none; }
}
/* 필터 펼친 목록: 꾸밀 수 있는 선택 상자(appearance: base-select)는 쓰지 않는다(v0.9.14b). 이 기능을 초기 구현으로
   지원하는 브라우저에서 선택 상자 안쪽 테두리·화살표가 한 겹 더 그려져서, 모든 브라우저에서 기본 목록을 쓴다. */
/* /t 기관 선택: 지난 수업 카드(.session-row)에 라디오를 넣은 모양. 선택된 카드는 .sel과 같은 표시. */
.session-row:has(input[type="radio"]) { cursor: pointer; grid-template-columns: auto minmax(0, 1fr); }
.session-row input[type="radio"] { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.session-row:has(input[type="radio"]:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

/* ── 성과 대시보드 v3(docs/mockups/dashboard_v3.html) — 기존 패널·표·배지·stat-tile 위에 꼭 필요한 것만 ── */
.stat-row.stat-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-tile .v small { font-size: 15px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.stat-tile .d.t-bad, .t-bad { color: var(--bad); }
.t-ok { color: var(--ok); font-weight: 600; } .t-bad { font-weight: 600; }
.chart-lg { height: 400px; } .chart-xl { height: 520px; }
.stack { display: grid; gap: var(--sp-4); min-width: 0; align-content: start; }
.name-cell { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 280px; }
.name-cell .kind-badge { margin-left: 0; }
.cell-sm { max-width: 140px; } .cell-lg { max-width: 320px; }
.panel-head .btn-sm { flex: none; }
.seg.seg-inline { display: inline-flex; justify-self: start; margin: 0; }
.seg.seg-inline > button { flex: none; min-height: 36px; padding: 6px 16px; font-size: 15px; }
/* 문항·강좌·보기 고르기(눌린 것 남색) */
.pick-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-3); min-width: 0; }
.pick { display: inline-flex; max-width: 240px; min-width: 0; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); font: inherit; font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap; cursor: pointer; }
.pick:hover { border-color: var(--ink-3); }
.pick.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
/* 2차 설문 단계: 전(빈 칸 안내)·부분(금색 띠) */
.gate-pend p { margin: 6px 0 0; max-width: 40ch; color: var(--ink-3); font-size: 14px; }
.gate-bar { align-items: center; flex-wrap: wrap; padding: 8px 12px; font-size: 14px; }
.gate-bar .split-bar { flex: 1; min-width: 80px; height: 6px; margin: 0; background: var(--warn-line); }
.gate-bar .split-bar i { background: var(--warn); }
.insight ul { margin: 4px 0 0; padding-left: 18px; }
/* 실행 유형 4색(차트와 같은 색: A 남색·B 청록·C 회색·D 금색) */
.dv-legend .sq-a, .type-bar .t-a { background: var(--brand); } .dv-legend .sq-b, .type-bar .t-b { background: var(--point); }
.dv-legend .sq-c, .type-bar .t-c { background: var(--chart-muted); } .dv-legend .sq-d, .type-bar .t-d { background: var(--gold); }
.type-bar { width: 140px; height: 8px; margin: 0; background: var(--surface-3); }
/* 참여자별 회차 출석 점 */
.att-marks { display: inline-flex; gap: 3px; }
.att-marks i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-sizing: border-box; }
.att-marks .m-on { background: var(--brand); } .att-marks .m-off { background: var(--line-strong); } .att-marks .m-none { border: 1px solid var(--line-strong); }
/* [계산 방법] 패널 내용 */
.method-body dl { margin: 0; } .method-body dt { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.method-body dd { margin: 4px 0 0; line-height: 1.6; }
.method-body code { display: block; white-space: pre-wrap; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-family: var(--mono); font-size: 13px; color: var(--brand); }
.method-body .refs a { display: block; padding: 6px 0; border-bottom: 1px solid var(--surface-3); color: var(--point); text-decoration: none; font-size: 14px; }
.sched-tbl { max-height: 340px; overflow: auto; }
.sched-tbl td:last-child { width: 1%; white-space: nowrap; text-align: right; }
@media (max-width: 1100px) { .stat-row.stat-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .chart-xl { height: 560px; } .name-cell { max-width: 200px; } }

/* ── 대시보드 A톤(v0.9.12, docs/mockups/v0912 summary_A·cards_A·change_A·participation_A) ──
   값(색·모서리·그림자·카드 선)은 tokens.css의 .ctx-dash에서 정하고 여기서는 그 토큰을 쓰기만 한다. */
.area-dash .panel, .area-dash .stat-tile{ border: var(--card-border); border-top: var(--card-rule); padding: var(--card-pad); background: transparent; }
.area-dash .panel-head .panel-title, .area-dash .panel-title{ font-size: 18px; }
.area-dash .panel-head .btn-sm{ background: none; border: 0; padding: 2px 0; min-height: 0; color: var(--ink-3); text-decoration: underline; font-weight: 500; }
.area-dash .stat-row{ gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.area-dash .stat-row .stat-tile{ border: 0; padding: 14px 20px; }
.area-dash .stat-row .stat-tile + .stat-tile{ border-left: 1px solid var(--line); }
.area-dash .stat-row .stat-tile:first-child{ padding-left: 0; }
.area-dash .stat-tile .v{ color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.area-dash .stat-tile .d{ white-space: normal; }
.area-dash .dv-badge{ background: none; padding: 0; border-radius: 0; font-weight: 600; }
.area-dash .dv-badge.b-mid, .area-dash .dv-badge.b-done{ color: var(--ink-3); }
.area-dash .dv-badge.b-gold, .area-dash .dv-badge.b-post{ color: var(--chart-accent); }
.area-dash .pick{ border-radius: 0; }
.area-dash .pick.on{ background: var(--ink); border-color: var(--ink); }
.area-dash .seg{ border-radius: 0; }
.area-dash .chart-empty{ border-radius: 0; }
.area-dash .banner{ border-radius: 0; }
.area-dash .dash-qs li{ background: none; padding: 0 10px 0 0; color: var(--ink-3); }
.area-dash .dash-qs li b{ color: var(--ink-2); }
.area-dash .dash-title{ font-size: 15px; color: var(--ink-3); font-weight: 600; }
.a-head { display: grid; gap: 8px; max-width: 980px; padding-bottom: 6px; }
.a-meta { margin: 0; font-size: 14px; color: var(--ink-3); }
.a-title { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.35; letter-spacing: -0.4px; color: var(--ink); }
.area-dash h2.a-title{ font-size: 28px; }
.a-sub { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.a-split { gap: 40px; }
.a-foot { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.a-source { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.a-agree { margin: 6px 0 0; font-size: 15px; }
.a-table thead th { border-bottom: 2px solid var(--ink); background: none; color: var(--ink); }
.a-table tr.a-small td, .a-table tr.a-small td * { color: var(--chart-ns-ink); }
.t-good { color: var(--chart-1); font-weight: 600; }
.t-accent { color: var(--chart-accent); font-weight: 600; }
.chart-likert { height: 170px; }
.a-item { margin: 4px 0 0; font-size: 14px; font-weight: 700; }
/* 2차 설문 부분 결과: A톤에서는 노란 띠 대신 글자 한 줄 + 가는 막대 */
.area-dash .gate-bar{ background: none; border: 0; padding: 0 0 6px; color: var(--ink-3); font-size: 13px; }
.area-dash .gate-bar b{ color: var(--ink-2); }
.area-dash .gate-bar .split-bar{ height: 4px; background: var(--line); }
.area-dash .gate-bar .split-bar i{ background: var(--ink-3); }
.chart-tiles { height: 280px; }
.a-move { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 15px; margin-top: 6px; }
.a-move th { text-align: left; padding: 10px; font-weight: 700; }
.a-move tbody th { padding-left: 0; width: 130px; }
.a-move td, .a-move tbody th { border-top: 1px solid var(--line); }
.a-move td { padding: 10px; }
.a-move td b { display: block; font-size: 24px; }
.a-move td span { font-size: 13px; color: var(--ink-3); }
.a-move td.good { background: #e8eef3; } .a-move td.good b, .a-move td.good span { color: var(--chart-1); }
.a-move td.bad { background: #fbeee8; } .a-move td.bad b, .a-move td.bad span { color: var(--chart-accent); }
@media (max-width: 768px) {
  .a-title, .area-dash h2.a-title{ font-size: 22px; }
  .area-dash .stat-row .stat-tile{ padding: 12px 10px; }
  .area-dash .stat-row .stat-tile:nth-child(odd){ padding-left: 0; border-left: 0; }
  .area-dash .stat-row .stat-tile:nth-child(n + 3){ border-top: 1px solid var(--line); }
  .area-dash .stat-tile .v{ font-size: 24px; }
  .a-split { gap: 0; }
  .a-table .name-cell { max-width: 120px; }
  .a-table th, .a-table td { padding-left: 6px; padding-right: 6px; }
}

/* 로그인: 관리자 로그인 아래 "또는" 구분선 + [강사 화면으로 가기] 보조 버튼(2026-10-26) */
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; font-size: var(--fs-sm); color: var(--ink-3); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card .auth-alt { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* 대시보드 좌측 메뉴 아이콘(2026-10-26): 글자 앞 18px, 평소 회색·켜진 메뉴는 글자색과 같게 */
.dash-side a { gap: 10px; }
.dash-side a .icon { color: var(--ink-3); }
.dash-side a:hover .icon { color: var(--ink-2); }
.dash-side a.on .icon { color: currentColor; }

/* ── 관리자 공통(2026-10-26, 관리자 개선안 A1~A4) ── */
/* A1: 대시보드 왼쪽 메뉴 맨 아래 "← 관리자 화면으로" */
.dash-side .dash-side-back { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0; font-size: 14px; color: var(--ink-3); }
.dash-side .dash-side-back:hover { background: none; color: var(--point); }
/* A2: 되돌릴 수 없는 작업 — 빨간 테두리 경고 상자, 확인 문구 전에는 흐린 빨간 버튼 */
.danger-box { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--danger-line); border-radius: var(--r-md); background: var(--danger-weak); color: var(--danger-hover); font-size: 14px; line-height: 1.5; }
.danger-box b { font-size: 15px; color: var(--danger); }
.btn-danger:disabled { opacity: .4; cursor: not-allowed; }
/* A3: 관리자 목록 필터 칩은 필터 줄 아래 한 줄 전체 */
.filters .fchips, .toolbar .fchips { flex-basis: 100%; margin-top: 4px; }
/* A4: 흐린 아이콘 버튼의 이유 — 감싼 span이 마우스 설명을 받도록 버튼은 마우스를 통과시킨다 */
.btn-icon-wrap { display: inline-flex; cursor: not-allowed; }
.btn-icon-wrap .btn-icon:disabled { pointer-events: none; }
/* A1: "← 관리자 화면으로"는 고정된 왼쪽 메뉴의 맨 아래에 붙인다(PC). 메뉴가 길면 메뉴 끝 다음에 온다. */
@media (min-width: 1101px) {
  .dash-side { display: flex; flex-direction: column; }
  .dash-side .dash-side-back { margin-top: auto; flex: none; }
}

/* ── 관리자 화면 글자 크기 단계(2026-10-26, 대시보드와 같은 기준, PC) ──
   보통 16px · 작은 글씨 14px · 뱃지처럼 작은 칸 12~13px · 제목은 보통보다 크게(화면 제목 26, 패널·창 제목 20, 소제목 18).
   다른 화면(강사·시민·대시보드)과 같이 쓰는 클래스는 .ctx-admin 안에서만 바꾼다. */
body.ctx-admin { font-size: 16px; }
/* 머리줄·내 메뉴 */
:is(.ctx-admin, .area-admin) .app-brand b,
:is(.ctx-admin, .area-admin) .app-top .title{ font-size: 16px; }
:is(.ctx-admin, .area-admin) .user-menu .who b{ font-size: 14px; }
:is(.ctx-admin, .area-admin) .user-menu .who small,
:is(.ctx-admin, .area-admin) .menu-label{ font-size: 13px; }
:is(.ctx-admin, .area-admin) .menu-item{ font-size: 16px; }
/* 왼쪽 메뉴 */
:is(.ctx-admin, .area-admin) .side a{ font-size: 16px; }
:is(.ctx-admin, .area-admin) .side a .icon{ width: 18px; height: 18px; }
:is(.ctx-admin, .area-admin) .side .grp{ font-size: 14px; font-weight: 600; letter-spacing: .02em; }
/* 화면 제목 */
:is(.ctx-admin, .area-admin) .page-head h1{ font-size: 26px; }
:is(.ctx-admin, .area-admin) .page-desc,
:is(.ctx-admin, .area-admin) .crumb,
:is(.ctx-admin, .area-admin) .steps{ font-size: 14px; }
/* 패널·창 */
:is(.ctx-admin, .area-admin) .panel-title,
:is(.ctx-admin, .area-admin) .drawer-head h2,
:is(.ctx-admin, .area-admin) .modal-body h2{ font-size: 20px; }
:is(.ctx-admin, .area-admin) .settings-head h2,
:is(.ctx-admin, .area-admin) .sv-card h3{ font-size: 18px; }
:is(.ctx-admin, .area-admin) .panel-desc,
:is(.ctx-admin, .area-admin) .drawer-head p,
:is(.ctx-admin, .area-admin) .settings-head p,
:is(.ctx-admin, .area-admin) .setting-row .label p,
:is(.ctx-admin, .area-admin) .sv-card h3 small,
:is(.ctx-admin, .area-admin) .h-note{ font-size: 14px; }
:is(.ctx-admin, .area-admin) .modal-body p,
:is(.ctx-admin, .area-admin) .setting-row .control .value{ font-size: 16px; }
/* 버튼·입력 */
:is(.ctx-admin, .area-admin) .btn,
:is(.ctx-admin, .area-admin) :is(input[type="text"], input[type="number"], input[type="date"], input[type="email"],
  input[type="password"], input[type="search"], input[type="tel"], input[type="url"], input:not([type]), select, textarea){ font-size: 16px; }
:is(.ctx-admin, .area-admin) .btn-sm,
:is(.ctx-admin, .area-admin) .table .form-inline input{ font-size: 14px; }
:is(.ctx-admin, .area-admin) .field-label,
:is(.ctx-admin, .area-admin) .field-help,
:is(.ctx-admin, .area-admin) .field-error,
:is(.ctx-admin, .area-admin) .option small,
:is(.ctx-admin, .area-admin) .check-card small{ font-size: 14px; }
:is(.ctx-admin, .area-admin) .check-card b{ font-size: 16px; }
/* 표·목록 */
:is(.ctx-admin, .area-admin) .table{ font-size: 16px; }
:is(.ctx-admin, .area-admin) .table th{ font-size: 14px; }
:is(.ctx-admin, .area-admin) .table .cell-sub,
:is(.ctx-admin, .area-admin) .na,
:is(.ctx-admin, .area-admin) .mono,
:is(.ctx-admin, .area-admin) .toolbar .count,
:is(.ctx-admin, .area-admin) .note,
:is(.ctx-admin, .area-admin) .empty .empty-desc{ font-size: 14px; }
:is(.ctx-admin, .area-admin) .tabs a{ font-size: 16px; }
/* 뱃지·칩 */
:is(.ctx-admin, .area-admin) .bd,
:is(.ctx-admin, .area-admin) .chip,
:is(.ctx-admin, .area-admin) .kind-badge{ font-size: 13px; }
:is(.ctx-admin, .area-admin) .bd-lg{ font-size: 14px; }
:is(.ctx-admin, .area-admin) .tabs a small{ font-size: 12px; }
/* 알림 띠 */
:is(.ctx-admin, .area-admin) .banner{ font-size: 16px; }
:is(.ctx-admin, .area-admin) .banner-lg{ font-size: 18px; }
/* 핵심 수치 칸 */
:is(.ctx-admin, .area-admin) .stat-tile .k{ font-size: 16px; }
:is(.ctx-admin, .area-admin) .stat-tile .v{ font-size: 30px; }
:is(.ctx-admin, .area-admin) .stat-tile .d{ font-size: 14px; }
/* 참여자 화면 등 */
:is(.ctx-admin, .area-admin) .course-line,
:is(.ctx-admin, .area-admin) .stat-note{ font-size: 14px; }
:is(.ctx-admin, .area-admin) .course-line strong{ font-size: 16px; }
:is(.ctx-admin, .area-admin) .pm-att-head{ font-size: 13px; }  /* 회차 번호 머리(작은 칸) */
/* 입력 양식 이름표(작은 글씨)·선택지(보통 글씨)·설명 목록 */
:is(.ctx-admin, .area-admin) .form-grid label,
:is(.ctx-admin, .area-admin) .form-stack label{ font-size: 14px; }
:is(.ctx-admin, .area-admin) label.option{ font-size: 16px; }
:is(.ctx-admin, .area-admin) .kind-list{ font-size: 14px; }
:is(.ctx-admin, .area-admin) .kind-list > dt{ font-size: 16px; }
/* 작은 안내 글(14px) */
:is(.ctx-admin, .area-admin) .qr-help,
:is(.ctx-admin, .area-admin) .dropzone .dz-hint,
:is(.ctx-admin, .area-admin) .inline-warn,
:is(.ctx-admin, .area-admin) .guide,
:is(.ctx-admin, .area-admin) .stepper li{ font-size: 14px; }
:is(.ctx-admin, .area-admin) .guide h4{ font-size: 16px; }
:is(.ctx-admin, .area-admin) .stepper li i{ font-size: 12px; }  /* 단계 번호 동그라미 */
/* 강의 일정(시간표·흐름): 칸 안 글자는 작은 글씨 14, 눈금·작은 표시는 12~13 — 시간표 칸 높이가 시간에 묶여 있어 한 단계씩만 올린다 */
:is(.ctx-admin, .area-admin) .sv-tt .h{ font-size: 14px; }
:is(.ctx-admin, .area-admin) .sv-tt .h small,
:is(.ctx-admin, .area-admin) .sv-hours span,
:is(.ctx-admin, .area-admin) .sv-ticks span,
:is(.ctx-admin, .area-admin) .sv-ticks .sv-todayv::after,
:is(.ctx-admin, .area-admin) .sv-ev,
:is(.ctx-admin, .area-admin) .sv-gr .lb small,
:is(.ctx-admin, .area-admin) .dv-badge{ font-size: 13px; }
:is(.ctx-admin, .area-admin) .sv-ev b,
:is(.ctx-admin, .area-admin) .sv-gr .lb b,
:is(.ctx-admin, .area-admin) .sv-tc .m,
:is(.ctx-admin, .area-admin) .dv-legend{ font-size: 14px; }
:is(.ctx-admin, .area-admin) .sv-ov,
:is(.ctx-admin, .area-admin) .sv-ovtag,
:is(.ctx-admin, .area-admin) .sv-dot,
:is(.ctx-admin, .area-admin) .sv-ev b .kind-badge{ font-size: 12px; }

/* ── 강좌 화면(2026-10-26, 관리자 개선안 P1~P4) ── */
/* P1: 강좌명은 눌러서 상세로 가는 링크로 보이게(청록) */
:is(.ctx-admin, .area-admin) .table a.row-link{ color: var(--point); }
:is(.ctx-admin, .area-admin) .table a.row-link:hover{ color: var(--point-press); }
/* P2: 제목 아래 요약 띠 */
.sumbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.sumbar > div { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.sumbar span { font-size: 14px; color: var(--ink-3); }
.sumbar b { font-size: 22px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.sumbar b.sum-text { font-size: 16px; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sumbar small { font-size: 14px; color: var(--ink-3); }
/* 조건에 맞는 것 중 첫 번째만 보이기(다음 회차, 회차 삭제 안내) — 템플릿에서 "첫 번째"를 고를 수 없어 CSS로 */
.sum-first .one ~ .one ~ .one,
.sum-first p.one ~ p.one,
.sum-first .one ~ .none { display: none; }
/* P2: 두 칸 — 왼쪽 기본 정보·회차, 오른쪽 QR·강사 배정·사후 설문 */
.detail-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.detail-col { display: grid; gap: 16px; min-width: 0; }
.detail-col > .panel { margin: 0; }
@media (max-width: 1100px) {
  .detail-cols { grid-template-columns: 1fr; }
  .sumbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* P3: 사후 설문 — 지금 상태 크게 + [자동][열기][닫기] 단추 묶음 */
.t1-now { margin: 0 0 10px; font-size: 16px; color: var(--ink-2); }
.t1-now b { font-size: 22px; color: var(--ink); }
.t1-now b.is-open { color: var(--ok); }
.seg-btns { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.seg-btns button { padding: 7px 18px; border: 0; border-left: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.seg-btns button:first-of-type { border-left: 0; }
.seg-btns button:hover { background: var(--surface-2); }
.seg-btns button.on { background: var(--brand); color: #fff; font-weight: 600; cursor: default; }
/* P4: 배정된 강사 줄 */
.assign-list { display: grid; gap: 8px; }
/* 관리자 글자 크기: <h3>로 쓴 패널 제목도 패널 제목 크기(20px) */
:is(.ctx-admin, .area-admin) .panel > h3{ font-size: 20px; }
/* 관리자 표: 16px로 커진 뒤 좁은 칸에서 "음악"·"Bridge"가 글자 단위로 끊겼다 — 표 안에서는 낱말 사이에서만 줄을 바꾼다(넘치면 표가 가로로 스크롤) */
:is(.ctx-admin, .area-admin) .table th,
:is(.ctx-admin, .area-admin) .table td{ overflow-wrap: normal; word-break: keep-all; }

/* ── 로그인 틀(2026-10-30, 디자인 확정 시안 "관리자 로그인" PC·태블릿·휴대폰) ──
   PC: 왼쪽 브랜드 패널 540px + 오른쪽 흰 입력 영역(입력 묶음 최대 380px, 가운데).
   900px 이하(태블릿): 패널이 위쪽 머리 띠, 흰 영역이 24px 둥근 모서리로 겹쳐 올라온다.
   480px 이하(휴대폰): 머리 띠·글자를 한 단계 작게. */
.auth-split { display: flex; min-height: 100vh; min-height: 100dvh; background: var(--surface); }
.auth-side { position: relative; overflow: hidden; flex: 0 0 540px; max-width: 42%; padding: 64px 56px; color: #fff; background: var(--auth-mesh-bg); }
.auth-mesh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.auth-hero { position: relative; margin-top: 120px; }
.auth-logo { display: block; height: 30px; width: auto; }
.auth-name { display: flex; flex-direction: column; }
.auth-title { font-size: 68px; line-height: 1; font-weight: 800; letter-spacing: -2.1px; margin-top: 12px; }
.auth-sub { font-size: 26px; font-weight: 500; color: var(--auth-side-sub); letter-spacing: -0.5px; margin-top: 16px; }
.auth-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 48px 40px 28px; background: var(--surface); }
.auth-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auth-copy { padding-top: 24px; text-align: center; font-size: 12px; color: var(--ink-3); }
/* 입력 묶음: 카드가 아니라 흰 영역 위에 바로 */
.auth-split .auth-card { max-width: 380px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.auth-split .auth-card h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.7px; text-align: left; }
.auth-split .auth-card .auth-desc { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-3); text-align: left; }
.auth-split .auth-card form { margin-top: 32px; }
.auth-split .auth-card .banner { margin: 0 0 20px; font-size: 14px; }
.auth-split .auth-card .field { margin-bottom: 18px; }
.auth-split .auth-card .field-label { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.auth-split .auth-card .field input { height: 50px; min-height: 50px; padding: 0 14px; border-radius: var(--r-md); font-size: 16px; }
.auth-split .auth-card .field input::placeholder { color: var(--ink-4); }
.auth-split .auth-card .check { gap: 10px; margin: 0 0 26px; font-size: 14px; color: var(--ink-2); }
.auth-split .auth-card .check input { accent-color: var(--brand); }
.auth-split .auth-card .btn { height: 52px; min-height: 52px; border-radius: var(--r-md); background: var(--brand); font-size: 16px; font-weight: 700; }
.auth-split .auth-card .btn:hover { background: var(--brand-hover); }
.auth-split .auth-card .btn:active { background: var(--brand-press); }
.auth-split .auth-or { margin: 28px 0 14px; font-size: 13px; }
.auth-split .auth-card .btn.btn-sub.auth-alt { height: 48px; min-height: 48px; background: var(--surface); color: var(--point); border: 1px solid var(--point-line); box-shadow: none; font-size: 15px; font-weight: 600; }
.auth-split .auth-card .btn.btn-sub.auth-alt:hover { background: var(--point-weak); color: var(--point-press); }
@media (max-width: 900px) {
  .auth-split { flex-direction: column; }
  .auth-side { flex: none; max-width: none; padding: 40px 48px 64px; }
  .auth-hero { margin-top: 0; }
  .auth-logo { height: 24px; }
  .auth-name { flex-direction: row; align-items: flex-end; gap: 12px; margin-top: 12px; }
  .auth-title { font-size: 32px; letter-spacing: -1px; margin-top: 0; }
  .auth-sub { font-size: 24px; letter-spacing: -0.3px; margin-top: 0; }
  .auth-main { position: relative; margin-top: -24px; border-radius: 24px 24px 0 0; padding: 48px 48px 28px; }
  .auth-body { justify-content: flex-start; }
  .auth-split .auth-card { max-width: 440px; }
  .auth-split .auth-card h1 { font-size: 26px; letter-spacing: -0.6px; }
  .auth-split .auth-card form { margin-top: 28px; }
  .auth-split .auth-card .field input { height: 52px; min-height: 52px; }
  .auth-split .auth-card .btn { height: 54px; min-height: 54px; font-size: 17px; }
  .auth-split .auth-card .btn.btn-sub.auth-alt { height: 50px; min-height: 50px; }
}
@media (max-width: 480px) {
  .auth-side { padding: 28px 20px 48px; }
  .auth-logo { height: 20px; }
  .auth-name { gap: 10px; margin-top: 10px; }
  .auth-sub { font-size: 18px; }
  .auth-main { margin-top: -22px; border-radius: 22px 22px 0 0; padding: 28px 20px 20px; }
  .auth-split .auth-card h1 { font-size: 22px; letter-spacing: -0.5px; }
  .auth-split .auth-card .auth-desc { margin-top: 6px; font-size: 14px; }
  .auth-split .auth-card form { margin-top: 22px; }
  .auth-split .auth-card .field { margin-bottom: 16px; }
  .auth-split .auth-card .field input { height: 50px; min-height: 50px; }
  .auth-split .auth-card .check { margin-bottom: 22px; }
  .auth-split .auth-card .btn { height: 52px; min-height: 52px; font-size: 16px; }
  .auth-split .auth-card .btn.btn-sub.auth-alt { height: 48px; min-height: 48px; }
  .auth-split .auth-or { margin: 24px 0 12px; }
}
/* PC(901px 이상, 2026-10-30 확정 시안 수정): 옅은 바탕 가운데 둥근 카드(최대 1040, 높이 640 이상) — 왼쪽 패널 46%, 글자 한 단계 작게, © 줄 없음 */
@media (min-width: 901px) {
  .auth-page { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 48px 32px; box-sizing: border-box; background: var(--auth-page-bg); }
  .auth-split { width: 100%; max-width: 1040px; min-height: 640px; border-radius: 24px; overflow: hidden; box-shadow: var(--auth-card-shadow); }
  .auth-side { flex: 0 0 46%; max-width: none; padding: 56px 48px; }
  .auth-hero { margin-top: 96px; }
  .auth-title { font-size: 60px; letter-spacing: -1.8px; }
  .auth-sub { font-size: 24px; margin-top: 14px; }
  .auth-main { padding: 40px 48px; }
  .auth-copy { display: none; }
}

/* ── 강사 로그인(2026-10-30, 디자인 확정 시안 "강사 로그인": 기관 선택·검색·본인 확인·틀림·잠김) ──
   밝은 파스텔 메시 머리 + 옅은 회청 바탕 본문이 둥근 모서리로 겹쳐 올라오고, 아래 버튼은 화면 바닥에 붙는다.
   빨강은 강사 화면 실패색(--danger, .ctx-instructor). */
.ins-auth { flex: 1; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--ins-page); }
.ins-auth-head { position: relative; overflow: hidden; flex: none; padding: 22px 22px 40px; }
.ins-auth-mesh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ins-auth-logo { position: relative; display: block; height: 22px; width: auto; }
.ins-auth-head .ins-auth-title { position: relative; margin: 24px 0 0; font-size: 26px; line-height: 1.3; font-weight: 800; letter-spacing: -0.8px; color: var(--brand); }
.ins-auth-sub { position: relative; margin: 6px 0 0; font-size: 16px; color: var(--ink-2); }
.ins-auth-body { position: relative; flex: 1; display: flex; flex-direction: column; margin-top: -20px; padding: 18px 18px 0; border-radius: 24px 24px 0 0; background: var(--ins-page); }
.ins-auth-body > * { flex: none; }
/* 아래 고정 버튼: 내용이 길면 바닥에 붙어 따라오고, 위로 옅게 사라지는 띠 */
.ins-bottom { position: sticky; bottom: 0; margin-top: auto; padding: 28px 0 18px; background: linear-gradient(180deg, rgba(246, 248, 250, 0) 0%, var(--ins-page) 34%); }
.ins-btn { width: 100%; height: 58px; border: 0; border-radius: 16px; background: var(--brand); color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 20px -12px rgba(22, 59, 88, 0.8); }
a.ins-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.ins-btn:hover { background: var(--brand-hover); }
.ins-btn:disabled { background: var(--ins-btn-off); box-shadow: none; cursor: default; }
/* 경고·안내 */
.ins-alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--danger-weak); border: 1px solid var(--danger-line); color: var(--danger); font-size: 15px; line-height: 1.5; }
.ins-auth-body > .ins-alert:first-child { margin-top: 0; margin-bottom: 14px; }
.ins-alert .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.ins-alert b { font-size: 16px; }
.ins-note { margin: 14px 4px 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
/* 기관 선택 */
.ins-search { position: relative; }
.ins-search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: flex; color: var(--ink-3); }
.ins-search-ico .icon { width: 20px; height: 20px; }
.ins-search input { width: 100%; box-sizing: border-box; height: 54px; padding: 0 48px 0 46px; border: 1.5px solid var(--ins-card-line); border-radius: 16px; background: var(--surface); font: inherit; font-size: 17px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.ins-search input::-webkit-search-cancel-button { display: none; }
.ins-search input:focus, .ins-search.on input { outline: none; border-color: var(--point); }
.ins-search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--line); color: var(--ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ins-search-clear[hidden] { display: none; }
.ins-sec { display: flex; align-items: center; gap: 6px; margin: 18px 4px 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ins-sec small { font-size: 14px; font-weight: 600; color: var(--ink-4); }
.ins-group + .ins-group { margin-top: 14px; }
.ins-grp { margin: 0 4px 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ins-sec .icon { width: 14px; height: 14px; color: var(--point); }
.ins-recent + .ins-sec { margin-top: 20px; }
.ins-list { display: flex; flex-direction: column; gap: 8px; }
.ins-fac-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px; box-sizing: border-box; border-radius: 16px; background: var(--surface); border: 0; box-shadow: var(--ins-card-shadow); cursor: pointer; }  /* 2026-10-30 시안 수정: 테두리 대신 그림자 */
.ins-fac-card[hidden] { display: none; }
.ins-fac-card input { position: absolute; opacity: 0; pointer-events: none; }
.ins-fac-card:has(input:focus-visible) { outline: 2px solid var(--point); outline-offset: 2px; }
.ins-fac-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--point-weak); color: var(--point); display: flex; align-items: center; justify-content: center; }
.ins-fac-ico .icon { width: 20px; height: 20px; }
.ins-fac-text { flex: 1; min-width: 0; }
.ins-fac-text b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.3px; color: var(--brand); }
.ins-fac-text small { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-3); }
.ins-fac-text mark { padding: 0 2px; border-radius: 4px; background: var(--ins-mark); color: var(--brand); }
.ins-fac-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ins-radio-line); box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.ins-fac-mark .icon { width: 14px; height: 14px; opacity: 0; }
/* 고른 기관: 남색 채움 + 흰 체크 */
.ins-fac-card:has(input:checked) { background: var(--brand); box-shadow: none; }
.ins-fac-card:has(input:checked) .ins-fac-text b { color: #fff; font-weight: 800; }
.ins-fac-card:has(input:checked) .ins-fac-text small { color: var(--ins-mesh-1); }
.ins-fac-card:has(input:checked) .ins-fac-ico { background: rgba(255, 255, 255, 0.14); color: var(--ins-mesh-1); }
.ins-fac-card:has(input:checked) .ins-fac-mark { width: 24px; height: 24px; border: 0; background: #fff; color: var(--brand); }
.ins-fac-card:has(input:checked) .ins-fac-mark .icon { opacity: 1; }
/* 본인 확인 */
.ins-label { display: block; margin: 22px 0 8px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.ins-verify > .ins-label:first-of-type { margin-top: 6px; }
.ins-fac-card.is-static { cursor: default; }
.ins-change { flex: none; padding: 8px 12px; border-radius: 999px; background: var(--point-weak); color: var(--point); font-size: 14px; font-weight: 700; text-decoration: none; }
.ins-change:hover { color: var(--point-press); }
.ins-input { width: 100%; box-sizing: border-box; height: 60px; padding: 0 18px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; font-size: 20px; font-weight: 600; }
.ins-input:focus { outline: none; border-color: var(--point); box-shadow: 0 0 0 4px rgba(46, 110, 142, 0.15); }
.ins-code { position: relative; }
/* 스크립트가 없을 때는 보통 입력칸, 있으면 네 칸 위에 투명하게 겹친다 */
.ins-code-input { width: 100%; box-sizing: border-box; height: 66px; padding: 0 18px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--surface); font: inherit; font-size: 30px; font-weight: 700; letter-spacing: 0.4em; }
.ins-code-boxes { display: none; }
.ins-code.js .ins-code-input { position: absolute; inset: 0; z-index: 1; height: 100%; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 0; }
.ins-code.js .ins-code-input:focus { outline: none; box-shadow: none; }  /* 묶음 전체 테두리 없이, 지금 칸만 강조 */
.ins-code.js .ins-code-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ins-code-boxes span { height: 66px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; box-sizing: border-box; }
.ins-code-boxes span.on { border: 2px solid var(--point); box-shadow: 0 0 0 4px rgba(46, 110, 142, 0.15); }
/* 틀림: 두 칸 모두 빨강 */
.ins-verify.is-wrong .ins-input,
.ins-verify.is-wrong .ins-code-boxes span,
.ins-verify.is-wrong .ins-code:not(.js) .ins-code-input { border-color: var(--danger); background: var(--danger-weak); color: var(--danger); }
/* 잠김 */
.ins-lock-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; }
.ins-ring { position: relative; width: 176px; height: 176px; }
.ins-ring svg { display: block; width: 176px; height: 176px; }
.ins-ring-face { fill: var(--surface); }
.ins-ring-track { fill: none; stroke: var(--ins-ring-red-track); stroke-width: 10; }
.ins-ring-bar { fill: none; stroke: var(--danger); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 439.8; stroke-dashoffset: 0; }
.ins-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--danger); }
.ins-ring-ico { display: flex; }
.ins-ring-ico .icon { width: 20px; height: 20px; }
.ins-ring-time { margin-top: 6px; font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.ins-ring-cap { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.ins-lock.is-last .ins-ring-track { stroke: var(--ins-ring-teal-track); }
.ins-lock.is-last .ins-ring-bar { stroke: var(--point); }
.ins-lock.is-last .ins-ring-in { color: var(--point); }
.ins-lock-note { margin: 24px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); text-align: center; }

/* ── 강사 홈 탭(2026-10-30, 디자인 확정 시안 "강사 홈": 수업 있음·없음) ──
   옅은 회청 바탕, 파스텔 머리는 본문과 함께 스크롤, 카드는 테두리 없이 옅은 그림자(--ins-card-shadow).
   지금 수업 중인 카드만 청록 테두리, 없으면 보고 있는 카드(.sel)가 그 자리. */
.sess.is-home .sess-body { background: var(--ins-page); padding-bottom: 28px; }
.ihome-head { position: relative; overflow: hidden; margin: 0 -16px; padding: 22px 20px 26px; }
.ihome-head .ins-auth-mesh { -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 50%, transparent 100%); }
.ihome-head-in { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ihome-date { font-size: 15px; font-weight: 600; color: var(--point); }
.ihome-head .ihome-name { margin: 4px 0 0; font-size: 26px; line-height: 1.3; font-weight: 800; letter-spacing: -0.8px; color: var(--brand); }
.ihome-sub { margin: 4px 0 0; font-size: 16px; color: var(--ink-2); }
.ihome-head form { flex: none; margin: 0; }
.ihome-logout { width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.7); color: var(--brand); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ihome-logout .icon { width: 20px; height: 20px; }
.ihome-sec-head { display: flex; align-items: center; gap: 8px; margin: 6px 4px 0; }
.ihome .ihome-sec-head .home-title { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); }
.ihome-sec-head .tnum { font-size: 15px; font-weight: 700; color: var(--point); }
/* 오늘 수업 카드 */
.ihome .card-today { margin-top: 12px; padding: 18px; border: 0; border-radius: 20px; background: var(--surface); box-shadow: var(--ins-card-shadow); }
.ihome .card-today.is-live,
.ihome-today:not(:has(.is-live)) .card-today.sel { border: 2px solid var(--point); padding: 16px; box-shadow: var(--ins-live-shadow); }
.ihome .card-today.switchable:active { background: var(--surface-2); }
.ct-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ct-time { font-size: 15px; font-weight: 800; color: var(--brand); }
.ct-live { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--point); }
.ct-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--point); box-shadow: 0 0 0 4px rgba(46, 110, 142, 0.18); }
.ihome .card-today .card-title { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); }
.ihome .card-today .kind-badge { margin-left: 0; font-size: 12px; font-weight: 500; }
.ihome .ct-place { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.ct-place .icon { flex: none; width: 16px; height: 16px; color: var(--ink-3); }
.ct-place span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-prog { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 16px; }
.ct-round { flex: 1; min-width: 0; }
.ct-cap { font-size: 13px; color: var(--ink-3); }
.ct-seg { display: flex; gap: 4px; margin-top: 8px; }
.ct-seg span { flex: 1; height: 6px; border-radius: 3px; background: var(--ins-ring-teal-track); }
.ct-seg span.done { background: var(--ins-round-done); }
.ct-seg span.now { background: var(--point); }
.ihome .card-count { flex: none; margin: 0; display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; color: var(--ink-3); }
.ihome .card-count b { font-size: 24px; font-weight: 800; color: var(--brand); }
.ihome .card-today .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ihome .card-actions { grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 16px; }
.ihome .card-actions .btn { min-height: 52px; gap: 6px; border: 0; border-radius: 14px; font-size: 17px; font-weight: 700; }
.ihome .card-actions .btn:not(.btn-sub) { background: var(--brand); color: #fff; }
.ihome .card-actions .btn-sub { background: var(--point-weak); color: var(--brand); }
.ihome .card-actions .icon { width: 20px; height: 20px; }
/* 상태 배지: 테두리 없는 알약 */
.ihome .bd { border: 0; font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: var(--r-pill); }
.ihome .bd.bd-info { color: var(--point); }
/* 오늘 수업 없음 */
.ihome-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 0 0; }
.ihome-sun { width: 64px; height: 64px; border-radius: 50%; background: var(--ins-sun-bg); color: var(--ins-sun); display: flex; align-items: center; justify-content: center; }
.ihome-sun .icon { width: 34px; height: 34px; }
.ihome-empty .empty-title { margin-top: 14px; font-size: 19px; font-weight: 800; color: var(--ink); }
.ihome-next { box-sizing: border-box; width: 100%; margin-top: 22px; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--ins-card-shadow); color: var(--brand); text-decoration: none; text-align: left; font-size: 15px; }
.ihome-next > span { flex: 1; min-width: 0; }
.ihome-next .icon { flex: none; width: 16px; height: 16px; }
/* 지난·다음 수업 전환 */
.ihome-seg { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--ins-seg-bg); }
.ihome-seg button { height: 44px; border: 0; border-radius: 11px; background: transparent; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink-3); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.ihome-seg button.on { background: var(--surface); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); font-weight: 800; color: var(--brand); }
.seg-todo { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: var(--r-pill); background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.seg-n { font-size: 14px; font-weight: 600; color: var(--ink-4); }
.ihome-list-title { margin: 18px 4px 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ihome-list-title.todo { color: var(--danger); }
.ihome .session-list:not(:has(li)) { display: none; }
.ihome .session-list { gap: 8px; }
.ihome .session-list:not(:first-child) { margin-top: 0; }
.ihome-next-list { margin-top: 18px; }
/* 목록 한 줄 */
.ihome .session-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--ins-card-shadow); color: var(--ink); }
.ihome .session-row.sel { box-shadow: 0 0 0 2px var(--point); }
.sr-main { flex: 1; min-width: 0; }
.ihome .session-row .when { display: block; padding-left: 4px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ihome .session-row .what { display: flex; padding-left: 4px; align-items: center; gap: 6px; margin-top: 3px; font-size: 17px; font-weight: 700; }
.ihome .session-row .what .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ihome .session-row .kind-badge { margin-left: 0; font-size: 12px; font-weight: 500; }
.ihome .session-row .badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.ihome .session-row .badges:not(:has(.bd)) { display: none; }
.sr-go { flex: none; width: 16px; height: 16px; color: var(--ink-4); }
/* 최근 수업은 3개까지, [지난 수업 전체 보기]로 나머지 */
.ihome-done:not(.open) > li:nth-child(n+4) { display: none; }
.ihome-all { margin-top: 12px; width: 100%; height: 50px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.ihome-all .n { color: var(--ink-4); }
.ihome-all .icon { width: 18px; height: 18px; color: var(--ink-3); }
.ihome-all[aria-expanded="true"] .icon { transform: rotate(180deg); }
.ihome-none { margin: 24px 0 0; text-align: center; font-size: 15px; color: var(--ink-3); }

/* ── 강사 출석 탭(2026-10-30, 디자인 확정 시안 "강사 출석": 수업 중·모두 출석 확인·⋯ 메뉴·명단 편집) ──
   회차를 연 탭도 옅은 회청 바탕 + 파스텔 머리(본문과 함께 스크롤), 카드는 테두리 없이 옅은 그림자.
   출석 고름 = 청록, 결석 고름 = 옅은 빨강 바탕·빨간 글자, 안 고름 = 옅은 회색. */
.sess:not(.is-home) .sess-body { background: var(--ins-page); padding-bottom: 28px; }
/* 머리 */
.sess-body > .sess-top { position: relative; overflow: hidden; display: block; margin: 0 -16px; padding: 20px 20px 22px; background: none; color: var(--ink); }
.sess-top .ins-auth-mesh { -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 50%, transparent 100%); }
.sess-top-in { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sess-top .sess-title { min-width: 0; }
.sess-when { font-size: 15px; font-weight: 600; color: var(--point); }
.sess-top.past .sess-when { color: var(--warn); }
.sess-top .sess-title h1 { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 26px; line-height: 1.3; font-weight: 800; letter-spacing: -0.8px; color: var(--brand); white-space: normal; }
.sess-top .sess-title h1 .kind-badge { margin-left: 0; font-size: 12px; font-weight: 500; }
.sess-top .sess-title .meta { margin-top: 2px; font-size: 15px; color: var(--ink-2); }
.sess-top .sess-flag { display: inline-block; margin-top: 8px; }
.sess-top .more-btn { width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.7); color: var(--brand); }
.sess-top .more-btn .icon { width: 22px; height: 22px; }
/* QR 출석 상태 줄 */
.att .att-band { margin: 4px 0 0; padding: 12px 2px 12px 6px; min-height: 0; gap: 12px; border: 0; border-radius: 0; background: none; color: var(--brand); justify-content: flex-start; }
.qr-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-4); }
.att-band.live .qr-dot { background: var(--qr-live); box-shadow: var(--qr-live-glow); }
.att-band-t { flex: 1; min-width: 0; margin-left: 4px; font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: var(--brand); }
.att .att-band-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; min-height: 0; padding: 0 14px; text-decoration: none; border: 0; border-radius: 11px; background: var(--brand); color: #fff; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.att-band.live .att-band-btn { background: var(--qr-live); }
.att-band-btn .icon { width: 17px; height: 17px; --ic-fill: none; }
/* 집계 칩 + 도구 줄(위에 붙음) */
.att .att-filter { background: var(--ins-page); padding: 14px 0 4px; gap: 12px; }
.att .att-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.att .att-chip { min-height: 0; padding: 10px 0 9px; gap: 2px; border: 1px solid var(--ins-card-line); border-radius: 14px; background: var(--surface); font-weight: 400; }
.att-chip .lbl { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.att-chip .d { width: 7px; height: 7px; border-radius: 50%; }
.att-chip .d.unknown { background: var(--ink-4); }
.att-chip .d.present { background: var(--point); }
.att-chip .d.absent { background: var(--danger); }
.att .att-chip b { font-size: 22px; font-weight: 800; color: var(--ink); }
.att .att-chip.on { border-color: var(--point); background: var(--point); }
.att .att-chip.on .lbl { color: var(--att-chip-sub); }
.att .att-chip.on .d { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.8); }
.att .att-chip.on b { color: #fff; }
.att .att-tools { gap: 6px; }
.att-search { position: relative; flex: 1; min-width: 0; display: block; }
.att-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.att-search input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 12px 0 38px; border: 1px solid var(--ins-card-line); border-radius: 14px; background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); }
.att-search input:focus { outline: none; border-color: var(--point); }
.att .tool-btn { height: 46px; min-height: 0; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--ins-card-line); border-radius: 14px; background: var(--surface); font-size: 14px; font-weight: 700; color: var(--brand); }
.att .tool-btn.solid { border: 0; background: var(--point); color: #fff; }
.att .tool-btn .icon { width: 16px; height: 16px; }
/* 명단 카드 */
.att-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.att .att-row.compact { margin: 0; gap: 10px; padding: 14px 10px 14px 16px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--ins-card-shadow); }
.att .att-row.unknown { background: var(--surface); }
.att .att-row.walkin { box-shadow: none; border: 1px dashed var(--ins-radio-line); }
.att .att-row .nm { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 18px; font-weight: 700; color: var(--ink); }
.att-row .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.att-row .tags:not(:has(small:not([style*="display: none"]))) { display: none; }
.att .att-row .nm small { margin: 0; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: var(--r-pill); background: var(--att-tag); color: var(--ink-3); }
.att .att-row .nm .tag.qr { background: var(--point-weak); color: var(--point); }
.att .att-row .nm .tag.declined { background: var(--surface-3); color: var(--ink-2); }
.att .att-row .nm .save-state { background: none; padding-left: 0; color: var(--ink-3); }
.att .att-row .nm .ex-why { background: none; padding: 0; font-size: 13px; color: var(--ink-3); }
.att .att-row.compact .att-btn { width: 64px; min-width: 0; height: 46px; min-height: 0; border: 0; border-radius: 12px; background: var(--att-off); color: var(--ink-2); font-size: 16px; font-weight: 500; }
.att .att-btn.present.on { background: var(--point); color: #fff; font-weight: 500; }
.att .att-btn.absent.on { background: var(--att-absent-on); color: var(--danger); font-weight: 500; }
.att .att-row.compact .att-btn.undo { width: auto; padding: 0 14px; background: var(--att-absent-on); color: var(--danger); font-size: 15px; }
/* 명단 편집 */
.att .edit-bar { margin: 4px 0 0; padding: 12px 2px 12px 6px; border: 0; border-radius: 0; background: var(--ins-page); }
.att .edit-bar > span { flex: 1; font-size: 20px; font-weight: 800; letter-spacing: -0.4px; color: var(--brand); }
.edit-done { flex: none; height: 40px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--brand); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.att .edit-hint { margin: 10px 2px 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.att-notice { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ok-weak); color: var(--ok); font-size: 15px; font-weight: 600; }
.att-notice.warn { background: var(--ins-warn-bg); color: var(--ins-warn-ink); }
.att .att-row.editing { padding: 14px 16px; gap: 12px; }
.att .ex-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--danger); }
.att .ex-btn::before { display: none; }
.att .ex-btn::after { left: 8px; right: 8px; top: 14px; height: 2.6px; border-radius: 2px; }
.att .ex-btn:disabled { background: var(--line); }
.att .ex-btn:disabled::after { background: var(--ink-4); }
/* 아래에서 올라오는 시트(확인 창·⋯ 메뉴·취소·연기·진행 시간) */
.sess .confirm-sheet { background: rgba(17, 24, 39, 0.45); }
.sess .confirm-sheet .sheet-body,
.sess .sheet { box-sizing: border-box; max-width: var(--phone-max); padding: 22px 20px calc(28px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
.sheet-grip { width: 40px; height: 4px; margin: -8px auto 16px; border-radius: 2px; background: var(--line-strong); }
.sess .sheet-title,
.sess .sheet h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); line-height: 1.4; }
.sess .sheet-sub { margin: 2px 0 0; font-size: 15px; color: var(--ink-3); }
.sess .confirm-sheet .sheet-note { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.name-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.name-chips span { padding: 6px 12px; border-radius: var(--r-pill); background: var(--bg-mobile); font-size: 15px; font-weight: 600; }
.sheet-btns { margin-top: 22px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.sb-cancel, .sb-ok { height: 54px; border-radius: 14px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.sb-cancel { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); }
.sb-ok { border: 0; background: var(--brand); color: #fff; }
.sb-ok:hover { background: var(--brand-hover); }
.sb-ok.danger { background: var(--danger); }
.sb-ok:disabled { background: var(--disabled); cursor: default; }
.sb-cancel.w-full { width: 100%; }
/* ⋯ 메뉴 */
.sess .menu-head { gap: 2px; padding: 0 4px 14px; border: 0; }
.sess .menu-head b { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); }
.sess .menu-head span { font-size: 15px; color: var(--ink-3); }
.sess .menu-row { gap: 8px; min-height: 56px; padding: 0 4px; border-bottom: 0; border-top: 1px solid var(--line); }
.sess .menu-row > span { flex: 1; }
.sess .menu-row em { font-size: 15px; font-weight: 400; color: var(--point); }
.sess .menu-row .icon { flex: none; width: 18px; height: 18px; color: var(--ink-4); }
.sess .menu-row.quiet { border-top: 1px solid var(--line); font-weight: 500; color: var(--ink-3); }
/* 정상·취소·연기 */
.sess .status-seg { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; margin: 18px 0 0; padding: 4px; border-radius: 14px; background: var(--sheet-seg); }
.sess .status-seg > button { height: 46px; min-height: 0; border: 0; border-radius: 11px; background: transparent; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.sess .status-seg > button.on { background: var(--surface); box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12); font-weight: 700; color: var(--brand); }
.sess .status-seg > button.is-cancel.on { color: var(--danger); }
.sess .sheet .field-label { display: block; margin: 18px 0 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.sess .sheet .input-lg { box-sizing: border-box; height: 54px; min-height: 0; margin: 0; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 14px; font-size: 18px; font-weight: 600; }
.sess .sheet .input-inline { width: 140px; }
.sess .sheet .inline-field { margin: 0; gap: 10px; }
.sess .sheet .inline-field .muted { font-size: 17px; }
.sess .sheet .note { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.sess .sheet .banner-warn { margin-top: 16px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--ins-warn-bg); color: var(--ins-warn-ink); font-size: 15px; line-height: 1.6; }

/* ── 강사 QR 탭(2026-10-30, 디자인 확정 시안 "강사 QR": 평소·마지막 회차·사후 설문 열림·수업 날이 아닌 회차) ──
   남색 [강좌 QR 띄우기] 카드 → 흰 상태 카드(옅은 그림자) → 응답 수 두 칸 → 남색 테두리 [대신 출석]. */
/* 오늘이 아닌 회차 안내(출석·QR·운영 기록 탭 공통): 둥근 노란 띠 */
.sess-body > .when-band,
.sess-body > .when-band.past,
.sess-body > .when-band.future { margin: 10px 0 0; min-height: 0; padding: 10px 12px 10px 14px; border: 0; border-radius: 12px; background: var(--when-bg); color: var(--when-ink); font-size: 14px; font-weight: 600; gap: 10px; }
.sess-body > .when-band span { flex: 1; }
.sess-body > .when-band a { min-height: 0; font-weight: 700; color: var(--point); text-decoration: none; }
.qr-launch { margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 18px 18px 18px 20px; border-radius: 20px; background: var(--brand); color: #fff; text-decoration: none; }
.qr-launch:hover { background: var(--brand-hover); color: #fff; }
.qr-launch-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); display: flex; align-items: center; justify-content: center; }
.qr-launch-ic .icon { width: 28px; height: 28px; }
.qr-launch-t { flex: 1; font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
.qr-launch-go { flex: none; width: 20px; height: 20px; opacity: 0.8; }
.qrt .qr-card { gap: 0; margin-top: 12px; padding: 18px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--ins-card-shadow); }
.qrt .qr-card.live { background: var(--surface); }
.qrt .qr-card.post { background: var(--surface); box-shadow: none; outline: 1.5px solid var(--qr-live); outline-offset: -1.5px; }
.qrt .qr-card-head { justify-content: flex-start; gap: 10px; }
.qrt .qr-card-head b { flex: 1; font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: var(--ink); }
.qrt .qr-card-head .qr-dot { background: var(--ins-radio-line); }
.qrt .qr-card.live .qr-dot { background: var(--qr-live); box-shadow: var(--qr-live-glow); }
.qrt .qr-card-head .bd { flex: none; border: 0; padding: 3px 10px; border-radius: var(--r-pill); background: var(--att-tag); color: var(--ink-3); font-size: 13px; font-weight: 500; }
.qrt .qr-card-head .bd.bd-ok { background: var(--qr-open-weak); color: var(--qr-open-ink); }
.qrt .qr-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.qrt .qr-card form { align-self: stretch; margin: 0; }
.qr-act { margin-top: 14px; width: 100%; height: 54px; border: 0; border-radius: 14px; background: var(--att-off); color: var(--brand); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.qr-act.open { background: var(--qr-live); color: #fff; }
.qr-act.close { background: var(--danger); color: #fff; }
.qrt .note { margin: 12px 4px 0; }
.qr-sec { margin: 20px 4px 8px; font-size: 18px; font-weight: 700; color: var(--ink-2); }
.qr-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qrt .qr-count { display: block; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--ins-card-shadow); }
.qrt .qr-count > span { display: block; width: auto; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.qrt .qr-count > div { margin-top: 8px; color: var(--ink); }
.qrt .qr-count b { font-size: 26px; font-weight: 800; }
.qrt .qr-count em { margin-left: 4px; font-style: normal; font-size: 15px; color: var(--ink-3); }
.qr-kiosk { margin: 16px 0 0; }
.qr-kiosk button { width: 100%; height: 54px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); font: inherit; font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.qr-kiosk .icon { width: 20px; height: 20px; }
.qr-foot { margin: 14px 4px 0; font-size: 14px; color: var(--ink-3); text-align: center; }

/* ── 강사 운영 기록 탭(2026-10-30, 디자인 확정 시안 "강사 운영 기록": 작성 중·빈 문항 알림·제출 완료) ──
   영역 제목(A·B) + 문항 카드(옅은 그림자). 답한 문항은 남색 번호 원의 한 줄로 접히고, 빈 문항은 빨간 테두리.
   진행 수·[제출하기]·제출 완료는 탭 바로 위 흰 띠. */
.fidt .fid-area { margin-top: 0; }
.fidt .fid-area-head { margin: 24px 4px 10px; gap: 10px; }
.fidt .fid-area:first-child .fid-area-head { margin-top: 14px; }
.fidt .fid-area-head > span { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; color: var(--brand); }
.fidt .fid-area-head b { font-size: 15px; font-weight: 700; color: var(--ink-3); }
.fidt .fid-q { margin-top: 8px; padding: 16px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--ins-card-shadow); }
.fidt .fid-q.folded { padding: 0; }
.fidt .fid-q.missing { padding: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--danger); }
.fidt .fid-q-head { align-items: flex-start; gap: 10px; margin: 0; }
.fid-no,
.fidt .fid-fold .tnum { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.fid-no { background: var(--point-weak); color: var(--brand); }
.fidt .fid-q.missing .fid-no { background: var(--danger); color: #fff; }
.fidt .fid-q-head p { flex: 1; margin: 2px 0 0; padding: 0; font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.fidt .fid-opt.na { height: 32px; min-height: 0; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: var(--att-off); font-size: 14px; font-weight: 500; color: var(--ink-3); }
.fidt .fid-opt.na.on { background: var(--brand); color: #fff; }
.fidt .fid-q .field-error { margin: 8px 0 0 36px; font-size: 15px; font-weight: 600; color: var(--danger); }
.fidt .fid-grid { margin-top: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fidt .fid-grid .fid-opt { height: 52px; min-height: 0; border: 0; border-radius: 12px; background: var(--att-off); color: var(--ink-2); font-size: 19px; font-weight: 700; }
.fidt .fid-grid .fid-opt.on { background: var(--brand); color: #fff; }
.fidt .fid-ends { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
/* 접힌 문항: 한 줄 */
.fidt .fid-fold { min-height: 52px; gap: 10px; padding: 0 14px; border-radius: 14px; background: var(--surface); }
.fidt .fid-fold .tnum { background: var(--brand); color: #fff; }
.fidt .fid-fold-label { font-size: 15px; color: var(--ink-2); }
.fidt .fid-fold b { font-size: 16px; font-weight: 800; color: var(--brand); }
.fid-fold-go { flex: none; width: 18px; height: 18px; color: var(--ink-4); }
/* 아래 진행 띠 */
.sess .fid-progress { padding: 10px 18px 12px; border-top: 0; background: rgba(255, 255, 255, 0.96); box-shadow: 0 -2px 10px rgba(36, 90, 117, 0.08); }
.sess .fid-progress .field-error { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--danger); }
.sess .fid-progress-row { gap: 12px; }
.sess .fid-progress-row > b { flex: 1; font-size: 17px; font-weight: 800; color: var(--ink); }
.sess .fid-progress .save-ic.ok { color: var(--qr-open-ink); }
.sess .fid-progress .btn-pill.fid-submit,
.ctx-instructor .fid-progress .btn-pill.fid-submit.pending { flex: none; height: 50px; min-height: 0; margin-left: 0; padding: 0 28px; border-radius: 14px; background: var(--brand); color: #fff; font-size: 17px; font-weight: 700; }
.ctx-instructor .fid-progress .btn-pill.fid-submit.pending { opacity: 0.45; }
.sess .fid-progress .fid-done { gap: 2px; padding: 10px 16px; border-radius: 14px; background: var(--qr-open-weak); text-align: center; }
.sess .fid-progress .fid-done b { font-size: 17px; font-weight: 800; color: var(--qr-open-ink); }
.sess .fid-progress .fid-done span { font-size: 14px; color: var(--ink-2); }
/* 운영 기록: Bridge가 아닌 강좌에서 탭을 눌렀을 때 안내 */
.fid-none { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 16px; padding: 32px 20px; border-radius: 18px; background: var(--surface); box-shadow: var(--ins-card-shadow); }
.fid-none-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--point-weak); color: var(--point); display: flex; align-items: center; justify-content: center; }
.fid-none-ic .icon { width: 28px; height: 28px; }
.fid-none b { margin-top: 14px; font-size: 18px; font-weight: 800; color: var(--ink); }
.fid-none p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
/* 강사 출석 추가 상태(디자인 확정 시안 "강사 화면 추가"): QR 출석 닫힘·참여자 추가·미확인 없음 */
.att .att-band:not(.live) .qr-dot { background: var(--ins-radio-line); }
.att .att-band:not(.live) .att-band-t { color: var(--ink-2); }
.att .add-row { margin-top: 10px; padding: 12px; gap: 8px; display: grid; grid-template-columns: 1fr 1.6fr; border-radius: 16px; background: var(--surface); box-shadow: var(--ins-card-shadow); }
.att .add-row .input-lg { grid-column: 1 / -1; box-sizing: border-box; height: 54px; min-height: 0; padding: 0 16px; border: 1.5px solid var(--point); border-radius: 14px; font-size: 18px; }
.att .add-row .btn { height: 50px; min-height: 0; border: 0; border-radius: 14px; font-size: 16px; font-weight: 700; background: var(--brand); color: #fff; }
.att .add-row .btn.btn-sub { background: var(--att-off); color: var(--ink-2); }
.att .empty-done { margin-top: 16px; padding: 28px 20px; gap: 0; border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--ins-card-shadow); }
.done-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--qr-open-weak); color: var(--qr-open-ink); display: flex; align-items: center; justify-content: center; }
.done-ic .icon { width: 28px; height: 28px; stroke-width: 2.4; }
.att .empty-done b { margin-top: 12px; font-size: 18px; font-weight: 800; }
.att .empty-done > span:not(.done-ic) { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.att .empty-done .tool-btn { margin-top: 16px; height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--att-off); color: var(--brand); font-size: 15px; }

/* ── 밝은 한 화면 틀(2026-10-30, 디자인 확정 시안 "강좌 QR"·"강사 화면 추가"·"주민 화면") ──
   시민 화면 전부(.ctx-citizen)와 강사 쪽 한 화면들(강좌 QR·대리 입력 종료·유효하지 않은 링크, .ins-light):
   옅은 회청 바탕 + 위쪽 파스텔 메시(아래로 흐려짐) + 로고 머리줄, 카드는 테두리 없이 옅은 그림자,
   버튼 56px(주 = 남색, 보조 = 남색 테두리, 이전·아니요 = 옅은 회색). 문구·순서·값은 그대로. */
:is(.ctx-citizen, .ins-light) .phone { background: var(--ins-page); }
:is(.ctx-citizen, .ins-light) :is(.screen, .body) { position: relative; isolation: isolate; background: var(--ins-page); }
.ctx-citizen .screen { padding: 18px 18px 22px; }
.ins-light .body { display: flex; flex-direction: column; padding: 18px 18px 22px; }
.mesh-top { position: absolute; left: 0; right: 0; top: 0; z-index: -1; height: 320px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 50%, transparent 100%); }
/* 머리줄 */
:is(.ctx-citizen, .ins-light) .brandbar { gap: 10px; margin: 0 4px; }
:is(.ctx-citizen, .ins-light) .brandbar .logo { height: 22px; }
:is(.ctx-citizen, .ins-light) .brandbar > span:not(.count) { flex: 1; font-size: 15px; font-weight: 700; line-height: normal; color: var(--brand); transform: none; }
/* 대리 입력 띠: 머리줄 아래 남색 둥근 줄 */
.ctx-citizen .kiosk-bar { margin: 20px 0 0; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--brand); font-size: 15px; font-weight: 800; }
.ctx-citizen .kiosk-bar form { margin: 0; }
.ctx-citizen .kiosk-bar button { height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: #fff; color: var(--brand); font-size: 14px; font-weight: 700; }
.ctx-citizen .kiosk-next { flex-direction: column; justify-content: flex-start; gap: 10px; margin-top: auto; padding: 18px 0 0; border: 0; background: none; color: var(--ink-3); font-size: 15px; text-align: center; }
.kiosk-wait { width: 120px; height: 4px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.kiosk-wait i { display: block; height: 100%; background: var(--ink-4); animation: kiosk-wait 3s linear forwards; }
@keyframes kiosk-wait { from { width: 0; } to { width: 100%; } }
.ctx-citizen .kiosk-next .btn { align-self: stretch; height: 56px; min-height: 0; margin-top: 6px; border: 0; border-radius: 16px; background: var(--att-off); color: var(--brand); font-size: 18px; font-weight: 700; }
/* 버튼 */
:is(.ctx-citizen, .ins-light) .btn-pill { min-height: 56px; border-radius: 16px; font-size: 18px; font-weight: 700; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
:is(.ctx-citizen, .ins-light) .btn-pill:hover { background: var(--brand-hover); }
:is(.ctx-citizen, .ins-light) .btn-pill.outline { border: 0; background: var(--surface); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
:is(.ctx-citizen, .ins-light) .btn-pill .icon { width: 20px; height: 20px; }
:is(.ctx-citizen, .ins-light) .nav-pair { gap: 8px; padding-top: 18px; }
:is(.ctx-citizen, .ins-light) .nav-pair.col { flex-direction: column-reverse; }  /* 보조(테두리) 버튼이 위, 주 버튼이 맨 아래 */
.ctx-citizen .nav-pair:not(.col) { display: grid; grid-template-columns: 1fr 1.6fr; }
.ctx-citizen .nav-pair:not(.col) > :only-child { grid-column: 1 / -1; }
.ctx-citizen .nav-pair:not(.col) .btn-pill.outline { box-shadow: none; background: var(--att-off); color: var(--ink-2); }
.ctx-citizen .nav-pair.nav-fixed { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 0; background: rgba(246, 248, 250, 0.96); }
.ctx-citizen .nav-pair.nav-fixed:has(> .btn-pill:only-child), .ctx-citizen .consent .nav-pair.nav-fixed { grid-template-columns: 1fr; }
.ctx-citizen .btn-pill.dim { background: var(--brand); opacity: 0.45; }
.ctx-citizen .btn-pill.btn-post { background: var(--point); }
/* 입력 칸 */
:is(.ctx-citizen, .ins-light) .field-label { margin: 18px 0 8px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
:is(.ctx-citizen, .ins-light) .input-lg,
.ctx-citizen .fields-lg :is(input[type="text"], input[type="tel"]) { box-sizing: border-box; height: 60px; min-height: 0; margin: 0; padding: 0 18px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--surface); font-size: 20px; font-weight: 600; }
.ctx-citizen .field-error { margin: 10px 2px 0; font-size: 15px; font-weight: 600; color: var(--danger); }
/* 안내 카드(동그란 아이콘 + 굵은 한 줄 + 설명) */
:is(.ctx-citizen, .ins-light) .notice { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; margin: 40px 0 0; padding: 20px; border-radius: 18px; background: var(--surface); box-shadow: var(--ins-card-shadow); color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.notice-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--point-weak); color: var(--point); }
.notice-ic .icon { width: 22px; height: 22px; }
.notice.warn .notice-ic { background: var(--danger-weak); color: var(--danger); }
:is(.ctx-citizen, .ins-light) .notice b { margin: 0; padding-top: 6px; font-size: 19px; font-weight: 800; line-height: 1.4; color: var(--ink); }
:is(.ctx-citizen, .ins-light) .notice > :not(.notice-ic):not(b) { grid-column: 2; }
.ctx-citizen .screen > .brandbar + .notice, .ctx-citizen .screen > .notice:first-of-type { margin-top: 40px; }
.ctx-citizen .form-fill > .notice { margin: 4px 0 0; }
/* 강좌 카드(흰 카드: 강좌명 / 강사·장소) */
.ctx-citizen .program-card { margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--ins-card-shadow); }
.ctx-citizen .program-card .title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--brand); }
.ctx-citizen .program-card .place { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
/* 출석 첫 화면 */
.ctx-citizen .att-entry-head { align-items: flex-end; margin-top: 22px; }
.ctx-citizen .att-entry-head > div { line-height: 1.3; }
.ctx-citizen .att-entry-head > div > span:first-child { font-size: 15px; font-weight: 600; color: var(--point); }
.ctx-citizen .att-entry-head > div > span:last-child { font-size: 26px; font-weight: 800; letter-spacing: -0.8px; color: var(--brand); }
.ctx-citizen .att-entry-card { margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--ins-card-shadow); }
.ctx-citizen .att-entry-card .name { padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: -0.5px; }
.ctx-citizen .att-entry-card ul { margin-top: 12px; gap: 6px; }
.ctx-citizen .att-entry-card li { gap: 8px; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--ink-2); }
.ctx-citizen .att-entry-card li .icon { width: 18px; height: 18px; opacity: 1; color: var(--ink-3); }
.ctx-citizen .att-entry-lead { margin: 22px 2px 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.ctx-citizen .att-entry-lead b { color: var(--brand); }
.ctx-citizen .att-entry-form { margin-top: 0; }
.ctx-citizen .att-entry-form .field-label { margin: 18px 0 8px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.ctx-citizen .att-entry-form .input-lg { height: 60px; margin: 0; padding: 0 18px; font-size: 20px; border-radius: 16px; }
.ctx-citizen .att-entry-form .att-entry-post { flex: none; margin-top: auto; }
.ctx-citizen .att-entry-form .att-entry-submit { min-height: 56px; margin-top: auto; font-size: 18px; }
.ctx-citizen .att-entry-form .att-entry-post + .att-entry-submit { margin-top: 8px; }
.ctx-citizen .att-entry-form .att-entry-post { box-shadow: inset 0 0 0 1.5px var(--point); color: var(--point); }
.ctx-citizen .att-entry-form .att-entry-post + .att-entry-submit, .ctx-citizen .att-entry-form .input-lg + .att-entry-post { margin-top: auto; }
.ctx-citizen .att-entry-form .att-entry-post ~ .att-entry-submit { margin-top: 8px; }
.ctx-citizen .att-entry-form .input-lg:last-of-type { margin-bottom: 18px; }
/* 오늘 수업 없음 */
.ctx-citizen .screen > .noclass { margin: 0; padding: 26px 0 0; }
.ctx-citizen .noclass-course { font-size: 16px; color: var(--ink-2); }
.ctx-citizen .noclass-title { margin: 10px 0 0; font-size: 30px; line-height: 1.3; letter-spacing: -0.9px; color: var(--brand); }
.ctx-citizen .noclass-next { align-self: center; width: 100%; max-width: 300px; box-sizing: border-box; gap: 16px; margin-top: 24px; padding: 16px 18px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--ins-card-shadow); text-align: left; }
.ctx-citizen .noclass-next .cal { width: 60px; height: auto; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); gap: 0; }
.ctx-citizen .noclass-next .cal span { display: block; width: 100%; padding: 3px 0; background: var(--point); color: #fff; font-size: 12px; font-weight: 700; }
.ctx-citizen .noclass-next .cal b { padding: 4px 0 6px; font-size: 24px; }
.ctx-citizen .noclass-next .when > span { font-size: 14px; color: var(--ink-3); }
.ctx-citizen .noclass-next .when b { font-size: 19px; }
.ctx-citizen .noclass-hint { margin-top: 14px !important; font-size: 15px; color: var(--ink-3); }
/* 동명이인 확인 */
.ctx-citizen .qr-kind.att { margin: 6px 0 0; padding: 0; border-radius: 0; background: none; font-size: 15px; font-weight: 700; color: var(--point); }
.ctx-citizen .session-big { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.6px; color: var(--brand); }
.ctx-citizen .identity-confirm { margin: 28px 2px 0; font-size: 20px; line-height: 1.55; color: var(--ink); }
.ctx-citizen .identity-confirm b { color: var(--ink); }
.ctx-citizen form:has(> .nav-pair) { display: flex; flex-direction: column; flex: 1; }
/* 본인 확인(사후 설문 등) */
.ctx-citizen .entry-head { margin-top: 6px; }
.ctx-citizen .entry-title { font-size: 26px; letter-spacing: -0.8px; color: var(--brand); }
.ctx-citizen .entry-date { margin-top: 2px; font-size: 18px; color: var(--point); }
.ctx-citizen .entry-head + .program-card { margin-top: 14px; }
.ctx-citizen .form-fill.fields-lg.mt-7 { margin-top: 0; }
/* 끝 화면(출석 완료·설문 완료·이미 답함) */
.ctx-citizen .screen > .end-screen { flex: 1; justify-content: center; margin: 0; padding: 0 0 40px; }
.ctx-citizen .end-mark { width: 84px; height: 84px; margin: 0; border: 0; background: var(--qr-open-weak); color: var(--qr-open-ink); }
.ctx-citizen .end-mark.info { border: 0; background: var(--point-weak); color: var(--point); }
.ctx-citizen .end-mark svg { width: 46px; height: 46px; }
.ctx-citizen .end-title { margin-top: 22px; font-size: 26px; letter-spacing: -0.7px; }
.ctx-citizen .end-meta { margin-top: 8px; font-size: 17px; font-weight: 400; color: var(--ink-2); }
.ctx-citizen .end-note { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.ctx-citizen .end-next { margin-top: auto; padding: 16px 18px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--ins-card-shadow); gap: 12px; }
.ctx-citizen .end-next p { font-size: 16px; line-height: 1.55; text-align: left; }
.ctx-citizen .end-next p b { font-size: 18px; color: var(--ink); }
.ctx-citizen .end-screen + .nav-pair.col, .ctx-citizen .end-screen ~ .nav-pair.col { margin-top: auto; }
/* 참여자 동의서 */
.ctx-citizen .consent-check { margin-top: 20px; padding: 14px 16px; gap: 4px; border: 0; border-radius: 14px; background: var(--when-bg); color: #6b4a10; }
.ctx-citizen .consent-check b { font-size: 16px; color: var(--when-ink); }
.ctx-citizen .consent-check span { font-size: 15px; line-height: 1.5; }
.ctx-citizen .consent-check a { min-height: 0; margin-top: 2px; color: var(--point); font-size: 15px; font-weight: 700; text-decoration: none; }
.ctx-citizen .consent-title { margin: 22px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.7px; color: var(--brand); }
.ctx-citizen .consent-title span { margin-top: 4px; font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.ctx-citizen .consent-intro, .ctx-citizen .consent-title + .consent-intro { margin: 14px 0 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.ctx-citizen .consent-items { gap: 0; margin: 16px 0 0; padding: 0 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--ins-card-shadow); }
.ctx-citizen .consent-item { padding: 16px 0; border: 0; border-radius: 0; background: none; }
.ctx-citizen .consent-item + .consent-item { border-top: 1px solid var(--line); }
.ctx-citizen .consent-item dt { margin-bottom: 6px; font-size: 17px; font-weight: 800; color: var(--brand); }
.ctx-citizen .consent-item dd { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.ctx-citizen .consent-q { margin: 14px 0 0; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--ins-card-shadow); }
.ctx-citizen .consent-q legend { float: left; width: 100%; margin: 0; padding: 0; font-size: 18px; font-weight: 800; color: var(--ink); }
.ctx-citizen .consent-q legend + * , .ctx-citizen .consent-q .opt-radio:first-of-type { clear: both; }
.ctx-citizen .consent-q .opt-radio { margin: 8px 0 0; }
.ctx-citizen .consent-q legend ~ .opt-radio:first-of-type { margin-top: 12px; }
.ctx-citizen .consent-q.missing { margin: 14px 0 0; padding: 16px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--danger); }
.ctx-citizen .consent-q-miss { clear: both; margin: 0; padding-top: 6px; font-size: 15px; font-weight: 600; color: var(--danger); }
.ctx-citizen .opt-radio { gap: 12px; min-height: 54px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--att-off); color: var(--ink-2); font-size: 18px; font-weight: 600; }
.ctx-citizen .opt-radio::before { content: ""; flex: none; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ink-4); background: var(--surface); }
.ctx-citizen .opt-radio:has(input:checked) { background: var(--brand); color: #fff; font-weight: 600; }
.ctx-citizen .opt-radio:has(input:checked)::before { border: 6px solid #fff; background: transparent; }
.ctx-citizen .consent-foot { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
/* 설문 문항 */
.ctx-citizen .progress-line { height: 6px; margin-top: 16px; border-radius: var(--r-pill); background: var(--line); }
.ctx-citizen .progress-line i { background: var(--point); }
.ctx-citizen .q-head { margin-top: 16px; padding: 16px 18px; border: 0; border-radius: 18px; background: var(--point-weak); }
.ctx-citizen .q-title { font-size: 19px; font-weight: 800; }
.ctx-citizen .q-sub { margin-top: 4px !important; font-size: 16px; color: var(--ink-2); }
.ctx-citizen .q-lead { margin-top: 6px !important; font-size: 15px; color: var(--ink-2); }
.ctx-citizen .q-part { margin: 18px 2px 0; font-size: 15px; font-weight: 700; color: var(--point); }
.ctx-citizen .q-part .q-group { font-weight: 600; color: var(--ink-3); }
.ctx-citizen .question.q-start { margin: 8px 2px 0; font-size: 22px; line-height: 1.5; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); }
.ctx-citizen .q-tip, .ctx-citizen .question.q-start + .q-tip { margin: 8px 2px 0; padding: 0; background: none; font-size: 15px; color: var(--ink-3); }
.ctx-citizen .q-tip b { color: var(--brand); }
.ctx-citizen .q-tip + div, .ctx-citizen .question.q-start + div { margin-top: 16px; }
.ctx-citizen .form-fill .opt-pill:not(.opt-radio) { min-height: 56px; margin: 0 0 8px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--ins-card-shadow); font-size: 18px; font-weight: 600; color: var(--ink); }
.ctx-citizen .form-fill .opt-pill:not(.opt-radio).sel { background: var(--brand); box-shadow: none; color: #fff; }
.ctx-citizen .opt-grid .opt-pill { margin: 0; text-align: center; }
.ctx-citizen .send-overlay { background: rgba(17, 24, 39, 0.5); }
.ctx-citizen .send-overlay-box { width: 260px; padding: 26px 20px; border-radius: 20px; }
.ctx-citizen .send-spinner { width: 36px; height: 36px; border-color: var(--line); border-top-color: var(--point); }
.ctx-citizen .send-overlay-box b { font-size: 19px; font-weight: 800; }
.ctx-citizen .send-overlay-box p { font-size: 16px; color: var(--ink-2); }
/* 강좌 QR(강사가 들고 보여 주는 화면) */
.ins-light .pqr-title { margin: 22px 0 0; font-size: 30px; line-height: 1.25; letter-spacing: -0.9px; }
.ins-light .pqr-chips { margin-top: 12px; }
.pqr-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--ins-card-shadow); color: var(--ink-3); font-size: 15px; font-weight: 500; }
.pqr-chip i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ins-radio-line); }
.pqr-chip.on { background: var(--qr-open-weak); box-shadow: none; color: var(--qr-open-ink); }
.pqr-chip.on i { background: var(--qr-live); box-shadow: 0 0 0 3px rgba(22, 180, 154, 0.22); }
.ins-light .qr-box.pqr-box { box-sizing: border-box; max-width: none; margin: 26px 0 0; padding: 18px; border: 0; border-radius: 24px; box-shadow: 0 4px 16px 0 rgba(36, 90, 117, 0.13); }
.ins-light .nav-pair.col { margin-top: auto; flex-direction: column; }
.ins-light .nav-pair.col .qr-help { margin: 0 0 2px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ins-light .nav-pair.col form .btn-pill { width: 100%; }
/* 대리 입력 끝내기·유효하지 않은 링크 */
.ins-light .title-brand { margin: 22px 0 0; font-size: 26px; letter-spacing: -0.8px; }
.ins-light .kiosk-exit-lead { margin: 8px 0 0; font-size: 16px; }
.ins-light .fields-lg { flex: 1; display: flex; flex-direction: column; }
.ins-light .fields-lg .nav-pair.col { flex-direction: column-reverse; }
.ctx-citizen .nav-pair.nav-fixed:has(> .btn-pill.outline[style*="display: none"]) { grid-template-columns: 1fr; }
/* 관리자 개선안 R1: 참여자 화면 — 강좌 목록 상자, 매칭 확인 칩 단추, 출석 열 범례 */
.course-pick { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.course-pick label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.course-pick select { min-width: 320px; max-width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); }
.course-pick select:focus { outline: none; border-color: var(--point); box-shadow: var(--focus-ring); }
.seg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.seg-chips a { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: 14px; text-decoration: none; }
.seg-chips a:hover { border-color: var(--point); color: var(--point); }
.seg-chips a.on { border-color: var(--brand); background: var(--brand); color: #fff; font-weight: 700; }

/* 관리자 개선안 R2: 응답 정정 — 고른 행만 펼침 */
.corr-table tr.row-ed > td { background: var(--point-weak); }
.corr-table tr.corr-edit > td, .corr-table tr.corr-hist > td { background: var(--point-weak); padding-top: 4px; }
.corr-table tr.corr-hist > td { background: var(--surface-2); }
.corr-table .corr-edit .form-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.corr-table .corr-edit label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.corr-table .corr-edit label.grow { flex: 1; min-width: 240px; }
.corr-table .corr-edit label.grow input { flex: 1; }
.corr-table .corr-edit input { height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; font-size: 14px; }
.corr-hist-btn { margin-left: 6px; cursor: pointer; font: inherit; font-size: 12px; }
/* 관리자 개선안 D1: 설명이 붙은 선택 카드(내보내기 종류·머리글) */
.pick-grid { display: grid; gap: 10px; }
.pick-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
@media (max-width: 900px) { .pick-grid.three, .pick-grid.two { grid-template-columns: minmax(0, 1fr); } }
.pick-card { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; align-items: start; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; }
.pick-card input { grid-row: span 2; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--point); }
.pick-card b { font-size: 16px; color: var(--ink); }
.pick-card span { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.pick-card:hover { border-color: var(--point); }
.pick-card:has(input:checked) { border-color: var(--point); background: var(--point-weak); box-shadow: inset 0 0 0 1px var(--point); }
.pick-card:has(input:focus-visible) { outline: 2px solid var(--point); outline-offset: 2px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
/* 관리자 개선안 C1·C2: 강사 추가 가운데 창(왼쪽 강사 정보 / 오른쪽 담당 강좌), 아래 버튼 고정 */
dialog.modal.create-modal { width: min(880px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 48px); padding: 0; }
dialog.modal.create-modal[open] { display: flex; flex-direction: column; }
.create-modal .drawer-inner { min-height: 0; overflow: hidden; }
.create-modal .drawer-body { padding-bottom: 0; }
.create-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .create-cols { grid-template-columns: minmax(0, 1fr); } }
.create-left .field-help:first-child { margin-top: 0; }
.search.list-search { position: relative; display: block; margin: 0 0 8px; }
.search.list-search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; }
.search.list-search input { width: 100%; box-sizing: border-box; padding-left: 34px; }
.program-cards { max-height: 46vh; overflow-y: auto; padding-right: 4px; }
.program-cards .check-card[hidden] { display: none; }
.no-teacher { font-style: normal; font-weight: 700; color: var(--warn); }
.create-foot { position: sticky; bottom: 0; z-index: 1; margin: 16px -24px 0; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--surface-2); justify-content: flex-end; }
#form-create-admin .form-actions { position: sticky; bottom: 0; margin: 16px -24px 0; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--surface-2); }
.sms-preview { margin: 0 0 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); font: inherit; font-size: 14px; line-height: 1.6; white-space: pre-wrap; color: var(--ink); }
/* 관리자 개선안 E1·E2 */
.sv-cardhead .sv-hours-toggle { margin-left: auto; }
/* 체크박스·라디오는 입력칸 너비(100%)를 받지 않는다 — 받으면 옆 글자가 한 글자씩 세로로 깨진다 */
.form-stack :is(input[type=checkbox], input[type=radio]) { width: auto; }
.recompute-form { display: flex; flex-direction: column; gap: 8px; }
.recompute-head { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; }
.recompute-head h3 { margin: 0; }
.recompute-head .option { flex: none; white-space: nowrap; }
.recompute-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.recompute-list .option, .recompute-head .option { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-size: 14px; font-weight: 400; color: var(--ink); }
.recompute-list .option input, .recompute-head .option input { flex: none; width: auto; margin: 0; }
.recompute-list .option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .recompute-list { grid-template-columns: minmax(0, 1fr); } }
.setting-form { max-width: 420px; }
.setting-table td:first-child { font-weight: 600; }
/* 관리자 목록 도구 줄: 검색칸 옆 버튼(전체·출석만 등)을 검색칸과 같은 높이로 */
:is(.ctx-admin, .area-admin) .toolbar > .btn,
:is(.ctx-admin, .area-admin) .toolbar > .chips{ align-self: stretch; }
:is(.ctx-admin, .area-admin) .toolbar > .chips{ align-items: stretch; }
:is(.ctx-admin, .area-admin) .toolbar > .btn,
:is(.ctx-admin, .area-admin) .toolbar > .chips > .btn{ display: inline-flex; align-items: center; min-height: 0; padding-top: 0; padding-bottom: 0; }
/* 관리자 개선안 R4(나안): 회차 출석 — 한 줄 막대(칸 안 회차 번호) + 출석 / 전체 회차, 범례는 표 위 오른쪽 */
.att-bar { display: inline-flex; gap: 3px; vertical-align: middle; }
.att-bar i, .att-bar-legend i { display: inline-grid; place-items: center; box-sizing: border-box; border-radius: 4px; font-style: normal; font-variant-numeric: tabular-nums; }
.att-bar i { width: 24px; height: 20px; font-size: 12px; font-weight: 700; line-height: 1; }
.ab-present { background: var(--att-bar-ok); color: #fff; }
.ab-absent { background: var(--att-bar-no); color: #fff; }
.ab-unknown { background: var(--att-bar-un); color: var(--att-bar-un-ink); }
.ab-before { background: var(--surface); border: 1px dashed var(--att-bar-fu-line); color: var(--att-bar-fu-ink); font-weight: 500 !important; }
.ab-off { background: repeating-linear-gradient(45deg, var(--line) 0 3px, var(--surface) 3px 6px); border: 1px solid var(--line-strong); color: var(--ink-4); }
.att-bar-sum { margin-left: 10px; font-size: 13px; color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.att-bar-sum b { font-size: 14px; color: var(--ink); }
.att-bar-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.att-bar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.att-bar-legend i { width: 14px; height: 12px; border-radius: 3px; }
/* ── 관리자 화면(디자인 확정 시안 "관리자 — 강좌·강의 일정", 2026-10-30): 본문 위쪽 옅은 메시, 흰 카드에 옅은 그림자,
   상태 탭 + 흰 필터 알약 + [리스트|카드] 전환, 진행 회차 막대, 상태 알약(점). 머리줄·왼쪽 메뉴(공통 틀)는 그대로. */
.adm-page { position: relative; isolation: isolate; }
:is(.ctx-admin, .area-admin) .adm-page .page-head{ align-items: flex-end; margin-bottom: 20px; }
:is(.ctx-admin, .area-admin) .adm-page .page-head h1{ font-size: 30px; font-weight: 800; letter-spacing: -0.9px; color: var(--brand); }
:is(.ctx-admin, .area-admin) .adm-page .page-desc{ margin-top: 8px; font-size: 16px; color: var(--ink-2); }
:is(.ctx-admin, .area-admin) .adm-page .page-actions .btn{ height: 44px; padding: 0 16px; border-radius: 12px; font-size: 15px; font-weight: 700; }
:is(.ctx-admin, .area-admin) .adm-page .page-actions .btn-sub{ border: 0; background: var(--surface); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
:is(.ctx-admin, .area-admin) .adm-page .page-actions .btn:not(.btn-sub){ background: var(--brand); }
/* 상태 탭 */
.status-tabs-row { display: flex; align-items: flex-end; gap: 16px; border-bottom: 1px solid var(--line); }
.status-tabs { display: flex; gap: 4px; overflow-x: auto; }
.status-tabs a { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; font-size: 16px; font-weight: 600; color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.status-tabs a small { padding: 1px 8px; border-radius: var(--r-pill); background: var(--att-tag); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.status-tabs a:hover { color: var(--ink); }
.status-tabs a.on { font-weight: 800; color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.status-tabs a.on small { background: var(--point-weak); color: var(--brand); }
.status-tabs-sum { margin: 0 0 12px auto; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.status-tabs-sum b { color: var(--ink); }
/* 필터 줄: 흰 알약(옅은 그림자) */
:is(.ctx-admin, .area-admin) .adm-filters{ margin-top: 18px; gap: 8px; }
:is(.ctx-admin, .area-admin) .adm-filters select{ height: 42px; min-height: 0; padding: 0 34px 0 14px; border: 0; border-radius: 12px; background-color: var(--surface); box-shadow: var(--ins-card-shadow); font-size: 14px; font-weight: 600; color: var(--ink); }
.adm-search { position: relative; display: block; width: 260px; }
.adm-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-4); pointer-events: none; }
:is(.ctx-admin, .area-admin) .adm-search input{ box-sizing: border-box; width: 100%; height: 42px; min-height: 0; padding: 0 14px 0 38px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--ins-card-shadow); font-size: 14px; }
.view-toggle { margin-left: auto; display: inline-grid; grid-template-columns: auto auto; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ins-seg-bg); }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.view-toggle button .icon { width: 16px; height: 16px; }
.view-toggle button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); font-weight: 700; color: var(--brand); }
/* 흰 표 카드 */
.adm-card { margin-top: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--ins-card-shadow); overflow: hidden; }
:is(.ctx-admin, .area-admin) .adm-table{ margin: 0; border: 0; }
:is(.ctx-admin, .area-admin) .adm-table th{ padding: 14px; background: var(--surface-2); font-size: 14px; font-weight: 700; color: var(--ink-3); white-space: nowrap; border-bottom: 0; }
:is(.ctx-admin, .area-admin) .adm-table td{ padding: 16px 14px; border-top: 1px solid var(--line); border-bottom: 0; font-size: 15px; vertical-align: middle; }
:is(.ctx-admin, .area-admin) .adm-table :is(th, td):first-child{ padding-left: 24px; }
:is(.ctx-admin, .area-admin) .adm-table :is(th, td):last-child{ padding-right: 24px; }
:is(.ctx-admin, .area-admin) .adm-table .row-link{ font-weight: 700; color: var(--brand); text-decoration: none; }
:is(.ctx-admin, .area-admin) .adm-table .row-link:hover{ text-decoration: underline; }
:is(.ctx-admin, .area-admin) .adm-table .cell-sub{ display: block; margin-top: 2px; font-size: 13px; color: var(--ink-4); }
:is(.ctx-admin, .area-admin) .adm-table .kind-badge{ margin-left: 8px; font-size: 12px; font-weight: 500; }
/* 진행 회차 막대 */
.prog-bar { display: inline-flex; align-items: center; gap: 8px; width: 140px; }
.prog-bar.wide { width: 100%; }
.prog-bar > span { flex: 1; height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.prog-bar i { display: block; width: 0; height: 100%; border-radius: var(--r-pill); background: var(--point); }
.prog-bar.done i { background: var(--ink-4); }
.prog-bar b { font-size: 14px; color: var(--ink); }
/* 상태 알약 */
.st-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--att-tag); color: var(--ink-3); font-size: 13px; font-weight: 500; white-space: nowrap; }
.st-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.st-pill.st-active { background: var(--qr-open-weak); color: var(--qr-open-ink); }
.st-pill.st-active i { background: var(--qr-live); }
.st-pill.st-cancelled { background: var(--danger-weak); color: var(--danger); }
.st-pill.st-cancelled i { background: var(--danger); }
/* 카드 보기 */
.program-grid-view { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .program-grid-view { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adm-pcard { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--ins-card-shadow); color: inherit; text-decoration: none; }
.adm-pcard:hover { box-shadow: 0 0 0 1.5px var(--point-line), var(--ins-card-shadow); }
.pc-top { display: flex; align-items: center; gap: 8px; }
.pc-cohort { margin-left: auto; font-size: 13px; color: var(--ink-4); }
.pc-name b { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); }
.pc-name .kind-badge { margin-left: 8px; font-size: 12px; font-weight: 500; }
.pc-place { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.pc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-2); }
.pc-meta b, .pc-subs b { color: var(--ink); }
.pc-label { margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.pc-subs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.pc-subs b { margin-left: 4px; font-size: 17px; }
/* 관리자 강의 일정(디자인 확정 시안): 묶음 제목은 카드 밖(20px), 흰 큰 카드(옅은 그림자), 오늘 수업 흰 카드 + 상태 알약,
   시간표 머리 회색·오늘 남색, 수업 칸은 강좌 색을 옅게 깐 바탕 + 진한 글자, 진행 점은 끝난 회차 채움·남은 회차 테두리. */
.sv-page .sv-sec { margin-top: 44px; }
.sv-page .page-head + .sv-sec { margin-top: 24px; }
.sv-page .sv-cardhead { align-items: center; gap: 12px; margin: 0 4px; }
.sv-page .sv-cardhead h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); }
.sv-page .sv-cardhead h3 small { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.sv-page .sv-cardhead .dv-legend { margin: 0 0 0 auto; gap: 14px; font-size: 14px; color: var(--ink-2); }
.sv-page .sv-cardhead .dv-legend i { width: 12px; height: 12px; border-radius: 4px; }
.sv-page .sv-legend .gen { border: 0; box-shadow: inset 0 0 0 2px var(--ink-4); }
.sv-page .sv-legend .done { background: var(--point); border-radius: 4px; }
.sv-page .sv-legend .left { border: 0; background: var(--surface); box-shadow: inset 0 0 0 2px var(--point); border-radius: 4px; }
.sv-page .sv-legend .post { border: 0; background: var(--dh-gold, var(--gold)); opacity: .55; box-shadow: none; border-radius: 99px; transform: none; } /* 실제 2차 설문 띠와 같은 색 */
.sv-page .sv-hours-toggle { height: 34px; min-height: 0; margin-left: 0; padding: 0 12px; border: 0; border-radius: 10px; background: var(--att-off); color: var(--brand); font-size: 14px; font-weight: 600; }
.sv-page .sv-card { margin: 12px 0 0; padding: 24px; border: 0; border-radius: 20px; background: var(--surface); box-shadow: var(--ins-card-shadow); }
/* 오늘 수업 */
.sv-page .sv-today { margin-top: 16px; display: flex; gap: 12px; }
.sv-page .sv-today > .sv-card { flex: 1; margin: 0; }
.sv-page .sv-tc { flex: 1; min-width: 0; padding: 18px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--ins-card-shadow); }
.sv-page .sv-tc::before { display: none; }
.sv-page .sv-tc .st { position: static; display: flex; align-items: center; justify-content: space-between; }
.sv-page .sv-tc .t { margin-top: 10px; padding: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.6px; color: var(--ink); }
.sv-page .sv-tc.is-done .t { color: var(--ink-3); }
.sv-page .sv-tc .n { margin-top: 4px; font-size: 16px; font-weight: 700; color: var(--ink); gap: 8px; }
.sv-page .sv-tc .n .kind-badge { font-size: 12px; font-weight: 500; }
.sv-page .sv-tc .m { margin-top: 2px; font-size: 14px; color: var(--ink-3); }
.st-pill.st-now { background: var(--qr-open-weak); color: var(--qr-open-ink); }
.st-pill.st-now i { background: var(--qr-live); box-shadow: 0 0 0 3px rgba(22, 180, 154, 0.22); }
.st-pill.st-next { background: var(--point-weak); color: var(--point); }
.st-pill.st-next i { background: var(--point); }
.sv-post-tag { padding: 2px 8px; border-radius: var(--r-pill); background: var(--point); color: #fff; font-size: 12px; font-weight: 500; }
/* 주간 시간표 */
.sv-page .sv-tt { border: 0; padding: 0; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.sv-page .sv-tt .h { padding: 10px 0; border: 0; background: var(--surface-2); color: var(--ink-2); font-size: 15px; font-weight: 700; }
.sv-page .sv-tt .h small { font-size: 12px; color: var(--ink-4); }
.sv-page .sv-tt .h.on { border-radius: 0; background: var(--brand); color: #fff; }
.sv-page .sv-tt .h.on small { color: rgba(255, 255, 255, 0.75); }
.sv-page .sv-col { border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); }
.sv-page .sv-col.on { background: var(--surface); }
.sv-page .sv-hours { border-top: 1px solid var(--line); }
.sv-page .sv-hours span { right: 8px; transform: none; margin-top: 4px; font-size: 12px; color: var(--ink-4); }
.sv-page .sv-gl { border-top: 1px solid var(--surface-3); }
.sv-page .sv-ev, .sv-page .sv-ev.gen { padding: 8px 10px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--ink-2); }
.sv-page .sv-ev b { font-size: 14px; color: var(--ink); }
.sv-page .sv-ev .s { opacity: 1; font-size: 12px; color: var(--ink-2); }
.sv-page .sv-ev:not(.gen) .kind-badge.kind-bridge { background: var(--brand); }
/* 강좌별 진행 */
.sv-page .sv-gr { grid-template-columns: 240px 1fr; min-height: 64px; border-bottom: 0; border-top: 1px solid var(--line); }
.sv-page .sv-axis { grid-template-columns: 240px 1fr; }
.sv-page .sv-ticks { border-bottom: 0; }
.sv-page .sv-ticks span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.sv-page .sv-gr .lb b { font-size: 15px; color: var(--ink); gap: 8px; }
.sv-page .sv-gr .lb small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.sv-page .sv-track { height: 64px; }
.sv-page .sv-bar { top: 29px; height: 6px; background: var(--line); }
.sv-page .sv-bar i { background: var(--point); }
.sv-page .sv-dot { top: 21px; width: 22px; height: 22px; margin-left: -11px; border: 0; background: var(--surface); color: var(--point); box-shadow: inset 0 0 0 2px var(--point); font-size: 11px; font-weight: 700; }
.sv-page .sv-dot.done { background: var(--point); color: #fff; box-shadow: none; }
/* 마지막 회차 = 범례 「◇ 마지막 회차」와 같은 금색 마름모(E9) */
.sv-page .sv-dot.last { top: 22px; width: 20px; height: 20px; margin-left: -10px; transform: rotate(45deg); border-radius: 5px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--gold); color: var(--gold-ink); }
.sv-page .sv-dot.last span { transform: rotate(-45deg); }
.sv-page .sv-dot.last.done { background: var(--gold); color: #fff; box-shadow: none; }
/* ── 관리자 틀(디자인 확정 시안 "관리자 화면", 2026-10-30): 흰 머리줄 64px(아래 옅은 선 대신 그림자), 흰 왼쪽 메뉴 248px,
   메뉴 줄 46px·둥근 12px(고른 메뉴 옅은 청록 바탕 + 남색 굵게), 본문 회백 바탕 위쪽 전체 폭에 옅은 메시. 모든 관리자 화면 공통. */
body.ctx-admin { --side-w: 248px; --top-h: 64px; --bg: #f7f8fa; }
.area-admin { --top-h: 64px; --bg: #f7f8fa; }  /* V0918B: 관리 본문 변수는 본문 감싸기(.area-admin)에도 — 값 그대로 */
:is(.ctx-admin, .area-admin) .app-header{ padding: 0 24px; border-bottom: 0; background: var(--surface); backdrop-filter: none; box-shadow: 0 1px 0 #eef1f4; }
:is(.ctx-admin, .area-admin) .app-brand b{ padding-left: 0; border-left: 0; font-size: 17px; font-weight: 800; color: var(--brand); }
:is(.ctx-admin, .area-admin) .app-brand .logo{ height: 22px; }
:is(.ctx-admin, .area-admin) .app-brand .logo-mark{ height: 26px; width: auto; }
:is(.ctx-admin, .area-admin) .user-menu .avatar{ width: 34px; height: 34px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 800; }
:is(.ctx-admin, .area-admin) .user-menu .who b{ font-size: 15px; font-weight: 700; color: var(--ink); }
:is(.ctx-admin, .area-admin) .user-menu .who small{ font-size: 13px; color: var(--ink-3); }
:is(.ctx-admin, .area-admin) .layout{ position: relative; isolation: isolate; background: linear-gradient(90deg, var(--surface) var(--side-w), transparent var(--side-w)); }
:is(.ctx-admin, .area-admin) .side{ padding: 20px 16px; border-right: 0; box-shadow: 1px 0 0 #eef1f4; }
:is(.ctx-admin, .area-admin) .side .grp{ margin: 22px 12px 8px; padding: 0; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--ink-4); }
:is(.ctx-admin, .area-admin) .side a{ gap: 12px; height: 46px; padding: 0 12px; margin-bottom: 0; border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--ink-2); }
:is(.ctx-admin, .area-admin) .side a .icon{ width: 20px; height: 20px; color: var(--ink-4); }
:is(.ctx-admin, .area-admin) .side a:hover{ background: var(--surface-2); color: var(--ink); }
:is(.ctx-admin, .area-admin) .side a.on{ background: var(--point-weak); color: var(--brand); font-weight: 800; }
:is(.ctx-admin, .area-admin) .side a.on .icon{ color: var(--brand); }
:is(.ctx-admin, .area-admin) .main{ padding: 32px 40px 48px; }
:is(.ctx-admin, .area-admin) .page-head h1{ font-size: 30px; font-weight: 800; letter-spacing: -0.9px; color: var(--brand); }
:is(.ctx-admin, .area-admin) .page-desc{ font-size: 16px; color: var(--ink-2); }
@media (max-width: 768px) {
  :is(.ctx-admin, .area-admin) .layout{ background: none; }
  :is(.ctx-admin, .area-admin) .main{ padding: 24px 16px 40px; }
}
/* 강의 일정 주간 시간표(v0.9.14b): 요일 칸 폭은 서버가 정한 값(같은 시간대에 겹치는 강좌가 많은 요일은 넓게,
   수업 없는 요일은 좁게)을 그대로 쓰고 카드 폭을 꽉 채운다. 겹친 줄이 많아 다 못 담으면 시간표만 카드 안에서 가로 스크롤. */
.sv-page .sv-tt { width: 100%; min-width: max-content; }
.sv-page .sv-scroll { overflow-x: auto; }
/* 수업 칸: 말줄임 없이 줄바꿈, 높이는 수업 시간만큼을 최소로 내용에 맞게. 올리거나 누르면 위로 올라와 가려지지 않게 */
.sv-page .sv-ev { height: auto; overflow: visible; overflow-wrap: anywhere; word-break: keep-all; cursor: pointer; }
.sv-page .sv-ev b { display: block; white-space: normal; overflow: visible; line-height: 1.35; }
.sv-page .sv-ev b .kind-badge { display: inline-block; margin-left: 4px; vertical-align: 1px; }
.sv-page .sv-ev .s { white-space: normal; overflow: visible; margin-top: 2px; line-height: 1.35; }
.sv-page .sv-ev:is(:hover, :focus-visible) { z-index: 4; box-shadow: var(--shadow-md); outline: 2px solid var(--c); outline-offset: 0; }
/* 전체 정보 말풍선(ui.js가 body에 하나 둔다) */
.sv-tip { position: absolute; z-index: 60; max-width: 300px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-md); font-size: 14px; line-height: 1.5; color: var(--ink); pointer-events: none; }
.sv-tip span { display: inline-block; min-width: 36px; margin-right: 8px; font-weight: 700; color: var(--ink-3); }
.sv-tip[hidden] { display: none; }
/* 좁은 화면(390px): 시간표 대신 요일별 목록. 넓은 화면에서는 목록을 숨긴다 */
.sv-wlist { display: none; }
.sv-wday + .sv-wday { margin-top: 16px; }
.sv-wday h4 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--ink); }
.sv-wday h4 small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.sv-wday.on h4 { color: var(--brand); }
.sv-wit { padding: 10px 12px 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--c) 12%, #fff); border-left: 4px solid var(--c); font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.sv-wit + .sv-wit { margin-top: 8px; }
.sv-wit b { display: block; font-size: 15px; color: var(--ink); }
.sv-wit b .kind-badge { display: inline-block; margin-left: 6px; font-size: 12px; vertical-align: 1px; }
.sv-wit .s { margin-top: 2px; }
.sv-wit.warn { outline: 2px dashed var(--overlap-line); outline-offset: -2px; }
@media (max-width: 760px) {
  .sv-page .sv-card-flush .sv-scroll, .sv-page .sv-hours-toggle { display: none; }
  .sv-page .sv-sec .sv-card.sv-card-flush { padding: 16px; }
  .sv-wlist { display: block; }
}
/* 강좌별 진행: 「오늘」은 날짜 줄 위 별도 줄에 두고 선만 날짜 칸을 지나가게. 범례는 줄바꿈 허용 */
.sv-page .sv-ticks { height: 46px; }
.sv-page .sv-ticks span { top: 22px; }
.sv-page .sv-ticks .sv-todayv::after { top: -18px; left: 0; transform: translateX(-50%); padding: 0 4px; background: var(--surface); line-height: 18px; }
.sv-page .sv-ticks .sv-todayv { top: 18px; }
.sv-page .sv-cardhead .dv-legend { flex-wrap: wrap; row-gap: 6px; min-width: 0; }
.sv-page .sv-cardhead .dv-legend span { white-space: nowrap; }
/* 주간 시간표 카드: 안쪽 여백 없이 표가 카드를 꽉 채운다(카드 모서리를 표가 그대로 씀) */
.sv-page .sv-card.sv-card-flush { padding: 0; overflow: hidden; }
.sv-page .sv-card-flush .sv-tt { border-radius: 0; box-shadow: none; }
.sv-page .sv-card-flush .sv-tt .h:first-child { border-top-left-radius: 0; }
/* 관리자 본문은 오른쪽 빈 공간 없이 화면 폭을 다 쓴다(모든 관리자 화면) */
:is(.ctx-admin, .area-admin) .main > :not(dialog):not(.toast-stack){ max-width: none; }

/* ───────── 대시보드 공통 카드 틀(v0.9.14, 시안 docs/mockups/v0913_main.html) ─────────
   영역 = 흰 카드(테두리 1px·모서리 10px·그림자 없음, 마우스 올림 때만 옅게), 바탕 옅은 회색.
   핵심 숫자 = 항목별 카드(값 + 보조 1줄, 비율은 얇은 막대). 카드 안 표·차트는 선 위주.
   색: 남색 1색 + 상태 배지(진행 주황 bd-warn / 예정 파랑 bd-info / 대상 아님 회색 bd). */
body.ctx-dash { background: #f5f7f9; }
.ctx-dash .dash-body { background: transparent; }
.area-dash .panel{ background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.area-dash .panel + .panel, .area-dash .panel + .grid2, .area-dash .grid2 + .panel, .area-dash .grid2 + .grid2, .m-cards + .panel { margin-top: 12px; }
.m-sec { display: flex; align-items: center; gap: 8px; margin: 28px 0 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.m-sec:first-of-type { margin-top: 16px; }
.m-sec > span { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-size: 12px; }
.m-sec .btn-sm { margin-left: auto; background: none; border: 0; padding: 2px 0; min-height: 0; color: var(--ink-3); text-decoration: underline; font-weight: 500; }
.m-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.m-cards.m-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; min-width: 0; }
a.m-card:hover { border-color: var(--point-line); box-shadow: 0 4px 14px rgba(22, 59, 88, .08); }
.m-card-h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.m-card-h .icon { width: 16px; height: 16px; color: var(--brand); }
.m-card-h .m-go { margin-left: auto; color: var(--ink-4); width: 14px; height: 14px; }
.m-card-v { font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -.5px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.m-card-v small { font-size: 15px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.m-card-v.na { font-size: 15px; font-weight: 600; color: var(--ink-3); padding: 9px 0; }
.m-bar { height: 5px; background: #e9eef2; border-radius: 3px; overflow: hidden; }
.m-bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.m-card-d { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-card.na { background: #fafbfc; }
.m-mini { display: inline-block; width: 56px; height: 5px; background: #e9eef2; border-radius: 3px; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.m-mini i { display: block; height: 100%; background: var(--brand); }
.m-mini.w { width: 44px; margin: 0 2px 0 4px; }
.m-n { font-size: 12.5px; color: var(--ink-3); margin-left: 4px; }
.m-hide { font-size: 12px; color: var(--ink-3); border: 1px dashed var(--line-strong); padding: 0 6px; white-space: nowrap; }
.m-list { margin: 6px 0 0; padding-left: 16px; font-size: 13px; }
.m-list li + li { margin-top: 2px; }
.area-dash .stat-row.m-tasks{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 0; }
.area-dash .stat-row.m-tasks .stat-tile, .area-dash .stat-row.m-tasks .stat-tile:first-child, .area-dash .stat-row.m-tasks .stat-tile:last-child{ background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.area-dash .m-tasks .stat-tile + .stat-tile{ border-left: 1px solid var(--line); }
.area-dash .m-tasks .stat-tile .v{ color: var(--warn); }
.area-dash .m-tasks .stat-tile .v.na{ color: var(--ink-3); font-size: 15px; }
/* 문항별 사전 ○ → 사후 ● 점 그래프(1~5점 → 0~100%) */
.m-db { display: flex; flex-direction: column; gap: 14px; padding: 6px 0 4px; }
.m-db-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-3); align-items: center; }
.m-db-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.m-db-legend i.o { border: 2px solid var(--brand); background: var(--surface); }
.m-db-legend i.f { background: var(--brand); }
.m-db-legend i.t { border-radius: 2px; background: var(--chart-accent); }
.m-db-row.wide { grid-template-columns: 190px 1fr 150px; }
.m-db-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
.m-db-row { display: grid; grid-template-columns: 190px 1fr 78px; align-items: center; gap: 12px; font-size: 14px; }
.m-db-t { position: relative; height: 20px; border-bottom: 1px solid var(--line); }
.m-db-t .ln { position: absolute; top: 9px; height: 3px; background: #9bb7cf; }
.m-db-t .dot { position: absolute; top: 4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; }
.m-db-t .dot.o { border: 2px solid var(--brand); background: var(--surface); }
.m-db-t .dot.f { background: var(--brand); }
.m-db-t .dot.t { border-radius: 2px; background: var(--chart-accent); }
.m-db-v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.m-db-row .m-hide { justify-self: start; }
/* 응답 분포 100% 막대(1 → 5) */
.m-dist { display: flex; height: 12px; min-width: 120px; overflow: hidden; border-radius: 2px; background: #e9eef2; }
.m-dist i { display: block; height: 100%; }
.m-dist .s1, .m-dist-legend .s1 { background: var(--chart-6); } .m-dist .s2, .m-dist-legend .s2 { background: var(--chart-5); } .m-dist .s3, .m-dist-legend .s3 { background: var(--chart-4); }
.m-dist .s4, .m-dist-legend .s4 { background: var(--chart-2); } .m-dist .s5, .m-dist-legend .s5 { background: var(--chart-1); }
.m-dist .tr, .m-dist-legend .tr { background: var(--brand); } .m-dist .sk, .m-dist-legend .sk { background: var(--chart-5); } .m-dist .ms, .m-dist-legend .ms { background: #e9eef2; }
.m-dist .dn, .m-dist-legend .dn { background: var(--chart-accent-2); } .m-dist .sm, .m-dist-legend .sm { background: var(--chart-6); } .m-dist .up, .m-dist-legend .up { background: var(--brand); }
.m-dist-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-3); margin: 0 0 8px; }
.m-dist-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; }
.m-dist-pair { display: grid; grid-template-columns: 30px 1fr; gap: 3px 8px; align-items: center; font-size: 12px; color: var(--ink-3); }
.m-check { color: var(--warn); font-weight: 600; white-space: nowrap; }
.m-move { width: 100%; border-collapse: collapse; font-size: 14px; }
.m-move th, .m-move td { border: 1px solid var(--line); padding: 10px 12px; text-align: center; }
.m-move thead th { background: var(--surface-2); font-weight: 600; color: var(--ink-2); }
.m-move tbody th { text-align: left; font-weight: 600; color: var(--ink-2); background: var(--surface-2); }
.m-move td b { display: block; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.m-move td span { font-size: 12px; color: var(--ink-3); }
.area-dash .notice{ font-size: 15px; padding: 14px 16px; margin: 0; display: flex; gap: 8px; align-items: flex-start; }
/* 해당 자료가 없을 때 카드 대신 한 줄 안내 */
.m-note { margin: 12px 0 0; padding: 10px 16px; font-size: 13px; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.m-card-v.na .bd { font-size: 13px; }
/* 가로 막대 목록(강좌별 출석률·연령대): 이름 전체 + 남색 막대 + 값 */
.m-hb { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.m-hb-row { display: grid; grid-template-columns: minmax(120px, 38%) 1fr 64px; gap: 10px; align-items: center; font-size: 13.5px; }
.m-hb-row.with-sub { grid-template-columns: minmax(120px, 38%) 1fr 64px 88px; }
.m-hb-name { color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; line-height: 1.35; }
.m-hb-name small { color: var(--ink-4); margin-left: 4px; }
.m-hb-t { position: relative; height: 14px; background: #e9eef2; }
.m-hb-t i { display: block; height: 100%; background: var(--brand); }
.m-hb-t .th { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 1px dashed var(--ink-3); }
.m-hb-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.m-hb-s { text-align: right; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.m-hb-row .m-hide { grid-column: 2 / -1; justify-self: start; }
.m-hb-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-3); margin: 0 0 8px; }
.m-hb-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; background: var(--brand); }
.m-hb-legend i.th { width: 0; height: 12px; background: none; border-left: 1px dashed var(--ink-3); }
/* 모바일 폭: 페이지 가로 스크롤 없이 — 격자 칸이 내용 폭만큼 늘어나지 않게, 넓은 표·차트는 패널 안에서만 가로 스크롤 */
.area-dash .grid2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.area-dash .stack > *, .area-dash [data-group-pane], .area-dash .panel{ min-width: 0; }
.m-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.m-scroll > .chart { min-width: var(--min-w, 0); }
@media (max-width: 960px) { .area-dash .grid2{ grid-template-columns: minmax(0, 1fr); } }
/* 나란히 놓인 상자(v0.9.14b): 같은 줄의 상자는 위쪽 시작선과 높이를 같게. 상자 사이 위 여백(.panel + .panel)은
   세로로 쌓일 때만 쓰고 격자 안에서는 0(간격은 격자 gap), 상자는 줄 높이만큼 늘이고 빈 상태 안내는 남은 높이를 채운다. */
.area-dash :is(.grid2, .row2){ align-items: stretch; }
.area-dash :is(.grid2, .row2) > .panel{ display: flex; flex-direction: column; margin-top: 0; }
.area-dash :is(.grid2, .row2) > .panel > :is(.chart-empty, .empty):last-child{ flex: 1; }
@media (max-width: 768px) {
  .m-db-row.wide { grid-template-columns: minmax(0, 1fr) auto; }
  .m-db-row.wide > :first-child { grid-column: 1 / -1; }
  /* 강좌 표 → 강좌별 카드(첫 칸 = 강좌, 나머지 칸 = 이름표 + 값) */
  .m-cardtable thead { display: none; }
  .m-cardtable, .m-cardtable tbody { display: block; }
  .m-cardtable tr { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface); }
  .m-cardtable td { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border: 0; text-align: right; flex-wrap: wrap; }
  .m-cardtable td:first-child { display: block; text-align: left; font-weight: 600; padding-bottom: 6px; }
  .m-cardtable td:first-child .trunc { white-space: normal; }
  .m-cardtable .name-cell { max-width: none; flex-wrap: wrap; }
  .m-cardtable td[data-label]::before { content: attr(data-label); color: var(--ink-3); font-size: 12.5px; font-weight: 500; text-align: left; }
  .m-cardtable td.num { justify-content: space-between; }
}
@media (max-width: 640px) {
  .m-hb-row, .m-hb-row.with-sub { grid-template-columns: 1fr 56px; gap: 4px 8px; }
  .m-hb-row .m-hb-name { grid-column: 1 / -1; }
  .m-hb-row.with-sub .m-hb-s { grid-column: 1 / -1; text-align: left; }
  .m-hb-row .m-hide { grid-column: 1 / -1; }
}
@media (max-width: 1200px) { .m-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .m-db-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 768px) {
  .area-dash .stat-row.m-tasks{ grid-template-columns: 1fr; }
  .area-dash .m-tasks .stat-tile + .stat-tile{ border-left: 1px solid var(--line); }
  .m-db-row { grid-template-columns: 120px 1fr 64px; gap: 8px; font-size: 13px; }
}
@media (max-width: 640px) { .m-cards, .m-cards.m-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 관리자 강좌 목록(좁은 화면): 강좌 이름 칸이 몇 글자씩 세로로 접히지 않게 최소 폭 — 표는 카드 안에서 가로로 민다 */
@media (max-width: 760px) {
  :is(.ctx-admin, .area-admin) .program-list-view{ overflow-x: auto; }
  :is(.ctx-admin, .area-admin) .program-list-view .adm-table td:first-child{ min-width: 200px; }
  :is(.ctx-admin, .area-admin) .program-list-view .adm-table td:nth-child(3){ white-space: nowrap; }
}


/* ───────── v0.9.15 시안(docs/mockups/v0915_dashboard.html) 화면 구성 요소: 운영 현황·지역 공급·수요·응답 구성·데이터 메모 ───────── */
.v-viewer{display:none}
.viewer .v-viewer{display:inline}
.viewer .v-staff{display:none}
.v-top{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:4px 0 6px}
.v-top .dash-filter-form{margin:0}
.v-ops .panel-desc{margin-bottom:12px}
.v-ops-grid{display:grid;grid-template-columns:330px minmax(0,1fr);gap:20px;align-items:start}
.v-map{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;position:sticky;top:12px}
.v-cell{display:flex;flex-direction:column;gap:2px;min-height:62px;padding:6px 6px;border-radius:6px;font-size:11.5px;text-decoration:none;line-height:1.25}
.v-cell b{font-size:12px}
.v-void{visibility:hidden}
.v-off{border:1px dashed var(--line-strong,#c9d2da);color:var(--ink-4,#9aa5b1);background:#fafbfc}
.v-on{background:var(--brand);color:#fff;border:1px solid var(--brand)}
.v-on small{color:#d6e3ee}
.v-on:hover{box-shadow:0 4px 12px rgba(22,59,88,.25)}
.v-split{display:block;margin-top:auto;font-size:10.5px;color:#d6e3ee}
.v-split i{font-style:normal;font-size:10px;text-align:center;border-radius:3px;padding:1px 0}
.v-split .sb{background:#fff;color:var(--brand)}
.v-split .sg{background:#9bb7cf;color:#0f2d45}
.v-list{min-width:0}
.v-head,.v-row{display:grid;grid-template-columns:minmax(150px,1.5fr) 74px 124px 118px minmax(160px,1.5fr);gap:12px;align-items:center}
.v-head{font-size:12px;color:var(--ink-3);font-weight:600;padding:0 12px 8px;border-bottom:1px solid var(--line)}
.v-area{margin-top:14px}
.v-area-h{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;background:var(--surface-2,#f3f6f9);border-radius:8px;font-size:13px;color:var(--ink-3)}
.v-area-h b{font-size:15px;color:var(--ink)}
.v-area-h .icon{width:16px;height:16px;color:var(--brand)}
.v-area-att{margin-left:auto;font-weight:600;color:var(--ink-2)}
.v-area-att small{font-weight:400;color:var(--ink-3)}
.v-org{margin:6px 0 0 14px;border-left:2px solid var(--line);padding-left:12px}
.v-org-h{display:flex;align-items:center;gap:6px;padding:8px 0 4px;font-size:13px;color:var(--ink-3)}
.v-org-h b{font-size:14px;color:var(--ink)}
.v-org-h .icon{width:15px;height:15px;color:var(--ink-3)}
.v-row{padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}
.v-row:last-child{border-bottom:0}
.v-c1{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.v-genre{font-size:12px;color:var(--ink-3);border:1px solid var(--line);border-radius:4px;padding:0 5px}
.v-c2{color:var(--ink-2);font-variant-numeric:tabular-nums}
.v-dots{display:inline-flex;gap:3px;vertical-align:middle;margin-right:6px}
.v-dots i{width:10px;height:10px;border-radius:50%}
.v-dots .d1{background:var(--brand)}
.v-dots .d0{border:1.5px solid #9bb7cf;background:#fff}
.v-dn{font-size:12.5px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.v-c4,.v-c5{font-variant-numeric:tabular-nums}
.v-na{display:inline-block;font-size:12.5px;font-weight:600;color:var(--warn);border:1px dashed var(--warn-line);border-radius:4px;padding:0 6px}
.v-sub{display:block;font-size:12px;color:var(--ink-3);margin-top:2px}
.v-chg{display:flex;flex-direction:column;gap:10px}
.v-grp{border:1px solid var(--line);border-radius:8px;padding:10px 14px}
.v-grp-h{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;margin:0 0 6px;font-size:13px;color:var(--ink-3)}
.v-grp-h b{font-size:14px;color:var(--ink)}
.v-grp .m-db-row{grid-template-columns:260px 1fr 78px;padding:3px 0}
.v-read{margin-top:14px;padding:12px 16px;background:#f7f9fb;border:1px solid var(--line);border-radius:8px;font-size:13.5px;color:var(--ink-2)}
.v-read-t{display:flex;align-items:center;gap:6px;margin:0 0 6px;font-weight:700;color:var(--ink)}
.v-read-t .icon{width:16px;height:16px;color:var(--brand)}
.v-read ul{margin:0;padding-left:18px;line-height:1.65}
.v-draft{margin:8px 0 0;font-size:12px;color:var(--warn)}
@media (max-width:1380px){.v-ops-grid{grid-template-columns:1fr}.v-map{position:static;max-width:460px}}
@media (max-width:900px){
 .v-head{display:none}
 .v-row{grid-template-columns:1fr 1fr;row-gap:6px}
 .v-c1{grid-column:1/-1}.v-c5{grid-column:1/-1}
 .v-grp .m-db-row{grid-template-columns:1fr 70px}
 .v-grp .m-db-t{grid-column:1/-1;order:3}
}
@media (max-width:640px){
 .m-tasks{grid-template-columns:1fr}
 .v-org{margin-left:4px;padding-left:8px}
 .mock-switch .ms-note{display:none}
 .seg{width:100%}.seg button{flex:1}
}
.v-ph{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.v-q{margin:4px 0 0;font-size:13px;color:var(--ink-3)}
.v-export{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.v-export .btn{display:inline-flex;gap:6px;align-items:center}
.v-path{color:var(--ink-3);font-size:13px}
.v-path b{color:var(--ink);font-size:14px}
.v-head.st,.v-row.st{grid-template-columns:minmax(150px,1.5fr) 64px 74px 124px 118px minmax(160px,1.5fr)}
.v-c6{font-size:13px;color:var(--ink-2)}
.v-recon{display:flex;flex-direction:column;gap:8px}
.v-eq{font-size:14px;color:var(--ink-2)}
.v-eq b{color:var(--ink)}
.v-stack{display:flex;height:26px;border-radius:6px;overflow:hidden;font-size:12px}
.v-stack i{font-style:normal;display:flex;align-items:center;padding:0 8px;white-space:nowrap;overflow:hidden}
.v-stack .s1{background:var(--brand);color:#fff}
.v-stack .s0{background:#e9eef2;color:var(--ink-2)}
.v-stack .s2{background:#fde9c8;color:#7a4b00}
.v-heat{display:inline-block;min-width:46px;padding:2px 6px;border-radius:4px;background:color-mix(in srgb,var(--brand) calc(var(--p)*0.8%),#fff);color:#fff;font-weight:600}
.v-dist{display:flex;height:10px;border-radius:3px;overflow:hidden;min-width:160px}
.v-dist i:nth-child(1){background:#dfe7ee}
.v-dist i:nth-child(2){background:#c3d3e0}
.v-dist i:nth-child(3){background:#9bb7cf}
.v-dist i:nth-child(4){background:#4f7a9c}
.v-dist i:nth-child(5){background:var(--brand)}
.v-round{display:flex;gap:12px;align-items:center;margin:6px 0}
.v-scope{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.v-scope p{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.v-grid th,.v-grid td{white-space:nowrap}
.v-gc{display:inline-block;font-size:12px;padding:2px 6px;border-radius:4px}
.v-gc.on{background:var(--brand);color:#fff}
.v-gc.off{background:#fff;border:1px dashed var(--warn-line);color:var(--warn)}
.v-sum{margin:10px 0 0;font-size:14px}
.v-pick{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.v-pick .on{background:var(--brand);color:#fff;border-color:var(--brand)}
.v-mutedp{color:var(--ink-3);font-size:13.5px;margin:0}
.v-admin-note{display:inline-block;background:#fff7e6;border:1px solid var(--warn-line);color:#7a4b00;font-size:12.5px;padding:3px 8px;border-radius:4px;margin:4px 0 0}
.v-warnrow td{background:#fffaf0}
.v-sub.warn{color:var(--warn)}
.v-upl{display:flex;gap:10px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.v-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.v-memo{margin-top:14px;padding:12px 16px;background:#f7f9fb;border:1px solid var(--line);border-radius:8px;font-size:13.5px}
.v-memo-t{margin:0 0 6px;font-weight:700}
.v-memo ul{margin:0;padding-left:18px;line-height:1.7}
.v-3col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.v-3col .panel{margin:0!important}
.v-2col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.v-2col .panel{margin:0!important}
.v-donut{width:130px;height:130px;margin:6px auto;border-radius:50%;background:conic-gradient(var(--brand) 0 51%,#e9eef2 51% 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}
.v-donut::before{content:"";position:absolute;inset:18px;background:#fff;border-radius:50%}
.v-donut b,.v-donut span{position:relative}
.v-donut b{font-size:22px}
.v-donut span{font-size:11.5px;color:var(--ink-3)}
.v-hbar{display:flex;flex-direction:column;gap:7px;font-size:13px}
.v-hbar div{display:grid;grid-template-columns:110px 1fr 46px;align-items:center;gap:8px}
.v-hbar i{display:block;height:12px;background:var(--brand);border-radius:3px}
.v-hbar em{font-style:normal;text-align:right;color:var(--ink-2)}
.v-dist2 div{grid-template-columns:110px 1fr}
.v-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:10px 0 12px}
.v-tabs button{font:inherit;font-size:14px;background:none;border:0;border-bottom:2px solid transparent;padding:8px 12px;cursor:pointer;color:var(--ink-3)}
.v-tabs button.on{color:var(--ink);border-color:var(--brand);font-weight:700}
.v-tabs small{color:var(--ink-3)}
.v-tabs2 button{font-size:13px}
#pg-body .v-top .nf select{min-width:320px;white-space:nowrap}
@media (max-width:1100px){.v-3col,.v-2col{grid-template-columns:1fr}}
@media (max-width:900px){.m-cards.m3{grid-template-columns:1fr}.v-scope{grid-template-columns:1fr}.v-form{grid-template-columns:1fr}.v-head.st{display:none}.v-row.st{grid-template-columns:1fr 1fr}}
.v-basis{margin:4px 0 0;font-size:12.5px;color:var(--ink-3)}
.v-basis b{color:var(--ink-2);margin-right:4px}
.dash-page-head .v-export{margin-left:auto}
.v-gc.unk{background:#f2f2f2;color:var(--ink-3)}
.v-grid tr.on th,.a-table tr.on th{color:var(--brand)}
.v-gaplist li{margin:4px 0}

/* ── 지자체 대시보드 글래스 I안(디자인 확정안 "지자체 대시보드", 2026-11-04) ──
   밝은 빛 번짐 바탕 + 떠 있는 유리 메뉴 + 본문 칸 안 머리줄 + 유리 카드. 값은 tokens.css .ctx-dash의 --dg-*.
   새 화면·이전 화면(legacy) 틀 모두 body.dash-glass에 건다. 카드 왼쪽 강조선 없이 그림자로 구분. */
body.dash-glass { --side-w: 252px; background: var(--dg-bg); background-attachment: fixed; color: var(--dg-ink-3); }
.dash-glow { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.dash-glow span { position: absolute; border-radius: 50%; filter: blur(70px); }
.dash-glow span:nth-child(1) { left: -231px; top: -60px; width: 671px; height: 646px; background: var(--dg-glow-1); opacity: .75; }
.dash-glow span:nth-child(2) { left: 760px; top: -120px; width: 560px; height: 560px; background: var(--dg-glow-2); opacity: .72; }
.dash-glow span:nth-child(3) { left: 64px; top: 760px; width: 716px; height: 600px; background: var(--dg-glow-3); opacity: .6; }
.dash-glass .dash-shell { position: relative; z-index: 1; min-height: 100vh; }
.dash-glass .dash-col { min-width: 0; padding: 16px 32px 56px 28px; }

/* 떠 있는 유리 메뉴 */
.dash-glass .dash-side { border: 0; border-radius: 24px; padding: 20px 12px; background: var(--dg-glass-soft); -webkit-backdrop-filter: var(--dg-blur); backdrop-filter: var(--dg-blur); box-shadow: var(--dg-shadow); }
.dash-glass .dash-side a.dash-brand { display: flex; align-items: center; gap: 10px; height: auto; padding: 0 10px 18px; margin: 0; background: none; box-shadow: none; }
.dash-glass .dash-brand img { height: 20px; width: auto; display: block; }
.dash-glass .dash-brand b { font-size: 16px; font-weight: 800; color: var(--dg-navy); }
.dash-glass .dash-side .dash-side-group { margin: 16px 12px 6px; font-size: 12px; font-weight: 700; color: var(--dg-ink-5); letter-spacing: 0; }
.dash-glass .dash-side a { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; margin-bottom: 2px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--dg-ink-3); }
.dash-glass .dash-side a .icon { color: var(--dg-ink-5); }
.dash-glass .dash-side a:hover { background: rgba(255, 255, 255, .5); color: var(--dg-navy); }
.dash-glass .dash-side a.on { background: var(--dg-glass-on); box-shadow: var(--dg-shadow-on); font-weight: 700; color: var(--dg-navy); }
.dash-glass .dash-side a.on .icon { color: var(--dg-teal); }
.dash-glass .dash-side .dash-side-back { height: auto; margin-top: 20px; padding: 14px 12px 0; border-top: 1px solid var(--dg-rule); border-radius: 0; font-size: 14px; color: var(--dg-ink-4); }
.dash-glass .dash-side .dash-side-back:hover { background: none; color: var(--dg-navy); }
@media (min-width: 1101px) {
  .dash-glass .dash-shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .dash-glass .dash-side { position: sticky; top: 16px; bottom: auto; left: auto; align-self: start; width: auto; height: calc(100vh - 32px); margin: 16px 0 16px 16px; overflow-y: auto; scrollbar-width: none; z-index: 20; }
  .dash-glass .dash-side::-webkit-scrollbar { display: none; }
  .dash-glass .app-header .app-brand { display: none; }  /* 로고는 유리 메뉴 맨 위에 */
}
/* 1100px 이하 머리줄 로고: 메뉴 맨 위(.dash-brand)와 같은 로고 표시 + Amanut Bridge */
.dash-glass .app-brand { gap: 10px; }
.dash-glass .app-brand .logo-mark { height: 30px; width: auto; }
.dash-glass .app-brand b { display: inline; padding-left: 0; border-left: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--dg-navy); }
/* 1100px 이하: 작은 글자(13px) 데이터 최신일의 글자 바닥선을 옆 Amanut Bridge(18px)와 맞춘다(가운데 정렬만 하면 2px 높아 보임) */
@media (max-width: 1100px) { .dash-glass .app-top .fresh { transform: translateY(2px); } }
@media (max-width: 560px) { .dash-glass .app-top .fresh { display: none; } }  /* 폰: 로고·이름과 겹치지 않게 데이터 최신일은 뺀다 */

/* 본문 칸 안 머리줄(투명) */
.dash-glass .app-header { position: static; height: 56px; padding: 0 8px; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.dash-glass .app-top { height: 56px; gap: 12px; }
.dash-glass .app-top .title { padding: 0; border: 0; font-size: 15px; font-weight: 600; color: var(--dg-ink-2); }
.dash-glass .app-top .fresh { margin-left: 0; font-size: 13px; color: var(--dg-ink-4); }
.dash-glass .app-top .end { margin-left: auto; }
/* 이름 버튼은 테두리·바탕 없이 글자만(머리줄 유리 위에 바로) */
.dash-glass .user-menu > summary, .dash-glass .user-menu > summary:hover, .dash-glass .user-menu[open] > summary { padding: 6px 4px 6px 6px; gap: 10px; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
/* 이름 메뉴 화살표: 열리면 위로 돌아간다 */
.dash-glass .user-menu > summary > .icon { transition: transform .2s ease; }
.dash-glass .user-menu[open] > summary > .icon { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .dash-glass .user-menu > summary > .icon { transition: none; } }
/* 이름 메뉴 펼침 상자: 필터 펼침 상자와 같은 유리 카드 */
.dash-glass .user-menu .menu-list { min-width: 200px; padding: 8px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: var(--dg-blur); backdrop-filter: var(--dg-blur); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), 0 16px 40px rgba(22, 59, 88, .16); }
.dash-glass .user-menu .menu-label { padding: 8px 12px 6px; font-size: 13px; color: var(--dg-ink-4); }
.dash-glass .user-menu .menu-sep { margin: 6px 4px; background: var(--dg-rule); }
.dash-glass .user-menu .menu-item { border-radius: 10px; color: var(--dg-ink); }
.dash-glass .user-menu .menu-item .icon { color: var(--dg-ink-4); }
.dash-glass .user-menu .menu-item:hover { background: rgba(22, 59, 88, .06); color: var(--dg-navy); }
.dash-glass .user-menu .menu-item:hover .icon { color: var(--dg-navy); }
.dash-glass .user-menu .menu-item[aria-current="true"], .dash-glass .user-menu .menu-item[aria-current="true"]:hover { background: var(--dg-navy); color: #fff; }
.dash-glass .user-menu .menu-item[aria-current="true"] .icon { color: #fff; }
.dash-glass .user-menu .avatar { background: linear-gradient(135deg, var(--dg-teal), var(--dg-navy)); color: #fff; font-weight: 800; }
.dash-glass .user-menu .who b { font-size: 14px; color: var(--dg-ink); }
.dash-glass .user-menu .who small { color: var(--dg-ink-4); }

/* 본문: 제목·설명·필터 */
.dash-glass .dash-body { padding: 18px 0 0; }  /* 본문 카드 좌우 끝을 머리줄과 맞춘다 */
.dash-body > .area-glass > .dash-page-head{ padding-inline: 8px; }  /* 카드 없이 그림 위에 놓이는 화면 제목은 조금 들여 쓴다 */
.dash-body > .area-glass > * + *{ margin-top: 24px; }
.dash-body > .area-glass > .dash-filter-form{ margin-top: 20px; }
.area-glass .dash-page-head{ gap: 0; }
.area-glass .dash-title{ margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.25; color: var(--dg-ink); }
.area-glass .dash-sub{ margin: 8px 0 0; font-size: 16px; color: var(--dg-ink-3); }
.area-glass .nf{ height: 38px; padding-left: 14px; border: 0; border-radius: 999px; background: var(--dg-glass-soft); -webkit-backdrop-filter: var(--dg-blur); backdrop-filter: var(--dg-blur); box-shadow: var(--dg-shadow); }
.area-glass .nf-k{ font-size: 14px; color: var(--dg-ink-4); }
.area-glass .nf select{ height: 36px; padding-right: 30px; font-size: 14px; font-weight: 600; color: var(--dg-ink); }
.area-glass .nf::after{ right: 14px; border-color: var(--dg-ink-6); }
.area-glass .nf:hover{ background: var(--dg-glass-on); }
.area-glass .nf.on{ background: var(--dg-glass-on); box-shadow: inset 0 0 0 1.5px var(--dg-teal), var(--dg-shadow-on); }
.area-glass .nf.on select{ color: var(--dg-navy); font-weight: 700; }
.area-glass .nf.on .nf-k{ color: var(--dg-teal); }
.area-glass .nf.on::after{ border-color: var(--dg-teal); }
.area-glass .nf-btn{ height: 38px; padding: 0 16px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--dg-navy); background: var(--dg-glass-soft); -webkit-backdrop-filter: var(--dg-blur); backdrop-filter: var(--dg-blur); box-shadow: var(--dg-shadow); }
.area-glass .nf-btn.on, .area-glass .nf-pop[open] > .nf-btn{ background: var(--dg-glass-on); box-shadow: inset 0 0 0 1.5px var(--dg-teal), var(--dg-shadow-on); }
.area-glass .nf-pop .pop{ border: 0; border-radius: 20px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: var(--dg-blur); backdrop-filter: var(--dg-blur); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), 0 16px 40px rgba(22, 59, 88, .16); }
/* 상세 필터 창 안쪽도 유리 대시보드 분위기로(2026-11-10): 각진 단추·회색 테두리 대신 둥근 알약·옅은 바탕, 고른 것은 남색 */
.area-glass .nf-pop .pop{ gap: 18px; padding: 20px; }
.area-glass .pop .pl{ margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--dg-ink-3); }
.area-glass .pop .pseg{ gap: 8px; }
.area-glass .pop .pseg span{ padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(22, 59, 88, .06); font-size: 14px; font-weight: 600; color: var(--dg-ink-3); transition: background .15s; }
.area-glass .pop .pseg span:hover{ background: rgba(22, 59, 88, .11); }
.area-glass .pop .pseg input:checked + span{ background: var(--dg-navy); color: #fff; font-weight: 700; box-shadow: var(--dg-shadow-on); }
.area-glass .pop .pseg input:focus-visible + span{ outline: 2px solid var(--dg-teal); outline-offset: 2px; }
.area-glass .pop .pdates{ gap: 10px; margin-top: 12px; }
.area-glass .pop .pdates label{ flex: 1; gap: 6px; font-size: 14px; font-weight: 600; color: var(--dg-ink-4); }
.area-glass .pop .pdates input{ height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(22, 59, 88, .06); font-size: 14px; color: var(--dg-ink); }
.area-glass .pop .pdates input:focus{ outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--dg-teal); }
.area-glass .pop .pa{ gap: 8px; padding-top: 16px; border-top: 1px solid rgba(22, 59, 88, .08); }
.area-glass .pop .pa .lnk2{ height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--dg-ink-4); text-decoration: none; }
.area-glass .pop .pa .lnk2:hover{ background: rgba(22, 59, 88, .06); color: var(--dg-ink-2); }
.area-glass .pop .pa .btn{ height: 38px; min-height: 0; padding: 0 20px; border: 0; border-radius: 999px; background: var(--dg-navy); font-size: 14px; font-weight: 700; color: #fff; }
.area-glass .pop .pa .btn:hover{ background: var(--dh-navy-a, #1b365d); }
.area-glass .fchip{ background: var(--dg-glass-on); color: var(--dg-navy); box-shadow: var(--dg-shadow-on); }

/* 핵심 숫자: 따로 떠 있는 유리 타일 */
.area-glass .stat-row{ gap: 16px; border: 0; }
.area-glass .stat-row .stat-tile, .area-glass .stat-row .stat-tile:first-child{ padding: 22px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: var(--dg-blur); backdrop-filter: var(--dg-blur); box-shadow: var(--dg-shadow); }
.area-glass .stat-row .stat-tile + .stat-tile{ border-left: 0; }
.area-glass .stat-tile .k{ font-size: 14px; font-weight: 600; color: var(--dg-ink-3); }
.area-glass .stat-tile .v{ margin-top: 2px; font-size: 34px; font-weight: 800; letter-spacing: -1px; color: var(--dg-ink); font-variant-numeric: tabular-nums; }
.area-glass .stat-tile .v small{ font-size: 16px; font-weight: 700; color: var(--dg-ink-3); }
.area-glass .stat-tile .d{ font-size: 13px; color: var(--dg-ink-4); }

/* 유리 카드 */
.area-glass .panel{ padding: 26px; border: 0; border-radius: 24px; background: var(--dg-glass); -webkit-backdrop-filter: var(--dg-blur); backdrop-filter: var(--dg-blur); box-shadow: var(--dg-shadow); }
.area-glass .grid-2, .area-glass .grid2{ gap: 24px; }
.area-glass .panel-head{ margin-bottom: 16px; }
.area-glass .panel-head .panel-title, .area-glass .panel-title, .dash-body .area-glass .panel h2{ font-size: 18px; font-weight: 800; color: var(--dg-ink); }
.area-glass .panel-desc{ font-size: 13px; color: var(--dg-ink-4); }
.area-glass .panel-head .btn-sm{ color: var(--dg-ink-4); font-size: 13px; }
.area-glass .panel-head .btn-sm:hover{ color: var(--dg-navy); }
.area-glass .chart-empty{ border: 0; border-radius: 16px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); color: var(--dg-ink-4); }
.area-glass .banner, .area-glass .gate-bar{ border-radius: 12px; }
.area-glass .a-foot{ border-top-color: var(--dg-rule); color: var(--dg-ink-4); }
.area-glass .tblwrap + .a-foot{ margin-top: 0; padding-top: 16px; }
.area-glass .a-source{ padding: 0 8px; border-top: 0; color: var(--dg-ink-4); }

/* 표: 배경 없이 제목행 아래 밑줄 한 줄, 줄 사이는 아주 옅은 선 */
.area-glass .panel .table{ border-collapse: separate; border-spacing: 0; }
.area-glass .panel .table thead th{ padding: 10px 14px; border: 0; border-bottom: 1px solid var(--dg-head-rule); border-radius: 0; background: none; font-size: 13px; font-weight: 600; color: var(--dg-ink-4); }
.area-glass .panel .table td{ padding: 14px; border: 0; border-top: 1px solid var(--dg-rule); font-size: 14px; color: var(--dg-ink-3); background: none; }
.area-glass .panel .table tbody tr:first-child td{ border-top: 0; }
.area-glass .panel .table tbody tr:hover td{ background: rgba(255, 255, 255, .35); }
.area-glass .panel .table .name-cell .trunc{ font-size: 15px; font-weight: 700; color: var(--dg-ink); }
.area-glass .panel .table tr.a-small .name-cell .trunc{ color: var(--chart-ns-ink); }
.area-glass .kind-badge{ padding: 2px 9px; border: 0; font-size: 12px; font-weight: 500; }
.area-glass .kind-badge.kind-bridge{ background: var(--dg-bridge-bg); color: var(--dg-navy); }
.area-glass .kind-badge.kind-general{ background: var(--dg-gen-bg); color: var(--dg-gen-ink); border: 0; }

/* 좁은 화면(1100px 이하): 메뉴는 머리줄 ☰ 버튼으로 여는 왼쪽 서랍(PC와 같은 세로 유리 메뉴, 묶음 이름 포함).
   열면 뒤 본문을 옅게 가리고, 메뉴를 고르거나 바깥·Esc로 닫는다(ui.js setNav). 닫힌 동안은 Tab으로 들어가지 않게 숨긴다. */
.dash-glass .nav-toggle { display: none; }
@media (max-width: 1100px) {
  .dash-glass .nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: -6px; border: 0; border-radius: 12px; background: none; color: var(--dg-navy); }
  .dash-glass .nav-toggle:hover { background: rgba(255, 255, 255, .55); }
  .dash-glass .dash-side { position: fixed; top: 12px; bottom: 12px; left: 12px; z-index: 70; display: flex; flex-direction: column; gap: 0; width: min(280px, calc(100vw - 48px)); margin: 0; padding: 20px 12px; overflow-x: hidden; overflow-y: auto; border-radius: 24px; background: rgba(255, 255, 255, .9); box-shadow: var(--dg-shadow), 0 24px 60px rgba(22, 59, 88, .22); transform: translateX(calc(-100% - 24px)); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
  body.nav-open.dash-glass .dash-side { transform: none; visibility: visible; transition: transform .22s ease; }
  .dash-glass .dash-side .dash-side-group { display: block; }
  .dash-glass .dash-side a { flex: none; white-space: nowrap; }
  .dash-glass .dash-side .dash-side-back { margin-top: auto; }
  body.nav-open.dash-glass .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(15, 27, 38, .28); }
  .dash-glass .dash-col { padding: 12px 12px 40px; }
}
@media (prefers-reduced-motion: reduce) { .dash-glass .dash-side { transition: none; } }
@media (max-width: 768px) {
  .area-glass .dash-title{ font-size: 24px; }
  .area-glass .panel{ padding: 18px; border-radius: 20px; }
  .area-glass .stat-row{ gap: 10px; }
  .area-glass .stat-row .stat-tile, .area-glass .stat-row .stat-tile:first-child{ padding: 16px; border-radius: 18px; }
  .area-glass .stat-tile .v{ font-size: 26px; }
}
@media print {
  body.dash-glass { background: #fff; }
  .dash-glow, .dh-paint, .dash-glass .app-header { display: none !important; }
  .dash-glass .dash-col { padding: 0; }
}
/* 글래스 I안 — v0.9.15 화면 구성 요소(묶음 제목 · 핵심 지표 카드 · 내려받기 · 기준 병기)도 같은 유리 모양으로 */
.area-glass .dash-page-head{ display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 0; }
.area-glass .dash-page-head .dash-title{ flex: 1 1 auto; min-width: 0; }
.area-glass .dash-page-head .dash-sub, .area-glass .dash-page-head .v-basis{ flex-basis: 100%; }
.area-glass .dash-page-head .v-export{ display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin-left: auto; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--dg-navy); background: var(--dg-glass-soft); -webkit-backdrop-filter: var(--dg-blur); backdrop-filter: var(--dg-blur); box-shadow: var(--dg-shadow); }
.area-glass .dash-page-head .v-export:hover{ background: var(--dg-glass-on); }
.area-glass .v-basis{ margin-top: 8px; font-size: 13px; color: var(--dg-ink-4); }
.area-glass .v-basis b{ color: var(--dg-ink-3); }
.dash-body > .area-glass > .m-sec{ margin: 32px 0 12px; }
.area-glass .m-sec{ gap: 10px; font-size: 18px; font-weight: 800; color: var(--dg-ink); }
.area-glass .m-sec > span{ min-width: 24px; height: 24px; border-radius: 8px; background: var(--dg-navy); font-size: 12px; font-weight: 800; }
.area-glass .m-sec .btn-sm{ color: var(--dg-ink-4); font-size: 13px; }
.area-glass .m-cards{ gap: 16px; }
.area-glass .m-card{ gap: 6px; padding: 22px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: var(--dg-blur); backdrop-filter: var(--dg-blur); box-shadow: var(--dg-shadow); }
.area-glass a.m-card:hover{ background: var(--dg-glass-on); border: 0; box-shadow: var(--dg-shadow), 0 14px 34px rgba(22, 59, 88, .12); }
.area-glass .m-card.na{ background: rgba(255, 255, 255, .4); }
.area-glass .m-card-h{ font-size: 14px; font-weight: 600; color: var(--dg-ink-3); }
.area-glass .m-card-h .icon{ color: var(--dg-teal); }
.area-glass .m-card-h .m-go{ color: var(--dg-ink-6); }
.area-glass .m-card-v{ font-size: 34px; font-weight: 800; letter-spacing: -1px; color: var(--dg-ink); }
.area-glass .m-card-v small{ font-size: 16px; font-weight: 700; color: var(--dg-ink-3); }
.area-glass .m-card-v.na{ font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--dg-ink-4); }
.area-glass .m-bar{ height: 8px; border-radius: 999px; background: var(--dg-track); }
.area-glass .m-bar i{ border-radius: 999px; background: linear-gradient(90deg, var(--dg-teal), var(--dg-navy)); }
.area-glass .m-card-d{ font-size: 13px; color: var(--dg-ink-4); }
.area-glass .panel + .panel, .area-glass .panel + .grid2, .area-glass .grid2 + .panel, .area-glass .grid2 + .grid2, .area-glass .m-cards + .panel{ margin-top: 24px; }
.area-glass .v-stack{ border-radius: 9px; }
.area-glass .v-stack .s1{ background: linear-gradient(90deg, var(--dg-navy), var(--dg-teal)); }
.area-glass .v-stack .s0{ background: var(--dg-track); color: var(--dg-ink-3); }
@media (max-width: 1100px) { .area-glass .m-cards{ gap: 12px; } }
@media (max-width: 768px) {
  .area-glass .m-card{ padding: 16px; border-radius: 18px; }
  .area-glass .m-card-v{ font-size: 26px; }
}
/* 유리 카드 안 표는 흰 바탕 없이 카드 유리가 그대로 비치게(머리 띠·줄 선만). 휴대폰 카드형 줄은 옅은 유리 */
.area-glass .panel .table, .area-glass .panel .table tr{ background: transparent; }
@media (max-width: 768px) { .area-glass .panel .m-cardtable tr{ border: 0; background: var(--dg-glass-head); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); } }

/* ── 대시보드 틀 갱신(디자인 확정안 "클라이언트 요청 반영 B", 2026-11-09): 로고 표시 + Amanut Bridge, 메뉴 글자 16px,
   머리줄은 유리 띠 한 줄. 새 화면·이전 화면 틀 공통(body.dash-glass). ── */
.dash-glass .dash-side { background: rgba(255, 255, 255, .6); }
.dash-glass .dash-side a.dash-brand { gap: 10px; }
.dash-glass .dash-brand img { height: 30px; }
.dash-glass .dash-brand b { font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.dash-glass .dash-side .dash-side-group { font-size: 16px; font-weight: 600; }
.dash-glass .dash-side a { font-size: 16px; }
@media (min-width: 1101px) { .dash-glass .dash-col { padding: 16px 32px 40px 24px; } }
/* 머리줄은 흐림 40px(2026-11-11): 60px 높이에 18px 흐림이면 뒤 그림의 밝은 줄(다리 난간)이 걸린 쪽만 밝아져 보였다 — 투명도는 그대로 */
.dash-glass .app-header { position: relative; z-index: 10; height: 60px; padding: 0 10px 0 22px; border-radius: 20px; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(40px) saturate(150%); backdrop-filter: blur(40px) saturate(150%); box-shadow: var(--dg-shadow); }
.dash-glass .app-top { height: 60px; }
.dash-glass .dash-body { padding-top: 20px; }

/* ── 대시보드 첫 화면(home): 명화 배경(위쪽, 아래로 옅게) + 유리 카드 + 색 숫자 카드 ── */
.dh { position: relative; display: flex; flex-direction: column; gap: 20px; }
.dash-body > .area-glass > .dh{ margin-top: 0; }
.dh-paint { position: fixed; inset: 0; z-index: -1; background: var(--dh-fade), url("../img/monet-japanese-bridge.6c04a9aa6aee.jpg") center 30% / cover no-repeat; opacity: .9; pointer-events: none; }

.dh > :not(.dh-paint) { position: relative; }
.dh-card { padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: var(--dg-blur); backdrop-filter: var(--dg-blur); box-shadow: var(--dg-shadow); min-width: 0; }
.dh-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.dh-card-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--dg-ink); }
.dh-tag { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--dg-track); font-size: 12px; font-weight: 500; color: var(--dg-ink-4); }
.dh-date { font-size: 14px; color: var(--dg-ink-4); }
.dh-card-head .dh-date:last-child, .dh-card-head > .dh-date + .dh-seg { margin-left: auto; }
.dh-sub { margin: -12px 0 16px; font-size: 14px; color: var(--dg-ink-4); }
.dh h3 { display: flex; align-items: center; margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--dg-ink); }
.dh h3 > span { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--dg-ink-4); }
.dh-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--dg-navy); cursor: pointer; text-decoration: none; }
.dh-more .icon { width: 16px; height: 16px; }
.dh-more[aria-disabled="true"] { cursor: default; opacity: .55; }

/* 위: 제목·필터 카드 + 기수 띠 */
.dh-top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: stretch; }
.dh-head { padding: 22px 26px; }
.dh-title { margin: 4px 0 0; font-size: 32px; font-weight: 800; letter-spacing: -1px; color: var(--dg-navy); }
.dh-title .dh-fresh { margin-left: 10px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--dg-ink-4); white-space: nowrap; }  /* 데이터 최신일(머리줄에서 옮김, V0918B) */
.dh-filters { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 16px; }
.dh-filters .dash-filter-form { flex: 1; min-width: 0; }
.dh .nf { height: 40px; background: rgba(255, 255, 255, .82); box-shadow: inset 0 0 0 1px var(--dg-rule); -webkit-backdrop-filter: none; backdrop-filter: none; }
.dh .nf.on { box-shadow: inset 0 0 0 1.5px var(--dg-teal); }
.dh-export { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--dg-navy); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dh-export:hover { background: var(--dg-teal); color: #fff; }
.dh-export .icon { width: 16px; height: 16px; }
/* 1100px 이하: 제목 오른쪽에 내려받기, 아래에 필터를 같은 폭 칸으로(태블릿 3칸 한 줄 · 좁으면 2칸 · 모바일 1칸) */
@media (max-width: 1100px) {
  .dh-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
  .dh-head .dh-filters { display: contents; }
  .dh-head .dh-title { grid-column: 1; grid-row: 1; margin: 0; }
  .dh-head .dh-export { grid-column: 2; grid-row: 1; }
  .dh-head .dash-filter-form { grid-column: 1 / -1; grid-row: 2; margin-top: 16px; }
  .dh-head .nf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
  .dh-head .nf-row .nf { width: auto; min-width: 0; }
}
/* 기수 카드: 모든 화면 폭에서 같은 유리 카드(넓은 화면 확정안 F-DashHomeWide 모양) */
.dh-cohort { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 20px 22px; border-radius: 24px; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: var(--dg-blur); backdrop-filter: var(--dg-blur); box-shadow: var(--dg-shadow); color: var(--dg-navy); }
.dh-cohort-row { margin-bottom: auto; }
.dh-cohort-row b { font-size: 20px; font-weight: 600; }
.dh-cohort-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.dh-cohort-meta p { margin: 0; font-size: 14px; color: var(--dg-ink-4); }
.dh-cohort-meta b { font-size: 14px; font-weight: 700; color: var(--dg-navy); white-space: nowrap; }
.dh-cohort-bar { display: block; margin-top: 2px; height: 8px; border-radius: 999px; background: rgba(22, 59, 88, .1); overflow: hidden; }
.dh-cohort-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--dh-navy-a), var(--dh-rate-b)); }
.dh-cohort-kpi { display: none; }
/* 기수 카드 결과보고 버튼(v0.9.22, 목업 report_v1 탭 1): 진행 막대 아래. 운영 종료 = 진한 버튼, 운영 중 = 연한 버튼 */
.dh-rep { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
.dh-rep-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(22, 59, 88, .25); background: rgba(255, 255, 255, .85); color: var(--dg-navy); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dh-rep-btn svg { width: 15px; height: 15px; }
.dh-rep-btn:hover { background: #fff; border-color: var(--dg-navy); }
.dh-rep-btn.pri { background: var(--dg-navy); border-color: var(--dg-navy); color: #fff; }
.dh-rep-btn.pri:hover { background: #0f2c44; }
.dh-rep-btn:focus-visible { outline: 3px solid rgba(22, 59, 88, .35); outline-offset: 2px; }
.dh-rep small { font-size: 12px; color: var(--dg-ink-4); }

/* 색 숫자 카드 4칸 */
.dh-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dh-kpi { position: relative; overflow: hidden; padding: 20px 22px; border-radius: 22px; color: #fff; box-shadow: var(--dh-card-shadow); }
.dh-kpi-1 { background: linear-gradient(150deg, var(--dh-navy-a), var(--dh-navy-b)); }
.dh-kpi-2 { background: linear-gradient(150deg, var(--dh-teal-a), var(--dh-teal-b)); }
.dh-kpi-3 { background: linear-gradient(150deg, var(--dh-coral-a), var(--dh-coral-b)); }
.dh-kpi-4 { background: linear-gradient(150deg, var(--dh-violet-a), var(--dh-violet-b)); }
.dh-kpi-ic { position: absolute; right: 16px; top: 16px; opacity: .35; }
.dh-kpi-ic .icon { width: 40px; height: 40px; }
.dh-kpi .k { font-size: 14px; font-weight: 700; opacity: .92; }
.dh-kpi .v { margin-top: 6px; font-size: 36px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.dh-kpi .v small { margin-left: 2px; font-size: 17px; font-weight: 700; }
.dh-kpi .v.na { font-size: 20px; letter-spacing: 0; padding: 8px 0; }
.dh-kpi .d { margin-top: 4px; font-size: 14px; line-height: 1.45; opacity: .88; word-break: keep-all; overflow-wrap: anywhere; }

/* 가운데: 달력 + 오늘의 브릿지 */
.dh-mid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "cal bridge" "pair pair"; gap: 20px; align-items: stretch; }
.dh-mid > .dh-cal { grid-area: cal; }
.dh-mid > .dh-bridge { grid-area: bridge; }
.dh-mid > .dh-pair { grid-area: pair; }
/* 실제 조직: 오늘의 브릿지(예시) 없이 달력 한 줄 + 아래 두 카드(모든 화면 폭 — 미디어 규칙보다 우선) */
.dh-mid.dh-mid-solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cal" "pair"; }
.dh-legend-ex { display: none; }
.dh-cal { background: rgba(255, 255, 255, .7); }
.dh-cal[data-outside] { background: rgba(255, 255, 255, .6); }
.dh-cal-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dh-cal-nav b { font-size: 16px; font-weight: 800; color: var(--dg-ink); }
.dh-icon-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dg-ink-3); cursor: pointer; }
.dh-icon-btn:hover { background: rgba(255, 255, 255, .7); }
.dh-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; font-size: 14px; color: var(--dg-ink-3); }
.dh-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dh-legend i { width: 9px; height: 9px; border-radius: 50%; }
.dh-legend i.k-period { width: 14px; border-radius: 3px; background: rgba(23, 86, 176, .3); }
.dh .k-session { background: var(--dh-teal-a); }
.dh .k-last { background: var(--dh-coral-a); }
.dh .k-event { background: var(--dh-violet-a); }
.dh .k-post { background: var(--dh-gold); }
.dh-week { display: grid; grid-template-columns: repeat(7, 1fr); padding: 14px 0; margin-bottom: 6px; text-align: center; font-size: 14px; font-weight: 700; color: var(--dg-ink-4); }
.dh-week .sun { color: var(--dh-sun); }
.dh-week .sat { color: var(--dh-sat); }
.dh-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 0; }
.dh-day { height: 71px; padding: 0; border: 0; border-radius: 12px; background: transparent; font: inherit; cursor: pointer; }
.dh-day .in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: calc(100% - 10px); height: calc(100% - 8px); margin: 4px auto; box-sizing: border-box; border-radius: 16px; font-size: 15px; font-weight: 600; color: var(--dg-ink); }
.dh-day.sun .in { color: var(--dh-sun); }
.dh-day.sat .in { color: var(--dh-sat); }
.dh-day.other .in { color: var(--dh-other); }
.dh-day.band { border-radius: 0; background: var(--dh-band); }
.dh-day.band-s { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.dh-day.band-e { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
.dh-day:hover .in { background: rgba(255, 255, 255, .55); }
.dh-day.today .in { background: #fff; font-size: 17px; font-weight: 800; color: var(--dg-navy); }
.dh-day.today.band .in { box-shadow: 0 6px 16px -8px rgba(22, 59, 88, .45); }
.dh-day.picked .in { box-shadow: inset 0 0 0 2px var(--dg-teal); }
.dh-day:focus-visible { outline: 2px solid var(--dg-teal); outline-offset: -2px; }
.dh-day .dots { display: flex; gap: 3px; height: 6px; }
.dh-day .dots i { width: 6px; height: 6px; border-radius: 50%; }
.dh-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin-top: 22px; }
.dh-events { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
/* 확정안(F-DashHomeWide, 2026-11-10 갱신): 분류 색은 점이 아니라 항목 왼쪽 안쪽의 세로 띠. 화면 폭과 상관없이 같다. */
.dh-events li { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 28px; border-radius: 14px; background: rgba(255, 255, 255, .72); }
.dh-events li.none { padding-left: 14px; color: var(--dg-ink-4); font-size: 14px; }
/* 띠는 카드 가장자리에 붙이지 않고 안쪽(12px)에 둔다 — 반투명 카드 끝이 흐려 붙여 두면 떨어져 보였음(2026-11-10 사용자 선택). 길이는 제목·부제 두 줄 높이 */
.dh-events .dot { position: absolute; left: 12px; top: 14px; bottom: 14px; width: 4px; border-radius: 999px; }
.dh-events .body { flex: 1; min-width: 0; padding: 0; }  /* 공통 .body(카드 본문 20px 여백)가 섞여 들지 않게 */
.dh-events .body b { display: block; font-size: 15px; font-weight: 700; color: var(--dg-ink); }
.dh-events .body b .ex { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--dg-ink-5); }
.dh-events .body span { font-size: 14px; color: var(--dg-ink-4); }
.dh-events time { flex: none; font-size: 14px; font-weight: 700; color: var(--dg-ink-3); }

.dh-bridge { display: flex; flex-direction: column; padding: 22px 20px 20px; border-radius: 28px; }
/* 제목 줄도 넓은 화면 확정안 모양을 모든 폭에(2026-11-11): 날짜는 제목 바로 옆, 부제·예시 표시는 숨김 */
.dh-bridge .dh-card-head { margin-bottom: 16px; gap: 8px; }
.dh-bridge h2 { font-size: 20px; }
.dh-bridge .dh-date { margin-left: auto; }
.dh-bridge .dh-card-head .dh-date:last-child { margin-left: 0; font-size: 16px; }
.dh-bridge .dh-sub, .dh-bridge .dh-card-head .dh-tag { display: none; }
/* 오늘의 브릿지 사진(2026-11-11): 수업 하나 = 사진 여러 장(앨범). 옆으로 미끄러지며 넘어가고, 손가락으로 밀어 넘긴다.
   --photo-h는 사진 높이 — 넓은 화면은 아래 @media에서 바꾼다. 화살표는 마우스 쓰는 PC에서만. */
.dh-bridge { --photo-h: 240px; }
.dh-album { position: relative; margin: 0; }
.dh-stage { position: relative; overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.dh-track { display: flex; gap: 12px; transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
.dh-track.drag { transition: none; }
.dh-track > .dh-photo { flex: 0 0 100%; }
@media (prefers-reduced-motion: reduce) { .dh-track { transition: none; } }
.dh-photo { display: grid; place-items: center; height: var(--photo-h); border-radius: 20px; color: var(--dh-photo-ink); }
.dh-photo .icon { width: 44px; height: 44px; }
.tone-sand { background: var(--dh-sand); } .tone-mint { background: var(--dh-mint); } .tone-sky { background: var(--dh-sky); }
.tone-lilac { background: var(--dh-lilac); } .tone-peach { background: var(--dh-peach); }
/* 캡션은 사진 아래(박스 없이), 넘김 점은 사진 아래쪽 위에 얹는다 — 넓은 화면 확정안 모양을 모든 폭에 같게(2026-11-11) */
.dh-gallery { position: relative; }
.dh-album figcaption { padding: 12px 14px; }
.dh-cap-row .dh-last { order: 2; margin-left: auto; }
.dh-bridge h3 { margin-top: 24px; }
.dh-arrow { display: none; position: absolute; top: calc(var(--photo-h) / 2); z-index: 2; place-items: center; width: 38px; height: 38px; margin-top: -19px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: var(--dg-blur); backdrop-filter: var(--dg-blur); box-shadow: var(--dg-shadow-on); color: var(--dg-navy); cursor: pointer; opacity: .85; transition: opacity .15s, background .15s; }
.dh-arrow .icon { width: 18px; height: 18px; }
.dh-arrow.prev { left: 12px; }
.dh-arrow.next { right: 12px; }
.dh-arrow:hover, .dh-arrow:focus-visible { opacity: 1; background: #fff; }
.dh-arrow:focus-visible { outline: 2px solid var(--dg-teal); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .dh-arrow { display: grid; } }
.dh-cap-row { display: flex; align-items: center; gap: 6px; }
.dh-cap-row b { font-size: 16px; font-weight: 800; color: var(--dg-ink); }
.dh-last { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--dh-coral-weak); font-size: 12px; font-weight: 500; color: var(--dh-last-ink); }
.dh-cap-sub { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 14px; color: var(--dg-ink-4); }
.dh-cap-sub .icon { width: 14px; height: 14px; }
.dh-dots { position: absolute; top: calc(var(--photo-h) - 22px); left: 0; right: 0; display: flex; justify-content: center; gap: 6px; margin: 0; }
.dh-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(22, 59, 88, .2); cursor: pointer; transition: width .2s, background .2s; }
.dh-dots button.on { width: 18px; background: var(--dg-navy); }
/* 최근 올라온 사진: 누르면 위가 그 수업 앨범으로. 지금 보이는 수업은 흰 카드로 살짝 떠오르게(테두리 없이, 2026-11-11 A안) */
.dh-recent { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dh-recent button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 8px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .6); font: inherit; text-align: left; cursor: pointer; transition: background .15s, box-shadow .15s, opacity .15s; }
.dh-recent button:hover { background: rgba(255, 255, 255, .8); }
.dh-recent button.on { background: #fff; box-shadow: 0 4px 14px rgba(22, 59, 88, .12); }
.dh-recent button:not(.on) { opacity: .75; }  /* C안 섞기: 고른 것 말고는 흐리게, 마우스·키보드가 닿으면 또렷하게 */
.dh-recent button:not(.on):hover, .dh-recent button:not(.on):focus-visible { opacity: 1; }
.dh-recent button:focus-visible { outline: 2px solid var(--dg-teal); outline-offset: 2px; }
.dh-thumb { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; color: var(--dh-photo-ink); }
.dh-thumb .icon { width: 20px; height: 20px; }
.dh-recent button > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dh-recent b { font-size: 15px; font-weight: 700; color: var(--dg-ink); }
.dh-recent small { font-size: 14px; color: var(--dg-ink-4); }
.dh-more-end { margin: auto auto 0; padding-top: 16px; font-size: 15px; }

/* 참여 흐름 + 2차(사후) 설문 진행 */
.dh-pair { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; }
.dh-pair .dh-card-head .dh-date { margin-left: auto; }
.dh-flow { display: flex; flex-direction: column; gap: 14px; }
.dh-flow-row { display: grid; grid-template-columns: 124px minmax(0, 1fr) 92px; align-items: center; gap: 14px; }
.dh-flow-row .l { font-size: 14px; font-weight: 600; color: var(--dg-ink-3); }
.dh-flow-row .t { display: block; height: 24px; border-radius: 8px; background: var(--dg-track); overflow: hidden; }
.dh-flow-row .t i { display: block; height: 100%; border-radius: 8px; }
.dh-flow-row .n { text-align: right; font-size: 15px; font-weight: 700; color: var(--dg-ink); white-space: nowrap; }
.dh-flow-row .n small { margin-left: 4px; font-size: 14px; font-weight: 500; color: var(--dg-ink-4); }
/* 기준 충족 미산출(출석 기록 누락 강좌) — 막대 대신 사유, 일부만 산출이면 기준 강좌 수 */
.dh-flow-row .na { grid-column: 2 / 4; font-size: 14px; font-weight: 600; color: var(--dg-ink-4); }
.dh-flow-row .basis { grid-column: 2 / 4; margin-top: -10px; text-align: right; font-size: 13px; color: var(--dg-ink-4); }
.dh-flow .tone-navy { background: linear-gradient(90deg, var(--dh-navy-a), var(--dh-navy-b)); }
.dh-flow .tone-teal { background: linear-gradient(90deg, var(--dh-teal-a), var(--dh-teal-b)); }
.dh-flow .tone-coral { background: linear-gradient(90deg, var(--dh-coral-a), var(--dh-coral-b)); }
.dh-flow .tone-violet { background: linear-gradient(90deg, var(--dh-violet-a), var(--dh-violet-b)); }
.dh-post { display: flex; flex-direction: column; }
.dh-post .dh-card-head { margin-bottom: 0; }
.dh-post .dh-card-head .dh-date { margin-left: 0; }
.dh-dday { margin-left: auto; flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--dh-coral-weak); font-size: 15px; font-weight: 500; color: var(--dh-coral-ink); }
.dh-gauge { position: relative; width: 270px; height: 133px; margin: 14px auto 0; }
.dh-gauge svg { overflow: visible; }
.dh-gauge .trk, .dh-gauge .arc { fill: none; stroke-width: 16; stroke-linecap: round; }
.dh-gauge .trk { stroke: rgba(22, 59, 88, .09); }
.dh-gauge .arc { stroke: url(#dh-gauge-fill); }
.dh-gauge .g0 { stop-color: var(--dh-coral-a); }
.dh-gauge .g1 { stop-color: var(--dh-coral-b); }
.dh-gauge .goal { stroke: var(--dg-navy); stroke-width: 3; stroke-linecap: round; }
.dh-gauge text { font-size: 14px; font-weight: 500; fill: var(--dg-ink-3); dominant-baseline: middle; }
.dh-gauge-v { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.dh-gauge-v b { display: block; font-size: 36px; font-weight: 800; line-height: 1; color: var(--dg-ink); }
.dh-gauge-v span { display: block; margin-top: 4px; font-size: 14px; color: var(--dg-ink-4); }
.dh-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.dh-chips span { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 500; color: var(--dg-ink-4); }
.dh-chips b { font-size: 15px; font-weight: 600; color: var(--dg-ink); }

/* 강좌별 표 */
.dh-table { padding: 0 0 14px; overflow: hidden; }
.dh-table .dh-card-head { padding: 22px 24px 16px; margin: 0; }
/* 강좌 거르기: 힘 빼고 — 옅은 바탕 안에 글자 버튼 4개, 고른 것만 흰 알약 */
.dh-seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(22, 59, 88, .05); }
.dh-seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--dg-ink-4); white-space: nowrap; cursor: pointer; }
.dh-seg button:hover { color: var(--dg-navy); }
.dh-seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(22, 59, 88, .12); font-weight: 700; color: var(--dg-navy); }
.dh-seg button:focus-visible { outline: 2px solid var(--dg-teal); outline-offset: 1px; }
.dh-tbl { width: 100%; border-collapse: collapse; font-size: 15px; color: var(--dg-ink-3); }
.dh-tbl th { padding: 16px 14px; background: rgba(255, 255, 255, .5); text-align: left; font-size: 14px; font-weight: 600; color: var(--dg-ink-4); white-space: nowrap; }
.dh-tbl td { padding: 14px; border-top: 1px solid rgba(22, 59, 88, .07); }
.dh-tbl th:first-child, .dh-tbl td:first-child { padding-left: 24px; }
.dh-tbl th:last-child, .dh-tbl td:last-child { padding-right: 24px; }
.dh-tbl .num { text-align: right; }
.dh-tbl td b.trunc { display: block; max-width: 260px; font-weight: 600; color: var(--dg-ink); }
/* 강좌명 아래 「읍면동 · 기관」 한 줄(같은 이름 강좌 구분, v0.9.22b) */
.dh-tbl td .dh-place { display: block; max-width: 260px; margin-top: 2px; font-size: 13px; color: var(--dg-ink-4); }
.dh-kind { padding: 2px 9px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 500; color: var(--dg-gen-ink); white-space: nowrap; }
.dh-kind.on { background: var(--dg-navy); color: #fff; }
.dh-rate { display: flex; align-items: center; gap: 10px; }
.dh-rate > span { flex: 1; max-width: 180px; height: 8px; border-radius: 999px; background: var(--dg-track); overflow: hidden; }
.dh-rate i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--dh-navy-a), var(--dh-rate-b)); }
.dh-rate b { width: 44px; color: var(--dg-ink); }
.dh-st { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.dh-st i { width: 8px; height: 8px; border-radius: 50%; }
.dh-st.st-on { color: var(--dh-on-ink); }
.dh-st.st-on i { background: var(--dh-on-dot); box-shadow: 0 0 0 3px var(--dh-on-glow); }
.dh-st.st-wait, .dh-st.st-na, .dh-st.st-done { color: var(--dg-ink-4); }
.dh-st.st-done i { background: var(--dg-ink-4); }
.dh-st.st-wait i, .dh-st.st-na i { box-shadow: inset 0 0 0 1.6px var(--dh-wait-ring); }
.dh-none { margin: 16px 24px 0; }
.dh-credit { align-self: flex-end; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 14px; color: var(--dg-ink-3); }

@media (max-width: 1280px) {
  .dh-top, .dh-mid { grid-template-columns: minmax(0, 1fr) 320px; }
  .dh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .dh-top, .dh-mid, .dh-pair { grid-template-columns: minmax(0, 1fr); }
  .dh-mid { grid-template-areas: "cal" "bridge" "pair"; }
  .dash-glass .app-header { border-radius: 16px; }
}
@media (max-width: 768px) {
  .dh-card { padding: 18px; border-radius: 20px; }
  .dh-title { font-size: 26px; }
  .dh-kpi .v { font-size: 28px; }
  .dh-lists { grid-template-columns: minmax(0, 1fr); }
  .dh-flow-row { grid-template-columns: 96px minmax(0, 1fr) 80px; gap: 10px; }
  .dh-table { padding: 0 0 14px; }  /* 위 .dh-card 여백(18px)이 표 카드에 겹치지 않게 — 표 카드는 제목 줄·표가 각자 여백을 갖는다 */
  .dh-table .dh-card-head { padding: 18px 18px 14px; }
  .dh-tbl th:first-child, .dh-tbl td:first-child { padding-left: 18px; }
  .dh-tbl th:last-child, .dh-tbl td:last-child { padding-right: 18px; }
  .dh-none { margin: 14px 18px 0; }
  .dh-card-head > .dh-seg { margin-left: 0; }  /* 좁은 화면: 줄을 꽉 채우지 않고 버튼 크기 그대로 제목 아래 왼쪽에 */
  .dh-legend { gap: 10px; }
}

/* 넓은 화면(디자인 확정안 F-DashHomeWide, 2560): 기수 카드를 숫자 카드 줄 맨 앞으로,
   달력 오른쪽에 일정 목록을 세로로, 오른쪽 기둥은 오늘의 브릿지만 아래까지 길게. */
@media (min-width: 1800px) {
  /* 본문이 너무 넓다는 요청(2026-11-10): 넓은 화면에서 본문 좌우를 화면 폭의 4.2%씩 비운다(약 2140px 화면에서 양쪽 90px).
     모든 대시보드 화면 공통. 머리줄도 본문 칸 안이라 같이 좁아진다. */
  .dash-glass .dash-col { padding-left: 4.2vw; padding-right: 4.2vw; }
  .dh-top { grid-template-columns: minmax(0, 1fr); }
  .dh-cohort-top { display: none; }
  .dh-kpis { grid-template-columns: minmax(0, 2.1fr) repeat(4, minmax(0, 1fr)); }
  .dh-cohort-kpi { display: flex; gap: 0; }
  .dh-cohort-kpi .dh-cohort-bar { margin-top: 8px; }
  .dh-cohort-kpi .dh-cohort-row b { font-size: 24px; }
  .dh-kpi { display: flex; flex-direction: column; justify-content: space-between; min-height: 159px; }
  .dh-kpi .k { font-size: 18px; font-weight: 600; }
  .dh-kpi .v { font-size: 42px; }
  .dh-filters { margin-top: 24px; }  /* 확정안 갱신(2026-11-10): 제목과 필터 사이 16 → 24px */

  .dh-mid { grid-template-columns: minmax(0, 1637fr) minmax(0, 633fr); grid-template-areas: "cal bridge" "pair bridge"; }
  .dh-cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .4fr); gap: 40px; }
  .dh-cal-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .dh-cal-main .dh-card-head { margin: 0 0 8px; }
  .dh-cal-main .dh-card-head h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dh-cal-main .dh-card-head .dh-tag { display: none; }
  .dh-cal-nav { margin-left: -8px; gap: 4px; }
  .dh-cal-nav b { font-size: 20px; }
  .dh-cal-main .dh-legend { justify-content: flex-end; margin: 0 0 8px; }
  .dh-legend-ex { display: inline; margin-left: 4px; font-size: 14px; color: var(--dg-ink-5); }
  .dh-week, .dh-days { grid-column: 1 / -1; }
  .dh-week { padding: 24px 0; margin-bottom: 0; font-size: 16px; }
  /* 처음 들어왔을 때 일정 카드가 한 화면에 다 보이게 칸 높이를 화면 높이에 맞춘다(2026-11-10).
     679/685 = 카드 위쪽 위치(약 467) + 카드 안 요일줄·머리줄·여백(164) + 아래 여유(24) + 줄 사이(6px×(줄-1)).
     최대는 시안 117px, 84px 밑으로는 줄이지 않고 그냥 스크롤. 6주짜리 달은 한 줄 더 나눈다. */
  .dh-day { height: clamp(84px, calc((100vh - 679px) / 5), 117px); }
  .dh-days:has(> :nth-child(36)) .dh-day { height: clamp(84px, calc((100vh - 685px) / 6), 117px); }
  .dh-day .in { width: calc(100% - 16px); height: calc(100% - 12px); margin: 6px auto; gap: 8px; border-radius: 18px; font-size: 20px; }
  .dh-day.today .in { font-size: 22px; }
  .dh-day.band-s { border-top-left-radius: 16px; border-bottom-left-radius: 16px; }
  .dh-day.band-e { border-top-right-radius: 16px; border-bottom-right-radius: 16px; }
  .dh-day .dots { gap: 5px; height: 8px; }
  .dh-day .dots i { width: 8px; height: 8px; }
  .dh-lists { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 0; }

  .dh-bridge { --photo-h: 373px; }
  .dh-bridge h3 { margin-top: 32px; }
}

/* 폰(560px 이하)만 달력 칸을 낮춘다 — 태블릿은 칸이 넓어 PC 높이(71px) 그대로 */
@media (max-width: 560px) {
  .dh-day { height: 52px; }
  .dh-day .in { font-size: 14px; }
}

/* ── 지자체 대시보드 개선안(디자인 확정안 F-DashSurveyNew · F-DashSummaryNew, 2026-11-10): 설문 진행 현황 · 한눈에 보기.
   제목 카드(_page_card.html) + 유리 숫자 카드(_ucards.html) + 유리 카드 안 표·막대. 카드 사이 20px. ── */
.dash-body > .area-glass > .dash-headcard{ margin-top: 0; }
.dash-body > .area-glass > .du{ margin-top: 20px; }
/* 유리 흐림(backdrop-filter) 때문에 카드가 따로 겹침 층을 만든다 — 상세 필터 창이 아래 카드들 밑으로 깔리지 않게
   카드째 위로 올린다(머리줄 10보다는 아래라 사용자 메뉴는 여전히 위). */
.dash-headcard { position: relative; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 24px 26px; border-radius: 24px; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: var(--dg-blur); backdrop-filter: var(--dg-blur); box-shadow: var(--dg-shadow); }
.dhc-top { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 16px; }
.dhc-titles { flex: 1; min-width: 0; }
.area-glass .dash-headcard .dash-title{ margin: 0; color: var(--dg-navy); }
.area-glass .dash-headcard .dash-sub{ margin-top: 6px; }
.dhc-export { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--dg-navy); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.dhc-export .icon { width: 17px; height: 17px; }
.dhc-fresh { align-self: center; margin-left: auto; font-size: 13px; color: var(--dg-ink-4); white-space: nowrap; }  /* 데이터 최신일(머리줄에서 옮김, V0918B) */
@media (max-width: 560px) { .dhc-fresh, .dh-title .dh-fresh { display: none; } }  /* 폰: 제목·내려받기와 겹치지 않게(머리줄에서도 폰은 뺐음) */
.dhc-export:hover { background: var(--dh-navy-a); color: #fff; }
.dash-headcard .dash-filter-form { grid-column: 1; margin-top: 20px; min-width: 0; }
.dhc-basis { grid-column: 2; align-self: start; margin: 20px 0 0; line-height: 36px; font-size: 14px; color: var(--dg-ink-4); white-space: nowrap; }
.area-glass .dash-headcard .nf{ height: 36px; padding-left: 12px; background: rgba(255, 255, 255, .82); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.area-glass .dash-headcard .nf select{ height: 34px; }
.area-glass .dash-headcard .nf:hover{ background: #fff; }
.area-glass .dash-headcard .nf.on{ background: #fff; box-shadow: inset 0 0 0 1.5px var(--dg-teal); }
/* 시안: [상세 필터]는 줄 끝이 아니라 장르 바로 옆(오른쪽 끝은 기준 기간). 창은 버튼 왼쪽 끝에 맞춰 연다. */
.dash-headcard .nf-pop { margin-left: 0; }
.dash-headcard .nf-pop .pop { left: 0; right: auto; }
.area-glass .dash-headcard .nf-btn{ height: 36px; padding: 0 14px; font-weight: 600; background: rgba(255, 255, 255, .5); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.du { display: flex; flex-direction: column; gap: 20px; }
.area-glass .du > .panel + .panel, .area-glass .du-stack > .panel + .panel{ margin-top: 0; }
.area-glass .du-card{ padding: 22px 24px; }

/* 숫자 카드 */
.du-kpis { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; }
.du-kpi { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: var(--dg-blur); backdrop-filter: var(--dg-blur); box-shadow: var(--dg-shadow); color: inherit; text-decoration: none; transition: background .15s; }
a.du-kpi:hover { background: var(--dg-glass-on); }
.du-kpi.na { background: rgba(255, 255, 255, .4); }
.du-kpi .k { font-size: 14px; font-weight: 600; color: var(--dg-ink-3); }
.du-kpi .v { margin-top: 6px; font-size: 32px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; color: var(--dg-ink); }
.du-kpi .v small { margin-left: 2px; font-size: 16px; font-weight: 700; color: var(--dg-ink-3); }
.du-kpi .v.na { padding: 8px 0 0; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--dg-ink-4); }
.du-bar { display: block; margin-top: 8px; height: 6px; border-radius: 999px; background: var(--dg-track); overflow: hidden; }
.du-bar i, .du-meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--dh-navy-a), var(--dh-rate-b)); }
.du-kpi .d { margin-top: auto; padding-top: 8px; font-size: 14px; line-height: 1.45; color: var(--dg-ink-4); word-break: keep-all; overflow-wrap: anywhere; } /* 보조 문구는 줄바꿈(말줄임 없음) */

/* 카드 머리: 제목 + [?](계산 방법) + 오른쪽 작은 표시 */
.du-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.area-glass .du-head h2{ margin: 0; font-size: 20px; font-weight: 800; color: var(--dg-ink); }
.du-q { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(22, 59, 88, .07); font: inherit; font-size: 13px; font-weight: 700; color: var(--dg-ink-4); cursor: pointer; }
.du-q:hover { background: rgba(22, 59, 88, .14); color: var(--dg-navy); }
.du-q:focus-visible { outline: 2px solid var(--dg-teal); outline-offset: 2px; }
.du-end { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.du-end-note { font-size: 14px; color: var(--dg-ink-4); }
.du-sub { margin: 0 0 16px; font-size: 14px; color: var(--dg-ink-4); }
.du-note { margin: 14px 0 0; font-size: 14px; color: var(--dg-ink-4); }
.du-pill { display: inline-flex; flex: none; align-items: center; padding: 3px 10px; border-radius: 999px; background: rgba(22, 59, 88, .07); font-size: 13px; font-weight: 500; color: var(--dg-ink-4); white-space: nowrap; }
.du-pill b { font-weight: 500; }
.du-pill.on { background: rgba(37, 129, 135, .12); color: #1d6b70; }
.du-hide { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--dg-ink-6); }
.du-hide .icon { width: 14px; height: 14px; }

/* 강좌 표: 머리 띠는 옅은 흰 띠, 줄 사이는 옅은 선 */
.area-glass .panel .du-table{ table-layout: fixed; width: 100%; }
.area-glass .panel .du-table thead th{ padding: 12px 16px; border: 0; background: rgba(255, 255, 255, .5); font-size: 14px; font-weight: 600; color: var(--dg-ink-4); }
.area-glass .panel .du-table thead th:first-child{ border-radius: 12px 0 0 12px; }
.area-glass .panel .du-table thead th:last-child{ border-radius: 0 12px 12px 0; }
.area-glass .panel .du-table td{ padding: 12px 16px; font-size: 15px; vertical-align: middle; }
.area-glass .panel .du-table tbody tr:first-child td{ border-top: 0; }
.du-survey th:nth-child(1) { width: 27%; }
.du-survey th:nth-child(2) { width: 76px; }
.du-survey th:nth-child(3) { width: 22%; }
.du-survey th:nth-child(4) { width: 19%; }
.du-ops th:nth-child(1) { width: 38%; }
.du-ops th:nth-child(2) { width: 76px; }
.du-ops th:nth-child(3) { width: 24%; }
.du-course { display: block; min-width: 0; }
.du-course-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.du-course-n b { font-weight: 600; color: var(--dg-ink); }
.du-course > small { display: block; margin-top: 2px; font-size: 14px; color: var(--dg-ink-4); }
.du-kind { flex: none; padding: 2px 9px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 500; color: var(--dg-gen-ink); }
.du-kind.on { background: var(--dg-navy); color: #fff; }
.area-glass .panel .du-table td.du-when{ font-size: 14px; }
/* 사후 열림 ~ 마감: 날짜는 「~」에서만 줄바꿈, 「관리자 지정」 배지는 날짜 아래 줄(옆 칸으로 넘치지 않게) */
.area-glass .panel .du-table td.du-when{ white-space: normal; }
.du-when-d { display: block; }
.du-when-d > span { white-space: nowrap; }
.du-when .du-pill { margin-top: 4px; }
/* 사후 응답 칸 아래 줄: 2차(사후) 설문 상태(첫 화면과 같은 판정) */
.du-st-line { display: block; margin-top: 4px; font-size: 13px; color: var(--dg-ink-4); }
/* 표 칸 안 배지는 칸 폭을 넘지 않음(넘치면 배지 안에서 줄바꿈) */
.du-table td .du-pill, .area-dash .table td .du-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.du-meter { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
.du-meter > span { flex: 0 1 150px; width: 150px; height: 8px; border-radius: 999px; background: var(--dg-track); overflow: hidden; }
.du-meter.sm > span { flex-basis: 90px; width: 90px; }
.du-meter b { flex: none; font-weight: 700; color: var(--dg-ink); }
.du-meter b small { font-size: inherit; font-weight: 500; color: var(--dg-ink-4); }
.du-na { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.du-na small { font-size: 14px; color: var(--dg-ink-4); }

/* 두 줄 배치(응답 구성 · 데이터 점검 | 무응답 편향 점검) */
.du-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.du-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.du-stack > .du-grow { flex: 1; }
.du-comp { display: flex; flex-direction: column; gap: 14px; }
.du-comp-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--dg-ink-3); }
.du-comp-row b { color: var(--dg-ink); }
.du-comp-bar { display: flex; margin-top: 8px; height: 14px; border-radius: 999px; overflow: hidden; background: var(--dg-track); }
.du-comp-bar i, .du-legend i { display: block; }
.du-comp .s1, .du-legend .s1 { background: linear-gradient(90deg, var(--dh-navy-a), var(--dh-rate-b)); }
.du-comp .s0, .du-legend .s0 { background: rgba(22, 59, 88, .16); }
.du-comp .s2, .du-legend .s2 { background: var(--dg-ink-6); }
.du-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--dg-ink-4); }
.du-legend span { display: inline-flex; align-items: center; gap: 6px; }
.du-legend i { width: 10px; height: 10px; border-radius: 3px; }
.du-checks { margin: 0; padding: 0; list-style: none; }
.du-checks li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(22, 59, 88, .07); font-size: 15px; color: var(--dg-ink-3); }
.du-checks li > i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.du-checks li > i.ok { background: var(--dh-on-dot); }
.du-checks li > i.warn { background: var(--warn-dot); }
.du-checks li b { margin-left: auto; color: var(--dg-ink); }

/* 0 기준 좌우 막대(무응답 편향 점검 · 초기 변화 신호). 막대 길이는 차이 1점 = 칸 절반. */
.du-div-scale, .du-div-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 96px; gap: 12px; }
.du-change .du-div-scale, .du-change .du-div-row { grid-template-columns: 160px minmax(0, 1fr) 110px; }
.du-div-scale { margin-bottom: 6px; font-size: 14px; color: var(--dg-ink-4); }
.du-change .du-div-scale { margin-bottom: 4px; font-size: 14px; color: var(--dg-ink-6); }
.du-div-scale > span:nth-child(2) { display: flex; justify-content: space-between; }
.du-div-scale > span:last-child { text-align: right; }
.du-div-row { align-items: center; padding: 7px 0; border-top: 1px solid rgba(22, 59, 88, .07); font-size: 14px; color: var(--dg-ink-3); }
.du-item { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.du-item b { margin-right: 6px; color: var(--dg-navy); }
.du-div-t { position: relative; height: 20px; }
.du-div-t::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(22, 59, 88, .25); }
.du-div-t i { position: absolute; top: 4px; height: 12px; width: calc(min(var(--w, 0), 1) * 50%); min-width: 2px; }
.du-div-t i.pos { left: 50%; border-radius: 0 6px 6px 0; background: var(--dg-navy); }
.du-div-t i.neg { right: 50%; border-radius: 6px 0 0 6px; background: rgba(37, 129, 135, .7); }
.du-div-t i.neg.one { background: var(--dg-navy); }
.du-div-v { text-align: right; white-space: nowrap; }
.du-div-v small { font-size: 14px; color: var(--dg-ink-6); }
.du-div-v b { margin-left: 8px; color: var(--dg-ink); }
.du-change { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; }
.du-div-group { display: flex; align-items: baseline; gap: 8px; padding: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--dg-ink-3); }
.du-div-group span { font-weight: 500; color: var(--dg-ink-4); }

/* 시점·문항별 유효 응답 수: 세 묶음으로 나란히(위에서 아래로 채움) */
.du-valid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
.du-valid-h, .du-valid-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 54px 44px; gap: 10px; padding: 0 4px; }
.du-valid-h { padding-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--dg-ink-4); }
.du-valid-h span:nth-child(n+3), .du-valid-list li span:nth-child(n+3) { text-align: right; }
.du-valid-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 8), auto); grid-auto-flow: column; column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.du-valid-list li { align-items: center; padding-block: 9px; border-top: 1px solid rgba(22, 59, 88, .07); font-size: 14px; color: var(--dg-ink-3); }
.du-valid-list li b { color: var(--dg-navy); }
.du-valid-list li span:nth-child(3) { color: var(--dg-ink); }
.du-valid-list li span.zero { color: var(--dg-ink-6); }

/* 강좌별 | 지역별 */
/* 공통 .seg(네모 · 아래 여백 14px · 좁은 화면 꽉 채움)를 이기도록 .dash-glass를 붙인다 */
.area-glass .du-tabs{ display: flex; width: auto; gap: 4px; margin: 0; padding: 4px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .75); }
.area-glass .du-tabs > button{ flex: none; min-height: 0; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; box-shadow: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--dg-ink-4); cursor: pointer; }
.area-glass .du-tabs > button:hover{ color: var(--dg-navy); }
.area-glass .du-tabs > button.on{ background: var(--dg-navy); color: #fff; box-shadow: none; }
.du-tabs button:focus-visible { outline: 2px solid var(--dg-teal); outline-offset: 1px; }

/* 확인 필요 업무: 세 칸 + 아래 연결 불가 한 줄 */
.du-tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.du-task { min-width: 0; padding: 0 16px; }
.du-task:first-child { padding-left: 0; }
.du-task:last-child { padding-right: 0; }
.du-task + .du-task { border-left: 1px solid var(--dg-rule); }
.du-task-h { display: flex; align-items: baseline; gap: 8px; padding: 0 10px 2px; }
.du-task-h span { font-size: 15px; font-weight: 700; color: var(--dg-ink-3); }
.du-task-h b { margin-left: auto; font-size: 26px; font-weight: 800; color: var(--dg-ink); }
.du-task-h b small { margin-left: 2px; font-size: 15px; color: var(--dg-ink-3); }
.du-task-h b.na { font-size: 15px; font-weight: 600; color: var(--dg-ink-4); }
.du-task-d { margin: 0; padding: 0 10px 8px; font-size: 14px; color: var(--dg-ink-4); }
.du-task-r { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: var(--dg-ink-3); text-decoration: none; }
.du-task-r[hidden] { display: none; }
.du-task-r > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-task-r b { margin-left: auto; font-weight: 400; color: var(--dg-ink); white-space: nowrap; }
.du-task-r .icon { flex: none; width: 16px; height: 16px; color: var(--dg-ink-6); }
.du-task-r > span:first-child + .icon, .du-task-r > span:first-child + .du-hide { margin-left: auto; }
a.du-task-r:hover { background: rgba(255, 255, 255, .6); color: var(--dg-navy); }
.du-task-none { margin: 0; padding: 8px 10px; font-size: 14px; color: var(--dg-ink-4); }
.du-more { display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 0 10px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--dg-navy); cursor: pointer; }
.du-more .icon { width: 16px; height: 16px; transition: transform .2s; }
.du-more[aria-expanded="true"] .icon { transform: rotate(180deg); }
.du-task-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 10px 0; border-top: 1px solid var(--dg-rule); }
.du-task-link > div b { display: block; font-size: 15px; font-weight: 700; color: var(--dg-ink-3); }
.du-task-link > div span { font-size: 14px; color: var(--dg-ink-4); }
.du-task-link-v { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.du-task-link-v > b { font-size: 22px; font-weight: 800; color: var(--dg-ink); }
.du-task-link-v > b small { margin-left: 2px; font-size: 14px; color: var(--dg-ink-3); }
.du-chip { padding: 3px 10px; border-radius: 999px; background: rgba(22, 59, 88, .06); font-size: 13px; color: var(--dg-ink-3); text-decoration: none; }
a.du-chip:hover { color: var(--dg-navy); background: rgba(22, 59, 88, .1); }

@media (prefers-reduced-motion: reduce) { .du-more .icon { transition: none; } }
@media (max-width: 1280px) {
  .du-kpis[style*="--n:6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .dash-headcard { grid-template-columns: minmax(0, 1fr); }
  .dhc-basis { grid-column: 1; margin-top: 12px; line-height: 1.4; white-space: normal; }
  .dash-headcard .nf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
  .dash-headcard .nf-row .nf { width: auto; min-width: 0; }
  .du-2col, .du-change { grid-template-columns: minmax(0, 1fr); }
  .du-change > .du-div + .du-div { margin-top: 20px; }
  .du-valid, .du-valid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .du-valid-h:nth-child(3) { display: none; }
  .du-valid-list { grid-template-rows: none; grid-auto-flow: row; }
  .du-tasks { grid-template-columns: minmax(0, 1fr); }
  .du-task, .du-task:first-child, .du-task:last-child { padding: 0; }
  .du-task + .du-task { margin-top: 16px; padding-top: 16px; border-left: 0; border-top: 1px solid var(--dg-rule); }
}
@media (max-width: 768px) {
  .dash-headcard { padding: 18px; border-radius: 20px; }
  .dhc-export { height: 36px; padding: 0 12px; }
  .du-kpis, .du-kpis[style*="--n:6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .du-kpi { padding: 16px; border-radius: 18px; }
  .du-kpi .v { font-size: 26px; }
  .area-glass .du-card{ padding: 18px; }
  .du-head { flex-wrap: wrap; }
  .du-meter > span { width: 100px; flex-basis: 100px; }
  .area-glass .panel .du-table thead th{ border-radius: 0; }
  .du-div-scale, .du-div-row, .du-change .du-div-scale, .du-change .du-div-row { grid-template-columns: 110px minmax(0, 1fr) 92px; gap: 8px; }
  .du-valid, .du-valid-list { grid-template-columns: minmax(0, 1fr); }
  .du-valid-h:nth-child(2) { display: none; }
}

/* ── 참여·출석 개선안(디자인 확정안 F-DashParticipationNew, 2026-11-10) ── */
.du-attend th:nth-child(1) { width: 26%; }
.du-attend th:nth-child(2) { width: 150px; }
.du-attend th:nth-child(3) { width: 80px; }
/* 머리 칸 「!」가 칸 밖으로 나가지 않는 폭(v0.9.22b) */
.du-attend th:nth-child(4) { width: 118px; }
.du-attend th:nth-child(6) { width: 106px; }
.du-attend th:nth-child(7) { width: 132px; }
.du-attend.with-ins th:nth-child(8) { width: 110px; }
/* A10: 오른쪽 맞춤 「평균 누적 접촉」과 왼쪽 맞춤 「강사」가 붙어 보이지 않게 간격 */
.du-attend.with-ins th:nth-child(8), .du-attend.with-ins td:nth-child(8) { padding-left: 24px; }
.du-attend th:nth-child(7), .du-attend td:nth-child(7) { padding-right: 12px; }
.area-glass .panel .du-table td.du-sm{ font-size: 14px; }
.du-course-n b a { color: inherit; text-decoration: none; }
.du-course-n b a:hover { color: var(--dg-teal); text-decoration: underline; }
.du-meter.md > span { flex-basis: 110px; width: 110px; }
.du-strong { font-weight: 700; color: var(--dg-ink); }

/* 회차별 출석·잔존: 강좌 × 회차 칸(진할수록 높음). 출석률·잔존 같은 칸 모양 */
.du-heat-scroll { overflow-x: auto; }
.du-heat { min-width: calc(200px + var(--cols, 6) * 52px); }
.du-ret { min-width: calc(200px + 180px + var(--cols, 6) * 52px); }
.du-heat-row { display: grid; grid-template-columns: 200px repeat(var(--cols, 6), minmax(44px, 1fr)); gap: 6px; align-items: center; padding: 3px 0; }
.du-ret .du-heat-row { grid-template-columns: 200px 90px repeat(var(--cols, 6), minmax(44px, 1fr)) 90px; }
.du-heat-h { padding: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--dg-ink-4); }
.du-heat-h > span { text-align: center; }
.du-heat-n { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.du-heat-n b { font-weight: 600; color: var(--dg-ink); }
.du-heat-n .du-heat-name { min-width: 0; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; } /* 강좌명 줄바꿈(말줄임 없음) */
.du-heat-c { display: block; min-width: 0; }
.du-heat-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.du-heat-place { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--dg-ink-4); word-break: keep-all; overflow-wrap: anywhere; } /* 읍면동 · 기관(같은 이름 강좌 구분) */
.du-cell { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--dg-ink); font-variant-numeric: tabular-nums; background: rgba(22, 59, 88, clamp(.06, calc(var(--p, 0) * .008 - .07), .48)); }
/* 글자색은 칸 밝기에 따라: 70 미만 = 밝은 칸 · 검은 글자, 70 이상(hi) = 진한 칸 · 흰 글자.
   중간 밝기(글자 대비 4.5:1 미만이 되는 바탕 투명도 .49~.71)는 쓰지 않음 — 두 경우 모두 4.5:1 이상(v0.9.22b) */
.du-cell.hi { color: #fff; background: rgba(22, 59, 88, min(.92, calc(.72 + (var(--p, 70) - 70) * .006))); }
.du-cell.miss, .du-cell.plan, .du-cell.off { font-size: 12px; font-weight: 400; }
.du-cell.miss { color: var(--dg-ink-4); background: repeating-linear-gradient(135deg, rgba(22, 59, 88, .08) 0 5px, transparent 5px 10px); }
.du-cell.plan { color: var(--dg-ink-6); background: none; box-shadow: inset 0 0 0 1px rgba(22, 59, 88, .12); }
.du-cell.off { color: var(--dg-ink-6); background: rgba(255, 255, 255, .4); }
.du-cell.none { background: none; box-shadow: none; } /* 강좌에 없는 회차(5회 강좌의 6회차 등) — 빈칸 */
.du-cell-n { text-align: center; font-size: 14px; color: var(--dg-ink-3); }
.du-heat-off { grid-column: 2 / -1; display: flex; align-items: center; height: 40px; padding-left: 12px; border-radius: 8px; background: rgba(255, 255, 255, .4); }
.du-heat-legend { margin-top: 14px; gap: 16px; }
.du-heat-legend i.miss { background: repeating-linear-gradient(135deg, rgba(22, 59, 88, .2) 0 3px, transparent 3px 6px); }
.du-heat-legend i.plan { box-shadow: inset 0 0 0 1px rgba(22, 59, 88, .2); }
.du-legend-end { margin-left: auto; }

/* 참여자 구성: 세 칸 */
/* 처음 참여 칸은 도넛 + 범례 폭만큼만(넓은 화면에서 빈 공간이 남지 않게), 나머지 두 칸이 남는 폭을 나눈다 */
.du-3col { display: grid; grid-template-columns: auto repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.area-glass .du-3col > .panel + .panel, .area-glass .du-2col > .panel + .panel{ margin-top: 0; }  /* 공통 .panel + .panel 위 여백 때문에 옆 카드가 내려가던 것 */
.du-3col > .du-card { display: flex; flex-direction: column; }
.du-3col > .du-card > .du-note { margin-top: auto; padding-top: 14px; text-align: right; }  /* 응답·미동의 안내는 카드 오른쪽 아래(카드 높이가 달라도 바닥에 맞춤) */
.du-donut { flex: 1; display: flex; align-items: center; gap: 22px; padding-right: 8px; }
.du-donut svg { flex: none; }
.du-donut .trk, .du-donut .arc { fill: none; stroke-width: 14; }
.du-donut .trk { stroke: rgba(22, 59, 88, .1); }
.du-donut .arc { stroke: url(#du-first-ring); stroke-linecap: round; }
.du-donut .g0 { stop-color: var(--dh-navy-a); }
.du-donut .g1 { stop-color: var(--dh-rate-b); }
.du-donut .v { font-size: 28px; font-weight: 800; fill: var(--dg-ink); }
.du-donut .v .u { font-size: 15px; fill: var(--dg-ink-3); }
.du-donut .s { font-size: 14px; fill: var(--dg-ink-4); }
.du-donut-l { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--dg-ink-3); }
.du-donut-l li { display: inline-flex; align-items: center; gap: 8px; }
.du-donut-l i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: rgba(22, 59, 88, .15); }
.du-donut-l i.on { background: var(--dg-navy); }
.du-donut-l b { color: var(--dg-ink); }
.du-hbars { display: flex; flex-direction: column; gap: 10px; }
.du-hbar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 84px; gap: 10px; align-items: center; font-size: 14px; color: var(--dg-ink-3); font-variant-numeric: tabular-nums; }
.du-hbar-l { min-width: 0; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; } /* 항목명은 줄바꿈(말줄임 없음) */
.du-hbar .t { height: 10px; border-radius: 999px; background: var(--dg-track); overflow: hidden; }
.du-hbar .t i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--dh-navy-a), var(--dh-rate-b)); }
.du-hbar .v { text-align: right; white-space: nowrap; }
.du-hbar .v b { color: var(--dg-ink); }
.du-hbar .v small { font-size: 14px; color: var(--dg-ink-4); }
@media (max-width: 1280px) { .du-3col { grid-template-columns: auto minmax(0, 1fr); } .du-3col > :last-child { grid-column: 1 / -1; } }
@media (max-width: 768px) {
  .du-3col { grid-template-columns: minmax(0, 1fr); }
  .du-heat-row { grid-template-columns: 140px repeat(var(--cols, 6), minmax(44px, 1fr)); }
  .du-ret .du-heat-row { grid-template-columns: 140px 80px repeat(var(--cols, 6), minmax(44px, 1fr)) 80px; }
  .du-heat { min-width: calc(140px + var(--cols, 6) * 50px); }
  .du-ret { min-width: calc(300px + var(--cols, 6) * 50px); }
  .du-legend-end { margin-left: 0; }
}

/* ── 디자인 확정안 "사전·사후 변화 · 개선안"(F-DashChangeNew) ── */
.du[hidden], .dc-mini[hidden] { display: none; }
.du-banner { margin: 0; padding: 10px 16px; border-radius: 14px; background: var(--dg-glass-soft); box-shadow: var(--dg-shadow); font-size: 14px; color: var(--dg-ink-3); }
.dc-legend { margin-bottom: 14px; }
.dc-legend i.good { background: var(--dg-good); }
.dc-legend i.bad { background: var(--dg-bad); }
.dc-legend i.kb { background: var(--dg-good); }
.dc-legend i.kg { background: var(--dg-good); opacity: .45; } /* 일반 막대는 옅게(.dc-bar.weak) */
.dc-olabel { display: block; min-width: 0; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.dc-legend i.dn, .dc-dbar .dn { background: rgba(37, 129, 135, .75); }
.dc-legend i.sm, .dc-dbar .sm { background: rgba(22, 59, 88, .12); }
.dc-legend i.up, .dc-dbar .up { background: var(--dg-navy); }
.dc-legend i.cu { background: var(--dg-navy); }
.dc-legend i.cs { background: rgba(22, 59, 88, .12); }
.dc-legend i.cd { background: rgba(37, 129, 135, .75); }
.dc-legend i.p0, .dc-bars .p0 { background: rgba(22, 59, 88, .14); }
.dc-legend i.p1, .dc-bars .p1 { background: var(--dg-navy); }

/* 문항별 초기 변화: 문항 · 사전 → 사후 · 평균차 막대 · 사람별 변화 */
.dc-row { display: grid; grid-template-columns: 230px 90px minmax(0, 1fr) 200px; gap: 20px; align-items: center; min-height: 38px; font-size: 14px; color: var(--dg-ink-3); }
.dc-row-h { align-items: end; min-height: 0; margin-top: 14px; padding: 4px 0 6px; border-bottom: 1px solid var(--dg-rule); font-size: 14px; color: var(--dg-ink-6); }
.dc-items > .dc-row-h:first-child { margin-top: 0; }
.dc-row-h b { font-weight: 700; color: var(--dg-ink-3); }
.dc-row-h > span:first-child { font-size: 14px; color: var(--dg-ink-4); }
.dc-row-h > span:first-child b { margin-right: 4px; color: var(--dg-ink); }
.dc-axis { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; }
.dc-axis > span:nth-child(2) { text-align: center; }
.dc-axis > span:last-child { text-align: right; }
.dc-wide { grid-column: 2 / -1; font-size: 14px; }
.dc-pp { font-size: 14px; color: var(--dg-ink-4); white-space: nowrap; }
.dc-bar { position: relative; height: 24px; }
.dc-bar::before { content: ""; position: absolute; left: 50%; top: -7px; bottom: -7px; width: 1px; background: rgba(22, 59, 88, .25); }
.dc-bar i { position: absolute; top: 4px; height: 16px; width: calc(min(var(--w, 0), 1) * 50%); min-width: 2px; }
.dc-bar i.pos { left: 50%; border-radius: 0 5px 5px 0; }
.dc-bar i.neg { right: 50%; border-radius: 5px 0 0 5px; }
.dc-bar i.good { background: var(--dg-good); }
.dc-bar i.bad { background: var(--dg-bad); }
.dc-bar i.ctx { background: var(--dg-ink-6); }
.dc-bar.weak i { opacity: .45; }
.dc-bar i b { font-style: normal; position: absolute; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 800; white-space: nowrap; }
.dc-bar i.pos b { left: calc(100% + 6px); }
.dc-bar i.neg b { right: calc(100% + 6px); }
.dc-bar i.good b { color: var(--dg-good); }
.dc-bar i.bad b { color: var(--dg-bad); }
.dc-bar i.ctx b { color: var(--dg-ink-4); }
.dc-zero { position: absolute; left: calc(50% + 6px); top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--dg-ink-4); }
.dc-bar.sm { height: 14px; }
.dc-bar.sm::before { top: -4px; bottom: -4px; }
.dc-bar.sm i { top: 2px; height: 10px; }
.dc-dist { display: flex; align-items: center; gap: 8px; }
.dc-dbar { flex: 1; display: flex; height: 8px; border-radius: 999px; overflow: hidden; }
.dc-dbar i { display: block; height: 100%; }
.dc-dist small { flex: none; font-size: 14px; color: var(--dg-ink-6); }

/* C 범주 · 최저 응답 조합 */
.dc-crows { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.dc-crows li { display: flex; align-items: center; gap: 18px; }
.dc-ring { --u: 0; --s: 0; flex: none; position: relative; display: grid; place-items: center; width: 104px; height: 104px; }
.dc-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 15px), #000 calc(100% - 14px)); mask: radial-gradient(farthest-side, transparent calc(100% - 15px), #000 calc(100% - 14px));
  background: conic-gradient(var(--dg-navy) 0 calc(var(--u) * 1%), rgba(22, 59, 88, .12) 0 calc((var(--u) + var(--s)) * 1%), rgba(37, 129, 135, .75) 0); }
.dc-ring.off::before { background: var(--dg-track); }
.dc-ring.sm.zero.t0::before, .dc-ring.sm.zero.t1::before { background: rgba(22, 59, 88, .1); } /* 0%면 빈 원(눈금 없음) */
.dc-ring b { position: relative; font-size: 20px; font-weight: 800; color: var(--dg-ink); }
.dc-ctext { flex: 1; min-width: 0; }
.dc-ctext p { margin: 0; font-size: 14px; color: var(--dg-ink-4); }
.dc-ctext p:first-child { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; font-size: 15px; color: var(--dg-ink-2); }
.dc-ctext p:first-child b { color: var(--dg-navy); }
.dc-ctext p:first-child small { margin-left: auto; font-size: 14px; color: var(--dg-ink-6); }
.dc-ctext p:last-child b { color: var(--dg-ink); }
.dc-combo { display: flex; flex-direction: column; }
.dc-rates { display: flex; align-items: center; justify-content: space-around; gap: 16px; padding: 20px 0 32px; }
.dc-rates > div { display: flex; align-items: center; gap: 14px; }
.dc-rates p { margin: 0; font-size: 14px; color: var(--dg-ink-4); }
.dc-rates p b { display: block; font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--dg-ink); }
.dc-rates p small { font-size: 15px; font-weight: 700; }
.dc-ring.sm.t0::before { background: conic-gradient(rgba(22, 59, 88, .5) 0 calc(var(--u) * 1%), rgba(22, 59, 88, .1) 0); }
.dc-ring.sm.t1::before { background: conic-gradient(var(--dh-rate-b) 0 calc(var(--u) * 1%), rgba(22, 59, 88, .1) 0); }
.dc-arrow { font-size: 20px; color: var(--dg-ink-6); }
.dc-move { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--dg-ink-4); }
.dc-move th { padding: 8px 12px; font-weight: 500; text-align: left; }
.dc-move thead th { border-bottom: 1px solid var(--dg-rule); }
.dc-move tbody th { width: 1%; padding-left: 0; white-space: nowrap; }
.dc-move td { padding: 12px; border-bottom: 1px solid var(--dg-rule); }
.dc-move tbody tr:last-child td { border-bottom: 0; }
.dc-move td + td { border-left: 1px solid var(--dg-rule); }
.dc-move td.on { background: rgba(22, 59, 88, .05); }
.dc-move td b { display: block; font-size: 22px; font-weight: 800; color: var(--dg-ink); }
.dc-move td b small { font-size: 14px; font-weight: 600; margin-left: 1px; }
.dc-foot { margin-top: auto; padding-top: 14px; }

/* 문항별 응답 분포: 문항마다 작은 막대그래프(3열) */
.dc-dists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dc-mini { padding: 14px 16px 10px; border-top: 1px solid var(--dg-rule); }
.dc-mini:nth-child(3n + 2), .dc-mini:nth-child(3n) { border-left: 1px solid var(--dg-rule); }
.dc-mini-t { display: flex; align-items: baseline; gap: 6px; margin: 0 0 10px; font-size: 14px; color: var(--dg-ink-2); }
.dc-mini-t b { color: var(--dg-navy); }
.dc-mini-t small { margin-left: auto; font-size: 14px; color: var(--dg-ink-6); }
.dc-mini-off { display: grid; place-items: center; height: 120px; }
.dc-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 318px; margin: 0 auto; }
.dc-col { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; color: var(--dg-ink-4); }
.dc-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; height: 100px; padding-top: 18px; border-bottom: 1px solid rgba(22, 59, 88, .2); }
.dc-bars i { position: relative; display: block; width: 14px; height: calc(var(--h, 0) * 1%); min-height: 1px; border-radius: 3px 3px 0 0; }
.dc-bars i b { font-style: normal; position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); font-size: 14px; font-weight: 700; color: var(--dg-ink-2); white-space: nowrap; }

/* 같은 기관 안 Bridge · 일반 비교 */
.dc-cond { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dc-same, .dc-diff { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .75); font-size: 14px; color: var(--dg-ink-4); }
.dc-same { background: rgba(31, 122, 109, .08); }
.dc-same b { color: var(--dg-good); }
.dc-diff b { font-weight: 700; color: var(--dg-ink-2); }
.dc-prow { display: grid; grid-template-columns: 200px 64px minmax(0, 1fr) 190px; gap: 6px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--dg-rule); }
.dc-prow.dc-row-h { margin-top: 0; padding: 0 0 6px; border-top: 0; }
.dc-pitem { grid-row: span 2; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; color: var(--dg-ink-3); }
.dc-pitem small { font-size: 14px; color: var(--dg-ink-6); }
.dc-kind { font-size: 14px; font-weight: 600; color: var(--dg-ink-5); }
.dc-kind.on { color: var(--dg-navy); }
.dc-pv { text-align: right; white-space: nowrap; font-size: 14px; color: var(--dg-ink-6); }
.dc-pv b { margin-left: 8px; font-size: 14px; color: var(--dg-ink); }
.dc-pv b small { font-weight: 500; color: var(--dg-ink-6); }

/* 기관별 자체 변화: 강좌 한 줄, 펼치면 문항별 */
.dc-orow { display: grid; grid-template-columns: minmax(0, 1.4fr) 64px minmax(0, 1.6fr) 84px; gap: 16px; align-items: center; padding: 10px 0; }
.dc-orow.dc-row-h { margin-top: 0; padding: 0 0 6px; }
.dc-odet { border-top: 1px solid var(--dg-rule); }
.dc-orow.dc-row-h + .dc-odet { border-top: 0; }
.dc-odet > summary { list-style: none; cursor: pointer; font-size: 14px; color: var(--dg-ink-3); }
.dc-odet > summary::-webkit-details-marker { display: none; }
.dc-odet > summary:focus-visible { outline: 2px solid var(--dg-teal); outline-offset: 2px; border-radius: 8px; }
.dc-ocourse { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dc-ocourse > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dc-ocourse b { color: var(--dg-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-ocourse small { font-size: 14px; color: var(--dg-ink-6); }
.dc-orow > .dc-wide { grid-column: 3; }
.dc-open { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; font-size: 14px; font-weight: 600; color: var(--dg-navy); }
.dc-open .icon { width: 16px; height: 16px; transition: transform .2s; }
.dc-odet[open] .dc-open .icon { transform: rotate(180deg); }
.dc-odetail { padding: 0 0 14px; }
@media (prefers-reduced-motion: reduce) { .dc-open .icon { transition: none; } }

@media (max-width: 1280px) {
  .dc-row { grid-template-columns: 180px 76px minmax(0, 1fr) 150px; gap: 14px; }
  .dc-dists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-mini:nth-child(n) { border-left: 0; }
  .dc-mini:nth-child(2n) { border-left: 1px solid var(--dg-rule); }
}
@media (max-width: 900px) {
  .dc-row { grid-template-columns: minmax(0, 1fr) 76px; row-gap: 6px; padding: 6px 0; }
  .dc-row > .dc-bar, .dc-row > .dc-dist { grid-column: 1 / -1; }
  .dc-row-h > :nth-child(n + 3) { display: none; }
  .dc-wide { grid-column: 1 / -1; }
  .dc-dists { grid-template-columns: minmax(0, 1fr); }
  .dc-mini:nth-child(n) { border-left: 0; }
  .dc-prow { grid-template-columns: 52px minmax(0, 1fr); }
  .dc-pitem { grid-row: auto; grid-column: 1 / -1; }
  .dc-pv { grid-column: 1 / -1; }
  .dc-prow.dc-row-h { display: none; }
  .dc-orow { grid-template-columns: minmax(0, 1fr) auto; }
  .dc-orow > .dc-wide { grid-column: 1 / -1; }
  .dc-orow.dc-row-h { display: none; }
  .dc-rates { flex-wrap: wrap; }
}

/* ── 디자인 확정안 "참여환경·과정경험(P·M) · 개선안"(F-DashProcessNew, B안) ── */
.dc-legend i.pm1, .pm-bar .pm1 { background: var(--dg-s1); }
.dc-legend i.pm2, .pm-bar .pm2 { background: var(--dg-s2); }
.dc-legend i.pm3, .pm-bar .pm3 { background: var(--dg-s3); }
.dc-legend i.pm4, .pm-bar .pm4 { background: var(--dg-s4); }
.dc-legend i.pm5, .pm-bar .pm5 { background: var(--dg-s5); }
.pm-row { display: grid; grid-template-columns: 230px 60px 60px minmax(0, 1fr) 128px; gap: 14px; align-items: center; min-height: 40px; font-size: 14px; color: var(--dg-ink-3); }
.pm-row.dc-row-h { margin-top: 0; }
.pm-row.dc-row-h > span:first-child { font-size: 14px; color: var(--dg-ink-6); }
.pm-row > :nth-child(2), .pm-row > :nth-child(3) { text-align: right; }
.pm-row > b { color: var(--dg-ink); }
.pm-row > :last-child { text-align: right; }
.pm-row > .pm-wide { grid-column: 3 / -1; text-align: left; }
.pm-row.dc-row-h > span { white-space: nowrap; }
.pm-row.dc-row-h > :nth-child(4) { text-align: center; } /* 머리 글자를 막대 영역(가운데 선 = 3) 가운데에 */
/* 막대 폭은 트랙의 절반, 3점의 가운데가 트랙 가운데 선에 오도록 왼쪽으로 민다 */
.pm-track { position: relative; height: 18px; }
.pm-track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: rgba(22, 59, 88, .45); }
.pm-bar { position: absolute; top: 0; left: calc(50% - (var(--p1, 0) + var(--p2, 0) + var(--p3, 0) / 2) * .5%); display: flex; width: 50%; height: 18px; border-radius: 6px; overflow: hidden; }
.pm-bar i { display: block; height: 100%; }
.pm-pos { font-size: 15px; }
@media (max-width: 900px) {
  .pm-row { grid-template-columns: minmax(0, 1fr) 44px 44px 56px; row-gap: 6px; padding: 6px 0; }
  .pm-row > .pm-track { grid-column: 1 / -1; grid-row: 2; }
  .pm-row.dc-row-h > :nth-child(4) { display: none; }
}

/* ── 디자인 확정안 "운영 품질 · 개선안"(F-DashQualityNew) ── */
[data-course-pane][hidden] { display: none; }
.qa-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.qa-pgrp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .35); }
.qa-pgt { padding: 0 6px 0 8px; font-size: 12px; font-weight: 700; color: var(--dg-ink-3); white-space: nowrap; }
.qa-pick { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .75); font: inherit; font-size: 14px; font-weight: 600; color: var(--dg-ink-3); cursor: pointer; }
.qa-pick:hover { color: var(--dg-navy); }
.qa-pick.on { background: var(--dg-navy); color: #fff; }
.qa-pick:focus-visible { outline: 2px solid var(--dg-teal); outline-offset: 2px; }
.qa-course { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.qa-course p { flex: 1; min-width: 0; margin: 0; font-size: 14px; color: var(--dg-ink-4); }
.qa-course p b { margin-right: 10px; color: var(--dg-ink); }
.qa-dot { display: block; width: 12px; height: 12px; border-radius: 50%; }
.qa-dot.t { background: var(--dg-navy); }
.qa-dot.f { background: #fff; box-shadow: inset 0 0 0 3px var(--dh-rate-b); }
.du-legend .qa-dot { width: 10px; height: 10px; border-radius: 50%; }
.du-legend .qa-dot.f { box-shadow: inset 0 0 0 2.5px var(--dh-rate-b); }
.qa-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) 120px 176px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--dg-rule); font-size: 14px; color: var(--dg-ink-3); }
.qa-row.dc-row-h { margin-top: 0; padding: 0 0 6px; border-top: 0; }
.qa-row.dc-row-h > span:last-child { white-space: nowrap; } /* 「시도 회기 ! · 미시도 !」 한 줄 */
.qa-row.dc-row-h > span:first-child { font-size: 14px; color: var(--dg-ink-6); }
.qa-scale { padding: 0 0 2px; border-top: 0; }
.qa-ticks { display: flex; justify-content: space-between; margin: 0 -2px; font-size: 14px; color: var(--dg-ink-6); }
.qa-track { position: relative; height: 18px; }
.qa-track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 2px; background: rgba(22, 59, 88, .1); }
.qa-link { position: absolute; top: 8px; height: 2px; left: calc(min(var(--a), var(--b)) * 1%); width: calc((max(var(--a), var(--b)) - min(var(--a), var(--b))) * 1%); background: rgba(22, 59, 88, .35); }
.qa-track .qa-dot { position: absolute; top: 3px; margin-left: -6px; }
.qa-v { white-space: nowrap; color: var(--dg-ink-4); }
.qa-v b { color: var(--dg-ink); }
.qa-n { display: flex; flex-direction: column; color: var(--dg-ink-3); }
.qa-n small { font-size: 14px; color: var(--dg-ink-6); }
.qa-arow { display: grid; grid-template-columns: minmax(0, 1.3fr) 80px minmax(0, 2.4fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--dg-rule); font-size: 14px; color: var(--dg-ink-3); }
.qa-arow.dc-row-h { margin-top: 0; padding: 0 0 6px; border-top: 0; }
.qa-arow.dc-row-h > span:first-child { font-size: 14px; color: var(--dg-ink-6); }
.qa-note { color: var(--dg-ink-2); }
@media (max-width: 900px) {
  .qa-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .qa-row > .qa-track, .qa-row > .qa-ticks { grid-column: 1 / -1; }
  .qa-scale, .qa-row.dc-row-h { display: none; }
  .qa-arow { grid-template-columns: minmax(0, 1fr) auto; }
  .qa-arow > .qa-note { grid-column: 1 / -1; }
  .qa-arow.dc-row-h { display: none; }
}

/* ── 디자인 확정안 "지역 공급·수요 · 개선안"(F-DashSupplyNew) ── */
.sp-round { gap: 12px; }
.sp-select select { height: 34px; padding: 0 30px 0 12px; border: 0; border-radius: 999px; background-color: rgba(255, 255, 255, .85); font: inherit; font-size: 14px; font-weight: 700; color: var(--dg-ink); }
.sp-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sp-counts .du-pill { display: inline-flex; align-items: center; gap: 6px; }
.sp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dg-ink-6); }
.sp-dot.sp-ok, .sp-st.sp-ok .sp-dot { background: var(--dg-good); }
.sp-dot.sp-part, .sp-st.sp-part .sp-dot { background: var(--dg-navy); }
.sp-dot.sp-none, .sp-st.sp-none .sp-dot { background: var(--dg-ink-6); }
.sp-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0 0 12px; padding: 0; list-style: none; }
.sp-areas li { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-left: 1px solid var(--dg-rule); }
.sp-areas li:first-child { border-left: 0; padding-left: 0; }
.sp-areas b { font-size: 15px; color: var(--dg-ink); }
.sp-st { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--dg-ink-4); }
.sp-st.sp-ok { color: var(--dg-good); }
.sp-linked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--dg-ink-4); }
.sp-linked b { margin-right: 4px; color: var(--dg-ink-3); }

/* 면 × 장르 */
.sp-legend { margin-bottom: 14px; }
.sp-legend .sp-c { display: inline-block; width: 14px; height: 10px; min-width: 0; min-height: 0; padding: 0; border-radius: 3px; }
.sp-grid { width: 100%; border-collapse: separate; border-spacing: 6px; margin: 0; font-size: 14px; }
.sp-grid thead th { padding: 0 0 2px; font-size: 14px; font-weight: 500; color: var(--dg-ink-4); text-align: center; }
.sp-grid tbody th, .sp-grid tfoot th { width: 84px; padding: 0 6px 0 0; text-align: left; font-size: 14px; font-weight: 700; white-space: nowrap; }
.sp-grid tbody th a { color: var(--dg-ink); text-decoration: none; }
.sp-grid tbody th a:hover { color: var(--dg-teal); text-decoration: underline; }
.sp-grid tr.on th a { color: var(--dg-teal); }
.sp-grid td { padding: 0; text-align: center; }
.sp-c { display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 8px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.sp-c.on { color: var(--dg-ink); }
.sp-c.on.lv0, .sp-c.on.lv1 { background: rgba(22, 59, 88, .1); }
.sp-c.on.lv2 { background: rgba(22, 59, 88, .16); }
.sp-c.on.lv3 { background: rgba(22, 59, 88, .24); }
.sp-c.on.lv4 { background: rgba(22, 59, 88, .34); }
.sp-c.gap { background: #fff; box-shadow: inset 0 0 0 1px var(--dg-rule); color: var(--dg-ink-4); font-weight: 500; }
.sp-c.gap.ask { background: var(--dh-coral-weak); box-shadow: inset 0 0 0 1px rgba(232, 96, 60, .3); color: var(--dh-coral-ink); font-weight: 700; }
.sp-c.unk { background: repeating-linear-gradient(135deg, rgba(22, 59, 88, .05) 0 6px, rgba(22, 59, 88, .1) 6px 12px); color: var(--dg-ink-6); font-weight: 500; }
.sp-grid .sp-sum { width: 1%; padding-left: 10px; text-align: left; white-space: nowrap; color: var(--dg-ink-4); }
.sp-grid thead .sp-sum { text-align: left; }
.sp-grid b { color: var(--dg-ink); }
.sp-ask { color: var(--dh-coral-ink); font-weight: 700; }
.sp-grid tfoot td, .sp-grid tfoot th { padding-top: 8px; border-top: 1px solid var(--dg-rule); font-size: 14px; color: var(--dg-ink-4); text-align: center; white-space: nowrap; }
.sp-grid tfoot th { color: var(--dg-ink-3); text-align: left; }
.sp-subhead { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--dg-rule); flex-wrap: wrap; }
.area-glass .sp-subhead h3{ margin: 0; font-size: 16px; font-weight: 800; color: var(--dg-ink); }
.sp-rank-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 10px 0 0; padding: 0; list-style: none; }
.sp-rank-list > li { display: flex; flex-direction: column; gap: 8px; padding: 6px 16px 10px; border-left: 1px solid var(--dg-rule); }
.sp-rank-list > li:first-child { border-left: 0; padding-left: 0; }
.sp-rank-h { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 15px; color: var(--dg-ink); }
.sp-rank-h span { color: var(--dh-coral-ink); font-weight: 800; }
.sp-rank-list ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sp-rank-list ul li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--dg-ink-3); }
.sp-rank-n { margin: auto 0 0; text-align: right; font-size: 14px; color: var(--dg-ink-4); }
.sp-rank-n b { font-size: 26px; font-weight: 800; color: var(--dh-coral-ink); }

/* 읍면동별 공급·수요 색 칸 표 */
.sp-heat { width: 100%; border-collapse: separate; border-spacing: 6px; margin: 0; font-size: 14px; }
.sp-heat thead th { padding: 0 0 4px; border-bottom: 1px solid var(--dg-rule); font-size: 14px; font-weight: 500; color: var(--dg-ink-4); text-align: center; vertical-align: bottom; }
.sp-heat thead th small { display: block; font-size: 14px; color: var(--dg-ink-6); }
.sp-heat tbody th { width: 76px; padding: 0 6px 0 0; text-align: left; font-size: 14px; font-weight: 700; white-space: nowrap; }
.sp-heat tbody th a { color: var(--dg-ink); text-decoration: none; }
.sp-heat tbody th a:hover, .sp-heat tr.on th a { color: var(--dg-teal); }
.sp-heat td { padding: 0; text-align: center; vertical-align: middle; }
.sp-h { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40px; padding: 2px 6px; border-radius: 8px; background: rgba(22, 59, 88, .04); font-size: 14px; font-weight: 700; color: var(--dg-ink); }
.sp-h small { font-size: 14px; font-weight: 500; color: var(--dg-ink-5); }
.sp-h.na { background: none; font-weight: 600; color: var(--dg-ink-4); }
.sp-h.sup.lv1 { background: rgba(22, 59, 88, .09); }
.sp-h.sup.lv2 { background: rgba(22, 59, 88, .16); }
.sp-h.sup.lv3 { background: rgba(22, 59, 88, .26); }
.sp-h.sup.lv4 { background: rgba(22, 59, 88, .38); }
.sp-h.dem.lv1 { background: rgba(232, 96, 60, .1); }
.sp-h.dem.lv2 { background: rgba(232, 96, 60, .2); }
.sp-h.dem.lv3 { background: rgba(232, 96, 60, .32); }
.sp-h.dem.lv4 { background: rgba(232, 96, 60, .46); }
.sp-h.neu.lv1, .sp-h.neu.lv2 { background: rgba(22, 59, 88, .1); }
.sp-h.neu.lv3, .sp-h.neu.lv4 { background: rgba(22, 59, 88, .2); }
.sp-legend .sp-h { display: inline-block; width: 14px; min-height: 0; height: 10px; padding: 0; border-radius: 3px; }
.sp-sub { display: block; margin-top: 2px; font-size: 14px; color: var(--dg-ink-5); }
.sp-change { font-size: 14px; color: var(--dg-ink-3); white-space: nowrap; }
.sp-change small, .sp-heat .muted small { display: block; font-size: 14px; }
.sp-heat .du-kind { display: inline-block; }
.sp-expand-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.sp-expand-list li { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-left: 1px solid var(--dg-rule); font-size: 14px; }
.sp-expand-list li:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.sp-expand-n { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; }
.sp-expand-n b { color: var(--dg-ink); }
.sp-expand-n small { grid-column: 1 / -1; font-size: 14px; color: var(--dg-ink-6); }
.sp-expand-v { flex: none; color: var(--dg-ink-4); }
.sp-expand-v b { color: var(--dh-coral-ink); }

/* 전환 장애 */
.sp-picks { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .75); }
.sp-picks a { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--dg-ink-3); text-decoration: none; }
.sp-picks a:hover { color: var(--dg-navy); }
.sp-picks a.on { background: var(--dg-navy); color: #fff; }
.sp-barrier { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; align-items: center; }
.sp-barrier.no-ring { grid-template-columns: minmax(0, 1fr); }
.sp-ring { position: relative; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; }
.sp-ring::before { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: #fff; }
.sp-ring span { position: relative; display: flex; flex-direction: column; align-items: center; font-size: 14px; color: var(--dg-ink-4); }
.sp-ring b { font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--dg-ink); }
.sp-brow { display: grid; grid-template-columns: minmax(0, 1fr) 140px 60px minmax(0, 1.2fr); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--dg-rule); font-size: 14px; color: var(--dg-ink-3); }
.sp-brow.dc-row-h { margin-top: 0; padding: 0 0 6px; border-top: 0; }
.sp-brow > :nth-child(2), .sp-brow > :nth-child(3) { text-align: right; white-space: nowrap; }
.sp-brow b { color: var(--dg-ink); }
.sp-key { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; vertical-align: 0; }
.sp-memo { font-size: 14px; color: var(--dg-ink-4); }
.sp-records { margin-top: 40px; }  /* 위 전환 장애 사유 표와 구분 */
.sp-records > .sp-subhead { margin-top: 0; padding-top: 24px; }
.sp-rrow { display: grid; grid-template-columns: minmax(0, 1.4fr) 150px 72px 130px minmax(0, 1.6fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--dg-rule); font-size: 14px; color: var(--dg-ink-3); }
.sp-rrow.dc-row-h { margin-top: 10px; padding: 0 0 6px; border-top: 0; }
.sp-rname { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-rname b { color: var(--dg-ink); }
.sp-rname small, .sp-reason small { font-size: 14px; color: var(--dg-ink-6); }
.sp-status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--dh-coral-weak); font-size: 12px; font-weight: 500; color: var(--dh-coral-ink); }
.sp-statuses { display: flex; flex-wrap: wrap; gap: 4px; }
.sp-status { white-space: nowrap; }
.sp-status.unk { background: rgba(22, 59, 88, .08); color: var(--dg-ink-4); }
.sp-reason { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sp-reason small { flex-basis: 100%; }

@media (max-width: 1280px) {
  .sp-expand-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-expand-list li:nth-child(n) { border-left: 1px solid var(--dg-rule); padding-left: 16px; }
  .sp-expand-list li:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .sp-barrier { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .sp-btable { width: 100%; }
  .sp-brow { grid-template-columns: minmax(0, 1fr) auto auto; }
  .sp-brow > :nth-child(4) { grid-column: 1 / -1; }
  .sp-rrow { grid-template-columns: minmax(0, 1fr) auto; }
  .sp-rrow > .sp-reason { grid-column: 1 / -1; }
  .sp-rrow.dc-row-h { display: none; }
  .sp-expand-list { grid-template-columns: minmax(0, 1fr); }
  .sp-expand-list li:nth-child(n) { border-left: 0; padding-left: 0; }
  .sp-areas li:nth-child(n) { border-left: 0; padding-left: 0; }
}

/* 읍면동별 공급·수요 「그림」(표 · 그림 토글, 있는 값만: 가로 운영 프로그램 · 세로 요청 인원 · 원 크기 참여 인원) */
[data-group-pane][hidden] { display: none; }
.sp-fig { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.sp-plot-wrap { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto 260px auto auto auto; column-gap: 8px; }
.sp-plot-yl { grid-column: 1 / -1; grid-row: 1; margin-bottom: 8px; font-size: 14px; color: var(--dg-ink-5); }
.sp-plot-y { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; margin: -7px 0; font-size: 14px; color: var(--dg-ink-6); }
.sp-plot { grid-column: 2; grid-row: 2; position: relative; border-left: 1px solid rgba(22, 59, 88, .25); border-bottom: 1px solid rgba(22, 59, 88, .25);
  background-image: linear-gradient(rgba(22, 59, 88, .06) 1px, transparent 1px); background-size: 100% 25%; }
.sp-plot-x { grid-column: 2; grid-row: 3; display: flex; justify-content: space-between; margin: 4px -6px 0; font-size: 14px; color: var(--dg-ink-6); }
.sp-plot-xl { grid-column: 2; grid-row: 4; margin-top: 4px; text-align: right; font-size: 14px; color: var(--dg-ink-5); }
.sp-plot-wrap > .du-note { grid-column: 1 / -1; grid-row: 5; }
.sp-pt { position: absolute; width: 0; height: 0; }
.sp-pt i { position: absolute; left: calc(var(--d) / -2); top: calc(var(--d) / -2); width: var(--d); height: var(--d); border-radius: 50%; background: rgba(46, 81, 112, .55); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); }
.sp-pt.on i { background: var(--dh-coral-a); }
.sp-pt b { position: absolute; left: calc(var(--d) / 2 + 6px); top: -9px; font-size: 14px; font-weight: 700; color: var(--dg-ink-2); white-space: nowrap; }
.sp-figlist { min-width: 0; }
.area-glass .sp-figlist h3{ margin: 0 0 6px; font-size: 15px; font-weight: 800; color: var(--dg-ink); }
.sp-figlist ul { margin: 0; padding: 0; list-style: none; }
.sp-figlist li { padding: 10px 0; border-top: 1px solid var(--dg-rule); }
.sp-figlist li.on { background: rgba(232, 96, 60, .05); }
.sp-figlist p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; font-size: 14px; color: var(--dg-ink-4); }
.sp-figlist p + p { margin-top: 4px; }
.sp-figlist p b { font-size: 14px; color: var(--dg-ink); }
.sp-figchg { margin-left: auto; font-size: 14px; color: var(--dg-ink-5); }
@media (max-width: 1100px) { .sp-fig { grid-template-columns: minmax(0, 1fr); } }

/* 줄 목록 표의 머리 줄은 모두 12px 회색 한 크기로(줄 글자 14px이 머리 줄까지 덮어 첫 칸만 작아 보이던 것) */
.pm-row.dc-row-h, .qa-row.dc-row-h, .qa-arow.dc-row-h, .sp-brow.dc-row-h, .sp-rrow.dc-row-h, .dc-prow.dc-row-h, .dc-orow.dc-row-h,
.pm-row.dc-row-h > span:first-child, .qa-row.dc-row-h > span:first-child, .qa-arow.dc-row-h > span:first-child,
.sp-brow.dc-row-h > span:first-child, .sp-rrow.dc-row-h > span:first-child, .dc-prow.dc-row-h > span:first-child, .dc-orow.dc-row-h > span:first-child { font-size: 14px; font-weight: 500; color: var(--dg-ink-6); }


/* ── 디자인 확정안 "데이터 품질 · 개선안"(F-DashQualityDataNew) ── */
.qd-rate-b { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.qd-rate .dc-ring.sm { width: 76px; height: 76px; }
.qd-rate .dc-ring::before { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px)); mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px)); }
.qd-rate .dc-ring b { font-size: 18px; }
.qd-rate .dc-ring b small { font-size: 14px; font-weight: 700; }
.qd-rate .d { margin: 0; padding: 0; white-space: normal; }
.qd-rate .d b { font-size: 16px; color: var(--dg-ink); }
.du-kpi .qd-d2 { margin-top: 2px; padding-top: 0; }
.qd-list { margin-bottom: 0; }
.qd-corr { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--dg-rule); font-size: 16px; color: var(--dg-ink-3); }
.qd-corr b { font-size: 18px; color: var(--dg-ink); }
.qd-miss { display: flex; flex-direction: column; gap: 12px; }
.qd-miss-v { margin: 0; font-size: 16px; color: var(--dg-ink-4); }
.qd-miss-v b { font-size: 32px; font-weight: 800; color: var(--dg-ink); }
.qd-link { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--dg-teal); }

.qd-ring { flex: none; }
.qd-ring .trk, .qd-ring .arc { fill: none; stroke-width: 16; }
.qd-ring .trk { stroke: rgba(22, 59, 88, .1); }
.qd-ring .arc { stroke-linecap: round; }
.qd-ring .g0 { stop-color: var(--dh-navy-a); }
.qd-ring .g1 { stop-color: var(--dh-rate-b); }
.qd-ring .v { font-size: 30px; font-weight: 800; fill: var(--dg-ink); }
.qd-ring .v .u { font-size: 18px; fill: var(--dg-ink-3); }

/* 표 머리 줄 통일(대시보드 첫 화면 표와 같은 모양): 옅은 흰 띠 · 14px 600 · 선 없음.
   줄 목록(.dc-row-h)은 띠 양옆을 12px 밖으로 빼서 아래 줄 글자와 칸 위치를 맞춘다. */
.area-glass .dc-row-h,
.area-glass .pm-row.dc-row-h, .area-glass .qa-row.dc-row-h, .area-glass .qa-arow.dc-row-h, .area-glass .sp-brow.dc-row-h,
.area-glass .sp-rrow.dc-row-h, .area-glass .dc-prow.dc-row-h, .area-glass .dc-orow.dc-row-h{
  align-items: center; min-height: 0; margin-left: -12px; margin-right: -12px; padding: 12px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .5); font-size: 14px; font-weight: 600; color: var(--dg-ink-4);
}
.area-glass .dc-row-h > span:first-child,
.area-glass .pm-row.dc-row-h > span:first-child, .area-glass .qa-row.dc-row-h > span:first-child, .area-glass .qa-arow.dc-row-h > span:first-child,
.area-glass .sp-brow.dc-row-h > span:first-child, .area-glass .sp-rrow.dc-row-h > span:first-child,
.area-glass .dc-prow.dc-row-h > span:first-child, .area-glass .dc-orow.dc-row-h > span:first-child{ font-size: 14px; font-weight: 600; color: var(--dg-ink-4); }
.area-glass .dc-row-h + *, .area-glass .dc-row-h + .dc-odet{ border-top: 0; }
.area-glass .dc-items > .dc-row-h + .dc-row{ margin-top: 4px; }
.area-glass .panel .table thead th{ padding: 12px 16px; border: 0; background: rgba(255, 255, 255, .5); font-size: 14px; font-weight: 600; color: var(--dg-ink-4); }
.area-glass .panel .table thead th:first-child{ border-radius: 12px 0 0 12px; }
.area-glass .panel .table thead th:last-child{ border-radius: 0 12px 12px 0; }

/* 머리 줄 띠를 카드 가장자리까지(대시보드 첫 화면 표와 같게): 카드 좌우 안쪽 여백(--cx)만큼 밖으로 빼고,
   첫·끝 칸 안쪽 여백을 --cx로 줘서 글자 위치는 그대로. 모서리 둥글림 없음. */
.area-glass .panel{ --cx: 26px; }
.area-glass .du-card{ --cx: 24px; }
@media (max-width: 768px) { .area-glass .panel, .area-glass .du-card{ --cx: 18px; } }
.area-glass .dc-row-h,
.area-glass .pm-row.dc-row-h, .area-glass .qa-row.dc-row-h, .area-glass .qa-arow.dc-row-h, .area-glass .sp-brow.dc-row-h,
.area-glass .sp-rrow.dc-row-h, .area-glass .dc-prow.dc-row-h, .area-glass .dc-orow.dc-row-h{
  margin-left: calc(-1 * var(--cx, 24px)); margin-right: calc(-1 * var(--cx, 24px)); padding: 12px var(--cx, 24px); border-radius: 0;
}
.area-glass .panel .tblwrap{ margin-left: calc(-1 * var(--cx, 24px)); margin-right: calc(-1 * var(--cx, 24px)); }
.area-glass .panel .tblwrap .table thead th:first-child, .area-glass .panel .tblwrap .table tbody td:first-child,
.area-glass .panel .tblwrap .table tbody th:first-child{ padding-left: var(--cx, 24px); }
.area-glass .panel .tblwrap .table thead th:last-child, .area-glass .panel .tblwrap .table tbody td:last-child{ padding-right: var(--cx, 24px); }
.area-glass .panel .tblwrap .table thead th, .area-glass .panel .du-table thead th:first-child, .area-glass .panel .du-table thead th:last-child,
.area-glass .panel .table thead th:first-child, .area-glass .panel .table thead th:last-child{ border-radius: 0; }

/* 지역 공급·수요 칸 타일 표 두 개는 카드 안쪽 여백 안에 둔다(머리 줄 띠를 끝까지 빼는 규칙에서 제외). */
.area-glass .panel .tblwrap:has(> .sp-grid), .area-glass .panel .tblwrap:has(> .sp-heat){ margin-left: 0; margin-right: 0; }
/* 면 × 장르: 장르 칸을 같은 폭으로(긴 장르 이름 칸만 넓어지지 않게), 칸 높이를 조금 키운다. */
.sp-grid { table-layout: fixed; }
.sp-grid col.sp-col-area { width: 84px; }
.sp-grid col.sp-col-sum { width: 130px; }
.sp-grid thead th { white-space: normal; word-break: keep-all; }
.sp-grid .sp-c { min-height: 42px; padding: 4px 8px; white-space: normal; word-break: keep-all; text-align: center; line-height: 1.3; }

/* 읍면동별 공급·수요 색 칸 표(시안 H): 숫자만 · 같은 높이 · 머리 한 줄 */
.sp-heat thead th { white-space: nowrap; }
.sp-h { min-height: 40px; font-size: 15px; }
.sp-h.off { gap: 4px; flex-direction: row; background: rgba(22, 59, 88, .05); font-size: 14px; font-weight: 500; color: var(--dg-ink-4); }
.sp-h.off .icon { width: 14px; height: 14px; }
.sp-change b { font-size: 15px; color: var(--dg-ink-4); }
.sp-change b.up { color: var(--dg-good); }
.sp-change b.down { color: var(--dg-bad); }
.sp-bridge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(37, 129, 135, .12); font-size: 13px; font-weight: 500; color: #1d6b70; white-space: nowrap; }

/* 전환 장애: 도넛 칸을 넓히고, 도넛 옆 사유 표는 카드 폭 표가 아니라서 머리 줄 띠 없이(아래 선만) */
.sp-barrier { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; }
.sp-ring { width: 200px; height: 200px; justify-self: center; }
.sp-ring::before { inset: 34px; }
.sp-ring b { font-size: 34px; }
.area-glass .sp-brow.dc-row-h{
  margin-left: 0; margin-right: 0; padding: 0 0 8px; border-bottom: 1px solid var(--dg-head-rule); border-radius: 0; background: none;
}
.area-glass .sp-brow.dc-row-h + .sp-brow{ border-top: 0; }
@media (max-width: 900px) { .sp-barrier { grid-template-columns: minmax(0, 1fr); } }

/* 증설·분반 검토 대상(시안): 한 줄 · 3칸 · 세로 구분선 */
.sp-expand-list li { padding: 12px 20px; }
.sp-expand-n { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.sp-expand-n b { flex: none; font-size: 15px; }
.sp-expand-n .trunc { font-size: 15px; color: var(--dg-ink-3); }
.sp-expand-v { font-size: 14px; }
.sp-expand-v b { font-size: 16px; font-weight: 700; }

.sp-ask-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 3px; background: var(--dh-coral-b); vertical-align: 1px; }
.sp-rank-list > li:has(li.muted) .sp-rank-n b { color: var(--dg-ink-4); }


/* 대시보드 첫 화면 1차·2차 설문 카드의 응답률 원(확정안 F-DashHomeWide) — 체크 아이콘 대신 */
.dh-kpi-ring { position: absolute; right: 18px; top: 50%; width: 64px; height: 64px; transform: translateY(-50%); }
.dh-kpi-ring circle { fill: none; stroke-width: 5; }
.dh-kpi-ring .trk { stroke: rgba(255, 255, 255, .28); }
.dh-kpi-ring .arc { stroke: #fff; stroke-linecap: round; }
@media (min-width: 2000px) { .dh-kpi-ring { right: 26px; width: 108px; height: 108px; } }
/* 원 있는 카드의 아래 설명(운영에서 「결과 반영 · 미동의 제외」까지 붙어 길어짐): 원 왼쪽까지만 쓰고, 토막 사이에서만 줄을 바꾼다 */
.dh-kpi.has-ring .d { padding-right: 84px; white-space: normal; overflow: visible; line-height: 1.45; }
.dh-kpi .d > span { white-space: normal; }
@media (min-width: 2000px) { .dh-kpi.has-ring .d { padding-right: 140px; } }
/* 넓은 화면(1800px~)은 카드 안을 위아래 끝으로 벌려서(설명은 아래 끝) 설명이 여러 줄인 카드만 숫자가 올라갔다 —
   네 카드 모두 제목·숫자는 위에서부터 같은 간격으로 놓아 숫자 줄 높이를 맞추고, 설명만 카드 맨 아래에 붙인다. */
@media (min-width: 1800px) { .dh-kpi { justify-content: flex-start; } .dh-kpi .v { margin: 14px 0 10px; } .dh-kpi .d { margin-top: auto; } }  /* 설명은 카드 맨 아래(여러 줄이면 위로 자람) */

/* ── 대시보드 모션(2026-11-11): 카드가 차례로 서서히 떠오른다(dash_motion.js). 막대·고리·숫자는 JS가 움직인다.
   <html class="mo">는 _base_dashboard.html 머리에서 "움직임 줄이기"가 아닐 때만 붙는다. ── */
html.mo .dash-body :where(.area-dash) :is(.dash-headcard, .dash-page-head, .dh-cohort, .dh-kpi, .dh-card, .du-kpi, .stat-row .stat-tile, .panel, .m-card):not(.mo-done):not(.mo-in) { opacity: 0; transform: translateY(18px); }
html.mo .dash-body :where(.area-dash) .mo-in { transition: opacity .6s ease var(--mo-d, 0ms), transform .7s cubic-bezier(.22, .61, .36, 1) var(--mo-d, 0ms); }
@media print { html.mo .dash-body :where(.area-dash) :is(.dash-headcard, .dash-page-head, .dh-cohort, .dh-kpi, .dh-card, .du-kpi, .stat-row .stat-tile, .panel, .m-card) { opacity: 1 !important; transform: none !important; } }

/* 상세 필터 버튼 앞 필터 아이콘 */
.nf-btn > .icon { width: 16px; height: 16px; margin-right: 6px; flex: none; }


/* ── 디자인 확정안 "참여자별 보기 · 개선안"(F-DashPeopleNew) ── */
.area-glass .pp-tabs a{ display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--dg-ink-4); text-decoration: none; }
.area-glass .pp-tabs a:hover{ color: var(--dg-navy); }
.area-glass .pp-tabs a.on{ background: var(--dg-navy); color: #fff; }
.pp-sub { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin: 14px 0; }
.pp-sub .du-sub { margin: 0; }
.pp-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 170px 80px 110px 140px; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--dg-rule); font-size: 15px; color: var(--dg-ink-3); }
.pp-row.named { grid-template-columns: 100px 90px minmax(0, 1fr) 170px 80px 110px 140px; }
.pp-row b { color: var(--dg-ink); }
.pp-code { font-weight: 600; color: var(--dg-ink-2); }
.pp-wide { grid-column: span 2; }
.pp-marks { display: flex; flex-wrap: wrap; gap: 4px; }
.pp-m { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.pp-m.on { background: var(--dg-navy); }
.pp-m.off { background: rgba(232, 96, 60, .55); }
.pp-m.none { box-shadow: inset 0 0 0 1.5px rgba(22, 59, 88, .25); }
.du-legend .pp-m { width: 12px; height: 12px; border-radius: 3px; }
.pp-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(22, 59, 88, .08); font-size: 13px; font-weight: 500; color: var(--dg-ink-2); }
.pp-pill.no { background: var(--dh-coral-weak); color: var(--dh-coral-ink); }
@media (max-width: 900px) {
  .pp-row, .pp-row.named { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .pp-row > .pp-marks { grid-column: 1 / -1; }
  .pp-row.dc-row-h { display: none; }
}

/* 읍면동·장르별 공급 현황 — 표 아래 칸 수 요약(굵게) + 읽는 법(작은 목록)로 계층 나눔 */
.sp-tally { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 18px 0 0; font-size: 15px; color: var(--dg-ink-3, var(--dg-ink)); }
.sp-tally > span { display: inline-flex; align-items: center; gap: 7px; }
.sp-tally b { font-weight: 700; color: var(--dg-ink); }
.sp-tally-all { font-weight: 600; color: var(--dg-ink); }
.sp-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.sp-sw.on { background: rgba(22, 59, 88, .24); }
.sp-sw.gap { background: #fff; box-shadow: inset 0 0 0 1px var(--dg-rule-strong, rgba(22, 59, 88, .25)); }
.sp-sw.unk { background: repeating-linear-gradient(135deg, rgba(22, 59, 88, .08) 0 3px, rgba(22, 59, 88, .18) 3px 6px); }
.sp-notes { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; line-height: 1.5; color: var(--dg-ink-5); }
.sp-notes li { position: relative; padding-left: 12px; }
.sp-notes li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }

/* 공백 속 수요 — 글자 계층: 면 이름(16·700) > 장르(14·보통) / 요청 수(숫자만 굵게) > 합계(라벨 작게 + 큰 숫자) */
.sp-rank-list { margin-top: 16px; }
.sp-rank-list > li { gap: 10px; }
.sp-rank-h { align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--dg-rule); font-size: 16px; }
.sp-rank-h b { font-weight: 700; color: var(--dg-ink); }
.sp-rank-h span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--dh-coral-weak); font-size: 13px; font-weight: 700; }
.sp-rank-list ul li { align-items: center; color: var(--dg-ink-3); font-weight: 400; }
.sp-rank-list ul li.muted { color: var(--dg-ink-5); }
.sp-rq { font-size: 14px; color: var(--dg-ink-5); white-space: nowrap; }
.sp-rq b { margin-left: 2px; font-weight: 700; color: var(--dg-ink); }
.sp-rank-n { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--dg-rule); text-align: left; color: var(--dg-ink-4); }
.sp-rank-lbl { font-size: 14px; font-weight: 500; color: var(--dg-ink-5); }
.sp-rank + .sp-notes, .sp-rank .sp-notes { margin-top: 16px; }

/* 증설·분반 검토 대상 — 작은 카드 격자(왼쪽 띠 없음, 그림자로 구분) + 등록·대기 비율 막대 */
.sp-xcards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 14px; }
.sp-xcards li, .sp-xcards li:nth-child(n) { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 16px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .62); box-shadow: 0 1px 2px rgba(22, 59, 88, .06), 0 4px 14px rgba(22, 59, 88, .06); }
.sp-xcards p { margin: 0; }
.sp-x-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sp-x-area { flex: none; padding: 2px 9px; border-radius: 999px; background: rgba(22, 59, 88, .08); font-size: 13px; font-weight: 500; color: var(--dg-navy); }
.sp-x-genre { font-size: 14px; color: var(--dg-ink-5); }
.sp-x-name { margin-top: 6px !important; font-size: 16px; font-weight: 700; color: var(--dg-ink); }
.sp-x-org { font-size: 14px; color: var(--dg-ink-5); }
.sp-x-bar { display: flex; gap: 2px; height: 8px; margin-top: 10px; border-radius: 999px; overflow: hidden; }
.sp-x-bar i { min-width: 4px; }
.sp-x-bar .en { background: rgba(22, 59, 88, .28); }
.sp-x-bar .wt { background: var(--dh-coral-b); }
.sp-x-nums { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px !important; font-size: 14px; color: var(--dg-ink-5); }
.sp-x-nums b { margin-left: 3px; font-size: 16px; font-weight: 700; }
.sp-x-nums .wt b { color: var(--dh-coral-ink); }
.sp-x-nums .en b { color: var(--dg-ink-3); }
@media (max-width: 1100px) { .sp-xcards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }

/* 증설·분반 — 카드 대신 공백 속 수요처럼 세로선으로 구분. 줄 첫 칸의 선은 ul 밖으로 밀어 잘라 냄(줄 바뀜 위치와 무관) */
.sp-xcards { gap: 22px 0; margin-left: -21px; overflow: hidden; }
.sp-xcards li, .sp-xcards li:nth-child(n) { margin-left: -1px; padding: 4px 20px; border-left: 1px solid var(--dg-rule); border-radius: 0; background: none; box-shadow: none; }

/* 전환 장애 도넛 — SVG 호(사유마다 다른 범주색, 호 사이 틈) + 가운데 흰 원에 합계. 둘레·위아래 여백 넉넉히 */
.sp-barrier { grid-template-columns: 300px minmax(0, 1fr); gap: 44px; padding: 28px 0 20px; }
.sp-ring { position: relative; width: 236px; height: 236px; padding: 0; border-radius: 50%; background: none; justify-self: center; }
.sp-ring::before { content: none; }
.sp-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.sp-ring circle { fill: none; stroke-width: 26; }
.sp-ring circle.sp-ring-track { stroke: rgba(22, 59, 88, .06); stroke-width: 34; }
.sp-ring > span { position: absolute; inset: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(22, 59, 88, .1); font-size: 14px; color: var(--dg-ink-4); }
.sp-ring b { font-size: 38px; font-weight: 800; line-height: 1.05; color: var(--dg-ink); }
.sp-key { border-radius: 4px; }
@media (max-width: 900px) { .sp-barrier { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* 도넛 호를 path로 바꿈 — 회전 없음, 바탕 고리는 호와 같은 굵기(겹쳐 보이는 테두리 없앰) */
.sp-ring svg { transform: none; }
.sp-ring path { fill: none; stroke-width: 26; }
.sp-ring circle.sp-ring-track { stroke-width: 26; stroke: rgba(22, 59, 88, .05); }

/* 전환 장애 제외 안내 — 오른쪽 끝 정렬 */
.sp-bnote { text-align: right; }


/* 무응답 편향 점검 — 오른쪽 「응답·미응답 · 차이」 열 넓히고 제목 한 줄로 */
.du-div-scale:not(.du-change *), .du-div-row:not(.du-change *) { grid-template-columns: 150px minmax(0, 1fr) 140px; }
.du-div-scale > span:last-child { white-space: nowrap; }
@media (max-width: 768px) { .du-div-scale:not(.du-change *), .du-div-row:not(.du-change *) { grid-template-columns: 110px minmax(0, 1fr) 124px; } }

/* 대시보드 메뉴 「관리자 화면으로」 — 다른 메뉴와 같은 글자 크기·아이콘, 메뉴 맨 아래(빈 칸이 남는 높이를 채움) */
.dash-side-fill { display: none; }
.dash-glass .dash-side .dash-side-back { position: relative; height: 40px; margin-top: 0; padding: 0 12px; border-top: 0; border-radius: 12px; font-size: 16px; font-weight: 500; color: var(--dg-ink-3); }
.dash-glass .dash-side .dash-side-back::before { content: ""; position: absolute; top: -9px; left: 12px; right: 12px; height: 1px; background: var(--dg-rule); }
.dash-glass .dash-side .dash-side-back:hover { background: rgba(255, 255, 255, .5); color: var(--dg-navy); }
.dash-glass .dash-side .dash-side-fill { display: block; flex: 1 0 20px; min-height: 20px; }
@media (min-width: 1101px) {
  .dash-glass .dash-side { display: flex; flex-direction: column; }
  .dash-glass .dash-side > * { flex: none; }
  .dash-glass .dash-side > .dash-side-fill { flex: 1 0 20px; }
}

/* 대시보드 첫 화면 — 값이 없어 예시 값으로 채운 카드의 「예시」 뱃지(운영에서도 보임) */
.dh-ex { display: inline-flex; align-items: center; flex: none; height: 22px; margin-left: 8px; padding: 0 9px; border-radius: 999px; background: var(--dh-coral-weak); font-size: 12px; font-weight: 500; line-height: 1; color: var(--dh-coral-ink); vertical-align: 2px; cursor: help; }
.dh-kpi .dh-ex { margin: 0 8px 0 0; background: rgba(255, 255, 255, .26); color: #fff; }
.dh-cohort-row .dh-ex { vertical-align: 4px; }

/* 머리줄·제목 카드 아래쪽 흰 띠(크롬에서만, 마우스를 올리면 생겼다 사라지고 스크롤하면 사라짐, 2026-11-11):
   흐림(backdrop-filter) 판에 겹침 순서(z-index)까지 붙은 이 둘에서만 크롬이 아래 가장자리에 밝은 찌꺼기를 남긴다.
   흐림·투명도 60%는 그대로 두고, 평소에는 겹침 순서를 빼고 이름 메뉴·상세 필터 창을 열었을 때만 위로 올린다. */
.dash-glass .app-header, .dash-headcard { z-index: auto; }
.dash-glass .app-header:has(.user-menu[open]) { z-index: 10; }
.dash-headcard:has(.nf-pop[open]) { z-index: 5; }

/* v0.9.15a 사후설문 수집 기간 안내(강사 카드·시민 수업 없는 날) */
.qr-card p.qr-sched{font-size:15px;font-weight:600;color:var(--ink);margin-bottom:6px}
.ctx-citizen .noclass-post{margin-top:18px;padding:12px 14px;border-radius:12px;background:var(--surface-2,#f4f5f7);font-size:15px;line-height:1.6;color:var(--ink-2)}
.ctx-citizen .noclass-post span{font-weight:600;color:var(--ink)}

/* 첫 화면 숫자 카드의 큰 숫자: 칸 맞춤 숫자(tabular-nums)는 「1」도 다른 숫자만큼 넓게 잡아 왼쪽이 비어 「118」이 안으로 들어가 보였다 —
   큰 숫자는 위아래로 견줄 일이 없어 보통 숫자 폭으로 쓴다(2026-11-11) */
.dh-kpi .v.tnum { font-variant-numeric: normal; }

/* 첫 화면 [전체 일정 보기] 오른쪽 슬라이드 패널(2026-11-11): 카드를 늘리지 않고 [계산 방법]과 같은 패널로. 달별 묶음 */
.dh-cal-drawer .drawer-body { display: flex; flex-direction: column; gap: 10px; }
.dh-cal-drawer .dh-cal-month { margin: 14px 0 2px; font-size: 16px; font-weight: 700; color: var(--dg-ink); }
.dh-cal-drawer .dh-cal-month:first-child { margin-top: 0; }
.dh-cal-drawer .dh-events li { background: var(--surface-2); }

/* 선택 상자 펼침 목록(static/js/select.js, 2026-11-11): 브라우저 기본 목록 대신 둥근 흰 카드. 모든 화면 공통.
   고른 항목은 남색 굵게 + 오른쪽 체크, 마우스·키보드로 가리킨 항목은 옅은 바탕. 묶음(optgroup) 이름은 작은 회색 머리. */
.csel { position: fixed; z-index: 1000; inset: auto; margin: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px rgba(16, 24, 40, .06), 0 16px 40px -8px rgba(16, 24, 40, .22); list-style: none; color: var(--ink); animation: csel-in .12s ease-out; }
.csel.is-up { animation-name: csel-in-up; }
@keyframes csel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes csel-in-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.csel-opt { position: relative; display: block; padding: 9px 36px 9px 12px; border-radius: 9px; font-size: 15px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.csel-opt.is-active { background: var(--surface-3); }
.csel-opt.is-on { font-weight: 700; color: var(--brand); }
.csel-opt.is-on::after { content: ""; position: absolute; right: 14px; top: 50%; width: 5px; height: 10px; margin-top: -7px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.csel-opt[aria-disabled="true"] { color: var(--ink-4); cursor: default; }
.csel-group { padding: 12px 12px 4px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.csel-group:first-child { padding-top: 6px; }
.csel-group:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--line); }
.area-glass .csel-opt.is-on{ color: var(--dg-navy); }
.area-glass .csel-opt.is-on::after{ border-color: var(--dg-teal); }
@media (prefers-reduced-motion: reduce) { .csel { animation: none; } }
/* 펼침 목록 스크롤바: 기본 회색 막대(위아래 화살표)가 둥근 모서리를 각지게 덮었다 — 바탕 없는 얇은 둥근 막대로, 위아래는 모서리만큼 비운다 */
.csel::-webkit-scrollbar { width: 12px; }
.csel::-webkit-scrollbar-track { margin: 12px 0; background: transparent; }
.csel::-webkit-scrollbar-thumb { border: 4px solid transparent; border-radius: 999px; background: rgba(16, 24, 40, .2) padding-box; }
.csel::-webkit-scrollbar-thumb:hover { background-color: rgba(16, 24, 40, .32); }
.csel::-webkit-scrollbar-button { display: none; height: 0; }
@supports (-moz-appearance: none) { .csel { scrollbar-width: thin; scrollbar-color: rgba(16, 24, 40, .2) transparent; } }

/* 「!」 설명(2026-11-13): 계산 방법 버튼 「?」 → 「!」. 색은 지금처럼 회색 계열. 하위 「!」(열·범례·묶음 제목 옆)는 작은 원.
   창(.xp-pop)은 버튼 아래에 뜨는 흰 카드 — 이 패널은(파랑) · 계산(회색, 변수명은 관리자만) · 읽는 법(초록) · 문항 원문. */
/* 「!」은 어디서나 같은 모양(채운 원 20px) — 문장 안·머리 옆 구분 없이 */
.du-bang, .du-bang.sm { width: 20px; height: 20px; margin-left: 5px; background: rgba(22, 59, 88, .13); color: var(--dg-navy); font-size: 12px; font-weight: 800; line-height: 1; vertical-align: 1px; border: 0; box-shadow: none; }
.du-bang:hover { background: rgba(22, 59, 88, .22); }
.du-bang[aria-expanded="true"] { background: rgba(22, 59, 88, .18); color: var(--dg-navy); }
.dh-kpi .du-bang, .dh-kpi .du-bang:hover { width: 18px; height: 18px; margin-left: 6px; background: rgba(255, 255, 255, .28); color: #fff; font-size: 11px; vertical-align: 1px; }
.du-kpi { position: relative; }
.du-kpi .k { display: flex; align-items: center; gap: 4px; }
.du-kpi .du-kpi-link { color: inherit; text-decoration: none; }
.du-kpi .du-kpi-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.du-kpi:has(.du-kpi-link):hover { background: var(--dg-glass-on); }
.du-kpi .du-bang { position: relative; z-index: 1; }
.xp-pop { position: fixed; z-index: 1100; overflow-y: auto; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(20, 40, 60, .22); color: var(--ink, #1b2430); font-size: 14px; line-height: 1.6; }
.xp-pop:focus { outline: none; }
.xp-pop:focus-visible { outline: 2px solid var(--dg-teal, #1f8a7a); outline-offset: 2px; }
.xp-pop h3 { margin: 0 26px 4px 0; font-size: 16px; font-weight: 700; }
.xp-x { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; font-size: 20px; line-height: 1; color: #8896a5; cursor: pointer; }
.xp-x:hover { background: #f1f4f7; color: var(--dg-ink, #1b2430); }
.xp-lab { margin: 10px 0 3px; font-size: 12px; font-weight: 700; color: #5d6b7a; }
.xp-what { padding: 7px 9px; border-radius: 8px; background: #eef2fb; color: #2c4a86; }
.xp-calc { padding: 7px 9px; border-radius: 8px; background: #f4f6f9; font-size: 13px; }
.xp-var { margin-top: 3px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #5d6b7a; word-break: break-all; }
.xp-read { padding: 7px 9px; border-radius: 8px; background: #eef6f4; color: #21675d; }
.xp-q { margin: 0; padding: 7px 9px; border-radius: 8px; background: #eef6f4; color: #21675d; list-style: none; }
.xp-q li + li { margin-top: 5px; }
.xp-q b { margin-right: 6px; }
.xp-foot { margin: 8px 0 0; font-size: 12px; color: #8a96a3; }


/* ── V0918B 앱 메뉴 묶음 접기(관리자 역할: 성과 대시보드·운영·데이터·시스템) ── */
.app-side .app-grp-btn { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 24px); padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.dash-glass .app-side .app-grp-btn { margin: 16px 12px 6px; font-size: 16px; font-weight: 600; color: var(--dg-ink-5); }
.app-side .app-grp-btn:hover { color: var(--dg-navy); }
.app-side .app-grp-btn:focus-visible { outline: 2px solid var(--dg-teal); outline-offset: 2px; border-radius: 6px; }
.app-side .app-grp-btn .icon { width: 16px; height: 16px; transition: transform .18s ease; }
.app-side .app-grp.closed .app-grp-btn .icon { transform: rotate(-90deg); }
.app-side .app-grp.closed .app-grp-items { display: none; }
@media (prefers-reduced-motion: reduce) { .app-side .app-grp-btn .icon { transition: none; } }

/* ── V0918B 관리 화면 글래스(대시보드와 같은 꾸밈) ──
   관리 본문 전체를 흰 판(0.9) 한 장에 올린다 — 대시보드 카드와 같은 모서리·테두리 빛·그림자.
   표·목록이 길어 backdrop-filter는 쓰지 않는다(스크롤 성능, 글자 대비 4.5:1 이상). 표·폼 카드는 흰 불투명.
   기능·문구·권한은 바꾸지 않고 모양만. 강사(/t)·시민(/p)·로그인·QR 인쇄 화면(body.ctx-admin)은 해당 없음. */
.area-admin { position: relative; padding: 28px 32px 36px; border-radius: 24px; background: rgba(255, 255, 255, .95); box-shadow: var(--dg-shadow); color: var(--ink); --ink-3: #566170; }  /* 보조 글자: 판 뒤 명화가 가장 어두워도 4.5:1 이상 */
.area-admin > :not(dialog):not(.toast-stack) { max-width: none; }
.area-admin .page-head h1, .area-admin .head h1 { color: var(--dg-navy); font-weight: 800; }
.area-admin .page-desc { color: var(--ink-3); }
.area-admin .panel, .area-admin .tbl { border-color: rgba(22, 59, 88, .1); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(22, 59, 88, .05); }
.area-admin .panel-title, .area-admin .panel > h3 { color: var(--dg-ink); }
.area-admin .btn { border-radius: 999px; padding-inline: 16px; }
.area-admin .btn:not(.btn-sub):not(.btn-danger):not(.btn-ghost):not(.btn-link):not(:disabled) { background: var(--dg-navy); }
.area-admin .btn:not(.btn-sub):not(.btn-danger):not(.btn-ghost):not(.btn-link):not(:disabled):hover { background: var(--dg-teal); }
.area-admin .btn-sub { border-color: rgba(22, 59, 88, .16); }
.area-admin .tabs { border-bottom-color: rgba(22, 59, 88, .12); }
.area-admin .tabs a.on, .area-admin .tabs a[aria-current="page"] { color: var(--dg-navy); border-color: var(--dg-navy); font-weight: 700; }
.area-admin .input, .area-admin select, .area-admin textarea { border-radius: 12px; }
.area-admin .input:focus, .area-admin select:focus, .area-admin textarea:focus { border-color: var(--dg-teal); }
@media (max-width: 1100px) { .area-admin { padding: 22px 20px 28px; } }
@media (max-width: 560px) { .area-admin { margin-inline: -6px; padding: 18px 10px 24px; border-radius: 18px; } }  /* 폰: 본문 폭을 이전 관리 화면(358px)과 같게 */
.area-admin .adm-table .cell-sub { color: var(--ink-3); }  /* 강좌 목록 기관 줄: 흰 바탕 4.5:1 이상(이전 ink-4 2.5:1) */
.area-admin .ab-present { background: #047857; }  /* 출석 칸 흰 글자 4.5:1 이상(이전 #10b981 2.5:1) */
/* 화면 스위치 꺼진 조직(이전 화면, 결정 K3): 같은 앱 틀 안에서 본문을 관리 화면과 같은 흰 판에 올린다(명화 위 글자 가독성). */
.area-dash:not(.area-glass) { padding: 24px 28px 32px; border-radius: 24px; background: rgba(255, 255, 255, .95); box-shadow: var(--dg-shadow); }
@media (max-width: 560px) { .area-dash:not(.area-glass) { margin-inline: -6px; padding: 18px 10px 24px; border-radius: 18px; } }
.dash-side.app-side .app-grp-btn.dash-side-group { display: flex; width: calc(100% - 24px); }  /* 서랍(1100px 이하)에서도 화살표를 오른쪽 끝에 */

/* ─── 범위 권한(2026-11-16 범위 설계, 목업 scope_v1) ─── */
/* 범주 도형: 읍 ■ 면 ▲ 동 ● — 글자 앞 작게, 같은 범주 같은 모양(core.templatetags.ui.area_shape) */
.shape { display: inline-block; width: 9px; height: 9px; flex: none; margin-right: 5px; vertical-align: 0; }
.shape-sq { background: var(--brand); }
.shape-tri { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--point); background: none; }
.shape-ci { border-radius: 50%; background: #4f7a62; }
/* 머리줄 범위 칩(하위 관리자만) */
.scope-chip { display: inline-flex; align-items: center; gap: 2px; background: var(--point-weak); border: 1px solid var(--point-line); color: var(--brand); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.scope-empty { margin: 12px 0; }
/* 역할 카드 상위·하위 표시, 사업관리자에게 막힌 카드 */
.tier { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.tier-up { background: var(--brand-weak); color: var(--brand); }
.tier-low { background: var(--ok-weak); color: var(--ok); }
.check-card.is-disabled { opacity: .5; cursor: not-allowed; }
/* 범위 트리(11/17 행정 계층, 목업 scope_tree_v2): 조직 전체 → 읍·면·동 묶음 제목 → 읍면동(▸/▾) → 기관. 세로 목록·들여쓰기 */
.scope-box { margin-top: 16px; }
.scope-tree { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px 0; }
.scope-tree .cnt { margin-left: auto; padding-left: 10px; font-weight: 500; color: var(--ink-3); font-size: 12px; white-space: nowrap; flex: none; }
.scope-all { display: flex; align-items: center; gap: 6px; padding: 7px 14px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 15px; }
.scope-all b { font-weight: 800; }
.scope-lv1 { margin-left: 24px; border-left: 2px solid var(--line); }
.scope-grp { display: flex; align-items: center; gap: 0; padding: 10px 14px 2px 40px; font-size: 12px; font-weight: 800; color: var(--ink-3); }
.scope-area.is-open .scope-arow, .scope-area:has([data-scope-area]:checked) .scope-arow { background: var(--surface-2); }
.scope-arow { display: flex; align-items: center; gap: 4px; padding: 0 14px 0 12px; }
.scope-tog { width: 20px; height: 28px; flex: none; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 0; font-size: 12px; line-height: 1; }
.scope-tog::before { content: "\25B8"; }
.scope-tog[aria-expanded="true"]::before { content: "\25BE"; }
.scope-tog.is-empty { cursor: default; }
.scope-tog.is-empty::before { content: ""; }
.scope-an { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; padding: 7px 0; font-weight: 700; }
.scope-facs { padding: 0 0 4px; }
.scope-fac { display: flex; align-items: center; gap: 6px; padding: 6px 14px 6px 56px; font-size: 13px; color: var(--ink-2); }
.scope-name { min-width: 0; overflow-wrap: anywhere; }
.scope-tree label.is-locked { opacity: .6; }
.scope-tree input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); flex: none; margin: 0 4px 0 0; }
.scope-picked { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.scope-picked .pill { background: var(--surface-3); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.scope-box .banner { margin-top: 10px; }
.scope-upper { margin-top: 12px; }
.scope-cell { display: inline-flex; align-items: center; }
@media (max-width: 600px) {
  .scope-lv1 { margin-left: 10px; }
  .scope-grp { padding-left: 34px; }
  .scope-arow { padding: 0 10px 0 6px; }
  .scope-fac { padding: 6px 10px 6px 46px; }
  .scope-tree .cnt { font-size: 11px; padding-left: 6px; }
}
/* 「!」 창 코드북 연번(상위 관리자만) */
.xp-ids { margin-top: 2px; }
.xp-id-row { font-size: 12px; color: var(--ink-2); margin: 2px 0; }
.xp-id { display: inline-block; background: #e3eefa; color: #0d4a85; border: 1px solid #b8d0ea; border-radius: 4px; padding: 0 5px; font-size: 11px; font-weight: 800; margin-right: 5px; }
.xp-id-row code { background: var(--surface-3); border-radius: 4px; padding: 0 4px; font-size: 12px; word-break: break-all; }
.xp-id-at { color: #5d6b7a; }
.xp-method { margin-top: 10px; background: none; border: 0; padding: 0; color: var(--point); font-weight: 700; font-size: 13px; text-decoration: underline; cursor: pointer; }
/* 설문 상태 표식(6단계): 예정 ○ · 진행 중 ◐ · 마감 ● — 첫 화면 2차 상태·거르기, 설문 진행 현황 */
.st-mark { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.6px solid currentColor; margin-right: 5px; vertical-align: -1px; flex: none; }
.st-mark.st-on { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.st-mark.st-done { background: currentColor; }
.dh-st i { width: 10px; height: 10px; }
.dh-st.st-on i { background: linear-gradient(90deg, var(--dh-on-dot) 50%, transparent 50%); box-shadow: inset 0 0 0 1.6px var(--dh-on-dot), 0 0 0 3px var(--dh-on-glow); }
/* 범주 아이콘(6단계): 유입 경로 선 아이콘 · 연령대 생애 단계 칸(A안) — 글자 앞 작게, 단색 */
.cat-ico { width: 15px; height: 15px; flex: none; color: var(--brand); margin-right: 5px; vertical-align: -3px; }
.age-pips { display: inline-flex; gap: 2px; margin-right: 6px; vertical-align: -1px; flex: none; }
.age-pips i { width: 4px; height: 10px; border-radius: 1px; background: #d1d5db; }
.age-pips i.on { background: var(--brand); }
/* 좁은 화면: 범위 칩이 있으면 로고 글자를 숨겨 칩 자리를 만든다(로고 그림은 그대로) */
@media (max-width: 600px) {
  .app-top:has(.scope-chip) .app-brand b { display: none; }
  .scope-chip { max-width: 52vw; }
}

/* ─── 프로그램 운영 현황 지역별 보기(v0.9.20b, 목업 summary_region_v2) ───
   시 → 읍·면·동 → 기관 → 강좌가 한 격자(열 위치 같음). 읍 남색 · 면 청록 · 동 녹색(범주 도형 .shape와 같은 색) */
.rg { --rg-eup: var(--brand); --rg-myeon: var(--point); --rg-dong: #4f7a62; margin-top: 4px; }
.rg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 96px 170px 290px; column-gap: 20px; align-items: center; }
.rg-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.rg-legend .rg-tag { margin: 0; }
.rg-legend .st-mark { margin: 0 3px 0 0; color: var(--brand); }
.rg-colhead { margin-top: 14px; padding: 8px 16px; font-size: 12px; font-weight: 700; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.rg-colhead span:nth-child(2), .rg-colhead span:nth-child(3) { text-align: right; }
.rg-tag { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 800; margin-right: 8px; flex: none; white-space: nowrap; }
.rg-tag.t-si { background: #fff; color: var(--brand); }
.rg-tag.t-eup { background: var(--rg-eup, var(--brand)); color: #fff; }
.rg-tag.t-myeon { background: var(--rg-myeon, var(--point)); color: #fff; }
.rg-tag.t-dong { background: var(--rg-dong, #4f7a62); color: #fff; }
.rg-tag.t-org { background: #fff; color: var(--ink-2); border: 1px solid #cfd6dd; }
.rg-legend .t-eup { background: var(--brand); } .rg-legend .t-myeon { background: var(--point); } .rg-legend .t-dong { background: #4f7a62; }
.rg-nm { display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; min-width: 0; }
.rg-nm b { min-width: 0; overflow-wrap: anywhere; }
.rg-meta { margin-left: 10px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.rg-num { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.rg-num.rg-l { text-align: left; }
.rg-num small, .rg-r small, .rg-bar small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.rg-r small, .rg-bar small { display: none; }
.rg-si { margin-top: 10px; padding: 12px 16px; border-radius: 12px; background: var(--brand); color: #fff; }
.rg-si .rg-nm b { font-size: 17px; font-weight: 800; }
.rg-si .rg-meta { color: #fff; opacity: .85; font-size: 13px; }
.rg-si .rg-num { font-size: 15px; }
.rg-si .rg-num small { color: #fff; opacity: .75; }
.rg-area { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.rg-arow { padding: 12px 16px; border-left: 5px solid var(--rg-eup); background: #f7f9fb; }
.rg-area.is-myeon .rg-arow { border-left-color: var(--rg-myeon); }
.rg-area.is-dong .rg-arow { border-left-color: var(--rg-dong); }
.rg-arow .rg-nm b { font-size: 16px; font-weight: 800; }
.rg-org { position: relative; padding: 9px 16px 9px 40px; border-top: 1px solid var(--line); }
.rg-org::before { content: ""; position: absolute; left: 24px; top: 0; bottom: 50%; width: 10px; border-left: 2px solid #d5dde4; border-bottom: 2px solid #d5dde4; border-bottom-left-radius: 6px; }
.rg-org .rg-nm b { font-size: 14px; font-weight: 700; }
.rg-org .rg-meta { font-size: 12px; margin-left: 8px; }
.rg-course { position: relative; padding: 10px 16px 10px 76px; border-top: 1px solid #f0f2f4; }
.rg-course::before { content: ""; position: absolute; left: 52px; top: 0; bottom: 0; border-left: 2px solid #e3e8ed; }
.rg-course .rg-nm { gap: 6px; }
.rg-course .rg-nm b { font-weight: 700; margin-right: 2px; }
.rg-chip { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 8px; background: var(--surface-3, #f3f4f6); color: var(--ink-2); white-space: nowrap; }
.rg-chip.is-br { background: #e3eef8; color: var(--brand); }
.rg-chip.is-gen { color: var(--ink-3); }
.rg-r { text-align: right; }
.rg-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-variant-numeric: tabular-nums; }
.rg-bar i { position: relative; display: block; width: 70px; height: 6px; border-radius: 3px; background: #e5e7eb; overflow: hidden; flex: none; }
.rg-bar i b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--brand); }
.rg-st { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; color: var(--ink-2); }
.rg-st .st-mark { margin: 0; color: var(--brand); }
.rg-badge { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.rg-badge.is-wait { background: #e3eef8; color: var(--brand); }
.rg-badge.is-on { background: var(--warn-weak); color: var(--warn); border: 1px solid var(--warn-line); }
.rg-badge.is-done { background: var(--surface-3, #f3f4f6); color: var(--ink-2); }
.rg-when { white-space: nowrap; }
.rg-none { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 14px; padding: 10px 16px; border: 1px dashed #cfd6dd; border-radius: 12px; font-size: 13px; color: var(--ink-3); }
.rg-none b { color: var(--ink-2); }
.rg-none span { display: inline-flex; align-items: center; white-space: nowrap; }
/* 장르 층(v0.9.21 A안, 목업 notes_genre_v1 탭 2): 기관 → 장르 → 강좌. 장르 강좌 1개면 「장르 · 강좌」 한 줄(.rg-one),
   2개 이상이면 장르 합계 줄(.rg-genre, ▾ 접기) + 한 칸 더 들인 강좌 줄(.rg-in). */
.rg-tag.t-gen { background: #f3e8d3; color: #7a5a1e; }
.rg-legend .t-gen { background: #f3e8d3; }
.rg-genre { position: relative; padding: 10px 16px 10px 76px; border-top: 1px solid #f0f2f4; }
.rg-genre::before { content: ""; position: absolute; left: 52px; top: 0; bottom: 0; border-left: 2px solid #e3e8ed; }
.rg-genre .rg-nm b { font-weight: 700; }
.rg-genre .rg-meta { font-size: 12px; margin-left: 8px; }
.rg-tg { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 0 6px 0 0; font: inherit; line-height: 1; transition: transform .15s; }
.rg-tg[aria-expanded="false"] { transform: rotate(-90deg); }
.rg-gl { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.rg-sep { color: #9ca3af; margin: 0 2px; }
.rg-course.rg-in { padding-left: 108px; }
.rg-course.rg-in::before { left: 84px; }
.rg-course.rg-in .rg-cn, .rg-course.rg-one .rg-cn { color: var(--ink-2); }
@media (max-width: 900px) {
  .rg-colhead { display: none; }
  .rg-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; row-gap: 6px; }
  .rg-grid > .rg-nm { grid-column: 1 / -1; }
  .rg-si > div:empty, .rg-arow > div:empty { display: none; }
  .rg-num, .rg-num.rg-l { text-align: left; }
  .rg-nm .rg-meta { flex-basis: 100%; margin-left: 0; }
  .rg-org { padding-left: 28px; }
  .rg-org::before { left: 14px; }
  .rg-course { padding-left: 40px; }
  .rg-course::before { left: 24px; }
  .rg-r, .rg-bar { text-align: left; justify-content: flex-start; }
  .rg-r small, .rg-bar small { display: inline; margin-right: 6px; flex: none; white-space: nowrap; }
  .rg-bar { gap: 6px; flex-wrap: wrap; min-width: 0; }
  .rg-bar .du-hide { white-space: normal; min-width: 0; }
  .rg-bar i { width: 56px; }
  .rg-bar > span { white-space: nowrap; }
  .rg-course .rg-st { grid-column: 1 / -1; }
  .rg-genre > div:empty { display: none; }
  .rg-genre { padding-left: 40px; }
  .rg-genre::before { left: 24px; }
  .rg-course.rg-in { padding-left: 60px; }
  .rg-course.rg-in::before { left: 44px; }
}


/* ───────── v0.9.23 강좌 앞 행정 위계(시군 · 읍면동 · 기관 → 강좌) ─────────
   목업 docs/mockups/progress_hierarchy_v1.html(B안 행마다 표시) · hierarchy_targets_v1.html.
   대상 표(.uh-table)는 열 폭을 고정하지 않는다 — 칸 글자는 줄바꿈하지 않고 표가 넓어지며 감싼 상자(.tblwrap 등)가
   가로로 민다. 전역 .du-table{table-layout:fixed}는 그대로 두고 .uh-table에서만 auto로 바꾼다(다른 표 영향 없음). */
:root { --uh-dim: #646f7b; }  /* 위 줄과 같은 값: 흰 바탕 5.1:1 · 첫 화면 명화 위 유리 판 3.3:1 이상(화면 픽셀 측정), 진한 글자와 3.4:1 차이 */
.uh-table, .area-glass .panel .du-table.uh-table { table-layout: auto; }
.uh-table.uh-table :is(th, td):nth-child(n) { width: auto; }
.uh-table th, .uh-table td { white-space: nowrap; }
.uh-table td .cell-sub, .uh-table td details form { white-space: normal; }
.uh-table td.uh-c { color: var(--dg-ink, var(--ink)); }
.uh-table td.uh-c.dim { color: var(--uh-dim); }
.uh-table td.uh-c .shape { vertical-align: 0; }
.uh-table td.uh-name b { overflow: visible; text-overflow: clip; max-width: none; }
.uh-table .du-course, .uh-table .du-course-n { min-width: max-content; }
/* v0.9.23a: 위계 열이 늘어난 만큼 막대·칸 여백을 줄여 설문 진행 현황 표가 1440 폭에 들어가게(운영 확인 — 45px 넘침) */
.uh-table .du-meter > span, .uh-table .du-meter.md > span { flex-basis: 96px; width: 96px; min-width: 72px; }
.uh-table .du-meter.sm > span { flex-basis: 72px; width: 72px; min-width: 60px; }
.uh-table .dh-rate > span { max-width: 110px; min-width: 72px; }
.area-glass .panel .du-table.uh-table td, .area-glass .panel .du-table.uh-table thead th { padding-left: 12px; padding-right: 12px; }
.area-glass .panel .tblwrap .du-table.uh-table :is(th, td):first-child { padding-left: var(--cx, 24px); }
.area-glass .panel .tblwrap .du-table.uh-table :is(th, td):last-child { padding-right: var(--cx, 24px); }
.uh-table .du-when-d > span { white-space: nowrap; }
.uh-table td.qa-note { white-space: normal; min-width: 260px; }
.dh-tbl.uh-table td.uh-name b { display: inline; font-weight: 600; color: var(--dg-ink); }

/* 경로 줄: 시군 › 읍면동 › 기관[ › 강좌] */
.uh-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.uh-path > span { white-space: nowrap; }
.uh-path .uh-sep { color: var(--uh-dim); }
.uh-path .uh-course { font-weight: 700; color: var(--dg-ink, var(--ink)); white-space: nowrap; }
.uh-mpath { display: none; }

/* 운영 품질 강사 기록과 시민 응답: 경로 줄 제목 아래 기관별 강좌 단추 */
.qa-picks:has(.uh-path) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 8px; }
.qa-picks .qa-pgrp { border-radius: 14px; padding: 8px 10px; }
.qa-picks .qa-pgrp { align-content: flex-start; }
.qa-picks .qa-pgrp > .uh-path.qa-pgt { flex-basis: 100%; padding: 0 2px 2px; font-size: 13px; white-space: normal; }
.qa-picks .qa-pgrp > .uh-path.qa-pgt > span { white-space: normal; overflow-wrap: anywhere; }
.qa-course p .uh-path { margin-right: 8px; color: var(--dg-ink-3); }
.qa-course p .uh-path + .du-kind { margin-right: 4px; }

/* 사전·사후 변화 Bridge · 일반 비교: 경로 줄 + 비교 문구 두 줄 */
.dc-where { display: grid; gap: 2px; }
.dc-where .uh-path { font-size: 14px; color: var(--dg-ink-3); }

/* 참여자 강좌 줄 · 관리 강좌 카드 경로 줄 */
.course-line .uh-path { gap: 2px 6px; }
.course-line .uh-path .uh-course { font-size: 16px; color: var(--ink); }
.adm-pcard .uh-path.pc-path { display: flex; margin-bottom: 4px; font-size: 13px; color: var(--ink-3); min-width: 0; }
.adm-pcard .uh-path.pc-path > span { white-space: normal; overflow-wrap: anywhere; min-width: 0; }  /* 좁은 카드: 긴 기관 이름은 카드 안에서 줄바꿈 */
/* 관리 강좌 목록(좁은 화면): 이전 「강좌 칸(첫 칸) 최소 폭 200」을 강좌 칸으로 옮김 — 첫 칸은 이제 시군 */
@media (max-width: 760px) {
  :is(.ctx-admin, .area-admin) .program-list-view .adm-table.uh-table td:first-child{ min-width: 0; }
  :is(.ctx-admin, .area-admin) .program-list-view .adm-table.uh-table td.uh-name{ min-width: 200px; }
}

/* 좁은 화면 카드형 표(대시보드 m-cardtable · 관리 .tbl): 위계 칸 대신 카드 위 경로 줄 */
@media (max-width: 768px) {
  .m-cardtable.uh-table td.uh-c,
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .uh-table td.uh-c { display: none; }
  .m-cardtable.uh-table .uh-mpath,
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .uh-table .uh-mpath { display: flex; margin-bottom: 4px; font-size: 12.5px; font-weight: 500; color: var(--dg-ink-4, var(--ink-3)); white-space: normal; }
  .m-cardtable.uh-table td.uh-name { display: block; text-align: left; font-weight: 600; padding-bottom: 6px; white-space: normal; }
  .m-cardtable.uh-table td.uh-name .du-course, .m-cardtable.uh-table td.uh-name .du-course-n { min-width: 0; }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .uh-table td.uh-name { display: block; text-align: left; white-space: normal; }
  .m-cardtable.uh-table td.qa-note { min-width: 0; }
  .uh-mpath > span { white-space: normal; overflow-wrap: anywhere; }
  /* 사후 연결 대기 카드: 연결 대상 선택 상자가 가장 긴 선택지 폭으로 카드를 밀어 화면 밖으로 나가지 않게 */
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .uh-table,
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .uh-table tbody { display: block; width: 100%; }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .uh-table td .form-inline { min-width: 0; max-width: 100%; }
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .uh-table td select { min-width: 0; max-width: 100%; }
}

/* ───────── v0.9.23b 위계 글자색 · 1440 폭 맞춤 ─────────
   기본 글자(시군 · 읍면동 · 기관 칸, 경로 줄) = 강좌 이름과 같은 진한 글자색 · 보통 굵기(대시보드 --dg-ink, 관리 --ink).
   흐림(바로 위 줄과 같은 값) = 바탕 대비 3:1 이상 4.5:1 미만 — 흰 판(관리)과 명화 위 유리 판(대시보드) 바탕이 달라 색을 따로 둠.
   화면 픽셀 측정(1440): 관리 흰 판 #78838f 3.9:1 · 대시보드 유리 판 #626d79 약 3.2~4.3:1, 기본 글자 7:1 이상. */
:root { --uh-ink: var(--ink); --uh-dim: #78838f; }
.area-glass { --uh-ink: var(--dg-ink); --uh-dim: #626d79; }
.area-glass .panel .uh-table td.uh-c, .uh-table td.uh-c { color: var(--uh-ink); font-weight: 400; }
.area-glass .panel .uh-table td.uh-c.dim, .uh-table td.uh-c.dim { color: var(--uh-dim); }
.uh-path, .uh-path > span:not(.uh-course, .uh-sep),
.qa-course p .uh-path, .dc-where .uh-path, .course-line .uh-path,
.adm-pcard .uh-path.pc-path, .qa-picks .qa-pgrp > .uh-path.qa-pgt { color: var(--uh-ink); font-weight: 400; }
.uh-path .uh-sep { color: var(--uh-dim); }
@media (max-width: 768px) {
  .m-cardtable.uh-table .uh-mpath,
  :is(.ctx-admin, .area-admin) .tbl:not(.keep-table) .uh-table .uh-mpath { color: var(--uh-ink); font-weight: 400; }
}

/* 기관 칸만 최대 두 줄(띄어쓰기에서만 줄바꿈). 표 칸 max-width는 자동 폭 표에서 듣지 않아 칸 안 글자 상자에 최대 폭을 준다.
   7.5em = 「옥곡면 주민자치센터」(약 8em)는 두 줄, 「가나 주민자치센터 다목적 강당 별관」(약 14em)도 두 줄. 글자는 자르지 않음.
   width:max-content — 표가 좁을 때 자동 폭 표가 기관 칸만 낱말 하나 폭까지 줄여 3~4줄이 되지 않게(글자 상자 폭 고정). */
.uh-table td.uh-fac > span { display: inline-block; width: max-content; max-width: 7.5em; white-space: normal; word-break: keep-all; overflow-wrap: normal; vertical-align: middle; }

/* 열이 많은 위계 표(운영 품질 강좌별 출석 · 관리 화면 표): 1440 폭에 들어가게 칸 좌우 여백 8px, 관리 표 글자 15px(강좌 목록과 같게),
   운영 품질 출석률 막대 64px(숫자는 그대로).
   관리 표 첫 칸 왼쪽 · 끝 칸 오른쪽 여백은 그대로(판 안쪽 선 맞춤). */
@media (min-width: 769px) {
  .area-glass .panel .du-table.du-attend.uh-table td, .area-glass .panel .du-table.du-attend.uh-table thead th { padding-left: 8px; padding-right: 8px; }
  .uh-table.du-attend .du-meter > span, .uh-table.du-attend .du-meter.md > span { flex-basis: 64px; width: 64px; min-width: 56px; }
  :is(.ctx-admin, .area-admin) :is(.tbl, .tblwrap) .uh-table :is(th, td):not(:first-child) { padding-left: 8px; }
  :is(.ctx-admin, .area-admin) :is(.tbl, .tblwrap) .uh-table :is(th, td):not(:last-child) { padding-right: 8px; }
  :is(.ctx-admin, .area-admin) :is(.tbl, .tblwrap) .uh-table td { font-size: 15px; }
}
