


@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-1Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-2ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-3Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}



/*
 * OMR Perfect UI
 * ------------------------------------------------------------
 * 흰 배경 + 학교 업무 시스템 느낌의 남색/회청색 팔레트.
 * 폰트는 12~23px 범위, 기본 15px/400, 두께는 600 이하로 제한합니다.
 */
:root {
	--bg: #ffffff;
	--page: #f5f7fa;
	--panel: #ffffff;
	--soft: #f8fafc;
	--blue-soft: #eef4f8;
	--green-soft: #eef8f3;
	--text: #1f2937;
	--muted: #64748b;
	--line: #d9e2ec;
	--line-strong: #b9c7d6;
	--navy: #1f3a5f;
	--blue: #3b638c;
	--green: #2f7660;
	--red: #b4544f;
	--shadow: 0 8px 20px rgba(31, 58, 95, 0.09);
	--radius: 14px;
}

* {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	background: var(--bg);
	-webkit-text-size-adjust: 100%;font-family: "Paperozi",Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, -apple-system, sans-serif;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Paperozi",Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, -apple-system, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
}

button,
input,
select {
	font: inherit;
}

a {
	color: inherit;
	text-decoration: none;
}

.shell {
	width: min(1280px, calc(100% - 32px));
	margin: 0 auto;
	padding: 18px 0 32px;
}

.hero {
	margin-bottom: 14px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
	box-shadow: var(--shadow);
}

.hero.compact {
	padding: 16px 18px;
}

.eyebrow {
	margin: 0 0 6px;
	color: var(--blue);
	font-size: 12px;
	font-weight: 500;
}

h1,
h2,
p {
	margin-top: 0;
}

h1 {
	margin-bottom: 7px;
	color: var(--navy);
	font-size: 23px;
	font-weight: 600;
	line-height: 1.2;
}

h2 {
	margin-bottom: 10px;
	color: var(--navy);
	font-size: 18px;
	font-weight: 600;
}

.lead {
	margin-bottom: 0;
	color: var(--muted);
	font-size: 16px;
}

.grid {
	display: grid;
	gap: 12px;
}

.cards {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-bottom: 14px;
}

.card,
.panel {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
	box-shadow: var(--shadow);
}

.card {
	display: grid;
	gap: 6px;
	padding: 18px;
}

.card strong {
	color: var(--navy);
	font-size: 18px;
	font-weight: 600;
}

.card span,
.panel li {
	color: var(--muted);
	font-size: 15px;
}

.panel {
	padding: 16px;
}

.panel ul {
	margin: 0;
	padding-left: 20px;
}

.scanner-grid {
	display: grid;
	grid-template-columns: minmax(420px, 1fr) minmax(320px, 390px);
	gap: 14px;
	align-items: start;
}

.scanner-grid > * {
	min-width: 0;
}

.scanner-grid > .side {
	position: sticky;
	top: 12px;
}

.camera-box {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	min-height: 280px;
	overflow: hidden;
	border: 1px solid #29435d;
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(14, 25, 40, 0.98), rgba(7, 13, 22, 0.98)),
		#0b1422;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.camera-box.is-landscape-guide {
	aspect-ratio: 1.414 / 1;
}

.camera-box.is-portrait-guide {
	aspect-ratio: 1 / 1.414;
}

.camera-box video,
.camera-box canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	/* 미리보기·코너 가이드·촬영 고정 이미지가 항상 같은 좌표계와 화면 비율을 사용합니다. */
	object-fit: contain;
	object-position: center center;
}

.camera-box canvas {
	pointer-events: none;
}

/* 촬영 직후에는 뒤에서 계속 움직이는 video를 숨기고 실제로 판독할 고정 프레임만 표시합니다. */
.camera-box.is-captured-frame {
	background: #050b13;
}

.camera-box.is-captured-frame video {
	visibility: hidden;
}

.camera-box.is-captured-frame canvas {
	background: #050b13;
}

/* PC 웹캠/DroidCam은 실제 촬영 해상도는 유지하고 화면 표시 크기만 제한합니다. */
@media (min-width: 901px) {
	.scanner-capture-panel .camera-box {
		max-width: 760px;
		margin-left: auto;
		margin-right: auto;
	}
}

.scan-hud {
	position: absolute;
	left: 12px;
	top: 12px;
	z-index: 3;
	max-width: calc(100% - 24px);
	padding: 8px 11px;
	border: 1px solid rgba(125, 211, 252, 0.36);
	border-radius: 8px;
	background: rgba(8, 16, 27, 0.78);
	color: #e0f2fe;
	font-size: 14px;
	font-weight: 600;
	backdrop-filter: blur(8px);
	box-shadow: 0 10px 24px rgba(3, 7, 18, 0.25);
}


