/* App chrome only. CV typography and export styles remain in index.css. */
@media screen {
    :root {
        --bg: #ffffff;
        --bg-panel: #ffffff;
        --bg-toolbar: #fafafa;
        --bg-hover: #f0f0f0;
        --bg-active: #e8e8e8;
        --border: #e7e7e7;
        --border-light: #dedede;
        --text: #202020;
        --text-main: #202020;
        --text-dim: #656565;
        --text-muted: #747474;
        --accent: #242424;
        --accent-light: #414141;
        --accent-bg: #f1f1f1;
        --accent-bg-hover: #e9e9e9;
        --green: #26845b;
        --green-bg: #edf7f1;
        --red: #b93b3b;
        --red-bg: #fbefef;
        --blue: #4d637c;
    }

    html, body { background: #fff; }
    button, select, a { -webkit-tap-highlight-color: transparent; }
    :is(button, select, a, textarea):focus-visible {
        outline: 2px solid #555;
        outline-offset: 3px;
    }
    .app-container { max-width: 1660px; margin: 0 auto; padding: 0 28px; height: 100dvh; }
    .top-bar {
        height: 76px;
        padding: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .brand { gap: 10px; }
    .brand-icon {
        width: 30px; height: 34px; background: none; border: none;
        border-radius: 0; color: #292929; box-shadow: none;
    }
    .brand:hover .brand-icon { transform: none; box-shadow: none; }
    .brand-name {
        font-size: 22px; font-weight: 600; letter-spacing: -.045em;
        background: none; color: var(--text); -webkit-text-fill-color: currentColor;
    }
    .brand-caption { border-left: 1px solid var(--border); padding-left: 16px; font-size: 12px; color: var(--text-muted); }
    .top-bar-right { gap: 10px; }
    .auth-btn, .help-btn {
        height: 40px; padding: 0 16px; border-radius: 22px;
        background: #fff; border: 1px solid var(--border-light); color: var(--text);
        box-shadow: none; font-weight: 500; transition: background .15s, border-color .15s;
    }
    .auth-btn { background: #242424; color: #fff; border-color: #242424; }
    .auth-btn:hover { background: #414141; box-shadow: none; transform: none; }
    .help-btn:hover { background: #f5f5f5; box-shadow: none; transform: none; border-color: #c9c9c9; }
    .auth-btn:hover svg { transform: none; }
    .workspace-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; flex-shrink: 0; }
    .workspace-intro h1 { font-size: 25px; font-weight: 600; letter-spacing: -.035em; line-height: 1.35; }
    .workspace-intro p { margin-top: 7px; color: var(--text-dim); font-size: 13px; line-height: 1.65; }
    .workflow-note { display: flex; gap: 18px; list-style: none; }
    .workflow-note li { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 12px; white-space: nowrap; }
    .workflow-note span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border-light); border-radius: 50%; font-size: 11px; color: #444; }
    .main-layout { min-height: 0; }
    .editor-section, .preview-section { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
    .editor-section { width: 35%; min-width: 320px; background: #fff; }
    .editor-guide { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 20px 18px; flex-shrink: 0; }
    .editor-guide h2 { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
    .editor-guide p { margin-top: 5px; color: var(--text-dim); font-size: 12px; line-height: 1.5; }
    .editor-guide .action-btn { height: 38px; padding: 0 13px; font-size: 12px; border-radius: 21px; color: #333; }
    .editor-toolbar, .preview-toolbar { min-height: 48px; height: auto; padding: 8px 14px; background: #fafafa; }
    .editor-toolbar { border-top: 1px solid var(--border); }
    .toolbar-label { color: #545454; font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: none; }
    .toolbar-status { color: #747474; font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .editor-toolbar .toolbar-left { min-width: 0; }
    .toolbar-dot { width: 5px; height: 5px; flex-shrink: 0; }
    .tool-btn { width: 32px; height: 32px; border-radius: 8px; color: #6c6c6c; }
    .tool-btn:hover { background: #ececec; color: #222; }
    .line-numbers { background: #fff; color: #7b7b7b; opacity: 1; border-right: none; padding-top: 16px; font-size: 12px; line-height: 1.7; white-space: pre; }
    #json-editor { background: #fff; color: #383838; padding: 16px 16px 16px 10px; font-size: 12px; line-height: 1.7; min-width: 0; }
    #json-editor::placeholder { color: #777; font-family: inherit; font-size: 12px; line-height: 1.8; }
    #json-editor:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #c6c6c6; }
    .action-bar { flex-wrap: wrap; padding: 14px; background: #fff; gap: 8px; }
    .action-bar .select-wrapper { flex: 1 1 138px; min-width: 0; }
    .action-bar select { width: 100%; min-width: 0; text-overflow: ellipsis; }
    .action-btn { height: 44px; padding: 0 16px; border-radius: 24px; font-size: 12px; font-weight: 500; }
    .action-btn-outline { color: #555; background: #fff; border: 1px solid #dedede; }
    .action-btn-outline:hover { background: #f5f5f5; border-color: #c8c8c8; color: #222; }
    .action-btn-primary { flex: 1 1 142px; min-width: 135px; background: #242424; color: #fff; box-shadow: none; }
    .action-btn-primary::after { display: none; }
    .action-btn-primary:hover { background: #414141; box-shadow: none; transform: none; }
    #btn-admin-grad-toggle { color: #555; border-color: #ddd; }
    .editor-footnote { padding: 0 17px 13px; flex-shrink: 0; }
    .shortcut-hint { width: fit-content; padding: 0; border: none; background: none; color: #797979; font-size: 10px; }
    .shortcut-hint kbd { color: #777; background: #fafafa; box-shadow: none; border-color: #e1e1e1; font-weight: 400; }
    .resize-handle { width: 18px; background: #fff; }
    .resize-handle:hover, .resize-handle.active { background: #fff; }
    .resize-grip span { background: #9c9c9c; width: 2px; height: 2px; opacity: 1; }
    .preview-section { min-width: 0; background: #f4f4f4; }
    .preview-toolbar { background: #fff; min-height: 64px; padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
    .preview-toolbar > .toolbar-left { gap: 12px !important; min-width: 0; }
    .preview-toolbar .toolbar-label { color: #333; font-size: 13px; font-weight: 600; letter-spacing: -.015em; }
    .theme-toggle { background: #f4f4f4; padding: 3px; border: none; border-radius: 20px; }
    .theme-btn { color: #777; border: 1px solid transparent; height: 30px; border-radius: 17px; padding: 0 12px; font-weight: 500; font-size: 11px; }
    .theme-btn.active { background: #fff; color: #262626; border-color: #e6e6e6; box-shadow: 0 1px 2px #00000009; }
    .theme-btn.premium.active { background: #242424; border-color: #242424; color: #fff; box-shadow: none; }
    .theme-btn.premium.active svg { color: currentColor; fill: none; filter: none; }
    .theme-btn.premium:hover svg { transform: none; }
    .toolbar-right { flex-shrink: 0; }
    .zoom-value { color: #777; font-size: 11px; font-weight: 500; }
    .fit-preview-btn { width: auto; padding: 0 7px; font-family: inherit; font-size: 11px; }
    .download-btn { height: 36px; padding: 0 13px; color: #333; background: #fff; border-color: #dedede; font-size: 11px; font-weight: 500; border-radius: 21px; }
    .download-btn:disabled { opacity: .55; color: #747474; cursor: not-allowed; }
    .download-btn-pdf:not(:disabled) { color: #fff; background: #242424; border-color: #242424; }
    .download-btn-pdf:not(:disabled):hover { background: #414141; border-color: #414141; }
    .download-btn-docx:not(:disabled):hover { background: #f3f3f3; border-color: #c8c8c8; }
    .preview-area { padding: 24px 16px; justify-content: flex-start; background: #f4f4f4; --shadow-lg: 0 2px 12px #00000015; }
    .cv-page-container { flex-shrink: 0; margin-inline: auto; }
    .empty-state { max-width: 400px; padding: 30px 16px; }
    .empty-illustration { display: grid; place-items: center; width: 116px; height: 140px; color: #6c6c6c; background: #fff; border: 1px solid #e2e2e2; border-radius: 10px; opacity: 1; margin-bottom: 25px; box-shadow: 0 4px 10px #00000003; }
    .empty-title { color: #333; font-size: 21px; font-weight: 500; letter-spacing: -.03em; }
    .empty-text { max-width: 290px; color: #757575; font-size: 13px; line-height: 1.75; margin-bottom: 20px; }
    .empty-example-btn { border: 1px solid #d9d9d9; background: #fff; color: #333; border-radius: 24px; height: 42px; padding: 0 18px; font-family: inherit; font-size: 12px; cursor: pointer; }
    .empty-example-btn:hover { background: #fafafa; border-color: #c8c8c8; }
    .empty-steps { margin-top: 26px; gap: 12px; }
    .empty-step { background: none; border: none; padding: 0; font-size: 11px; color: #757575; justify-content: center; }
    .step-num { width: 19px; height: 19px; color: #666; font-size: 10px; font-weight: 400; border: 1px solid #d8d8d8; background: none; }
    .workspace-footer { display: flex; justify-content: space-between; gap: 12px; padding: 12px 1px 14px; color: #747474; font-size: 10px; flex-shrink: 0; }
    .workspace-footer a { color: #777; text-decoration: none; }
    .workspace-footer a:hover { text-decoration: underline; }
    .modal-overlay { background: #00000048; backdrop-filter: blur(2px); padding: 20px; }
    .modal-content { background: #fff; border-color: #e4e4e4; border-radius: 20px; box-shadow: 0 20px 70px #00000022; }
    .modal-header { padding: 19px 23px; border-bottom-color: #ebebeb; }
    .modal-header h3 { color: #292929; font-size: 17px; font-weight: 500; letter-spacing: -.025em; }
    .modal-body { padding: 20px 24px 24px; gap: 18px; }
    .modal-desc { color: #6b6b6b; font-size: 13px; line-height: 1.75; }
    #llm-modal .modal-content { height: min(700px, 88dvh); }
    .llm-copy-btn { height: 40px; border-radius: 22px; font-weight: 500; background: #242424; box-shadow: none; font-size: 12px; }
    .llm-copy-btn:hover, .llm-copy-btn:active { background: #414141; transform: none; box-shadow: none; }
    .modal-code-wrapper { border-color: #e3e3e3; background: #fafafa; border-radius: 12px; }
    #llm-format-text { color: #383838; font-size: 12px; padding: 18px; line-height: 1.8; }
    .auth-content { max-width: 420px; }
    .auth-body { padding: 30px 28px 34px; }
    .auth-icon-wrapper { width: 54px; height: 54px; background: #f2f2f2; border-radius: 15px; margin-bottom: 22px; }
    .auth-icon-wrapper svg { width: 25px; height: 25px; }
    .auth-body h2 { font-size: 23px; font-weight: 500; letter-spacing: -.035em; }
    .auth-body p { font-size: 13px; color: #707070; }
    .auth-google-btn { border-radius: 24px; height: 46px; box-shadow: none; font-size: 13px; cursor: pointer; }
    .auth-google-btn:hover { background: #f5f5f5; border-color: #c8c8c8; box-shadow: none; }
    .paywall-content { padding: 0; max-width: 430px; text-align: left; }
    .paywall-body { padding: 26px; }
    .plan-label { display: inline-block; margin-bottom: 19px; font-size: 10px; letter-spacing: .08em; border: 1px solid #dedede; border-radius: 20px; padding: 6px 10px; color: #555; }
    .paywall-content h2 { color: #242424; font-size: 38px; font-weight: 500; letter-spacing: -.05em; }
    .paywall-content h2 span { font-size: 14px; letter-spacing: 0; color: #777; font-weight: 400; margin-left: 7px; }
    .paywall-content p { font-size: 13px; color: #707070; line-height: 1.75; margin-top: 12px; }
    .paywall-features { margin: 0 0 20px; }
    .paywall-features li { font-size: 13px; padding: 12px 0; border-color: #ececec; display: flex; gap: 12px; align-items: center; }
    .paywall-features svg { width: 15px; height: 15px; flex-shrink: 0; }
    .paywall-btn { background: #242424; color: #fff; border-radius: 25px; box-shadow: none; font-size: 13px; font-weight: 500; padding: 15px; }
    .paywall-btn:hover, .paywall-btn:active { background: #414141; transform: none; box-shadow: none; }
    .paywall-content .paywall-disclaimer { text-align: center; color: #777; font-size: 10px; line-height: 1.6; }
    .user-avatar { border-color: #dedede; box-shadow: none; }
    .user-avatar-btn:hover .user-avatar, .user-dropdown-container.open .user-avatar { border-color: #777; box-shadow: none; }
    .user-dropdown-menu { background: #fff; border-radius: 15px; border-color: #e2e2e2; box-shadow: 0 8px 30px #00000014; }
    .dropdown-header { background: #fafafa; }
    .dropdown-status, .dropdown-status.pro { background: #ededed; color: #555; }
    .dropdown-status.pro .status-dot { background: #26845b; }
    .toast { background: #fff; color: #333; border-color: #ddd; box-shadow: 0 5px 22px #00000015; }
    .toast-container .toast:not(:last-child) { display: none; }
    @media (max-width: 1150px) {
        .preview-toolbar > .toolbar-left, .preview-toolbar > .toolbar-right { width: 100%; justify-content: space-between; }
        .preview-toolbar > .toolbar-right { gap: 6px; }
        .workflow-note { gap: 10px; }
        .workflow-note li { font-size: 11px; }
    }
    @media (max-width: 900px) {
        html, body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
        .app-container { height: auto; min-height: 100dvh; padding: 0 18px; }
        .top-bar { min-height: 68px; height: auto; padding: 12px 0; gap: 8px; }
        .brand-caption, .workflow-note { display: none; }
        .workspace-intro { padding: 22px 0; }
        .workspace-intro h1 { font-size: 24px; }
        .main-layout { flex-direction: column; flex: none; width: 100%; overflow: visible; gap: 18px; }
        .editor-section { width: 100% !important; min-width: 0; height: 480px; min-height: 480px; border: 1px solid var(--border); }
        .preview-section { width: 100%; min-width: 0; min-height: 640px; height: auto; overflow: visible; }
        .resize-handle { display: none; }
        .editor-toolbar { padding: 7px 12px; }
        .preview-toolbar { position: sticky; top: 0; z-index: 8; border-radius: 15px 15px 0 0; padding: 12px; align-items: center; }
        .preview-toolbar > .toolbar-left, .preview-toolbar > .toolbar-right { width: 100%; min-width: 0; justify-content: space-between; }
        .preview-toolbar > .toolbar-left .toolbar-label { display: block; }
        .theme-toggle { flex: 0 1 auto; }
        .theme-btn { padding-inline: 10px; flex: 0 1 auto; font-size: 11px; }
        .download-btn { flex: 0 1 auto; min-width: 64px; height: 36px; }
        .zoom-controls { flex: 1 1 auto; }
        .preview-area { min-height: 550px; padding: 18px 10px 24px; border-radius: 0 0 15px 15px; }
        .empty-state { min-height: 480px; }
        .action-bar { padding: 12px; }
        .action-bar .select-wrapper { flex: 1 1 138px; }
        .action-bar .action-btn { flex: 1 1 135px; }
        .workspace-footer { flex-direction: column; text-align: center; gap: 6px; font-size: 10px; line-height: 1.6; padding: 16px 0 22px; }
        .modal-overlay { align-items: center; padding: 14px; }
        .modal-content { width: 100%; max-height: calc(100dvh - 28px); }
    }
    @media (max-width: 420px) {
        .app-container { padding-inline: 12px; }
        .top-bar-left, .top-bar-right { gap: 8px; }
        .brand-name { display: block; font-size: 20px; }
        .brand { gap: 6px; }
        .brand-icon { width: 24px; }
        .help-btn { font-size: 0; width: 38px; height: 38px; padding: 0; }
        .help-btn svg { width: 17px; height: 17px; }
        .auth-btn { padding-inline: 12px; font-size: 12px; height: 38px; }
        .auth-btn svg { width: 14px; height: 14px; }
        .workspace-intro h1 { font-size: 22px; }
        .workspace-intro p { font-size: 12px; max-width: 320px; }
        .editor-guide { padding: 17px 14px; gap: 12px; }
        .editor-guide .action-btn { padding-inline: 11px; }
        .editor-guide p { font-size: 11px; }
        .editor-toolbar .toolbar-label { display: none; }
        .theme-btn { padding-inline: 8px; font-size: 10px; }
        .theme-btn.premium { gap: 4px; }
        .preview-toolbar .toolbar-label { font-size: 11px; }
        .preview-toolbar > .toolbar-left { gap: 6px !important; }
        .preview-toolbar .toolbar-divider { display: none; }
        .zoom-controls { gap: 0; }
        .zoom-controls .tool-btn { width: 28px; }
        .zoom-controls .fit-preview-btn { width: auto; padding-inline: 4px; }
        .modal-header { padding: 16px 18px; }
        .modal-body { padding: 16px; }
        .llm-modal-toolbar { gap: 14px; }
        .llm-copy-btn { width: 100%; justify-content: center; }
    }
    @media (prefers-reduced-motion: reduce) {
        :is(.modal-overlay, .modal-content, .user-dropdown-menu) { animation: none; }
        :is(button, a, .brand-icon) { transition: none; }
    }
}
@media print {
    .workspace-intro, .workspace-footer, .editor-guide, .editor-footnote { display: none !important; }
}
