
        * { margin: 0; padding: 0; box-sizing: border-box; }

        /* 색 토큰은 공유 design-system.css(:root)로 이전됨. 포크 공통 색은 그 파일에서 관리.
           아래 인라인 :root들은 타이포/스터디/레이아웃 변수(포크별 자유)만 담는다. */
        /* 폼 요소는 브라우저 기본 글꼴 대신 본문 글꼴을 상속 (폰트 미지정 버튼이 시스템 글꼴로 나오는 것 방지) */
        button, input, select, textarea, optgroup { font-family: inherit; }

        body {
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            background:
                radial-gradient(circle at top left, rgba(29, 78, 216, 0.06), transparent 30%),
                radial-gradient(circle at top right, rgba(37, 99, 235, 0.04), transparent 26%),
                var(--bg);
            color: var(--text);
            font-size: 16px;
            line-height: 1.6;
            scrollbar-width: thin;
            scrollbar-color: #CBD5E1 transparent;
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }

        html::-webkit-scrollbar,
        body::-webkit-scrollbar,
        .modal::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }
        html::-webkit-scrollbar-track,
        body::-webkit-scrollbar-track,
        .modal::-webkit-scrollbar-track {
            background: transparent;
        }
        html::-webkit-scrollbar-thumb,
        body::-webkit-scrollbar-thumb,
        .modal::-webkit-scrollbar-thumb {
            background: #CBD5E1;
            border-radius: 999px;
            border: 2px solid transparent;
            background-clip: padding-box;
        }
        html::-webkit-scrollbar-thumb:hover,
        body::-webkit-scrollbar-thumb:hover,
        .modal::-webkit-scrollbar-thumb:hover {
            background: #94A3B8;
            border: 2px solid transparent;
            background-clip: padding-box;
        }

        .app {
            max-width: 520px;
            margin: 0 auto;
            min-height: 100vh;
            background: transparent;
            box-shadow: 0 0 0 1px rgba(229, 231, 235, 0.5);
        }
        /* 과목 선택 화면: 콘텐츠가 짧아 카드 아래 빈 공백이 크게 남으므로 100vh 강제 해제 */
        .app:has(#screen-sets.active),
        .app:has(#screen-sets-sub.active) {
            min-height: 0;
        }

        /* PC: ?�험지 ?�스???�역 ?�비 고정 */
        @media (min-width: 600px) {
            .app {
                max-width: 600px;
            }
            .prob-text, .choices {
                max-width: 520px;  /* A4 ?띿뒪???곸뿭 洹쇱궗媛?*/
            }
        }

        .screen { display: none; padding: 0 20px 18px 20px; }
        .screen.active { display: block; }

        #screen-sets,
        #screen-sets-sub {
            overflow-x: clip;
        }

        /* ?�?� 공통 ?�?�포그래???�?� */
        .page-title {
            font-size: 24px; font-weight: 700; letter-spacing: -0.3px;
            margin-bottom: 24px; color: var(--text);
        }
        .section-title {
            font-size: 16px; font-weight: 700; color: var(--text);
            margin-bottom: 12px;
        }
        .label-sm {
            font-size: 12px; font-weight: 600; color: var(--text-3);
            letter-spacing: 0.2px;
        }

        /* ?�?� 공통 버튼 ?�?� */
        .btn {
            min-height: 50px; padding: 12px 16px;
            border-radius: 14px; font-size: 15px; font-weight: 600;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            cursor: pointer; border: 1px solid var(--border);
            background: var(--surface); color: var(--text);
            transition: all 0.15s; width: 100%; display: flex;
            align-items: center; justify-content: center; gap: 6px;
        }
        .btn:hover { background: #F8FAFC; border-color: var(--border-strong); transform: translateY(-1px); }
        .btn.primary { background: var(--primary); border-color: var(--primary); color: var(--surface); }
        .btn.primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
        .btn.danger { color: var(--danger); border-color: var(--danger-border); }
        .btn.danger:hover { background: var(--danger-soft); }
        .btn.ghost { color: var(--text-3); border-color: var(--border-strong); }
        .btn:disabled,
        .all-btn:disabled,
        .saved-start-btn:disabled {
            opacity: 0.42;
            cursor: default;
            transform: none;
            box-shadow: none;
        }
        .btn:disabled:hover,
        .all-btn:disabled:hover,
        .saved-start-btn:disabled:hover {
            background: inherit;
            border-color: inherit;
        }
        .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .btn-stack { display: grid; gap: 10px; }

        /* ?�?� 모달 ?�?� */
        .modal-overlay {
            position: fixed; inset: 0;
            background: rgba(15, 23, 42, 0.44);
            display: none; align-items: center; justify-content: center;
            z-index: 1000; padding: 16px;
        }
        .modal-overlay.active { display: flex; }
        .modal {
            background: var(--surface); border-radius: 22px;
            padding: 24px; max-width: 420px; width: 100%;
            box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
        }
        .modal-title {
            font-size: 20px; font-weight: 700; color: var(--text);
            margin-bottom: 18px; text-align: center;
            letter-spacing: -0.2px;
        }
        .modal-sub {
            font-size: 14px; color: var(--text-3); text-align: center;
            margin-bottom: 20px; line-height: 1.6;
        }
        .advanced-settings-list {
            display: grid;
            gap: 10px;
        }
        .advanced-setting-card {
            width: 100%;
            border: 1px solid var(--border);
            background: var(--surface);
            border-radius: 18px;
            padding: 16px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            cursor: pointer;
            text-align: left;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            transition: all 0.15s;
        }
        .advanced-setting-card:hover {
            background: #F9FAFB;
            border-color: var(--border-strong);
        }
        .advanced-setting-card.danger {
            border-color: var(--danger-border);
        }
        .advanced-setting-card.danger:hover {
            background: var(--danger-soft);
            border-color: var(--danger);
        }
        .advanced-setting-main {
            min-width: 0;
        }
        .advanced-setting-name {
            font-size: 15px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 4px;
        }
        .advanced-setting-meta {
            font-size: 12px;
            color: var(--text-3);
            line-height: 1.5;
        }
        .advanced-setting-arrow {
            font-size: 22px;
            line-height: 1;
            color: #CBD5E1;
            flex-shrink: 0;
        }
        .advanced-stage-list {
            display: grid;
            gap: 10px;
            margin-bottom: 18px;
        }
        .advanced-stage-card {
            width: 100%;
            border: 1px solid var(--border);
            background: var(--surface);
            border-radius: 18px;
            padding: 16px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            cursor: pointer;
            text-align: left;
            transition: all 0.15s;
        }
        .advanced-stage-card:hover {
            background: #F9FAFB;
            border-color: var(--border-strong);
        }
        .advanced-stage-card.active {
            background: #EEF4FF;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
        }
        .advanced-stage-main {
            min-width: 0;
        }
        .advanced-stage-name {
            font-size: 15px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 4px;
        }
        .advanced-stage-meta {
            font-size: 12px;
            color: var(--text-3);
            line-height: 1.5;
        }
        .stage-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 54px;
            height: 28px;
            padding: 0 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            background: #E2E8F0;
            color: #475569;
            flex-shrink: 0;
        }
        .advanced-stage-card.active .stage-badge {
            background: var(--primary);
            color: var(--surface);
        }

        /* ?�?� ?�보 박스 (?�어?��? ?�?� */
        .info-box {
            background: linear-gradient(180deg, var(--surface), #FAFAF8);
            border: 1px solid var(--border);
            border-radius: 18px;
            padding: 16px; margin-bottom: 20px;
        }
        .info-row { margin-bottom: 12px; }
        .info-row:last-child { margin-bottom: 0; }
        .info-row .label-sm { display: block; margin-bottom: 3px; }
        .info-val { font-size: 15px; font-weight: 600; color: var(--text); }
        .progress-label-row {
            display: flex; justify-content: space-between;
            align-items: center; margin-bottom: 6px;
        }
        .progress-bar {
            height: 6px; background: var(--border);
            border-radius: 999px; overflow: hidden;
        }
        .progress-fill {
            height: 100%; background: var(--primary);
            border-radius: 999px; transition: width 0.3s;
        }

        /* ?�?� ���� ?�정: ?�라?�더 ?�?� */
        .count-display-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 16px;
        }

        .count-big {
            font-size: 44px;
            font-weight: 800;
            letter-spacing: -1px;
            color: var(--text);
            line-height: 1.1;
            cursor: default;
            display: flex;
            align-items: baseline;
            gap: 2px;
        }

        .count-unit {
            font-size: 22px;
            font-weight: 700;
            color: var(--text);
            letter-spacing: -0.3px;
        }

        .count-inline-input {
            width: 110px;
            font-size: 44px;
            font-weight: 800;
            letter-spacing: -1px;
            color: var(--text);
            line-height: 1.1;
            border: none;
            border-bottom: 3px solid var(--primary);
            outline: none;
            background: transparent;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            padding: 0;
            -moz-appearance: textfield;
        }

        .count-inline-input::-webkit-outer-spin-button,
        .count-inline-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
        }

        .count-hint {
            font-size: 12px;
            color: var(--text-3);
            margin-bottom: 10px;
        }

        .direct-link {
            font-size: 13px;
            font-weight: 500;
            color: var(--primary);
            background: none;
            border: none;
            cursor: pointer;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            padding: 4px 0;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .copyright-link-btn {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-3);
            background: none;
            border: none;
            cursor: pointer;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            padding: 2px 0;
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        .copyright-link-btn:hover { color: var(--text-2); }
        .copyright-body { font-size: 13px; line-height: 1.7; color: var(--text-2); }
        .copyright-para { margin: 0 0 10px; }
        .copyright-para:last-child { margin-bottom: 0; }
        .set-intro-notice { font-size: 13.5px; line-height: 1.85; color: var(--text-2); padding: 22px 0 20px; }
        .set-intro-notice-title { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 12px; letter-spacing: -0.01em; }
        .problem-attribution { font-size: 11px; color: var(--text-3); text-align: right; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--border); letter-spacing: 0; }
        /* 출처(연도·번호 표기)는 복사 금지 — 텍스트 선택 불가 (2026-07-15) */
        .problem-attribution, .exam-paper-source { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
        .nonsyn-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9999; display: flex; align-items: center; justify-content: center; }
        .nonsyn-dialog { background: var(--surface); border-radius: 14px; padding: 24px 22px 20px; max-width: 360px; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,0.22); }
        .nonsyn-title { font-size: 15px; font-weight: 700; color: #B45309; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
        .nonsyn-msg { font-size: 13px; line-height: 1.7; color: var(--text-2); white-space: pre-line; margin-bottom: 18px; }
        .nonsyn-btns { display: flex; gap: 8px; justify-content: flex-end; }
        /* 모범답안·해설 등에 들어간 <pre>(거래구조 그림 등 ASCII 구조도)가 white-space:pre 기본값 때문에
           줄바꿈 없이 자체 폭을 늘려 카드를 화면 밖으로 밀어내던 문제 방지. 긴 줄은 컨테이너 안에서 감싸고,
           끊을 데 없는 긴 토큰도 강제로 끊는다(가로 스크롤은 최후 백업). 들여쓰기는 pre-wrap이 보존한다. */
        pre {
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            word-break: break-word;
            max-width: 100%;
            box-sizing: border-box;
            overflow-x: auto;
        }
        .nonsyn-btn-cancel { padding: 7px 16px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-2); font-size: 13px; cursor: pointer; }
        .nonsyn-btn-confirm { padding: 7px 16px; border-radius: 8px; border: none; background: #B45309; color: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; }
        .nonsyn-btn-cancel:hover { background: var(--surface-2); }
        .nonsyn-btn-confirm:hover { background: #92400e; }
        .answer-req-popup { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); background: rgba(30,30,30,0.88); color: var(--surface); font-size: 13.5px; font-weight: 500; padding: 10px 20px; border-radius: 22px; z-index: 9998; pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity 0.15s; letter-spacing: -0.01em; }
        .answer-req-popup.visible { opacity: 1; }
        .direct-input-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
        .direct-input {
            width: 90px; height: 40px;
            border: 1.5px solid var(--primary-border);
            border-radius: 10px; padding: 0 14px;
            font-size: 16px; font-weight: 600;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            background: var(--primary-soft); outline: none;
        }
        .slider-wrap { padding: 0 2px; margin-bottom: 6px; }
        .count-slider {
            -webkit-appearance: none; width: 100%;
            height: 6px; border-radius: 999px;
            background: var(--border);
            outline: none; cursor: pointer; margin-bottom: 8px;
        }
        .count-slider::-webkit-slider-runnable-track {
            height: 6px;
            border-radius: 999px;
            background: var(--border);
        }
        .count-slider::-webkit-slider-thumb {
            -webkit-appearance: none; width: 22px; height: 22px;
            border-radius: 50%; background: var(--primary);
            cursor: pointer; border: 3px solid var(--surface);
            box-shadow: 0 0 0 1.5px var(--primary);
            transition: transform 0.1s, box-shadow 0.15s;
            margin-top: -8px;
        }
        .count-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
        .count-slider::-moz-range-track {
            height: 6px;
            border: none;
            border-radius: 999px;
            background: var(--border);
        }
        .count-slider::-moz-range-thumb {
            width: 22px; height: 22px;
            border-radius: 50%;
            background: var(--primary);
            border: 3px solid var(--surface);
            box-shadow: 0 0 0 1.5px var(--primary);
            cursor: pointer;
        }
        .slider-minmax {
            display: flex; justify-content: space-between;
            font-size: 12px; color: var(--text-3); font-weight: 500;
        }
        .all-btn {
            width: 100%; min-height: 40px;
            border: 1.5px dashed var(--border-strong); border-radius: 10px;
            background: none; font-size: 14px; font-weight: 600;
            color: var(--text-3); cursor: pointer;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            transition: all 0.15s; margin-top: 10px;
        }
        .all-btn:hover { border-color: #9CA3AF; color: var(--text-2); background: #F9FAFB; }

        /* ?�?� ���� ?�정: Chip ?�?� */
        .chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
        .chip {
            min-height: 40px; padding: 0 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--surface); border: 1.5px solid var(--border);
            border-radius: 999px; cursor: pointer;
            font-size: 15px; font-weight: 600;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            color: #374151; transition: all 0.15s; white-space: nowrap;
            line-height: 1;
            vertical-align: middle;
        }
        .chip:hover { border-color: #9CA3AF; background: #F9FAFB; }
        .chip.single-choice {
            min-width: 132px;
            justify-content: center;
            box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
        }
        .config-hint {
            margin-top: 8px; font-size: 12px;
            color: var(--text-3); line-height: 1.5;
        }
        .config-section { margin-bottom: 20px; }

        /* ?�?� 문제 ?�트 ?�택 ?�?� */
        .subject-group { margin-bottom: 24px; }
        .group-label {
            font-size: 12px; font-weight: 700; color: var(--text-3);
            letter-spacing: 0.5px; text-transform: uppercase;
            margin-bottom: 8px; padding: 0 4px;
        }
        .set-item {
            display: flex; align-items: center;
            justify-content: space-between;
            width: 100%; font: inherit; color: inherit; text-align: left;
            padding: 14px 16px; background: var(--surface);
            border: 1px solid var(--border); border-radius: 12px;
            margin-bottom: 8px; cursor: pointer; transition: all 0.15s;
        }
        .set-item:hover { background: #F9FAFB; border-color: var(--border-strong); }
        .set-item.disabled,
        .set-item.unavailable {
            background: #F8FAFC;
            border-style: dashed;
            cursor: not-allowed;
            opacity: 0.72;
        }
        .set-item.disabled:hover,
        .set-item.unavailable:hover {
            background: #F8FAFC;
            border-color: var(--border);
        }
        .set-item.disabled .set-item-name,
        .set-item.unavailable .set-item-name {
            color: #64748B;
        }
        .set-item-name { font-size: 15px; font-weight: 600; color: var(--text); }
        .set-item-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
        .set-badge {
            font-size: 11px; font-weight: 700;
            padding: 3px 8px; border-radius: 999px;
            background: #F3F4F6; color: var(--text-2);
        }
        .set-badge.new { background: #DBEAFE; color: var(--primary); }
        .set-badge.review { background: #FEF3C7; color: #B45309; }
        .set-badge.wait { background: #E2E8F0; color: #475569; }
        .set-arrow { color: var(--border-strong); font-size: 16px; margin-left: 8px; }

        /* ?�?� 문제 ?�???�?� */
        .study-header {
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 22px 12px 0;
            margin-bottom: 0;
            border-bottom: 1px solid var(--border);
            margin-left: -26px;
            margin-right: -18px;
            padding-left: 32px;
            padding-right: 22px;
        }
        .study-progress-wrap {
            margin: 10px auto 12px;
            max-width: 960px;
            padding: 8px 16px 9px;
            border: 1px solid var(--border);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.72);
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
        }
        .study-progress-row {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: center;
            column-gap: 14px;
        }
        .study-progress-track {
            position: relative;
            width: 100%;
            height: 8px;
            border-radius: 999px;
            background: var(--border);
            overflow: hidden;
        }
        .study-progress-fill {
            position: absolute;
            inset: 0 auto 0 0;
            width: 0%;
            border-radius: 999px;
            background: linear-gradient(90deg, var(--primary), #3B82F6);
            transition: width 0.25s ease;
        }
        .study-progress-meta {
            min-width: 72px;
            text-align: right;
            font-size: 15px;
            font-weight: 700;
            color: #475569;
            letter-spacing: -0.01em;
        }
        #screen-study #studyProgressLeft {
            display: none;
        }
        #screen-study #studyCounter {
            display: none;
        }
        .study-inline-notice {
            display: none;
            margin: 0 auto 12px;
            max-width: 690px;
            padding: 8px 14px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: #f9fafb;
            color: #374151;
            font-size: 13px;
            line-height: 1.5;
        }
        .study-inline-notice.show {
            display: block;
        }


        .bookmark-btn {
            position: absolute;
            right: 42px;
            bottom: -27px;   /* 구분???�래�????�려�?*/
            width: 20px;
            height: 32px;
            padding: 0;
            border: none;
            background: transparent;
            cursor: pointer;
            z-index: 5;
            filter: drop-shadow(0 2px 5px rgba(0,0,0,0.13));
        }

        /* clip-path�?V??모양 배경 */
        .bookmark-btn::before {
            content: "";
            position: absolute;
            inset: 0;
            /* 鍮꾪솢?? ?곗깋 + ?곕텇??洹몃씪?곗씠??*/
            background: linear-gradient(to bottom, #fff7f7 0%, #fff1f1 100%);
            clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
            border-radius: 2px 2px 0 0;
            transition: background 0.15s;
        }

        /* SVG ?뚮몢由?- 鍮꾪솢???곹깭?먯꽌 蹂댁엫 */
        .bookmark-btn::after {
            content: "";
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='32' viewBox='0 0 20 32'%3E%3Cpolyline points='1,1 19,1 19,31 10,24.3 1,31 1,1' fill='none' stroke='%23e65a63' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
            transition: opacity 0.15s;
        }

        /* ?쒖꽦: 肄붾엫-?덈뱶 洹몃씪?곗씠??*/
        .bookmark-btn.active::before,
        .bookmark-btn.saved::before {
            background: linear-gradient(to bottom, #ff7a7f 0%, #ea4f5a 100%);
        }

        /* ?쒖꽦 ?곹깭?먯꽌 SVG ?뚮몢由??④? */
        .bookmark-btn.active::after,
        .bookmark-btn.saved::after {
            opacity: 0;
        }

        .bookmark-btn:active { transform: scale(0.92); }

        .exclude-session-btn {
            position: absolute;
            right: 82px;
            bottom: -16px;
            min-width: 38px;
            height: 32px;
            padding: 0 8px;
            border: 1px solid #CBD5E1;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.82);
            color: #64748B;
            font-size: 12px;
            font-weight: 700;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            line-height: 1;
            cursor: pointer;
            z-index: 4;
            box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
            transition: background 0.14s, border-color 0.14s, color 0.14s, transform 0.08s;
        }

        .exclude-session-btn:hover {
            background: #F8FAFC;
            border-color: #94A3B8;
            color: #334155;
        }

        .exclude-session-btn:active {
            transform: scale(0.96);
        }

        /* ??더보기踰꾪듉 */
        .more-btn {
            position: absolute;
            right: 0;
            bottom: -17px;
            width: 36px;
            height: 36px;
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: background 0.15s;
            z-index: 4;
            padding: 0;
            color: #7A7F87;
        }

        .more-btn:hover { background: rgba(15, 23, 42, 0.05); }
        .more-btn:active { background: rgba(15, 23, 42, 0.09); }

        /* ?�롭?�운 메뉴 */
        .more-menu {
            position: fixed;
            left: 0;
            top: 0;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            width: 248px;
            z-index: 1200;
            padding: 14px 0;
            display: none;
            opacity: 0;
            transform: translateY(-4px);
            pointer-events: none;
            transition: opacity 0.14s ease, transform 0.14s ease;
        }

        .more-menu.open {
            display: block;
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .more-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            height: 62px;
            padding: 0 26px;
            background: none;
            border: none;
            font-size: 18px;
            font-weight: 600;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            color: var(--text);
            cursor: pointer;
            text-align: left;
            transition: background 0.12s;
        }

        .more-menu-item:hover { background: #F9FAFB; }

        .more-menu-item.danger { color: var(--danger); }
        .more-menu-item.danger:hover { background: var(--danger-soft); }

        .more-menu-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

        .more-menu-divider {
            height: 1px;
            background: var(--border);
            margin: 4px 0;
        }

        /* ?좉퀬 ?좏삎 踰꾪듉 ?좏깮 ?곹깭 */
        .report-type-btn.active {
            background: var(--primary-soft) !important;
            border-color: var(--primary-border) !important;
            color: var(--primary-border) !important;
        }

        /* Toast ?뚮┝ */
        .toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: #1F2937;
            color: var(--surface);
            font-size: 14px;
            font-weight: 500;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            padding: 12px 22px;
            border-radius: 16px;
            z-index: 2147483000;
            opacity: 0;
            transition: opacity 0.2s, transform 0.2s;
            pointer-events: none;
            white-space: pre-line;
            max-width: 88vw;
            text-align: center;
            line-height: 1.5;
            box-shadow: 0 8px 24px rgba(0,0,0,0.22);
        }
        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .app-loading-overlay {
            position: fixed;
            inset: 0;
            z-index: 9998;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(248, 250, 252, 0.42);
            backdrop-filter: blur(2px);
            pointer-events: none;
        }

        .app-loading-overlay.active { display: flex; }

        .app-loading-card {
            width: min(360px, calc(100vw - 40px));
            border: 1px solid rgba(203, 213, 225, 0.9);
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.96);
            box-shadow: 0 22px 52px rgba(15, 23, 42, 0.16);
            padding: 18px 20px;
            display: flex;
            align-items: center;
            gap: 14px;
            pointer-events: none;
        }

        .app-loading-spinner {
            width: 26px;
            height: 26px;
            border-radius: 999px;
            border: 3px solid #DBEAFE;
            border-top-color: var(--primary);
            animation: appLoadingSpin 0.8s linear infinite;
            flex-shrink: 0;
        }

        .app-loading-title {
            font-size: 15px;
            font-weight: 800;
            color: var(--text);
            letter-spacing: -0.2px;
            line-height: 1.35;
        }

        .app-loading-sub {
            margin-top: 2px;
            font-size: 12px;
            font-weight: 600;
            color: #64748B;
            line-height: 1.45;
        }

        @keyframes appLoadingSpin {
            to { transform: rotate(360deg); }
        }

        .back-btn {
            height: 36px; padding: 0 12px; border-radius: 8px;
            background: #F8FAFC; border: none; color: #374151;
            font-size: 14px; font-weight: 500;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif; cursor: pointer;
            transition: all 0.15s;
        }
        .back-btn:hover { background: #F1F5F9; }
        .header-right { display: flex; align-items: center; gap: 12px; }

        /* ?�??목록??북클�?(?��? ?�기, ??�� 채워�? */
        .bookmark-clip-sm {
            width: 16px; height: 22px;
            position: relative; flex-shrink: 0; margin-left: 12px;
        }
        .bookmark-clip-sm::before {
            content: "";
            position: absolute; inset: 0;
            background: #F9737A;
            border: 1.5px solid #F9737A;
            clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
            border-radius: 1px 1px 0 0;
        }
        .counter {
            font-size: 13px;
            color: #64748B;
            font-weight: 600;
            letter-spacing: -0.01em;
        }
        .prob-meta {
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            font-size: 12px;
            color: #64748B;
            margin-top: 18px;
            margin-bottom: 10px;
            letter-spacing: 0.01em;
        }
        /* 약술형 자료/인용 박스 (한국 시험지 자료 박스 스타일) */
        blockquote {
            border: 1px solid #333;
            border-radius: 0;
            background: transparent;
            padding: 8px 12px;
            margin: 10px 0;
            color: inherit;
        }
        blockquote { line-height: 1.7; }
        blockquote p { margin: 0 0 5px 0; }
        blockquote p:last-child { margin-bottom: 0; }
        /* 자료 박스 가운뎃점 항목: 내어쓰기(hanging indent) — 한국 시험지 스타일 */
        blockquote p.jx-bul { padding-left: 1.4em; text-indent: -0.9em; }
        /* 자료 박스 안의 '-' 목록: 기본 가운뎃점(disc) 제거 — ②③/[자료N] 라벨이 마커 역할, 박스 테두리와 충돌 방지 */
        blockquote ul { list-style: none; margin: 6px 0; padding-left: 0; }
        blockquote li { margin: 0 0 5px 0; }
        blockquote li:last-child { margin-bottom: 0; }
        .prob-text {
            font-family: 'HY신명조', 'HY Sinmyeongjo', 'Noto Serif CJK KR', serif;
            font-size: 18px;
            font-weight: 400;
            line-height: 1.6;
            color: var(--text);
            margin-bottom: 22px;
            letter-spacing: -0.025em;
            word-break: keep-all;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
        }
        .prob-text strong {
            font-weight: 700;
        }
        /* table.prob-text: pre-wrap 상속 차단 → 열 너비 auto 분배 */
        table.prob-text {
            white-space: normal;
        }
        /* 회계감사 대비를 위한 일본 회계사 기출 약술형 시험지 레이아웃 — 한국 시험지 스타일 ((물음) 앞 여백·줄간격) */
        /* 글씨크기·가로폭은 회계감사 객관식(1차 회계사 ver, audit-mcq-mode)과 동일하게 */
        .prob-text .jx-exam {
            font-size: var(--audit-ox-font-size, 18px) !important;
            line-height: 1.8;
            max-width: calc(var(--study-paper-width) - 40px);
            margin-left: auto;
            margin-right: auto;
        }
        .prob-text .jx-exam p { margin: 0 0 0.55em 0; }
        .prob-text .jx-exam p.jx-title { margin: 0 0 0.85em 0; }
        .prob-text .jx-exam p.jx-mun { margin: 1.55em 0 0.5em 0; }
        .prob-text .jx-exam p.jx-mun:first-child { margin-top: 0; }
        .prob-text .jx-exam p.jx-req { margin-top: 0.75em; }
        .prob-text .jx-exam blockquote { margin: 0.7em 0 0.8em 0; overflow-x: auto; }

        /* 단답형 키워드만 밑줄 (기출 스타일: 볼드 없이 밑줄만) */
        .prob-text strong.keyword {
            font-weight: normal;
            text-decoration: underline;
            text-decoration-skip-ink: none;
        }
        /* 약술형 예시 박스 */
        /* 약술형 예시 박스 — 회계감사 대비를 위한 일본 회계사 기출 blockquote 예시와 동일한 한국 시험지 스타일 */
        .exam-example {
            border: 1px solid #333;
            padding: 12px 16px;
            margin: 12px 0;
            font-style: italic;
            color: inherit;
            line-height: 1.75;
        }
        .choices {
            margin-bottom: 24px;
            padding: 0;
        }
        .choice-row {
            display: grid;
            grid-template-columns: 1.45em minmax(0, 1fr);
            column-gap: 0.22em;
            align-items: baseline;
            width: 100%;
            margin-bottom: 0;
            line-height: 1.6;
            position: relative;
            padding: 4px 0;
            cursor: pointer;
            border-bottom: 1px solid var(--border);
        }
        .choice-row:last-child {
            border-bottom: none;
        }
        .choice-row.correct .choice-num,
        .choice-row.correct .choice-txt {
            font-weight: 700;
        }
        .choice-row.correct .choice-num { color: var(--success); }
        .choice-row.wrong .choice-num,
        .choice-row.wrong .choice-txt {
            color: #9CA3AF !important;
        }
        .choice-row.missed .choice-num,
        .choice-row.missed .choice-txt {
            color: #10b981;
            font-weight: 700;
        }
        .choice-num {
            font-family: 'Noto Serif CJK KR', serif;
            font-size: inherit;
            width: 1.45em;
            cursor: pointer;
            text-align: center;
            padding: 0;
            position: relative;
            z-index: 1;
            user-select: none;
            transition: opacity 0.1s;
            line-height: inherit;
            color: var(--text);
        }
        .choice-num:hover { opacity: 0.7; }
        .choice-num.disabled { cursor: default; pointer-events: none; }
        .choice-num.selected { color: var(--primary-border); font-weight: 600; }
        .choice-num.wrong-num { color: var(--danger); font-weight: 600; }
        /* [A11Y] 포커스 표시를 지우면 키보드 사용자가 자기 위치를 잃는다.
           마우스 클릭에는 안 뜨고 키보드 이동에만 뜨도록 :focus-visible 로 건다. */
        .choice-num:focus { outline: none; }
        .choice-num:focus-visible {
            outline: 2px solid var(--primary, #2563EB);
            outline-offset: 2px;
            border-radius: 4px;
        }
        .choice-txt {
            min-width: 0;
            font-family: var(--exam-serif-font, 'Batang', '바탕', 'KoPub World Batang', 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif);
            font-size: 16px;
            letter-spacing: -0.03em;
            color: var(--text);
            word-break: keep-all;
            user-select: none;
            -webkit-user-select: none;
            overflow-wrap: break-word;
            line-break: strict;
            text-align: left;
            text-align-last: auto;
            position: relative;
            z-index: 1;
            cursor: pointer;
            touch-action: manipulation;
            white-space: pre-wrap;
        }
        .choice-source-tag {
            display: block;
            font-size: 11px;
            color: #9CA3AF;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            font-weight: 400;
            letter-spacing: 0;
            margin-top: 2px;
            white-space: normal;
        }
        .ox-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
        .ox-btn {
            min-height: 52px; border: 1px solid var(--border);
            background: var(--surface); border-radius: 12px; cursor: pointer;
            font-size: 16px; font-weight: 600;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            transition: all 0.15s; color: var(--text);
            letter-spacing: -0.01em;
        }
        .ox-btn:hover:not(:disabled) { background: #F9FAFB; border-color: var(--border-strong); }
        .ox-btn:disabled { cursor: default; pointer-events: none; }
        .ox-btn.selected {
            background: linear-gradient(180deg, #DBEAFE 0%, #BFDBFE 100%);
            border-color: #2563EB;
            color: var(--primary);
            box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.10) inset;
        }
        /* [A11Y] 위와 같은 이유 — OX 버튼도 포커스 표시를 살린다. */
        .ox-btn:focus { outline: none; }
        .ox-btn:focus-visible {
            outline: 2px solid var(--primary, #2563EB);
            outline-offset: 2px;
        }
        .ox-btn.ox-correct {
            background: var(--success-soft); color: var(--text);
            border-left: 4px solid #16A34A;
            border-top: 1px solid var(--success-border);
            border-right: 1px solid var(--success-border);
            border-bottom: 1px solid var(--success-border);
        }
        .ox-btn.ox-correct.selected {
            background: linear-gradient(180deg, #DCFCE7 0%, #BBF7D0 100%);
            border-color: #16A34A;
            color: #166534;
        }
        .ox-help-line {
            margin-top: 10px;
            font-size: 12px;
            color: var(--text-3);
            line-height: 1.5;
            letter-spacing: -0.01em;
        }
        .ox-btn.ox-wrong {
            background: var(--danger-soft); color: var(--danger);
            border-left: 4px solid #EF4444;
            border-top: 1px solid var(--danger-border);
            border-right: 1px solid var(--danger-border);
            border-bottom: 1px solid var(--danger-border);
        }

        /* ?�?� ?�드�?�??�?� */
        .feedback {
            min-height: 44px;
            padding: 0 16px;
            border-radius: 12px;
            display: flex; align-items: center;
            font-size: 14px;
            font-weight: 700;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            margin: 10px 0 12px;
        }
        .feedback.correct { background: var(--success-soft); color: var(--success); border: 1px solid var(--success-border); }
        .feedback.wrong { background: var(--danger-soft); color: #B91C1C; border: 1px solid var(--danger-border); }

        /* ?�?� ?�설 ?�?� */
        .exp-toggle {
            display: flex; align-items: center; justify-content: space-between;
            padding: 14px 16px; background: var(--surface);
            border: 1px solid var(--border); border-radius: 10px;
            cursor: pointer; font-size: 14px; font-weight: 600;
            color: var(--text-2); transition: all 0.15s; user-select: none;
            margin-bottom: 0;
        }
        .exp-toggle:hover { background: #F9FAFB; }
        .exp-toggle.open { border-radius: 10px 10px 0 0; border-bottom-color: transparent; }
        .exp-arrow { font-size: 11px; color: var(--text-3); transition: transform 0.2s; }
        .exp-toggle.open .exp-arrow { transform: rotate(180deg); }
        .exp-body {
            max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
            background: var(--surface); border: 1px solid var(--border);
            border-top: none; border-radius: 0 0 10px 10px; margin-bottom: 16px;
        }
        .exp-body.open { max-height: 500px; }
        .exp-inner { padding: 16px; font-family: var(--exam-serif-font, 'Batang', '바탕', 'KoPub World Batang', 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif); font-size: 16px; line-height: 1.8; letter-spacing: -0.02em; color: var(--text-2); }
        .exp-answer { font-family: var(--exam-serif-font, 'Batang', '바탕', 'KoPub World Batang', 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif); font-size: 16px; font-weight: 700; color: var(--success); margin-bottom: 12px; }
        .exp-section { margin-bottom: 12px; }
        .exp-section-title { font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: 0.5px; margin-bottom: 6px; }
        .exp-section-title.wrong { color: var(--danger); }
        .exp-wrong-point {
            background: var(--danger-soft);
            border-left: 3px solid #EF4444;
            border-radius: 0 6px 6px 0;
            padding: 8px 12px;
            font-size: 13px;
            color: #991B1B;
            margin-top: 6px;
            line-height: 1.7;
            word-break: normal;
            overflow-wrap: anywhere;
        }

        /* ?�?� ?�단 ?�비게이??버튼 ?�?� */
        .nav-btns {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            gap: 10px;
            position: sticky;
            bottom: 0;
            background: linear-gradient(to top, rgba(250,250,248,0.98), rgba(250,250,248,0.88));
            backdrop-filter: blur(8px);
            padding-top: 10px;
            padding-bottom: 12px;
            margin-top: 12px;
        }
        .nav-btn {
            min-height: 28px;
            padding: 0 10px;
            border-radius: 999px;
            font-size: 15px;
            font-weight: 600;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            cursor: pointer; transition: all 0.15s;
            border: 1px solid var(--border-strong); background: var(--surface);
            color: #9CA3AF;
        }
        .nav-btn:hover:not(:disabled) { border-color: #9CA3AF; color: var(--text-2); }
        .nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
        .nav-btn.next { background: var(--primary); border-color: var(--primary); color: var(--surface); }
        .nav-btn.next:hover:not(:disabled) { background: var(--primary-strong); border-color: var(--primary-strong); }
        .nav-btn.next:disabled { background: #93C5FD; border-color: #93C5FD; color: var(--surface); opacity: 1; cursor: not-allowed; }

        .study-ambiguous-row {
            margin-top: 12px;
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }
        .study-accept-btn {
            min-height: 0;
            padding: 0;
            border: none;
            background: transparent;
            color: #2563EB;
            font-size: 13px;
            font-weight: 600;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            cursor: pointer;
            text-decoration: none;
            letter-spacing: -0.01em;
        }
        .study-accept-btn:hover {
            color: var(--primary);
            text-decoration: underline;
            text-underline-offset: 3px;
            background: transparent;
        }
        .study-ambiguous-btn {
            min-height: 0;
            padding: 0;
            border: none;
            background: transparent;
            color: #9CA3AF;
            font-size: 13px;
            font-weight: 600;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            cursor: pointer;
            text-decoration: none;
            letter-spacing: -0.01em;
        }
        .study-ambiguous-btn:hover {
            color: #6B7280;
            text-decoration: none;
            background: transparent;
        }
        .study-ambiguous-btn.active {
            color: #9CA3AF;
            font-weight: 600;
        }
        .oxset-item-ambiguous-btn {
            border: 0;
            background: transparent;
            color: #9CA3AF;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            padding: 0 0 0 2px;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            line-height: 1.3;
        }
        .oxset-item-ambiguous-btn:hover {
            color: #6B7280;
            text-decoration: none;
        }
        .oxset-item-ambiguous-btn.active {
            color: #64748B;
            font-weight: 700;
        }

        .study-mini-nav {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 40px;
            z-index: 5;
        }
        .study-mini-nav-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 36px;
            border: none;
            background: transparent;
            color: #9ca3af;
            font-size: 22px;
            font-family: inherit;
            line-height: 1;
            cursor: pointer;
            letter-spacing: 0;
        }
        .study-mini-nav-btn:active {
            color: #374151;
        }
        .study-mini-nav-btn:disabled {
            opacity: 0.2;
            cursor: default;
        }

        .result-review-list {
            display: grid;
            gap: 12px;
            margin-top: 18px;
        }
        .result-review-item {
            border: 1px solid var(--border);
            background: var(--surface);
            border-radius: 18px;
            padding: 14px 16px;
        }
        .result-review-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }
        .result-review-q {
            font-size: 14px;
            line-height: 1.6;
            color: var(--text);
        }
        .result-review-actions {
            margin-top: 10px;
            display: flex;
            justify-content: flex-end;
        }
        .result-review-exp {
            margin-top: 10px;
        }
        .result-review-exp .exp-toggle {
            margin-top: 0;
        }
        #screen-result .btn-stack { margin-top: 26px; }
        /* 선지 OX 저장(+) 버튼 및 저장 목록 */
        .chox-add {
            display: inline-flex; align-items: center; justify-content: center;
            width: 22px; height: 22px; margin-left: 8px; padding: 0;
            border: 1px solid var(--border); border-radius: 6px;
            background: var(--surface); color: var(--text-3);
            font-size: 14px; line-height: 1; cursor: pointer; vertical-align: middle;
            transition: border-color .12s, color .12s, background .12s;
        }
        .chox-add:hover { border-color: var(--primary); color: var(--primary); }
        .chox-add.saved { background: var(--primary-soft, #eaefff); border-color: var(--primary, #2451DF); color: var(--primary, #2451DF); }
        .chox-item {
            display: flex; align-items: flex-start; gap: 12px;
            padding: 18px 20px; margin-top: 10px;   /* 2026-07-25: 칸이 답답해 여백 확대 */
            border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
        }
        .chox-item-text { flex: 1; font-size: 15px; line-height: 1.65; color: var(--text); }
        .chox-item-src { margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
        .chox-del { flex: none; border: none; background: none; color: var(--text-3); cursor: pointer; font-size: 14px; padding: 2px 4px; }
        .chox-del:hover { color: #DC2626; }

        #screen-study {
            zoom: 0.74;
            max-width: 940px;
            margin: 0 auto;
            background: transparent;
            border-radius: 0;
            padding-top: 10px;
        }
        #screen-study .study-header {
            max-width: 960px;
            margin-left: auto;
            margin-right: auto;
            padding-left: 18px;
            padding-right: 18px;
        }
        #screen-study .study-question-card,
        #screen-study .nav-btns {
            max-width: 960px;
            margin-left: auto;
            margin-right: auto;
        }
        #screen-study .study-question-card {
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 6px 0 0;
            box-shadow: none;
            margin-top: 12px;
        }
        #screen-study .short-question-instruction {
            display: none;
            width: 100%;
            color: #0F172A;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', serif;
            font-size: calc(var(--study-question-font-size) - 0.02rem);
            line-height: 1.75;
            letter-spacing: -0.02em;
            word-break: keep-all;
            overflow-wrap: anywhere;
        }
        #screen-study .short-question-instruction.active {
            display: block;
        }
        #screen-study .short-question-instruction.audit-ox-context-mode {
            font-weight: 600;
            font-size: var(--study-question-font-size, 1.14rem);
            font-family: inherit;
            line-height: 1.6;
        }
        #screen-study #oxContextAbove {
            display: none;
        }
        #screen-study #oxContextAbove.ox-ctx-show {
            display: block !important;
            margin-bottom: 14px;
            font-family: var(--exam-serif-font, 'Batang', '바탕', 'KoPub World Batang', 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif);
            font-size: 17.3px;
            font-weight: 400;
            line-height: 1.6;
            color: var(--text);
            word-break: keep-all;
            overflow-wrap: anywhere;
            width: var(--study-paper-width);
            max-width: 100%;
            margin-left: auto;
            margin-right: auto;
        }
        #screen-study .ox-question-context {
            margin-bottom: 14px;
            font-size: 15px;
            font-weight: 600;
            line-height: 1.6;
            color: #1e293b;
            white-space: pre-wrap;
        }
        #screen-study .prob-meta {
            display: none;
        }
        #screen-study .prob-text,
        #screen-adapt .prob-text {
            margin-bottom: 18px;
            max-width: var(--study-paper-width);
            font-family: var(--exam-serif-font, 'Batang', '바탕', 'KoPub World Batang', 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif);
            font-size: 17.3px;
            line-height: 1.61;   /* 회계사 시험지 줄간격 */
            word-break: keep-all;
            overflow-wrap: anywhere;
            white-space: normal;
        }
        #screen-study .prob-text table,
        #screen-study .prob-text td,
        #screen-study .prob-text th {
            font-family: inherit;
        }
        #screen-study #probText .prob-text th,
        #screen-study #probText .prob-text td { white-space: nowrap; }
        /* 넓은 발문 표가 2단 레이아웃(overflow:hidden)에서 잘리지 않고 표만 가로 스크롤되도록 */
        #screen-study #probText .prob-text { display: block; overflow-x: auto; max-width: 100%; }
        #screen-study .study-paper-box {
            display: block;
            width: 100%;
            max-width: 960px;
            margin: 0 auto 14px;
            padding: 0;
            background: transparent;
            border: 0;
            border-radius: 0;
            box-shadow: none;
        }
        #screen-study .study-paper-box.active {
            padding: 26px 10px 7px;
            background: transparent;
            border: none;
            border-radius: 0;
            box-shadow: none;
        }
        #screen-study .study-paper-box .prob-text {
            margin-bottom: 0;
        }
        #screen-study #choicesArea > .choices,
        #screen-study #choicesArea > .ox-btns,
        #screen-study #choicesArea > .sa-input-area,
        #screen-study #choicesArea > .sa-answer-layout {
            width: 100%;
            margin-bottom: 0;
        }
        #screen-study .choices,
        #screen-study .ox-btns,
        #screen-study .sa-pair-table,
        #screen-adapt .choices,
        #screen-adapt .ox-btns {
            width: 100%;
            max-width: var(--study-paper-width);
        }
        #screen-study .sa-input-area,
        #screen-study .sa-answer-layout {
            width: 100%;
            max-width: var(--study-paper-width);
        }
        #screen-study .sa-answer-layout {
            margin-left: auto;
            margin-right: auto;
        }
        #screen-study .sa-answer-layout .sa-input-area {
            max-width: none;
        }
        #screen-study .sa-answer-layout.has-feedback {
            grid-template-columns: minmax(0, 1fr) 240px;
            column-gap: 16px;
        }
        #screen-study .sa-answer-layout:not(.has-feedback) .sa-pair-table {
            max-width: 100%;
        }
        #screen-study .sa-answer-layout.has-feedback .sa-pair-table {
            max-width: 100%;
        }
        #screen-study .sa-context {
            margin-bottom: 0;
            padding: 0;
            background: transparent;
            border: none;
            border-radius: 0;
            box-shadow: none;
            font-size: 16.8px;
            line-height: 1.78;
            word-break: keep-all;
            overflow-wrap: anywhere;
        }
        #screen-study .choice-row,
        #screen-adapt .choice-row {
            padding-left: 2px;
            padding-right: 2px;
        }
        #screen-study .ox-btns,
        #screen-adapt .ox-btns {
            margin-top: 14px;
            margin-bottom: 0;
        }
        #screen-study .sa-answer-note {
            padding-left: 0;
            margin-bottom: 6px;
            color: #6B7280;
        }
        #screen-study .nav-btns {
            margin-top: 20px;
        }
        #screen-study .sa-input-area {
            border-radius: 0;
            background: linear-gradient(180deg, #FBFBF9 0%, #F3F4F6 100%);
            border: 1px solid #BDC4CC;
            padding: 7px 9px 6px;
        }
        #screen-study .sa-pair-table {
            border: 1px solid var(--border-strong);
            background: var(--surface);
            border-radius: 0;
        }
        #screen-study .sa-pair-row {
            grid-template-columns: 44px minmax(0, 1fr);
            gap: 0;
            min-height: 44px;
            border-bottom: 1px solid var(--border);
        }
        #screen-study .sa-pair-row:last-child {
            border-bottom: none;
        }
        #screen-study .sa-pair-a {
            width: 44px;
            min-height: 44px;
            border: none;
            border-right: 1px solid var(--border);
            border-radius: 0;
            background: #F8FAFC;
            color: #475569;
            font-size: 12px;
            font-weight: 700;
        }
        #screen-study .sa-pair-b {
            position: relative;
            min-height: 44px;
        }
        #screen-study .sa-slot-input {
            min-height: 44px;
            border: none;
            border-radius: 0;
            padding-left: 12px;
            padding-right: 12px;
            font-size: 15.2px;
            background: var(--surface);
        }
        #screen-study .sa-slot-input:focus {
            border: none;
            box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.12);
        }
        #screen-study .sa-slot-input {
            caret-color: transparent;
            padding-left: 12px;
        }
        * {
            caret-color: transparent !important;
        }
        input,
        textarea,
        [contenteditable="true"],
        .direct-input,
        .sa-slot-input,
        .blank-editor,
        .blank-answer-input {
            caret-color: transparent !important;
        }
        /* 로그인·회원가입 입력창은 커서(캐럿)가 보여야 한다 — 위 전역 caret-color:transparent 예외 */
        #modal-login input,
        #modal-login textarea,
        #screen-signup input,
        #screen-signup textarea {
            caret-color: #0F172A !important;
        }
        input.has-input-caret,
        textarea.has-input-caret,
        #screen-study input.has-input-caret,
        #screen-study textarea.has-input-caret {
            caret-color: #0F172A !important;
        }
        #screen-study .sa-slot-input[readonly] {
            background: #F8FAFC;
            color: #64748B;
            cursor: default;
        }
        #screen-study .choice-num.locked,
        #screen-study .ox-btn.locked {
            pointer-events: none;
            opacity: 0.72;
        }
        #screen-study .choice-row,
        #screen-adapt .choice-row {
            grid-template-columns: 1.45em minmax(0, 1fr);
            column-gap: 0.37em;
            padding: 2px 0;
            margin-bottom: 0;
            border-bottom: none;
        }
        #screen-study .choice-row:last-child,
        #screen-adapt .choice-row:last-child {
            margin-bottom: 0;
            border-bottom: none;
        }
        #screen-study .choice-num,
        #screen-adapt .choice-num {
            font-size: inherit;
            color: var(--text);
        }
        #screen-study .choice-txt,
        #screen-adapt .choice-txt {
            font-family: var(--exam-serif-font, 'Batang', '바탕', 'KoPub World Batang', 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif);
            font-size: 17.3px;
            line-height: 1.61;   /* 시험지는 선지도 본문과 같은 크기 */
        }
        #screen-study .ox-btns,
        #screen-adapt .ox-btns {
            gap: 0;
            border-top: 1px solid var(--border-strong);
            border-bottom: 1px solid var(--border-strong);
            padding: 0;
            border-radius: 0;
            background: transparent;
            border-left: none;
            border-right: none;
        }
        #screen-study .ox-btn,
        #screen-adapt .ox-btn {
            min-height: 58px;
            border-radius: 0;
            border: none;
            background: var(--surface);
            font-size: 17px;
            font-weight: 600;
        }
        #screen-study .ox-btn + .ox-btn {
            border-left: 1px solid var(--border);
        }

        #screen-study .audit-ox-sheet {
            width: 100%;
            max-width: var(--study-paper-width);
            margin: 14px auto 0;
            border: 1px solid var(--exam-line-color, var(--text));
            background: #F7F8F9;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
        }

        #screen-study .audit-ox-title {
            min-height: 34px;
            padding: 7px 10px;
            border-bottom: 1px solid var(--exam-line-color, var(--text));
            color: var(--text);
            font-size: 12.8px;
            font-weight: 900;
        }

        #screen-study .audit-ox-table {
            display: grid;
            grid-template-columns: 128px minmax(0, 1fr);
            border-bottom: 1px solid var(--exam-line-color, var(--text));
            background: #FBFCFD;
        }

        #screen-study .audit-ox-head {
            min-height: 32px;
            padding: 7px 10px;
            border-bottom: 1px solid var(--exam-line-color, var(--text));
            color: #334155;
            font-size: 12px;
            font-weight: 900;
            text-align: center;
        }

        #screen-study .audit-ox-head:first-child,
        #screen-study .audit-ox-choice-cell {
            border-right: 1px solid var(--exam-line-color, var(--text));
        }

        #screen-study .audit-ox-choice-cell {
            display: grid;
            place-items: center;
            min-height: 54px;
            background-color: var(--surface);
            background-image: radial-gradient(circle at 2.5px 53px, #BDD1CC 1px, transparent 1.4px);
            background-size: 5px 54px;
            background-position: 0 0;
        }

        #screen-study .audit-ox-input,
        #screen-study .oxset-input {
            width: 100%;
            height: 52px;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: #475569;
            font-size: 13px;
            font-weight: 700;
            text-align: center;
            text-transform: uppercase;
            outline: none;
            caret-color: transparent !important;
        }

        #screen-study .audit-ox-input:focus,
        #screen-study .oxset-input:focus {
            background: #F8FAFC;
            box-shadow: inset 0 -2px 0 rgba(37, 99, 235, 0.22);
        }

        #screen-study .audit-ox-input.correct,
        #screen-study .oxset-input.correct {
            background: transparent;
            color: var(--exam-line-color, var(--text));
            font-weight: 700;
        }

        #screen-study .audit-ox-input.wrong,
        #screen-study .oxset-input.wrong {
            background: transparent;
            color: #B42318;
            font-weight: 800;
        }

        #screen-study .audit-ox-mark {
            min-height: 54px;
            border: 0;
            background: var(--surface);
            color: var(--text);
            font-size: 13px;
            font-weight: 900;
            cursor: pointer;
        }

        #screen-study .audit-ox-mark + .audit-ox-mark {
            border-left: 1px solid #D5DBE5;
        }

        #screen-study .audit-ox-mark.selected {
            background: #EAF1FF;
            color: var(--primary);
            box-shadow: inset 0 0 0 2px rgba(36, 81, 223, 0.22);
        }

        #screen-study .audit-ox-mark.correct {
            background: #EFF8F1;
            color: #166534;
        }

        #screen-study .audit-ox-mark.wrong {
            background: #FFF3F2;
            color: #B42318;
        }

        #screen-study .audit-ox-mark:disabled {
            cursor: default;
        }

        #screen-study .audit-ox-reason-cell {
            min-height: 54px;
            background: var(--surface);
        }

        #screen-study .audit-ox-reason {
            display: block;
            width: 100%;
            min-height: 54px;
            height: 54px;
            padding: 13px 14px;
            border: 0;
            resize: vertical;
            background: var(--surface);
            color: var(--text);
            font-size: 12.5px;
            line-height: 1.55;
            outline: none;
        }

        #screen-study .audit-ox-reason:not(.active) {
            background: #F8FAFC;
            color: #94A3B8;
        }

        #screen-study .audit-ox-reason:focus {
            background: rgba(219, 234, 254, 0.45);
            box-shadow: inset 0 0 0 2px rgba(29, 78, 216, 0.35);
        }

        #screen-study .audit-ox-reason::placeholder {
            color: #8FA0B5;
        }

        #screen-study .audit-ox-status {
            margin: 8px 10px 0;
            font-size: 13px;
            font-weight: 900;
        }

        #screen-study .audit-ox-status.correct {
            color: #166534;
        }

        #screen-study .audit-ox-status.wrong {
            color: var(--primary);
        }

        #screen-study .audit-ox-help {
            padding: 8px 10px 10px;
            color: #64748B;
            font-size: 13px;
            line-height: 1.45;
        }

        #screen-study .oxset-context {
            margin-bottom: 12px;
            padding: 10px 14px;
            background: #F8FAFC;
            border-left: 3px solid #94A3B8;
            border-radius: 0 6px 6px 0;
            font-size: 13px;
            line-height: 1.65;
            color: var(--text);
            white-space: pre-wrap;
        }

        #screen-study .oxset-stem {
            margin-bottom: 10px;
        }

        #screen-study .oxset-question-label {
            display: inline-block;
            margin-right: 8px;
            font-weight: 900;
            color: var(--text);
        }

        #screen-study .exam-under {
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 3px;
            text-decoration-skip-ink: none;
        }
        /* 발문 부정어(옳지 않은/적절하지 않은/아닌 것 등) 강조 — 시험지 형식 */
        #screen-study .exam-neg {
            font-weight: 700;
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 3px;
            text-decoration-skip-ink: none;
        }

        /* ㄱ ㄴ ㄷ 보기 블록 — 전체를 테두리 박스로 묶음 (세무사·회계사 시험지 공통 디자인) */
        #screen-study .gnd-box {
            display: block;
            border: 1px solid var(--text-3, #6B7280);
            padding: 8px 14px;
            margin: 10px 0 6px;
            line-height: 1.8;
            text-indent: 0;
        }
        /* [보기]·지문 등 질문 본문은 드래그 선택·복사 가능 (선지 .choice-txt는 클릭응답용이라 none 유지) */
        #screen-study .prob-text, #screen-study .gnd-box,
        #screen-study .prob-text *, #screen-study .gnd-box * {
            user-select: text !important;
            -webkit-user-select: text !important;
        }

        /* ── 세무사 상법 기출 (세무사 ver.) ── */
        #screen-study .study-paper-box.semusa-sangbeop-mode .prob-text {
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', '바탕', serif !important;
            font-size: 23px !important;
            font-weight: 700 !important;
            line-height: 1.8 !important;
            color: var(--exam-line-color, var(--text)) !important;
            text-indent: 0 !important;
            padding-left: 0 !important;
            max-width: 43em !important;
            box-sizing: border-box !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }
        #screen-study .study-paper-box.semusa-sangbeop-mode .gnd-box {
            font-weight: 700 !important;
        }
        #screen-study .study-paper-box.semusa-sangbeop-mode + #choicesArea .choices {
            font-size: 23px !important;
            max-width: 43em !important;
            margin-left: auto !important;
            margin-right: auto !important;
            padding-left: 6px !important;
            padding-right: 6px !important;
            box-sizing: border-box !important;
        }
        #screen-study .study-paper-box.semusa-sangbeop-mode + #choicesArea .choice-row {
            grid-template-columns: 1.3em minmax(0, 1fr) !important;
            column-gap: 0.45em !important;
            margin-bottom: 4px !important;
            padding: 0 !important;
        }
        #screen-study .study-paper-box.semusa-sangbeop-mode + #choicesArea .choice-txt {
            line-height: 1.8 !important;
            font-size: 23px !important;
        }

        /* ── 세무사 기출 상법 (CPA ver.) ── */
        #screen-study .study-paper-box.cpa-kieopbeop-mode .prob-text {
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', '바탕', serif !important;
            font-size: 19px !important;
            font-weight: normal !important;
            line-height: 1.65 !important;
            color: var(--exam-line-color, var(--text)) !important;
            max-width: 31.4em !important;
            margin-left: auto !important;
            margin-right: auto !important;
            padding-left: 0 !important;
            text-indent: 0 !important;
        }
        #screen-study .study-paper-box.cpa-kieopbeop-mode .prob-text .problem-number,
        #screen-study .study-paper-box.cpa-kieopbeop-mode .prob-text u {
            font-weight: bold !important;
        }
        #screen-study .study-paper-box.cpa-kieopbeop-mode + #choicesArea .choices {
            font-size: 19px !important;
            max-width: 31.4em !important;
            margin-left: auto !important;
            margin-right: auto !important;
            padding-left: 6px !important;
            padding-right: 6px !important;
            box-sizing: border-box !important;
        }
        #screen-study .study-paper-box.cpa-kieopbeop-mode + #choicesArea .choice-row {
            grid-template-columns: 1.2em minmax(0, 1fr) !important;
            column-gap: 0.4em !important;
            margin-bottom: 10px !important;
            padding: 0 !important;
        }
        #screen-study .study-paper-box.cpa-kieopbeop-mode + #choicesArea .choice-row:last-child {
            margin-bottom: 0 !important;
        }
        #screen-study .study-paper-box.cpa-kieopbeop-mode + #choicesArea .choice-txt {
            line-height: 1.65 !important;
            font-size: 19px !important;
        }

        /* ── 전수 드릴(screen-adapt)도 같은 시험지 조판을 쓴다 ──
           #screen-study 는 study-paper-box 와 #choicesArea 가 형제(+)인데,
           드릴은 .prob-text/.choices 가 .adapt-qcard 안에 함께 들어 있어 선택자를 따로 둔다. */
        #screen-adapt .adapt-qcard.cpa-kieopbeop-mode .prob-text {
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', '바탕', serif !important;
            font-size: 19px !important;
            font-weight: normal !important;
            line-height: 1.65 !important;
            color: var(--exam-line-color, var(--text)) !important;
            max-width: 31.4em !important;
            margin-left: auto !important;
            margin-right: auto !important;
            padding-left: 0 !important;
            text-indent: 0 !important;
        }
        #screen-adapt .adapt-qcard.cpa-kieopbeop-mode .prob-text .problem-number,
        #screen-adapt .adapt-qcard.cpa-kieopbeop-mode .prob-text u {
            font-weight: bold !important;
        }
        #screen-adapt .adapt-qcard.cpa-kieopbeop-mode .choices {
            font-size: 19px !important;
            max-width: 31.4em !important;
            margin-left: auto !important;
            margin-right: auto !important;
            padding-left: 6px !important;
            padding-right: 6px !important;
            box-sizing: border-box !important;
        }
        #screen-adapt .adapt-qcard.cpa-kieopbeop-mode .choice-row {
            grid-template-columns: 1.2em minmax(0, 1fr) !important;
            column-gap: 0.4em !important;
            margin-bottom: 10px !important;
            padding: 0 !important;
        }
        #screen-adapt .adapt-qcard.cpa-kieopbeop-mode .choice-row:last-child {
            margin-bottom: 0 !important;
        }
        #screen-adapt .adapt-qcard.cpa-kieopbeop-mode .choice-txt {
            line-height: 1.65 !important;
            font-size: 19px !important;
        }

        #screen-study .oxset-choice-table {
            display: grid;
            grid-template-columns: 54px minmax(0, 1fr);
            border: none;
            background: #FBFCFD;
        }
        #screen-study .oxset-situation-box {
            /* 한국 CPA 시험지: 상황(①②③④)을 테두리 박스로 묶지 않고 본문에 나열 */
            border: none;
            padding: 2px 0;
            margin: 8px 0;
            line-height: 1.7;
        }
        #screen-study .oxset-situation-box .oxset-situation-item + .oxset-situation-item {
            margin-top: 13px;
        }
        /* 문단/의견 매칭형: 각 상황·사례를 테두리 박스로 제시 */
        #screen-study .oxset-situation-box.oxset-match-boxes .oxset-situation-item {
            border: 1px solid var(--exam-line-color, var(--text));
            border-radius: 6px;
            padding: 8px 12px;
        }
        #screen-study .oxset-situation-box.oxset-match-boxes .oxset-situation-item + .oxset-situation-item {
            margin-top: 10px;
        }
        /* 항목별 문단선택형: 상황 1~N을 하나의 각진 테두리 박스에 묶고, 항목은 구분선으로 분리 */
        #screen-study .oxset-situation-box.oxset-match-onebox {
            border: 1px solid var(--exam-line-color, var(--text));
            border-radius: 0;
            padding: 0;
        }
        #screen-study .oxset-situation-box.oxset-match-onebox .oxset-situation-item {
            border: none;
            border-radius: 0;
            padding: 9px 12px;
            margin: 0;
        }
        #screen-study .oxset-situation-box.oxset-match-onebox .oxset-situation-item + .oxset-situation-item {
            margin-top: 0;
        }
        #screen-study .oxset-bogi-label {
            margin: 12px 0 4px;
            font-weight: 700;
            color: var(--exam-line-color, var(--text));
            text-align: center;
        }
        #screen-study .oxset-bogi-row {
            display: flex;
            gap: 12px;
            margin: 0 0 2px;
            align-items: flex-start;
            flex-wrap: wrap;
        }
        #screen-study .oxset-bogi-table {
            flex: 1 1 0;
            min-width: 200px;
            border-collapse: collapse;
            border: 1px solid var(--exam-line-color, var(--text));
            font-size: 0.93em;
            line-height: 1.7;
        }
        #screen-study .oxset-bogi-table th {
            border: 1px solid var(--exam-line-color, var(--text));
            background: transparent;
            font-weight: 700;
            text-align: center;
            padding: 5px 10px;
        }
        #screen-study .oxset-bogi-table td {
            border: 1px solid var(--exam-line-color, var(--text));
            padding: 7px 12px;
            vertical-align: middle;
            text-align: center;
        }
        #screen-study .oxset-bogi-hint {
            margin-top: 8px;
            font-size: 0.9em;
            line-height: 1.7;
        }
        /* 문단/의견 매칭형: <보기>를 테두리 박스로 발문 아래 제시 */
        #screen-study .oxset-bogi-hint.oxset-bogi-box-on {
            border: 1px solid var(--exam-line-color, var(--text));
            border-radius: 6px;
            padding: 8px 12px;
            margin-top: 10px;
        }
        /* 항목별 문단선택형: <보기>를 상황 박스 아래에 각진 테두리로 */
        #screen-study .oxset-bogi-hint.oxset-bogi-angular {
            border-radius: 0;
        }
        #screen-study .oxset-bogi-hint-label {
            font-weight: 700;
            margin-bottom: 3px;
        }
        #screen-study .oxset-bogi-hint-box {
            /* 한국 CPA 2차 감사 시험지: [보기]는 테두리 박스로 묶지 않고 본문에 나열 */
            padding: 2px 0;
        }
        #screen-study .oxset-bogi-hint-items {
            display: flex;
            flex-direction: column;
            gap: 2px 0;
        }
        #screen-study .oxset-bogi-hint-item {
            display: inline-block;
            white-space: nowrap;
        }
        #screen-study .oxset-bogi-hint.bogi-draggable .oxset-bogi-hint-label {
            cursor: grab;
            user-select: none;
        }
        #screen-study .oxset-bogi-hint.bogi-draggable .oxset-bogi-hint-label::after {
            content: ' ☰';
            font-size: 0.75em;
            opacity: 0.45;
            margin-left: 4px;
        }
        .oxset-bogi-hint.bogi-floating {
            position: fixed !important;
            z-index: 9100 !important;
            background: var(--surface) !important;
            border: 1px solid #374151 !important;
            border-radius: 4px !important;
            box-shadow: 0 4px 16px rgba(0,0,0,0.18) !important;
            margin: 0 !important;
            padding: 8px 12px !important;
            max-width: 420px;
        }
        .oxset-bogi-hint.bogi-floating .oxset-bogi-hint-label {
            cursor: grabbing;
        }
        /* dual-choice 3열(항목 | 의견 | 문단) + 전체폭 피드백 */
        #screen-study .oxset-table.dual-3col,
        #screen-study .oxset-table.dual-3col .oxset-table-row {
            grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr) !important;
        }
        #screen-study .oxset-table.freetext-3col,
        #screen-study .oxset-table.freetext-3col .oxset-table-row {
            grid-template-columns: max-content 110px minmax(0, 1fr) !important;
        }
        #screen-study .oxset-table.freetext-3col .oxset-text-input {
            text-align: left;
        }
        #screen-study .oxset-table.item-2col,
        #screen-study .oxset-table.item-2col .oxset-table-row {
            grid-template-columns: 100px minmax(0, 1fr) !important;
        }
        #screen-study .oxset-table.dual-3col .oxset-no-cell,
        #screen-study .oxset-table.item-2col .oxset-no-cell {
            white-space: nowrap !important;
            padding-left: 8px !important;
            padding-right: 8px !important;
        }
        #screen-study .oxset-table.dual-3col .oxset-table-head.last { border-right: none !important; }
        #screen-study .oxset-table.freetext-3col .oxset-table-head.last { border-right: none !important; }
        #screen-study .oxset-table.freetext-3col .oxset-no-cell { white-space: nowrap !important; padding-left: 6px !important; padding-right: 6px !important; }
        /* 상황형(sit-row): 항목 레이블이 전체 열을 차지하고 아래 행에 입력란 */
        #screen-study .oxset-table.dual-3col .oxset-sit-row .oxset-no-cell { grid-column: 1 / -1 !important; white-space: normal !important; background: #F3F4F6; font-weight: 600; }
        #screen-study .oxset-table.dual-3col .oxset-sit-spacer { visibility: hidden; min-height: 0; padding: 0 !important; }
        #screen-study .oxset-dual-feedback {
            grid-column: 1 / -1;
            padding: 8px 12px;
            border-top: 1px solid var(--exam-line-color, var(--text));
            font-size: 0.92em;
            line-height: 1.6;
            background: #F8FAFC;
        }

        #screen-study .oxset-choice-row {
            display: contents;
        }

        #screen-study .oxset-choice-no,
        #screen-study .oxset-choice-text {
            min-height: 42px;
            padding: 8px 10px;
            border-bottom: 1px solid var(--exam-line-color, var(--text));
            background: #FBFCFD;
        }

        #screen-study .oxset-choice-row:last-child .oxset-choice-no,
        #screen-study .oxset-choice-row:last-child .oxset-choice-text {
            border-bottom: 0;
        }

        #screen-study .oxset-choice-list {
            display: grid;
            gap: 4px;
        }

        #screen-study .oxset-choice-no {
            color: var(--exam-line-color, var(--text));
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif;
            font-size: 15px;
            font-weight: 650;
            letter-spacing: -0.02em;
            text-align: center;
            border-right: 1px solid var(--exam-line-color, var(--text));
        }

        #screen-study .oxset-choice-text {
            min-width: 0;
            word-break: keep-all;
            overflow-wrap: break-word;
            line-height: 1.65;
        }

        #screen-study .oxset-choice-row.result-wrong .oxset-choice-no,
        #screen-study .oxset-choice-row.result-wrong .oxset-choice-text {
            color: var(--primary) !important;
            font-weight: 800 !important;
        }

        #screen-study .oxset-answer-sheet {
            width: 100%;
            max-width: var(--study-paper-width);
            margin: 14px auto 0;
            border: 0;
            background: transparent;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
        }

        #screen-study .oxset-title {
            margin: 0 0 6px;
            padding: 0;
            border: 0;
            color: var(--text);
            font-size: 14px;
            font-weight: 900;
        }

        #screen-study .oxset-table {
            display: grid;
            grid-template-columns: 90px 156px minmax(0, 1fr);
            border: 1px solid var(--exam-line-color, var(--text));
            background: #FBFCFD;
        }

        #screen-study .oxset-table.dual-choice,
        #screen-study .oxset-table.dual-choice .oxset-table-row {
            grid-template-columns: 90px 110px 110px minmax(0, 1fr);
        }

        #screen-study .oxset-table-head {
            min-height: 36px;
            padding: 8px 10px;
            border-bottom: 1px solid var(--exam-line-color, var(--text));
            border-right: 1px solid var(--exam-line-color, var(--text));
            color: #334155;
            font-size: 12.5px;
            font-weight: 900;
            text-align: center;
            line-height: 1.35;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #screen-study .oxset-table-head.reason {
            border-right: none;
        }

        #screen-study .oxset-table-row {
            display: grid;
            grid-template-columns: 90px 156px minmax(0, 1fr);
            grid-column: 1 / -1;
            min-height: 52px;
            border-bottom: 1px solid var(--exam-line-color, var(--text));
        }

        #screen-study .oxset-table-row:last-child {
            border-bottom: none;
        }

        #screen-study .oxset-no-cell,
        #screen-study .oxset-choice-cell {
            border-right: 1px solid var(--exam-line-color, var(--text));
        }

        #screen-study .oxset-no-cell {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            background: #EEF2F6;
            color: var(--text);
            font-size: 13px;
            font-weight: 900;
            white-space: nowrap;
        }

        #screen-study .oxset-row-status {
            font-size: 10px;
            line-height: 1.1;
            white-space: nowrap;
        }

        #screen-study .oxset-row-status.correct {
            color: #166534;
        }

        #screen-study .oxset-row-status.wrong {
            color: var(--primary);
        }

        #screen-study .oxset-choice-cell {
            display: grid;
            place-items: center;
            background: var(--surface);
        }

        #screen-study .oxset-mark {
            min-height: 52px;
            border: 0;
            background: var(--surface);
            color: var(--text);
            font-size: 17px;
            font-weight: 900;
            cursor: pointer;
        }

        #screen-study .oxset-mark + .oxset-mark {
            border-left: 1px solid #D5DBE5;
        }

        #screen-study .oxset-mark.selected {
            background: #EAF1FF;
            color: var(--primary);
            box-shadow: inset 0 0 0 2px rgba(36, 81, 223, 0.22);
        }

        #screen-study .oxset-mark.correct {
            background: #EFF8F1;
            color: #166534;
        }

        #screen-study .oxset-mark.wrong {
            background: #EAF1FF;
            color: var(--primary);
        }

        #screen-study .oxset-mark:disabled {
            cursor: default;
        }

        #screen-study .oxset-reason-cell {
            background-color: var(--surface);
        }

        #screen-study .oxset-reason-expected {
            font-size: 11px;
            color: #B91C1C;
            margin-top: 2px;
        }

        #screen-study .oxset-reason {
            display: block;
            width: 100%;
            min-height: 52px;
            height: 52px;
            padding: 12px 13px;
            border: 0;
            resize: vertical;
            background-color: transparent;
            background-image: var(--dot-bg-img);
            background-size: 5px 32px;
            background-position: 0 12px;
            background-attachment: local;
            color: var(--text);
            font-size: 14px;
            line-height: 32px;
            outline: none;
        }

        #screen-study .oxset-reason-feedback {
            min-height: 52px;
            padding: 10px 12px;
            color: var(--text);
            font-family: var(--exam-serif-font, 'Batang', '바탕', 'KoPub World Batang', 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif);
            font-size: 14px;
            line-height: 32px;
            letter-spacing: -0.018em;
            white-space: pre-line;
            word-break: keep-all;
            overflow-wrap: anywhere;
        }

        #screen-study .oxset-reason-feedback-wrap {
            min-height: 52px;
            display: block;
            padding: 9px 12px 8px;
        }

        #screen-study .oxset-reason-feedback-wrap .oxset-reason-feedback {
            min-height: 0;
            padding: 0;
            display: inline;
        }

        #screen-study .oxset-reason-feedback-wrap .oxset-item-ambiguous-btn {
            display: inline;
            margin-left: 10px;
            vertical-align: baseline;
        }

        #screen-study .oxset-reason:not(.active) {
            background: #F8FAFC;
            color: #94A3B8;
        }

        #screen-study .oxset-help {
            padding: 8px 10px 10px;
            color: #64748B;
            font-size: 13px;
            line-height: 1.45;
        }

        #screen-study .oxset-total-result {
            margin-top: 10px;
            min-height: 44px;
            display: flex;
            align-items: center;
            padding: 9px 14px;
            border: 1px solid #D7E5D9;
            background: #F8FCF8;
            color: #2F6B43;
            font-size: 15px;
            font-weight: 800;
        }

        #screen-study .oxset-total-result.wrong {
            border-color: #F0D2D2;
            background: #FFF9F9;
            color: #9F3D3D;
        }

        @media (max-width: 767px) {
            #screen-study .audit-ox-table {
                grid-template-columns: 96px minmax(0, 1fr);
            }

            #screen-study .audit-ox-mark {
                font-size: 16px;
            }

            #screen-study .audit-ox-reason {
                min-height: 72px;
                height: 72px;
            }

            #screen-study .oxset-table,
            #screen-study .oxset-table-row {
                grid-template-columns: 48px 104px minmax(0, 1fr);
            }

            #screen-study .oxset-table.dual-choice,
            #screen-study .oxset-table.dual-choice .oxset-table-row {
                grid-template-columns: 48px 80px 80px minmax(0, 1fr);
            }

            #screen-study .oxset-mark {
                font-size: 15px;
            }

            #screen-study .oxset-reason {
                min-height: 66px;
                height: 66px;
            }

            /* 감사·OX 시험지 표: 폰에서 폭이 넘칠 때 시험지 폭을 화면에 맞추고
               넘치는 폭은 컨테이너 안에서 가로 스크롤(레이아웃·시험지 모양 유지). */
            #screen-study .audit-ox-sheet,
            #screen-study .single-audit-ox-sheet,
            #screen-study .oxset-answer-sheet {
                max-width: 100%;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
        }

        /* ?�?� 결과 ?�면 ?�?� */
        .result-header { text-align: center; margin-bottom: 24px; }
        .result-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
        .result-sub { font-size: 14px; color: var(--text-3); }
        .result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
        .result-card { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-align: center; }
        .result-card-label { font-size: 12px; color: #6B7280; margin-bottom: 6px; }
        .result-card-value { font-size: 28px; font-weight: 700; }
        .result-card-value.green { color: var(--success); }
        .result-card-value.red { color: var(--danger); }
        .review-notice {
            padding: 12px 16px; border-radius: 10px; font-size: 14px;
            font-weight: 500; text-align: center; margin-bottom: 16px;
        }
        .review-notice.wrong { background: #FFF7ED; border: 1px solid #FDBA74; color: #C2410C; }
        .review-notice.perfect { background: var(--success-soft); border: 1px solid var(--success-border); color: var(--success); }
        .review-notice-sub { font-size: 12px; font-weight: 400; margin-top: 3px; opacity: 0.8; }

        /* ?�?� ��� ?�?� */
        .period-chips { display: flex; gap: 8px; margin-bottom: 20px; }
        .period-chip {
            padding: 6px 14px; border-radius: 999px; font-size: 13px;
            font-weight: 600; border: 1.5px solid var(--border);
            background: var(--surface); color: var(--text-2);
            cursor: pointer; transition: all 0.15s;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
        }
        .period-chip.active { background: var(--primary-soft); border-color: var(--primary-border); color: var(--primary-border); }
        .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
        .stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
        .stat-card-label { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
        .stat-card-value { font-size: 28px; font-weight: 700; }
        .stat-card-value.blue { color: var(--primary); }
        .stat-card-value.green { color: var(--success); }
        .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
        .section-link { font-size: 13px; color: var(--primary); font-weight: 500; cursor: pointer; }
        .subject-stat-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; }
        .subject-stat-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
        .subject-stat-name { font-size: 15px; font-weight: 600; }
        .subject-stat-pct { font-size: 15px; font-weight: 700; }
        .subject-stat-pct.high { color: var(--primary); }
        .subject-stat-pct.mid { color: #D97706; }
        .subject-stat-pct.low { color: var(--danger); }
        .stat-bar { height: 6px; background: #F3F4F6; border-radius: 999px; overflow: hidden; margin-bottom: 4px; }
        .stat-bar-fill { height: 100%; border-radius: 999px; }
        .stat-bar-fill.high { background: var(--primary); }
        .stat-bar-fill.mid { background: #D97706; }
        .stat-bar-fill.low { background: var(--danger); }
        .subject-stat-meta { font-size: 12px; color: var(--text-3); }
        .weak-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s; }
        .weak-item:hover { background: #F9FAFB; }
        .weak-item-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
        .weak-item-q { font-family: 'Noto Serif CJK KR', serif; font-size: 14px; color: var(--text); line-height: 1.55; letter-spacing: -0.03em; word-break: keep-all; flex: 1; padding-right: 12px; }
        .weak-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; flex-shrink: 0; }
        .weak-badge.red { background: #FEE2E2; color: var(--danger); }
        .weak-badge.orange { background: #FFEDD5; color: #C2410C; }
        .weak-meta { font-size: 12px; color: var(--text-3); }
        .recent-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; }
        .recent-left { display: flex; flex-direction: column; gap: 3px; }
        .recent-title { font-size: 14px; font-weight: 600; }
        .recent-meta { font-size: 12px; color: var(--text-3); }
        .recent-score { font-size: 16px; font-weight: 700; text-align: right; }
        .recent-score.high { color: var(--success); }
        .recent-score.mid { color: #D97706; }
        .recent-date { font-size: 12px; color: var(--text-3); text-align: right; }

        /* ?�?� ???�면 ?�?� */
        .home-wrap {
            padding: 28px 0 40px;
        }

        .main-topbar {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 18px;
        }

        .user-badge {
            appearance: none;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text);
            border-radius: 999px;
            padding: 10px 14px;
            font-size: 13px;
            font-weight: 700;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            cursor: pointer;
            transition: transform .15s ease, border-color .15s ease, background .15s ease;
        }

        .user-badge:hover {
            transform: translateY(-1px);
            border-color: var(--primary);
        }

        .user-badge.logged-in {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: var(--surface);
            border-color: transparent;
        }

        .user-badge-name,
        .user-badge-action {
            color: inherit;
            font: inherit;
        }

        .user-badge-divider {
            color: rgba(255, 255, 255, 0.75);
            margin: 0 6px;
            font-weight: 700;
        }

        .home-header {
            margin-bottom: 0;
        }

        .home-title {
            font-size: 30px;
            font-weight: 800;
            color: var(--text);
            letter-spacing: -0.5px;
            line-height: 38px;
            margin-top: 0;
            margin-bottom: 0;
        }

        .home-subtitle {
            font-size: 17px;
            color: var(--text-3);
            margin-top: 8px;
            margin-bottom: 0;
        }

        /* 대시보드형 헤더: 인사(이름) + 시험 D-day */
        .home-greet {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-3);
            margin-bottom: 5px;
        }
        .home-dday {
            font-size: 22px;
            font-weight: 800;
            color: var(--text);
            letter-spacing: -0.5px;
            line-height: 30px;
            display: flex;
            align-items: baseline;
            gap: 8px;
            flex-wrap: wrap;
        }
        .home-dday-label { font-size: 19px; font-weight: 700; color: var(--text-2, #475569); white-space: nowrap; }
        .home-dday-num { font-size: 27px; font-weight: 900; color: var(--primary, #0B8281); white-space: nowrap; }

        .home-primary-btn {
            margin-top: 36px;
            width: 100%;
            height: 90px;
            background: var(--primary);
            border: none;
            border-radius: 22px;
            color: var(--surface);
            font-size: 23px;
            font-weight: 800;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
            letter-spacing: -0.3px;
            box-shadow: 0 10px 24px rgba(29, 78, 216, 0.16);
        }

        .home-primary-btn:hover { background: var(--primary-strong); transform: translateY(-1px); }

        /* 오늘 ?숈뒿 移대뱶 */
        .home-today-card {
            margin-top: 16px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 18px 20px;
        }

        .home-today-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-3);
            letter-spacing: 0.3px;
            margin-bottom: 14px;
        }

        .home-today-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr;
            gap: 0;
        }

        .home-today-stat {
            text-align: center;
        }

        .home-today-stat + .home-today-stat {
            border-left: 1px solid var(--border);
        }

        .home-today-val {
            font-size: 22px;
            font-weight: 700;
            color: var(--text);
            letter-spacing: -0.3px;
            margin-bottom: 4px;
        }

        .home-today-label {
            font-size: 11px;
            color: var(--text-3);
            font-weight: 500;
        }

        .home-today-hint {
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
            font-size: 13px;
            color: var(--text-3);
            text-align: center;
        }

        /* ?�어?��?카드 */
        .home-resume-card {
            margin-top: 12px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            transition: background 0.15s, border-color 0.15s;
        }

        .home-resume-card:hover {
            background: #F9FAFB;
            border-color: var(--border-strong);
        }

        .home-resume-label {
            font-size: 12px;
            font-weight: 700;
            color: var(--primary);
            letter-spacing: 0.2px;
            margin-bottom: 4px;
        }

        .home-resume-title {
            font-size: 15px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 3px;
        }

        .home-resume-meta {
            font-size: 12px;
            color: var(--text-3);
        }

        .home-resume-arrow {
            font-size: 22px;
            color: var(--border-strong);
            line-height: 1;
        }

        .home-advanced-card {
            width: 100%;
            min-height: 64px;
            margin-top: 0;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 14px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            cursor: pointer;
            transition: all 0.15s;
            text-align: left;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
        }
        .home-advanced-card:hover {
            background: #F9FAFB;
            border-color: var(--border-strong);
        }
        .home-advanced-left {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }
        .home-advanced-icon {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: #EEF2FF;
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .home-advanced-label {
            display: block;
            font-size: 15px;
            font-weight: 600;
            color: var(--text);
            letter-spacing: 0;
            margin-bottom: 2px;
        }
        .home-advanced-title {
            display: none;
        }
        .home-advanced-meta {
            display: block;
            font-size: 12px;
            color: var(--text-3);
            line-height: 1.4;
        }
        .home-advanced-arrow {
            font-size: 18px;
            color: var(--border-strong);
            line-height: 1;
            flex-shrink: 0;
        }

        /* 보조 메뉴 */
        .home-menu-list {
            margin-top: 12px;
            display: grid;
            gap: 12px;
        }

        .home-menu-btn {
            width: 100%;
            height: 64px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 18px;
            font-size: 17px;
            font-weight: 700;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            color: var(--text);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0 20px;
            transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
            letter-spacing: -0.2px;
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
        }

        .home-menu-btn:hover {
            background: #F9FAFB;
            border-color: var(--border-strong);
            transform: translateY(-1px);
        }

        .home-menu-icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-2);
            flex-shrink: 0;
        }

        .home-menu-icon-bookmark {
            color: #ff4b55;
        }

        /* ?�?� ?�동?�거 ?��? ?�?� */
        .auto-remove-toggle {
            display: flex; align-items: center; justify-content: space-between;
            padding: 8px 12px; margin-bottom: 12px;
            background: var(--bg); border-radius: 8px;
            cursor: pointer; user-select: none;
            border: 1px solid var(--border);
        }
        .auto-remove-toggle:hover { background: #F1F5F9; }
        .auto-remove-label {
            font-size: 12px; font-weight: 600; color: var(--text-2);
        }

        /* ?좉? ?ㅼ쐞移?*/
        .toggle-switch {
            width: 36px; height: 20px; border-radius: 999px;
            background: var(--border-strong); position: relative;
            transition: background 0.2s; flex-shrink: 0;
        }
        .toggle-switch.on { background: var(--primary); }
        .toggle-thumb {
            position: absolute; top: 2px; left: 2px;
            width: 16px; height: 16px; border-radius: 50%;
            background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,0.2);
            transition: transform 0.2s;
        }
        .toggle-switch.on .toggle-thumb { transform: translateX(16px); }

        /* 맞춘 ?�수 ?�시 */
        .sa-count-row {
            display: flex; align-items: center; gap: 8px;
            padding-top: 8px; margin-top: 8px;
            border-top: 1px solid var(--border);
        }
        .sa-count-label { font-size: 12px; color: var(--text-3); }
        .sa-count-val {
            font-size: 13px; font-weight: 700;
            color: var(--text-2);
            background: #F3F4F6; padding: 2px 8px; border-radius: 999px;
        }
        .sa-count-val.mastered {
            background: #D1FAE5; color: #065F46;
        }
        .sa-removed-badge {
            font-size: 11px; font-weight: 700;
            background: #FEF9C3; color: #92400E;
            padding: 2px 8px; border-radius: 999px;
        }
        .sa-auto-msg {
            font-size: 11px; font-weight: 500;
            color: var(--text-3); margin-top: 4px;
        }

        /* ?�?� ?�답???�?� */
        .sa-context {
            font-family: 'Noto Serif CJK KR', serif;
            font-size: 15px; line-height: 1.86;
            color: var(--text); letter-spacing: -0.02em;
            word-break: normal; overflow-wrap: anywhere;
            margin-bottom: 20px; padding: 20px 22px;
            background: linear-gradient(180deg, #FFFEFB 0%, #FCFAF4 100%);
            border: 1px solid var(--border);
            border-radius: 16px;
            box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
            display: block;
            white-space: pre-wrap;
        }
        /* 異쒖쿂 ?쒖떆 */
        .sa-source {
            font-size: 12px; color: #374151; font-weight: 500;
            margin-top: 10px; padding: 8px 12px;
            background: var(--bg); border-radius: 8px;
            line-height: 1.5;
        }
        .sa-blank-inline { display: inline; }
        .sa-inline-answer {
            display: inline;
            gap: 0.16em;
            white-space: nowrap;
            vertical-align: baseline;
            margin: 0 -0.08em;
            padding: 0 0.08em;
            cursor: text;
            border-radius: 0.16em;
            transition: font-weight 0.12s ease, color 0.12s ease;
        }
        .sa-inline-answer.has-value:not(.is-active) {
            gap: 0;
            margin: 0;
            padding: 0;
        }
        .sa-inline-paren {
            color: var(--text);
            font-family: 'Noto Serif CJK KR', serif;
            line-height: 1;
            pointer-events: none;
            font-weight: 500;
            transition: font-weight 0.12s ease, color 0.12s ease, transform 0.12s ease;
        }
        .sa-inline-answer.is-active .sa-inline-paren {
            color: #020617;
            font-weight: 500;
            transform: translateY(-0.01em);
        }
        .sa-inline-answer.has-value .sa-inline-paren {
            display: none;
        }
        .sa-inline-input {
            appearance: none;
            -webkit-appearance: none;
            display: inline-block;
            width: var(--sa-inline-width, 5ch);
            min-width: 3.5ch;
            max-width: min(28ch, 58vw);
            height: 1.08em;
            box-sizing: content-box;
            border: 0;
            border-bottom: 1.6px solid transparent;
            border-radius: 0;
            background: transparent;
            color: var(--text);
            font-family: inherit;
            font-size: 1em;
            font-style: inherit;
            font-variant: inherit;
            letter-spacing: inherit;
            line-height: 1;
            text-align: center;
            padding: 0 0.08em;
            outline: none;
            vertical-align: -0.04em;
            transition: width 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
        }
        .sa-inline-input::placeholder {
            color: transparent;
            opacity: 0;
        }
        .sa-inline-input:focus::placeholder,
        .sa-inline-input.has-value::placeholder {
            color: transparent;
            opacity: 0;
        }
        .sa-inline-input:focus {
            border-bottom-color: transparent;
            background: transparent;
            outline: none;
            box-shadow: none;
        }
        .sa-inline-answer.is-active .sa-inline-input {
            color: #020617;
            font-weight: 400;
        }
        .sa-inline-answer.has-value.is-active .sa-inline-input {
            padding: 0;
        }
        .sa-inline-answer.has-value:not(.is-active) .sa-inline-input {
            min-width: 0;
            height: 1em;
            padding: 0;
            text-align: left;
            font-family: inherit;
            font-size: 1em;
            letter-spacing: inherit;
            line-height: 1;
            vertical-align: -0.03em;
            font-weight: 400;
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 0.13em;
        }
        /* table �� ���� �ܴ��� ��ĭ: ��ȣ ����, ���� ����, ��� ���� */
        td .sa-inline-paren { display: none !important; }
        td .sa-inline-answer.has-value:not(.is-active) .sa-inline-input {
            text-decoration: none;
            text-align: center;
            font-weight: 600;
        }
        td .sa-inline-answer.is-active .sa-inline-input,
        td .sa-inline-input {
            text-align: center;
        }
        .sa-inline-input[readonly] {
            cursor: default;
        }
        .sa-inline-answer.is-correct .sa-inline-input {
            border-bottom-color: #15803D;
            color: #166534;
        }
        .sa-inline-answer.is-wrong .sa-inline-input {
            border-bottom-color: #B42318;
            color: #B42318;
        }
        .sa-inline-answer.is-wrong.show-correct .sa-inline-input {
            color: #166534;
            border-bottom-color: #15803D;
            font-weight: 800;
        }
        .sa-inline-correct {
            margin-left: 0.22em;
            color: #166534;
            font-size: 0.92em;
            font-weight: 700;
        }
        .sa-blank-box {
            display: inline-block;
            min-width: 32px; height: 18px;
            border-bottom: 2px solid #94A3B8;
            margin: 0 1px; vertical-align: bottom;
            font-family: monospace; font-size: 12px;
            color: #94A3B8; text-align: center;
        }
        .line-limit-mark {
            font-weight: 900;
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 0.14em;
        }
        .sa-blank-slot {
            display: inline-flex;
            align-items: baseline;
            justify-content: center;
            margin: 0 1px;
            padding: 0;
            border: 0;
            background: none;
            color: inherit;
            font: inherit;
            font-weight: inherit;
            line-height: inherit;
            vertical-align: baseline;
            white-space: nowrap;
        }
        .sa-blank-slot.sa-filled-slot {
            padding: 0 1px;
            min-height: auto;
            border-radius: 0;
            background: transparent;
            border: none;
            color: inherit;
            font-weight: inherit;
        }
        .sa-blank-slot.sa-answer-fill {
            display: inline;
            padding: 0;
            margin: 0;
            color: inherit;
            font-weight: inherit;
        }
        .sa-blank-slot-label {
            font: inherit;
            color: inherit;
            letter-spacing: inherit;
        }
        .sa-answer-layout {
            margin-top: 6px;
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 16px;
            align-items: start;
        }
        .sa-answer-layout.has-feedback {
            grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
        }
        .sa-input-area {
            margin-top: 0;
            padding: 10px 12px 8px;
            border-radius: 0;
            border: 1px solid #BDC4CC;
            background: linear-gradient(180deg, #FBFBF9 0%, #F3F4F6 100%);
            box-shadow: none;
        }
        .sa-feedback-inline {
            min-width: 0;
            align-self: start;
            justify-self: end;
            width: 100%;
            max-width: 280px;
        }
        .sa-panel-head {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 6px;
        }
        .sa-panel-title-wrap {
            display: flex;
            align-items: center;
            gap: 0;
            min-width: 0;
        }
        .sa-panel-kicker {
            font-size: 15.2px;
            font-weight: 700;
            color: #374151;
            letter-spacing: -0.01em;
        }
        .sa-panel-meta {
            display: none;
        }
        .sa-panel-chip {
            display: none;
        }
        .sa-input {
            width: 100%; height: 52px;
            border: 1.5px solid var(--border); border-radius: 14px;
            padding: 0 18px; font-size: 16px;
            font-family: 'Noto Serif CJK KR', serif;
            color: var(--text); outline: none;
            transition: border-color 0.15s;
        }
        .sa-input:focus { border-color: var(--primary-border); }
        .sa-pair-table {
            margin-top: 0;
            display: grid;
            gap: 0;
        }
        .sa-answer-note {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            font-size: 12px;
            color: var(--text-3);
            padding: 0;
            letter-spacing: -0.01em;
        }
        .sa-answer-chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 5px 10px;
            border-radius: 999px;
            background: var(--primary-soft);
            color: var(--primary-border);
            border: 1px solid var(--primary-border);
            font-size: 12px;
            font-weight: 700;
            line-height: 1;
            letter-spacing: -0.01em;
        }
        .sa-pair-row {
            display: grid;
            grid-template-columns: 44px minmax(0, 1fr);
            gap: 0;
            align-items: center;
        }
        .sa-pair-a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            min-height: 46px;
            padding: 0;
            border-radius: 0;
            background: #F8FAFC;
            border: none;
            border-right: 1px solid var(--border-strong);
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            font-size: 14.8px;
            font-weight: 700;
            color: #475569;
            letter-spacing: -0.01em;
            box-sizing: border-box;
        }
        .sa-pair-b {
            min-width: 0;
            display: flex;
            align-items: stretch;
        }
        .sa-slot-input {
            margin: 0;
            border-radius: 0;
            min-height: 46px;
            padding-left: 14px;
            padding-right: 14px;
            background: var(--surface);
            border: none;
            box-shadow: none;
            font-size: 16.2px;
            line-height: 1.35;
        }
        .sa-slot-input::placeholder {
            color: #94A3B8;
        }
        .sa-slot-view {
            min-height: 54px;
            display: flex;
            align-items: center;
            padding: 0 16px;
            border: 1.5px solid var(--border);
            border-radius: 14px;
            background: var(--surface);
            font-family: 'Noto Serif CJK KR', serif;
            font-size: 16px;
            line-height: 1.5;
            color: var(--text);
            box-sizing: border-box;
            white-space: pre-wrap;
        }
        .sa-slot-view.correct { border-color: var(--success-border); color: var(--success); }
        .sa-slot-view.wrong { border-color: var(--danger-border); color: var(--danger); }
        .sa-slot-view.empty { color: var(--text-3); }
        .sa-result-area {
            height: auto;
            background: linear-gradient(180deg, var(--surface) 0%, #FBFCFE 100%);
            border: 1px solid #DFE7F3;
            border-radius: 16px;
            padding: 12px 14px;
            display: grid;
            gap: 10px;
            align-content: start;
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
        }
        .sa-result-area.compact-single {
            padding: 10px 12px;
            gap: 8px;
        }
        .sa-result-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
        }
        .sa-result-title {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }
        .sa-result-title-text {
            font-size: 14px;
            font-weight: 800;
            color: #0F172A;
            letter-spacing: -0.02em;
        }
        .sa-result-sub {
            display: none;
        }
        .sa-result-chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 5px 9px;
            border-radius: 999px;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text);
            font-size: 11px;
            font-weight: 800;
            line-height: 1;
            letter-spacing: -0.01em;
        }
        .sa-result-chip.good {
            border-color: var(--success-border);
            background: rgba(34, 197, 94, 0.08);
            color: var(--success);
        }
        .sa-result-chip.bad {
            border-color: var(--danger-border);
            background: rgba(239, 68, 68, 0.08);
            color: var(--danger);
        }
        .sa-result-next {
            display: none;
        }
        .sa-result-chip.warn {
            border-color: rgba(245, 158, 11, 0.35);
            background: rgba(245, 158, 11, 0.10);
            color: #B45309;
        }
        .sa-result-summary {
            font-size: 15px;
            font-weight: 700;
            color: var(--text);
            letter-spacing: -0.02em;
        }
        .sa-result-corrections {
            display: grid;
            gap: 6px;
            margin-top: 2px;
        }
        .sa-result-correction-row {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            gap: 8px;
            padding: 7px 8px;
            border: 1px solid #E7ECF4;
            background: var(--surface);
            border-radius: 10px;
        }
        .sa-result-correction-no {
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            font-size: 12px;
            font-weight: 800;
            color: #475569;
            white-space: nowrap;
        }
        .sa-result-correct-word {
            color: var(--primary);
            font-weight: 700;
            font-style: normal;
        }
        .sa-result-correction-text {
            min-width: 0;
            font-size: 13px;
            font-weight: 500;
            color: #64748B;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .sa-accept-btn {
            border: 0;
            background: transparent;
            color: #2563EB;
            font-size: 12px;
            font-weight: 800;
            padding: 4px 2px;
            cursor: pointer;
            white-space: nowrap;
        }
        .sa-accept-btn:hover {
            color: var(--primary);
            text-decoration: underline;
            text-underline-offset: 3px;
        }
        .sa-extra-result-area {
            margin-top: 8px;
            padding: 6px 10px;
            border-top: 1px solid var(--border);
            font-size: 0.85em;
        }
        .sa-extra-result-label {
            display: block;
            font-weight: 600;
            color: #6b7280;
            margin-bottom: 4px;
            font-size: 0.9em;
        }
        .sa-extra-result-row {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 2px 0;
        }
        .sa-extra-sym { font-weight: 700; min-width: 14px; }
        .sa-extra-sym.correct { color: var(--primary); }
        .sa-extra-sym.wrong { color: #dc2626; }
        .sa-extra-phrase { color: #374151; }
        .sa-extra-userans { color: #9ca3af; }
        .sa-extra-remove-btn {
            margin-left: auto; border: none; background: none;
            color: var(--border-strong); cursor: pointer; font-size: 0.85em; padding: 0 2px;
        }
        .sa-extra-remove-btn:hover { color: #dc2626; }
        .sa-extra-blank-mark {
            font-weight: 700;
        }
        .sa-partial-hint {
            color: inherit;
            font-size: inherit;
            font-weight: inherit;
            padding-right: 1px;
            user-select: text;
        }
        .sa-partial-btn {
            border: 1px solid var(--border-strong);
            background: transparent;
            color: #6b7280;
            font-size: 11px;
            font-weight: 500;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            -webkit-tap-highlight-color: transparent;
            padding: 3px 8px;
            border-radius: 6px;
            cursor: pointer;
            white-space: nowrap;
            line-height: 1.5;
        }
        .sa-partial-btn:hover { background: #f3f4f6; color: #374151; border-color: #9ca3af; }
        .sa-result-sub {
            display: none;
        }
        .sa-blank-result-list {
            display: grid;
            gap: 8px;
        }
        .sa-blank-result-row {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            align-items: start;
            gap: 10px;
            padding: 10px 11px;
            border-radius: 12px;
            background: var(--surface);
            border: 1px solid var(--border);
        }
        .sa-blank-result-row.correct {
            border-color: var(--success-border);
        }
        .sa-blank-result-row.wrong {
            border-color: var(--danger-border);
        }
        .sa-blank-result-meta {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            flex-wrap: nowrap;
        }
        .sa-blank-result-tag {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 42px;
            padding: 5px 8px;
            border-radius: 999px;
            background: var(--primary-soft);
            color: var(--primary-border);
            border: 1px solid var(--primary-border);
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: -0.01em;
            line-height: 1;
        }
        .sa-blank-result-row.correct .sa-blank-result-tag {
            background: rgba(34, 197, 94, 0.08);
            color: var(--success);
            border-color: var(--success-border);
        }
        .sa-blank-result-row.wrong .sa-blank-result-tag {
            background: rgba(239, 68, 68, 0.08);
            color: var(--danger);
            border-color: var(--danger-border);
        }
        .sa-blank-result-body {
            min-width: 0;
            display: grid;
            gap: 6px;
        }
        .sa-answer-line {
            display: grid;
            grid-template-columns: 30px minmax(0, 1fr);
            gap: 8px;
            align-items: baseline;
        }
        .sa-answer-kicker {
            font-size: 11px;
            font-weight: 800;
            color: #64748B;
            letter-spacing: -0.01em;
        }
        .sa-answer-value {
            min-width: 0;
            font-family: 'Noto Serif CJK KR', serif;
            font-size: 15px;
            line-height: 1.35;
            letter-spacing: -0.015em;
            color: #0F172A;
            word-break: break-word;
        }
        .sa-answer-value.correct { color: var(--success); }
        .sa-answer-value.wrong   { color: var(--danger); }
        .sa-answer-line {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
        }
        .sa-answer-kicker {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-3);
        }
        .sa-answer-value {
            font-family: 'Noto Serif CJK KR', serif;
            font-size: 16px;
            font-weight: 600;
            line-height: 1.55;
            letter-spacing: -0.02em;
            color: var(--text);
            white-space: pre-wrap;
            word-break: normal;
            overflow-wrap: anywhere;
            max-width: 100%;
        }
        .sa-answer-value.correct { color: var(--success); }
        .sa-answer-value.wrong { color: var(--danger); }
        .sa-answer-line-status .sa-answer-value {
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            font-size: 13px;
            font-weight: 800;
            line-height: 1.3;
        }
        .sa-blank-result-row,
        .sa-blank-result-body {
            min-width: 0;
            overflow: hidden;
        }
        .sa-explanation {
            font-size: 12.5px;
            color: var(--text-2, #475569);
            background: var(--bg-2, #f8fafc);
            border-left: 3px solid var(--primary-border, #818cf8);
            padding: 6px 10px;
            margin-top: 8px;
            border-radius: 0 4px 4px 0;
            line-height: 1.6;
            word-break: keep-all;
        }

        /* �Է� 모드 bold ?�시 */
        .edit-bold {
            font-weight: 700;
            cursor: pointer;
            font-style: normal;
            background: none;
            border-bottom: none;
        }
        .edit-bold:hover { color: var(--primary); }
        .edit-zone { cursor: text; }

        /* ?�?� ������Ʈ 조문 ?�?� */
        .law-article {
            margin-bottom: 28px;
        }

        /* ?�반 조문 ?�목: 검??굵게 */
        .law-article-title {
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            font-size: 13px; font-weight: 700;
            color: var(--text); letter-spacing: 0.2px;
            margin-bottom: 10px; padding-bottom: 7px;
            border-bottom: 1px solid var(--border);
        }
        /* ?�·절·관 ?�목: ?��??? ?�아??구분?? ?�단 ?�백 */
        .law-article-title.is-chapter {
            color: var(--primary);
            font-size: 15px; font-weight: 800;
            border-top: 2px solid var(--border);
            border-bottom: 1px solid var(--border);
            padding: 10px 0; margin-top: 34px; margin-bottom: 16px;
        }
        .law-article-head {
            margin-bottom: 4px;
        }
        .law-article-title--plain {
            display: block;
            font-family: 'Noto Serif CJK KR', serif;
            font-size: 15.5px;
            font-weight: 400;
            color: var(--text);
            letter-spacing: -0.02em;
            margin: 0;
            padding: 0;
            border-bottom: none;
        }

        /* ???졻몼??: 湲곕낯 */
        .law-unit {
            display: flex; align-items: flex-start; gap: 4px;
            margin-bottom: 10px; line-height: 1.85;
        }
        /* ??1. 2.): ?ㅼ뿬?곌린 28px */
        .law-unit[data-indent="1"] {
            padding-left: 28px;
            margin-bottom: 6px;
        }
        /* �?가) ??): ?�여?�기 52px */
        .law-unit[data-indent="2"] {
            padding-left: 52px;
            margin-bottom: 5px;
        }

        .law-para {
            font-family: 'Noto Serif CJK KR', serif;
            font-size: 15.5px; color: var(--text-3);
            flex-shrink: 0; padding-top: 2px; min-width: 0;
            white-space: nowrap; margin-right: 0;
        }

        .law-text {
            font-family: 'Noto Serif CJK KR', serif;
            font-size: 15.5px; color: var(--text);
            letter-spacing: -0.02em; word-break: normal;
            overflow-wrap: anywhere; flex: 1; line-height: 1.85;
            white-space: pre-wrap;
        }

        /* ?⑤떟??鍮덉뭏 ?좏겙 */
        .blank-token {
            display: inline-block;
            min-width: 44px; height: 1.15em;
            margin: 0 3px; padding-bottom: 2px;
            border-bottom: 2.5px solid #64748b;
            vertical-align: baseline;
        }
        /* ?⑤떟???곷떒 異쒖쿂 */
        .quiz-source-top {
            font-size: 13px; color: #6b7280; font-weight: 600;
            margin-bottom: 2px; letter-spacing: -0.01em;
        }

        /* 강조: ?�광 ?�거, 볼드+?�더?�인?�로 차분?�게 */
        .law-bold {
            font-weight: 850;
        }
        .law-under {
            text-decoration: underline;
            text-decoration-color: #64748B;
            text-decoration-thickness: 1.4px;
            text-underline-offset: 3px;
        }

        .tax-memory-panel {
            margin: 8px 0 10px;
            padding: 9px 11px;
            border: 1px solid #D8DEE8;
            background: #F8FAFC;
            color: #334155;
            font-size: 12px;
            line-height: 1.45;
        }
        .tax-memory-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
        }
        .tax-memory-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            height: 24px;
            padding: 0 8px;
            border: 1px solid #CBD5E1;
            background: var(--surface);
            color: #475569;
            border-radius: 999px;
            font-weight: 700;
            white-space: nowrap;
        }
        .tax-memory-chip.must {
            border-color: #F59E0B;
            background: #FFFBEB;
            color: #92400E;
        }
        .tax-memory-chip.solve {
            border-color: #3B82F6;
            background: #EFF6FF;
            color: var(--primary);
        }
        .tax-memory-chip.frequency {
            border-color: #94A3B8;
            background: #F1F5F9;
            color: #334155;
        }
        .tax-memory-issue {
            color: #64748B;
            font-weight: 600;
        }
        .tax-memory-numbers {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 7px;
        }
        .tax-memory-number {
            display: inline-flex;
            align-items: center;
            min-height: 22px;
            padding: 0 7px;
            border-radius: 6px;
            background: var(--surface);
            border: 1px solid #E2E8F0;
            color: #0F172A;
            font-weight: 650;
            letter-spacing: -0.01em;
        }
        .tax-memory-more {
            color: #64748B;
            font-weight: 600;
            align-self: center;
        }
        .tax-memory-highlight {
            background: transparent;
            border-bottom: none;
            color: inherit;
            font-weight: 700;
            text-shadow: none;
        }

        /* ?듯빀 입력 酉?*/
        .blank-hint-bar {
            font-size: 12px; color: var(--text-3);
            background: #F8FAFC; border-radius: 8px;
            padding: 8px 14px; margin-bottom: 6px;
            line-height: 1.6;
        }
        .blank-hint-bar kbd {
            font-size: 11px; background: #E2E8F0; border-radius: 3px;
            padding: 1px 5px; font-family: monospace;
        }
        .blank-usage-hint {
            font-size: 12px; color: #6B7280;
            padding: 4px 2px 12px; line-height: 1.5;
        }
        #bv-unified { position: relative; }
        #bv-unified-content .law-text { cursor: text; user-select: text; }
        #bv-unified-content .law-ref-link {
            color: inherit;
            text-decoration: none;
            cursor: pointer;
            font-weight: inherit;
        }
        #bv-unified-content .law-ref-link:hover {
            color: #1F4ED8;
            text-decoration: underline;
            text-decoration-color: rgba(31, 78, 216, 0.5);
            text-underline-offset: 2px;
        }
        #bv-unified-content .blank-article.law-ref-hit {
            animation: lawRefHit 1.25s ease-out;
        }
        @keyframes lawRefHit {
            0% { box-shadow: 0 0 0 3px rgba(36, 81, 223, 0.24); }
            100% { box-shadow: none; }
        }
        .blank-caret {
            position: absolute;
            width: 2px;
            background: var(--primary);
            border-radius: 999px;
            pointer-events: none;
            opacity: 0;
            z-index: 20;
            animation: blankCaretBlink 1s steps(2, start) infinite;
        }
        .blank-caret.show { opacity: 1; }
        @keyframes blankCaretBlink {
            50% { opacity: 0; }
        }
        /* 강조 표시는 볼드만 사용하고 별도 배경/밑줄은 두지 않는다. */
        #bv-unified-content .edit-bold {
            font-weight: 700;
            cursor: pointer;
            color: inherit;
            background: none;
            border-bottom: none;
        }
        #bv-unified-content .edit-bold:hover {
            color: inherit;
        }
        /* 밑줄 */
        .law-under {
            text-decoration: underline;
            text-decoration-color: #64748B;
            text-underline-offset: 3px;
            text-decoration-thickness: 1.4px;
            cursor: pointer;
        }
        .law-under:hover { text-decoration-color: #334155; }
        /* 踰붿쐞 ?대퉬寃뚯씠??*/
        .range-nav {
            display: flex; align-items: center; justify-content: space-between;
            padding: 10px 0 14px; gap: 8px;
        }
        .range-nav-btn {
            font-size: 12px; color: var(--text-3); background: none; border: none;
            cursor: pointer; padding: 4px 8px; border-radius: 6px;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            transition: background 0.12s, color 0.12s;
            white-space: nowrap;
        }
        .range-nav-btn:hover { background: var(--border); color: var(--text); }
        .range-nav-btn:disabled { opacity: 0.3; cursor: default; }
        .range-nav-label {
            font-size: 12px; color: var(--text-2); text-align: center; flex: 1;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif; font-weight: 500;
        }
        .range-select {
            font-size: 12px; background: var(--bg); border: 1px solid var(--border);
            border-radius: 6px; padding: 4px 8px; color: var(--text);
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif; cursor: pointer;
            max-width: 160px;
        }

        /* ?뚯뒪??*/
        .blank-revealed {
            font-weight: 700; color: var(--success);
            border-bottom: 2px solid var(--success); padding-bottom: 1px;
        }

        /* 踰붿쐞 ?좏깮 ?꾩씠??*/
        .bv-range-item {
            display: flex; align-items: center; justify-content: space-between;
            padding: 16px; background: var(--surface);
            border: 1px solid var(--border); border-radius: 12px;
            margin-bottom: 8px; cursor: pointer; transition: all 0.15s;
        }
        .bv-range-item:hover { background: #F9FAFB; border-color: var(--border-strong); }

        /* ?�?� ?�???�면 ?�?� */
        .saved-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s; }
        .saved-item:hover { background: #F9FAFB; }
        .saved-empty { border: 1px dashed var(--border); background: rgba(255,255,255,0.82); border-radius: 12px; padding: 18px; color: #6b7280; text-align: center; }
        .saved-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
        .saved-q { font-family: 'Noto Serif CJK KR', serif; font-size: 16.5px; font-weight: 500; color: var(--text); line-height: 25px; letter-spacing: -0.03em; word-break: normal; overflow-wrap: anywhere; flex: 1; }
        .saved-meta { font-size: 13px; color: #7b8190; margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .wrong-badge { background: #fff1f2; color: #e11d48; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }

        .saved-bottom-action {
            position: sticky;
            bottom: 0;
            padding: 20px 0 20px;
            background: linear-gradient(to top, #FAFAF8 70%, rgba(250,250,248,0));
            margin-top: 4px;
        }

        /* OX 화면 모드 탭(기출 전체 선지 / 저장한 선지)과 문항 수 칩 (2026-07-26) */
        .ox-mode-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
        .ox-mode-tab {
            flex: 1; padding: 11px 10px; border-radius: 12px;
            border: 1.5px solid #E5E7EB; background: #fff;
            font-family: inherit; font-size: 14px; font-weight: 700; color: #374151;
            cursor: pointer; transition: all 0.12s; word-break: keep-all;
        }
        .ox-mode-tab.active { border-color: #0B8281; color: #0B8281; background: #ECFDF5; }
        .ox-size-row { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
        .ox-size-label { font-size: 13px; font-weight: 600; color: #6B7280; }
        .ox-size-chip {
            padding: 6px 13px; border-radius: 999px; border: 1.5px solid #E5E7EB; background: #fff;
            font-family: inherit; font-size: 13px; font-weight: 700; color: #374151; cursor: pointer;
        }
        .ox-size-chip.active { border-color: #0B8281; color: #0B8281; background: #ECFDF5; }
        /* 연도 선택: 객관식 설정의 연도 칩과 동일한 형태 */
        .bar-year-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; }
        .bar-year-chip {
            padding: 5px 13px; border: 1.5px solid var(--border, #e5e7eb); border-radius: 999px;
            background: var(--surface, #fff); cursor: pointer;
            font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-2, #374151);
            transition: border-color .1s, background .1s, color .1s;
        }
        .bar-year-chip:hover { border-color: var(--primary, #2451DF); color: var(--primary, #2451DF); }
        .bar-year-chip--soft { border-color: rgba(37, 99, 235, 0.35); background: rgba(37, 99, 235, 0.08); color: var(--primary, #2451DF); }
        .ox-year-block { margin-bottom: 18px; }
        .ox-year-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
        .ox-year-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
        .ox-year-actions button {
            font-size: 12px; font-weight: 600; color: var(--text-2, #475569);
            background: #f1f5f9; border: none; border-radius: 7px; cursor: pointer;
            padding: 5px 10px; line-height: 1; font-family: inherit;
        }
        .ox-year-alert {
            margin-top: 8px; padding: 8px 12px; border-radius: 8px;
            background: rgba(239, 68, 68, 0.12); color: #dc2626; font-size: 13px; font-weight: 500;
        }
        .ox-wrong-badge {
            font-size: 11px; font-weight: 700; color: #B91C1C; background: #FEF2F2;
            padding: 2px 7px; border-radius: 999px; white-space: nowrap;
        }
        .saved-start-btn {
            width: 100%;
            height: 58px;
            border-radius: 9px;
            border: none;
            background: var(--primary);
            color: var(--surface);
            font-size: 19px;
            font-weight: 800;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            cursor: pointer;
            transition: background 0.15s;
            letter-spacing: -0.3px;
        }

        .saved-start-btn:hover { background: var(--primary-strong); }

        /* ?�?� ������Ʈ ?�?� */
        /* 과목/범위 ?�이??*/
        .bv-subject-item, .bv-range-item {
            background: var(--surface); border: 1px solid var(--border);
            border-radius: 12px; padding: 16px 18px; margin-bottom: 8px;
            cursor: pointer; transition: all 0.15s;
            display: flex; align-items: center; justify-content: space-between;
        }
        .bv-subject-item:hover, .bv-range-item:hover { background: #F9FAFB; border-color: var(--border-strong); }
        .bv-item-name { font-size: 15px; font-weight: 600; color: var(--text); }
        .bv-item-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
        .bv-item-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; }
        .bv-item-arrow { font-size: 18px; color: var(--border-strong); }
        .bv-range-item.compact {
            padding-top: 18px;
            padding-bottom: 18px;
        }
        .bv-range-item.compact .bv-item-name {
            font-size: 16px;
            letter-spacing: -0.02em;
        }
        .bv-range-item.compact .bv-item-arrow {
            color: #CBD5E1;
        }
        .blank-article {
            padding: 18px 0 20px;
            border-bottom: 1px solid #ECEFF3;
        }
        .blank-article:first-child {
            padding-top: 8px;
        }
        .blank-article:last-child {
            border-bottom: none;
            padding-bottom: 8px;
        }
        .blank-article-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text);
            line-height: 1.45;
            letter-spacing: -0.02em;
            margin-bottom: 10px;
        }
        .blank-unit {
            margin-bottom: 14px;
        }
        .blank-unit:last-child {
            margin-bottom: 0;
        }
        .blank-unit-para {
            font-size: 13px;
            font-weight: 600;
            color: #64748B;
            margin-bottom: 4px;
            letter-spacing: -0.01em;
        }
        .blank-unit-text {
            line-height: 1.84;
            letter-spacing: -0.02em;
            color: var(--text);
            word-break: keep-all;
            overflow-wrap: anywhere;
        }
        .law-table-wrap {
            margin: 8px 0 10px;
            overflow-x: auto;
        }
        .law-table {
            width: auto;
            max-width: 100%;
            border-collapse: collapse;
            font-family: inherit;
            font-size: 0.95em;
            line-height: 1.55;
            color: inherit;
            background: transparent;
        }
        .law-table th,
        .law-table td {
            border: 1px solid #94A3B8;
            padding: 5px 9px;
            text-align: left;
            vertical-align: middle;
            word-break: keep-all;
            background: transparent;
        }
        .law-table th {
            font-weight: 700;
            text-align: center;
        }

        .q-pipe-table-wrap {
            overflow-x: auto;
            margin: 6px 0;
        }
        .q-pipe-table {
            border-collapse: collapse;
            font-size: 0.93em;
            width: auto;
        }
        .q-pipe-table th,
        .q-pipe-table td {
            border: 1px solid #94A3B8;
            padding: 4px 10px;
            text-align: center;
            vertical-align: middle;
            white-space: nowrap;
        }
        .q-pipe-table th {
            font-weight: 600;
        }
        .q-pipe-table th:first-child,
        .q-pipe-table td:first-child {
            text-align: left;
            width: auto;
            white-space: normal;
        }
        .q-pipe-table th:not(:first-child),
        .q-pipe-table td:not(:first-child) {
            width: 1%;
        }
        /* essay 레이아웃에서는 표를 컨테이너 너비에 맞게 확장 (table-layout:fixed로 열 균등 분배) */
        .study-paper-box.essay-mode .q-pipe-table {
            width: 100%;
            table-layout: fixed;
        }
        .study-paper-box.essay-mode .q-pipe-table th,
        .study-paper-box.essay-mode .q-pipe-table td {
            white-space: normal;
            word-break: break-word;
            width: auto;
        }

        /* 鍮듬??ㅻ윭湲?*/
        .blank-breadcrumb {
            font-size: 13px; color: var(--text-3); font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            margin-bottom: 16px; margin-top: 4px;
        }

        /* 모드 ?�환 버튼 */
        .blank-mode-btn {
            height: 32px; padding: 0 14px;
            border-radius: 999px; border: 1.5px solid var(--border);
            background: var(--surface); color: var(--text-2);
            font-size: 13px; font-weight: 600;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            cursor: pointer; transition: all 0.15s;
        }
        .blank-mode-btn.active { background: var(--primary); border-color: var(--primary); color: var(--surface); }

        /* 조문 ?�위 */
        .law-article {
            margin-bottom: 20px;
        }
        .law-article-no {
            font-family: 'Noto Serif CJK KR', serif;
            font-size: 15px; font-weight: 700; color: var(--text);
            margin-bottom: 6px; letter-spacing: -0.03em;
        }
        .law-unit {
            font-family: 'Noto Serif CJK KR', serif;
            font-size: 16px; line-height: 1.75;
            letter-spacing: -0.03em; color: var(--text);
            word-break: normal; overflow-wrap: anywhere;
            margin-bottom: 4px;
        }
        .law-unit strong {
            font-weight: 700;
            background: transparent;
            border-radius: 0;
            padding: 0;
            color: inherit;
        }
        .law-unit u {
            text-decoration-color: #64748B;
            text-decoration-thickness: 1.4px;
            text-underline-offset: 3px;
        }

        /* �Է� 모드 */
        .blank-edit-hint {
            background: var(--primary-soft); border: 1px solid #BFDBFE;
            border-radius: 8px; padding: 10px 14px;
            font-size: 13px; color: var(--primary-strong); margin-bottom: 12px;
        }
        .blank-edit-hint kbd {
            background: var(--surface); border: 1px solid #93C5FD;
            border-radius: 4px; padding: 1px 6px;
            font-size: 12px; font-family: monospace;
        }
        .blank-editor {
            font-family: 'Noto Serif CJK KR', serif;
            font-size: 16px; line-height: 1.75;
            letter-spacing: -0.03em; color: var(--text);
            word-break: normal; overflow-wrap: anywhere;
            min-height: 200px; padding: 14px;
            border: 1.5px solid var(--border); border-radius: 10px;
            background: var(--surface); outline: none;
        }
        .blank-editor:focus { border-color: var(--primary-border); }
        .blank-editor b, .blank-editor strong {
            font-weight: 700;
            background: transparent;
            border-radius: 0;
            padding: 0;
            color: inherit;
        }

        /* ?�스??모드 */
        .blank-test-body {
            font-family: 'Noto Serif CJK KR', serif;
            font-size: 16px; line-height: 1.85;
            letter-spacing: -0.03em; color: var(--text);
            word-break: normal; overflow-wrap: anywhere;
        }
        /* ?⑥뼱 ?⑥쐞 鍮덉뭏 */
        .bw { /* blank word */
            display: inline-block; vertical-align: bottom;
            border-bottom: 2px solid #94A3B8;
            min-width: 1.5em;
            margin: 0 1px;
            font-family: 'Noto Serif CJK KR', serif;
            font-size: 16px; color: transparent;
            letter-spacing: -0.03em;
            user-select: none;
        }
        .bw.hint { color: transparent; } /* 글???�기�?밑줄�?*/
        .bw.no-hint { min-width: 4em; }  /* ?뚰듃 ?놁쓬: 怨좎젙 ?덈퉬 */
        /* ?뺣떟 ?낅젰 */
        .blank-answer-input {
            display: inline-block;
            border: none; border-bottom: 2px solid #94A3B8;
            background: transparent; font-size: 16px;
            font-family: 'Noto Serif CJK KR', serif;
            letter-spacing: -0.03em; color: var(--text);
            outline: none; vertical-align: bottom;
            transition: border-color 0.15s; margin: 0 1px;
        }
        .blank-answer-input:focus { border-bottom-color: var(--primary); }
        .blank-answer-input.ok  { border-bottom-color: var(--success); color: var(--success); }
        .blank-answer-input.err { border-bottom-color: var(--danger);  color: var(--danger); }

        /* ?뺣떟 ?뺤씤 ?⑤꼸 */
        .blank-answer-panel {
            background: #F8FAFC; border: 1px solid var(--border);
            border-radius: 10px; padding: 14px 16px; margin: 16px 0;
        }
        .blank-answer-row {
            display: flex; gap: 12px; margin-bottom: 10px; font-size: 14px;
        }
        .blank-answer-row:last-child { margin-bottom: 0; }
        .blank-answer-q { color: var(--text-3); font-size: 13px; flex-shrink: 0; padding-top: 1px; }
        .blank-answer-correct { color: var(--success); font-weight: 600; }
        .blank-answer-mine { color: var(--text-2); }

        .self-grade-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
        .self-grade-btn {
            min-height: 44px; border-radius: 10px; font-size: 14px; font-weight: 600;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            cursor: pointer; border: 1.5px solid var(--border);
            background: var(--surface); transition: all 0.15s;
        }
        .self-grade-btn.correct { border-color: var(--success); color: var(--success); }
        .self-grade-btn.correct:hover { background: var(--success-soft); }
        .self-grade-btn.ambiguous { border-color: #D97706; color: #D97706; }
        .self-grade-btn.ambiguous:hover { background: #FFFBEB; }
        .self-grade-btn.wrong { border-color: var(--danger); color: var(--danger); }
        .self-grade-btn.wrong:hover { background: var(--danger-soft); }

        /* ?�?� 과목 카테고리 그리???�?� */
        .subject-category-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            padding: 4px 0 24px;
        }
        /* 과목선택 ListRow(행 리스트+구분선+섹션제목) 통일 (2026-07-15) */
        .subject-category-grid.list-mode { display: block !important; gap: 0; padding: 4px 0 24px; }
        .list-section-title { font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: .04em; padding: 18px 4px 8px; }
        .list-group { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 4px; }
        .list-group .category-btn { border: none !important; border-radius: 0 !important; border-bottom: 1px solid var(--border) !important; margin: 0 !important; background: transparent !important; }
        .list-group .category-btn:last-child { border-bottom: none !important; }
        /* 과목선택을 변호사 앱과 동일한 카드 그리드로 통일 (2026-08-15).
           list-mode(행 리스트)를 걷어내고 #screen-sets 규칙(3열·88px 카드)을 그대로 받게 한다.
           섹션 제목만 그리드 전 폭을 차지한다. */
        .subject-category-grid .list-section-title { grid-column: 1 / -1; }
        /* 과목 아이콘 자리: 이모지 대신 한글 약칭. 1~2자 모두 44px 칸에 들어간다. */
        .category-btn-icon {
            font-size: 16px; font-weight: 800; letter-spacing: -.04em;
            color: var(--primary, #2451DF); font-family: inherit;
        }
        .category-btn {
            background: var(--surface);
            border: 1.5px solid var(--border);
            border-radius: 18px;
            padding: 18px 16px;
            text-align: left;
            cursor: pointer;
            transition: all 0.15s;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            column-gap: 14px;
            touch-action: manipulation;
        }
        .category-btn:hover { border-color: var(--primary); background: #F0F4FF; }
        .category-btn-icon {
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            border-radius: 12px;
            background: #EEF4FF;
        }
        .category-main {
            min-width: 0;
            display: grid;
            gap: 4px;
        }
        .category-name-row {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }
        .category-name {
            font-size: 16px;
            font-weight: 700;
            color: var(--text);
            line-height: 1.25;
            letter-spacing: -0.02em;
        }
        .category-meta {
            font-size: 12px;
            color: var(--text-3);
            line-height: 1.45;
            letter-spacing: -0.01em;
        }
        .category-status {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 22px;
            padding: 0 8px;
            border-radius: 999px;
            background: #F1F5F9;
            color: #64748B;
            border: 1px solid #E2E8F0;
            font-size: 11px;
            font-weight: 700;
            line-height: 1;
            flex-shrink: 0;
            letter-spacing: -0.01em;
        }
        .category-arrow {
            font-size: 18px;
            color: var(--text-3);
            align-self: center;
        }
        #screen-sets .category-btn {
            display: grid !important;
            grid-template-columns: auto minmax(0, 1fr) 24px !important;
            align-items: center !important;
            gap: 14px !important;
            width: 100% !important;
            box-sizing: border-box !important;
            overflow: hidden !important;
        }
        #screen-sets .category-main,
        #screen-sets .category-name-row {
            min-width: 0 !important;
        }
        #screen-sets .category-name,
        #screen-sets .category-meta {
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
        }
        #screen-sets .category-arrow {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 24px !important;
            min-width: 24px !important;
            height: 24px !important;
            justify-self: end !important;
            color: #94A3B8 !important;
            font-size: 18px !important;
            line-height: 1 !important;
        }
        #screen-sets-sub .set-item {
            display: grid !important;
            grid-template-columns: minmax(0, 1fr) auto !important;
            column-gap: 14px !important;
            align-items: center !important;
            width: 100% !important;
            box-sizing: border-box !important;
            overflow: visible !important;
        }
        #screen-sets-sub .set-item > div {
            min-width: 0 !important;
        }
        #screen-sets-sub .set-item-name,
        #screen-sets-sub .set-item-meta {
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
        }
        #screen-sets-sub .set-badge {
            white-space: nowrap !important;
            justify-self: end !important;
            flex-shrink: 0 !important;
            max-width: none !important;
        }
        .category-btn-name {
            font-size: 16px; font-weight: 700; color: var(--text);
            display: block; margin-bottom: 4px;
        }
        .category-btn-meta { font-size: 12px; color: var(--text-3); }

        /* ?�위 ?�트 목록 */
        .sub-subject-group { margin-bottom: 24px; }
        .sub-group-label {
            font-size: 12px; font-weight: 600; color: var(--text-3);
            letter-spacing: 0.05em; text-transform: uppercase;
            padding: 0 0 8px; margin-bottom: 4px;
        }

        /* ?�?� ������Ʈ ?�더 ?�?� */
        .blank-note-header {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: center;
            gap: 8px;
            padding: 14px 22px 12px 32px;
        }
        .back-btn { white-space: nowrap; }

        /* ?�?� 범위 ?�비게이???�?� */
        .range-nav {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            margin: 18px 0 28px;
            gap: 6px;
        }
        .range-nav-btn {
            font-size: 13px; color: var(--text-3); background: none; border: none;
            cursor: pointer; padding: 6px 10px; border-radius: 8px;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            transition: background 0.12s, color 0.12s;
            white-space: nowrap;
        }
        .range-nav-btn:hover { background: var(--border); color: var(--text); }
        .range-nav-btn:disabled { opacity: 0.25; cursor: default; }
        .range-nav-btn:first-child { text-align: left; }
        .range-nav-btn:last-child  { text-align: right; }
        .range-select {
            font-size: 13px; background: var(--bg); border: 1.5px solid var(--border);
            border-radius: 8px; padding: 0 10px; height: 34px; color: var(--text);
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif; cursor: pointer;
            max-width: 180px; font-weight: 500;
        }

        /* ?�?� 조문 계층 ?�?� */
        /* ???�목 */
        .law-chapter {
            margin-top: 36px; margin-bottom: 20px;
            padding: 10px 0 10px;
            font-size: 16px; font-weight: 800; color: var(--primary);
            border-top: 2px solid var(--border); border-bottom: 1px solid var(--border);
        }
        /* ???�목 */
        .law-section {
            margin-top: 12px; margin-bottom: 20px;
            font-size: 14px; font-weight: 700; color: #6b7280;
            letter-spacing: 0.01em;
        }
        /* 조문 ?�목 */
        .law-article-title {
            margin-top: 28px; margin-bottom: 14px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border);
            font-size: 17px; font-weight: 800; color: var(--text);
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
        }
        .law-article-title.is-chapter { display: none; }
        .law-article-head { margin-bottom: 4px; }
        .law-article-title--plain {
            display: block;
            font-family: 'Noto Serif CJK KR', serif;
            font-size: 15.5px;
            font-weight: 400;
            color: var(--text);
            letter-spacing: -0.02em;
            margin: 0;
            padding: 0;
            border-bottom: none;
        }

        /* 초기??버튼 */
        .reset-btn {
            height: 32px; padding: 0 12px;
            border: 1px solid var(--border-strong); border-radius: 8px;
            font-size: 13px; color: #6b7280; background: none;
            cursor: pointer; font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            white-space: nowrap;
            transition: background 0.12s;
        }
        .reset-btn:hover { background: #f3f4f6; }

        /* ?뚰듃諛?*/
        .blank-hint-bar {
            font-size: 12px; color: #8a8f98;
            line-height: 1.6; margin-bottom: 4px;
        }
        .blank-hint-bar kbd {
            padding: 1px 5px; border: 1px solid var(--border-strong);
            border-radius: 4px; background: #f9fafb;
            font-size: 11px; font-family: monospace;
        }
        .blank-usage-hint {
            font-size: 12px; color: #9ca3af;
            padding: 2px 0 10px; line-height: 1.5;
        }

        /* ?�?� Desktop layout ?�?� */
        @media (min-width: 1100px) {
            body {
                background:
                    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32%),
                    radial-gradient(circle at top right, rgba(15, 118, 110, 0.06), transparent 28%),
                    linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
                padding: 24px;
            }

            .app {
                max-width: 1480px;
                margin: 0 auto;
                background: rgba(250, 250, 248, 0.92);
                border: 1px solid rgba(148, 163, 184, 0.22);
                border-radius: 28px;
                box-shadow: 0 24px 80px rgba(15, 23, 42, 0.10);
                overflow: hidden;
            }
            /* 문제 풀이(study) 화면에서는 가장 바깥 앱 프레임(둥근 테두리·그림자·배경) 제거 */
            .app:has(#screen-study.active) {
                border: none;
                border-radius: 0;
                box-shadow: none;
                background: transparent;
                overflow: visible;
            }

            .screen {
                padding: 0 44px 32px;
            }

            .page-title {
                font-size: 28px;
                margin-bottom: 28px;
            }

            .study-header {
                margin-bottom: 18px;
            }

            #screen-main .home-wrap {
                max-width: 1240px;
                margin: 0 auto;
                display: grid;
                grid-template-columns: minmax(0, 1.08fr) 380px;
                column-gap: 32px;
                row-gap: 0;
                align-items: start;
            }

            #screen-main .main-topbar {
                grid-column: 1 / -1;
                margin-bottom: 10px;
            }

            #screen-main .home-header {
                grid-column: 1;
                grid-row: 2;
            }

            #screen-main .home-primary-btn {
                grid-column: 1;
                grid-row: 3;
                margin-top: 28px;
                height: 102px;
                border-radius: 20px;
                box-shadow: 0 16px 34px rgba(29, 78, 216, 0.18);
            }

            #screen-main .home-today-card {
                grid-column: 1;
                grid-row: 4;
                margin-top: 16px;
                border-radius: 20px;
                padding: 26px 28px;
            }

            #screen-main .home-resume-card {
                grid-column: 1;
                grid-row: 5;
                margin-top: 12px;
                border-radius: 20px;
                padding: 18px 22px;
            }

            #screen-main .home-menu-list {
                grid-column: 2;
                grid-row: 3 / span 3;
                margin-top: 0;
                padding: 20px;
                border: 1px solid var(--border);
                border-radius: 24px;
                background: rgba(255, 255, 255, 0.78);
                backdrop-filter: blur(10px);
                position: sticky;
                top: 24px;
                align-self: start;
            }

            #screen-main .home-menu-btn {
                height: 74px;
                border-radius: 16px;
                font-size: 16px;
            }

            #screen-main .home-title {
                font-size: 40px;
                line-height: 1.14;
            }

            #screen-main .home-subtitle {
                font-size: 18px;
            }

            #screen-main .home-today-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }

            #screen-main .home-today-val {
                font-size: 28px;
            }

            #screen-main .home-today-label {
                font-size: 12px;
            }

            .subject-category-grid {
                grid-template-columns: repeat(5, minmax(0, 1fr));
                gap: 16px;
            }

            .stat-grid,
            .result-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }

            #screen-sets,
            #screen-sets-sub,
            #screen-stats,
            #screen-saved,
            #screen-result {
                max-width: 1180px;
                margin: 0 auto;
            }

            #screen-study {
                max-width: 980px;
                margin: 0 auto;
            }

            #screen-study .study-header,
            #screen-study .prob-meta,
            #screen-study #autoRemoveToggleArea,
            #screen-study .prob-text,
            #screen-study #choicesArea,
            #screen-study #feedbackArea,
            #screen-study #expArea,
            #screen-study .nav-btns,
        #screen-adapt .prob-text {
                max-width: 760px;
                margin-left: auto;
                margin-right: auto;
            }

            #screen-study .prob-text,
            #screen-study .choices,
            #screen-study .sa-context,
        #screen-adapt .prob-text,
        #screen-adapt .choices {
                max-width: 760px;
            }

            #screen-study .prob-text,
        #screen-adapt .prob-text {
                font-size: 17px;
                line-height: 1.72;
                margin-bottom: 18px;
            }

            #screen-study .choices,
        #screen-adapt .choices {
                margin-bottom: 24px;
            }

        #screen-study .nav-btns {
            margin-top: 16px;
        }
        #screen-study .study-header {
            gap: 10px;
            padding-left: 0;
            padding-right: 0;
        }
        #screen-study .counter {
            margin-left: auto;
        }
        #screen-study .bookmark-btn,
        #screen-study .exclude-session-btn,
        #screen-study .more-btn {
            position: static;
            flex-shrink: 0;
        }

            .modal {
                max-width: 560px;
                border-radius: 20px;
            }
        }

        @media (max-width: 767px) {
            body {
                background: #F4F6FB;
            }

            .app {
                max-width: 100%;
                min-height: 100vh;
            }

            .screen {
                padding: 0 16px 14px;
            }

            #screen-study {
                background: linear-gradient(180deg, #F4F6FB 0%, #EEF2F7 100%);
                border-radius: 0;
                padding-top: 4px;
            }

            #screen-study .study-question-card {
                background: #FCFCFA;
                border-color: #D8D4CC;
            }

            .page-title {
                font-size: 22px;
                margin-bottom: 18px;
            }

            .section-title {
                font-size: 15px;
            }

            .study-header {
                margin-left: -16px;
                margin-right: -16px;
                padding: 12px 16px 10px;
            }

            .back-btn {
                height: 34px;
                padding: 0 11px;
                font-size: 13px;
            }

            #screen-main .home-wrap {
                padding: 20px 0 28px;
            }

            #screen-main .main-topbar {
                margin-bottom: 12px;
            }

            #screen-main .home-title {
                font-size: 28px;
                line-height: 1.18;
            }

            #screen-main .home-subtitle {
                font-size: 15px;
                line-height: 1.45;
                margin-top: 6px;
            }

            #screen-main .home-primary-btn {
                margin-top: 24px;
                height: 76px;
                border-radius: 16px;
                font-size: 20px;
                gap: 10px;
            }

            #screen-main .home-today-card,
            #screen-main .home-resume-card,
            #screen-main .home-advanced-card {
                margin-top: 12px;
                border-radius: 16px;
                padding: 14px 16px;
            }

            #screen-main .home-today-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 12px 0;
            }

            #screen-main .home-today-stat + .home-today-stat {
                border-left: none;
            }

            #screen-main .home-today-val {
                font-size: 18px;
            }

            #screen-main .home-today-label {
                font-size: 10px;
            }

            #screen-main .home-menu-list {
                margin-top: 12px;
                gap: 8px;
            }

            #screen-main .home-menu-btn {
                height: 56px;
                border-radius: 12px;
                font-size: 15px;
                padding: 0 16px;
            }

            #screen-main .home-advanced-icon {
                width: 36px;
                height: 36px;
                border-radius: 11px;
            }

            #screen-main .home-advanced-meta {
                font-size: 11px;
            }

            #screen-main .home-menu-icon {
                width: 22px;
                height: 22px;
            }

            .subject-category-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .category-btn {
                padding: 16px 14px;
                border-radius: 12px;
            }

            .category-btn-icon {
                font-size: 22px;
                margin-bottom: 8px;
            }

            .category-btn-name {
                font-size: 15px;
            }

            .stat-grid,
            .result-grid {
                grid-template-columns: 1fr;
            }

            .set-item,
            .saved-item,
            .weak-item,
            .recent-item,
            .bv-subject-item,
            .bv-range-item {
                padding: 13px 14px;
                border-radius: 12px;
            }

            .prob-meta {
                margin-top: 16px;
            }

            .prob-text {
                font-size: 15px;
                line-height: 1.68;
                margin-bottom: 14px;
            }

            .choice-row {
                grid-template-columns: 26px minmax(0, 1fr);
                column-gap: 8px;
                margin-bottom: 8px;
                padding: 1px 4px 1px 4px;
            }

            .choice-num {
                width: 26px;
            }

            .choices {
                margin-bottom: 14px;
                padding: 0 2px 0 4px;
            }

            .nav-btns {
                position: sticky;
                bottom: 0;
                z-index: 30;
                margin-top: 14px;
                padding: 12px 0 calc(16px + env(safe-area-inset-bottom));
                background: linear-gradient(to top, rgba(244, 246, 251, 0.98), rgba(244, 246, 251, 0.82));
                backdrop-filter: blur(12px);
            }

            .nav-btn {
                min-height: 48px;
            }

            .modal-overlay {
                padding: 12px;
            }

            .modal {
                width: 100%;
                max-width: none;
                border-radius: 18px;
                padding: 20px 18px;
            }

            .modal-title {
                font-size: 18px;
                margin-bottom: 16px;
            }

            .range-nav {
                grid-template-columns: auto minmax(0, 1fr) auto;
                gap: 4px;
                margin: 14px 0 22px;
            }

            .range-nav-btn {
                padding: 6px 8px;
            }

            .range-select {
                max-width: none;
                width: 100%;
            }


            .blank-hint-bar,
            .blank-usage-hint {
                font-size: 11px;
                line-height: 1.45;
            }

            .sa-context {
                padding: 15px 16px;
            }

            .sa-pair-row {
                grid-template-columns: 36px minmax(0, 1fr);
                gap: 10px;
            }

            .sa-answer-layout.has-feedback {
                grid-template-columns: minmax(0, 1fr);
            }

            .sa-input-area {
                padding: 14px;
                border-radius: 16px;
            }

            .sa-panel-head {
                gap: 6px;
            }

            .sa-pair-a {
                width: 36px;
                min-height: 42px;
                font-size: 11px;
                border-radius: 0;
            }

            .sa-slot-view {
                min-height: 42px;
                font-size: 15px;
            }

            .sa-blank-slot {
                font-size: 0.98em;
            }

            .sa-result-area {
                padding: 12px 14px;
                border-radius: 16px;
            }

            .sa-blank-result-row {
                grid-template-columns: 1fr;
                padding: 10px;
            }

            .sa-input {
                height: 48px;
            }

            .sa-slot-input {
                padding-left: 10px;
                padding-right: 10px;
                min-height: 42px;
            }
        }

        /* 2026-05 design pass: quieter exam-prep surfaces across screens */
        .page-title {
            letter-spacing: 0;
            margin-bottom: 18px;
        }

        .btn,
        .chip,
        .period-chip,
        .category-btn,
        .set-item,
        .saved-item,
        .bv-subject-item,
        .bv-range-item,
        .home-menu-btn,
        .home-advanced-card,
        .home-resume-card,
        .advanced-setting-card,
        .advanced-stage-card,
        .result-card,
        .stat-card,
        .weak-item,
        .recent-item {
            border-radius: 8px;
            box-shadow: none;
            letter-spacing: 0;
        }

        .btn:hover,
        .category-btn:hover,
        .set-item:hover,
        .saved-item:hover,
        .bv-subject-item:hover,
        .bv-range-item:hover,
        .home-menu-btn:hover,
        .home-advanced-card:hover,
        .home-resume-card:hover,
        .advanced-setting-card:hover,
        .advanced-stage-card:hover {
            transform: none;
            background: #F8FAFC;
            border-color: #CBD5E1;
        }

        .modal {
            border-radius: 12px;
            border: 1px solid rgba(226, 232, 240, 0.9);
            box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
        }

        .modal-title {
            letter-spacing: 0;
            margin-bottom: 14px;
        }

        .home-wrap {
            padding-top: 24px;
        }

        .home-title {
            letter-spacing: 0;
            line-height: 1.22;
        }

        .home-primary-btn {
            height: 78px;
            border-radius: 10px;
            box-shadow: none;
        }

        .home-today-card {
            border-radius: 8px;
            box-shadow: none;
            padding: 18px 20px;
        }

        .home-today-val,
        .stat-card-value,
        .result-card-value {
            letter-spacing: 0;
            line-height: 1.15;
        }

        .home-menu-list {
            gap: 8px;
        }

        .home-menu-btn,
        .home-advanced-card,
        .category-btn,
        .set-item,
        .bv-subject-item,
        .bv-range-item {
            min-height: 62px;
            padding: 14px 16px;
        }

        .home-menu-icon,
        .home-advanced-icon,
        .category-btn-icon {
            border-radius: 8px;
            background: #F1F5F9;
        }

        .subject-category-grid {
            gap: 10px;
        }

        .category-btn {
            gap: 14px;
        }

        .category-btn-name,
        .set-item-name,
        .bv-item-name {
            letter-spacing: 0;
            font-weight: 700;
        }

        .config-section {
            margin-bottom: 18px;
        }

        .chip-group {
            gap: 8px;
        }

        .chip {
            min-height: 42px;
            padding: 0 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .chip.selected {
            background: #EAF1FF;
            border-color: var(--primary);
            color: var(--primary);
            box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.12);
        }

        .count-big {
            letter-spacing: 0;
        }

        .count-slider {
            accent-color: var(--primary);
        }

        .study-progress-wrap {
            border-radius: 8px;
            box-shadow: none;
            background: rgba(255, 255, 255, 0.78);
        }

        #screen-study .study-question-card {
            margin-top: 10px;
        }

        #screen-study .study-paper-box.active,
        #screen-study .sa-input-area {
            border-color: #B8C0CA;
            background: #F8F9FA;
        }

        #screen-study .study-paper-box.active {
            padding: 7px 9px;
        }

        #screen-study .sa-context,
        #screen-study .prob-text,
        #screen-adapt .prob-text {
            letter-spacing: 0;
        }

        #screen-study .sa-pair-table,
        #screen-study .ox-btns,
        #screen-adapt .ox-btns {
            border-color: #C8CED6;
        }

        #screen-study .sa-slot-input,
        #screen-study .ox-btn,
        #screen-adapt .ox-btn {
            min-height: 42px;
        }

        .sa-result-area {
            border-radius: 8px;
            box-shadow: none;
            padding: 10px 12px;
        }

        .sa-answer-line {
            display: grid;
            grid-template-columns: 30px minmax(0, 1fr);
            gap: 8px;
            align-items: baseline;
        }

        .sa-answer-kicker,
        .sa-answer-value {
            letter-spacing: 0;
        }

        .study-mini-nav-btn {
            color: #475569;
            font-size: 15px;
        }

        .result-header {
            margin: 18px 0;
        }

        .result-grid,
        .stat-grid {
            gap: 8px;
        }

        .result-card,
        .stat-card {
            padding: 14px;
        }

        .result-review-item,
        .weak-item,
        .recent-item,
        .saved-item {
            border-radius: 8px;
            box-shadow: none;
        }

        .saved-q,
        .weak-item-q {
            letter-spacing: 0;
            line-height: 1.68;
        }

        .period-chips {
            gap: 6px;
            margin-bottom: 16px;
        }

        .period-chip.active {
            background: #EAF1FF;
            border-color: var(--primary);
            color: var(--primary);
        }


        .blank-hint-bar,
        .blank-usage-hint {
            display: none;
        }

        .range-nav {
            border: 1px solid #D8DEE6;
            border-radius: 8px;
            padding: 8px;
            margin-bottom: 12px;
            background: #F8F9FA;
        }

        .range-select,
        .range-nav-btn {
            border-radius: 6px;
        }

        .blank-article {
            border-bottom-color: var(--border);
        }

        .blank-article-title {
            letter-spacing: 0;
        }

        .blank-chapter-anchor {
            display: block;
            scroll-margin-top: 88px;
        }

        .blank-chapter-section {
            padding-top: 18px;
            padding-bottom: 8px;
        }

        .blank-chapter-heading {
            font-size: 18px;
            font-weight: 800;
            color: var(--text);
            letter-spacing: -0.02em;
        }

        .blank-unit-text,
        .law-text {
            letter-spacing: 0;
            line-height: 1.78;
        }

        .blank-caret {
            display: none !important;
            animation: none !important;
        }

        #modal-more-actions .modal,
        #modal-login .modal,
        #modal-report .modal {
            border-radius: 12px !important;
        }

        @media (min-width: 1100px) {
            #screen-main {
                max-width: 860px;
                margin: 0 auto;
            }

            #screen-sets,
            #screen-sets-sub,
            #screen-stats,
            #screen-saved {
                max-width: 900px;
                margin: 0 auto;
            }
        }

        @media (max-width: 767px) {
            .home-primary-btn {
                height: 70px;
                border-radius: 10px;
            }

            .home-menu-btn,
            .home-advanced-card,
            .category-btn,
            .set-item,
            .bv-subject-item,
            .bv-range-item {
                min-height: 58px;
                padding: 13px 14px;
            }

            .modal {
                border-radius: 12px;
            }

            .nav-btn {
                min-height: 44px;
                padding: 0 12px;
            }

            .screen {
                padding-bottom: max(14px, env(safe-area-inset-bottom));
            }
        }

        /* Study screen width fix: keep question, answer sheet, and feedback on one exam-paper grid. */
        #screen-study {
            --study-paper-width: min(521px, calc(100vw - 52px));  /* 회계사 시험지 한 단 = 한 줄 30.9자 */
            --study-ox-answer-gap: 30px;
        }
        /* 상법 모드별 너비 재정의 — CPA 기준으로 통일 */
        #screen-study.cpa-kieopbeop-width-mode {
            --study-paper-width: min(521px, calc(100vw - 52px));  /* 회계사 시험지 한 단 = 한 줄 30.9자 */
        }
        #screen-study.semusa-sangbeop-width-mode {
            --study-paper-width: min(521px, calc(100vw - 52px));  /* 회계사 시험지 한 단 = 한 줄 30.9자 */
        }
        /* 약술형 2단 레이아웃: 문제(좌) / 답안(우) — studyPaperBox+choicesArea만 전용 래퍼(#essayTwoColRow)로 묶어 처리.
           카드 전체를 flex로 만들면 보조 div들(autoRemoveToggleArea 등, max-width:760)이 같은 줄을 침범해 깨지므로 래퍼 방식 사용. */
        #screen-study.essay-two-col-width-mode {
            --study-paper-width: min(1440px, calc(100vw - 96px));
            max-width: none !important;   /* @media(min-width:900)의 1120px !important 캡 해제 */
            /* 약술형은 상하/좌우 배치 모두 zoom:1 — 기본 zoom:0.74가 칼럼을 좁게 만들던 문제 해결 */
            zoom: 1;
        }
        #screen-study #essayTwoColRow {
            width: var(--study-paper-width) !important;
            max-width: var(--study-paper-width) !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }
        @media (min-width: 1100px) {
            /* 1100px 이상에서만 좌우 2단 배치 — 좁은 창에서는 시험지(위)/답안지(아래) 상하 배치로 전환 */
            #screen-study.essay-two-col-width-mode #essayTwoColRow {
                display: flex;
                align-items: flex-start;
                gap: 24px;
                font-size: 14px;   /* 베이스 폰트 — 개별 규칙이 안 닿는 텍스트도 1차 수준으로 */
            }
            /* 좌(시험지)=B4 반쪽 182mm, 우(답안지)=A4 전체 210mm(6.667% 여백 포함) → 182:210 ≈ 46%:54% */
            #screen-study.essay-two-col-width-mode #essayTwoColRow > #studyPaperBox {
                /* flex-grow 기반(182 1 0)은 크롬에서 실제 182:210 비율대로 분배되지 않고 우측으로 쏠리는 버그가 있어
                   basis 퍼센트 방식(0 1 46.43%)으로 대체 — 동일 182:210 비율을 정확히 재현 */
                flex: 0 1 46.43% !important;
                width: auto !important;
                max-width: none !important;
                min-width: 0 !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }
            #screen-study.essay-two-col-width-mode #essayTwoColRow > #choicesArea {
                flex: 0 1 53.57% !important;
                width: auto !important;
                max-width: none !important;
                min-width: 0 !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
                /* A4 외부여백: 칼럼 자체에 배경+패딩 → 14mm/210mm ≈ 6.667% */
                background: transparent !important;
                /* 상단 패딩 0: 좌측 시험지(studyPaperBox)는 테두리가 칼럼 최상단에서 바로 시작 →
                   답안지 쪽도 동일하게 맞춰야 두 테두리 시작 높이가 일치함 */
                padding: 0 6.667% 18px !important;
                box-sizing: border-box !important;
            }
            /* questionHtml에 답안양식이 인라인이면: 좌측 시험지 전체 폭, 우측 칼럼 숨김 (답안양식 압축 방지) */
            #screen-study.essay-two-col-width-mode #essayTwoColRow.inline-answerform-fullwidth > #studyPaperBox {
                flex: 1 1 100% !important;
            }
            #screen-study.essay-two-col-width-mode #essayTwoColRow.inline-answerform-fullwidth > #choicesArea {
                display: none !important;
            }
            /* 답안지 내부 요소: 전역 var 폭(1440)이 적용돼 오른쪽 칼럼 밖으로 넘치던 문제 → 칼럼 100%로 */
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-answer-area,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-answer-body,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-answer-sheet,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-answer-topbar,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-answer-input,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .prob-text {
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
            }
            /* 질문 본문: 글씨 14px (1차 수준) */
            #screen-study.essay-two-col-width-mode #essayTwoColRow #probText,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .prob-text,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .prob-text * {
                font-size: 14px !important;
                line-height: 1.65 !important;
            }
            /* 답안지·리뷰카드(줄노트): 글씨·줄간격·눈금선 같은 배율 축소(16px/32px → 14px/28px). 채점 후 내답안/모범답안 카드 포함 */
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-answer-input,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .semusa-essay-main textarea,
            #screen-study.essay-two-col-width-mode #essayTwoColRow [contenteditable="true"],
            #screen-study.essay-two-col-width-mode #essayTwoColRow textarea:not(.oxset-reason):not(.audit-ox-reason),
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-review-card-body,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-review-lined-wrap {
                font-size: 14px !important;
                line-height: 28px !important;
                background-size: 5px 28px !important;
                background-image: radial-gradient(circle at 2.5px 27px, #C0CDD8 1px, transparent 1.4px) !important;
            }
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-answer-input,
            #screen-study.essay-two-col-width-mode #essayTwoColRow textarea:not(.oxset-reason):not(.audit-ox-reason) {
                min-height: calc(28px * 5 + 16px) !important;
            }
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-answer-input {
                padding-top: 8px !important;
            }
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-answer-input.sub-essay-input {
                min-height: calc(28px * 3 + 16px) !important;
                box-shadow: inset 0 -2px 0 0 var(--surface) !important;
            }
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-review-card-body {
                box-shadow: inset 0 -2px 0 0 var(--surface) !important;
                padding: 8px 16px !important;
                background-position: 0 24px !important;
            }
            /* 해설 본문(essay-review-lined)·점선(wrap)도 입력칸과 동일 14px/28px·점선 28px·동일 글씨체로 정렬 */
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-review-lined,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-review-lined .jx-ma-seg {
                font-size: 14px !important;
                line-height: 28px !important;
                font-family: "Noto Serif CJK KR", "Noto Serif KR", serif !important;
            }
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-review-lined-wrap {
                line-height: 28px !important;
                padding-top: 28px !important;
                background-size: 5px 28px !important;
                background-position: 0 3px !important;
            }
            /* 표도 32px→28px 배율에 맞춰 행 높이 스냅 (아래 텍스트가 점선에서 밀리지 않도록) */
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-review-lined table td,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-review-lined table th {
                line-height: 28px !important;
                height: 28px !important;
            }
            /* 고스트 자동완성 오버레이도 동일 폰트·줄간격으로 정렬 유지 */
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-ghost-backdrop {
                font-size: 14px !important;
                line-height: 28px !important;
            }
            /* 근거(해설)·리뷰 라벨/점수칩/버튼 등 부속 텍스트 13px */
            #screen-study.essay-two-col-width-mode #expArea,
            #screen-study.essay-two-col-width-mode #expArea *,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-review-card-title,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-item-breakdown,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-item-breakdown *,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-grade-note,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-auto-score-badge,
            #screen-study.essay-two-col-width-mode #feedbackArea .essay-review-card-body,
            #screen-study.essay-two-col-width-mode #feedbackArea .essay-review-card-body * {
                font-size: 13px !important;
            }
            /* ── 왼쪽 시험지: 얇은 단일 테두리 + 바깥 배경색과 동일(별도 사각형 배경 없음) + 페이지(CBT) ── */
            #screen-study.essay-two-col-width-mode #essayTwoColRow > #studyPaperBox {
                border: 1px solid #B7C0CC !important;
                background: transparent !important;
                position: relative !important;
                padding: 14px 18px 6px !important;
                box-sizing: border-box !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                align-self: flex-start;
            }
            /* 시험지(좌)·답안지(우) 시작 높이 정렬: 답안지 영역 상단 여백 제거 */
            #screen-study.essay-two-col-width-mode #essayTwoColRow > #choicesArea .essay-answer-area {
                margin-top: 0 !important;
            }
            /* 기호 팔레트(fixed right:28px, 폭 126px)가 답안지 헤더 우측 텍스트를 가리지 않도록 */
            #screen-study.essay-two-col-width-mode #essayTwoColRow .essay-answer-topbar {
                /* PDF 답안지: (25행)은 작성영역 우측 끝에 위치. 기호 팔레트(fixed)는 답안 입력 시만 떠 헤더와 직접 겹치지 않으므로 우측 패딩 제거 */
                padding-right: 0 !important;
            }
            #screen-study.essay-two-col-width-mode #essayTwoColRow > #studyPaperBox > .exam-paper-vp {
                position: relative;
                overflow: hidden;
            }
            /* 시험지 뷰: 표 가로스크롤 제거, 헤더 줄바꿈 허용 */
            .exam-paper-vp .prob-text,
            .exam-paper-vp table.prob-text { overflow-x: visible !important; }
            .exam-paper-vp .prob-text table,
            .exam-paper-vp table.prob-text {
                display: table !important;
                table-layout: fixed !important;
                width: 100% !important;
                max-width: 100% !important;
            }
            .exam-paper-vp .prob-text th,
            .exam-paper-vp .prob-text td {
                white-space: normal !important;
                word-break: keep-all !important;
            }
            .exam-paper-vp .prob-text td,
            .exam-paper-vp .prob-text th { font-size: 13px !important; padding: 3px 5px !important; vertical-align: top !important; }
            /* 답안 양식 표(구분/금액)는 CPA 시험지처럼 셀 내용을 상하 가운데 정렬 */
            .exam-paper-vp .prob-text table.cross-ans td,
            .exam-paper-vp .prob-text table.cross-ans th { vertical-align: middle !important; }
            #screen-study.essay-two-col-width-mode #essayTwoColRow > #studyPaperBox > .exam-paper-vp > #probText {
                transition: none;
            }
            #screen-study .exam-paper-nav {
                display: flex; align-items: center; justify-content: center; gap: 12px;
                margin-top: 8px; padding-top: 0;
                position: relative; z-index: 4;
                font-family: "Noto Sans KR", sans-serif; font-size: 12px; color: #1A2D54;
            }
            /* ◀ N/M ▶ 를 테두리 바깥(하단)에 고정 */
            #screen-study.essay-two-col-width-mode #essayTwoColRow > #studyPaperBox {
                padding-bottom: 0 !important;
                margin-bottom: 48px !important;
            }
            #screen-study.essay-two-col-width-mode #essayTwoColRow > #studyPaperBox > .exam-paper-nav {
                position: absolute;
                bottom: -38px;
                left: 0;
                right: 0;
                margin: 0 !important;
                padding: 4px 0 !important;
            }
            #screen-study .exam-paper-nav button {
                border: 1px solid #1A2D54; background: var(--surface); color: #1A2D54;
                min-width: 30px; height: 24px; border-radius: 5px; cursor: pointer;
                font-size: 13px; line-height: 1; padding: 0 6px;
            }
            #screen-study .exam-paper-nav button:disabled { opacity: .3; cursor: default; }
            #screen-study .exam-paper-nav .exam-paper-ind { min-width: 50px; text-align: center; font-weight: 700; letter-spacing: .04em; }
            #screen-study .exam-paper-source {
                margin-top: 20px; padding-right: 2px;
                text-align: right; font-size: 11px; color: #8A93A3;
                font-family: "Noto Sans KR", sans-serif; letter-spacing: .01em;
            }
            /* OX/MCQ 2단: calc(--study-paper-width) 기반 고정 폭 규칙 제압 */
            #screen-study.essay-two-col-width-mode #essayTwoColRow #studyPaperBox.single-audit-ox-mode + #choicesArea .single-audit-ox-sheet,
            #screen-study.essay-two-col-width-mode #essayTwoColRow #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-answer-sheet,
            #screen-study.essay-two-col-width-mode #essayTwoColRow #studyPaperBox.audit-mcq-mode + #choicesArea .audit-mcq-sheet,
            #screen-study.essay-two-col-width-mode #essayTwoColRow #studyPaperBox.audit-mcq-mode .prob-text,
            #screen-study.essay-two-col-width-mode #essayTwoColRow #studyPaperBox.single-audit-ox-mode .prob-text,
            #screen-study.essay-two-col-width-mode #essayTwoColRow #studyPaperBox.single-audit-ox-mode .oxset-choice-table,
            #screen-study.essay-two-col-width-mode #essayTwoColRow #studyPaperBox.single-audit-ox-mode .oxset-situation-box {
                width: 100% !important;
                max-width: 100% !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
                box-sizing: border-box !important;
            }
            /* OX 2단 flex 비율: 문제(좌 43%) / 판단+이유(우 57%)
               flex-grow(105 1 0) 방식은 크롬에서 실제 비율대로 분배되지 않는 버그가 있어(약술형과 동일 증상)
               basis 퍼센트 방식으로 대체 */
            #screen-study.essay-two-col-width-mode #essayTwoColRow > #studyPaperBox.single-audit-ox-mode {
                flex: 0 1 42.86% !important;
            }
            /* OX 2단: 우측 답안 열 = 약술형과 동일한 투명 배경 컨테이너 */
            #screen-study.essay-two-col-width-mode #essayTwoColRow > #studyPaperBox.single-audit-ox-mode + #choicesArea {
                flex: 0 1 57.14% !important;
                background: transparent !important;
                border: 0 !important;
                /* 상단 패딩 0: 좌측 시험지 테두리와 시작 높이를 맞춤(약술형과 동일 이유) */
                padding: 0 6.667% 18px !important;
                box-sizing: border-box !important;
                align-self: flex-start !important;
            }
            /* ── OX 2단: answer sheet ────────────────────────────────────────────
               border/bg: JS(setProperty !important)가 primary, CSS는 fallback.
               CSS 담당: margin:0, padding, box-shadow 이중테두리(흰여백+초록선).
               box-shadow: inset 4px 흰색(간격 은폐) + inset 5px 초록(안쪽 테두리 1px) */
            #screen-study.essay-two-col-width-mode #essayTwoColRow #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-answer-sheet {
                border: 3px solid #00493B !important;
                background-color: var(--surface) !important;
                background-image: var(--dot-bg-img) !important;
                background-size: 5px 32px !important;
                background-position: 0 15px !important;
                background-repeat: repeat !important;
                margin: 0 !important;
                margin-top: 4px !important;
                padding: 10px 10px 12px !important;
                box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px #00493B !important;
            }
            #screen-study.essay-two-col-width-mode #essayTwoColRow #studyPaperBox.single-audit-ox-mode + #choicesArea .exam-answer-label {
                margin-top: 4px !important;
            }
            /* ── MCQ 2단: answer sheet ───────────────────────────────────────────
               border/bg: JS(line ~21608, _sp)가 primary.
               CSS 담당: padding, box-shadow 이중테두리(흰여백+초록선). */
            #screen-study.essay-two-col-width-mode #essayTwoColRow #studyPaperBox.audit-mcq-mode + #choicesArea .oxset-answer-sheet {
                margin: 0 !important;
            }
            #screen-study.essay-two-col-width-mode #essayTwoColRow #studyPaperBox.audit-mcq-mode + #choicesArea .audit-mcq-answer-card .oxset-answer-sheet {
                padding: 10px 10px 12px !important;
                box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px #00493B !important;
            }
            /* MCQ 2단 flex 비율도 감사 OX와 최대한 같은 인상으로 (basis 퍼센트 방식, 사유는 위 OX 2단 참고) */
            #screen-study.essay-two-col-width-mode #essayTwoColRow > #studyPaperBox.audit-mcq-mode {
                flex: 0 1 42.86% !important;
            }
            #screen-study.essay-two-col-width-mode #essayTwoColRow > #studyPaperBox.audit-mcq-mode + #choicesArea {
                flex: 0 1 57.14% !important;
                background: transparent !important;
                border: 0 !important;
                padding: 0 6.667% 18px !important;
                box-sizing: border-box !important;
                align-self: flex-start !important;
                margin-top: var(--study-ox-answer-gap) !important;
            }
            #screen-study.essay-two-col-width-mode #essayTwoColRow > #studyPaperBox.audit-mcq-mode + #choicesArea .audit-mcq-answer-card {
                margin-top: 0 !important;
            }
            #screen-study.essay-two-col-width-mode #essayTwoColRow > #studyPaperBox.audit-mcq-mode + #choicesArea .audit-mcq-sheet {
                margin-top: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
            }
            /* OX 이유 입력란: 포커스 시 투명 배경 규칙 제압 → dot-pattern 유지 */
            #screen-study.essay-two-col-width-mode #essayTwoColRow .audit-ox-reason:focus {
                background-image: radial-gradient(circle at 2.5px 27px, #C0CDD8 1px, transparent 1.4px) !important;
                background-size: 5px 28px !important;
                background-position: 0 8px !important;
                box-shadow: none !important;
                outline: none !important;
            }
        }

        /* ── Audit OX 답안 테이블: one source of truth (CSS) ──
           JS는 --audit-ox-row-h 변수와 rAF 높이스냅만 담당.
           점선은 .oxset-table 에 한 번만 → 행 경계에서도 연속.  */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea {
            background-image: none !important;
        }
        /* 답안지 컨테이너(.oxset-answer-sheet) 전체에 점선 → 표 밖(라벨 영역)도 이어짐 */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-answer-sheet {
            background-color: var(--surface) !important;
            background-image: var(--dot-bg-img) !important;
            background-size: 5px 32px !important;
            background-position: 0 1px !important;
            background-repeat: repeat !important;
            /* 약술형 답안지와 동일한 진녹색 이중테두리 */
            border: 3px solid #00493B !important;
            position: relative !important;
        }
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-answer-sheet::before {
            content: '';
            position: absolute;
            inset: 4px;
            border: 1px solid #00493B;
            pointer-events: none;
            z-index: 5;
        }
        /* 표 자체는 투명 → 부모(.oxset-answer-sheet) 점선이 비침 */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-table {
            background-color: transparent !important;
            background-image: none !important;
        }
        /* item-2col(2열 선택형)만 제외, 나머지(3열 판단형·단일OX·freetext-3col) 모두 열 비율 고정 */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-table:not(.item-2col) {
            grid-template-columns: 90px 130px minmax(0, 1fr) !important;
        }
        /* 헤더 셀: 투명 (테이블 배경 비침), 높이·레이아웃만 제어 */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-table-head {
            background-color: transparent !important;
            background-image: none !important;
            box-shadow: none !important;
            border-bottom: none !important;
            height: var(--audit-ox-row-h, 64px) !important;
            min-height: var(--audit-ox-row-h, 64px) !important;
            max-height: var(--audit-ox-row-h, 64px) !important;
            box-sizing: border-box !important;
            padding: 0 8px !important;
            align-items: center !important;
            line-height: 32px !important;
            overflow: hidden !important;
        }
        /* 데이터 행: 투명 + 상단 1px 구분선 */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-table-row {
            background-color: transparent !important;
            background-image: none !important;
            min-height: var(--audit-ox-row-h, 64px) !important;
            grid-template-columns: 90px 130px minmax(0, 1fr) !important;
            box-sizing: content-box !important;
            border-bottom: none !important;
            box-shadow: inset 0 1px 0 var(--text) !important;
        }
        /* dual-choice 변형 테이블별 열 구조 복원 (generic 3열 override 해제)
           — 외부 테이블(헤더행)과 내부 행(.oxset-table-row) 둘 다 수정 */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-table.freetext-3col,
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-table.freetext-3col .oxset-table-row {
            grid-template-columns: 80px 110px minmax(0, 1fr) !important;
        }
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-table.dual-3col,
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-table.dual-3col .oxset-table-row {
            grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr) !important;
        }
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-table.item-2col .oxset-table-row {
            grid-template-columns: 100px minmax(0, 1fr) !important;
        }
        /* single-audit-ox-table (karegox_·kauox_): 항목 열 숨김으로 2열만 표시 — 3열 override 예외 */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-table.single-audit-ox-table,
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-table.single-audit-ox-table .oxset-table-row {
            grid-template-columns: 116px minmax(0, 1fr) !important;
        }
        /* sit-row: [상황 N] 라벨을 독립 행 대신 입력란과 같은 행에 표시 */
        #screen-study .oxset-table.dual-3col .oxset-sit-spacer {
            display: none !important;
        }
        #screen-study .oxset-table.dual-3col .oxset-sit-row .oxset-no-cell {
            grid-column: 1 !important;
            background: transparent !important;
        }
        /* textarea 있는 행(입력 모드): 높이 고정 */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-table-row:has(textarea) {
            height: var(--audit-ox-row-h, 64px) !important;
            max-height: var(--audit-ox-row-h, 64px) !important;
        }
        /* 셀: 투명 */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-no-cell,
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-choice-cell,
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-reason-cell {
            background-color: transparent !important;
            background-image: none !important;
            box-shadow: none !important;
        }
        /* 번호·선택 셀: 행 높이 전체로 stretch + 수직 중앙정렬
           (피드백으로 행 늘어날 때 ①②③④가 상단에 고정되는 현상 방지) */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-no-cell,
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-choice-cell {
            align-self: stretch !important;
            display: flex !important;
            min-height: var(--audit-ox-row-h, 64px) !important;
            box-sizing: border-box !important;
            justify-content: center !important;
            align-items: center !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            overflow: hidden !important;
        }
        /* 입력 요소 */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea textarea.oxset-reason,
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-input {
            background-color: transparent !important;
            background-image: none !important;
            box-shadow: none !important;
            height: var(--audit-ox-row-h, 64px) !important;
            min-height: var(--audit-ox-row-h, 64px) !important;
            max-height: var(--audit-ox-row-h, 64px) !important;
            box-sizing: border-box !important;
            line-height: 32px !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
        }
        /* [답안 양식] 라벨 */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .exam-answer-label {
            height: 32px !important;
            min-height: 32px !important;
            max-height: 32px !important;
            margin: 0 !important;
            padding: 0 8px !important;
            box-sizing: border-box !important;
            background: transparent !important;
            border-bottom: none !important;
            display: flex !important;
            align-items: center !important;
            line-height: 32px !important;
            overflow: hidden !important;
        }
        /* 피드백 */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-dual-feedback {
            background: transparent !important;
        }
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-reason-feedback-wrap {
            padding: 0 !important;
            min-height: 0 !important;
        }
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-reason-cell .oxset-reason-feedback {
            display: block !important;
            font-size: 14px !important;
            line-height: 32px !important;
            padding: 0 13px !important;
            min-height: 0 !important;
        }
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-mark {
            min-height: var(--audit-ox-row-h, 64px) !important;
        }
        @media (max-width: 767px) {
            #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-table,
            #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .oxset-table-row {
                grid-template-columns: 52px 54px minmax(0, 1fr) !important;
            }
        }

        @media (max-width: 1199px) {
            /* 좁은 화면: 2단 해제, 기존 세로 폭 유지(래퍼는 블록으로 stacked) */
            #screen-study.essay-two-col-width-mode { --study-paper-width: min(860px, calc(100vw - 52px)); max-width: 940px; }
        }

        #screen-study .study-header,
        #screen-study .study-progress-wrap,
        #screen-study .study-question-card,
        #screen-study .study-paper-box,
        #screen-study .study-paper-box.active,
        #screen-study #choicesArea,
        #screen-study #feedbackArea,
        #screen-study #expArea,
        #screen-study .nav-btns {
            width: var(--study-paper-width) !important;
            max-width: var(--study-paper-width) !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }

        #screen-study .study-paper-box.active {
            padding: 5px 6px !important;
        }

        #screen-study .study-paper-box .prob-text,
        #screen-study .study-paper-box.active .prob-text,
        #screen-study .study-paper-box .sa-context,
        #screen-study .study-paper-box.active .sa-context {
            width: 100% !important;
            max-width: none !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        #screen-study .sa-answer-layout,
        #screen-study .sa-input-area,
        #screen-study .sa-pair-table,
        #screen-study .sa-pair-row,
        #screen-study .sa-slot-input {
            width: 100% !important;
            max-width: none !important;
        }

        #screen-study .sa-answer-layout:not(.has-feedback) {
            grid-template-columns: minmax(0, 1fr) !important;
        }

        #screen-study .sa-answer-layout.has-feedback {
            grid-template-columns: minmax(0, 1fr) minmax(190px, 220px) !important;
            column-gap: 12px !important;
        }

        #screen-study .sa-feedback-inline {
            max-width: 220px !important;
        }

        #screen-study .sa-slot-input {
            padding-left: 14px !important;
            padding-right: 14px !important;
        }

        @media (max-width: 767px) {
            #screen-study {
                --study-paper-width: calc(100vw - 32px);
            }

            #screen-study .sa-answer-layout.has-feedback {
                grid-template-columns: minmax(0, 1fr) !important;
            }

            #screen-study .sa-feedback-inline {
                max-width: none !important;
            }
        }

        /* 2026-05 color pass(printed-paper) 토큰은 상단 단일 :root로 병합됨. 아래는 그 팔레트의 배경/스터디 화면 규칙만 유지. */

        body {
            background:
                radial-gradient(circle at top left, rgba(36, 81, 223, 0.045), transparent 30%),
                linear-gradient(180deg, #F7F8FA 0%, #EEF1F5 100%);
        }

        #screen-study {
            background:
                radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 36%),
                linear-gradient(180deg, #EEF1F5 0%, #E3E7EC 100%) !important;
        }

        #screen-study .study-progress-wrap {
            background: rgba(250, 251, 252, 0.82) !important;
            border-color: #D7DDE5 !important;
        }

        #screen-study .study-progress-track,
        .study-progress-track {
            background: #DDE3EA !important;
        }

        #screen-study .study-progress-fill,
        .study-progress-fill {
            background: linear-gradient(90deg, #2A5AE8 0%, var(--primary) 100%) !important;
        }

        #screen-study .study-paper-box.active,
        #screen-study .sa-input-area {
            background: #F7F8F9 !important;
            border-color: #AEB8C4 !important;
        }

        #screen-study .study-paper-box.active .prob-text,
        #screen-study .study-paper-box.active .sa-context {
            color: var(--text) !important;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        #screen-study .sa-pair-table,
        #screen-study .ox-btns,
        #screen-adapt .ox-btns {
            background: #FBFCFD !important;
            border-color: #C3CBD5 !important;
        }

        #screen-study .sa-pair-row {
            border-bottom-color: #DCE2E9 !important;
        }

        #screen-study .sa-pair-a {
            background: #EEF2F6 !important;
            border-right-color: #D0D7E0 !important;
            color: #3F4C5F !important;
        }

        #screen-study .sa-slot-input,
        #screen-study .ox-btn,
        #screen-adapt .ox-btn {
            background: #FBFCFD !important;
            color: var(--text) !important;
        }

        #screen-study .sa-slot-input::placeholder {
            color: #8FA0B5 !important;
        }

        #screen-study .ox-btn + .ox-btn {
            border-left-color: #D0D7E0 !important;
        }

        #screen-study .ox-btn.selected {
            background: #EAF1FF !important;
            color: var(--primary) !important;
            box-shadow: inset 0 0 0 1px rgba(49, 87, 215, 0.22) !important;
        }

        #screen-study .feedback.correct,
        #screen-study .sa-result-chip.good,
        #screen-study .sa-blank-result-row.correct .sa-blank-result-tag {
            background: #EFF8F1 !important;
            color: #166534 !important;
            border-color: #A8D5B4 !important;
        }

        #screen-study .feedback.wrong,
        #screen-study .sa-result-chip.bad,
        #screen-study .sa-blank-result-row.wrong .sa-blank-result-tag {
            background: #FFF3F2 !important;
            color: #B42318 !important;
            border-color: #F1B7B5 !important;
        }

        #screen-study .sa-result-area {
            background: #F9FAFB !important;
            border-color: #CDD5DF !important;
            box-shadow: none !important;
        }

        #screen-study .sa-blank-result-row {
            background: var(--surface) !important;
            border-color: #D8DEE6 !important;
        }

        #screen-study .exp-toggle,
        #screen-study .exp-body {
            background: #F9FAFB !important;
            border-color: #D6DCE3 !important;
        }

        #screen-study .bookmark-btn::before {
            border-color: #E35D64 !important;
            background: #FFF8F8 !important;
        }

        #screen-study .bookmark-btn.active::before,
        #screen-study .bookmark-btn.saved::before {
            background: linear-gradient(180deg, #FF6B70 0%, #EF535C 100%) !important;
            border-color: #E04A53 !important;
        }

        #screen-study .more-btn,
        #screen-study .back-btn {
            color: #475569 !important;
        }

        #screen-study .nav-btns {
            background: linear-gradient(to top, rgba(227, 231, 236, 0.98), rgba(227, 231, 236, 0.72)) !important;
        }

        /* 2026-05 visual audit pass: align all major screens after screenshot review. */
        #screen-main,
        #screen-sets,
        #screen-sets-sub,
        #screen-stats,
        #screen-saved,
        #screen-result {
            --page-content-width: min(860px, calc(100vw - 52px));
        }

        #screen-sets .study-header,
        #screen-sets-sub .study-header,
        #screen-stats .study-header,
        #screen-saved .study-header,
        #screen-result .study-header,
        #screen-sets .page-title,
        #screen-sets-sub .page-title,
        #screen-stats .page-title,
        #screen-saved .page-title,
        #screen-result .page-title,
        #screen-sets .subject-category-grid,
        #screen-sets-sub #subSetsList,
        #screen-stats #statsPeriodChips,
        #screen-stats #statsOverview,
        #screen-stats #statsBySubject,
        #screen-stats #statsWeak,
        #screen-stats #statsRecent,
        #screen-saved #savedCountText,
        #screen-saved #savedProblemsList,
        #screen-saved .saved-bottom-action {
            width: var(--page-content-width) !important;
            max-width: var(--page-content-width) !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }

        #screen-sets .page-title,
        #screen-sets-sub .page-title,
        #screen-stats .page-title,
        #screen-saved .page-title {
            margin-top: 22px !important;
            margin-bottom: 22px !important;
        }

        #screen-sets .subject-category-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
            gap: 10px !important;
            padding-bottom: 28px !important;
        }

        #screen-sets .category-btn {
            min-height: 88px !important;
            padding: 16px 18px !important;
            border-radius: 10px !important;
            background: #FBFCFD !important;
            border-color: #D5DDE6 !important;
            grid-template-columns: 44px minmax(0, 1fr) 24px !important;
            box-shadow: none !important;
            overflow: visible !important;
        }

        #screen-sets .category-btn:hover {
            background: #F4F7FB !important;
            border-color: #AEB8C4 !important;
        }

        #screen-sets .category-btn-icon {
            width: 44px !important;
            height: 44px !important;
            margin: 0 !important;
            border-radius: 10px !important;
            background: #EEF2F6 !important;
        }

        #screen-sets .category-main,
        #screen-sets .category-name-row {
            min-width: 0 !important;
        }

        #screen-sets .category-name,
        #screen-sets .category-btn-name {
            white-space: nowrap !important;
            word-break: keep-all !important;
            overflow-wrap: normal !important;
            letter-spacing: -0.02em !important;
            line-height: 1.2 !important;
        }

        #screen-sets .category-meta {
            margin-top: 2px !important;
            color: #8A94A3 !important;
        }

        #screen-sets .category-status {
            height: 20px !important;
            padding: 0 8px !important;
            background: #EEF2F6 !important;
            color: #64748B !important;
            border-color: #D8DEE6 !important;
        }

        #screen-sets .category-arrow {
            min-width: 24px !important;
            width: 24px !important;
            justify-self: end !important;
            overflow: visible !important;
        }

        #screen-sets-sub .set-item,
        #screen-saved .saved-item,
        #screen-stats .subject-stat-item,
        #screen-stats .weak-item,
        #screen-stats .recent-item {
            min-height: 58px !important;
            padding: 14px 16px !important;
            border-radius: 9px !important;
            background: #FBFCFD !important;
            border-color: #D5DDE6 !important;
            box-shadow: none !important;
        }

        #screen-sets-sub .set-item:hover,
        #screen-saved .saved-item:hover {
            background: #F4F7FB !important;
            border-color: #AEB8C4 !important;
        }

        #screen-sets-sub .set-item-meta {
            color: #8A94A3 !important;
        }


        @media (max-width: 720px) {
            #screen-sets .subject-category-grid {
                grid-template-columns: 1fr !important;
            }

            #screen-sets .category-btn {
                grid-template-columns: 42px minmax(0, 1fr) 24px !important;
                padding-right: 16px !important;
            }
        }

        #screen-sets-sub .set-status.ready {
            background: #FFF4CC !important;
            border: 1px solid #F2D27A !important;
            color: #8A5A00 !important;
        }

        #screen-stats .period-chips {
            gap: 7px !important;
            margin-bottom: 18px !important;
        }

        #screen-stats .period-chip {
            height: 34px !important;
            padding: 0 14px !important;
            border-radius: 8px !important;
            background: #FBFCFD !important;
            border-color: #D5DDE6 !important;
        }

        #screen-stats .period-chip.active {
            background: #EEF4FF !important;
            border-color: var(--primary-border) !important;
            color: var(--primary) !important;
        }

        #screen-stats .stat-grid,
        #screen-result .result-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
            gap: 10px !important;
        }

        #screen-stats .stat-card,
        #screen-result .result-card {
            border-radius: 10px !important;
            background: #FBFCFD !important;
            border-color: #D5DDE6 !important;
            box-shadow: none !important;
        }

        .saved-empty {
            border-color: #C9D2DD !important;
            background: #F8FAFC !important;
            color: #64748B !important;
            border-radius: 9px !important;
            padding: 20px !important;
        }

        #screen-saved .saved-start-btn:disabled,
        #screen-saved .saved-start-btn:disabled:hover,
        #screen-saved .saved-start-btn[disabled] {
            background: #C7D2EA !important;
            border-color: #C7D2EA !important;
            color: var(--surface) !important;
            cursor: not-allowed !important;
        }

        #modal-session .modal,
        #modal-login .modal,
        #modal-more-actions .modal,
        #modal-report .modal,
        #modal-advanced-settings .modal,
        #advancedModal .modal {
            background: #FCFCFD !important;
            border-color: #D8DEE6 !important;
        }

        #modal-session.active {
            align-items: flex-start !important;
            padding-top: 24px !important;
            padding-bottom: 24px !important;
            overflow-y: auto !important;
        }

        #modal-session .modal {
            max-width: 400px !important;   /* 변호사 modal-bar-config와 동일한 폭 (2026-07-22 통일) */
            max-height: calc(100vh - 48px) !important;
            overflow-y: auto !important;
            display: flex !important;
            flex-direction: column !important;
            padding-bottom: 0 !important;
            scrollbar-gutter: stable !important;
        }

        #modal-session .modal-title {
            flex: 0 0 auto !important;
            margin-bottom: 14px !important;
        }

        #modal-session .config-section {
            flex: 0 0 auto !important;
            margin-bottom: 16px !important;
        }

        #modal-session .config-section[style] {
            margin-bottom: 16px !important;
        }

        #modal-session .btn-stack {
            position: sticky !important;
            bottom: 0 !important;
            z-index: 5 !important;
            margin: 10px -24px 0 !important;
            padding: 12px 24px 18px !important;
            background: linear-gradient(180deg, rgba(252, 252, 253, 0.84) 0%, #FCFCFD 34%) !important;
            border-top: 1px solid #E5EAF1 !important;
            box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.04) !important;
        }

        #modal-session .btn-stack .btn {
            min-height: 48px !important;
        }

        #modal-session .count-display-row {
            align-items: baseline !important;
        }

        /* 세션설정 칩 — 변호사 앱 modal-bar-config의 .bar-year-chip과 동일한 알약형 (2026-07-22 통일) */
        #modal-session .chip-group {
            align-items: center !important;
            gap: 6px !important;
        }

        #modal-session .chip {
            min-height: 0 !important;
            padding: 5px 13px !important;
            line-height: 1.4 !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            color: var(--text-2) !important;
            border-radius: 999px !important;
            background: var(--surface) !important;
            border: 1.5px solid var(--border) !important;
        }

        #modal-session .chip:hover {
            border-color: var(--primary) !important;
            color: var(--primary) !important;
            background: var(--surface) !important;
        }

        #modal-session .chip.selected {
            background: rgba(37, 99, 235, 0.16) !important;
            border-color: rgba(37, 99, 235, 0.55) !important;
            color: var(--primary) !important;
        }

        /* 문제 유형 칩만 변호사 '유형' 버튼(.bar-type-btn)과 동일한 박스형 */
        #modal-session #qtypeSection .chip-group { gap: 8px !important; }
        #modal-session #qtypeSection .chip {
            flex: 1 1 0 !important;
            justify-content: center !important;
            padding: 12px 8px 10px !important;
            border-radius: 12px !important;
            font-size: 14px !important;
            font-weight: 700 !important;
        }
        #modal-session #qtypeSection .chip.selected {
            background: var(--primary) !important;
            border-color: var(--primary) !important;
            color: #fff !important;
        }

        #modal-advanced-settings .advanced-stage-card,
        #modal-advanced-settings .advanced-setting-card,
        #advancedModal .advanced-stage-card,
        #advancedModal .advanced-setting-card {
            border-radius: 9px !important;
            background: #FBFCFD !important;
            border-color: #D5DDE6 !important;
        }

        #modal-advanced-settings .advanced-stage-card.active,
        #advancedModal .advanced-stage-card.active {
            background: #EEF4FF !important;
            border-color: var(--primary-border) !important;
            color: var(--primary) !important;
        }

        #screen-study .study-question-card {
            color: var(--text) !important;
        }

        #screen-study .choice-num,
        #screen-adapt .choice-num {
            color: var(--text) !important;
        }

        #screen-study .choice-num.selected {
            color: var(--primary) !important;
        }

        #screen-study .choice-row.selected .choice-txt {
            color: var(--primary) !important;
            font-weight: 600;
        }

        #screen-study .choice-row.keyboard-active {
            box-shadow: inset 0 0 0 1px rgba(36, 81, 223, 0.28);
        }

        #screen-study .choice-row.keyboard-active .choice-num {
            color: var(--primary) !important;
            font-weight: 800;
        }

        #screen-study .choice-row.keyboard-active .choice-txt {
            color: var(--primary) !important;
            font-weight: 700;
        }

        /* PC study zoom pass: match the comfortable feel between browser 110% and 125% zoom. */
        @media (min-width: 900px) {
            #screen-study {
                --study-paper-width: min(1010px, calc(100vw - 72px));
                max-width: min(1120px, calc(100vw - 48px)) !important;
                padding-top: 14px !important;
            }

            #screen-study .study-header {
                min-height: 52px !important;
            }

            #screen-study .study-progress-wrap {
                min-height: 54px !important;
                padding: 12px 18px !important;
            }

            #screen-study .study-question-card {
                margin-top: 12px !important;
            }

            #screen-study .study-paper-box.active {
                padding: 6px 8px !important;
            }

            #screen-study .prob-text,
            #screen-study .study-paper-box.active .prob-text,
            #screen-study .sa-context,
            #screen-study .study-paper-box.active .sa-context,
        #screen-adapt .prob-text {
                font-size: 18px !important;
                line-height: 1.62 !important;
                letter-spacing: -0.015em !important;
            }

            #screen-study .choice-txt,
        #screen-adapt .choice-txt {
                font-size: 17.3px !important;
                line-height: 1.61 !important;
            }

            #screen-study .choice-num,
        #screen-adapt .choice-num {
                font-size: 17px !important;
            }

            #screen-study .ox-btn,
        #screen-adapt .ox-btn {
                min-height: 58px !important;
                font-size: 17.4px !important;
            }

            #screen-study .sa-pair-row,
            #screen-study .sa-pair-a,
            #screen-study .sa-slot-input {
                min-height: 48px !important;
            }

            #screen-study .sa-pair-row {
                grid-template-columns: 48px minmax(0, 1fr) !important;
            }

            #screen-study .sa-pair-a {
                width: 48px !important;
                font-size: 13px !important;
            }

            #screen-study .sa-slot-input {
                font-size: 16.1px !important;
                padding-left: 16px !important;
                padding-right: 16px !important;
            }

            #screen-study .sa-answer-note,
            #screen-study .ox-keyboard-hint,
            #screen-study .keyboard-hint {
                font-size: 13px !important;
            }

            #screen-study .study-mini-nav-btn {
                font-size: 26px !important;
            }
        }

        #screen-study .essay-answer-area {
            width: var(--study-paper-width);
            max-width: var(--study-paper-width);
            margin: 14px auto 0;
            position: relative;
        }
        .exam-table-wrap {
            overflow-x: auto;
            max-width: 100%;
            -webkit-overflow-scrolling: touch;
            margin: 10px 0;
        }
        .exam-table {
            border-collapse: collapse;
            margin: 0;
            font-size: 14px;
            font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
            width: auto;
            white-space: normal;
        }
        .exam-table th, .exam-table td {
            border: 1px solid #333;
            padding: 4px 12px;
            text-align: right;
            white-space: nowrap;
            word-break: normal;
            vertical-align: middle;
            background: none;
            color: inherit;
        }
        .exam-table td:first-child {
            text-align: left;
        }
        .exam-table th {
            font-weight: 700;
            text-align: center;
        }
        /* 모든 문제 표 통일 스타일 — 데이터의 인라인 border/padding 제거 후 여기서 단일 관리 */
        .prob-text { word-break: keep-all; overflow-wrap: anywhere; }
        .prob-text table, table.prob-text { border-collapse: collapse; margin: 8px 0; font-size: 14px; word-break: normal; width: 100%; max-width: 540px; }
        .prob-text td, .prob-text th { border: 1px solid #333; padding: 4px 10px; background: none; vertical-align: middle; word-break: normal; min-width: 80px; text-align: center; }
        .prob-text th { white-space: nowrap; }
        .prob-text th { font-weight: 700; text-align: center; white-space: nowrap; }
        #screen-study .study-paper-box.semusa2-essay-mode {
            background: var(--study-paper, #F3F4F5) !important;
            border: 1px solid var(--text) !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            padding: 24px 40px !important;
        }
        #screen-study .study-paper-box.semusa2-essay-mode > .prob-text {
            color: var(--text) !important;
            font-family: var(--exam-serif-font) !important;
            font-size: 17.2px !important;
            line-height: 1.78 !important;
            letter-spacing: -0.015em !important;
            max-width: none !important;
        }
        #screen-study .study-paper-box.semusa2-essay-mode .semusa-q-title-inline {
            color: var(--text) !important;
            font-weight: 700 !important;
        }
        #screen-study .study-paper-box.semusa2-essay-mode .semusa-q-sub-head {
            margin: 28px 0 14px !important;
            font-weight: 700 !important;
            color: var(--text) !important;
        }
        #screen-study .study-paper-box.semusa2-essay-mode .semusa-data-box {
            border: 1px solid var(--text);
            padding: 10px 16px;
            margin: 16px auto 28px;
            max-width: 92%;
            background: transparent;
        }
        #screen-study .study-paper-box.semusa2-essay-mode .semusa-data-box-title {
            margin-bottom: 8px;
        }
        #screen-study .study-paper-box.semusa2-essay-mode .semusa-data-box .semusa-bullet {
            display: block;
            margin: 4px 0;
        }
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-statement-table {
            border-collapse: collapse;
            width: 100%;
            max-width: 100%;
            margin: 16px auto 24px;
            font-size: 14.5px;
            line-height: 1.44;
        }
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-statement-table th,
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-statement-table td {
            border: none;
            border-top: 1px solid var(--text);
            padding: 4px 10px;
            background: transparent;
            color: var(--text);
            vertical-align: middle;
            white-space: nowrap;
        }
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-statement-table tr:last-child td {
            border-bottom: 1px solid var(--text);
        }
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-statement-table th {
            font-weight: 400;
            text-align: center;
        }
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-statement-table td:nth-child(1),
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-statement-table td:nth-child(4) {
            text-align: left;
        }
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-statement-table td:not(:nth-child(1)):not(:nth-child(4)) {
            text-align: right;
        }
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-statement-table .semusa-mid-split {
            border-left: 1px solid var(--text);
        }
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-answer-grid,
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-box-table {
            border-collapse: collapse;
            width: 100%;
            max-width: 100%;
            margin: 14px auto 28px;
            font-size: 14.5px;
            line-height: 1.45;
        }
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-answer-grid th,
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-answer-grid td,
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-box-table th,
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-box-table td {
            border: 1px solid var(--text);
            padding: 5px 10px;
            background: transparent;
            color: var(--text);
            vertical-align: middle;
        }
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-answer-grid th,
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-box-table th {
            font-weight: 400;
            text-align: center;
        }
        #screen-study .study-paper-box.semusa2-essay-mode table.semusa-box-table td {
            text-align: center;
        }
        /* 일반 prob-text 표도 폴리시드 표(answer-grid)와 동일하게 정돈 — 회계학_1부/재무회계 표 정렬·테두리 일관화 */
        #screen-study .study-paper-box.semusa2-essay-mode table.prob-text {
            border-collapse: collapse;
            width: 100%;
            max-width: 100%;
            margin: 14px auto 22px;
            font-size: 14.5px;
            line-height: 1.45;
        }
        #screen-study .study-paper-box.semusa2-essay-mode table.prob-text th,
        #screen-study .study-paper-box.semusa2-essay-mode table.prob-text td {
            border: 1px solid var(--text);
            padding: 5px 10px;
            background: transparent;
            color: var(--text);
            vertical-align: middle;
        }
        /* 빈 답란 셀이 높이를 유지하도록(답안양식 작성 공간) */
        #screen-study .study-paper-box.semusa2-essay-mode table.prob-text td:empty::after,
        #screen-study .study-paper-box.semusa2-essay-mode table.prob-text th:empty::after {
            content: "\00a0";
        }
        /* prob-text 표가 nowrap/scroll 없이 컨테이너 안에 맞도록 — 5열 이상 wide table 대응 */
        #screen-study .study-paper-box.semusa2-essay-mode .prob-text table.prob-text {
            display: table !important;
            overflow-x: visible !important;
            width: 100% !important;
            max-width: 100% !important;
        }
        #screen-study .study-paper-box.semusa2-essay-mode .prob-text table.prob-text td,
        #screen-study .study-paper-box.semusa2-essay-mode .prob-text table.prob-text th {
            white-space: normal !important;
            word-break: keep-all;
        }
        #screen-study .study-paper-box.semusa2-essay-mode .semusa-table-scroll {
            width: 100%;
            overflow-x: auto;
            margin: 16px auto 24px;
        }
        #screen-study .study-paper-box.semusa2-essay-mode .semusa-table-scroll table {
            margin-top: 0;
            margin-bottom: 0;
            min-width: 680px;
        }
        #screen-study .study-paper-box.semusa2-essay-mode .semusa-two-col-tables {
            display: grid;
            grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr);
            gap: 30px;
            align-items: start;
            margin: 18px 0 20px;
        }
        #screen-study .study-paper-box.semusa2-tax-essay-mode {
            background: transparent !important;
        }
        #screen-study .study-paper-box.semusa2-tax-essay-mode .prob-text table th,
        #screen-study .study-paper-box.semusa2-tax-essay-mode .prob-text table td,
        #screen-study .study-paper-box.semusa2-tax-essay-mode .prob-text [style*="background"] {
            background: transparent !important;
            background-color: transparent !important;
            background-image: none !important;
        }
        /* 빈 칸과 채워진 칸의 렌더링 차이(높이·색) 제거: 빈 셀에 공백 문자 부여 */
        #screen-study .study-paper-box.semusa2-tax-essay-mode .prob-text table td:empty::after,
        #screen-study .study-paper-box.semusa2-tax-essay-mode .prob-text table th:empty::after {
            content: "\00a0";
        }
        /* ── CPA 시험지 스타일 (세무회계 회계사 ver.) ─────────────────── */
        #screen-study .study-paper-box.semusa2-tax-essay-mode > .prob-text {
            font-size: 15.8px !important;
            line-height: 1.58 !important;
            letter-spacing: -0.01em !important;
        }
        #screen-study .study-paper-box.semusa2-tax-essay-mode .prob-text table,
        #screen-study .study-paper-box.semusa2-tax-essay-mode table.prob-text {
            border-collapse: collapse !important;
            width: auto !important;
            max-width: 100% !important;
            font-size: 12px !important;
            line-height: 1.45 !important;
            table-layout: auto !important;
            margin: 6px 0 10px !important;
        }
        #screen-study .study-paper-box.semusa2-tax-essay-mode .prob-text td,
        #screen-study .study-paper-box.semusa2-tax-essay-mode .prob-text th,
        #screen-study .study-paper-box.semusa2-tax-essay-mode table.prob-text td,
        #screen-study .study-paper-box.semusa2-tax-essay-mode table.prob-text th {
            border: 1px solid var(--text) !important;
            padding: 2px 6px !important;
            vertical-align: middle !important;
            word-break: keep-all !important;
        }
        #screen-study .study-paper-box.semusa2-tax-essay-mode .prob-text th,
        #screen-study .study-paper-box.semusa2-tax-essay-mode table.prob-text th {
            font-weight: 600 !important;
            text-align: center !important;
            background: #f0f0f0 !important;
        }
        #screen-study .study-paper-box.semusa2-tax-essay-mode .prob-text strong,
        #screen-study .study-paper-box.semusa2-tax-essay-mode .prob-text b {
            font-weight: 700 !important;
        }
        .exam-paper-vp .study-paper-box.semusa2-tax-essay-mode .prob-text {
            overflow-x: visible !important;
        }
        /* 세무회계 기출 CPA ver.: [자료 N] 헤더 강조 */
        .semusa-jaryeo-head {
            display: inline-block;
            font-weight: 700;
            font-size: 0.98em;
            margin: 10px 0 4px;
            color: #1a1a1a;
        }
        /* q-pipe-table → prob-text 표와 동일 스타일 (세무회계 기출 CPA ver.) */
        #screen-study .study-paper-box.semusa2-tax-essay-mode .q-pipe-table-wrap {
            display: block;
            overflow-x: auto;
        }
        #screen-study .study-paper-box.semusa2-tax-essay-mode .q-pipe-table {
            border-collapse: collapse !important;
            font-size: 13px !important;
            line-height: 1.45 !important;
            margin: 6px 0 10px !important;
            max-width: none !important;
            width: auto !important;
            table-layout: auto !important;
        }
        #screen-study .study-paper-box.semusa2-tax-essay-mode .q-pipe-table th,
        #screen-study .study-paper-box.semusa2-tax-essay-mode .q-pipe-table td {
            border: 1px solid var(--text) !important;
            padding: 2px 6px !important;
            vertical-align: middle !important;
            white-space: nowrap !important;
            text-align: center !important;
            word-break: normal !important;
        }
        #screen-study .study-paper-box.semusa2-tax-essay-mode .q-pipe-table th {
            font-weight: 600 !important;
            text-align: center !important;
            background: #f0f0f0 !important;
        }
        #screen-study .study-paper-box.semusa2-tax-essay-mode .q-pipe-table td:first-child,
        #screen-study .study-paper-box.semusa2-tax-essay-mode .q-pipe-table th:first-child {
            text-align: left !important;
            white-space: nowrap !important;
        }
        #screen-study .study-paper-box.semusa2-tax-essay-mode .q-pipe-table td:last-child {
            text-align: right !important;
        }
        @media (max-width: 760px) {
            #screen-study .study-paper-box.semusa2-essay-mode {
                padding: 18px 20px !important;
            }
            #screen-study .study-paper-box.semusa2-essay-mode > .prob-text {
                font-size: 15.8px !important;
                line-height: 1.68 !important;
            }
            #screen-study .study-paper-box.semusa2-essay-mode .semusa-two-col-tables {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            #screen-study .study-paper-box.semusa2-essay-mode table.semusa-statement-table,
            #screen-study .study-paper-box.semusa2-essay-mode table.semusa-answer-grid,
            #screen-study .study-paper-box.semusa2-essay-mode table.semusa-box-table {
                font-size: 14.4px;
            }
        }
        .boki-box { border: 1px solid #333; padding: 8px 12px; margin: 10px 0; display: block; width: 100%; box-sizing: border-box; }
        .boki-title { font-weight: 700; margin-bottom: 6px; }
.boki-box .ex { font-style: italic; }
        .boki-box-line { display: block; margin: 2px 0; }
        .semusa-essay-sub { margin-top: 14px; border-top: 1px dashed #ccc; padding-top: 10px; }
        .semusa-essay-sub-label { font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--primary); }
        .semusa-essay-part { margin-top: 8px; }
        .semusa-essay-part-label { font-size: 13px; color: #555; margin-bottom: 4px; }
        .semusa-essay-part textarea { width: 100%; min-height: 60px; font-family: inherit; font-size: 14px; border: 1px solid #ccc; border-radius: 4px; padding: 6px; box-sizing: border-box; resize: vertical; }
        .semusa-essay-main textarea { width: 100%; min-height: 100px; font-family: inherit; font-size: 14px; border: 1px solid #ccc; border-radius: 4px; padding: 6px; box-sizing: border-box; resize: vertical; }
        .semusa-q-hdr { display: flex; align-items: baseline; gap: 10px; padding: 0 0 8px; border-bottom: 2px solid #1A2D54; margin-bottom: 14px; font-family: "Noto Sans KR", sans-serif; flex-wrap: wrap; }
        .semusa-q-hdr-label { font-weight: 700; font-size: 16px; color: #1A2D54; }
        .semusa-q-hdr-pts { font-size: 13px; color: #374151; font-weight: 600; background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 4px; padding: 1px 7px; }
        .semusa-q-hdr-src { font-size: 11.5px; color: #6B7280; margin-left: auto; }
        .semusa-q-sub-head { display: block; margin: 20px 0 6px; font-weight: 700; font-size: inherit; color: inherit; font-family: inherit; white-space: normal; }
        .semusa-subreq { display: block; margin: 12px 0 4px; font-weight: 700; color: #1A2D54; }
        .semusa-page-ref { font-size: 10px; color: #C0C0C0; font-family: "Noto Sans KR", sans-serif; }
        .semusa-q-title-inline { color: #1A2D54; font-weight: 700; }
        .journal-entry-box { display: flex; border: 1.5px solid #374151; margin: 10px 0; font-family: "Noto Sans KR", sans-serif; }
        .journal-col { flex: 1; min-height: 48px; }
        .journal-col.debit-col { border-right: 1.5px solid #374151; }
        .journal-header { text-align: center; font-weight: 700; font-size: 13px; background: none; color: inherit; padding: 4px 8px; border-bottom: 1.5px solid #374151; }
        .journal-content { padding: 8px 10px; min-height: 36px; font-size: 14px; line-height: 1.7; white-space: normal; }
        .semusa-bullet-line { display: inline; }
        .semusa-pts-badge { display: inline-block; background: #FFF8E1; border: 1px solid #F59E0B; border-radius: 3px; padding: 0 5px; font-size: 12px; font-weight: 700; color: #92400E; font-family: "Noto Sans KR", sans-serif; vertical-align: middle; margin-left: 2px; }
        .semusa-note-mark { display: inline; color: #6B7280; font-size: 13px; font-family: "Noto Sans KR", sans-serif; }
        .semusa-bullet-line { font-family: inherit; display: inline; }
        #screen-study .essay-answer-topbar {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            padding: 2px 0 3px;
            color: #444;
            font-size: 13px;
            font-family: "Noto Sans KR", sans-serif;
            letter-spacing: 0.03em;
        }
        #screen-study .essay-answer-body {
            display: block;
            border: 1px solid #B7C0CC;
            padding: 8px 10px 6px;
            box-sizing: border-box;
        }
        #screen-study .essay-submit-row {
            display: flex;
            justify-content: flex-end;
            margin-top: 6px;
        }
        #screen-study .essay-submit-btn {
            background: #00493B;
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 700;
            font-family: "Noto Sans KR", sans-serif;
            cursor: pointer;
        }
        #screen-study .essay-submit-btn:hover { background: #00382D; }
        #screen-study .essay-submit-btn .essay-submit-hint {
            font-weight: 400;
            font-size: 11px;
            opacity: 0.75;
            margin-left: 4px;
        }
        /* 약술형 기호 팔레트 — body에 떠있는 단일 패널(드래그 이동 + 접기/펼치기). #screen-study 밖이라 zoom 영향 없음 */
        .essay-symbol-bar {
            position: fixed;
            right: 28px;
            /* ★★세로 중앙에 두면 `.study-mini-nav`(이전/다음ㆍ제출)와 같은 세로 띠에 놓여 겹친다.
               겹치면 둘 중 하나는 반드시 못 누른다 — z-index 로는 가림 방향만 바뀐다.
               노무사에서는 제출이 막혔고(답안칸에 `⑨` 가 대신 입력), 법무사에서는 기호 버튼이
               죽었다(2026-08-16 실측, 폭 1024ㆍ1280ㆍ1440ㆍ1600). 겹침 자체를 없앤다.
               하단 16px + 40vh 로 두면 네비 띠 아래에서 시작해 h=768~1080 전부에서 겹치지 않는다.
               넘치는 기호는 팔레트 자체 스크롤로 닿는다. */
            top: auto;
            bottom: 16px;
            transform: none;
            z-index: 60;
            display: grid;
            grid-template-columns: repeat(3, 34px);
            gap: 4px;
            align-content: start;
            padding: 8px;
            border: 1px solid #d4d9e3;
            border-radius: 6px;
            background: #f7f8fa;
            box-shadow: 0 4px 16px rgba(0,0,0,0.12);
            max-height: 40vh;
            overflow-y: auto;
        }
        /* 모바일: 화면 중앙(top:50%)에 뜨면 문제 텍스트를 가림 → 하단 우측으로 이동 */
        @media (max-width: 767px) {
            .essay-symbol-bar {
                top: auto;
                bottom: 10px;
                right: 8px;
                transform: none;
                max-height: 40vh;
            }
        }
        .essay-symbol-bar-head {
            grid-column: 1 / -1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            cursor: move;
            user-select: none;
            margin: -4px -4px 2px;
            padding: 3px 5px;
            border-bottom: 1px solid #e2e6ee;
            font-size: 11px;
            color: #64748b;
            font-family: "Noto Sans KR", sans-serif;
        }
        .essay-symbol-bar-grip { letter-spacing: 1px; pointer-events: none; }
        .essay-symbol-bar-toggle {
            cursor: pointer;
            border: 1px solid #c5ccd8;
            border-radius: 4px;
            background: var(--surface);
            color: #334155;
            width: 20px; height: 18px;
            line-height: 1;
            font-size: 13px;
            padding: 0;
        }
        .essay-symbol-bar.collapsed .essay-symbol-bar-head { margin: 0; border-bottom: 0; }
        .essay-symbol-bar.collapsed .essay-sym-btn,
        .essay-symbol-bar.collapsed .essay-sym-sep { display: none; }
        .essay-sym-btn {
            min-width: 30px;
            height: 30px;
            padding: 0 7px;
            font-size: 16px;
            line-height: 1;
            cursor: pointer;
            border: 1px solid #c5ccd8;
            border-radius: 5px;
            background: var(--surface);
            color: #00493B;
            font-family: "Noto Sans KR", sans-serif;
        }
        .essay-sym-wide {
            grid-column: 1 / -1;
            font-size: 10px;
            height: 20px;
            padding: 0 3px;
            white-space: nowrap;
        }
        .essay-sym-btn:hover {
            background: #e6f0ee;
            border-color: #00493B;
        }
        .essay-sym-btn:active {
            background: #00493B;
            color: var(--surface);
        }
        .essay-sym-sep {
            grid-column: 1 / -1;
            height: 1px;
            background: #d4d9e3;
            margin: 2px 0;
        }
        #screen-study .essay-answer-sheet {
            border: 3px solid #00493B;
            background: var(--surface);
            position: relative;
            margin-top: 4px;
            /* 답안지 PDF 실측: 하단 여백 17.9pt(상단 37.9pt). 배율 보정(32px=29.5pt) 시 하단 ≈19px = padding8+border3+margin8 */
            margin-bottom: 8px;
        }
        #screen-study .essay-line-count {
            flex: 0 0 auto;
            /* 답안지 PDF: "(25행)"은 명조(Noto Serif) 14.6pt — 좌측 문구(고딕 13.6pt)보다 살짝 큼 */
            font-size: 14px;
            color: #444;
            font-family: "Noto Serif KR", serif;
            letter-spacing: 0.03em;
        }
        #screen-study .essay-answer-sheet::before {
            content: '';
            position: absolute;
            inset: 4px;
            border: 1px solid #00493B;
            pointer-events: none;
            /* ghost-wrap(텍스트영역 z-index 1·백드롭 z-index 2) 위로 올려 작성 중에도 안쪽 테두리 유지 */
            z-index: 5;
        }

        #screen-study .essay-answer-input {
            display: block;
            width: 100%;
            box-sizing: border-box;
            min-height: calc(32px * 5 + 40px);
            max-height: calc(32px * 40 + 40px);
            padding: 32px 8px 8px;
            border: 0;
            resize: none;
            overflow-y: hidden;
            background-color: var(--surface);
            /* 회계사 답안지 PDF 스타일: 실선이 아니라 점의 연속(점선) */
            background-image: var(--dot-bg-img);
            background-size: 5px 32px;
            background-position: 0 -4px;
            background-attachment: local;
            background-origin: content-box;
            background-clip: content-box;
            color: #0F172A;
            font-family: "Noto Serif KR", "Noto Sans KR", serif;
            font-size: 16px;
            line-height: 32px;
            outline: none;
            caret-color: auto;
            /* 맨 아래줄 점선 숨기기: inset shadow가 background-image 위, text 아래에 그려짐 */
            box-shadow: inset 0 -2px 0 0 var(--surface);
        }

        /* 물음별 분리 답안칸: min-height 3줄 */
        #screen-study .essay-answer-input.sub-essay-input {
            min-height: calc(32px * 3 + 40px);
        }

        /* 채점 해설: 내 답안/모범답안을 박스 없이 답안지 점선 위에 평문으로 (입력칸과 동일한 32px 괘선 정렬) */
        /* 입력칸(essay-answer-input)과 동일한 점선 — wrap 전체에 입혀 라벨 구간도 연속, 32px 격자 정렬 */
        #screen-study .essay-review-lined-wrap {
            padding: 32px 8px 8px;
            line-height: 32px;
            background-image: var(--dot-bg-img-card);
            background-size: 5px 32px;
            background-position: 0 -4px;
            background-attachment: local;
            background-origin: content-box;
            background-clip: content-box;
        }
        #screen-study .essay-review-tag {
            font-size: 12px;
            font-weight: 800;
            color: #00493B;
            letter-spacing: 0.03em;
            line-height: 32px;
            margin: 0;
        }
        #screen-study .essay-review-lined {
            line-height: 32px;
            font-family: "Noto Serif KR", "Noto Sans KR", serif;
            font-size: 16px;
            color: #0F172A;
            white-space: pre-wrap;
            overflow-wrap: break-word;
            word-break: break-word;
        }
        #screen-study .essay-review-lined .jx-ma-seg { line-height: 32px; }
        /* 모범답안/내답안 표: 셀 투명(뒤 점선 비침) + 행 높이 32px(점선 간격 배수)로 스냅
           → 표 다음 줄이 점선 격자에서 안 밀림 (essay-review-card-body와 동일 처리) */
        #screen-study .essay-review-lined table { border-collapse: separate; border-spacing: 0; margin: 0; background: transparent; font-size: 14px; display: block; width: max-content; max-width: 100%; overflow-x: auto; }
        #screen-study .essay-review-lined table td,
        #screen-study .essay-review-lined table th { white-space: nowrap; line-height: 32px; height: 32px; padding: 0 8px; background: transparent; border: 0; box-shadow: inset -1px -1px 0 rgba(120,130,150,0.5); vertical-align: middle; }
        #screen-study .essay-review-lined table tr:first-child td,
        #screen-study .essay-review-lined table tr:first-child th { box-shadow: inset -1px -1px 0 rgba(120,130,150,0.5), inset 0 1px 0 rgba(120,130,150,0.5); }
        #screen-study .essay-review-lined table td:first-child,
        #screen-study .essay-review-lined table th:first-child { box-shadow: inset -1px -1px 0 rgba(120,130,150,0.5), inset 1px 0 0 rgba(120,130,150,0.5); }
        #screen-study .essay-review-lined table tr:first-child td:first-child,
        #screen-study .essay-review-lined table tr:first-child th:first-child { box-shadow: inset -1px -1px 0 rgba(120,130,150,0.5), inset 1px 1px 0 rgba(120,130,150,0.5); }
        #screen-study .essay-review-lined table th { font-weight: 700; }
        #screen-study .essay-review-lined table td,
        #screen-study .essay-review-lined table th { overflow-wrap: anywhere; word-break: break-word; }

        /* 감사 약술형: 우측 답안지 안의 답안양식 분류표(부정삼각형 등) — 한국 CPA 답안 스타일 */
        #screen-study .essay-answer-sheet .slot-answer-table { margin: 2px 0 12px; }
        #screen-study .essay-answer-sheet .slot-answer-table table {
            width: 100%; border-collapse: collapse; background: var(--surface);
            table-layout: fixed; font-size: 13px;
        }
        #screen-study .essay-answer-sheet .slot-answer-table th,
        #screen-study .essay-answer-sheet .slot-answer-table td {
            border: 1px solid #8FA3B6; padding: 7px 6px; text-align: center; vertical-align: middle;
        }
        #screen-study .essay-answer-sheet .slot-answer-table th {
            background: #EDF2F7; font-weight: 700; color: #243B53; white-space: nowrap;
        }
        #screen-study .essay-answer-sheet .slot-answer-table td .qslot-marker {
            font-size: 11px; color: #7A8AA0; margin-right: 3px;
        }
        #screen-study .essay-answer-sheet .slot-answer-table td .qslot-input {
            width: 78%; box-sizing: border-box; border: 0; border-bottom: 1.5px solid #4A6FA5;
            background: transparent; text-align: center; font-size: 14px; padding: 2px 2px; outline: none;
        }
        #screen-study .essay-answer-sheet .slot-answer-table td .qslot-result { font-size: 12px; }

        #screen-study .essay-ghost-wrap { position: relative; }
        /* ghost 래퍼 안에서는 textarea 텍스트를 숨기고 backdrop이 전체 텍스트 렌더링 담당 */
        #screen-study .essay-ghost-wrap > .essay-answer-input { position: relative; z-index: 1; color: transparent; }
        /* IME 조합 중에는 textarea 자체 렌더링으로 표시 */
        #screen-study .essay-ghost-wrap > .essay-answer-input.ime-composing { color: var(--text) !important; }
        #screen-study .essay-ghost-backdrop {
            position: absolute;
            inset: 0;
            margin: 0;
            z-index: 2;
            pointer-events: none;
            overflow: hidden;
            background: transparent;
            color: #0F172A;
            white-space: pre-wrap;
            overflow-wrap: break-word;
            word-break: break-word;
        }
        #screen-study .essay-ghost-backdrop .essay-ghost { color: #A2A8B3; }

        #screen-study .essay-answer-foot {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 3px 16px;
            border-top: 1px solid #BDD1CC;
            color: #3D6B60;
            font-size: 9.5px;
            font-family: "Noto Sans KR", sans-serif;
            letter-spacing: 0.03em;
        }

        #screen-study .essay-answer-input:focus:placeholder-shown {
            caret-color: transparent !important;
        }

        #screen-study .essay-answer-input:focus:not(:placeholder-shown) {
            caret-color: transparent !important;
        }

        #screen-study .essay-answer-input.has-input-caret,
        #screen-study .essay-answer-input.has-input-caret:focus,
        #screen-study .sa-slot-input.has-input-caret,
        #screen-study .audit-ox-input.has-input-caret,
        #screen-study .audit-ox-reason.has-input-caret,
        #screen-study .oxset-input.has-input-caret,
        #screen-study .oxset-reason.has-input-caret {
            caret-color: #0F172A !important;
        }

        #screen-study .essay-review-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 14px;
            padding: 12px;
            background: var(--surface);
        }

        /* 한국은행 약술형: [문제 N] 헤더 */
        .q-num { margin: 8px 0 4px; }
        .q-num b {
            font-size: 1.05em;
            font-weight: 700;
        }
        /* 한국은행 약술형: (물음 1/2/3) 구분 */
        .muleum-header {
            margin-top: 14px;
            margin-bottom: 3px;
        }
        .muleum-header b {
            font-weight: 700;
        }

        #screen-study .essay-review-card {
            border: 1px solid #D5DBE5;
            background: var(--surface);
            min-height: 136px;
        }

        #screen-study .essay-review-card-title {
            padding: 8px 10px;
            border-bottom: 1px solid #E2E8F0;
            color: #475569;
            font-size: 13px;
            font-weight: 800;
        }

        #screen-study .essay-review-card-body {
            padding: 8px 16px;
            color: #0F172A;
            font-size: 16px;
            line-height: 32px;
            white-space: pre-wrap;
            font-family: "Noto Serif KR", "Noto Sans KR", serif;
            background-color: var(--surface);
            /* 회계사 답안지 PDF 스타일: 점의 연속(점선) — 리뷰 카드는 가시성 위해 1px 변형 사용 */
            background-image: var(--dot-bg-img-card);
            background-size: 5px 32px;
            background-position: 0 24px;
            background-attachment: local;
            min-height: calc(32px * 3);
            /* 맨 아래줄 점선 숨기기 */
            box-shadow: inset 0 -2px 0 0 var(--surface);
        }
        #screen-study .essay-review-card-body > *:first-child { margin-top: 0; }
        #screen-study .essay-review-card-body > *:last-child { margin-bottom: 0; }
        /* p/ol/ul 기본 margin이 32px 점선 격자를 깨뜨리므로 제거 */
        #screen-study .essay-review-card-body p { margin-top: 0; margin-bottom: 0; }
        #screen-study .essay-review-card-body ol,
        #screen-study .essay-review-card-body ul { margin-top: 0; margin-bottom: 0; }
        /* 모범답안 표: 셀 투명(뒤 점선 비침, OX 답안지처럼) + 가는 격자(box-shadow는 레이아웃 높이를 안 늘림)
           + 행 높이 32px(점선 간격 배수)로 스냅 → 표 다음 줄 해설이 점선에 그대로 정렬. */
        #screen-study .essay-review-card-body table { border-collapse: separate; border-spacing: 0; margin: 0; background: transparent; font-size: 14px; display: block; width: max-content; max-width: 100%; overflow-x: auto; }
        #screen-study .essay-review-card-body table td,
        #screen-study .essay-review-card-body table th { white-space: nowrap; line-height: 32px; height: 32px; padding: 0 8px; background: transparent; border: 0; box-shadow: inset -1px -1px 0 rgba(120,130,150,0.5); vertical-align: middle; }
        #screen-study .essay-review-card-body table tr:first-child td,
        #screen-study .essay-review-card-body table tr:first-child th { box-shadow: inset -1px -1px 0 rgba(120,130,150,0.5), inset 0 1px 0 rgba(120,130,150,0.5); }
        #screen-study .essay-review-card-body table td:first-child,
        #screen-study .essay-review-card-body table th:first-child { box-shadow: inset -1px -1px 0 rgba(120,130,150,0.5), inset 1px 0 0 rgba(120,130,150,0.5); }
        #screen-study .essay-review-card-body table tr:first-child td:first-child,
        #screen-study .essay-review-card-body table tr:first-child th:first-child { box-shadow: inset -1px -1px 0 rgba(120,130,150,0.5), inset 1px 1px 0 rgba(120,130,150,0.5); }
        #screen-study .essay-review-card-body table th { font-weight: 700; }
        /* 모범답안 카드: HTML 콘텐츠의 태그 사이 개행문자가 pre-wrap으로 빈 줄이 되는 문제 방지 */
        #screen-study .essay-review-grid .essay-review-card:nth-child(2) .essay-review-card-body { white-space: normal; }
        /* 위·아래 첨자가 32px 줄 격자(점선)를 밀어내지 않도록 + 번호/불릿 목록을 점선 줄에 맞춤 */
        #screen-study .essay-review-card-body sub,
        #screen-study .essay-review-card-body sup { line-height: 0; }
        #screen-study .essay-review-card-body ol,
        #screen-study .essay-review-card-body ul { padding-left: 22px; }
        #screen-study .essay-review-card-body li { line-height: 32px; }
        /* 와이드 콘텐츠 방어: 모범답안/해설 카드가 넓은 표·긴 토큰·구조도에 밀려 화면 밖으로 깨지지 않도록.
           (1) 그리드 아이템이 콘텐츠 폭에 안 밀리고 줄어들 수 있게 min-width:0  (2) 긴 토큰 강제 줄바꿈
           (3) 그래도 안 줄어드는 넓은 표는 카드 안에서만 가로 스크롤 → 페이지 레이아웃은 안 깨짐. */
        #screen-study .essay-review-card { min-width: 0; }
        #screen-study .essay-review-card-body { overflow-wrap: anywhere; overflow-x: auto; }
        #screen-study .essay-review-card-body table { max-width: 100%; }
        #screen-study .essay-review-card-body table td,
        #screen-study .essay-review-card-body table th { overflow-wrap: anywhere; word-break: break-word; }

        /* 약술형 답안양식 자동채점 — 본문 ①②③ 칸 입력/결과 */
        #screen-study .qslot-marker { font-weight: 800; color: var(--primary); }
        #screen-study .qslot-input {
            width: 150px;
            max-width: 60%;
            padding: 5px 8px;
            border: 1px solid #C7D2E0;
            border-radius: 6px;
            font-size: 14px;
            text-align: right;
            font-family: inherit;
        }
        #screen-study .qslot-input:focus {
            outline: none;
            border-color: #2563EB;
            box-shadow: 0 0 0 2px rgba(37,99,235,0.18);
        }
        /* 답안양식 표 입력 cell: 클릭(포커스) 시 배경 강조, F2 시 깜빡임 */
        #screen-study td.ans-write { cursor: text; transition: background .12s; }
        #screen-study td.ans-write:focus {
            background: rgba(253, 224, 110, 0.10) !important;
            outline: 2px solid #2563EB;
            outline-offset: -2px;
        }
        #screen-study td.ans-write.cell-blink { animation: ansCellBlink 0.7s steps(1) infinite; }
        @keyframes ansCellBlink { 0%,100% { background: rgba(253, 224, 110, 0.08); } 50% { background: rgba(253, 224, 110, 0.18); } }
        #screen-study .qslot-result {
            display: inline-flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 5px;
            font-size: 13px;
        }
        #screen-study .qslot-mark { font-weight: 800; font-size: 15px; }
        #screen-study .qslot-result.ok .qslot-mark { color: #16A34A; }
        #screen-study .qslot-result.no .qslot-mark { color: #DC2626; }
        #screen-study .qslot-result.uncertain .qslot-mark { color: #CA8A04; }
        #screen-study .qslot-result.no .qslot-user { color: #DC2626; text-decoration: line-through; }
        #screen-study .qslot-ans { font-weight: 700; color: #0F172A; }
        #screen-study .qslot-note { color: #CA8A04; font-size: 12px; }
        #screen-study .essay-slot-hint {
            padding: 10px 14px;
            font-size: 13px;
            color: #475569;
            line-height: 1.5;
        }
        #screen-study .essay-slot-hint code {
            background: #EEF2F7;
            padding: 1px 5px;
            border-radius: 4px;
            font-size: 12px;
        }

        #screen-study .essay-auto-score-badge {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #6B7280;
            background: #F3F4F6;
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 4px 10px;
            white-space: nowrap;
        }
        #screen-study .essay-ai-pending { margin-top: 10px; padding: 8px 12px; background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 6px; font-size: 13px; color: #9A3412; }
        #screen-study .essay-ai-feedback { margin-top: 10px; padding: 10px 14px; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 6px; font-size: 13px; line-height: 1.65; }
        #screen-study .essay-ai-label { font-weight: 700; color: #166534; display: block; margin-bottom: 5px; font-size: 12px; letter-spacing: .02em; }
        #screen-study .essay-ai-body { white-space: pre-wrap; }
        #screen-study .essay-ai-missing { margin-top: 7px; color: #991B1B; font-size: 12px; }
        /* AI 물음별 점수 */
        #screen-study .essay-ai-perq { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
        #screen-study .essay-ai-perq-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 5px 10px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 6px; font-size: 13px; line-height: 1.55; }
        #screen-study .essay-ai-perq-label { font-weight: 800; color: var(--primary); white-space: nowrap; }
        #screen-study .essay-ai-perq-score { font-weight: 700; color: #0F172A; white-space: nowrap; }
        #screen-study .essay-ai-perq-fb { color: #475569; flex: 1 1 100%; }
        /* AI 채점 결과 카드 — 모범답안/내답안과 동일한 essay-review-card UI */
        #screen-study .essay-ai-review-card { margin-top: 12px; }
        #screen-study .essay-ai-review-card .essay-review-card-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
        #screen-study .essay-ai-review-card .essay-ai-pending:first-child,
        #screen-study .essay-ai-review-card .essay-ai-feedback:first-child,
        #screen-study .essay-ai-review-card .essay-item-breakdown:first-child { margin-top: 0; }
        #screen-study .essay-ai-score-chip { font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: #EFF6FF; color: var(--primary); border: 1px solid #BFDBFE; }
        #screen-study .essay-ai-score-chip.correct { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
        #screen-study .essay-ai-score-chip.ambiguous { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
        #screen-study .essay-ai-score-chip.wrong { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
        #screen-study .essay-item-breakdown {
            margin-top: 6px;
            font-size: 12px;
            line-height: 1.7;
            color: #374151;
        }
        #screen-study .essay-item-breakdown .ib-row {
            margin: 2px 0;
        }
        #screen-study .essay-item-breakdown .ib-score {
            font-weight: 700;
            color: var(--text);
        }
        #screen-study .essay-item-breakdown .ib-hit {
            color: #6B7280;
            font-weight: 400;
            margin-right: 2px;
        }
        #screen-study .essay-item-breakdown .ib-miss {
            color: #9CA3AF;
            font-weight: 400;
            margin-right: 2px;
        }

        #screen-study .essay-grade-actions {
            display: grid;
            grid-template-columns: repeat(3, 1fr) auto;
            gap: 8px;
            padding: 0 12px 12px;
            background: var(--surface);
        }

        #screen-study .essay-grade-btn {
            min-height: 42px;
            border: 1px solid #CBD5E1;
            background: var(--surface);
            color: #334155;
            font-size: 15px;
            font-weight: 800;
            cursor: pointer;
        }

        #screen-study .essay-grade-btn.selected {
            border-color: var(--primary);
            background: #EFF6FF;
            color: var(--primary);
        }

        #screen-study .essay-grade-note {
            padding: 0 12px 12px;
            color: #64748B;
            font-size: 13px;
            line-height: 1.5;
            background: var(--surface);
        }

        /* Exam stem box: keep the bordered question area close to printed CPA paper spacing. */
        #screen-study {
            --exam-line-color: var(--text);
        }

        #screen-study .study-paper-box.active {
            padding: 0 !important;
            background: var(--study-paper, #F3F4F5) !important;
            border: 1px solid var(--exam-line-color) !important;
            border-radius: 0 !important;
            --exam-stem-pad-y: 8px;
            --exam-stem-pad-x: 11px;
        }

        #screen-study .sa-input-area,
        #screen-study .sa-pair-table {
            border-color: var(--exam-line-color) !important;
        }

        #screen-study .sa-pair-row {
            border-bottom-color: var(--exam-line-color) !important;
        }

        #screen-study .sa-pair-a {
            border-right-color: var(--exam-line-color) !important;
        }

        #screen-study .ox-btns,
        #screen-adapt .ox-btns {
            border-top-color: var(--exam-line-color) !important;
            border-bottom-color: var(--exam-line-color) !important;
        }

        #screen-study .ox-btn + .ox-btn {
            border-left-color: var(--exam-line-color) !important;
        }

        #screen-study .study-paper-box.active .prob-text,
        #screen-study .study-paper-box.active .sa-context {
            box-sizing: border-box !important;
            padding: var(--exam-stem-pad-y) var(--exam-stem-pad-x) !important;
            margin: 0 !important;
            width: 100% !important;
            max-width: none !important;
            white-space: pre-line !important;
            word-break: keep-all !important;
            overflow-wrap: break-word !important;
            line-break: strict;
            text-wrap: pretty;
            text-align: left;
        }

        /* Short-answer grading: put status on the answer-sheet row instead of a separate right column. */
        #screen-study .sa-answer-layout.has-feedback {
            grid-template-columns: minmax(0, 1fr) !important;
            row-gap: 8px !important;
        }

        #screen-study .sa-feedback-inline {
            width: 100% !important;
            max-width: none !important;
            justify-self: stretch !important;
        }

        #screen-study .sa-pair-row.is-correct .sa-pair-a {
            background: #EFF8F1 !important;
            color: #166534 !important;
        }

        #screen-study .sa-pair-row.is-wrong .sa-pair-a {
            background: #FFF3F2 !important;
            color: #B42318 !important;
        }

        #screen-study .sa-pair-row.is-correct .sa-slot-input {
            background: #FAFFFB !important;
        }

        #screen-study .sa-pair-row.is-wrong .sa-slot-input {
            background: #FFFCFC !important;
        }

        #screen-study .sa-pair-row.cell-active {
            background: #F8FBFF !important;
            box-shadow:
                inset 0 0 0 2px var(--primary),
                0 4px 14px rgba(29, 78, 216, 0.10) !important;
            position: relative;
            z-index: 1;
        }

        #screen-study .sa-pair-row.cell-active .sa-pair-a {
            background: var(--primary) !important;
            color: var(--surface) !important;
        }

        #screen-study .sa-pair-row.cell-active .sa-slot-input {
            background: #F8FBFF !important;
            color: #0F172A !important;
            font-weight: 400 !important;
        }

        #screen-study .sa-pair-a {
            flex-direction: column !important;
            gap: 2px !important;
            line-height: 1.05 !important;
        }

        #screen-study .sa-row-no {
            display: block;
            font-size: 14.6px;
            font-weight: 800;
        }

        #screen-study .sa-row-status {
            display: block;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: -0.04em;
            white-space: nowrap;
        }

        #screen-study .sa-pair-b {
            display: grid !important;
            grid-template-columns: minmax(0, 1fr) !important;
            align-items: stretch !important;
        }

        #screen-study .sa-inline-correction {
            display: grid;
            grid-template-columns: 34px minmax(0, 1fr);
            column-gap: 8px;
            align-items: baseline;
            padding: 6px 12px 8px 14px;
            border-top: 1px solid #F1C7C5;
            background: #FFF8F8;
            color: #991B1B;
            font-size: 13px;
            line-height: 1.45;
        }

        #screen-study .sa-inline-correction span {
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            font-weight: 800;
            color: #B42318;
            white-space: nowrap;
        }

        #screen-study .sa-inline-correction strong {
            min-width: 0;
            font-family: 'Noto Serif CJK KR', serif;
            font-weight: 700;
            color: #991B1B;
            word-break: keep-all;
            overflow-wrap: anywhere;
        }

        #screen-study .sa-result-area {
            padding: 8px 10px !important;
            border-radius: 0 !important;
            box-shadow: none !important;
        }

        #screen-study .sa-result-summary {
            font-size: 13px !important;
            font-weight: 600 !important;
            color: #64748B !important;
            line-height: 1.45 !important;
        }

        #screen-study .study-paper-box.active.short-mode > .prob-text {
            padding: 0 !important;
        }

        #screen-study .study-paper-box.active.oxset-mode {
            border: 0 !important;
            background: transparent !important;
        }

        #screen-study .study-paper-box.active.short-mode > .prob-text > .sa-context,
        #screen-study .study-paper-box.active.ox-mode > .prob-text,
        #screen-study .study-paper-box.active.oxset-mode > .prob-text {
            padding: var(--exam-stem-pad-y) var(--exam-stem-pad-x) !important;
        }

        #screen-study .study-paper-box.active.oxset-mode > .prob-text {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        @media (min-width: 900px) {
            #screen-study .study-paper-box.active {
                --exam-stem-pad-y: 9px;
                --exam-stem-pad-x: 12px;
            }

            #screen-study .study-paper-box.active .prob-text,
            #screen-study .study-paper-box.active .sa-context {
                line-height: 1.68 !important;
            }
        }

        @media (max-width: 767px) {
            #screen-study .study-paper-box.active {
                --exam-stem-pad-y: 8px;
                --exam-stem-pad-x: 9px;
            }

            #screen-study .study-paper-box.active .prob-text,
            #screen-study .study-paper-box.active .sa-context {
                line-height: 1.72 !important;
            }
        }

        /* 시험지에 가까운 문제 줄바꿈: 문장 폭보다 한글 조판 밀도를 우선 맞춘다. */
        #screen-study .study-paper-box.active .prob-text,
        #screen-study .study-paper-box.active .sa-context,
        #screen-study .choice-txt,
        #screen-study .oxset-choice-text,
        #screen-adapt .choice-txt {
            word-break: keep-all !important;
            overflow-wrap: break-word !important;
            line-break: strict;
            text-wrap: pretty;
        }

        @media (min-width: 900px) {
            #screen-study .study-paper-box.active .prob-text,
            #screen-study .study-paper-box.active .sa-context {
                font-size: 18.1px !important;
                line-height: 1.62 !important;
                letter-spacing: -0.026em !important;
            }

            #screen-study .choice-txt,
            #screen-study .oxset-choice-text,
        #screen-adapt .choice-txt {
                font-size: 17.05px !important;
                line-height: 1.6 !important;
                letter-spacing: -0.024em !important;
            }

            #screen-study .study-paper-box.active.short-mode > .prob-text > .sa-context,
            #screen-study .study-paper-box.active.ox-mode > .prob-text,
            #screen-study .study-paper-box.active.oxset-mode > .prob-text {
                padding-top: 8px !important;
                padding-bottom: 8px !important;
            }
        }

        @media (max-width: 767px) {
            #screen-study .study-paper-box.active .prob-text,
            #screen-study .study-paper-box.active .sa-context {
                letter-spacing: -0.018em !important;
                line-height: 1.66 !important;
            }

            #screen-study .choice-txt,
            #screen-study .oxset-choice-text,
        #screen-adapt .choice-txt {
                letter-spacing: -0.015em !important;
                line-height: 1.64 !important;
            }
        }





        /* 감사 객관식 해설: 별도 박스 없이 답안양식 아래 한 줄(32px) 띄고 평문으로 (사용자 요청) */
        #screen-study .oxset-explanation-list {
            display: grid;
            gap: 4px;
            margin-top: 32px;
        }

        #screen-study .oxset-explanation-row {
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr);
            border: 0;
            background: transparent;
        }

        #screen-study .oxset-explanation-no {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            border-right: 0;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif;
            font-size: 13px;
            font-weight: 700;
            color: var(--text);
        }

        #screen-study .oxset-explanation-body {
            padding: 7px 9px;
            font-size: 13px;
            line-height: 1.45;
            color: var(--text);
        }

        #screen-study .oxset-explanation-judge {
            display: inline-flex;
            align-items: center;
            margin-bottom: 3px;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            font-size: 12px;
            font-weight: 800;
            color: #374151;
        }

        #screen-study .oxset-explanation-text {
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif;
            word-break: keep-all;
            overflow-wrap: anywhere;
            align-self: start;
            padding: 7px 8px;
        }

        /* 2026-05 audit OX answer sheet: closer to the printed CPA answer-form table. */
        #screen-study .oxset-answer-sheet {
            width: calc(var(--study-paper-width) - 40px) !important;
            max-width: calc(var(--study-paper-width) - 40px) !important;
            margin: 8px auto 0 !important;
            padding: 0 !important;
            background: transparent !important;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif !important;
            color: var(--exam-line-color, var(--text)) !important;
            letter-spacing: -0.025em !important;
        }

        #screen-study .oxset-title {
            margin: 0 0 2px !important;
            padding: 0 !important;
            color: var(--exam-line-color, var(--text)) !important;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif !important;
            font-size: 14.6px !important;
            font-weight: 700 !important;
            line-height: 1.22 !important;
        }

        #screen-study .oxset-table {
            display: grid !important;
            grid-template-columns: minmax(44px, max-content) 130px minmax(0, 1fr) !important;
            border: 1px solid var(--exam-line-color, var(--text)) !important;
            background: transparent !important;
            box-shadow: none !important;
        }

        #screen-study .oxset-table-head {
            min-height: 34px !important;
            padding: 4px 5px !important;
            border-bottom: 1px solid var(--exam-line-color, var(--text)) !important;
            border-right: 1px solid var(--exam-line-color, var(--text)) !important;
            background: transparent !important;
            color: var(--exam-line-color, var(--text)) !important;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif !important;
            font-size: 13.7px !important;
            font-weight: 400 !important;
            line-height: 1.24 !important;
            text-align: center !important;
        }

        #screen-study .oxset-table-head.reason {
            border-right: 0 !important;
            padding-left: 8px !important;
            padding-right: 8px !important;
        }

        #screen-study .oxset-table-row {
            display: grid !important;
            grid-template-columns: 90px 156px minmax(0, 1fr) !important;
            min-height: 44px !important;
            border-bottom: 1px solid var(--exam-line-color, var(--text)) !important;
            background: transparent !important;
        }

        #screen-study .oxset-choice-cell.cell-active {
            background: transparent !important;
            box-shadow: none !important;
        }
        #screen-study .oxset-input,
        #screen-study .oxset-input:focus,
        #screen-study .oxset-input:focus-visible,
        #screen-study .oxset-input:active {
            border: 0 !important;
            outline: none !important;
            box-shadow: none !important;
            background: transparent !important;
        }

        #screen-study .oxset-no-cell,
        #screen-study .oxset-choice-cell,
        #screen-study .oxset-reason-cell {
            background: transparent !important;
        }

        #screen-study .oxset-no-cell,
        #screen-study .oxset-choice-cell {
            border-right: 1px solid var(--exam-line-color, var(--text)) !important;
        }

        #screen-study .oxset-no-cell {
            justify-content: center !important;
            padding-top: 0 !important;
            gap: 1px !important;
            color: var(--exam-line-color, var(--text)) !important;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif !important;
            font-size: 13.8px !important;
            font-weight: 400 !important;
        }

        #screen-study .oxset-table-row.cell-active .oxset-no-cell {
            background: #EFF4FE !important;
            color: var(--exam-line-color, var(--text)) !important;
        }

        #screen-study .oxset-table-row.cell-active .oxset-choice-cell.cell-input-active,
        #screen-study .oxset-table-row.cell-active .oxset-reason-cell.cell-input-active {
            background-color: transparent !important;
        }

        /* 감사 OX 답안지: 활성 칸(OX+이유) 미색 오버레이 (::after로 점선 위에 반투명 겹침) */
        #screen-study #choicesArea .oxset-table-row.cell-active .oxset-choice-cell.cell-input-active,
        #screen-study #choicesArea .oxset-table-row.cell-active .oxset-reason-cell.cell-input-active {
            position: relative;
        }
        #screen-study #choicesArea .oxset-table-row.cell-active .oxset-choice-cell.cell-input-active::after,
        #screen-study #choicesArea .oxset-table-row.cell-active .oxset-reason-cell.cell-input-active::after {
            content: '';
            position: absolute;
            inset: 3px 1px;
            background-color: transparent;
            pointer-events: none;
            z-index: 0;
        }
        #screen-study #choicesArea .oxset-table-row.cell-active .oxset-choice-cell.cell-input-active > *,
        #screen-study #choicesArea .oxset-table-row.cell-active .oxset-reason-cell.cell-input-active > * {
            position: relative;
            z-index: 1;
        }

        #screen-study .oxset-input {
            height: 43px !important;
            color: var(--exam-line-color, var(--text)) !important;
            background: transparent !important;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif !important;
            font-size: 14.2px !important;
            font-weight: 400 !important;
            letter-spacing: -0.02em !important;
            text-align: center !important;
            box-shadow: none !important;
        }

        #screen-study .oxset-input:focus {
            background: transparent !important;
            box-shadow: none !important;
            outline: none !important;
        }

        #screen-study .oxset-input::placeholder {
            color: #9CA3AF !important;
            font-size: 14px !important;
            font-weight: 400 !important;
        }

        #screen-study .oxset-reason {
            min-height: 58px !important;
            height: 58px !important;
            max-height: 58px !important;
            padding: 5px 8px !important;
            background: transparent !important;
            color: var(--exam-line-color, var(--text)) !important;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif !important;
            font-size: 13.9px !important;
            line-height: 1.3 !important;
            resize: none !important;
            overflow: hidden !important;
            box-shadow: none !important;
        }

        #screen-study .oxset-reason:focus {
            background: transparent !important;
            box-shadow: inset 0 0 0 2px rgba(29, 78, 216, 0.35) !important;
        }

        #screen-study .oxset-reason:not(.active) {
            background: transparent !important;
            color: var(--text) !important;
        }

        #screen-study .oxset-reason::placeholder {
            color: #9CA3AF !important;
            font-size: 14px !important;
        }

        #screen-study .oxset-row-status {
            margin-top: 1px !important;
            font-family: 'Noto Sans KR', sans-serif !important;
            font-size: 9px !important;
            font-weight: 500 !important;
            letter-spacing: -0.04em !important;
        }

        #screen-study .oxset-choice-no,
        #screen-study .oxset-no-cell,
        #screen-study .oxset-no-cell > span {
            color: var(--exam-line-color, var(--text)) !important;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif !important;
            font-size: 13.8px !important;
            font-weight: 400 !important;
            letter-spacing: -0.02em !important;
            line-height: 1.2 !important;
            text-align: center !important;
        }

        #screen-study .oxset-help {
            padding: 5px 0 0 !important;
            color: #6B7280 !important;
            font-family: 'Noto Sans KR', sans-serif !important;
            font-size: 13.2px !important;
            line-height: 1.35 !important;
        }

        @media (max-width: 767px) {
            #screen-study .oxset-answer-sheet {
                width: calc(var(--study-paper-width) - 26px) !important;
                max-width: calc(var(--study-paper-width) - 26px) !important;
            }
        }

        #screen-study .oxset-total-result {
            margin-top: 8px !important;
            min-height: 34px !important;
            padding: 6px 10px !important;
            border-radius: 0 !important;
            font-family: 'Noto Sans KR', sans-serif !important;
            font-size: 13px !important;
        }

        /* Multiple-choice layout: stem and choices share the same exam-paper width. */
        #screen-study #choicesArea > .mcq-layout {
            width: 100% !important;
            max-width: var(--study-paper-width) !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }

        #screen-study .mcq-main {
            min-width: 0;
        }

        #screen-study .mcq-main .choices {
            width: 100% !important;
            max-width: 100% !important;
        }

        #screen-study .mcq-help-line {
            margin-top: 10px;
            color: #6B7280;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            font-size: 13px;
            line-height: 1.45;
        }

        /* Audit multiple-choice: printed answer-form style instead of app-like number buttons. */
        #screen-study .audit-mcq-sheet {
            width: calc(var(--study-paper-width) - 40px) !important;
            max-width: calc(var(--study-paper-width) - 40px) !important;
            margin: 18px auto 0 !important;
            color: var(--exam-line-color, var(--text));
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif;
            font-size: var(--audit-ox-font-size, 18px);
            line-height: var(--audit-ox-line-height, 1.6);
            letter-spacing: -0.026em;
        }

        #screen-study .study-paper-box.multiple-mode .prob-text {
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif;
            font-size: 23px;
            font-weight: 700;
            line-height: 1.8;
            color: var(--exam-line-color, var(--text));
            text-indent: 0;
            padding-left: 0;
            max-width: 43em;
            box-sizing: border-box;
            margin-left: auto;
            margin-right: auto;
        }
        #screen-study .study-paper-box.multiple-mode .gnd-box {
            font-weight: 700;
        }
        #screen-study .study-paper-box.multiple-mode + #choicesArea .choices {
            max-width: 43em;
            margin-left: auto;
            margin-right: auto;
        }
        #screen-study .study-paper-box.multiple-mode + #choicesArea .choice-row {
            grid-template-columns: 1.3em minmax(0, 1fr);
            column-gap: 0.45em;
            margin-bottom: 4px;
            padding: 0;
        }
        #screen-study .study-paper-box.multiple-mode + #choicesArea .choice-txt {
            line-height: 1.8;
            font-size: 23px;
        }

        #screen-study .study-paper-box.audit-mcq-mode .prob-text,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-sheet,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-choice-table,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-answer-table,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-choice-table th,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-choice-table td,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-answer-table th,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-answer-table td,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-choices,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-choice-row,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-ans-label,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-answer-row {
            font-family: var(--exam-serif-font, 'Batang', '바탕', 'KoPub World Batang', 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif) !important;
            font-size: var(--audit-ox-font-size, 18px) !important;
            font-weight: 400 !important;
            line-height: var(--audit-ox-line-height, 1.6) !important;
            letter-spacing: -0.026em !important;
            color: var(--exam-line-color, var(--text)) !important;
        }

        #screen-study .study-paper-box.audit-mcq-mode .prob-text {
            width: calc(var(--study-paper-width) - 40px) !important;
            max-width: calc(var(--study-paper-width) - 40px) !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }

        #screen-study .audit-mcq-choice-table,
        #screen-study .audit-mcq-answer-table {
            width: 100%;
            border-collapse: collapse;
            border: 1px solid var(--exam-line-color, var(--text));
            background: transparent;
            table-layout: fixed;
        }

        #screen-study .audit-mcq-answer-table {
            margin-top: 18px;
        }

        /* Box-format choices (div layout, replaces table) */
        #screen-study .audit-mcq-choices {
            width: 100%;
            border: 1px solid var(--exam-line-color, var(--text));
            background: transparent;
            margin-top: 12px;
        }
        #screen-study .audit-mcq-choices .audit-mcq-choice-row {
            display: flex;
            align-items: stretch;
            border-bottom: 1px solid var(--exam-line-color, var(--text));
            cursor: pointer;
            background: transparent;
        }
        #screen-study .audit-mcq-choices .audit-mcq-choice-row:last-child {
            border-bottom: none;
        }
        #screen-study .audit-mcq-choices .audit-mcq-choice-row .audit-mcq-choice-no {
            flex: 0 0 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 6px 4px;
            line-height: 1.6;
            border-right: 1px solid var(--exam-line-color, var(--text));
        }
        #screen-study .audit-mcq-choices .audit-mcq-choice-row .audit-mcq-choice-text {
            flex: 1 1 0;
            display: flex;
            align-items: center;
            padding: 6px 10px;
            line-height: 1.6;
        }
        #screen-study .audit-mcq-choices .audit-mcq-choice-row.selected {
            background: transparent;
        }
        /* 단답 선지(single-col): 내부 칸 선 없이 바깥 테두리만 */
        #screen-study .audit-mcq-choices .audit-mcq-choice-row.single-col {
            border-bottom: none;
        }
        #screen-study .audit-mcq-choices .audit-mcq-choice-row.single-col .audit-mcq-choice-text {
            padding: 5px 12px;
        }
        /* 감사의견 6선지 그리드 (3열×2행) */
        #screen-study .audit-mcq-choices.mcq-box-mode.opinion-grid-mode {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            border: 1px solid var(--exam-line-color, var(--text));
        }
        #screen-study .audit-mcq-choices.mcq-box-mode.opinion-grid-mode .audit-mcq-bogi-label {
            grid-column: 1 / -1;
            border-bottom: 1px solid var(--exam-line-color, var(--text));
        }
        #screen-study .audit-mcq-choices.mcq-box-mode.opinion-grid-mode .audit-mcq-choice-row {
            border: none;
            border-right: 1px solid var(--exam-line-color, var(--text));
            border-bottom: 1px solid var(--exam-line-color, var(--text));
            justify-content: center;
        }
        #screen-study .audit-mcq-choices.mcq-box-mode.opinion-grid-mode .audit-mcq-choice-row:nth-child(3n+1) {
            border-right: none;  /* 오른쪽에서 첫번째 열: 우측 border 없음(바깥쪽) */
        }
        #screen-study .audit-mcq-choices.mcq-box-mode.opinion-grid-mode .audit-mcq-choice-row:nth-child(3n+2) {
            border-right: 1px solid var(--exam-line-color, var(--text));
        }
        #screen-study .audit-mcq-choices.mcq-box-mode.opinion-grid-mode .audit-mcq-choice-row:nth-last-child(-n+3) {
            border-bottom: none;
        }
        #screen-study .audit-mcq-choices.mcq-box-mode.opinion-grid-mode .audit-mcq-choice-row .audit-mcq-choice-text {
            justify-content: center;
            text-align: center;
            padding: 7px 8px;
        }

        /* OX식: ①②③④ 보기 — 박스 없이 평문 리스트 ([보 기] 라벨만 유지) */
        #screen-study .audit-mcq-choices.mcq-box-mode {
            border: none;
            border-radius: 0;
            background: transparent;
            margin-top: 12px;
            padding: 0;
        }
        /* [ 보 기 ] 머리글: 실제 DOM 요소(.audit-mcq-bogi-label)로 렌더 — 가상요소(::before)와 달리 드래그 선택·복사 가능 */
        #screen-study .audit-mcq-choices.mcq-box-mode .audit-mcq-bogi-label {
            display: block;
            text-align: center;
            padding: 4px 0;
            font-weight: 700;
            letter-spacing: 0.05em;
            user-select: text;
            -webkit-user-select: text;
        }
        #screen-study .audit-mcq-choices.mcq-box-mode .audit-mcq-choice-row {
            border: none;
            border-bottom: none;
            background: transparent;
        }
        #screen-study .audit-mcq-choices.mcq-box-mode .audit-mcq-choice-row .audit-mcq-choice-text {
            display: flex;
            align-items: baseline;
            gap: 0.45em;
            padding: 5px 12px;
        }
        #screen-study .audit-mcq-choices.mcq-box-mode .audit-mcq-choice-body {
            flex: 1 1 0;
            min-width: 0;
        }
        #screen-study .audit-mcq-choices.mcq-box-mode .audit-mcq-choice-no-inline {
            flex: 0 0 auto;
            cursor: pointer;
            font-weight: 700;
        }
        #screen-study .audit-mcq-answer-card {
            background: transparent;
            border: 0;
            padding: 0;
            margin-top: 18px;
        }
        #screen-study .audit-mcq-answer-card .exam-answer-label { margin-top: 0; }
        #screen-study .audit-mcq-answer-card .audit-mcq-answer-table th,
        #screen-study .audit-mcq-answer-card .audit-mcq-answer-table td {
            background: transparent;
            height: 32px !important;
            min-height: 32px !important;
        }
        #screen-study .audit-mcq-answer-card .audit-mcq-answer-table { background: transparent; }
        #screen-study .audit-mcq-explanation {
            width: 100%;
            box-sizing: border-box;
            padding: 0 4px;
            margin-top: 28px;   /* 답안 양식과 한 줄 띄움 */
            position: relative;
            z-index: 2;
        }
        /* 감사 객관식 해설: 박스 없이 답안 양식 밑에 평문으로 */
        #screen-study .audit-mcq-explanation .exp-toggle {
            margin-top: 0;
            margin-bottom: 0;
            padding: 0;
            background: transparent !important;
            border: none !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            cursor: default;
            justify-content: flex-start;
            font-weight: 700;
        }
        #screen-study .audit-mcq-explanation .exp-toggle:hover { background: transparent !important; }
        #screen-study .audit-mcq-explanation .exp-toggle.open {
            border-radius: 0 !important;
            border-bottom-color: transparent !important;
        }
        #screen-study .audit-mcq-explanation .exp-body {
            background: transparent !important;
            border: none !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            margin-bottom: 0;
        }
        #screen-study .audit-mcq-explanation .exp-inner { padding: 4px 0 0; }
        #screen-study .audit-mcq-answer-row {
            display: flex;
            align-items: center;
            margin-top: 22px;
            gap: 6px;
        }
        #screen-study .audit-mcq-ans-label {
            font-weight: 700;
            white-space: nowrap;
            line-height: 1;
        }

        #screen-study .exam-answer-label {
            width: 100%;
            margin: 18px 0 5px;
            color: var(--exam-line-color, var(--text));
            font-family: var(--exam-serif-font, 'Batang', '바탕', 'KoPub World Batang', 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif) !important;
            font-size: calc(var(--audit-ox-font-size, 18px) * 0.92);
            font-weight: 700;
            line-height: 1.25;
            letter-spacing: -0.025em;
            text-align: left;
        }

        #screen-study .audit-mcq-sheet .exam-answer-label {
            margin-top: 28px;
        }

        #screen-study .audit-mcq-sheet .exam-answer-label + .audit-mcq-answer-table,
        #screen-study .oxset-answer-sheet .exam-answer-label + .oxset-table {
            margin-top: 0 !important;
        }

        #screen-study .audit-mcq-choice-table th,
        #screen-study .audit-mcq-choice-table td,
        #screen-study .audit-mcq-answer-table th,
        #screen-study .audit-mcq-answer-table td {
            border: 1px solid var(--exam-line-color, var(--text));
            background: transparent;
            color: var(--exam-line-color, var(--text));
            font: inherit;
            font-weight: 400;
            vertical-align: middle;
        }

        #screen-study .audit-mcq-choice-table th,
        #screen-study .audit-mcq-answer-table th {
            text-align: center;
        }

        #screen-study .audit-mcq-choice-no {
            width: 50px;
            text-align: center;
            padding: 5px 0;
            line-height: 1;
        }

        #screen-study .audit-mcq-choice-text {
            padding: 6px 10px;
            text-align: left;
        }

        #screen-study .audit-mcq-choice-row.selected .audit-mcq-choice-no,
        #screen-study .audit-mcq-choice-row.selected .audit-mcq-choice-text {
            font-weight: 400;
        }

        #screen-study .audit-mcq-choice-no {
            cursor: pointer;
        }

        #screen-study .audit-mcq-choice-row.correct .audit-mcq-choice-no,
        #screen-study .audit-mcq-choice-row.wrong .audit-mcq-choice-no {
            cursor: default;
        }

        #screen-study .audit-mcq-choice-text {
            cursor: text;
        }

        #screen-study .audit-mcq-choice-row.correct .audit-mcq-choice-no,
        #screen-study .audit-mcq-choice-row.correct .audit-mcq-choice-text {
            font-weight: 700;
        }

        /* 선택한 오답 - 빨간색 */
        #screen-study .audit-mcq-choice-row.wrong .audit-mcq-choice-no,
        #screen-study .audit-mcq-choice-row.wrong .audit-mcq-choice-text {
            color: #B42318;
            font-weight: 700;
            text-decoration: none;
        }

        /* 선택한 정답 - 파란색 */
        #screen-study .audit-mcq-choice-row.selected-correct .audit-mcq-choice-no,
        #screen-study .audit-mcq-choice-row.selected-correct .audit-mcq-choice-text {
            color: var(--primary);
            font-weight: 700;
            text-decoration: none;
        }

        /* 놓친 정답 - 파란색 (초록 대신) */
        #screen-study .audit-mcq-choice-row.missed-correct .audit-mcq-choice-no,
        #screen-study .audit-mcq-choice-row.missed-correct .audit-mcq-choice-text {
            color: var(--primary);
            font-weight: 800;
            text-decoration: none;
        }

        #screen-study .audit-mcq-answer-table th,
        #screen-study .audit-mcq-answer-table td {
            height: 42px;
            min-height: 42px;
            padding: 4px 10px;
            text-align: center;
        }

        #screen-study .audit-mcq-answer-table th:first-child,
        #screen-study .audit-mcq-answer-table td:first-child {
            width: 28%;
        }

        #screen-study .audit-mcq-answer-table th:last-child,
        #screen-study .audit-mcq-answer-table td:last-child {
            width: 72%;
        }

        #screen-study .audit-mcq-answer-body-row td {
            height: 50px;
            text-align: left;
        }

        #screen-study .audit-mcq-answer-body-row td:first-child {
            text-align: center;
            vertical-align: middle;
            padding: 0;
        }

        #screen-study .audit-mcq-answer-entry {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 52px;
            height: 38px;
            border: 1px solid var(--exam-line-color, var(--text));
        }

        #screen-study .audit-mcq-cell-lbl {
            font-size: 12.5px;
            font-weight: 900;
            color: #334155;
            white-space: nowrap;
            flex-shrink: 0;
        }

        #screen-study .audit-mcq-answer-input {
            width: 42px;
            height: 50px;
            border: 0;
            border-bottom: 0;
            border-radius: 0;
            background: transparent;
            color: var(--exam-line-color, var(--text));
            font: inherit;
            font-weight: 400;
            line-height: 50px;
            text-align: center;
            outline: none;
            box-shadow: none;
            padding: 0;
        }

        #screen-study .audit-mcq-answer-input:focus {
            outline: none;
            box-shadow: none;
        }

        #screen-study .audit-mcq-answer-input::selection {
            background: rgba(29, 78, 216, 0.12);
            color: var(--exam-line-color, var(--text));
        }

        #screen-study .audit-mcq-answer-input.keyboard-active {
            font-weight: 700;
        }

        #screen-study .audit-mcq-final-answer {
            display: inline-grid;
            place-items: center;
            min-width: 42px;
            height: 50px;
            border-bottom: 0;
            font: inherit;
            font-weight: 700;
            line-height: 50px;
        }

        /* 답안양식 표 안의 근거 입력 — 셀을 투명하게 채워 박스중첩 제거 */
        #screen-study .audit-mcq-reason-input {
            display: block;
            width: 100%;
            min-height: 30px;
            height: 30px;
            border: 0;
            background: transparent;
            outline: none;
            box-shadow: none;
            resize: none;
            padding: 4px 8px;
            font: inherit;
            font-weight: 400;
            line-height: 1.5;
            color: var(--exam-line-color, var(--text));
        }
        #screen-study .audit-mcq-reason-input:focus {
            outline: none;
            box-shadow: none;
        }
        #screen-study .audit-mcq-reason-text {
            min-height: 24px;
            padding: 6px 8px;
            font: inherit;
            font-weight: 400;
            line-height: 1.6;
            white-space: pre-wrap;
        }
        /* 답안양식 표 안 정답칸: 내부 input 테두리 제거 */
        #screen-study .audit-mcq-answer-table td .audit-mcq-answer-input,
        #screen-study .audit-mcq-answer-table td .audit-mcq-final-answer {
            height: 38px;
            line-height: 38px;
        }

        #screen-study .audit-mcq-answer-card .oxset-answer-sheet {
            margin-top: 0;
            width: 100% !important;
            max-width: 100% !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }

        #screen-study .audit-mcq-answer-card .exam-answer-label {
            margin-top: 4px !important;
        }

        #screen-study .audit-mcq-answer-card .audit-mcq-choice-cell {
            text-align: center;
            min-height: 64px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 6px 8px !important;
        }

        #screen-study .audit-mcq-answer-card .audit-mcq-reason-cell {
            min-height: 64px !important;
            padding: 6px 10px;
        }

        #screen-study .audit-mcq-answer-card .audit-mcq-reason-input,
        #screen-study .audit-mcq-answer-card .audit-mcq-reason-text {
            min-height: 50px;
            display: flex;
            align-items: center;
            width: 100%;
        }

        #screen-study .audit-mcq-answer-card .oxset-table-head {
            font-size: var(--audit-ox-font-size, 16.4px) !important;
        }

        #screen-study .audit-mcq-answer-card .oxset-no-cell > span {
            font-size: var(--audit-ox-font-size, 16.4px) !important;
        }

        #screen-study #choicesArea .audit-mcq-answer-card.single-audit-ox-sheet .audit-mcq-reason-input,
        #screen-study #choicesArea .single-audit-ox-sheet .audit-mcq-reason-input,
        #screen-study #choicesArea .single-audit-ox-sheet .audit-mcq-reason-text {
            background-color: transparent !important;
            background-image: none !important;
            box-shadow: none !important;
            border: 0 !important;
        }

        #screen-study .audit-mcq-result {
            margin-top: 10px;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            font-size: 14px;
            font-weight: 800;
        }

        #screen-study .audit-mcq-result.correct {
            color: var(--primary);
        }

        #screen-study .audit-mcq-result.wrong {
            color: #B42318;
        }

        #screen-study .audit-mcq-help {
            margin-top: 9px;
            color: #6B7280;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            font-size: 13px;
            line-height: 1.45;
            letter-spacing: -0.02em;
        }

        @media (max-width: 760px) {
            #screen-study .audit-mcq-sheet {
                width: 100% !important;
                max-width: 100% !important;
                font-size: 16px;
            }

            #screen-study .audit-mcq-choice-no {
                width: 74px;
            }

            #screen-study .audit-mcq-answer-entry {
                gap: 8px;
            }
        }

        @media (min-width: 1000px) {
            #screen-study #choicesArea > .mcq-layout {
                display: block;
            }
        }

        #screen-study .sa-context .sa-inline-input {
            width: var(--sa-inline-width, 5ch) !important;
            min-width: 3.5ch !important;
            max-width: min(28ch, 58vw) !important;
            min-height: 0 !important;
            height: 1.08em !important;
            background: transparent !important;
            border-top: 0 !important;
            border-left: 0 !important;
            border-right: 0 !important;
            border-bottom-color: transparent !important;
            outline: none !important;
            box-shadow: none !important;
            padding-left: 0.12em !important;
            padding-right: 0.12em !important;
        }

        #screen-study .sa-context .sa-inline-answer.has-value:not(.is-active) .sa-inline-input {
            height: 1em !important;
            min-width: 0 !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
            font: inherit !important;
            font-weight: 400 !important;
            line-height: 1 !important;
            letter-spacing: inherit !important;
            vertical-align: -0.03em !important;
        }

        #screen-study .sa-context .sa-inline-input:focus,
        #screen-study .sa-context .sa-inline-input:focus-visible {
            background: transparent !important;
            border-bottom-color: transparent !important;
            outline: none !important;
            box-shadow: none !important;
        }

        #screen-study .sa-context .sa-inline-answer.is-active,
        #screen-study .sa-context .sa-inline-answer.is-active .sa-inline-paren,
        #screen-study .sa-context .sa-inline-answer.is-active .sa-inline-input,
        #screen-study .sa-context .sa-inline-input.has-input-caret,
        #screen-study .sa-context .sa-inline-input.has-input-caret:focus {
            font-weight: 400 !important;
        }

        #screen-study .study-paper-box.active.short-mode .sa-inline-answer,
        #screen-study .study-paper-box.active.short-mode .sa-inline-paren,
        #screen-study .study-paper-box.active.short-mode .sa-inline-input {
            font-family: inherit !important;
            font-size: inherit !important;
            letter-spacing: inherit !important;
            line-height: inherit !important;
        }

        #screen-study .study-paper-box.active.short-mode .sa-inline-input {
            height: 1em !important;
            min-height: 0 !important;
            vertical-align: baseline !important;
            transform: translateY(0.01em);
        }

        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.has-value:not(.is-active) .sa-inline-input {
            height: 1em !important;
            font-weight: 400 !important;
            line-height: inherit !important;
            vertical-align: baseline !important;
            transform: translateY(0);
        }

        @media (max-width: 767px) {
            #screen-main,
            #screen-sets,
            #screen-sets-sub,
            #screen-stats,
            #screen-saved,
            #screen-result,
            #screen-sets .subject-category-grid {
                grid-template-columns: 1fr !important;
            }

            #screen-sets .category-btn {
                min-height: 68px !important;
                padding: 13px 14px !important;
            }

            #screen-stats .stat-grid,
            #screen-result .result-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            }

            #screen-study .essay-review-grid {
                grid-template-columns: 1fr;
            }
        }

        /* 2026-05-24 list-card alignment pass: keep chevrons/badges inside cards on every width. */
        #screen-sets .subject-category-grid,
        #screen-sets-sub #subSetsList {
            overflow: visible !important;
        }

        #screen-sets .category-btn,
        #screen-sets-sub .set-item {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            box-sizing: border-box !important;
        }

        #screen-sets .category-btn {
            grid-template-columns: 44px minmax(0, 1fr) 30px !important;
            column-gap: 12px !important;
            padding-right: 14px !important;
            overflow: hidden !important;
        }

        #screen-sets .category-main,
        #screen-sets .category-name-row,
        #screen-sets-sub .set-item > div {
            min-width: 0 !important;
            max-width: 100% !important;
        }

        #screen-sets .category-name,
        #screen-sets .category-btn-name,
        #screen-sets-sub .set-item-name {
            min-width: 0 !important;
            max-width: 100% !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
        }

        #screen-sets .category-status {
            max-width: 62px !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
        }

        #screen-sets .category-arrow {
            width: 30px !important;
            min-width: 30px !important;
            height: 30px !important;
            justify-self: end !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            transform: none !important;
            box-sizing: border-box !important;
        }

        #screen-sets-sub .set-item {
            grid-template-columns: minmax(0, 1fr) max-content !important;
            padding-right: 14px !important;
            overflow: hidden !important;
        }

        #screen-sets-sub .set-badge {
            max-width: 92px !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
        }

        @media (max-width: 980px) and (min-width: 768px) {
            #screen-sets .subject-category-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            }
        }

        @media (max-width: 767px) {
            #screen-sets,
            #screen-sets-sub {
                overflow-x: clip !important;
            }

            #screen-sets .subject-category-grid,
            #screen-sets-sub #subSetsList {
                width: 100% !important;
                max-width: 100% !important;
            }

            #screen-sets .category-btn {
                grid-template-columns: 40px minmax(0, 1fr) 28px !important;
                column-gap: 10px !important;
                padding-left: 12px !important;
                padding-right: 12px !important;
            }

            #screen-sets .category-arrow {
                width: 28px !important;
                min-width: 28px !important;
                height: 28px !important;
            }
        }

        /* Study screen visual pass: calmer paper tones, clearer exam-paper hierarchy. */
        #screen-study {
            --study-paper-width: min(980px, calc(100vw - 64px));
            --study-ink: var(--text);
            --study-muted: #64748B;
            --study-line: #1F2937;
            --study-paper: #F3F4F5;
            --study-blue: #2F55D8;
            background:
                radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.58), transparent 28%),
                linear-gradient(180deg, #EEF0F2 0%, #E6E8EB 100%) !important;
            border-radius: 28px !important;
            padding: 18px 0 38px !important;
            color: var(--study-ink) !important;
        }

        #screen-study .study-header,
        #screen-study .study-progress-wrap,
        #screen-study .study-question-card,
        #screen-study #choicesArea,
        #screen-study #feedbackArea,
        #screen-study #expArea,
        #screen-study .nav-btns {
            width: var(--study-paper-width) !important;
            max-width: var(--study-paper-width) !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }

        #screen-study .study-header {
            height: 58px !important;
            padding: 0 4px !important;
            border-bottom: 1px solid rgba(15, 23, 42, 0.09) !important;
        }

        #screen-study .back-btn,
        #screen-study .exclude-session-btn,
        #screen-study .more-btn {
            background: rgba(255, 255, 255, 0.62) !important;
            border-radius: 10px !important;
            color: #334155 !important;
        }

        #screen-study .bookmark-btn {
            filter: drop-shadow(0 4px 10px rgba(244, 86, 96, 0.13));
        }

        #screen-study .study-progress-wrap {
            height: 48px !important;
            margin-top: 14px !important;
            padding: 9px 18px 12px !important;
            border: 1px solid rgba(148, 163, 184, 0.28) !important;
            border-radius: 12px !important;
            background: rgba(249, 250, 251, 0.72) !important;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045) !important;
        }

        #screen-study .study-progress-row {
            grid-template-columns: 1fr auto !important;
            column-gap: 14px !important;
            align-items: center !important;
        }

        #screen-study .study-progress-track,
        .study-progress-track {
            height: 7px !important;
            background: #D9DEE8 !important;
        }

        #screen-study .study-progress-fill,
        .study-progress-fill {
            background: var(--study-blue) !important;
            box-shadow: none !important;
        }

        #screen-study .study-progress-meta {
            min-width: 76px !important;
            justify-content: flex-end !important;
            color: #334155 !important;
            font-size: 14px !important;
            font-weight: 800 !important;
        }

        #screen-study .study-question-card {
            margin-top: 16px !important;
            padding: 0 !important;
            gap: 13px !important;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
        }

        #screen-study .prob-meta {
            display: none !important;
        }

        #screen-study .short-question-instruction.active {
            width: var(--study-paper-width) !important;
            max-width: var(--study-paper-width) !important;
            margin: 0 auto 8px !important;
            padding: 0 2px !important;
            color: #1F2937 !important;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif !important;
            font-size: calc(var(--study-question-font-size, 1.14rem) * 0.98) !important;
            line-height: 1.6 !important;
        }

        #screen-study .study-paper-box,
        #screen-study .study-paper-box.active {
            width: var(--study-paper-width) !important;
            max-width: var(--study-paper-width) !important;
            border-radius: 0 !important;
            box-shadow: none !important;
        }

        #screen-study .study-paper-box.active {
            border: 1.25px solid var(--study-line) !important;
            background: var(--study-paper) !important;
            padding: 0 !important;
        }

        #screen-study .study-paper-box.active.short-mode > .prob-text,
        #screen-study .study-paper-box.active.ox-mode > .prob-text,
        #screen-study .study-paper-box.active.oxset-mode > .prob-text {
            background: transparent !important;
        }

        #screen-study .study-paper-box.active.short-mode > .prob-text > .sa-context,
        #screen-study .study-paper-box.active.ox-mode > .prob-text,
        #screen-study .study-paper-box.active.oxset-mode > .prob-text {
            padding: 12px 20px !important;
        }

        #screen-study .study-paper-box.active .prob-text,
        #screen-study .study-paper-box.active .sa-context {
            color: var(--study-ink) !important;
            line-height: 1.68 !important;
            letter-spacing: -0.018em !important;
        }

        #screen-study #choicesArea {
            margin-top: 0 !important;
        }

        #screen-study .ox-btns,
        #screen-adapt .ox-btns {
            overflow: hidden !important;
            gap: 0 !important;
            border: 1px solid rgba(31, 41, 55, 0.45) !important;
            border-radius: 0 !important;
            background: #F8FAFC !important;
            box-shadow: none !important;
        }

        #screen-study .ox-btn,
        #screen-adapt .ox-btn {
            min-height: 54px !important;
            border: 0 !important;
            border-radius: 0 !important;
            background: transparent !important;
            color: var(--text) !important;
            font-weight: 800 !important;
        }

        #screen-study .ox-btn + .ox-btn {
            border-left: 1px solid rgba(31, 41, 55, 0.26) !important;
        }

        #screen-study .ox-btn.selected {
            background: #EAF0FF !important;
            color: #244BD6 !important;
        }

        #screen-study .keyboard-hint,
        #screen-study .ox-keyboard-hint,
        #screen-study .sa-answer-note,
        #screen-study .mcq-help-line,
        #screen-study .oxset-help {
            color: var(--study-muted) !important;
            font-size: 12.8px !important;
        }

        #screen-study .choices,
        #screen-adapt .choices {
            border: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
        }

        #screen-study .choice-row,
        #screen-adapt .choice-row {
            padding: 4px 0 !important;
            border-bottom: none !important;
        }

        #screen-study .choice-num,
        #screen-adapt .choice-num {
            color: var(--text) !important;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif !important;
            font-weight: 700 !important;
        }

        #screen-study .choice-row.selected .choice-txt,
        #screen-study .choice-num.selected {
            color: #244BD6 !important;
        }

        #screen-study .sa-result-area,
        #screen-study .feedback,
        #screen-study .exp-toggle,
        #screen-study .exp-body {
            border-radius: 12px !important;
            box-shadow: none !important;
        }

        #screen-study .sa-pair-row.cell-active .sa-pair-a {
            background: #EEF3FF !important;
            color: #244BD6 !important;
            box-shadow: inset 3px 0 0 #2F55D8 !important;
        }

        #screen-study .sa-pair-row.cell-active .sa-slot-input,
        #screen-study .sa-pair-row.cell-active .sa-pair-b {
            background: rgba(255, 255, 255, 0.45) !important;
        }

        #screen-study .sa-pair-row.cell-active .sa-slot-input,
        #screen-study .sa-pair-row.cell-active .sa-slot-input.has-input-caret,
        #screen-study .sa-pair-row.cell-active .sa-slot-input:focus {
            font-weight: 400 !important;
        }

        #screen-study .nav-btns {
            margin-top: 10px !important;
            padding: 0 !important;
            background: transparent !important;
        }

        #screen-study .study-mini-nav-btn {
            color: #374151 !important;
            font-weight: 400 !important;
        }

        @media (min-width: 1100px) {
            #screen-study {
                --study-paper-width: min(1010px, calc(100vw - 100px));
            }
        }

        @media (max-width: 767px) {
            #screen-study {
                --study-paper-width: calc(100vw - 56px);
                border-radius: 0 !important;
                padding: 8px 0 28px !important;
            }

            #screen-study .study-header {
                height: 54px !important;
            }

            #screen-study .study-progress-wrap {
                height: 46px !important;
                padding: 9px 13px !important;
            }

            #screen-study .study-paper-box.active.short-mode > .prob-text > .sa-context,
            #screen-study .study-paper-box.active.ox-mode > .prob-text,
            #screen-study .study-paper-box.active.oxset-mode > .prob-text {
                padding: 11px 13px !important;
            }
        }

        /* OX 복습 카드: 한 문장이어도 카드로 읽히게 여백·최소높이 확보 (2026-07-25).
           위 규칙들이 padding 을 !important 로 잡고 있어 여기서 다시 덮는다. */
        #screen-study .study-paper-box.active.ox-mode > .prob-text {
            padding: 32px 28px !important;
        }
        @media (max-width: 767px) {
            #screen-study .study-paper-box.active.ox-mode > .prob-text {
                padding: 24px 18px !important;
            }
        }

        /* Korean exam typography: allow Hangul to wrap by syllable, not only by word. */
        #screen-study .study-paper-box.active .prob-text,
        #screen-study .study-paper-box.active .sa-context,
        #screen-study .choice-txt,
        #screen-study .oxset-choice-text,
        #screen-study .audit-ox-choice-cell,
        #screen-study .oxset-stem,
        #screen-adapt .choice-txt {
            word-break: normal !important;
            overflow-wrap: anywhere !important;
            line-break: strict !important;
        }

        /* Audit OX refinement: make the stem/choice table/answer sheet read like one printed exam block. */
        #screen-study .study-paper-box.active.oxset-mode {
            margin-bottom: 0 !important;
            border: 0 !important;
            background: transparent !important;
        }

        #screen-study .study-paper-box.active.oxset-mode + #choicesArea {
            margin-top: var(--study-ox-answer-gap) !important;
        }

        #screen-study .study-paper-box.active.oxset-mode > .prob-text {
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-table,
        #screen-study .oxset-answer-sheet {
            width: calc(var(--study-paper-width) - 40px) !important;
            max-width: calc(var(--study-paper-width) - 40px) !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }

        #screen-study .oxset-answer-sheet {
            margin-top: 0 !important;
            /* 항목이 적어도 답안지가 최소 5줄 분량은 되도록 (헤더 1행 + 답안 5행 = 6×64 = 384px). OX는 안내문이 더해져 자연 증가 */
            min-height: 384px;
        }
        /* 감사 객관식 답안지: 제목(32)+헤더(32)+판단근거 5줄(5×32) = 224px */
        #screen-study .oxset-answer-sheet.audit-mcq-answer-sheet-like {
            min-height: 224px;
        }

        #screen-study .oxset-title {
            margin: 0 0 1px !important;
            font-size: 14px !important;
            font-weight: 600 !important;
            line-height: 1.18 !important;
        }

        #screen-study .oxset-table,
        #screen-study .oxset-table-row {
            grid-template-columns: 50px 116px minmax(0, 1fr) !important;
        }

        #screen-study .oxset-table-head {
            min-height: 31px !important;
            padding: 3px 5px !important;
            font-size: 13.2px !important;
            font-weight: 400 !important;
            line-height: 1.2 !important;
        }

        #screen-study .oxset-table-row {
            min-height: 40px !important;
        }

        #screen-study .oxset-table-row.cell-active {
            background: transparent !important;
        }

        #screen-study .oxset-table-row.cell-active .oxset-no-cell {
            background: transparent !important;
            color: var(--exam-line-color, var(--text)) !important;
        }

        #screen-study .oxset-table-row.cell-active .oxset-choice-cell.cell-input-active,
        #screen-study .oxset-table-row.cell-active .oxset-reason-cell.cell-input-active,
        #screen-study .study-paper-box.active.oxset-mode .oxset-table-row.cell-active .oxset-reason-cell.cell-input-active {
            background-color: transparent !important;
        }

        #screen-study .oxset-no-cell {
            padding-top: 6px !important;
        }

        #screen-study .oxset-no-cell {
            position: relative !important;
            display: grid !important;
            place-items: center !important;
            padding: 0 !important;
            gap: 0 !important;
            min-height: 39px !important;
        }

        #screen-study .oxset-no-cell > span {
            display: block !important;
            text-align: center !important;
            line-height: 1 !important;
        }
        /* 항목 셀이 [상황 N] 라벨을 한 줄로 담도록 */
        #screen-study .oxset-table.item-2col .oxset-no-cell,
        #screen-study .oxset-table.dual-3col .oxset-no-cell {
            box-sizing: border-box !important;
            padding: 0 4px !important;
            overflow: visible !important;
        }

        #screen-study .oxset-row-status {
            display: none !important;
        }

        #screen-study .oxset-no-cell,
        #screen-study .oxset-no-cell > span,
        #screen-study .oxset-input,
        #screen-study .oxset-reason {
            font-weight: 400 !important;
        }

        #screen-study .oxset-input,
        #screen-study .oxset-reason {
            height: 39px !important;
            min-height: 39px !important;
            font-size: 13.6px !important;
        }

        #screen-study .oxset-reason {
            padding: 4px 8px !important;
            line-height: 1.28 !important;
        }

        @media (max-width: 767px) {
            #screen-study .study-paper-box.active.oxset-mode .oxset-choice-table,
            #screen-study .oxset-answer-sheet {
                width: calc(var(--study-paper-width) - 24px) !important;
                max-width: calc(var(--study-paper-width) - 24px) !important;
            }
        }

        #screen-study .single-audit-ox-sheet {
            border: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
        }

        #screen-study .single-audit-ox-table {
            width: 100% !important;
        }

        #screen-study .single-audit-ox-row {
            grid-column: 1 / -1 !important;
        }

        #screen-study .single-audit-ox-row .oxset-no-cell,
        #screen-study .single-audit-ox-row .oxset-choice-cell,
        #screen-study .single-audit-ox-row .oxset-reason-cell {
            min-height: 39px !important;
        }

        #screen-study .single-audit-ox-sheet .oxset-total-result {
            margin-top: 6px !important;
        }

        /* Audit OX tables: one printed-exam grid for prompt rows and answer rows. */
        #screen-study {
            --study-text-scale: 0.96;
            --study-base-font-size: 17.1px;
            --audit-ox-font-size: 17.35px;
            --audit-ox-line-height: 1.56;
            /* OX 답안지 활성 셀 하이라이트 색 — 단일 노브. 색 바꾸려면 여기만 수정. JS(setActiveAnswerCell)가 var()로 참조. */
            --ox-active-hl: rgba(253, 224, 110, 0.18);
            /* 약술형·OX 답안지 점선 배경 — 단일 노브. CSS·JS 모두 var() 참조. */
            --dot-bg-img: radial-gradient(circle at 2.5px 31px, #BDD1CC 1px, transparent 1.4px);
            /* 행 높이 64px 전용 점선 — 32px 변수와 동일 색·크기지만 간격 2배, 점이 행마다 1개 */
            --dot-bg-img-64: radial-gradient(circle at 2.5px 63px, #BDD1CC 1px, transparent 1.4px);
            /* 채점 후 리뷰 카드 전용 점선 */
            --dot-bg-img-card: radial-gradient(circle at 2.5px 31px, #C0CDD8 1px, transparent 1.4px);
            background:
                radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.50), transparent 28%),
                linear-gradient(180deg, #EEF0F2 0%, #E5E7EA 100%) !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-table,
        #screen-study .oxset-answer-sheet {
            width: calc(var(--study-paper-width) - 40px) !important;
            max-width: calc(var(--study-paper-width) - 40px) !important;
            margin-left: auto !important;
            margin-right: auto !important;
            background: transparent !important;
            color: var(--exam-line-color, var(--text)) !important;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif !important;
            font-size: var(--audit-ox-font-size) !important;
            font-weight: 400 !important;
            letter-spacing: -0.026em !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-table {
            grid-template-columns: 50px minmax(0, 1fr) !important;
            margin-top: 13px !important;
            border: 1px solid var(--exam-line-color, var(--text)) !important;
            background: transparent !important;
        }

        #screen-study .oxset-answer-sheet {
            margin-top: 18px !important;
            padding: 0 !important;
        }

        #screen-study .oxset-table,
        #screen-study .oxset-table-row {
            grid-template-columns: minmax(44px, max-content) 116px minmax(0, 1fr) !important;
        }

        #screen-study .oxset-table {
            border: 1px solid var(--exam-line-color, var(--text)) !important;
            background: transparent !important;
            box-shadow: none !important;
        }

        #screen-study .oxset-table-row {
            min-height: 40px !important;
            background: transparent !important;
        }

        #screen-study .oxset-choice-no,
        #screen-study .oxset-choice-text {
            min-height: 46px !important;
            padding: 6px 10px !important;
            border-bottom: 1px solid var(--exam-line-color, var(--text)) !important;
            background: transparent !important;
            color: var(--exam-line-color, var(--text)) !important;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif !important;
            font-size: var(--audit-ox-font-size) !important;
            font-weight: 400 !important;
            letter-spacing: -0.026em !important;
            line-height: var(--audit-ox-line-height) !important;
        }

        #screen-study .oxset-choice-no {
            display: grid !important;
            place-items: center !important;
            padding: 0 !important;
            border-right: 1px solid var(--exam-line-color, var(--text)) !important;
            line-height: 1 !important;
        }

        #screen-study .oxset-choice-text {
            display: flex !important;
            align-items: center !important;
        }

        #screen-study .oxset-choice-row:last-child .oxset-choice-no,
        #screen-study .oxset-choice-row:last-child .oxset-choice-text {
            border-bottom: 0 !important;
        }

        #screen-study .oxset-choice-head .oxset-choice-no,
        #screen-study .oxset-choice-head .oxset-choice-text {
            min-height: 42px !important;
            justify-content: center !important;
            text-align: center !important;
            line-height: 1.28 !important;
        }

        #screen-study .oxset-table-head,
        #screen-study .oxset-no-cell,
        #screen-study .oxset-choice-cell,
        #screen-study .oxset-reason-cell {
            background: transparent !important;
            color: var(--exam-line-color, var(--text)) !important;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif !important;
            font-weight: 400 !important;
            letter-spacing: -0.05em !important;
        }

        #screen-study .oxset-table-head {
            min-height: 42px !important;
            padding: 5px 7px !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
            font-size: var(--audit-ox-font-size) !important;
            line-height: 1.28 !important;
        }

        #screen-study .oxset-table-head.no,
        #screen-study .oxset-table-head.judge,
        #screen-study .oxset-table-head.reason {
            padding: 3px 5px !important;
        }

        #screen-study .oxset-no-cell {
            position: relative !important;
            display: grid !important;
            place-items: center !important;
            align-items: center !important;
            justify-items: center !important;
            justify-content: stretch !important;
            align-content: stretch !important;
            padding: 0 !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            gap: 0 !important;
            min-height: 46px !important;
            font-size: var(--audit-ox-font-size) !important;
            line-height: 1 !important;
        }

        #screen-study .oxset-no-cell > span {
            display: inline-grid !important;
            place-items: center !important;
            align-self: center !important;
            justify-self: center !important;
            width: 100% !important;
            height: auto !important;
            min-height: 46px !important;
            line-height: 1 !important;
            font-size: var(--audit-ox-font-size) !important;
            font-weight: 400 !important;
            letter-spacing: -0.026em !important;
        }

        /* Standard oxset 답안지(Taiwan MCQ 등): no-cell 라벨 수직 중앙 정렬 보정.
           inline-grid + height:100% 조합이 불안정하므로 flex로 교체. single-audit-ox-sheet는 별도 처리 유지. */
        #screen-study .oxset-answer-sheet:not(.single-audit-ox-sheet) .oxset-no-cell {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 0 !important;
            gap: 0 !important;
        }
        #screen-study .oxset-answer-sheet:not(.single-audit-ox-sheet) .oxset-no-cell > span {
            display: block !important;
            width: auto !important;
            height: auto !important;
            min-height: 0 !important;
            text-align: center !important;
            line-height: 1.2 !important;
        }

        #screen-study .oxset-choice-cell,
        #screen-study .oxset-reason-cell {
            display: grid !important;
            align-items: center !important;
            justify-items: stretch !important;
            min-height: 46px !important;
        }

        #screen-study .oxset-reason-cell {
            background-image: repeating-linear-gradient(
                transparent,
                transparent calc(calc(var(--audit-ox-font-size, 17.35px) * 1.3) - 1px),
                rgba(17, 24, 39, 0.18) calc(calc(var(--audit-ox-font-size, 17.35px) * 1.3) - 1px),
                rgba(17, 24, 39, 0.18) calc(var(--audit-ox-font-size, 17.35px) * 1.3)
            ) !important;
            background-size: 100% calc(var(--audit-ox-font-size, 17.35px) * 1.3) !important;
            background-position: 0 0 !important;
        }

        #screen-study .oxset-input,
        #screen-study .oxset-reason {
            height: 46px !important;
            min-height: 46px !important;
            border: 0 !important;
            border-radius: 0 !important;
            background: transparent !important;
            color: var(--exam-line-color, var(--text)) !important;
            font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'Batang', serif !important;
            font-size: var(--audit-ox-font-size) !important;
            font-weight: 400 !important;
            letter-spacing: -0.026em !important;
            box-shadow: none !important;
        }

        #screen-study .oxset-input {
            text-align: center !important;
            line-height: 46px !important;
            display: block !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
        }

        #screen-study .oxset-reason {
            padding: 6px 10px !important;
            line-height: 32px !important;
            resize: none !important;
            display: block !important;
            overflow: hidden !important;
        }

        #screen-study .oxset-input:focus,
        #screen-study .oxset-reason:focus {
            background: transparent !important;
        }

        #screen-study .oxset-reason:not(.active) {
            background: transparent !important;
            color: var(--exam-line-color, var(--text)) !important;
        }

        #screen-study .oxset-row-status {
            display: none !important;
        }

        #screen-study .oxset-help {
            padding: 4px 0 0 !important;
            color: #5F6B7A !important;
            font-family: 'Noto Sans KR', sans-serif !important;
            font-size: 12.1px !important;
            font-weight: 400 !important;
            line-height: 1.32 !important;
            letter-spacing: -0.035em !important;
        }

        #screen-study .single-audit-ox-sheet {
            border: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
        }

        #screen-study .single-audit-ox-table,
        #screen-study .single-audit-ox-table .oxset-table-row {
            width: 100% !important;
            grid-template-columns: 116px minmax(0, 1fr) !important;
        }

        #screen-study .single-audit-ox-table .oxset-table-head.no,
        #screen-study .single-audit-ox-row .oxset-no-cell {
            display: none !important;
        }

        #screen-study .single-audit-ox-table .oxset-table-head.judge,
        #screen-study .single-audit-ox-row .oxset-choice-cell {
            border-left: 0 !important;
        }

        #screen-study .single-audit-ox-row {
            grid-column: 1 / -1 !important;
        }

        @media (max-width: 767px) {
            #screen-study .study-paper-box.active.oxset-mode .oxset-choice-table,
            #screen-study .oxset-answer-sheet {
                --audit-ox-font-size: 16.4px;
                --audit-ox-line-height: 1.58;
                width: calc(var(--study-paper-width) - 24px) !important;
                max-width: calc(var(--study-paper-width) - 24px) !important;
            }
        }

        /* Keep audit OX tables on the same printed-question serif face as the stem.
           Use open/common serif fonts first; avoid depending on proprietary Shinmyeongjo fonts. */
        #screen-study, #screen-adapt {
            --exam-serif-font: "HY신명조", "HY Sinmyeongjo", "Noto Serif CJK KR", "Noto Serif KR", "Batang", "바탕", "AppleMyungjo", serif;
        }
        #screen-study .study-paper-box.active.oxset-mode .oxset-stem,
        #screen-study .study-paper-box.active.oxset-mode .oxset-question-label,
        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-table,
        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-no,
        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-text,
        #screen-study .oxset-answer-sheet,
        #screen-study .oxset-table,
        #screen-study .oxset-table-head,
        #screen-study .oxset-no-cell,
        #screen-study .oxset-no-cell > span,
        #screen-study .oxset-choice-cell,
        #screen-study .oxset-reason-cell,
        #screen-study .oxset-input,
        #screen-study .oxset-reason,
        #screen-study .oxset-help,
        #screen-study .oxset-total-result {
            font-family: var(--exam-serif-font) !important;
        }

        /* Make one-item OX and ordinary OX share the same table grammar as multi-item audit OX. */
        #screen-study .single-audit-ox-table,
        #screen-study .single-audit-ox-table .oxset-table-row,
        #screen-study .generic-ox-table,
        #screen-study .generic-ox-table .oxset-table-row {
            width: 100% !important;
            grid-template-columns: 50px 116px minmax(0, 1fr) !important;
        }
        #screen-study .single-audit-ox-table .oxset-table-head.no,
        #screen-study .single-audit-ox-row .oxset-no-cell {
            display: grid !important;
        }
        #screen-study .single-audit-ox-table .oxset-table-head.judge,
        #screen-study .single-audit-ox-row .oxset-choice-cell {
            border-left: 1px solid var(--exam-line-color, var(--text)) !important;
        }
        #screen-study .single-audit-ox-row,
        #screen-study .generic-ox-row {
            grid-column: 1 / -1 !important;
        }
        #screen-study .generic-ox-choice-buttons {
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            width: 100% !important;
            height: 100% !important;
        }
        #screen-study .generic-ox-choice-btn {
            min-height: 46px !important;
            height: 46px !important;
            border: 0 !important;
            border-radius: 0 !important;
            background: transparent !important;
            color: var(--exam-line-color, var(--text)) !important;
            font-family: var(--exam-serif-font) !important;
            font-size: var(--audit-ox-font-size) !important;
            font-weight: 400 !important;
            box-shadow: none !important;
        }
        #screen-study .generic-ox-choice-btn + .generic-ox-choice-btn {
            border-left: 1px solid var(--exam-line-color, var(--text)) !important;
        }
        #screen-study .generic-ox-choice-btn.selected,
        #screen-study .generic-ox-choice-btn.ox-correct {
            background: transparent !important;
            color: var(--success) !important;   /* OX 정답색 = 초록(3앱 토큰 통일) */
            font-weight: 800 !important;
        }
        #screen-study .generic-ox-choice-btn.ox-wrong {
            background: transparent !important;
            color: #B42318 !important;
            font-weight: 800 !important;
            text-decoration: none;
        }
        #screen-study .generic-ox-empty-reason {
            min-height: 46px !important;
        }
        /* 문장 끝 인라인 (O/X) 프롬프트 */
        #screen-study .ox-inline-prompt {
            display: inline;
            margin-left: 6px;
            white-space: nowrap;
        }
        #screen-study .ox-inline-sep {
            margin: 0 3px;
            color: #9CA3AF;
            font-weight: 400;
        }
        #screen-study .ox-inline-btn {
            display: inline;
            border: none;
            background: none;
            padding: 0 2px;
            cursor: pointer;
            font-size: inherit;
            font-weight: 400;
            color: inherit;
            font-family: var(--exam-serif-font, 'Batang', '바탕', 'KoPub World Batang', 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif);
            vertical-align: baseline;
        }
        #screen-study .ox-inline-btn.selected.ox-correct {
            color: var(--success);   /* OX 정답색 = 초록(3앱 토큰 통일) */
            font-weight: 800;
        }
        #screen-study .ox-inline-btn.ox-correct:not(.selected) {
            color: var(--text);
            font-weight: 800;
        }
        #screen-study .ox-inline-btn.ox-wrong {
            color: #B42318;
            font-weight: 800;
        }
        #screen-study .ox-inline-btn:disabled { cursor: default; pointer-events: none; }
            

        /* Final audit OX polish: keep one-item and multi-item OX on the same paper table system. */
        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-table,
        #screen-study .study-paper-box.active.oxset-mode .oxset-answer-sheet,
        #screen-study .study-paper-box.active.oxset-mode .generic-ox-sheet,
        #screen-study .study-paper-box.active.oxset-mode .single-audit-ox-sheet {
            width: calc(var(--study-paper-width) - 40px) !important;
            max-width: calc(var(--study-paper-width) - 40px) !important;
            margin-left: auto !important;
            margin-right: auto !important;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
        }

        /* 항목 표(choice-table)는 한국 CPA식 본문 나열 → 외곽 테두리 제거. 답안표(oxset-table)는 테두리 유지 */
        #screen-study .study-paper-box.active.oxset-mode .oxset-table {
            border: 1px solid var(--exam-line-color, var(--text)) !important;
            background: transparent !important;
            box-shadow: none !important;
        }
        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-table {
            border: 1px solid var(--exam-line-color, var(--text)) !important;
            background: transparent !important;
            box-shadow: none !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-table,
        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-row,
        #screen-study .study-paper-box.active.oxset-mode .oxset-table,
        #screen-study .study-paper-box.active.oxset-mode .oxset-table-row {
            grid-template-columns: 50px minmax(0, 1fr) !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .oxset-table,
        #screen-study .study-paper-box.active.oxset-mode .oxset-table-row,
        #screen-study .study-paper-box.active.oxset-mode .single-audit-ox-table,
        #screen-study .study-paper-box.active.oxset-mode .generic-ox-table {
            grid-template-columns: 80px 116px minmax(0, 1fr) !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-no,
        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-text,
        #screen-study .study-paper-box.active.oxset-mode .oxset-table-head,
        #screen-study .study-paper-box.active.oxset-mode .oxset-no-cell,
        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-cell,
        #screen-study .study-paper-box.active.oxset-mode .oxset-reason-cell {
            background-color: transparent !important;
            color: var(--exam-line-color, var(--text)) !important;
            font-family: var(--exam-serif-font, 'Batang', '바탕', 'KoPub World Batang', 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif) !important;
            font-size: 17.8px !important;
            font-weight: 400 !important;
            letter-spacing: -0.026em !important;
            line-height: 1.58 !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-no,
        #screen-study .study-paper-box.active.oxset-mode .oxset-no-cell {
            display: grid !important;
            place-items: center !important;
            padding: 0 !important;
            text-align: center !important;
            line-height: 1 !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-text,
        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-cell,
        #screen-study .study-paper-box.active.oxset-mode .oxset-reason-cell {
            padding: 5px 9px !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .oxset-table-head {
            min-height: 38px !important;
            padding: 5px 8px !important;
            text-align: center !important;
            justify-content: center !important;
            align-items: center !important;
            font-size: 17.8px !important;
            line-height: 1.32 !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .oxset-table-row,
        #screen-study .study-paper-box.active.oxset-mode .oxset-choice-row {
            min-height: 44px !important;
            background: transparent !important;
        }

        /* Printed exam typography: use a readable Myeongjo/Batang-like serif without proprietary font dependency. */
        #screen-study .short-question-instruction.active,
        #screen-study .study-paper-box.essay-mode > .prob-text,
        #screen-study .study-paper-box.active > .prob-text,
        #screen-study .study-paper-box.active .sa-context,
        #screen-study .study-paper-box.active .sa-inline-wrap,
        #screen-study .study-paper-box.active .sa-inline-input,
        #screen-study .study-paper-box.active .sa-inline-value,
        #screen-study .study-paper-box.active .sa-inline-answer,
        #screen-study .study-paper-box.active .choice-row,
        #screen-study .study-paper-box.active .choice-num,
        #screen-study .study-paper-box.active .choice-txt,
        #screen-study .study-paper-box.audit-mcq-mode > .prob-text,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-sheet,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-choice-table,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-answer-table,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-choices,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-choice-row,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-choice-no,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-choice-text,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-answer-input,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-final-answer,
        #screen-study .study-paper-box.audit-mcq-mode + #choicesArea .audit-mcq-ans-label,
        #screen-study .study-paper-box.active .oxset-stem,
        #screen-study .study-paper-box.active .oxset-question-label,
        #screen-study .study-paper-box.active .oxset-choice-table,
        #screen-study .study-paper-box.active .oxset-choice-no,
        #screen-study .study-paper-box.active .oxset-choice-text,
        #screen-study #choicesArea .oxset-answer-sheet,
        #screen-study #choicesArea .oxset-table,
        #screen-study #choicesArea .oxset-table-head,
        #screen-study #choicesArea .oxset-no-cell,
        #screen-study #choicesArea .oxset-no-cell > span,
        #screen-study #choicesArea .oxset-choice-cell,
        #screen-study #choicesArea .oxset-reason-cell,
        #screen-study #choicesArea .oxset-input,
        #screen-study #choicesArea .oxset-reason,
        #screen-study #choicesArea .generic-ox-choice-btn,
        #screen-study .essay-answer-input,
        #screen-study .essay-review-card-body {
            font-family: var(--exam-serif-font) !important;
        }

        /* 정답/오답 결과 배너 — 모든 유형(객관식·감사MCQ·OX세트·감사OX) 동일 디자인으로 통일 */
        #screen-study .feedback,
        #screen-study .audit-mcq-result,
        #screen-study .oxset-total-result {
            min-height: 42px;
            padding: 9px 16px;
            margin: 12px 0;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
            font-size: 15px;
            font-weight: 700;
        }
        #screen-study .feedback.correct,
        #screen-study .audit-mcq-result.correct,
        #screen-study .oxset-total-result:not(.wrong) {
            background: var(--success-soft);
            color: var(--success);
            border: 1px solid var(--success-border);
        }
        #screen-study .feedback.wrong,
        #screen-study .audit-mcq-result.wrong,
        #screen-study .oxset-total-result.wrong {
            background: var(--danger-soft);
            color: #B91C1C;
            border: 1px solid var(--danger-border);
        }

        #screen-study .study-paper-box.essay-mode > .prob-text {
            color: var(--exam-line-color, var(--text)) !important;
            font-size: var(--study-base-font-size, 17.1px) !important;
            font-weight: 400 !important;
            line-height: 1.54 !important;
            letter-spacing: -0.026em !important;
            word-break: keep-all !important;
            overflow-wrap: break-word !important;
            line-break: strict;
            text-wrap: pretty;
        }
        /* 회계감사 약술형(일본·대만·한국) 공통 시험지 레이아웃 — 글씨·가로폭은 1차 회계사 ver(객관식)과 동일, 줄간격 확대 */
        #screen-study .study-paper-box.audit-essay-mode > .prob-text {
            font-size: var(--audit-ox-font-size, 18px) !important;
            line-height: 1.8 !important;
            max-width: calc(var(--study-paper-width) - 40px) !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }
        /* (물음) 마커 — 인라인 유지(줄바꿈 없음), 앞 여백은 ::before 블록으로 삽입 */
        #screen-study .study-paper-box.audit-essay-mode b.jx-mun {
            display: inline;
            margin-right: 0.35em;
        }
        #screen-study .study-paper-box.audit-essay-mode b.jx-mun::before {
            content: '';
            display: block;
            margin-top: 1.4em;
        }
        #screen-study .study-paper-box.audit-essay-mode b.jx-mun:first-child::before { margin-top: 0; }
        /* 회계감사 약술형 표: 가로 제한(540px) 해제 — 분기표 등 칸이 좁아 줄바꿈되는 것 방지 */
        #screen-study .study-paper-box.audit-essay-mode .prob-text table { max-width: none; }
        /* 한국 시험지처럼 표는 본문보다 작은 글씨·좁은 여백으로 — 좌측 한 단 폭에 7~8칸 그룹감사표 등도 들어오게 */
        #screen-study .study-paper-box.audit-essay-mode .prob-text table { font-size: 12px; }
        #screen-study .study-paper-box.audit-essay-mode .prob-text th,
        #screen-study .study-paper-box.audit-essay-mode .prob-text td { padding: 3px 6px; }
        /* 칸이 매우 많은 표(그룹감사 등)는 한 단계 더 축소 */
        @media (max-width: 1500px) {
            #screen-study.essay-two-col-width-mode #essayTwoColRow .study-paper-box.audit-essay-mode .prob-text table { font-size: 11px; }
            #screen-study.essay-two-col-width-mode #essayTwoColRow .study-paper-box.audit-essay-mode .prob-text th,
            #screen-study.essay-two-col-width-mode #essayTwoColRow .study-paper-box.audit-essay-mode .prob-text td { padding: 2px 4px; }
        }

        #screen-study .study-paper-box.active.oxset-mode .generic-ox-choice-buttons {
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            gap: 0 !important;
            width: 100% !important;
            height: 100% !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .generic-ox-choice-btn {
            min-height: 42px !important;
            border: 0 !important;
            border-right: 1px solid var(--exam-line-color, var(--text)) !important;
            border-radius: 0 !important;
            background: transparent !important;
            color: var(--exam-line-color, var(--text)) !important;
            font-family: inherit !important;
            font-size: 17.8px !important;
            font-weight: 400 !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .generic-ox-choice-btn:last-child {
            border-right: 0 !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .generic-ox-choice-btn.selected,
        #screen-study .study-paper-box.active.oxset-mode .generic-ox-choice-btn.ox-correct,
        #screen-study .study-paper-box.active.oxset-mode .oxset-input.correct,
        #screen-study .study-paper-box.active.oxset-mode .audit-ox-input.correct {
            background: transparent !important;
            color: var(--exam-line-color, var(--text)) !important;
            font-weight: 700 !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .generic-ox-choice-btn.ox-wrong,
        #screen-study .study-paper-box.active.oxset-mode .oxset-input.wrong,
        #screen-study .study-paper-box.active.oxset-mode .audit-ox-input.wrong {
            background: transparent !important;
            color: var(--exam-line-color, var(--text)) !important;
            font-weight: 700 !important;
        }

        #screen-study .study-paper-box.active.oxset-mode .oxset-input.corrected-answer,
        #screen-study .study-paper-box.active.oxset-mode .audit-ox-input.corrected-answer {
            color: #B42318 !important;
        }

        #screen-study .oxset-final-answer {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-height: 34px;
            color: var(--exam-line-color, var(--text));
            font-family: var(--exam-serif-font) !important;
            font-size: var(--audit-ox-font-size, 18px);
            font-weight: 400;
            line-height: 1;
        }

        #screen-study .oxset-final-answer.correct-answer {
            color: var(--primary) !important;
            font-weight: 400 !important;
        }

        #screen-study .oxset-final-answer.corrected-answer {
            color: #DC2626 !important;
        }

        #screen-study .oxset-reason-feedback.wrong-explanation {
            font-weight: 400 !important;
        }

        #screen-study .oxset-reason-essay-review .essay-review-card {
            background: transparent !important;
            border-color: #E2E8F0 !important;
            min-height: 0 !important;
        }
        #screen-study .oxset-reason-essay-review .essay-review-card-body {
            background: transparent !important;
            font-size: 13px !important;
            line-height: 1.7 !important;
        }
        #screen-study .oxset-reason-essay-review .essay-review-grid {
            background: transparent !important;
            padding: 0 !important;
        }
        #screen-study .oxset-reason-user-answer {
            font-size: 13px; line-height: 1.6; padding: 5px 8px; margin-bottom: 6px;
            background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 4px;
            white-space: pre-wrap; word-break: break-all; color: #374151;
        }
        #screen-study .oxset-reason-user-answer.correct-answer {
            border-color: #93C5FD; background: #EFF6FF; color: var(--primary);
        }
        #screen-study .oxset-reason-user-answer.wrong-answer {
            border-color: #FCA5A5; background: #FEF2F2; color: #DC2626;
        }
        #screen-study .oxset-reason-grade-btns {
            display: flex; gap: 6px; margin-bottom: 8px;
        }
        #screen-study .oxset-reason-grade-btn {
            flex: 1; padding: 5px 0; border: 1px solid #CBD5E1;
            background: var(--surface); color: #334155; font-size: 13px; font-weight: 600;
            cursor: pointer; border-radius: 4px;
        }
        #screen-study .oxset-reason-grade-btn.correct.selected {
            border-color: var(--success); background: var(--success-soft); color: var(--success);
        }
        #screen-study .oxset-reason-grade-btn.ambiguous.selected {
            border-color: #D97706; background: #FFFBEB; color: #D97706;
        }
        #screen-study .oxset-reason-grade-btn.wrong.selected {
            border-color: var(--danger); background: var(--danger-soft); color: var(--danger);
        }

        #screen-study .oxset-text-cell {
            padding: 4px 6px;
        }
        #screen-study .oxset-text-input {
            width: 100%;
            box-sizing: border-box;
            border: none;
            border-bottom: 1px solid #9ca3af;
            background: transparent;
            font-family: var(--exam-serif-font) !important;
            font-size: 0.95em;
            padding: 4px 2px;
            text-align: center;
        }
        #screen-study .oxset-text-input:focus {
            outline: none;
            background: #F6F9FE;
        }
        #screen-study .oxset-freetext-review {
            text-align: left;
            font-size: 0.92em;
            line-height: 1.6;
            padding: 4px 2px;
        }
        #screen-study .oxset-freetext-mine {
            color: var(--text);
        }
        #screen-study .oxset-freetext-empty {
            color: #9ca3af;
        }
        #screen-study .oxset-freetext-model {
            margin-top: 4px;
            color: var(--primary);
        }
        #screen-study .oxset-freetext-grades {
            margin-top: 6px;
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }
        #screen-study .oxset-freetext-mine.correct { color: #15803d; }
        #screen-study .oxset-freetext-mine.wrong { color: #B91C1C; }
        #screen-study .oxset-grade-mark { font-weight: 700; }
        #screen-study .oxset-grade-mark.correct { color: #15803d; }
        #screen-study .oxset-grade-mark.wrong { color: #B91C1C; }

        #screen-study .study-paper-box.active.oxset-mode .generic-ox-choice-btn.ox-correct:not(.selected) {
            color: var(--success) !important;
            font-weight: 800 !important;
        }

        #screen-study .oxset-correct-answer {
            display: inline-block;
            margin-left: 10px;
            color: var(--primary);
            font-weight: 800;
            font-size: 0.96em;
            line-height: 1;
        }

        /* Single audit OX must visually match the multi-row audit OX sheet. */
        #screen-study .study-paper-box.active.single-audit-ox-mode {
            width: calc(var(--study-paper-width) - 40px) !important;
            max-width: calc(var(--study-paper-width) - 40px) !important;
            margin-left: auto !important;
            margin-right: auto !important;
            margin-bottom: 12px !important;
            border: 1px solid var(--exam-line-color, var(--text)) !important;
            background: transparent !important;
            box-shadow: none !important;
            padding: 0 !important;
        }

        #screen-study .study-paper-box.active.single-audit-ox-mode > .prob-text {
            padding: 7px 9px !important;
            background: transparent !important;
            color: var(--exam-line-color, var(--text)) !important;
            font-family: var(--exam-serif-font, 'Batang', '바탕', 'KoPub World Batang', 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif) !important;
            font-size: var(--audit-ox-font-size, 17.8px) !important;
            font-weight: 400 !important;
            letter-spacing: -0.026em !important;
            line-height: var(--audit-ox-line-height, 1.58) !important;
        }

        #screen-study .study-paper-box.active.single-audit-ox-mode .single-audit-ox-context {
            margin: 0 0 10px !important;
            padding: 0 !important;
            background: transparent !important;
            font-weight: 500;
        }
        #screen-study .study-paper-box.active.single-audit-ox-mode .single-audit-ox-stem {
            margin: 0 !important;
            padding: 0 !important;
            background: transparent !important;
        }

        /* 한국 회계감사 문제 스타일 (kauox_) */
        #screen-study .single-audit-ox-mode .ar-prob-header {
            font-weight: 700; font-size: 1em; margin-bottom: 3px;
        }
        #screen-study .single-audit-ox-mode .ar-prob-source {
            font-size: 11px; color: #6b7280; margin-bottom: 10px;
        }
        #screen-study .single-audit-ox-mode .ar-prob-instruction {
            font-weight: 500; margin-bottom: 12px;
            border-bottom: 1px solid var(--exam-line-color, var(--text));
            padding-bottom: 10px;
        }
        #screen-study .single-audit-ox-mode .ar-prob-body {
            line-height: var(--audit-ox-line-height, 1.6);
        }
        #screen-study .study-paper-box.active.single-audit-ox-mode .audit-report-table {
            width: 100%;
            border-collapse: collapse;
            margin: 0;
        }
        #screen-study .study-paper-box.active.single-audit-ox-mode .audit-report-table th,
        #screen-study .study-paper-box.active.single-audit-ox-mode .audit-report-table td {
            border: 1px solid var(--exam-line-color, var(--text));
            padding: 6px 10px;
            vertical-align: top;
            text-align: left;
        }
        /* 헤더 행: 항목 | 감사보고서 */
        #screen-study .study-paper-box.active.single-audit-ox-mode .audit-report-table thead th {
            text-align: center;
            font-weight: 600;
            vertical-align: middle;
            padding: 5px 10px;
        }
        #screen-study .study-paper-box.active.single-audit-ox-mode .audit-report-table .art-label {
            width: 60px;
            white-space: nowrap;
        }
        /* 데이터 행: ① | text */
        #screen-study .study-paper-box.active.single-audit-ox-mode .audit-report-table .art-num {
            text-align: center;
            white-space: nowrap;
            font-weight: 600;
            vertical-align: middle;
        }
        /* 표가 들어가면 시험지 박스 안쪽 여백을 없애 표가 테두리에 꽉 차게 */
        #screen-study .study-paper-box.active.single-audit-ox-mode > .prob-text:has(.audit-report-table) {
            padding: 0 !important;
        }
        #screen-study .study-paper-box.active.single-audit-ox-mode .audit-report-source {
            text-align: right;
            font-size: 11px;
            color: #6b7280;
            margin-top: 4px;
            padding-right: 2px;
        }
        #screen-study .study-paper-box.active.single-audit-ox-mode .audit-report-table .art-body {
            line-height: var(--audit-ox-line-height, 1.58);
        }
        /* (물음) 텍스트를 박스 내부 콘텐츠 좌측과 맞춤 */
        #screen-study #oxContextAbove.ox-ctx-show {
            max-width: var(--study-paper-width) !important;
            padding-left: 10px !important;
            padding-right: 10px !important;
        }

        #screen-study .study-paper-box.active.single-audit-ox-mode + #choicesArea {
            margin-top: var(--study-ox-answer-gap) !important;
        }

        #screen-study .study-paper-box.active.ox-mode + #choicesArea {
            margin-top: var(--study-ox-answer-gap) !important;
        }

        #screen-study .study-paper-box.active.audit-mcq-mode + #choicesArea {
            margin-top: var(--study-ox-answer-gap) !important;
        }

        #screen-study .study-paper-box.active.audit-mcq-mode + #choicesArea .audit-mcq-sheet {
            margin-top: 0 !important;
        }

        #screen-study .study-paper-box.active.oxset-mode + #choicesArea .oxset-answer-sheet,
        #screen-study .study-paper-box.active.ox-mode + #choicesArea .oxset-answer-sheet {
            margin-top: 0 !important;
        }

        #screen-study .study-paper-box.active.single-audit-ox-mode + #choicesArea .oxset-answer-sheet,
        #screen-study .study-paper-box.active.single-audit-ox-mode + #choicesArea .single-audit-ox-sheet {
            width: calc(var(--study-paper-width) - 40px) !important;
            max-width: calc(var(--study-paper-width) - 40px) !important;
            margin-left: auto !important;
            margin-right: auto !important;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
        }

        @media (max-width: 767px) {
            #screen-study .study-header,
            #screen-study .study-progress-wrap {
                width: calc(var(--study-paper-width) - 24px) !important;
                max-width: calc(var(--study-paper-width) - 24px) !important;
            }

            #screen-study .study-paper-box.active.single-audit-ox-mode,
            #screen-study .study-paper-box.active.single-audit-ox-mode + #choicesArea .oxset-answer-sheet,
            #screen-study .study-paper-box.active.single-audit-ox-mode + #choicesArea .single-audit-ox-sheet {
                width: calc(var(--study-paper-width) - 24px) !important;
                max-width: calc(var(--study-paper-width) - 24px) !important;
            }
        }

        /* Visual QA pass: make the study chrome recede and keep the paper/table as the focus. */
        #screen-study .study-header {
            display: flex !important;
            justify-content: flex-start !important;
            align-items: center !important;
            gap: 10px !important;
            width: calc(var(--study-paper-width) - 40px) !important;
            max-width: calc(var(--study-paper-width) - 40px) !important;
            height: 54px !important;
            margin-left: auto !important;
            margin-right: auto !important;
            padding: 0 !important;
            border-bottom: 1px solid rgba(15, 23, 42, 0.11) !important;
        }

        #screen-study .bookmark-btn,
        #screen-study .exclude-session-btn,
        #screen-study .more-btn {
            position: static !important;
            bottom: auto !important;
            right: auto !important;
            flex: 0 0 auto !important;
        }

        #screen-study .bookmark-btn {
            margin-left: auto !important;
            transform: translateY(4px) !important;
        }

        #screen-study .exclude-session-btn {
            width: auto !important;
            min-width: 38px !important;
            height: 32px !important;
            margin-left: 10px !important;
            padding: 0 9px !important;
            border: 1px solid rgba(148, 163, 184, 0.28) !important;
            border-radius: 999px !important;
            background: rgba(255, 255, 255, 0.56) !important;
            color: #64748B !important;
            box-shadow: none !important;
            transform: none !important;
        }

        #screen-study .more-btn {
            width: 34px !important;
            height: 34px !important;
            margin-left: 8px !important;
            background: rgba(255, 255, 255, 0.52) !important;
            border: 1px solid rgba(148, 163, 184, 0.18) !important;
            color: #5B6472 !important;
        }

        #screen-study .study-progress-wrap {
            width: calc(var(--study-paper-width) - 40px) !important;
            max-width: calc(var(--study-paper-width) - 40px) !important;
            height: 44px !important;
            margin-top: 12px !important;
            margin-bottom: 16px !important;
            padding: 8px 18px !important;
            background: rgba(247, 248, 249, 0.72) !important;
            box-shadow: none !important;
        }

        #screen-study .study-progress-track,
        .study-progress-track {
            height: 6px !important;
            background: #D7DCE3 !important;
        }

        #screen-study .study-paper-box.active,
        #screen-study .oxset-choice-table,
        #screen-study .oxset-answer-sheet .oxset-table {
            border-color: var(--text) !important;
        }

        #screen-study .oxset-table-row.cell-active {
            background: transparent !important;
            box-shadow: none !important;
        }

        #screen-study .oxset-table-row.cell-active .oxset-choice-cell.cell-input-active,
        #screen-study .oxset-table-row.cell-active .oxset-reason-cell.cell-input-active {
            background-color: transparent !important;
        }

        #screen-study .audit-ox-input:focus,
        #screen-study .oxset-input:focus,
        #screen-study .audit-ox-reason:focus,
        #screen-study .oxset-reason:focus {
            background: transparent !important;
            box-shadow: none !important;
            outline: none !important;
        }

        #screen-study .oxset-help,
        #screen-study .audit-ox-help {
            margin-top: 7px !important;
            padding: 0 !important;
            color: #6B7280 !important;
            font-family: 'Noto Sans KR', sans-serif !important;
            font-size: 12px !important;
            line-height: 1.35 !important;
            letter-spacing: -0.025em !important;
        }

        #screen-study .study-mini-nav {
            margin-top: 0 !important;
        }

        /* Long explanations must never be clipped; let the page scroll instead. */
        #screen-study .exp-body.open,
        #screen-result .exp-body.open,
        .result-review-exp .exp-body.open {
            max-height: none !important;
            overflow: visible !important;
        }

        #screen-study .exp-inner,
        #screen-result .exp-inner,
        .result-review-exp .exp-inner {
            overflow: visible !important;
            white-space: normal;
            word-break: normal;
            overflow-wrap: anywhere;
        }

        /* Short-answer inline fixes: preserve underline and descenders after typing. */
        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.has-value:not(.is-active) .sa-inline-input,
        #screen-study .sa-context .sa-inline-answer.has-value:not(.is-active) .sa-inline-input {
            height: 1.05em !important;
            min-height: 1.05em !important;
            line-height: inherit !important;
            padding: 0 !important;
            overflow: visible !important;
            text-decoration: none !important;
            border-bottom: 1.2px solid var(--text) !important;
            vertical-align: baseline !important;
            color: var(--text) !important;
            background: transparent !important;
            box-shadow: none !important;
        }

        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.has-value.is-active .sa-inline-input,
        #screen-study .sa-context .sa-inline-answer.has-value.is-active .sa-inline-input {
            height: 1.05em !important;
            min-height: 1.05em !important;
            line-height: inherit !important;
            padding-left: 0.12em !important;
            padding-right: 0.12em !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            overflow: visible !important;
            border-bottom-color: transparent !important;
            text-decoration: none !important;
            vertical-align: baseline !important;
            transition: border-color 0.12s ease, background-color 0.12s ease !important;
        }

        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.is-active .sa-inline-paren,
        #screen-study .sa-context .sa-inline-answer.is-active .sa-inline-paren {
            display: inline !important;
            font-weight: 800 !important;
            color: #020617 !important;
        }

        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.result-correct .sa-inline-input,
        #screen-study .sa-context .sa-inline-answer.result-correct .sa-inline-input {
            font-weight: 800 !important;
            color: var(--text) !important;
            border: 0 !important;
            border-bottom: 0 !important;
            text-decoration: none !important;
        }

        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.result-corrected .sa-inline-input,
        #screen-study .sa-context .sa-inline-answer.result-corrected .sa-inline-input {
            font-weight: 800 !important;
            color: #DC2626 !important;
            -webkit-text-fill-color: #DC2626 !important;
            border: 0 !important;
            border-bottom: 0 !important;
            text-decoration: none !important;
        }

        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.result-correct-all .sa-inline-input,
        #screen-study .sa-context .sa-inline-answer.result-correct-all .sa-inline-input {
            font-weight: 800 !important;
            color: var(--text) !important;
            -webkit-text-fill-color: var(--text) !important;
            border: 0 !important;
            border-bottom: 0 !important;
            text-decoration: none !important;
        }

        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.is-active:not(.result-correct):not(.result-correct-all):not(.result-corrected) .sa-inline-input,
        #screen-study .sa-context .sa-inline-answer.is-active:not(.result-correct):not(.result-correct-all):not(.result-corrected) .sa-inline-input {
            border-bottom: 0 !important;
            text-decoration: none !important;
            box-shadow: none !important;
            background-image: none !important;
        }

        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.result-correct,
        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.result-correct-all,
        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.result-corrected,
        #screen-study .sa-context .sa-inline-answer.result-correct,
        #screen-study .sa-context .sa-inline-answer.result-correct-all,
        #screen-study .sa-context .sa-inline-answer.result-corrected {
            pointer-events: none !important;
            cursor: default !important;
        }
        #screen-study .study-paper-box.active.short-mode .sa-inline-result-text,
        #screen-study .sa-context .sa-inline-result-text {
            display: inline !important;
            margin: 0 !important;
            padding: 0 !important;
            font: inherit !important;
            font-weight: 800 !important;
            line-height: inherit !important;
            letter-spacing: inherit !important;
            vertical-align: baseline !important;
            text-decoration: none !important;
            border: 0 !important;
            background: transparent !important;
        }

        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.result-corrected .sa-inline-result-text,
        #screen-study .sa-context .sa-inline-answer.result-corrected .sa-inline-result-text {
            color: var(--primary) !important;
        }

        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.result-correct-all .sa-inline-result-text,
        #screen-study .sa-context .sa-inline-answer.result-correct-all .sa-inline-result-text {
            color: var(--text) !important;
        }
        /* Short-answer result display: correct answers are bold only, never underlined. */
        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.result-correct,
        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.result-correct-all,
        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.result-corrected,
        #screen-study .sa-context .sa-inline-answer.result-correct,
        #screen-study .sa-context .sa-inline-answer.result-correct-all,
        #screen-study .sa-context .sa-inline-answer.result-corrected {
            font-weight: 800 !important;
            text-decoration: none !important;
            border: 0 !important;
            box-shadow: none !important;
            background-image: none !important;
        }

        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.result-correct .sa-inline-input,
        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.result-correct-all .sa-inline-input,
        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.result-corrected .sa-inline-input,
        #screen-study .study-paper-box.active.short-mode .sa-inline-input.result-correct,
        #screen-study .study-paper-box.active.short-mode .sa-inline-input.result-correct-all,
        #screen-study .study-paper-box.active.short-mode .sa-inline-input.result-corrected,
        #screen-study .sa-context .sa-inline-answer.result-correct .sa-inline-input,
        #screen-study .sa-context .sa-inline-answer.result-correct-all .sa-inline-input,
        #screen-study .sa-context .sa-inline-answer.result-corrected .sa-inline-input,
        #screen-study .sa-context .sa-inline-input.result-correct,
        #screen-study .sa-context .sa-inline-input.result-correct-all,
        #screen-study .sa-context .sa-inline-input.result-corrected {
            font-weight: 800 !important;
            text-decoration: none !important;
            text-decoration-line: none !important;
            -webkit-text-decoration-line: none !important;
            border: 0 !important;
            border-bottom: 0 !important;
            outline: 0 !important;
            box-shadow: none !important;
            background: transparent !important;
            background-image: none !important;
        }

        /* Short-answer blanks should sit on the same paper tone, not on white native input boxes. */
        #screen-study .study-paper-box.active.short-mode .sa-inline-answer,
        #screen-study .study-paper-box.active.short-mode .sa-inline-input,
        #screen-study .study-paper-box.active.short-mode .sa-inline-input:focus,
        #screen-study .study-paper-box.active.short-mode .sa-inline-input:focus-visible,
        #screen-study .study-paper-box.active.short-mode .sa-inline-input[readonly],
        #screen-study .sa-context .sa-inline-answer,
        #screen-study .sa-context .sa-inline-input,
        #screen-study .sa-context .sa-inline-input:focus,
        #screen-study .sa-context .sa-inline-input:focus-visible,
        #screen-study .sa-context .sa-inline-input[readonly] {
            background-color: transparent !important;
            background-image: none !important;
            box-shadow: none !important;
        }

        /* Short-answer active state: selected parentheses are bold, typed text stays normal. */
        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.is-active:not(.result-correct):not(.result-corrected),
        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.is-active:not(.result-correct):not(.result-corrected) .sa-inline-paren,
        #screen-study .sa-context .sa-inline-answer.is-active:not(.result-correct):not(.result-corrected),
        #screen-study .sa-context .sa-inline-answer.is-active:not(.result-correct):not(.result-corrected) .sa-inline-paren {
            font-weight: 800 !important;
        }

        #screen-study .study-paper-box.active.short-mode .sa-inline-answer.is-active:not(.result-correct):not(.result-correct-all):not(.result-corrected) .sa-inline-input,
        #screen-study .sa-context .sa-inline-answer.is-active:not(.result-correct):not(.result-correct-all):not(.result-corrected) .sa-inline-input {
            font-weight: 400 !important;
        }

        #screen-study .sa-slot-input,
        #screen-study .sa-slot-input:focus,
        #screen-study .sa-slot-input[readonly] {
            background-color: var(--study-paper, #F3F4F5) !important;
            background-image: none !important;
        }
        /* 2026-05-24 PC subject-list clipping fix: size lists by app content, not viewport. */
        #screen-sets,
        #screen-sets-sub {
            overflow-x: hidden !important;
        }

        #screen-sets .page-title,
        #screen-sets-sub .page-title,
        #screen-sets .subject-category-grid,
        #screen-sets-sub #subSetsList {
            width: min(860px, 100%) !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
        }

        #screen-sets .subject-category-grid {
            padding-left: 0 !important;
            padding-right: 0 !important;
            justify-items: stretch !important;
        }

        #screen-sets .category-btn {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            grid-template-columns: 44px minmax(0, 1fr) 22px !important;
            padding-right: 16px !important;
            box-sizing: border-box !important;
            overflow: hidden !important;
        }

        #screen-sets .category-arrow {
            width: 22px !important;
            min-width: 22px !important;
            height: 22px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            justify-self: end !important;
            line-height: 1 !important;
            overflow: visible !important;
        }

        #screen-sets-sub .set-item {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            padding-right: 16px !important;
        }

        /* Final audit short-answer alignment: same printed-paper width and type as audit OX/MCQ. */
        #screen-study .study-paper-box.active.short-mode {
            width: calc(var(--study-paper-width) - 40px) !important;
            max-width: calc(var(--study-paper-width) - 40px) !important;
            margin-top: 20px !important;
            margin-left: auto !important;
            margin-right: auto !important;
            border: 1px solid var(--exam-line-color, var(--text)) !important;
            background: transparent !important;
            padding: 0 !important;
            box-shadow: none !important;
        }

        #screen-study .study-paper-box.active.short-mode > .prob-text {
            padding: 0 !important;
            background: transparent !important;
        }

        #screen-study .study-paper-box.active.short-mode > .prob-text > .sa-context,
        #screen-study .study-paper-box.active.short-mode .sa-inline-answer,
        #screen-study .study-paper-box.active.short-mode .sa-inline-input,
        #screen-study .study-paper-box.active.short-mode .sa-inline-paren,
        #screen-study .short-question-instruction.active {
            font-family: var(--exam-serif-font, 'Batang', '바탕', 'KoPub World Batang', 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif) !important;
            font-size: var(--study-base-font-size, 17.1px) !important;
            font-weight: 400 !important;
            line-height: var(--audit-ox-line-height, 1.56) !important;
            letter-spacing: -0.026em !important;
            color: var(--exam-line-color, var(--text)) !important;
        }

        #screen-study .study-paper-box.active.short-mode > .prob-text > .sa-context {
            width: 100% !important;
            max-width: none !important;
            margin: 0 !important;
            padding: 7px 9px !important;
            box-sizing: border-box !important;
            background: transparent !important;
            background-color: transparent !important;
            background-image: none !important;
            white-space: pre-line !important;
            word-break: normal !important;
            overflow-wrap: anywhere !important;
            line-break: strict !important;
        }

        @media (max-width: 767px) {
            #screen-study .study-paper-box.active.short-mode {
                width: calc(var(--study-paper-width) - 24px) !important;
                max-width: calc(var(--study-paper-width) - 24px) !important;
            }

            #screen-study .study-paper-box.active.short-mode > .prob-text > .sa-context {
                padding: 8px 9px !important;
            }
        }

        /* 이유 칸 2줄 고정 — 폰트 기반 calc */
        #screen-study .oxset-reason {
            box-sizing: border-box !important;
            height: 64px !important;
            min-height: 64px !important;
            max-height: 64px !important;
            overflow: hidden !important;
            resize: none !important;
        }

        /* OX 점선: 이유textarea에 직접, 헤더·번호·선택셀에도 직접 (겹침 방지) */
        /* 이유셀 자체 — 점선 제거 (textarea에서 처리) */
        #screen-study .oxset-reason-cell {
            background-image: none !important;
        }
        /* 헤더·번호칸·선택칸 — 점선 없음 (JS가 inline background-image:none으로 강제 초기화) */
        /* 이유 textarea — 직접 점선, 포커스 포함 (32px 간격) */
        #screen-study .oxset-reason,
        #screen-study .oxset-reason:focus {
            background-image: radial-gradient(circle at 2.5px 31px,rgba(0,0,0,0.09) 1px,transparent 1.5px) !important;
            background-size: 5px 32px !important;
            background-repeat: repeat !important;
            box-shadow: none !important;
        }
        /* single-audit-ox-mode의 background-image:none 재정의 — 점선 복원 (32px) */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea textarea.oxset-reason,
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea textarea.oxset-reason:focus {
            background-color: transparent !important;
            background-image: radial-gradient(circle at 2.5px 31px,rgba(0,0,0,0.09) 1px,transparent 1.5px) !important;
            background-size: 5px 32px !important;
            background-repeat: repeat !important;
            background-position: 0 0 !important;
            background-attachment: local !important;
        }
        /* OX 채점 버튼 (맞음/애매함/틀림/키워드) — OX 모드에서만 숨김 */
        #screen-study #studyPaperBox.single-audit-ox-mode + #choicesArea .essay-grade-actions {
            display: none !important;
        }

        /* ── 감사보고서 OX 단독 답안지: 점선·줄높이·글씨 정렬 ── */
        /* ── 감사보고서 OX 단독 답안지: 셀 기반 점선 (컨테이너 투명 충돌 우회) ── */
        /* 열 너비: no-cell hidden 상태이므로 2열(선택 116px + 이유 나머지) */
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-table,
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-table-row {
            grid-template-columns: 116px minmax(0, 1fr) !important;
        }
        /* 헤더셀·번호셀·선택셀·이유셀: 흰 배경 + 32px 점선 직접 */
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-table-head,
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-no-cell,
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-choice-cell,
        #screen-study #choicesArea .single-audit-ox-sheet .audit-ox-choice-cell,
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-reason-cell,
        #screen-study #choicesArea .single-audit-ox-sheet .audit-ox-reason-cell {
            background-color: var(--surface) !important;
            background-image: var(--dot-bg-img) !important;
            background-size: 5px 32px !important;
            background-position: 0 0 !important;
            background-repeat: repeat !important;
            box-shadow: none !important;
        }
        /* textarea·input: 투명 → 셀 점선 비침 */
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-reason,
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-reason:focus,
        #screen-study #choicesArea .single-audit-ox-sheet .audit-ox-reason,
        #screen-study #choicesArea .single-audit-ox-sheet .audit-ox-reason:focus,
        #screen-study #choicesArea .single-audit-ox-sheet .audit-ox-input,
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-input {
            background-color: transparent !important;
            background-image: none !important;
            box-shadow: none !important;
        }
        /* [답안 양식] 라벨: 1줄(32px) */
        #screen-study #choicesArea .single-audit-ox-sheet .exam-answer-label {
            height: 32px !important; min-height: 32px !important; max-height: 32px !important;
            line-height: 32px !important; margin: 0 !important; padding: 0 4px !important;
            overflow: hidden !important; box-sizing: border-box !important;
            background: transparent !important;
            font-size: var(--audit-ox-font-size, 16.4px) !important;
        }
        /* .no 헤더·셀 강제 숨김 (명시도 2,3,0으로 기존 1,3,0 제압) */
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-table-head.no,
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-no-cell {
            display: none !important;
        }
        /* 헤더행: 2줄(64px) — .no는 제외(display:none 유지) */
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-table-head:not(.no) {
            height: 64px !important; min-height: 64px !important; max-height: 64px !important;
            line-height: 32px !important; padding: 0 4px !important;
            box-sizing: border-box !important; font-size: var(--audit-ox-font-size, 16.4px) !important;
            display: flex !important; align-items: center !important; justify-content: center !important;
        }
        /* 번호셀·선택셀: 2줄(64px) */
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-no-cell,
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-choice-cell,
        #screen-study #choicesArea .single-audit-ox-sheet .audit-ox-choice-cell {
            height: 64px !important; min-height: 64px !important; max-height: 64px !important;
            box-sizing: border-box !important; font-size: var(--audit-ox-font-size, 16.4px) !important;
        }
        /* 이유셀: 2줄(64px) */
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-reason-cell,
        #screen-study #choicesArea .single-audit-ox-sheet .audit-ox-reason-cell {
            height: 64px !important; min-height: 64px !important; max-height: 64px !important;
            box-sizing: border-box !important; padding: 0 !important;
        }
        /* 이유 textarea: 2줄(64px) */
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-reason,
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-reason:focus,
        #screen-study #choicesArea .single-audit-ox-sheet .audit-ox-reason,
        #screen-study #choicesArea .single-audit-ox-sheet .audit-ox-reason:focus {
            height: 64px !important; min-height: 64px !important; max-height: 64px !important;
            padding: 0 8px !important; font-size: var(--audit-ox-font-size, 16.4px) !important;
            line-height: 32px !important; box-sizing: border-box !important;
            overflow: hidden !important; resize: none !important;
        }
        /* 감사보고서 OX: 피드백 모드 셀 높이 자동 확장 */
        #screen-study #choicesArea .single-audit-ox-sheet .audit-ox-reason-cell:has(.oxset-reason-feedback-wrap),
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-reason-cell:has(.oxset-reason-feedback-wrap) {
            height: auto !important;
            max-height: none !important;
        }
        /* 선택셀(O/X)도 이유셀 확장에 맞춰 동반 확장 */
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-table-row:has(.oxset-reason-feedback-wrap) .oxset-choice-cell,
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-table-row:has(.oxset-reason-feedback-wrap) .audit-ox-choice-cell {
            height: auto !important;
            max-height: none !important;
            min-height: 64px !important;
        }
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-reason-feedback {
            font-family: var(--exam-serif-font) !important;
            font-size: var(--audit-ox-font-size, 16.4px) !important;
            line-height: 32px !important;
            letter-spacing: -0.026em !important;
        }
        /* 피드백 해설을 32px 점선격자에 정렬: 세로 padding 0(첫 줄을 셀 상단=격자선에 맞춤) */
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-reason-feedback-wrap,
        #screen-study #choicesArea .single-audit-ox-sheet .oxset-reason-feedback {
            padding-top: 0 !important;
            padding-bottom: 0 !important;
        }
        /* OX 세트 피드백 확장 행: 항목·선택·이유 칸 신장 보장 */
        #screen-study .oxset-answer-sheet .oxset-table-row:has(.oxset-reason-feedback-wrap) .oxset-no-cell,
        #screen-study .oxset-answer-sheet .oxset-table-row:has(.oxset-reason-feedback-wrap) .oxset-choice-cell,
        #screen-study .oxset-answer-sheet .oxset-table-row:has(.oxset-reason-feedback-wrap) .oxset-reason-cell {
            align-self: stretch !important;
        }
        /* 번호(①②③④) 확장 행에서 절대 중앙 정렬 */
        #screen-study .oxset-answer-sheet .oxset-table-row:has(.oxset-reason-feedback-wrap) .oxset-no-cell {
            position: relative !important;
        }
        #screen-study .oxset-answer-sheet .oxset-table-row:has(.oxset-reason-feedback-wrap) .oxset-no-cell > span {
            position: absolute !important;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
            width: auto !important;
            height: auto !important;
            min-height: auto !important;
        }

        /* ===================== 모던 리스타일 v1 (2026-06, 한국 스타일·PC 우선) =====================
           소스 순서상 마지막이라 과거 평면화 규칙을 이김. 색/그림자/라운드는 design-system.css 토큰 사용.
           되돌리려면 이 블록만 삭제. */
        /* 카드류: 옅고 부드러운 그림자 + 라운드 + 연한 테두리(토스/네이버식) */
        .home-menu-btn,
        .home-advanced-card,
        .home-resume-card,
        .advanced-setting-card,
        .advanced-stage-card,
        .stat-card,
        .result-card,
        .category-btn,
        .set-item,
        .bv-subject-item,
        .bv-range-item {
            border-radius: var(--radius-lg);
            border: 1px solid var(--card-border);
            box-shadow: var(--shadow-sm);
            transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
        }
        .home-menu-btn:hover,
        .home-advanced-card:hover,
        .home-resume-card:hover,
        .advanced-setting-card:hover,
        .advanced-stage-card:hover,
        .category-btn:hover,
        .set-item:hover,
        .bv-subject-item:hover,
        .bv-range-item:hover {
            background: var(--surface);
            border-color: var(--primary-200);
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }
        /* 아이콘: 회색 박스 제거 → 브랜드 소프트 틴트 칩 (흰 카드와 조화) */
        .home-menu-icon,
        .home-advanced-icon,
        .category-btn-icon {
            background: var(--primary-soft);
            color: var(--primary);
            border-radius: var(--radius-sm);
            width: 38px;
            height: 38px;
        }
        /* 1차 CTA(문제 풀기): 비율·라운드 정제 + 절제된 브랜드 그림자 */
        .home-primary-btn {
            height: 84px;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-brand);
        }
        .home-primary-btn:hover {
            box-shadow: 0 10px 24px rgba(36,81,223,.26);
            transform: translateY(-2px);
        }
        /* 통계 숫자: 또렷하게 */
        .stat-card-value { letter-spacing: -0.5px; }

        /* 돌아가기: 회색 알약 → 깔끔한 고스트 백링크 + ‹ 셰브론 (제목과 좌측 정렬) */
        .back-btn {
            background: transparent;
            border: none;
            color: var(--text-2);
            padding-left: 0;
            font-weight: 600;
        }
        .back-btn::before { content: '\2039'; margin-right: 6px; font-size: 1.2em; }
        .back-btn:hover { background: transparent; color: var(--primary); }

        /* 통계 화면 카드: 홈과 동일한 흰 카드 + 부드러운 그림자로 통일 (#screen-stats 스코프로 우선순위 확보) */
        #screen-stats .stat-card {
            background: var(--surface);
            border: 1px solid var(--card-border);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
        }

        /* PC 홈: 2단 그리드 → 중앙 정렬 편안한 단일 컬럼 (사용자 선택, 한국 모던·PC 우선).
           DOM 순서(제목→CTA→오늘학습→이어풀기→메뉴)대로 자연 적층. 원본 2단은 @media(min-width:1100) 위쪽에 보존. */
        @media (min-width: 1100px) {
            #screen-main .home-wrap {
                grid-template-columns: minmax(0, 1fr);
                max-width: 820px;
                column-gap: 0;
            }
            #screen-main .home-header,
            #screen-main .home-primary-btn,
            #screen-main .home-today-card,
            #screen-main .home-resume-card,
            #screen-main .home-menu-list {
                grid-column: 1;
                grid-row: auto;
            }
            /* 메뉴: 사이드 글래스 카드 → 가로 3분할 버튼 행 */
            #screen-main .home-menu-list {
                position: static;
                background: transparent;
                border: none;
                backdrop-filter: none;
                padding: 0;
                margin-top: 12px;
                grid-template-columns: 1fr 1fr 1fr;
                gap: 10px;
            }
            /* 돌아가기 버튼을 콘텐츠 좌측에 정렬 (사용자 요청: 더 왼쪽으로) */
            .study-header { padding-left: 0; }
        }
    

/* ─────────────────────────────────────────────────────────────
   적응형 전수 드릴 (screen-adapt) — data/cpa_adaptive_drill_ui.js
   ───────────────────────────────────────────────────────────── */
#screen-adapt .adapt-wrap { max-width: 760px; margin: 0 auto; padding: 0 4px 40px; }
.adapt-intro {
    background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px; padding: 14px 16px; font-size: 13.5px; line-height: 1.85;
    color: var(--text-2, #475569); word-break: keep-all; margin-bottom: 16px;
}
.adapt-intro b { color: var(--text, #1e293b); }
.adapt-card {
    display: block; width: 100%; text-align: left; cursor: pointer;
    background: var(--surface, #fff); border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 16px; padding: 16px 18px; margin-bottom: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.adapt-card:hover { border-color: var(--primary, #2451DF); box-shadow: 0 4px 14px rgba(36,81,223,.10); }
.adapt-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adapt-card-title { font-size: 15.5px; font-weight: 800; color: var(--text, #1e293b); word-break: keep-all; }
.adapt-card-round {
    flex: none; font-size: 11.5px; font-weight: 800; color: var(--primary, #2451DF);
    background: rgba(36,81,223,.08); border-radius: 999px; padding: 3px 9px;
}
.adapt-card-sub { margin-top: 4px; font-size: 12.5px; color: var(--text-3, #94a3b8); }
.adapt-bar {
    margin-top: 11px; height: 7px; border-radius: 999px;
    background: var(--border, #e5e7eb); overflow: hidden;
}
.adapt-bar > i { display: block; height: 100%; background: var(--primary, #2451DF); border-radius: 999px; }
.adapt-bar-slim { height: 5px; margin: 8px 0 12px; }
.adapt-card-meta {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 9px;
    font-size: 12px; color: var(--text-3, #94a3b8);
}
.adapt-card-meta b { color: var(--text, #1e293b); font-weight: 800; }
.adapt-reset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.adapt-reset {
    cursor: pointer; font-size: 12px; color: var(--text-3, #94a3b8);
    background: none; border: 1px solid var(--border, #e5e7eb);
    border-radius: 999px; padding: 6px 12px;
}
.adapt-progress {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12.5px; font-weight: 700; color: var(--text-3, #94a3b8);
}
.adapt-cluster { font-size: 12px; font-weight: 700; color: var(--primary, #2451DF); margin-bottom: 8px; }
.adapt-qcard {
    background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb);
    border-radius: 16px; padding: 18px 18px 20px;
}
.adapt-prompt {
    font-size: 15.5px; font-weight: 800; color: var(--text, #1e293b);
    margin-bottom: 14px; word-break: keep-all;
}
.adapt-ox-text {
    font-size: 15px; line-height: 1.95; color: var(--text, #1e293b);
    word-break: keep-all; padding: 4px 0 6px;
}
.adapt-ox-btns { display: flex; gap: 12px; margin-top: 16px; }
.adapt-ox-btn {
    flex: 1; cursor: pointer; font-size: 22px; font-weight: 800; padding: 14px 0;
    border-radius: 14px; border: 1.5px solid var(--border, #e5e7eb);
    background: var(--surface, #fff); color: var(--text, #1e293b);
}
.adapt-ox-btn:hover:not(:disabled) { border-color: var(--primary, #2451DF); color: var(--primary, #2451DF); }
.adapt-choices { display: flex; flex-direction: column; gap: 9px; }
.adapt-choice {
    display: flex; gap: 10px; width: 100%; text-align: left; cursor: pointer;
    background: var(--surface, #fff); border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 12px; padding: 12px 13px;
    font-size: 14.5px; line-height: 1.8; color: var(--text, #1e293b); word-break: keep-all;
}
.adapt-choice:hover:not(:disabled) { border-color: var(--primary, #2451DF); }
.adapt-choice:disabled { cursor: default; }
.adapt-choice-no { flex: none; font-weight: 800; color: var(--text-3, #94a3b8); }
.adapt-choice.is-answer { border-color: var(--success, #16a34a); background: rgba(22,163,74,.06); }
.adapt-choice.is-answer .adapt-choice-no { color: var(--success, #16a34a); }
.adapt-choice.is-wrong { border-color: var(--danger, #dc2626); background: rgba(220,38,38,.06); }
.adapt-choice.is-wrong .adapt-choice-no { color: var(--danger, #dc2626); }
.adapt-fb {
    margin-top: 14px; border-radius: 14px; padding: 15px 16px;
    border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff);
}
.adapt-fb.ok { border-color: var(--success, #16a34a); }
.adapt-fb.no { border-color: var(--danger, #dc2626); }
.adapt-fb-head { font-size: 14.5px; font-weight: 800; margin-bottom: 9px; }
.adapt-fb.ok .adapt-fb-head { color: var(--success, #16a34a); }
.adapt-fb.no .adapt-fb-head { color: var(--danger, #dc2626); }
.adapt-fb-line { margin-bottom: 10px; font-size: 12.5px; font-weight: 700; color: var(--text-3, #94a3b8); }
.adapt-fb-fix {
    margin-top: 5px; font-size: 13.5px; font-weight: 500; line-height: 1.85;
    color: var(--text, #1e293b); word-break: keep-all;
}
.adapt-fb-fix b { color: var(--success, #16a34a); font-weight: 800; margin-right: 4px; }
.adapt-fb-exp {
    margin-top: 5px; font-size: 13px; font-weight: 500; line-height: 1.85;
    color: var(--text-2, #475569); word-break: keep-all;
}
.adapt-fb-src { margin-top: 8px; font-size: 12px; color: var(--text-3, #94a3b8); font-weight: 700; }
.adapt-fb-note {
    margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border, #e5e7eb);
    font-size: 12.5px; color: var(--text-3, #94a3b8); word-break: keep-all;
}
.adapt-next {
    display: block; width: 100%; margin-top: 14px; cursor: pointer;
    background: var(--primary, #2451DF); color: #fff; border: none;
    border-radius: 12px; padding: 13px 0; font-size: 15px; font-weight: 800;
}
.adapt-next.adapt-ghost {
    background: var(--surface, #fff); color: var(--text-2, #475569);
    border: 1.5px solid var(--border, #e5e7eb);
}
.adapt-done {
    background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb);
    border-radius: 16px; padding: 26px 20px; text-align: center;
}
.adapt-done-big { font-size: 18px; font-weight: 800; color: var(--text, #1e293b); }
.adapt-score { margin-top: 10px; font-size: 30px; font-weight: 800; color: var(--primary, #2451DF); }
.adapt-score span { font-size: 16px; color: var(--text-3, #94a3b8); }
.adapt-sum-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 4px;
}
.adapt-sum-grid > div {
    background: var(--bg, #f8fafc); border-radius: 12px; padding: 12px 6px;
}
.adapt-sum-grid b { display: block; font-size: 19px; font-weight: 800; color: var(--text, #1e293b); }
.adapt-sum-grid span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text-3, #94a3b8); }
.adapt-done-sub {
    margin-top: 14px; font-size: 13px; line-height: 1.85;
    color: var(--text-2, #475569); word-break: keep-all;
}


        /* ------------------------------------------------------------
           [A11Y] 선지 번호를 <div> 에서 <button> 으로 바꾸면서 필요한 초기화.
           브라우저 기본 버튼 스타일(배경·테두리·폰트)이 시험지 조판을 깨뜨린다.
           ------------------------------------------------------------ */
        button.choice-num {
            background: none;
            border: 0;
            margin: 0;
            /* font-family 는 선언하지 않는다 — .choice-num 이 이미 명조체를 지정하고 있어
               여기서 inherit 를 주면 시험지 본문 글꼴이 덮여 산세리프로 바뀐다(2026-08-23 실측). */
            font-weight: inherit;
            letter-spacing: inherit;
            display: inline-block;
            -webkit-appearance: none;
            appearance: none;
        }
        button.choice-num[aria-disabled="true"] { cursor: default; }

        /* [A11Y] 라이브 리전 — 화면에는 안 보이고 스크린리더만 읽는다.
           display:none 이나 visibility:hidden 은 보조기기에서도 사라지므로 쓰면 안 된다. */
        .a11y-sr-only {
            position: absolute !important;
            width: 1px; height: 1px;
            margin: -1px; padding: 0;
            overflow: hidden;
            clip: rect(0 0 0 0);
            clip-path: inset(50%);
            white-space: nowrap;
            border: 0;
        }

        /* 학습 통계 — 최근 학습 히트맵 (2026-08-24) */
        .heatmap-meta { font-size: 12.5px; color: var(--text-3, #9aa2af); font-weight: 600; }
        .heatmap-grid { display: flex; gap: 3px; overflow-x: auto; padding: 4px 2px 2px; }
        .heatmap-col { display: flex; flex-direction: column; gap: 3px; }
        .heatmap-cell { width: 12px; height: 12px; border-radius: 3px; background: var(--border, #e5e7eb); flex: none; }
        .heatmap-cell.hm-future { background: transparent; }
        .heatmap-cell.hm-l1 { background: color-mix(in srgb, var(--primary, #2451DF) 22%, var(--border, #e5e7eb)); }
        .heatmap-cell.hm-l2 { background: color-mix(in srgb, var(--primary, #2451DF) 45%, var(--border, #e5e7eb)); }
        .heatmap-cell.hm-l3 { background: color-mix(in srgb, var(--primary, #2451DF) 70%, var(--border, #e5e7eb)); }
        .heatmap-cell.hm-l4 { background: var(--primary, #2451DF); }
        .heatmap-legend { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 11px; color: var(--text-3, #9aa2af); }
        