.scan-toast {
	/*
	 * 카메라 중앙 안내 메시지
	 * ------------------------------------------------------------
	 * 사용자가 카메라를 들고 있는 상태에서는 좌측 상단 HUD보다
	 * 화면 정가운데 큰 안내가 훨씬 잘 보입니다.
	 * scanner.js에서 현재 용지 크기와 위치를 판단해
	 * "가까이", "뒤로", "중앙" 같은 문구를 이 영역에 표시합니다.
	 */
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 5;
	width: max-content;
	max-width: min(88%, 430px);
	padding: 15px 20px;
	border: 1px solid rgba(255, 255, 255, 0.30);
	border-radius: 999px;	
	/*
	 * 반투명 배경
	 * ------------------------------------------------------------
	 * 카메라 화면 중앙을 가리지 않도록 불투명한 검정이 아니라
	 * 살짝 비치는 배경 + 블러로 처리합니다.
	 */
	background: rgba(15, 23, 42, 0.66);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #ffffff;
	font-size: clamp(18px, 4.8vw, 30px);
	font-weight: 650;
	line-height: 1.22;
	letter-spacing: -0.04em;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.36);
	box-shadow: 0 18px 42px rgba(2, 6, 23, 0.34);
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.96);
	transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.scan-toast.is-show {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.scan-toast.is-info {
	background: rgba(15, 23, 42, 0.66);
}

.scan-toast.is-warn {
	background: rgba(180, 83, 9, 0.76);
}

.scan-toast.is-ok,
.scan-toast.is-success {
	background: rgba(22, 101, 52, 0.76);
}

.scan-close-btn {
	position: absolute;
	right: 12px;
	top: 12px;
	z-index: 4;
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(226, 232, 240, 0.32);
	border-radius: 999px;
	background: rgba(8, 16, 27, 0.78);
	color: #e0f2fe;
	font-size: 23px;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(8px);
	box-shadow: 0 10px 24px rgba(3, 7, 18, 0.28);
}

.scan-shot-btn {
	position: absolute;
	left: 50%;
	bottom: 18px;
	z-index: 4;
	display: none;
	min-width: 104px;
	height: 54px;
	padding: 0 22px;
	border: 1px solid rgba(226, 232, 240, 0.38);
	border-radius: 999px;
	background: rgba(31, 58, 95, 0.92);
	color: #ffffff;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0;
	transform: translateX(-50%);
	cursor: pointer;
	backdrop-filter: blur(10px);
	box-shadow: 0 14px 30px rgba(3, 7, 18, 0.35);
}

.scan-shot-btn:active {
	transform: translateX(-50%) scale(0.97);
}

.camera-empty {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
	color: #c8d7e6;
	font-size: 16px;
	text-align: center;
}

.scanner-shell select:disabled {
	color: #334155;
	background: #eef4f8;
	cursor: default;
	opacity: 1;
}

.key-status {
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid #c8d7e6;
	border-radius: 8px;
	background: #f8fafc;
	color: #334155;
	font-size: 14px;
	line-height: 1.45;
}

.camera-box.is-ready .camera-empty {
	display: none;
}

.actions {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-top: 10px;
}

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: #ffffff;
	color: var(--navy);
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
}

.btn.primary,
.btn.strong {
	border-color: var(--navy);
	background: var(--navy);
	color: #ffffff;
}

.btn.soft {
	background: var(--blue-soft);
}

.btn.ghost {
	background: var(--soft);
	color: var(--muted);
}

.btn:disabled {
	opacity: 0.58;
	cursor: not-allowed;
}

.file-btn.is-disabled {
	opacity: 0.58;
	cursor: not-allowed;
	pointer-events: none;
}

.file-btn input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.field {
	display: grid;
	gap: 6px;
	margin-bottom: 12px;
}

.check-field {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: -2px 0 12px;
	color: var(--text);
	font-size: 14px;
	font-weight: 400;
}

.check-field input {
	width: 18px;
	height: 18px;
	accent-color: var(--navy);
}

.scan-options {
	margin: 0 0 12px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--soft);
	overflow: hidden;
}

.scan-options summary {
	display: flex;
	align-items: center;
	min-height: 42px;
	padding: 0 12px;
	color: var(--blue);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.scan-options[open] {
	padding-bottom: 2px;
}

.scan-options[open] summary {
	margin-bottom: 8px;
	border-bottom: 1px solid var(--line);
	background: #ffffff;
}

.scan-options .field {
	margin-right: 10px;
	margin-left: 10px;
}

.scan-options b {
	color: var(--navy);
	font-weight: 500;
}

.field input[type="range"] {
	height: 28px;
	padding: 0;
	accent-color: var(--navy);
}

.field span {
	color: var(--muted);
	font-size: 14px;
	font-weight: 400;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 0 11px;
	border: 1px solid var(--line-strong);
	border-radius: 9px;
	background: #ffffff;
	color: var(--text);
	font-size: 15px;
}

.field input,
.field select {
	height: 42px;
}

.field textarea {
	min-height: 88px;
	padding-top: 10px;
	padding-bottom: 10px;
	resize: vertical;
	line-height: 1.45;
}

.template-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
	gap: 14px;
	align-items: start;
}

.template-grid > * {
	min-width: 0;
}

