    /* ╔══════════════════════════════════════════════════════════════╗
    ║  style.css — BarcodeKit                                      ║
    ║  디자인: 정밀한 산업 도구 미학 (Industrial Precision)         ║
    ║  폰트:  Syne (헤딩) + DM Mono (데이터/코드)                  ║
    ║  테마:  다크/라이트 토글 + OS 자동 감지                       ║
    ╚══════════════════════════════════════════════════════════════╝ */

    /* ═══════════════════════════════════════
    1. CSS 변수 — 다크 테마 (기본)
    ═══════════════════════════════════════ */
    :root {
        /* 배경 계층 */
        --bg-base:    #07101A;   /* 최하위 배경 */
        --bg-surface: #0D1B2A;   /* 카드 배경 */
        --bg-raised:  #132234;   /* 인풋/슬라이더 배경 */
        --bg-hover:   #1A2E44;   /* 호버 */
    
        /* 테두리 */
        --border:     #1C3048;
        --border-2:   #243E58;
    
        /* 텍스트 */
        --txt:        #E8F4FF;
        --txt-2:      #5C8AAE;
        --txt-3:      #3A607E;
    
        /* 강조색: 전기 호박색 */
        --accent:     #F0A500;
        --accent-dim: rgba(240,165,0,0.12);
        --accent-2:   #C98A00;
    
        /* 시맨틱 */
        --success:    #1FD6A0;
        --error:      #F05252;
        --info:       #4AA8FF;
    
        /* 그림자 */
        --shadow-sm:  0 1px 4px rgba(0,0,0,0.4);
        --shadow:     0 4px 16px rgba(0,0,0,0.5);
        --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);
    
        /* 타이포 */
        --font-head: 'Syne', sans-serif;
        --font-mono: 'DM Mono', monospace;
    
        /* 형태 */
        --radius:    10px;
        --radius-sm: 6px;
        --radius-lg: 16px;
    
        /* 트랜지션 */
        --t: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* ═══════════════════════════════════════
        2. 라이트 테마
    ═══════════════════════════════════════ */
    [data-theme="light"] {
        --bg-base:    #F0F4F8;
        --bg-surface: #FFFFFF;
        --bg-raised:  #EDF2F7;
        --bg-hover:   #E2E9F0;
        --border:     #CBD5E1;
        --border-2:   #B0BEC5;
        --txt:        #0F1E2D;
        --txt-2:      #4A6070;
        --txt-3:      #8099AA;
        --accent:     #D4900A;
        --accent-dim: rgba(212,144,10,0.10);
        --accent-2:   #A87000;
        --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
        --shadow:     0 4px 16px rgba(0,0,0,0.10);
        --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);
    }
    
    /* ═══════════════════════════════════════
        3. OS 자동 감지 폴백 (JS 토글 전)
    ═══════════════════════════════════════ */
    @media (prefers-color-scheme: light) {
        :root:not([data-theme="dark"]) {
        --bg-base:    #F0F4F8;
        --bg-surface: #FFFFFF;
        --bg-raised:  #EDF2F7;
        --bg-hover:   #E2E9F0;
        --border:     #CBD5E1;
        --border-2:   #B0BEC5;
        --txt:        #0F1E2D;
        --txt-2:      #4A6070;
        --txt-3:      #8099AA;
        --accent:     #D4900A;
        --accent-dim: rgba(212,144,10,0.10);
        --accent-2:   #A87000;
        --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
        --shadow:     0 4px 16px rgba(0,0,0,0.10);
        --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);
        }
    }
    
    /* ═══════════════════════════════════════
        4. 리셋 & 기본
    ═══════════════════════════════════════ */
    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
    html {
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
    }
    
    body {
        background: var(--bg-base);
        color: var(--txt);
        font-family: var(--font-mono);
        font-size: 13.5px;
        line-height: 1.6;
        min-height: 100vh;
        transition: background var(--t), color var(--t);
    
        /* 미세 도트 패턴 배경 */
        background-image: radial-gradient(var(--border) 1px, transparent 1px);
        background-size: 28px 28px;
    }
    
    button {
        font-family: var(--font-mono);
        cursor: pointer;
        border: none;
        background: none;
    }
    
    input { font-family: var(--font-mono); }
    
    /* 포커스 링 (접근성) */
    :focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
        border-radius: var(--radius-sm);
    }
    
    /* ═══════════════════════════════════════
        5. 헤더
    ═══════════════════════════════════════ */
    .header {
        position: sticky;
        top: 0;
        z-index: 200;
        background: rgba(7,16,26,0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        transition: background var(--t);
    }
    
    [data-theme="light"] .header {
        background: rgba(240,244,248,0.88);
    }
    
    .header__inner {
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 28px;
        height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .header__logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    /* 로고 바코드 아이콘 */
    .header__logo-bars {
        display: flex;
        align-items: flex-end;
        gap: 2px;
        height: 22px;
    }
    
    .header__logo-bars span {
        display: block;
        width: 3px;
        background: var(--accent);
        border-radius: 1px;
        animation: barPulse 2s ease-in-out infinite;
    }
    
    .header__logo-bars span:nth-child(1) { height: 100%; animation-delay: 0s; }
    .header__logo-bars span:nth-child(2) { height: 60%; animation-delay: 0.1s; }
    .header__logo-bars span:nth-child(3) { height: 100%; animation-delay: 0.2s; }
    .header__logo-bars span:nth-child(4) { height: 75%; animation-delay: 0.3s; }
    .header__logo-bars span:nth-child(5) { height: 100%; animation-delay: 0.15s; }
    
    @keyframes barPulse {
        0%, 100% { opacity: 1; }
        50%       { opacity: 0.5; }
    }
    
    .header__logo-text {
        font-family: var(--font-head);
        font-weight: 800;
        font-size: 17px;
        letter-spacing: -0.03em;
        color: var(--txt);
    }
    
    .header__badge {
        background: var(--accent-dim);
        color: var(--accent);
        border: 1px solid var(--accent);
        border-radius: 4px;
        font-size: 10px;
        font-weight: 500;
        padding: 1px 7px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
    
    /* ═══════════════════════════════════════
        6. 테마 토글 버튼
    ═══════════════════════════════════════ */
    .theme-toggle {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--bg-raised);
        border: 1px solid var(--border);
        font-size: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background var(--t), transform 0.2s;
    }
    
    .theme-toggle:hover {
        background: var(--bg-hover);
        transform: rotate(12deg) scale(1.08);
    }
    
    /* ═══════════════════════════════════════
        7. 히어로
    ═══════════════════════════════════════ */
    .hero {
        text-align: center;
        padding: 56px 24px 40px;
        max-width: 640px;
        margin: 0 auto;
    }
    
    .hero__eyebrow {
        display: inline-block;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--accent);
        background: var(--accent-dim);
        border: 1px solid rgba(240,165,0,0.25);
        padding: 4px 14px;
        border-radius: 20px;
        margin-bottom: 18px;
    }
    
    .hero__title {
        font-family: var(--font-head);
        font-weight: 800;
        font-size: clamp(28px, 5.5vw, 46px);
        letter-spacing: -0.04em;
        line-height: 1.1;
        margin-bottom: 14px;
        color: var(--txt);
    }
    
    .hero__desc {
        color: var(--txt-2);
        font-size: 13px;
        line-height: 1.8;
        letter-spacing: 0.02em;
    }
    
    /* ═══════════════════════════════════════
        8. 앱 레이아웃 (2열 그리드)
    ═══════════════════════════════════════ */
    .main {
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 24px 80px;
    }
    
    .app {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 20px;
        align-items: start;
    }
    
    /* ═══════════════════════════════════════
        9. 패널
    ═══════════════════════════════════════ */
    .panel {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    
    /* ═══════════════════════════════════════
        10. 카드
    ═══════════════════════════════════════ */
    .card {
        background: var(--bg-surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 20px 22px;
        box-shadow: var(--shadow-sm);
        transition: background var(--t), border-color var(--t), box-shadow var(--t);
    }
    
    .card:hover {
        box-shadow: var(--shadow);
        border-color: var(--border-2);
    }
    
    /* 카드 제목 */
    .card__title {
        font-family: var(--font-head);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--txt-3);
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    /* 카드 번호 배지 */
    .card__num {
        background: var(--bg-raised);
        border: 1px solid var(--border);
        color: var(--accent);
        font-size: 9px;
        font-weight: 700;
        padding: 1px 6px;
        border-radius: 3px;
        letter-spacing: 0.05em;
    }
    
    /* ═══════════════════════════════════════
        11. 바코드 타입 선택
    ═══════════════════════════════════════ */
    .type-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .type-btn {
        background: var(--bg-raised);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 12px 14px;
        text-align: left;
        transition: all var(--t);
        color: var(--txt);
        position: relative;
        overflow: hidden;
    }
    
    .type-btn::after {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--accent);
        opacity: 0;
        transition: opacity var(--t);
    }
    
    .type-btn:hover {
        border-color: var(--accent);
        background: var(--accent-dim);
    }
    
    .type-btn.active {
        background: var(--accent);
        border-color: var(--accent);
        color: #000;
        box-shadow: 0 0 16px rgba(240,165,0,0.3);
    }
    
    .type-btn__name {
        display: block;
        font-family: var(--font-head);
        font-weight: 700;
        font-size: 13px;
        letter-spacing: -0.02em;
        margin-bottom: 2px;
    }
    
    .type-btn__info {
        display: block;
        font-size: 10.5px;
        opacity: 0.65;
    }
    
    /* ═══════════════════════════════════════
        12. 텍스트 입력
    ═══════════════════════════════════════ */
    .input-wrap { display: flex; flex-direction: column; gap: 7px; }
    
    .input-label {
        font-size: 11px;
        font-weight: 500;
        color: var(--txt-2);
        letter-spacing: 0.04em;
    }
    
    .input-box {
        position: relative;
        display: flex;
        align-items: center;
    }
    
    .input-field {
        width: 100%;
        background: var(--bg-raised);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 10px 40px 10px 14px;
        color: var(--txt);
        font-size: 14px;
        font-family: var(--font-mono);
        transition: border-color var(--t), box-shadow var(--t);
        outline: none;
    }
    
    .input-field:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-dim);
    }
    
    .input-field.error {
        border-color: var(--error);
        box-shadow: 0 0 0 3px rgba(240,82,82,0.12);
    }
    
    .input-clear {
        position: absolute;
        right: 10px;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--bg-hover);
        border: 1px solid var(--border);
        color: var(--txt-2);
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        /* Bug #5 수정: opacity:0 상태에서도 클릭 이벤트가 발생하는 문제 수정.
        pointer-events: none으로 투명 상태에서 클릭을 차단합니다. */
        pointer-events: none;
        transition: opacity var(--t);
    }
    
    .input-field:not(:placeholder-shown) ~ .input-clear {
        opacity: 1;
        pointer-events: auto; /* 값 있을 때만 클릭 가능 */
    }
    
    .input-hint {
        font-size: 11px;
        color: var(--txt-3);
        line-height: 1.5;
    }
    
    .input-error {
        font-size: 11px;
        color: var(--error);
        display: none;
        align-items: center;
        gap: 5px;
    }
    
    .input-error.visible {
        display: flex;
    }
    
    .input-error::before { content: '⚠'; }
    
    /* ═══════════════════════════════════════
        13. 숫자 입력 (크기 & 여백)
    ═══════════════════════════════════════ */
    .num-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }
    
    .num-item:last-child { margin-bottom: 0; }
    
    .num-label {
        font-size: 14px;
        color: var(--txt-2);
        flex-shrink: 0;
    }
    
    .num-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .num-field {
        width: 96px;
        background: var(--bg-raised);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 10px 12px;
        font-size: 18px;
        font-weight: 500;
        font-family: var(--font-mono);
        color: var(--txt-1);
        text-align: right;
        outline: none;
        -moz-appearance: textfield;
    }
    
    .num-field::-webkit-outer-spin-button,
    .num-field::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    
    .num-field:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-dim);
    }
    
    .num-unit {
        font-size: 14px;
        color: var(--txt-3);
        font-family: var(--font-mono);
        min-width: 24px;
    }
    
    /* ═══════════════════════════════════════
        14. 색상 피커
    ═══════════════════════════════════════ */
    .color-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
    }
    
    .color-item:last-of-type { margin-bottom: 0; }
    
    .color-label {
        font-size: 11.5px;
        color: var(--txt-2);
    }
    
    .color-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .color-hex {
        font-size: 11px;
        font-family: var(--font-mono);
        color: var(--txt-3);
        background: var(--bg-raised);
        border: 1px solid var(--border);
        padding: 3px 8px;
        border-radius: 4px;
        letter-spacing: 0.05em;
    }
    
    .color-picker {
        width: 34px;
        height: 30px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        cursor: pointer;
        padding: 2px;
        background: var(--bg-raised);
        transition: transform 0.15s;
    }
    
    .color-picker:hover { transform: scale(1.1); }
    
    /* ═══════════════════════════════════════
        15. 토글 스위치
    ═══════════════════════════════════════ */
    .toggle-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 16px;
        padding-top: 14px;
        border-top: 1px solid var(--border);
    }
    
    .toggle-label { font-size: 11.5px; color: var(--txt-2); }
    
    .toggle {
        position: relative;
        display: inline-block;
        width: 44px;
        height: 24px;
        cursor: pointer;
    }
    
    .toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
    
    .toggle__track {
        position: absolute;
        inset: 0;
        background: var(--bg-raised);
        border: 1px solid var(--border);
        border-radius: 24px;
        transition: background var(--t), border-color var(--t);
    }
    
    .toggle__thumb {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 16px;
        height: 16px;
        background: var(--txt-3);
        border-radius: 50%;
        transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background var(--t);
    }
    
    .toggle input:checked + .toggle__track {
        background: var(--accent);
        border-color: var(--accent);
    }
    
    .toggle input:checked + .toggle__track .toggle__thumb {
        transform: translateX(20px);
        background: #000;
    }
    
    /* ═══════════════════════════════════════
        16. 미리보기 영역
    ═══════════════════════════════════════ */
    .preview-card { position: relative; }
    
    .preview-type-badge {
        margin-left: auto;
        background: var(--accent-dim);
        color: var(--accent);
        border: 1px solid rgba(240,165,0,0.3);
        font-size: 10px;
        padding: 2px 8px;
        border-radius: 4px;
        letter-spacing: 0.06em;
    }
    
    .preview-area {
        position: relative;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-raised);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
    
        /* 체커보드 — 배경 투명도 시각화 */
        background-image:
        linear-gradient(45deg, var(--border) 25%, transparent 25%),
        linear-gradient(-45deg, var(--border) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--border) 75%),
        linear-gradient(-45deg, transparent 75%, var(--border) 75%);
        background-size: 14px 14px;
        background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
        background-color: var(--bg-raised);
    }
    
    #barcodeSvg {
        position: relative;
        z-index: 1;
        max-width: 100%;
        transition: opacity 0.18s;
        display: block;
    }
    
    /* 바코드 생성 중 페이드 효과 */
    #barcodeSvg.updating { opacity: 0.3; }
    
    /* 빈 상태 안내 */
    .preview-placeholder {
        position: absolute;
        inset: 0;
        /* Bug #8 수정: display를 명시하지 않으면 JS가 실행되기 전 잠깐
        레이아웃 계산이 불완전해 깜빡임이 발생할 수 있습니다.
        초기값을 flex로 명시하고, JS에서 'none'/'flex'로 토글합니다. */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
        color: var(--txt-3);
        font-size: 12px;
        letter-spacing: 0.03em;
    }
    
    .preview-placeholder__bars {
        display: flex;
        align-items: flex-end;
        gap: 3px;
        height: 44px;
        opacity: 0.35;
    }
    
    .preview-placeholder__bars span {
        display: block;
        width: 4px;
        background: var(--txt-3);
        border-radius: 1px;
    }
    
    .preview-placeholder__bars span:nth-child(1) { height: 100%; }
    .preview-placeholder__bars span:nth-child(2) { height: 55%; }
    .preview-placeholder__bars span:nth-child(3) { height: 85%; }
    .preview-placeholder__bars span:nth-child(4) { height: 70%; }
    .preview-placeholder__bars span:nth-child(5) { height: 100%; }
    .preview-placeholder__bars span:nth-child(6) { height: 60%; }
    .preview-placeholder__bars span:nth-child(7) { height: 90%; }
    .preview-placeholder__bars span:nth-child(8) { height: 100%; }
    
    /* ═══════════════════════════════════════
        17. 다운로드 그리드
    ═══════════════════════════════════════ */
    .dl-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    /* 기본 다운로드 버튼 */
    .dl-btn {
        background: var(--bg-raised);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 14px 8px 12px;
        color: var(--txt);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        transition: all var(--t);
        position: relative;
        overflow: hidden;
    }
    
    .dl-btn::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--accent);
        transform: scaleX(0);
        transition: transform var(--t);
    }
    
    .dl-btn:hover:not(:disabled) {
        border-color: var(--border-2);
        background: var(--bg-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }
    
    .dl-btn:hover:not(:disabled)::before { transform: scaleX(1); }
    
    .dl-btn:active:not(:disabled) { transform: translateY(0); }
    
    .dl-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
        transform: none;
    }
    
    /* 벡터 버튼 강조 */
    .dl-btn--vector {
        background: rgba(74,168,255,0.06);
        border-color: rgba(74,168,255,0.2);
    }
    
    .dl-btn--vector::before { background: var(--info); }
    
    .dl-btn--vector:hover:not(:disabled) {
        border-color: var(--info);
        background: rgba(74,168,255,0.12);
    }
    
    /* EPS 특별 강조 */
    .dl-btn--eps {
        background: rgba(240,165,0,0.07);
        border-color: rgba(240,165,0,0.25);
    }
    
    .dl-btn--eps::before { background: var(--accent); }
    
    .dl-btn--eps:hover:not(:disabled) {
        border-color: var(--accent);
        background: var(--accent-dim);
    }
    
    /* 문서 버튼 */
    .dl-btn--doc {
        background: rgba(31,214,160,0.05);
        border-color: rgba(31,214,160,0.15);
    }
    
    .dl-btn--doc::before { background: var(--success); }
    
    .dl-btn--doc:hover:not(:disabled) {
        border-color: var(--success);
        background: rgba(31,214,160,0.1);
    }
    
    /* 인쇄 버튼 (풀 너비) */
    .dl-btn--print {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        padding: 12px;
    }
    
    /* 버튼 내부 텍스트 */
    .dl-btn__fmt {
        font-family: var(--font-head);
        font-weight: 700;
        font-size: 14px;
        letter-spacing: -0.01em;
    }
    
    .dl-btn__desc {
        font-size: 10px;
        color: var(--txt-3);
    }
    
    /* EPS 안내 문구 */
    .eps-note {
        margin-top: 12px;
        font-size: 10.5px;
        color: var(--txt-3);
        line-height: 1.6;
        padding: 10px 12px;
        background: var(--bg-raised);
        border: 1px solid var(--border);
        border-left: 3px solid var(--accent);
        border-radius: var(--radius-sm);
    }
    
    /* ═══════════════════════════════════════
        18. 토스트 알림
    ═══════════════════════════════════════ */
    .toast {
        position: fixed;
        bottom: 28px;
        right: 28px;
        z-index: 999;
        background: var(--bg-surface);
        color: var(--txt);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 11px 20px;
        font-size: 13px;
        font-weight: 500;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        transform: translateY(10px) scale(0.96);
        transition: opacity 0.25s, transform 0.25s;
        pointer-events: none;
        max-width: 320px;
    }
    
    .toast.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    
    .toast.success {
        background: var(--success);
        color: #000;
        border-color: var(--success);
    }
    
    .toast.error {
        background: var(--error);
        color: #fff;
        border-color: var(--error);
    }
    
    /* ═══════════════════════════════════════
        19. 푸터
    ═══════════════════════════════════════ */
    .footer {
        text-align: center;
        padding: 28px 24px;
        color: var(--txt-3);
        font-size: 11.5px;
        border-top: 1px solid var(--border);
        letter-spacing: 0.02em;
    }
    
    /* ═══════════════════════════════════════
        20. 인쇄 전용 스타일
    ═══════════════════════════════════════ */
    .print-only { display: none; }
    
    @media print {
        body {
        background: #fff !important;
        color: #000 !important;
        background-image: none !important;
        }
    
        .header,
        .hero,
        .panel--left,
        .panel--right .card:last-child,
        .eps-note,
        .footer,
        .toast {
        display: none !important;
        }
    
        .main { padding: 0 !important; }
        .app  { display: block !important; }
    
        .preview-card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        }
    
        .preview-area {
        background: none !important;
        background-image: none !important;
        border: none !important;
        min-height: auto !important;
        padding: 0 !important;
        display: block !important;
        }
    
        .print-only {
        display: flex !important;
        justify-content: center;
        align-items: center;
        padding: 40px;
        min-height: 100vh;
        }
    
        .card__title, .preview-type-badge { display: none !important; }
    }
    
    /* ═══════════════════════════════════════
        21. 애니메이션 — 카드 진입
    ═══════════════════════════════════════ */
    @keyframes slideUp {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    
    .card {
        animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    
    #cardType   { animation-delay: 0.05s; }
    #cardInput  { animation-delay: 0.10s; }
    #cardSize   { animation-delay: 0.15s; }
    #cardStyle  { animation-delay: 0.20s; }
    .preview-card { animation-delay: 0.08s; }
    
    /* ═══════════════════════════════════════
        22. 반응형 — 태블릿
    ═══════════════════════════════════════ */
    @media (max-width: 960px) {
        .app {
        grid-template-columns: 1fr;
        }
    
        .panel--left {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        }
    
        .dl-grid {
        grid-template-columns: repeat(3, 1fr);
        }
    }
    
    /* ═══════════════════════════════════════
        23. 반응형 — 모바일
    ═══════════════════════════════════════ */
    @media (max-width: 600px) {
        .header__inner { padding: 0 16px; }
        .main { padding: 0 14px 60px; }
        .hero { padding: 36px 16px 28px; }
    
        .panel--left {
        grid-template-columns: 1fr;
        }
    
        .dl-grid {
        grid-template-columns: repeat(2, 1fr);
        }
    
        .dl-btn--print { grid-column: 1 / -1; }
    
        .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        text-align: center;
        max-width: none;
        }
    }
    
    @media (max-width: 380px) {
        .type-grid { grid-template-columns: 1fr 1fr; }
        .header__logo-text { font-size: 15px; }
        .header__badge { display: none; }
    }