        :root {
            --bg-1: #f6efe3;
            --bg-2: #edf4fb;
            --panel: #fffdf8;
            --panel-border: #dfd5c2;
            --text-strong: #1f2d3d;
            --text-muted: #5b6471;
            --accent: #1b6bbd;
            --ok: #177245;
            --warn: #8e5a1b;
            --danger: #b23b3b;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
            padding-bottom: env(safe-area-inset-bottom);
            color: var(--text-strong);
            background:
                    radial-gradient(1200px 460px at -10% -10%, rgba(35, 94, 170, 0.12), transparent 62%),
                    radial-gradient(900px 420px at 110% -20%, rgba(199, 139, 59, 0.16), transparent 60%),
                    linear-gradient(155deg, var(--bg-1), var(--bg-2));
            font-family: "IBM Plex Sans KR", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
        }

        .layout {
            width: 100%;
            padding: 12px 10px 18px;
            margin: 0 auto;
            animation: fade-up 360ms ease-out both;
        }

        .panel {
            border: 1px solid var(--panel-border);
            background: var(--panel);
            border-radius: 14px;
            box-shadow: 0 10px 22px rgba(47, 63, 84, 0.08);
        }

        .hero {
            padding: 14px 14px 12px;
            margin-bottom: 10px;
        }

        .hero-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .hero-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .title {
            margin: 0;
            font-size: 1.1rem;
            font-weight: 700;
            letter-spacing: -0.01em;
        }

        .description {
            margin: 6px 0 10px;
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 1.45;
        }

        .help-toggle {
            border: 1px solid #b8c7d6;
            background: #f4f8fc;
            color: #1c4f83;
            border-radius: 10px;
            font-size: 0.82rem;
            font-weight: 700;
            padding: 7px 10px;
            cursor: pointer;
        }

        .help-toggle:hover {
            border-color: #7da6cf;
            background: #ebf3fa;
        }

        a.help-toggle {
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            line-height: 1.2;
        }

        .help-toggle.is-busy {
            pointer-events: none;
            opacity: 0.55;
        }

        .guide-panel {
            margin-bottom: 10px;
            padding: 12px 12px 8px;
            animation: fade-up 240ms ease-out both;
        }

        .abbr-modal-card {
            background: #fff;
            border-radius: 14px;
            width: 100%;
            max-width: 720px;
            max-height: calc(100vh - 36px);
            display: flex;
            flex-direction: column;
            box-shadow: 0 22px 48px rgba(15, 25, 40, 0.28);
            animation: modal-in 160ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
            overflow: hidden;
        }
        .abbr-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 14px 16px 10px;
            border-bottom: 1px solid #ece4d5;
        }
        .abbr-modal-header .guide-title {
            margin: 0;
            font-size: 1.02rem;
        }
        .abbr-modal-close {
            border: none;
            background: transparent;
            color: #5b6b7d;
            font-size: 22px;
            line-height: 1;
            cursor: pointer;
            padding: 6px 10px;
            border-radius: 8px;
            min-width: 36px;
            min-height: 36px;
        }
        .abbr-modal-close:hover {
            background: #f1eee5;
            color: #243447;
        }
        .abbr-modal-body {
            padding: 12px 16px 8px;
            overflow-y: auto;
            flex: 1 1 auto;
        }
        .abbr-modal-footer {
            display: flex;
            justify-content: flex-end;
            padding: 10px 16px 14px;
            border-top: 1px solid #ece4d5;
        }

        .search-panel {
            margin-bottom: 10px;
            padding: 12px;
            animation: fade-up 240ms ease-out both;
        }

        .guide-title {
            margin: 0 0 8px;
            font-size: 0.95rem;
            font-weight: 700;
        }

        .guide-list {
            margin: 0;
            padding-left: 18px;
            color: var(--text-muted);
            font-size: 0.88rem;
            line-height: 1.6;
        }

        .guide-list code {
            color: #144f87;
            font-weight: 700;
        }

        .abbr-source {
            margin: 0 0 10px;
            color: var(--text-muted);
            font-size: 0.82rem;
            line-height: 1.4;
        }

        .abbr-source a {
            color: #1a5f9f;
            text-decoration: none;
            font-weight: 700;
        }

        .abbr-source a:hover {
            text-decoration: underline;
        }

        .abbr-sections {
            display: grid;
            gap: 10px;
        }

        .abbr-title {
            margin: 0 0 6px;
            font-size: 0.92rem;
            font-weight: 700;
            color: #294968;
        }

        .abbr-table-wrap {
            overflow-x: auto;
            border: 1px solid #d9cfbb;
            border-radius: 10px;
            background: #fff;
        }

        .abbr-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 380px;
            font-size: 0.83rem;
            line-height: 1.45;
        }

        .abbr-table th,
        .abbr-table td {
            border-bottom: 1px solid #ece4d5;
            text-align: left;
            padding: 7px 8px;
            vertical-align: top;
        }

        .abbr-table th {
            background: #f8f2e8;
            color: #2f4760;
            font-weight: 700;
            position: sticky;
            top: 0;
            z-index: 1;
        }

        .abbr-table tr:last-child td {
            border-bottom: 0;
        }

        .search-head {
            margin: 0 0 8px;
            font-size: 0.95rem;
            font-weight: 700;
        }

        .search-desc {
            margin: 0 0 10px;
            color: var(--text-muted);
            font-size: 0.83rem;
            line-height: 1.4;
        }

        .search-form {
            display: flex;
            gap: 7px;
            margin-bottom: 9px;
        }

        .search-input {
            flex: 1;
            min-width: 0;
            border: 1px solid #cdbfa8;
            border-radius: 10px;
            padding: 10px 11px;
            font-size: 0.92rem;
            line-height: 1.2;
            background: #fff;
            color: #1f2d3d;
            outline: none;
        }

        .search-input:focus {
            border-color: #4e86c0;
            box-shadow: 0 0 0 3px rgba(78, 134, 192, 0.17);
        }

        .search-button {
            border: 1px solid #b7c8da;
            background: #edf4fb;
            color: #1e4d7b;
            border-radius: 10px;
            padding: 10px 12px;
            font-size: 0.9rem;
            font-weight: 700;
            white-space: nowrap;
            cursor: pointer;
        }

        .search-button:disabled {
            cursor: not-allowed;
            opacity: 0.65;
        }

        .search-meta {
            margin: 0 0 7px;
            color: var(--text-muted);
            font-size: 0.82rem;
            line-height: 1.4;
        }

        .search-results {
            display: grid;
            gap: 8px;
        }

        .search-item {
            border: 1px solid #e0d7c7;
            border-radius: 10px;
            padding: 9px 10px;
            background: #fff;
        }

        .search-location {
            margin: 0 0 4px;
            color: #1f3f60;
            font-size: 0.84rem;
            font-weight: 700;
        }

        .search-content {
            margin: 0;
            color: #344557;
            font-size: 0.88rem;
            line-height: 1.55;
            word-break: break-word;
        }

        .status-row {
            display: grid;
            gap: 7px;
            margin-top: 6px;
        }

        .status-item {
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.35;
            word-break: break-all;
        }

        .status-item strong {
            color: var(--text-strong);
            margin-right: 4px;
        }

        .status-item.ok {
            color: var(--ok);
        }

        .status-item.warn {
            color: var(--warn);
        }

        .status-item.danger {
            color: var(--danger);
        }

        .editor-wrap {
            padding: 10px;
            margin-bottom: 0;
        }

        .editor {
            width: 100%;
            min-height: 56vh;
            border: 1px solid #d8d0c0;
            border-radius: 11px;
            resize: vertical;
            padding: 14px;
            color: #1e2a39;
            background: #fff;
            line-height: 1.78;
            font-size: 1rem;
            letter-spacing: 0.005em;
            outline: none;
            font-family: "Iropke Batang", "Noto Serif KR", "Nanum Myeongjo", serif;
        }

        .editor:focus {
            border-color: #3f87d1;
            box-shadow: 0 0 0 3px rgba(63, 135, 209, 0.18);
        }

        .editor-footer {
            margin-top: 8px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            color: var(--text-muted);
            font-size: 0.82rem;
        }

        @media (min-width: 992px) {
            .layout {
                max-width: 980px;
                padding: 24px 20px 26px;
            }

            .editor-wrap {
                padding: 14px;
            }

            .editor {
                min-height: 66vh;
                font-size: 1.05rem;
            }
        }

        @keyframes fade-up {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 온보딩 UI — 처음 쓰는 분 대상(글자 크게, 대비 강하게) */
        .description {
            font-size: 16px;
            line-height: 1.75;
            color: #2c3e50;
        }
        .description .inline-ex {
            background: #fff2b3;
            color: #805a00;
            padding: 2px 10px;
            border-radius: 4px;
            font-size: 1.05em;
            font-weight: 700;
        }
        .description strong {
            color: #2c5f8d;
            font-weight: 700;
        }
        .description .desc-sub {
            color: #6b7a8a;
            font-size: 14px;
            display: inline-block;
            margin-top: 8px;
        }

        .how-to-steps {
            list-style: none;
            margin: 18px 0 6px;
            padding: 18px 16px;
            background: #f4f8fc;
            border: 1px solid #d6e2ee;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            font-size: 16px;
            line-height: 1.55;
            color: #2c3e50;
        }
        .how-to-steps li {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }
        .how-to-steps .step-num {
            flex: 0 0 28px;
            width: 28px;
            height: 28px;
            background: #4a6fa5;
            color: #fff;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
        }
        .how-to-steps code {
            background: #fff2b3;
            color: #805a00;
            padding: 1px 8px;
            border-radius: 4px;
            font-size: 0.98em;
            font-weight: 700;
        }
        .how-to-steps .bang {
            background: #ffd9d9;
            color: #a83b3b;
        }

        .editor-toolbar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        .try-example-btn {
            font-size: 16px;
            font-weight: 700;
            padding: 12px 22px;
            color: #fff;
            background: linear-gradient(135deg, #4a6fa5, #6b8fc5);
            border: 0;
            border-radius: 10px;
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(74, 111, 165, 0.25);
            transition: transform 0.1s ease, box-shadow 0.1s ease;
        }
        .try-example-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(74, 111, 165, 0.35);
        }
        .try-example-btn:active {
            transform: translateY(0);
        }
        .try-example-hint {
            font-size: 14px;
            color: #667788;
        }

        .search-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }
        .search-item-body {
            flex: 1;
            min-width: 0;
        }
        .search-insert-btn {
            flex: 0 0 auto;
            font-size: 14px;
            font-weight: 700;
            padding: 10px 14px;
            color: #4a6fa5;
            background: #fff;
            border: 2px solid #4a6fa5;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.1s ease;
            white-space: nowrap;
        }
        .search-insert-btn:hover {
            background: #4a6fa5;
            color: #fff;
        }
        .search-insert-btn:active {
            transform: translateY(1px);
        }

        @media (max-width: 480px) {
            .search-item {
                flex-direction: column;
            }
            .search-insert-btn {
                align-self: stretch;
                text-align: center;
            }
            .editor-toolbar {
                flex-direction: column;
                align-items: stretch;
            }
            .try-example-btn {
                width: 100%;
            }
            .try-example-hint {
                display: none;
            }
            .how-to-steps {
                font-size: 15px;
            }
            .help-toggle {
                min-height: 40px;
                padding: 9px 12px;
                font-size: 0.84rem;
            }
        }

        /* 에디터 툴바 보조 버튼 (복사하기·전체 지우기) */
        .toolbar-action-btn {
            font-size: 15px;
            font-weight: 700;
            padding: 11px 16px;
            border-radius: 10px;
            cursor: pointer;
            border: 2px solid transparent;
            background: #fff;
            transition: transform 0.08s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
            min-height: 44px;
            white-space: nowrap;
        }
        .toolbar-action-btn:active {
            transform: translateY(1px);
        }
        .toolbar-action-btn:disabled {
            cursor: not-allowed;
            opacity: 0.55;
        }

        .toolbar-action-btn.copy {
            color: #1b4f86;
            border-color: #b7cee4;
            background: #f1f7fc;
        }
        .toolbar-action-btn.copy:hover:not(:disabled) {
            background: #e3eff9;
            border-color: #7da6cf;
        }

        .toolbar-action-btn.clear {
            color: #a53030;
            border-color: #e6b8b8;
            background: #fdf3f3;
        }
        .toolbar-action-btn.clear:hover:not(:disabled) {
            background: #f9e2e2;
            border-color: #c97878;
        }

        /* 검색결과 지우기 버튼 */
        .search-meta-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin: 0 0 7px;
            flex-wrap: wrap;
        }
        .search-meta-row .search-meta {
            margin: 0;
        }
        .search-clear-btn {
            font-size: 13px;
            font-weight: 700;
            padding: 7px 12px;
            border-radius: 8px;
            border: 1px solid #c9bea8;
            background: #fff;
            color: #5d4a2a;
            cursor: pointer;
            min-height: 32px;
            white-space: nowrap;
            transition: background-color 0.12s ease, border-color 0.12s ease;
        }
        .search-clear-btn:hover:not(:disabled) {
            background: #f8f2e8;
            border-color: #a38e62;
        }
        .search-clear-btn:disabled {
            cursor: not-allowed;
            opacity: 0.45;
        }

        /* 커스텀 확인 모달 */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 25, 40, 0.52);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 18px;
            z-index: 1000;
            animation: modal-fade 140ms ease-out both;
        }
        .modal-overlay[hidden] {
            display: none;
        }
        .modal-card {
            background: #fff;
            border-radius: 14px;
            padding: 22px 20px 18px;
            max-width: 420px;
            width: 100%;
            box-shadow: 0 22px 48px rgba(15, 25, 40, 0.28);
            animation: modal-in 160ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
        }
        .modal-title {
            margin: 0 0 8px;
            font-size: 1.08rem;
            font-weight: 700;
            color: #1f2d3d;
        }
        .modal-message {
            margin: 0 0 18px;
            font-size: 0.95rem;
            line-height: 1.55;
            color: #4a5968;
        }
        .modal-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }
        .modal-btn {
            font-size: 15px;
            font-weight: 700;
            padding: 10px 18px;
            border-radius: 9px;
            cursor: pointer;
            border: 2px solid transparent;
            min-height: 42px;
            min-width: 88px;
            transition: transform 0.08s ease, background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
        }
        .modal-btn:active {
            transform: translateY(1px);
        }
        .modal-btn.cancel {
            background: #fff;
            color: #334457;
            border-color: #cdd6df;
        }
        .modal-btn.cancel:hover {
            background: #f3f6fa;
            border-color: #97a6b8;
        }
        .modal-btn.confirm {
            background: #3b6fad;
            color: #fff;
            border-color: #3b6fad;
        }
        .modal-btn.confirm:hover {
            background: #315d94;
            border-color: #315d94;
        }
        .modal-btn.confirm.danger {
            background: #c94646;
            border-color: #c94646;
        }
        .modal-btn.confirm.danger:hover {
            background: #ad3838;
            border-color: #ad3838;
        }

        @keyframes modal-fade {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes modal-in {
            from {
                opacity: 0;
                transform: translateY(6px) scale(0.97);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* 토스트 */
        .toast-stack {
            position: fixed;
            left: 50%;
            bottom: 24px;
            transform: translateX(-50%);
            z-index: 1100;
            pointer-events: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            max-width: calc(100% - 32px);
        }
        .toast {
            pointer-events: auto;
            padding: 12px 18px;
            border-radius: 11px;
            font-size: 0.92rem;
            font-weight: 700;
            line-height: 1.4;
            color: #fff;
            box-shadow: 0 14px 28px rgba(15, 25, 40, 0.22);
            animation: toast-in 200ms ease-out both;
            max-width: 100%;
            word-break: keep-all;
            text-align: center;
        }
        .toast.success { background: #2f8f5a; }
        .toast.info    { background: #365d93; }
        .toast.warn    { background: #b77a1e; }
        .toast.danger  { background: #b23b3b; }
        .toast.leaving {
            animation: toast-out 180ms ease-in both;
        }
        .toast.with-action {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 10px 10px 10px 18px;
            text-align: left;
        }
        .toast-action {
            flex: 0 0 auto;
            appearance: none;
            border: 0;
            background: rgba(255, 255, 255, 0.18);
            color: #fff;
            font-weight: 700;
            font-size: 0.88rem;
            padding: 8px 14px;
            min-height: 36px;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 120ms ease-out;
        }
        .toast-action:hover,
        .toast-action:focus-visible {
            background: rgba(255, 255, 255, 0.32);
            outline: none;
        }
        .toast-action:active {
            background: rgba(255, 255, 255, 0.42);
        }

        @keyframes toast-in {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        @keyframes toast-out {
            from {
                opacity: 1;
                transform: translateY(0);
            }
            to {
                opacity: 0;
                transform: translateY(6px);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .modal-overlay,
            .modal-card,
            .toast,
            .toast.leaving {
                animation: none;
            }
        }

        @media (max-width: 480px) {
            .toolbar-action-btn {
                width: 100%;
            }
            .search-meta-row {
                align-items: flex-start;
            }
            .modal-actions {
                flex-direction: column-reverse;
            }
            .modal-btn {
                width: 100%;
            }
            .abbr-modal-card {
                max-width: 100%;
                max-height: 100vh;
                height: 100%;
                border-radius: 12px;
            }
            .modal-overlay.abbr-overlay {
                padding: 8px;
            }
        }

        /* XS — 초소형 모바일 (≤360px) */
        @media (max-width: 360px) {
            .hero-head {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }
            .hero-actions {
                justify-content: flex-start;
            }
            .title {
                font-size: 1rem;
            }
            .description {
                font-size: 15px;
            }
            .how-to-steps {
                font-size: 14px;
                padding: 14px 12px;
                gap: 10px;
            }
            .search-button {
                padding: 10px 10px;
                font-size: 0.86rem;
            }
            .hero,
            .guide-panel,
            .search-panel,
            .editor-wrap {
                padding-left: 10px;
                padding-right: 10px;
            }
        }

        /* M — 태블릿 세로 (481~768px) */
        @media (min-width: 481px) and (max-width: 768px) {
            .layout {
                max-width: 640px;
                padding: 18px 16px 22px;
            }
            .hero,
            .guide-panel,
            .search-panel,
            .editor-wrap {
                padding: 14px 16px;
            }
            .editor {
                min-height: 60vh;
                font-size: 1.02rem;
            }
            .try-example-hint {
                font-size: 13px;
            }
            .abbr-modal-card {
                max-width: 560px;
            }
        }

        /* L — 태블릿 가로·소형 데스크톱 (769~991px) */
        @media (min-width: 769px) and (max-width: 991px) {
            .layout {
                max-width: 820px;
                padding: 22px 20px 24px;
            }
            .hero,
            .guide-panel,
            .search-panel,
            .editor-wrap {
                padding: 16px 18px;
            }
            .editor {
                min-height: 64vh;
                font-size: 1.03rem;
            }
            .abbr-modal-card {
                max-width: 680px;
            }
        }

        /* 가로모드 소형 화면 — editor 가 너무 낮아지지 않게 */
        @media (max-width: 900px) and (orientation: landscape) {
            .editor {
                min-height: 72vh;
            }
        }

        /* ===== 성경책 모드 (Bible Reader Modal) ===== */

        .bible-reader-toggle {
            background: #fff5e0;
            border-color: #d6b97a;
            color: #6b4a13;
        }
        .bible-reader-toggle:hover {
            background: #ffead0;
            border-color: #b58e3e;
        }

        .bible-reader-overlay {
            background: rgba(10, 12, 18, 0.74);
            padding: 0;
            align-items: stretch;
            justify-content: stretch;
        }
        .bible-reader-card {
            background: #1a1d24;
            color: #e5e7ec;
            border-radius: 0;
            width: 100%;
            max-width: 100%;
            height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 0;
            box-shadow: none;
            animation: modal-in 180ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
            font-family: "IBM Plex Sans KR", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
        }
        @media (min-width: 768px) {
            .bible-reader-overlay {
                padding: 24px;
                align-items: center;
                justify-content: center;
            }
            .bible-reader-card {
                max-width: 760px;
                max-height: calc(100vh - 48px);
                height: auto;
                border-radius: 18px;
            }
        }

        .bible-reader-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 12px 12px 10px;
            border-bottom: 1px solid #2a2e36;
            flex: 0 0 auto;
        }
        .bible-reader-title {
            margin: 0;
            font-size: 1rem;
            font-weight: 700;
            color: #f3f4f7;
            flex: 1;
            text-align: center;
        }
        .bible-back-btn,
        .bible-close-btn {
            background: transparent;
            border: 1px solid #3a3e45;
            color: #e5e7ec;
            border-radius: 10px;
            padding: 8px 10px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            min-height: 38px;
            min-width: 44px;
            transition: background 0.12s ease, border-color 0.12s ease, transform 0.06s ease;
        }
        .bible-back-btn:hover,
        .bible-close-btn:hover {
            background: #2a2e36;
            border-color: #4a4f57;
        }
        .bible-back-btn:active,
        .bible-close-btn:active {
            transform: translateY(1px);
        }
        .bible-back-btn[hidden] {
            display: none;
        }

        .bible-stage {
            flex: 1 1 auto;
            overflow-y: auto;
            padding: 12px 12px 24px;
            -webkit-overflow-scrolling: touch;
        }

        /* 책 단계 — 모바일 stack / 데스크톱 좌우 분할 */
        .bible-book-stage-layout {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .bible-stage-side {
            order: -1; /* 모바일: 사이드바를 위로 (칩 가로 스크롤) */
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .bible-stage-main {
            display: flex;
            flex-direction: column;
            gap: 0;
        }
        @media (min-width: 768px) {
            .bible-book-stage-layout {
                flex-direction: row;
                align-items: flex-start;
                gap: 16px;
            }
            .bible-stage-side {
                order: 1; /* 데스크톱: 우측 사이드 */
                flex: 0 0 280px;
                position: sticky;
                top: 0;
            }
            .bible-stage-main {
                flex: 1 1 auto;
                min-width: 0;
            }
        }

        /* 즐겨찾기/최근 섹션 */
        .bible-shortcuts {
            background: #20242c;
            border: 1px solid #2d323b;
            border-radius: 14px;
            padding: 10px 10px 8px;
        }
        .bible-shortcuts[hidden] {
            display: none;
        }
        .bible-shortcuts-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 8px;
            padding: 0 2px;
        }
        .bible-shortcuts-title {
            margin: 0;
            font-size: 0.86rem;
            font-weight: 700;
            color: #d8dbe1;
            letter-spacing: -0.01em;
        }
        .bible-shortcuts-action {
            background: transparent;
            border: 0;
            color: #8a8f99;
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 6px;
        }
        .bible-shortcuts-action:hover {
            color: #d8dbe1;
            background: #2a2f38;
        }
        .bible-shortcut-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            gap: 6px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x proximity;
        }
        .bible-shortcut-list::-webkit-scrollbar {
            height: 6px;
        }
        .bible-shortcut-list::-webkit-scrollbar-thumb {
            background: #3a3e45;
            border-radius: 3px;
        }
        @media (min-width: 768px) {
            .bible-shortcut-list {
                flex-direction: column;
                overflow-x: visible;
                overflow-y: auto;
                max-height: 220px;
                gap: 4px;
            }
        }
        .bible-shortcut-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #2a2e36;
            border: 1px solid #353a44;
            color: #e5e7ec;
            border-radius: 999px;
            padding: 6px 10px 6px 12px;
            font-size: 0.83rem;
            font-weight: 600;
            white-space: nowrap;
            scroll-snap-align: start;
            flex-shrink: 0;
            cursor: pointer;
            transition: background 0.12s ease, border-color 0.12s ease, transform 0.06s ease;
        }
        .bible-shortcut-chip:hover {
            background: #343843;
            border-color: #4a4f57;
        }
        .bible-shortcut-chip:active {
            transform: translateY(1px);
        }
        @media (min-width: 768px) {
            .bible-shortcut-chip {
                width: 100%;
                justify-content: space-between;
                border-radius: 10px;
                padding: 8px 8px 8px 12px;
            }
        }
        .bible-shortcut-chip-x {
            background: transparent;
            border: 0;
            color: #8a8f99;
            cursor: pointer;
            font-size: 0.85rem;
            line-height: 1;
            padding: 2px 4px;
            margin-left: 2px;
            border-radius: 999px;
        }
        .bible-shortcut-chip-x:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }

        /* 본문 단계 — ⭐ 토글 + 안내 + 절 클릭 피드백 */
        .bible-verse-headline {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin: 4px 0 6px;
            flex-wrap: wrap;
        }
        .bible-verse-headline .bible-verse-heading {
            margin: 0;
        }
        .bible-favorite-toggle {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: #262a31;
            border: 1px solid #353a44;
            color: #c0c4cc;
            border-radius: 999px;
            padding: 6px 12px;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            min-height: 32px;
            transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.06s ease;
        }
        .bible-favorite-toggle:hover {
            background: #2f343d;
        }
        .bible-favorite-toggle:active {
            transform: translateY(1px);
        }
        .bible-favorite-toggle[aria-pressed="true"] {
            background: rgba(245, 197, 66, 0.16);
            color: #f5c542;
            border-color: rgba(245, 197, 66, 0.55);
        }
        .bible-favorite-icon {
            font-size: 1rem;
            line-height: 1;
        }
        .bible-verse-hint {
            margin: 0 0 10px;
            text-align: center;
            color: #8a8f99;
            font-size: 0.78rem;
            font-style: italic;
        }
        .bible-verse-item {
            cursor: pointer;
            border-radius: 8px;
            transition: background 0.12s ease;
        }
        .bible-verse-item:hover {
            background: rgba(255, 255, 255, 0.03);
        }
        .bible-verse-item.is-copied {
            animation: bible-verse-copied-flash 480ms ease-out;
        }
        @keyframes bible-verse-copied-flash {
            0%   { background: rgba(74, 144, 255, 0.0); }
            18%  { background: rgba(74, 144, 255, 0.22); }
            100% { background: rgba(255, 255, 255, 0.0); }
        }
        .bible-stage[hidden] {
            display: none;
        }
        .bible-stage-status {
            text-align: center;
            color: #9aa0aa;
            font-size: 0.9rem;
            margin: 18px 0;
        }
        .bible-stage-subtitle {
            margin: 4px 4px 14px;
            color: #c0c4cc;
            font-size: 0.95rem;
            font-weight: 600;
        }

        /* 책 단계 — 구약/신약 탭 + 책 그리드 */
        .bible-tabs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 14px;
        }
        .bible-tab {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 14px 8px;
            background: #2a2e36;
            color: #c0c4cc;
            border: 1px solid #3a3e45;
            border-radius: 16px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            min-height: 52px;
            transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.06s ease;
        }
        .bible-tab:hover {
            background: #343843;
        }
        .bible-tab[aria-selected="true"] {
            background: #3a3e45;
            color: #fff;
            border-color: #5b6170;
        }
        .bible-tab:active {
            transform: translateY(1px);
        }
        .bible-tab-icon {
            font-size: 1.05rem;
        }
        .bible-tab-count {
            font-size: 0.8rem;
            font-weight: 600;
            color: #9aa0aa;
        }
        .bible-tab[aria-selected="true"] .bible-tab-count {
            color: #c0c4cc;
        }

        .bible-book-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        @media (min-width: 600px) {
            .bible-book-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        .bible-book-btn {
            background: #262a31;
            color: #e5e7ec;
            border: 1px solid #313640;
            border-radius: 16px;
            padding: 14px 8px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            min-height: 56px;
            transition: background 0.12s ease, border-color 0.12s ease, transform 0.06s ease;
        }
        .bible-book-btn:hover {
            background: #2f343d;
            border-color: #4a4f57;
        }
        .bible-book-btn:active {
            transform: translateY(1px);
        }

        /* 장 단계 — 정사각형 번호 그리드 */
        .bible-chapter-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
        }
        @media (min-width: 600px) {
            .bible-chapter-grid {
                grid-template-columns: repeat(8, 1fr);
            }
        }
        .bible-chapter-btn {
            background: #262a31;
            color: #e5e7ec;
            border: 1px solid #313640;
            border-radius: 12px;
            aspect-ratio: 1 / 1;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.12s ease, border-color 0.12s ease, transform 0.06s ease;
        }
        .bible-chapter-btn:hover {
            background: #2f343d;
            border-color: #4a4f57;
        }
        .bible-chapter-btn:active {
            transform: translateY(1px);
        }

        /* 본문 단계 — 절 리스트 */
        .bible-verse-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 4px 2px 12px;
            border-bottom: 1px solid #2a2e36;
            margin-bottom: 12px;
        }
        .bible-nav-btn {
            background: #262a31;
            color: #e5e7ec;
            border: 1px solid #313640;
            border-radius: 10px;
            padding: 8px 12px;
            font-size: 0.88rem;
            font-weight: 600;
            cursor: pointer;
            min-height: 38px;
            min-width: 88px;
            transition: background 0.12s ease, border-color 0.12s ease, transform 0.06s ease;
        }
        .bible-nav-btn:hover:not(:disabled) {
            background: #2f343d;
            border-color: #4a4f57;
        }
        .bible-nav-btn:disabled {
            opacity: 0.35;
            cursor: not-allowed;
        }
        .bible-nav-btn:active:not(:disabled) {
            transform: translateY(1px);
        }
        .bible-verse-progress {
            color: #9aa0aa;
            font-size: 0.85rem;
            font-weight: 600;
        }
        .bible-verse-heading {
            margin: 4px 0 14px;
            text-align: center;
            font-size: 1.25rem;
            font-weight: 700;
            color: #f3f4f7;
        }
        .bible-verse-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .bible-verse-item {
            display: flex;
            gap: 12px;
            padding: 10px 4px;
            border-bottom: 1px solid #2a2e36;
            line-height: 1.65;
            font-size: 1.02rem;
            color: #e5e7ec;
        }
        .bible-verse-item:last-child {
            border-bottom: 0;
        }
        .bible-verse-num {
            flex: 0 0 28px;
            color: #8a8f99;
            font-size: 0.85rem;
            font-weight: 700;
            text-align: right;
            padding-top: 3px;
        }
        .bible-verse-text {
            flex: 1;
        }
        @media (min-width: 768px) {
            .bible-verse-item {
                font-size: 1.06rem;
            }
        }