.upload-box {
	display: grid;
	place-items: center;
	gap: 6px;
	min-height: 150px;
	margin-bottom: 12px;
	padding: 20px;
	border: 1px dashed var(--line-strong);
	border-radius: 12px;
	background: var(--soft);
	color: var(--muted);
	text-align: center;
	cursor: pointer;
}

.upload-box input {
	display: none;
}

.upload-box strong {
	color: var(--navy);
	font-size: 17px;
	font-weight: 500;
}

.upload-box span {
	font-size: 14px;
}

.upload-box.is-dragging,
.upload-box.is-ready {
	border-color: var(--green);
	background: var(--green-soft);
}

.template-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 12px;
}

.template-status {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.panel-title-row h2 {
	margin-bottom: 0;
}

.btn.mini {
	min-height: 34px;
	padding: 0 10px;
	border-radius: 8px;
	font-size: 13px;
}

.template-list {
	display: grid;
	gap: 8px;
	color: var(--muted);
	font-size: 14px;
}

.template-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--soft);
}

.template-item div {
	min-width: 0;
}

.template-item strong,
.template-item span,
.template-item em {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.template-item strong {
	color: var(--navy);
	font-size: 15px;
	font-style: normal;
	font-weight: 500;
}

.template-item span {
	color: var(--blue);
	font-size: 13px;
}

.template-item em {
	color: var(--muted);
	font-size: 12px;
	font-style: normal;
}

.status-list {
	display: grid;
	gap: 8px;
	margin-bottom: 14px;
}

.status-list div {
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--soft);
}

.status-list span {
	display: block;
	margin-bottom: 3px;
	color: var(--blue);
	font-size: 12px;
	font-weight: 400;
}

.status-list strong {
	color: var(--navy);
	font-size: 14px;
	font-weight: 500;
}

.result-box {
	min-height: 110px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #ffffff;
	color: var(--text);
	font-size: 14px;
	white-space: normal;
}

.scan-result-panel {
	margin-top: 14px;
	scroll-margin-top: 12px;
}

.scan-result-panel h2 {
	margin: 0 0 10px;
	color: var(--navy);
	font-size: 22px;
}

body.has-scan-result .scanner-grid > .panel:first-child .camera-box {
	position: sticky;
	top: 8px;
	z-index: 5;
}

.result-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.result-summary span {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 10px;
	border: 1px solid #c8d7e6;
	border-radius: 999px;
	background: #f8fafc;
	color: #1f3a5f;
	font-size: 14px;
	font-weight: 500;
}

.answer-edit-list {
	display: grid;
	gap: 6px;
}

.answer-edit-head,
.answer-edit-row {
	display: grid;
	grid-template-columns: 58px minmax(76px, 0.8fr) minmax(76px, 1fr) 42px;
	gap: 8px;
	align-items: center;
}

.answer-edit-head {
	padding: 8px 10px;
	border-radius: 8px;
	background: #eef4f8;
	color: #3b638c;
	font-size: 13px;
}

.answer-edit-row {
	padding: 8px 10px;
	border: 1px solid #d9e2ec;
	border-radius: 8px;
	background: #ffffff;
	font-size: 14px;
}

.answer-edit-row select {
	width: 100%;
	height: 36px;
	border: 1px solid #b9c7d6;
	border-radius: 8px;
	background: #ffffff;
	color: #1f2937;
	font-size: 15px;
}

.answer-multi-editor {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.answer-multi-editor label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 30px;
	border: 1px solid #b9c7d6;
	border-radius: 7px;
	background: #fff;
	cursor: pointer;
}

.answer-multi-editor input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.answer-multi-editor label:has(input:checked) {
	border-color: #2563eb;
	background: #eff6ff;
	font-weight: 600;
}

.answer-edit-row strong {
	text-align: center;
	font-size: 16px;
}

.answer-edit-row .is-correct {
	color: #15803d;
}

.answer-edit-row .is-wrong {
	color: #b91c1c;
}

.answer-edit-row .is-blank {
	color: #64748b;
}

.answer-edit-empty {
	padding: 14px;
	border: 1px dashed #c8d7e6;
	border-radius: 8px;
	color: #64748b;
	text-align: center;
}

.result-save-btn {
	margin-top: 12px;
	width: 100%;
}

.result-warning {
	margin-top: 10px;
	padding: 10px;
	border: 1px solid #ddd6fe;
	border-radius: 8px;
	background: #f5f3ff;
	color: #5b21b6;
	font-size: 14px;
}

.raw {
	margin-top: 10px;
}

.raw summary {
	color: var(--blue);
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
}

.raw pre {
	max-height: 300px;
	overflow: auto;
	padding: 12px;
	border-radius: 10px;
	background: #132033;
	color: #e7eef6;
	font-size: 13px;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
}

.scan-option-dialog {
	width: min(520px, calc(100% - 24px));
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--text);
}

.scan-option-dialog::backdrop {
	background: rgba(5, 11, 19, 0.48);
	backdrop-filter: blur(2px);
}

