:root {
  --ink: #152322;
  --muted: #667371;
  --line: #d9e0de;
  --soft: #f2f5f4;
  --paper: #ffffff;
  --canvas: #eef2f1;
  --green: #176b52;
  --green-soft: #e3f1eb;
  --red: #a43d45;
  --red-soft: #f8e8e8;
  --amber: #8a5a13;
  --amber-soft: #f7edda;
  --blue: #315d8a;
  --blue-soft: #e7eef6;
  --shadow: 0 12px 40px rgba(21, 35, 34, 0.08);
  font-family: Inter, Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-width: 320px; font-size: 14px; letter-spacing: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
.hidden { display: none !important; }

.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(120deg, #e9efed 0 52%, #dfe9e5 52% 100%);
}
.auth-panel {
  width: min(420px, 100%);
  padding: 42px;
  background: var(--paper);
  border: 1px solid rgba(21, 35, 34, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--green);
  color: white;
  font-weight: 800;
  font-size: 18px;
}
.brand-mark.small { width: 38px; height: 38px; font-size: 13px; }
.eyebrow { margin: 22px 0 5px; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.auth-panel h1 { margin: 0 0 26px; font-size: 30px; }
.auth-note { color: var(--muted); margin: -14px 0 24px; }
.stack-form { display: grid; gap: 18px; }
.stack-form label, .edit-fields label, .comment-field { display: grid; gap: 7px; color: #3c4b49; font-size: 12px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd5d2;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  outline: none;
}
input, select { height: 40px; padding: 0 11px; }
textarea { padding: 10px 11px; resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 107, 82, 0.12); }
.form-error { min-height: 18px; margin: -4px 0 0; color: var(--red); font-size: 12px; }

.button { min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 5px; font-weight: 750; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: #105a44; }
.button.secondary { border-color: var(--line); background: white; color: var(--ink); }
.button.withdraw { margin-top: 8px; border-color: #d7b2b5; background: white; color: var(--red); }
.button.withdraw:hover { background: var(--red-soft); }
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.wide { width: 100%; }
.text-button { padding: 3px; border: 0; background: transparent; color: var(--green); font-size: 12px; font-weight: 750; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 5px; background: white; font-size: 19px; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 330px minmax(460px, 1fr) 328px;
  grid-template-rows: 64px calc(100vh - 64px);
  grid-template-areas: "top top top top" "filter list detail review";
  overflow: hidden;
}
.topbar {
  grid-area: top;
  display: grid;
  grid-template-columns: 260px auto minmax(240px, 520px) 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: white;
  z-index: 5;
}
.brand-lockup, .account-box { display: flex; align-items: center; gap: 11px; }
.brand-lockup div:last-child, .account-box div { display: grid; gap: 2px; }
.brand-lockup span, .account-box span { color: var(--muted); font-size: 11px; }
.workspace-tabs { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 5px; background: var(--soft); }
.workspace-tab { min-height: 31px; padding: 0 12px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; }
.workspace-tab.active { background: white; color: var(--green); box-shadow: 0 1px 3px rgba(21,35,34,.12); }
.search-box { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); }
.search-box input { height: auto; padding: 0; border: 0; background: transparent; box-shadow: none; }
.account-box { justify-self: end; }
.account-box div { text-align: right; }

.filters-panel, .list-panel, .question-panel, .review-panel { min-height: 0; overflow-y: auto; }
.filters-panel { grid-area: filter; padding: 22px 18px; border-right: 1px solid var(--line); background: #f7f9f8; }
.list-panel { grid-area: list; border-right: 1px solid var(--line); background: white; }
.question-panel { grid-area: detail; background: white; }
.review-panel { grid-area: review; padding: 22px 20px 36px; border-left: 1px solid var(--line); background: #f7f9f8; }
.panel-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-heading h2, .section-heading h2, .content-section h2, .answer-section h2, .review-log h2 { margin: 0; font-size: 13px; }
.select-field { display: grid; gap: 7px; margin-top: 18px; color: var(--muted); font-size: 11px; font-weight: 750; }
.filter-section { margin-top: 25px; }
.field-label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 750; }
.state-filters { display: grid; gap: 5px; }
.state-filter { display: flex; justify-content: space-between; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; color: #44514f; text-align: left; }
.state-filter:hover, .state-filter.active { background: #e3ebe8; color: var(--green); font-weight: 750; }
.state-filter span:last-child { min-width: 26px; text-align: right; color: var(--muted); }
.mine-filter { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 8px; margin-top: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: white; color: #44514f; font-size: 11px; font-weight: 750; }
.mine-filter input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.mine-filter strong { color: var(--green); }
.progress-block { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; }
.progress-track { height: 7px; margin-top: 10px; overflow: hidden; border-radius: 4px; background: #dce4e1; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--green); transition: width 180ms ease; }
.progress-block p { color: var(--muted); font-size: 11px; }

.list-heading { position: sticky; top: 0; z-index: 2; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.96); }
.list-heading span { color: var(--muted); font-size: 12px; }
.question-list { min-height: 140px; }
.question-item { width: 100%; display: grid; gap: 8px; padding: 15px 16px; border: 0; border-bottom: 1px solid #e8edeb; background: white; color: inherit; text-align: left; }
.question-item:hover { background: #f6f9f8; }
.question-item.active { background: #e8f1ee; box-shadow: inset 3px 0 var(--green); }
.item-top, .item-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.item-top strong { font-size: 11px; color: var(--green); }
.item-question { margin: 0; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.55; font-size: 13px; }
.item-meta { color: var(--muted); font-size: 10px; }
.mini-state { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #aab5b2; }
.mini-state.approved, .mini-state.edited_approved { background: var(--green); }
.mini-state.rejected { background: var(--red); }
.mini-state.on_hold { background: var(--blue); }
.mini-state.conflict { background: var(--amber); }
#load-more { width: calc(100% - 28px); margin: 14px; }

.empty-state { min-height: 100%; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.empty-state h2 { font-size: 15px; font-weight: 600; }
.empty-symbol { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid #cbd5d2; border-radius: 50%; font-size: 22px; }
.question-detail { max-width: 860px; margin: 0 auto; padding: 32px clamp(28px, 4vw, 60px) 70px; }
.question-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.question-gid { margin: 0 0 9px; color: var(--green); font-size: 12px; font-weight: 800; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 7px; border-radius: 4px; background: var(--soft); color: #53605e; font-size: 10px; font-weight: 700; }
.status-badge { flex: 0 0 auto; padding: 6px 9px; border-radius: 4px; background: #e9edec; color: #53605e; font-size: 11px; font-weight: 800; }
.status-badge.approved, .status-badge.edited_approved { background: var(--green-soft); color: var(--green); }
.status-badge.rejected { background: var(--red-soft); color: var(--red); }
.status-badge.on_hold { background: var(--blue-soft); color: var(--blue); }
.status-badge.conflict { background: var(--amber-soft); color: var(--amber); }
.item-state { display: inline-flex; align-items: center; gap: 6px; }
.risk-count { white-space: nowrap; padding: 2px 5px; border-radius: 3px; background: var(--amber-soft); color: var(--amber); font-size: 9px; font-weight: 800; }
.screening-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.screening-section .section-heading { margin-bottom: 10px; }
.generation-label { color: var(--muted); font-size: 10px; }
.screening-list { display: grid; gap: 6px; }
.screening-list:empty { display: none; }
.screening-list + .screening-list:not(:empty) { margin-top: 6px; }
.screening-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 10px; border-left: 3px solid #c4a15e; background: #fbf7ee; font-size: 12px; line-height: 1.5; }
.screening-badge { color: var(--amber); font-size: 11px; }
.screening-row.flag-clinical_review { border-left-color: var(--red); background: var(--red-soft); }
.screening-row.flag-clinical_review .screening-badge { color: var(--red); }
.screening-row.flag-boundary { border-left-color: var(--blue); background: var(--blue-soft); }
.screening-row.flag-boundary .screening-badge { color: var(--blue); }
.screening-row.ai-precheck-row { border-left-color: var(--green); background: var(--green-soft); }
.screening-row.ai-precheck-row .screening-badge { color: var(--green); }
.content-section { padding: 28px 0 25px; }
.question-text { margin: 12px 0 22px; white-space: pre-wrap; font-size: 16px; line-height: 1.85; font-weight: 600; }
.option-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; counter-reset: option; }
.option-list li { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 10px; padding: 11px 12px; border: 1px solid #e0e6e4; border-radius: 5px; line-height: 1.6; }
.option-letter { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: #52605e; font-size: 11px; font-weight: 800; }
.option-list li.correct { border-color: #9bc3b5; background: #f0f8f5; }
.option-list li.correct .option-letter { background: var(--green); color: white; }
/* 칸이 둘(86px + 나머지)인데 자식이 셋이라, 세 번째인 해설이 86px 칸으로 밀려
   내려가 한 줄에 서너 글자씩 끊겼다. '의도한 정답' 안내문을 넣으면서 생긴 일이다.
   해설은 두 칸을 가로질러 놓는다. */
.answer-section { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 22px; padding: 23px; border-left: 3px solid var(--green); background: #f2f7f5; }
.answer-section > .answer-note { grid-column: 2; margin-top: 0; }
.answer-section > .answer-rationale { grid-column: 1 / -1; min-width: 0; }
.answer-key { display: grid; align-content: start; gap: 6px; color: var(--muted); font-size: 11px; }
.answer-key strong { color: var(--green); font-size: 27px; }
.rationale { margin: 10px 0 0; white-space: pre-wrap; line-height: 1.75; }
.source-details { margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.source-details summary { padding: 15px 0; cursor: pointer; font-weight: 750; }
.source-details dl { display: grid; gap: 11px; margin: 0 0 18px; }
.source-details dl div { display: grid; grid-template-columns: 74px 1fr; gap: 12px; }
.source-details dt { color: var(--muted); font-size: 11px; font-weight: 750; }
.source-details dd { margin: 0; line-height: 1.55; }
.excluded-list { display: grid; gap: 6px; margin-bottom: 18px; }
.excluded-item { padding: 9px 10px; border-radius: 4px; background: var(--soft); line-height: 1.5; font-size: 12px; }
.excluded-item strong { color: var(--red); }
.history-section { margin-top: 30px; }
.history-list { display: grid; gap: 10px; margin-top: 12px; }
.history-card { padding: 12px; border: 1px solid var(--line); border-radius: 5px; }
.history-card header { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.history-card details { margin-top: 9px; }
.diff-grid { display: grid; gap: 5px; margin-top: 8px; }
.diff-row { display: grid; grid-template-columns: 80px 1fr; gap: 8px; padding: 7px; background: var(--soft); font-size: 11px; white-space: pre-wrap; }

.review-empty { min-height: 70vh; display: grid; place-content: center; color: var(--muted); text-align: center; line-height: 1.6; }
.review-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 17px; }
.review-heading .eyebrow { margin: 0 0 4px; }
.review-heading h2 { margin: 0; font-size: 20px; }
.review-heading > span { color: var(--muted); font-size: 10px; }
.admin-view-mode { display: flex; gap: 7px; align-items: flex-start; margin-bottom: 10px; color: #3c4b49; font-size: 11px; font-weight: 750; }
.admin-view-mode input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; padding: 0; accent-color: var(--green); }
.admin-view-mode span { flex: 1 1 auto; min-width: 0; line-height: 1.5; }
.practice-banner { display: grid; gap: 5px; margin-bottom: 13px; padding: 10px; border: 1px dashed #c99a4a; border-radius: 5px; background: var(--amber-soft); color: var(--amber); font-size: 11px; }
.practice-banner select { margin: 0 3px; font-size: 11px; }
.practice-banner .text-button { justify-self: start; color: var(--amber); }
.conflict-banner { display: grid; gap: 3px; margin-bottom: 13px; padding: 10px; border: 1px solid #dfc08c; border-radius: 5px; background: var(--amber-soft); color: var(--amber); font-size: 11px; }
.decision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.decision-button { min-height: 58px; display: grid; place-items: center; gap: 2px; padding: 7px 3px; border: 1px solid var(--line); border-radius: 5px; background: white; color: #465350; font-size: 11px; font-weight: 800; }
.decision-button span { font-size: 17px; }
.decision-button.approve.active { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.decision-button.reject.active { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.decision-button.edit.active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.decision-button.hold.active { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.review-fields, .edit-fields { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.reason-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.reason-option { min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 11px; line-height: 1.35; }
.reason-option input { width: 15px; height: 15px; flex: 0 0 15px; margin: 0; accent-color: var(--red); }
.edit-fields { display: grid; gap: 13px; }
.edit-options { display: grid; gap: 8px; }
.edit-option { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 6px; }
.edit-option span { padding-top: 10px; color: var(--muted); font-size: 11px; font-weight: 800; }
.comment-field { margin-top: 18px; }
.draft-status { min-height: 16px; margin: 8px 0 0; color: var(--green); font-size: 10px; text-align: right; }
.review-actions { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 7px; }
.review-actions .button { width: 100%; }
.review-log { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.review-log h2 { margin-bottom: 11px; }
.review-record { padding: 10px 0; border-bottom: 1px solid var(--line); }
.review-record.stale { opacity: 0.58; }
.review-record header { display: flex; justify-content: space-between; gap: 7px; font-size: 11px; }
.review-record p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.review-record .record-decision { font-weight: 800; }

.admin-panel { grid-column: 1 / -1; grid-row: 2; min-height: 0; overflow-y: auto; padding: 34px clamp(24px, 4vw, 64px) 70px; background: #f7f9f8; }
.admin-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; max-width: 1500px; margin: 0 auto; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-header .eyebrow, .dialog-heading .eyebrow { margin-top: 0; }
.admin-header h1 { margin: 0; font-size: 25px; }
.admin-header p:last-child, .admin-section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.admin-summary { max-width: 1500px; display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); margin: 24px auto 0; border: 1px solid var(--line); background: white; }
.summary-metric { min-height: 102px; display: grid; align-content: center; gap: 7px; padding: 18px 20px; border-right: 1px solid var(--line); box-shadow: inset 0 3px #9ba8a5; }
.summary-metric:last-child { border-right: 0; }
.summary-metric span { color: var(--muted); font-size: 11px; font-weight: 750; }
.summary-metric strong { font-size: 25px; }
.summary-metric small { color: var(--green); font-size: 10px; font-weight: 750; }
.summary-metric.completed { box-shadow: inset 0 3px var(--green); }
.summary-metric.unreviewed { box-shadow: inset 0 3px #82908d; }
.summary-metric.on_hold { box-shadow: inset 0 3px var(--blue); }
.summary-metric.conflict { box-shadow: inset 0 3px var(--amber); }
.admin-section { max-width: 1500px; margin: 34px auto 0; }
.admin-section-heading { min-height: 46px; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 12px; }
.admin-section-heading h2 { margin: 0; font-size: 16px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: white; }
.admin-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.admin-table th, .admin-table td { height: 49px; padding: 9px 13px; border-bottom: 1px solid #e7ecea; text-align: left; vertical-align: middle; font-size: 11px; }
.admin-table thead th { height: 39px; background: var(--soft); color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.admin-table tbody tr:last-child > * { border-bottom: 0; }
.admin-table tbody tr:hover > * { background: #fafcfb; }
.admin-table tbody th { font-weight: 750; }
.admin-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .strong-number { color: var(--green); font-weight: 800; }
.identity-cell { min-width: 205px; }
.identity-cell strong, .identity-cell span { display: block; }
.identity-cell span { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.date-cell { min-width: 145px; color: var(--muted); white-space: nowrap; }
.inactive-row { opacity: .57; }
.table-progress { min-width: 145px; display: grid; grid-template-columns: minmax(80px, 1fr) 38px; align-items: center; gap: 8px; }
.table-progress-track { height: 6px; overflow: hidden; border-radius: 3px; background: #dce4e1; }
.table-progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.table-progress strong { color: var(--green); font-size: 10px; text-align: right; }
.table-empty { height: 100px !important; color: var(--muted); text-align: center !important; }
.account-status { display: inline-block; padding: 4px 7px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; white-space: nowrap; }
.account-status.pending { background: var(--amber-soft); color: var(--amber); }
.account-status.inactive { background: #eaedec; color: #596663; }
.account-actions { min-width: 230px; text-align: right !important; white-space: nowrap; }
.account-actions .button + .button { margin-left: 6px; }
.button.compact { min-height: 31px; padding: 0 10px; font-size: 10px; }
.button.danger-outline { border-color: #d9b3b7; background: white; color: var(--red); }
.button.danger-outline:hover { background: var(--red-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.admin-dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); box-shadow: 0 22px 65px rgba(21,35,34,.22); }
.admin-dialog::backdrop { background: rgba(21,35,34,.42); }
.dialog-form { display: grid; gap: 15px; padding: 25px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 0; font-size: 20px; }
.dialog-form > label { display: grid; gap: 7px; color: #3c4b49; font-size: 11px; font-weight: 750; }
.dialog-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.dialog-account { margin: 0; padding: 10px 11px; border-left: 3px solid var(--green); background: var(--green-soft); font-size: 12px; font-weight: 750; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 7px; padding-top: 5px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translateX(-50%); padding: 11px 16px; border-radius: 5px; background: #172624; color: white; box-shadow: var(--shadow); }

@media (max-width: 1450px) {
  .app-shell { grid-template-columns: 195px 300px minmax(420px, 1fr) 300px; }
  .topbar { grid-template-columns: 230px auto minmax(220px, 420px) 1fr; gap: 18px; }
  .question-detail { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 190px 290px minmax(400px, 1fr); grid-template-areas: "top top top" "filter list detail"; }
  .review-panel { position: fixed; top: 64px; right: 0; bottom: 0; width: min(360px, 92vw); z-index: 8; box-shadow: -12px 0 32px rgba(21,35,34,.13); }
  .question-detail { padding-right: 380px; max-width: 1180px; }
}
@media (max-width: 900px) {
  .app-shell { display: block; min-height: 100vh; overflow: auto; }
  .topbar { position: sticky; top: 0; grid-template-columns: 1fr auto; gap: 10px; height: auto; min-height: 64px; padding: 10px 14px; }
  .workspace-tabs { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .search-box { grid-column: 1 / -1; grid-row: 3; }
  .filters-panel { overflow: visible; padding: 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .filters-panel .panel-heading, .filters-panel .select-field, .filters-panel .progress-block, .filters-panel .mine-filter { display: none; }
  .filter-section { margin: 0; }
  .state-filters { display: flex; overflow-x: auto; }
  .state-filter { flex: 0 0 auto; }
  .list-panel { max-height: 310px; overflow-y: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .question-panel { overflow: visible; }
  .question-detail { padding: 24px 18px 38px; }
  .review-panel { position: static; width: 100%; height: auto; padding: 20px 17px 38px; border-top: 1px solid var(--line); border-left: 0; box-shadow: none; overflow: visible; }
  .review-empty { min-height: 80px; }
  .admin-panel { overflow: visible; padding: 24px 16px 48px; }
  .admin-summary { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .summary-metric { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .auth-panel { padding: 28px 22px; }
  .brand-lockup span, .account-box span { display: none; }
  .brand-lockup strong { font-size: 12px; }
  .account-box strong { font-size: 11px; }
  .answer-section { grid-template-columns: 55px 1fr; padding: 17px; }
  .screening-row { grid-template-columns: 1fr; gap: 3px; }
  .question-header { display: grid; }
  .reason-list { grid-template-columns: 1fr; }
  .admin-header, .admin-section-heading { display: grid; }
  .admin-header .button, .admin-section-heading .button { justify-self: start; }
  .admin-summary { grid-template-columns: 1fr; }
  .summary-metric { min-height: 84px; border-right: 0; }
}

/* ── 검수 편의 개선 (2026-09-13) ── */
.back-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff4d6;
  border: 1px solid #e6c766;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.back-bar span { font-size: .85rem; color: #6b5a20; }
.button.back {
  background: #b8860b;
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.button.back:hover { background: #9a7009; }
.screening-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: underline;
  cursor: pointer;
}
.screening-link:hover { color: #1e3a8a; }
.decision-hint {
  margin: 10px 0 4px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f4f6fa;
  border: 1px solid #dfe4ec;
  font-size: .82rem;
  line-height: 1.5;
  color: #45506b;
  min-height: 2.6em;
}

/* ── 결함 카탈로그 · 출처 구분 (2026-09-13) ── */
.defect-grid { display: grid; gap: 2px; }
.defect-layer {
  margin: 10px 0 2px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #7b8496;
  text-transform: none;
}
.defect-layer:first-child { margin-top: 0; }
#defect-fields .field-label em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-weight: 400;
  font-size: .74rem;
  color: #8a93a6;
}
.suggest-note {
  margin: 6px 0 0;
  font-size: .78rem;
  color: #1d4ed8;
  min-height: 1.2em;
}
.decision-button.suggested {
  outline: 2px solid #1d4ed8;
  outline-offset: 1px;
}
.round-chip {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef1f7;
  color: #57607a;
  font-size: .68rem;
  font-weight: 700;
}

/* ── 검토 흐름 순서·가독성 (2026-09-13 개정) ── */
.step-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
  font-size: .82rem;
  font-weight: 700;
  color: #2b3448;
}
.step-label em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2b3448;
  color: #fff;
  font-style: normal;
  font-size: .68rem;
  font-weight: 700;
}
.step-note {
  margin: 0 0 8px;
  font-size: .76rem;
  color: #8a93a6;
}
.step-block { margin-top: 18px; }

.defect-group { margin-bottom: 12px; }
.defect-group:last-child { margin-bottom: 4px; }
.defect-list .defect-layer {
  margin: 0 0 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid #e6e9f0;
  text-align: left;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #6b7488;
}
.defect-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1px 12px;
}
.defect-items .reason-option {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 3px 0;
  font-size: .8rem;
  line-height: 1.35;
}
.defect-items .reason-option input { margin-top: 2px; flex: none; }

/* 줄글 안에 박힌 gid 링크 */
.screening-link.inline {
  display: inline;
  padding: 0 1px;
  font-weight: 700;
  white-space: nowrap;
}

/* 세부영역 링크는 gid 링크와 색을 달리해 목적지가 목록임을 알린다 */
.screening-link.cell {
  color: #0f766e;
  text-decoration-style: dashed;
}
.screening-link.cell:hover { color: #115e59; }

/* ── 좁은 화면에서 목록과 본문의 경계 (2026-09-15) ── */
/* 넓은 화면에서는 두 칸이 좌우로 나뉘어 있어 구분 띠가 필요 없다. */
.panel-divider { display: none; }

@media (max-width: 900px) {
  /* 목록을 닫힌 상자처럼 보이게 한다 — 배경을 낮추고 아래를 굵게 막는다 */
  .list-panel {
    background: var(--soft);
    border-bottom: 3px solid var(--green);
    box-shadow: inset 0 -10px 12px -10px rgba(21, 35, 34, .18);
  }
  .list-panel .question-item { background: var(--paper); }

  /* 목록과 본문 사이의 이름표 붙은 구분 띠 */
  .panel-divider {
    display: flex;
    align-items: baseline;
    gap: 9px;
    padding: 9px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--green);
    color: #fff;
  }
  .panel-divider-label {
    flex: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    opacity: .85;
  }
  .panel-divider-gid {
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 본문은 흰 바탕이라 위의 낮은 톤 목록과 대비된다 */
  .question-panel { background: var(--paper); }
  .question-detail { padding-top: 18px; }
}

/* ── 수정 내용 가독성 (2026-09-16) ── */
.edit-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border: 1px solid #d8b24a;
  border-left: 4px solid #b8860b;
  border-radius: 6px;
  background: #fdf7e6;
}
.edit-banner-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.edit-banner-main strong { color: #6b4e08; font-size: 13px; }
.edit-banner-main span { color: #7c6526; font-size: 12px; }
.edit-banner-actions { display: flex; gap: 6px; }
.chip-toggle {
  padding: 4px 10px;
  border: 1px solid #d8b24a;
  border-radius: 999px;
  background: #fff;
  color: #7c6526;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.chip-toggle.active { background: #b8860b; border-color: #b8860b; color: #fff; }

mark.diff-add {
  padding: 1px 2px;
  border-radius: 3px;
  background: #fff1a8;
  color: inherit;
  font-weight: 600;
}
mark.diff-del {
  background: none;
  color: #a43d45;
  text-decoration: line-through;
}

.field-changed {
  padding-left: 10px;
  border-left: 3px solid #d8b24a;
}
.changed-chip {
  align-self: start;
  justify-self: end;
  margin-left: 8px;
  white-space: nowrap;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fdf1cf;
  color: #7c6526;
  font-size: 10px;
  font-weight: 800;
}
.option-list li.changed {
  grid-template-columns: 28px 1fr auto;   /* 칩이 들어갈 셋째 칸. 없으면 28px 칸으로 떨어져 세로로 쓰인다 */
  border-color: #d8b24a;
  background: #fffdf5;
}
.option-list li.original-option {
  grid-template-columns: auto 1fr;   /* 글머리가 '원문' 두 글자라 28px 고정 칸을 쓰지 않는다 */
  border-style: dashed;
  border-color: #e4d5ae;
  background: #fbfaf6;
  color: var(--muted);
}

.original-block {
  display: flex;
  gap: 9px;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px dashed #e0d6bd;
  border-radius: 5px;
  background: #fbfaf6;
  font-size: 12px;
  line-height: 1.65;
}
.original-label {
  flex: none;
  color: #9a8a5e;
  font-size: 10px;
  font-weight: 800;
}
.original-text { color: var(--muted); }
.original-tag {
  align-self: start;
  padding: 2px 7px;
  border-radius: 4px;
  background: #efe7d2;
  color: #7c6526;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.history-count { color: var(--muted); font-size: 11px; font-weight: 600; }


/* ── 2회차 검수: 회차 표시, 1회차 답 기록, 평정 ─────────────────────────── */

.round-banner {
  margin-bottom: 13px;
  padding: 9px 11px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}
.round-banner.blind { border: 1px solid #c8b689; background: var(--amber-soft); color: var(--amber); }
.round-banner.revealed { border: 1px solid #a8c6b7; background: var(--green-soft); color: var(--green); }

.blind-answer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 6px 0 14px;
}
.blind-answer {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: #465350;
  font-size: 15px;
  font-weight: 800;
}
.blind-answer.active { border-color: var(--green); background: var(--green-soft); color: var(--green); }

.blind-recall {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
  padding: 9px 11px;
  border: 1px solid #a8c6b7;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
}
.blind-recall.miss { border-color: #dfc08c; background: var(--amber-soft); color: var(--amber); }
.blind-recall span { font-weight: 600; opacity: 0.85; }

.rating-list { display: grid; gap: 13px; }
.rating-block { display: grid; gap: 4px; }
.rating-label { margin: 0; font-size: 12px; font-weight: 700; color: #3c4b49; }
/* pre-line: 서버가 설명에 넣은 줄바꿈을 그대로 그린다(2026-10-24 '정답이 드러나는 단서' 설명 두 줄). */
.rating-help { margin: 0; font-size: .74rem; line-height: 1.4; color: #8a93a6; white-space: pre-line; }
/* 안내 글에서 놓치기 쉬운 문장(서버 helpEmphasis). 굵게, 밑줄, 눈에 띄는 색(2026-10-15). */
.rating-help .help-emphasis { color: var(--amber); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.rating-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 2px 10px;
  margin-top: 2px;
}
.rating-choice {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .78rem;
  line-height: 1.35;
}
.rating-choice input {
  width: 14px;
  height: 14px;
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--green);
}
/* 값 글이 긴 항목(문제 유형)은 보기를 한 줄에 하나씩 세운다. */
.rating-block.stacked-choices .rating-choices { grid-template-columns: minmax(0, 1fr); gap: 3px; }

/* 커리큘럼 일치 바로 위 상자: 이 문항이 맞추려는 세부영역·학습목표·평가항목 문장 (2026-10-02) */
.curriculum-target {
  display: grid;
  gap: 6px;
  margin-bottom: 4px;
  padding: 9px 11px;
  border: 1px solid #b9cbe0;
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--ink);
  font-size: 11px;
}
.curriculum-target-title { margin: 0; color: var(--blue); font-weight: 750; }
.curriculum-target dl { display: grid; gap: 5px; margin: 0; }
.curriculum-target dl div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; }
.curriculum-target dt { color: var(--muted); font-weight: 700; }
.curriculum-target dd { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }

/* 결함 한 줄 = 체크박스 + 고른 뒤에 열리는 심각도 */
.defect-row { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 6px; }
.defect-severity {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: #53605e;
  font-size: .7rem;
}

.tag.muted { background: #e9edec; color: #8a93a6; font-weight: 600; }
.progress-note { margin: 4px 0 0; color: var(--muted); font-size: 10px; }


/* ── 배정 꾸러미와 '의도한 정답' 표기 ──────────────────────────────────── */

.answer-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.ai-rule {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #c8b689;
  border-radius: 5px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 11px;
  line-height: 1.55;
}
.pack-note {
  margin: 0 0 8px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 11px;
}
.mini-state.blind { background: var(--amber-soft); }
.mini-state.revealed { background: var(--blue-soft); }
.mini-state.done { background: var(--green-soft); }
.blind-recall span + span {
  margin-top: 2px;
  font-weight: 500;
  opacity: 0.75;
}


/* ── 2회차 원본·수정안 2단 비교 (2026-09-21) ────────────────────────────
   예전에는 검수 사유 목록 클래스(.reason-list = 1fr 1fr)를 그대로 썼다. 그 칸은
   체크박스 한 줄짜리라 글을 담으면 한 줄에 몇 글자밖에 안 들어간다. 해설처럼 긴
   글이 왼쪽 좁은 칸에 몰려 여러 줄로 쪼개졌다. 여기서 따로 짠다. */

.revision-change + .revision-change { margin-top: 14px; }
.revision-change > .field-label { margin-bottom: 4px; }

.revision-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}
/* 지문과 해설은 길다. 폭이 있어도 좌우로 가르지 않고 원본 → 수정안 순으로 쌓는다. */
.revision-compare.stacked { grid-template-columns: minmax(0, 1fr); }

.revision-pane {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  margin-top: 0;
}
.revision-compare.stacked .revision-pane { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.revision-pane .original-label { padding-top: 3px; }
.revision-compare.stacked .original-label { padding-top: 0; }

/* 줄바꿈·글자 크기·자간을 본문(.rationale)과 같게 맞춘다. keep-all 은 한글 낱말
   가운데서 줄이 끊기지 않게 하고, overflow-wrap 은 줄바꿈 자리가 없는 긴 토큰이
   칸 밖으로 튀어나가는 것을 막는다. */
.revision-body {
  min-width: 0;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 검수 패널이 옆에 붙어 있어 본문 폭은 화면 폭보다 훨씬 좁다. 1180px 아래에서는
   검수 패널이 본문 위로 떠서 `.question-detail` 이 오른쪽에 380px 를 비워 두므로,
   1000px 짜리 화면에서 본문 칸이 300px 도 안 된다. 실제로 찍어 보고 정한 값이다.
   그 아래에서는 짧은 선지도 좌우로 가르지 않는다. */
@media (max-width: 1180px) {
  .revision-compare { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .revision-pane { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .revision-pane .original-label { padding-top: 0; }
}


/* ── 2회차 두 단계 (2026-10-02) ─────────────────────────────────────────
   앞 단계(원본 평가)를 내면 그 양식을 감추고 잠겼다는 표시와 뒤 단계 양식을 띄운다.
   뒤 단계 비교는 보기 다섯 개 전체를 원본·고친 안 두 칸에 나란히 놓는다. */

.locked-note {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  color: #465350;
  font-size: 11px;
}
.locked-note span { font-weight: 500; opacity: 0.85; }
.review-actions.single { grid-template-columns: minmax(0, 1fr); }
.mini-state.revision { background: #efe7d2; }

.revision-judgement { display: grid; gap: 6px; margin: 12px 0 4px; }
.revision-judgement div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.revision-judgement dt { color: var(--muted); font-size: 11px; font-weight: 750; }
.revision-judgement dd { margin: 0; line-height: 1.55; white-space: pre-wrap; }
/* 뒤 단계 첫 문장. 무엇이 바뀌었고 무엇을 하면 되는지 먼저 알린다(2026-10-15). */
.revision-summary { margin: 4px 0 12px; padding: 12px 14px; border-left: 3px solid var(--green); background: var(--green-soft); font-size: 13px; line-height: 1.65; }
.revision-summary p { margin: 0; }
.revision-summary strong { color: var(--green); }
.revision-summary .answer-note { margin-top: 6px; }
.revision-sheet { display: grid; gap: 14px; margin-top: 14px; }
.revision-sheet .revision-change + .revision-change { margin-top: 0; }
.revision-option-pane { display: grid; gap: 6px; min-width: 0; }
.revision-option-pane .option-list li { padding: 9px 10px; }
.option-list li.with-chip { grid-template-columns: 28px 1fr auto; }
.revision-answer { margin: 4px 0 0; font-weight: 650; line-height: 1.55; }


/* ── 검수 전 안내 (2026-10-02 연구 책임자 결정) ─────────────────────────
   로그인 화면에는 폼 위에 크게(#login-notice), 로그인한 뒤에는 검수자 목록 맨 위에 접을 수 있게 작게
   (#reviewer-notice, 처음에는 펼침) 띄운다. 글은 index.html 두 곳에 똑같이 적는다.
   ★★★ 줄은 굵게, 크게, 진한 글자에 밝은 형광 바탕으로 높은 대비를 준다(본문 글자 대비 약 15:1, ★★★ 줄 약 8:1).
   이 앱은 밝은 화면만 쓴다(index.html 의 color-scheme: light). 휴대폰 브라우저의 어두운 모드(삼성 인터넷,
   크롬의 '웹사이트 어둡게')는 색을 강제로 바꾸므로, 안내의 모든 칸에 글자색과 바탕색을 짝으로 적어 바뀐 뒤에도
   대비가 남게 한다. 윈도 고대비 모드(forced-colors)에서는 바탕색이 사라지므로 테두리로 ★★★ 줄을 구분한다. */

:root {
  --notice-ink: #2b1d02;
  --notice-bg: #fff8e1;
  --notice-line: #b7791f;
  --notice-key-ink: #7f1d1d;
  --notice-key-bg: #fde68a;
}

#login-view .auth-panel { width: min(560px, 100%); }

.reviewer-notice {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 2px solid var(--notice-line);
  border-radius: 8px;
  background: var(--notice-bg);
  color: var(--notice-ink);
  line-height: 1.6;
}
.reviewer-notice .notice-title {
  margin: 0 0 10px;
  color: var(--notice-ink);
  font-size: 16px;
  font-weight: 800;
}
.reviewer-notice .notice-key {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--notice-key-bg);
  color: var(--notice-key-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.reviewer-notice .notice-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--notice-ink);
  font-size: 13.5px;
}
.reviewer-notice .notice-list li {
  position: relative;
  padding-left: 14px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* 안내 원문의 '- ' 글머리. 화면 읽기 프로그램에는 읽히지 않게 한다(뒤 줄을 모르는 브라우저는 앞 줄을 쓴다). */
.reviewer-notice .notice-list li::before {
  content: "-";
  content: "-" / "";
  position: absolute;
  left: 2px;
  top: 0;
  font-weight: 800;
}

/* 목록 맨 위의 작은 판. summary 를 누르면 접힌다. */
.reviewer-notice.compact {
  margin: 10px 12px 12px;
  padding: 9px 11px;
  border-width: 1px 1px 1px 4px;
  border-radius: 6px;
  line-height: 1.5;
}
.reviewer-notice.compact > summary.notice-title {
  margin: 0;
  font-size: 12.5px;
  cursor: pointer;
}
.reviewer-notice.compact[open] > summary.notice-title { margin-bottom: 8px; }
.reviewer-notice.compact .notice-key {
  margin-bottom: 8px;
  padding: 7px 9px;
  font-size: 13px;
}
.reviewer-notice.compact .notice-list { gap: 4px; font-size: 11.5px; }
.reviewer-notice.compact .notice-list li { padding-left: 11px; }
.reviewer-notice.compact .notice-list li::before { left: 1px; }

@media (max-width: 520px) {
  .reviewer-notice:not(.compact) { padding: 13px 14px; }
  .reviewer-notice:not(.compact) .notice-key { font-size: 16px; }
}
/* 좁은 화면에서는 목록 상자가 310px 로 낮다. 안내를 펼쳐 둔 동안만 상자를 높여 목록이 가려지지 않게 한다. */
@media (max-width: 900px) {
  .list-panel:has(> .reviewer-notice[open]:not(.hidden)) { max-height: min(640px, 85vh); }
}
@media (forced-colors: active) {
  .reviewer-notice { border-color: CanvasText; }
  .reviewer-notice .notice-key { border: 2px solid CanvasText; }
}

/* ── 첫 로그인 확인(동의) 화면 (2026-10-22) ─────────────────────────────
   글은 frontend/notice/confirm_v{판}.html 의 article.confirm-notice-body 를 그대로 넣는다. 그 파일을 혼자 열어도
   같은 꼴로 보이게, 글 꾸밈은 .confirm-notice-body 에 건다. 휴대폰에서 읽을 글이 길어 글자를 키우고 줄 간격을 넓힌다. */

#confirm-view { place-items: start center; }
#confirm-view .auth-panel { width: min(720px, 100%); }
#confirm-view .auth-panel h1 { margin-bottom: 18px; }
.confirm-loading { margin: 0; color: var(--muted); }
.confirm-notice-body {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.confirm-notice-body .confirm-lead { margin: 0 0 4px; font-weight: 650; }
.confirm-notice-body section { margin-top: 18px; }
.confirm-notice-body h2 { margin: 0 0 6px; color: var(--green); font-size: 16px; }
.confirm-notice-body ul { display: grid; gap: 6px; margin: 0; padding-left: 20px; }
.confirm-notice-body .confirm-key {
  padding: 6px 9px;
  border-radius: 5px;
  background: var(--notice-key-bg);
  color: var(--notice-key-ink);
  font-weight: 800;
}
.confirm-notice-body .confirm-contact {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
}
.confirm-notice-body a { color: var(--green); font-weight: 750; }
.confirm-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.stack-form .confirm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}
.confirm-check input { flex: none; width: 22px; height: 22px; margin: 0; padding: 0; accent-color: var(--green); }
.confirm-logout { justify-self: center; }
/* 이 글 파일만 따로 열었을 때 */
.confirm-standalone { padding: 16px; }
.confirm-standalone .confirm-notice-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
@media (max-width: 520px) {
  #confirm-view { padding: 12px; }
  #confirm-view .auth-panel { padding: 22px 16px; }
  #confirm-view .auth-panel h1 { font-size: 24px; }
  .confirm-standalone { padding: 8px; }
  .confirm-standalone .confirm-notice-body { padding: 16px; }
}
@media (forced-colors: active) {
  .confirm-notice-body .confirm-key { border: 2px solid CanvasText; }
}