.scan-option-card {
	display: grid;
	gap: 12px;
	max-height: min(720px, calc(100dvh - 34px));
	overflow: auto;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.dialog-title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.dialog-title-row h2 {
	margin: 0 0 4px;
	font-size: 20px;
}

.dialog-title-row p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.dialog-close {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--soft);
	color: var(--navy);
	font-size: 23px;
	line-height: 1;
	cursor: pointer;
}

.dialog-actions {
	display: flex;
	justify-content: flex-end;
}

.dialog-actions .btn {
	min-width: 110px;
}

body.is-scan-focus {
	overflow: hidden;
	background: #050b13;
}

body.is-scan-focus .scanner-shell {
	width: 100%;
	padding: 0;
}

body.is-scan-focus .scanner-shell > .hero,
body.is-scan-focus .scanner-grid > .side {
	display: none;
}

body.is-scan-focus .scanner-grid {
	display: block;
}

body.is-scan-focus .scanner-grid > .panel:first-child {
	position: fixed;
	inset: 0;
	z-index: 30;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #050b13;
	box-shadow: none;
}

body.is-scan-focus .camera-box {
	width: 100vw;
	height: 100dvh;
	min-height: 100dvh;
	aspect-ratio: auto;
	border: 0;
	border-radius: 0;
	background: #050b13;
}

body.is-scan-focus .camera-box video,
body.is-scan-focus .camera-box canvas {
	object-fit: contain;
}

body.is-scan-focus .scan-hud {
	left: max(12px, env(safe-area-inset-left));
	top: max(12px, env(safe-area-inset-top));
	font-size: 15px;
	border-color: rgba(125, 211, 252, 0.44);
	background: rgba(5, 11, 19, 0.76);
}

body.is-scan-focus .scan-close-btn {
	display: inline-grid;
	place-items: center;
	right: max(12px, env(safe-area-inset-right));
	top: max(12px, env(safe-area-inset-top));
}

/*
 * 수동 촬영 버튼 표시 규칙
 * ------------------------------------------------------------
 * 자동 판독 ON/OFF와 관계없이 사용자가 원하는 순간에 현재 프레임을 확정할 수 있어야 합니다.
 * 모바일 전체화면에서도 항상 표시하며, 처리·결과 단계에서는 카메라 화면이 닫히므로 함께 사라집니다.
 */
body.is-scan-focus .scan-shot-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	bottom: max(18px, env(safe-area-inset-bottom));
}

body.is-scan-focus .actions {
	display: none;
}

@media (max-width: 960px) {
	.shell {
		width: min(860px, calc(100% - 22px));
	}

	.cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.scanner-grid,
	.template-grid {
		grid-template-columns: 1fr;
	}

	.scanner-grid > .side {
		position: static;
	}
}

@media (max-width: 560px) {
	.shell {
		width: min(100% - 14px, 540px);
		padding-top: 8px;
	}

	.hero,
	.panel {
		padding: 12px;
	}

	h1 {
		font-size: 23px;
	}

	.camera-box {
		min-height: 0;
	}

	.actions {
		grid-template-columns: 1fr 1fr;
	}

	.actions .btn.primary {
		grid-column: 1 / -1;
	}

	.cards,
	.template-actions,
	.template-status {
		grid-template-columns: 1fr;
	}

	.btn {
		min-height: 44px;
		font-size: 14px;
	}

	.scan-hud {
		max-width: calc(100% - 72px);
		font-size: 13px;
	}

	.scan-close-btn {
		width: 38px;
		height: 38px;
		font-size: 23px;
	}

	.scan-shot-btn {
		min-width: 96px;
		height: 50px;
		font-size: 16px;
	}

	.result-summary span {
		min-height: 30px;
		font-size: 13px;
	}

	.answer-edit-head,
	.answer-edit-row {
		grid-template-columns: 46px minmax(66px, 0.8fr) minmax(58px, 1fr) 34px;
		gap: 5px;
		padding-right: 8px;
		padding-left: 8px;
	}

	.answer-edit-row select {
		height: 34px;
		font-size: 14px;
	}

	.scan-option-card {
		padding: 14px;
	}
}

/*
 * 고사 정답배점 관리
 * ------------------------------------------------------------
 * gradscore의 고사설정/세부시험명/정답배점 흐름을 OMR 프로젝트에 맞게
 * 한 화면으로 재구성한 영역입니다. 기존 템플릿/스캐너 화면과 충돌하지 않도록
 * exam-* 접두사를 사용합니다.
 */
.exam-shell {
	padding-bottom: 72px;
}

.exam-tabs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 14px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--panel);
	box-shadow: var(--shadow);
}

.exam-tab {
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: var(--soft);
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.exam-tab.is-active {
	border-color: var(--navy);
	background: var(--navy);
	color: #ffffff;
}

.exam-tab-panel {
	display: none;
}

.exam-tab-panel.is-active {
	display: block;
}

.exam-flow {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.flow-step {
	display: grid;
	gap: 4px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--panel);
	box-shadow: var(--shadow);
}

.flow-step.is-active {
	border-color: #b8cce1;
	background: var(--blue-soft);
}

.flow-step strong {
	color: var(--navy);
	font-size: 15px;
	font-weight: 500;
}

.flow-step span {
	color: var(--muted);
	font-size: 13px;
}

.exam-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	margin-bottom: 14px;
}

.exam-panel {
	min-width: 0;
}

.exam-form {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

.exam-date-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.exam-date-grid.two {
	grid-template-columns: minmax(0, 1fr) minmax(120px, .6fr);
	align-items: center;
}

.exam-check {
	margin: 0 0 12px;
}

.exam-list {
	display: grid;
	gap: 8px;
	max-height: 420px;
	overflow: auto;
	padding-top: 12px;
}

.exam-item {
	position: relative;
	display: grid;
	gap: 4px;
	width: 100%;
	padding: 12px 82px 12px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--soft);
	color: var(--text);
	text-align: left;
	cursor: pointer;
}

.exam-item.is-selected {
	border-color: #9eb8d4;
	background: #eef4f8;
}

.exam-item strong,
.exam-item span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.exam-item strong {
	color: var(--navy);
	font-size: 15px;
	font-weight: 500;
}

.exam-item span {
	color: var(--muted);
	font-size: 13px;
}

.badge {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	min-width: 56px;
	padding: 5px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-style: normal;
	font-weight: 500;
	text-align: center;
}

.badge.on {
	background: var(--green-soft);
	color: var(--green);
}

.badge.off {
	background: #fff1f0;
	color: var(--red);
}

.empty-note {
	padding: 28px 12px;
	border: 1px dashed var(--line-strong);
	border-radius: 10px;
	background: var(--soft);
	color: var(--muted);
	font-size: 14px;
	text-align: center;
}

.answer-panel {
	overflow: hidden;
}

.panel-caption {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.answer-tools {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

.answer-select-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 10px;
	margin-bottom: 12px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--soft);
}

.answer-select-row .field {
	margin-bottom: 0;
}

.field.compact {
	width: 96px;
	margin-bottom: 0;
}

.compact-check {
	min-height: 42px;
	margin: 0;
}

.answer-form {
	display: grid;
	grid-template-columns: 80px minmax(100px, .8fr) 90px minmax(130px, .9fr) minmax(130px, 1fr) minmax(130px, 1fr) 110px auto;
	gap: 8px;
	align-items: end;
	margin-bottom: 12px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--soft);
}

.answer-form .field {
	margin-bottom: 0;
}

.answer-summary {
	margin-bottom: 8px;
	color: var(--blue);
	font-size: 14px;
	font-weight: 500;
}

.answer-table-wrap {
	overflow-x: auto;
	margin: 0 -16px -16px;
	border-top: 1px solid var(--line);
}

.answer-table {
	width: 100%;
	min-width: 900px;
	border-collapse: collapse;
}

.answer-table th,
.answer-table td {
	padding: 10px;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
	text-align: left;
	vertical-align: middle;
}

.answer-table th {
	background: var(--soft);
	color: var(--navy);
	font-weight: 500;
	white-space: nowrap;
}

.answer-table td {
	background: #ffffff;
	color: var(--text);
}

.status-bar {
	position: fixed;
	left: 50%;
	bottom: 16px;
	z-index: 20;
	transform: translateX(-50%);
	width: min(720px, calc(100% - 32px));
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	box-shadow: var(--shadow);
	color: var(--muted);
	font-size: 13px;
	text-align: center;
	backdrop-filter: blur(8px);
}

@media (max-width: 1100px) {
	.exam-layout {
		grid-template-columns: 1fr;
	}

	.answer-form {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.exam-tabs {
		grid-template-columns: 1fr 1fr;
	}

	.exam-flow {
		grid-template-columns: 1fr;
	}

	.exam-date-grid,
	.exam-date-grid.two,
	.answer-select-row,
	.answer-form {
		grid-template-columns: 1fr;
	}

	.answer-tools {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}

	.field.compact {
		width: 100%;
	}

	.answer-tools .btn {
		width: 100%;
	}
}

/*
 * Scanner Pro UI · 2026-08-13
 * ------------------------------------------------------------
 * PC는 좌측 촬영 / 우측 채점 수정 구조로 고정하고,
 * 모바일만 카메라 실행 중 전체화면으로 전환합니다.
 * Scanner 화면 글자는 12~23px, 굵기는 400~600 범위로 제한합니다.
 */
.scanner-pro-shell {
    width: min(1520px, calc(100% - 28px));
    padding: 14px 0 28px;
    font-size: 15px;
    font-weight: 400;
}

.scanner-pro-shell * {
    font-weight: 400;
}

.scanner-pro-shell strong,
.scanner-pro-shell h2,
.scanner-pro-shell .btn.primary,
.scanner-pro-shell .scan-shot-btn,
.scanner-pro-shell .scan-hud {
    font-weight: 600;
}

.scanner-exam-panel {
    margin-bottom: 12px;
    padding: 14px;
    border-color: #cbd8e6;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    box-shadow: 0 6px 18px rgba(31, 58, 95, 0.07);
}

.scanner-section-title,
.scanner-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.scanner-section-title > div:first-child,
.scanner-panel-head > div:first-child {
    min-width: 0;
}

.scanner-section-title strong,
.scanner-panel-head strong {
    display: block;
    color: #1f3a5f;
    font-size: 18px;
    line-height: 1.3;
}

.scanner-section-title span,
.scanner-panel-head span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.scanner-ready-badge,
.scanner-save-state {
    flex: 0 0 auto;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #cbd8e6;
    border-radius: 999px;
    background: #f8fafc;
    color: #49647f;
    font-size: 12px;
    line-height: 1;
}

.scanner-ready-badge.is-ready,
.scanner-ready-badge.is-good,
.scanner-save-state.is-saved,
.scanner-save-state.is-good {
    border-color: #b9d9c9;
    background: #eef8f3;
    color: #28624f;
}

.scanner-ready-badge.is-warn,
.scanner-ready-badge.is-review,
.scanner-save-state.is-review {
    border-color: #ead6a8;
    background: #fff9eb;
    color: #7a5a19;
}

.scanner-save-state.is-error {
    border-color: #e8c3c0;
    background: #fff5f4;
    color: #93433f;
}

.scanner-save-state.is-saving {
    border-color: #bcd2e8;
    background: #f1f7fd;
    color: #315f89;
}

.scanner-exam-fields {
    display: grid;
    grid-template-columns: minmax(230px, 1.1fr) minmax(230px, 1fr) minmax(220px, .9fr);
    gap: 10px;
}

.scanner-field-compact {
    margin-bottom: 0;
}

.scanner-link-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.scanner-link-status {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #d7e1eb;
    border-radius: 9px;
    background: #f8fafc;
    color: #42566d;
    font-size: 13px;
    line-height: 1.4;
}

.scanner-workspace {
    display: grid;
    grid-template-columns: minmax(560px, 1.18fr) minmax(430px, .82fr);
    gap: 12px;
    align-items: start;
}

.scanner-capture-panel,
.scanner-review-panel {
    min-width: 0;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(31, 58, 95, 0.07);
}

.scanner-review-panel {
    position: sticky;
    top: 10px;
    max-height: calc(100vh - 20px);
    overflow: auto;
}

.scanner-camera-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(145px, .55fr);
    gap: 8px;
    align-items: end;
    margin-bottom: 10px;
}

.scanner-camera-select-field {
    margin-bottom: 0;
}

.scanner-camera-refresh {
    min-height: 42px;
    white-space: nowrap;
}

.scanner-device-status {
    min-height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px 9px;
    border: 1px solid #d7e1eb;
    border-radius: 9px;
    background: #f8fafc;
}

.scanner-device-status span {
    color: #708196;
    font-size: 12px;
}

.scanner-device-status strong {
    color: #1f3a5f;
    font-size: 13px;
}

.scanner-pro-shell .camera-box {
    min-height: 390px;
    border-color: #27445f;
    border-radius: 11px;
    background: #0b1520;
}

.scanner-pro-shell .camera-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #d5e2ef;
    font-size: 14px;
}

.scanner-pro-shell .camera-empty strong {
    color: #f3f7fb;
    font-size: 16px;
}

.scanner-pro-shell .camera-empty span {
    color: #aabed1;
    font-size: 13px;
}

.scanner-pro-shell .scan-toast {
    max-width: min(86%, 420px);
    padding: 11px 16px;
    font-size: clamp(16px, 2.1vw, 23px);
    font-weight: 600;
}

.scanner-primary-actions {
    display: grid;
    grid-template-columns: 1.15fr .85fr .85fr;
    gap: 8px;
    margin-top: 10px;
}

.scanner-status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-top: 9px;
}

.scanner-status-strip > div {
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid #d7e1eb;
    border-radius: 9px;
    background: #f8fafc;
}

.scanner-status-strip span {
    display: block;
    margin-bottom: 1px;
    color: #718297;
    font-size: 12px;
}

.scanner-status-strip strong {
    display: block;
    overflow: hidden;
    color: #263f5b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scanner-status-strip strong.is-good { color: #2f7660; }
.scanner-status-strip strong.is-review { color: #8a661d; }
.scanner-status-strip strong.is-error { color: #a24844; }

.scanner-review-head {
    margin-bottom: 10px;
}

.scanner-review-inputs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 9px;
}

.scanner-review-inputs .field,
.scanner-student-field {
    min-width: 0;
    margin-bottom: 0;
}

.scanner-review-inputs [hidden] {
    display: none !important;
}

.scanner-flow-box {
    display: grid;
    gap: 2px;
    margin-bottom: 10px;
    padding: 10px 11px;
    border: 1px solid #cbd8e6;
    border-radius: 10px;
    background: #f2f7fb;
}

.scanner-flow-box span,
.scanner-flow-box small {
    color: #6a7c90;
    font-size: 12px;
}

.scanner-flow-box strong {
    color: #294966;
    font-size: 13px;
}

.scanner-flow-box.is-ready {
    border-color: #b9d9c9;
    background: #eef8f3;
}

.scanner-pro-shell .scan-result-panel {
    margin-top: 0;
}

.scanner-pro-shell .result-box {
    min-height: 320px;
    padding: 10px;
    border-color: #d7e1eb;
    border-radius: 10px;
    background: #ffffff;
    font-size: 14px;
}

.scanner-empty-result {
    min-height: 275px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #718297;
    text-align: center;
}

.scanner-empty-result strong {
    color: #40566d;
    font-size: 15px;
}

.scanner-empty-result span {
    max-width: 340px;
    font-size: 13px;
}

.scanner-pro-shell .result-summary {
    gap: 6px;
    margin-bottom: 9px;
}

.scanner-pro-shell .result-summary span {
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
}

.scanner-pro-shell .answer-edit-list {
    gap: 5px;
}

.scanner-pro-shell .answer-edit-head,
.scanner-pro-shell .answer-edit-row {
    grid-template-columns: 52px minmax(80px, .9fr) minmax(90px, 1fr) 40px;
    gap: 6px;
    padding: 7px 8px;
}

.scanner-pro-shell .answer-edit-row.is-review {
    border-color: #e5c783;
    background: #fffaf0;
}

.scanner-pro-shell .answer-edit-row.is-wrong {
    border-color: #e8c3c0;
    background: #fff8f7;
}

.scanner-pro-shell .answer-edit-row select {
    height: 34px;
    font-size: 14px;
}

.scanner-pro-shell .answer-edit-row strong.is-correct {
    color: #2f7660;
}

.scanner-pro-shell .answer-edit-row strong.is-wrong {
    color: #a24844;
}

.scanner-pro-shell .answer-edit-row strong.is-blank {
    color: #7c8a99;
}

.scanner-pro-shell .answer-edit-row > span:nth-child(3) {
    display: flex;
    align-items: center;
    gap: 4px;
}

.scanner-pro-shell .answer-edit-row > span:nth-child(3) small {
    color: #7a8898;
    font-size: 12px;
}

.scanner-pro-shell .result-actions {
    position: sticky;
    bottom: -10px;
    display: grid;
    grid-template-columns: .72fr 1.18fr .9fr;
    gap: 7px;
    margin: 10px -2px -2px;
    padding: 9px 2px 2px;
    background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff 28%);
}

.scanner-pro-shell .result-warning {
    margin-top: 8px;
    padding: 8px 9px;
    border: 1px solid #ead6a8;
    border-radius: 8px;
    background: #fff9eb;
    color: #74591f;
    font-size: 12px;
}

.scanner-pro-shell .raw summary {
    font-size: 12px;
}

.scanner-pro-shell .raw pre {
    max-height: 230px;
    font-size: 12px;
}

@media (max-width: 1120px) {
    .scanner-workspace {
        grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr);
    }

    .scanner-camera-toolbar {
        grid-template-columns: 1fr auto;
    }

    .scanner-device-status {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 900px) {
    .scanner-pro-shell {
        width: min(100% - 16px, 820px);
        padding-top: 8px;
    }

    .scanner-exam-fields,
    .scanner-link-row,
    .scanner-workspace {
        grid-template-columns: 1fr;
    }

    .scanner-template-field {
        display: none;
    }

    .scanner-review-panel {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .scanner-pro-shell .camera-box {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .scanner-pro-shell {
        width: min(100% - 10px, 590px);
        font-size: 15px;
    }

    .scanner-exam-panel,
    .scanner-capture-panel,
    .scanner-review-panel {
        padding: 10px;
        border-radius: 11px;
    }

    .scanner-section-title,
    .scanner-panel-head {
        align-items: center;
    }

    .scanner-section-title span,
    .scanner-panel-head span {
        display: none;
    }

    .scanner-section-title strong,
    .scanner-panel-head strong {
        font-size: 16px;
    }

    .scanner-camera-toolbar {
        grid-template-columns: 1fr auto;
    }

    .scanner-device-status {
        display: none;
    }

    .scanner-primary-actions {
        grid-template-columns: 1fr 1fr;
    }

    .scanner-primary-actions .btn.primary {
        grid-column: 1 / -1;
    }

    .scanner-status-strip {
        grid-template-columns: 1fr 1fr;
    }

    .scanner-pro-shell .result-box {
        min-height: 240px;
    }

    .scanner-empty-result {
        min-height: 205px;
    }
}

/* 모바일/태블릿 카메라 실행 중에만 전체화면 촬영 UI를 사용합니다. */
body.is-scan-focus .scanner-pro-shell {
    width: 100%;
    padding: 0;
}

body.is-scan-focus .scanner-pro-shell > .scanner-exam-panel,
body.is-scan-focus .scanner-review-panel,
body.is-scan-focus .scanner-camera-toolbar,
body.is-scan-focus .scanner-panel-head,
body.is-scan-focus .scanner-primary-actions,
body.is-scan-focus .scanner-status-strip {
    display: none;
}

body.is-scan-focus .scanner-workspace {
    display: block;
}

body.is-scan-focus .scanner-capture-panel {
    position: fixed;
    inset: 0;
    z-index: 30;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #050b13;
    box-shadow: none;
}

body.is-scan-focus .scanner-pro-shell .camera-box {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
}


@media (max-width: 720px) {
    .scanner-review-inputs {
        grid-template-columns: 1fr;
    }
}

/* Hybrid recognition status */
.scanner-status-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.scanner-status-strip strong.is-saving {
    color: #315f89;
}

.scanner-pro-shell .hybrid-result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 9px;
    padding: 9px 10px;
    border: 1px solid #bfd9cb;
    border-radius: 9px;
    background: #f1f9f5;
    color: #285f4e;
    font-size: 13px;
}

.scanner-pro-shell .hybrid-result-summary.is-review {
    border-color: #ead6a8;
    background: #fff9eb;
    color: #74591f;
}

.scanner-pro-shell .hybrid-result-summary strong {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
}

.scanner-pro-shell .hybrid-result-summary span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

@media (max-width: 920px) {
    .scanner-status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scanner-pro-shell .hybrid-result-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .scanner-pro-shell .hybrid-result-summary span {
        white-space: normal;
    }
}

/* 저장 직후 학생에게 도달 여부를 바로 보여줍니다. */
.scanner-pro-shell .scanner-pass-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 9px;
    padding: 9px 10px;
    border: 1px solid #c7d6e2;
    border-radius: 9px;
    background: #f5f8fb;
    font-size: 13px;
}

.scanner-pro-shell .scanner-pass-summary strong {
    font-size: 15px;
    font-weight: 600;
}

.scanner-pro-shell .scanner-pass-summary span {
    font-size: 12px;
}

.scanner-pro-shell .scanner-pass-summary.is-pass {
    border-color: #b8d8c7;
    background: #f0f8f4;
    color: #285f4e;
}

.scanner-pro-shell .scanner-pass-summary.is-fail {
    border-color: #e5c4bd;
    background: #fff5f3;
    color: #7b4338;
}

.scanner-pro-shell .scanner-pass-summary.is-none {
    color: #516273;
}

/* Scanner processing overlay ------------------------------------------------
 * 촬영 완료 후 카메라 전체화면을 먼저 닫고 화면 정중앙에서 판독 진행률을 보여줍니다.
 * 기존 OpenCV/AI 인식 설정과 결과 화면은 그대로 유지합니다.
 */
.scanner-processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(27, 52, 78, 0.18);
    backdrop-filter: blur(2px);
}

.scanner-processing-overlay[hidden] {
    display: none !important;
}

.scanner-processing-card {
    width: min(420px, calc(100vw - 36px));
    padding: 20px;
    border: 1px solid #c9d8e6;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(35, 64, 92, 0.18);
    text-align: center;
}

.scanner-processing-card > strong {
    display: block;
    color: #284f73;
    font-size: 18px;
    font-weight: 600;
}

.scanner-processing-help {
    display: block;
    margin-top: 6px;
    color: #60758a;
    font-size: 13px;
    font-weight: 400;
}

.scanner-processing-card .scan-process-track {
    overflow: hidden;
    width: 100%;
    height: 10px;
    margin-top: 16px;
    border-radius: 999px;
    background: #e6eef5;
}

.scanner-processing-card .scan-process-track > span {
    position: relative;
    display: block;
    overflow: hidden;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #557da3;
    transition: width 160ms ease-out;
}

.scanner-processing-card .scan-process-track > span::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 34%;
    background: rgba(255, 255, 255, 0.42);
    transform: translateX(-130%);
    animation: scanner-progress-sweep 1.05s linear infinite;
}

.scanner-processing-card small {
    display: block;
    margin-top: 9px;
    color: #60758a;
    font-size: 12px;
    font-weight: 400;
}

@keyframes scanner-progress-sweep {
    to {
        transform: translateX(390%);
    }
}

/* 서답형 OCR/직접입력 결과 */
.scanner-pro-shell .answer-edit-row input.answer-written-input {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #b9c7d6;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 400;
}

.scanner-pro-shell .answer-edit-row.is-written {
    border-color: #c8d7e6;
    background: #fbfdff;
}

.scanner-pro-shell .answer-edit-row.is-written.is-review {
    border-color: #e5c783;
    background: #fffaf0;
}

.scanner-pro-shell .answer-edit-row input.answer-written-input:focus {
    border-color: #7ea7cf;
    outline: 2px solid rgba(49, 95, 137, 0.14);
    outline-offset: 1px;
}

/* 서답형 부분점수는 오답과 구분해서 교사가 바로 확인할 수 있게 표시합니다. */
.scanner-pro-shell .answer-edit-row.is-partial {
    border-color: #d8c58a;
    background: #fffdf5;
}

.scanner-pro-shell .answer-edit-row strong.is-partial {
    color: #806522;
    font-size: 13px;
    font-weight: 600;
}
