body.cv-builder-page {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
}

.builder-page {
    padding-top: calc(var(--nav-h) + 34px);
    padding-bottom: 128px;
}

.builder-wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.builder-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
}

body.cv-builder-page.builder-active .builder-top {
    display: none;
}

.builder-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-weight: 500;
}

.builder-back:hover {
    color: #fff;
    border-color: var(--accent);
    background: var(--surface-hover);
}

.builder-head {
    max-width: 780px;
}

.builder-head h1 {
    font-size: clamp(34px, 5.6vw, 56px);
    margin-bottom: 14px;
}

.builder-head p {
    color: var(--text-dim);
    font-size: 17px;
    max-width: 760px;
}

.builder-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.builder-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 12px;
}

.builder-shell {
    display: grid;
    grid-template-columns: minmax(360px, 1.08fr) minmax(320px, 0.92fr);
    gap: 24px;
    align-items: start;
}

.builder-shell.preview-collapsed {
    grid-template-columns: minmax(0, 1fr) 74px;
}

.start-screen {
    max-width: 760px;
    margin: 0 auto;
}

.start-screen-inner {
    padding: 34px;
}

.start-screen h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.start-actions {
    margin-top: 24px;
}

.start-option-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.start-option {
    text-align: left;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-radius: 18px;
    padding: 18px;
}

.start-option i,
.start-option strong,
.start-option span {
    display: block;
}

.start-option i {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--accent-2);
}

.start-option strong {
    font-size: 15px;
    margin-bottom: 8px;
}

.start-option span {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
}

.start-option-primary {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(45, 212, 191, 0.1));
    border-color: rgba(124, 92, 255, 0.34);
}

.start-option.is-disabled {
    opacity: 0.55;
}

.import-warning {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 92, 138, 0.24);
    background: rgba(255, 92, 138, 0.08);
}

.import-warning strong {
    color: #ffd1dd;
    display: block;
}

.import-warning p {
    margin-top: 8px;
    color: #f2bacb;
}

.mobile-view-switch {
    display: none;
    gap: 8px;
    margin-bottom: 18px;
}

.mobile-view-switch button {
    flex: 1;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
    padding: 11px 14px;
    border-radius: 12px;
    font-weight: 600;
}

.mobile-view-switch button.is-active {
    background: var(--grad);
    color: #04121a;
    border-color: transparent;
}

.builder-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.editor-panel {
    padding: 24px;
    padding-bottom: 112px;
}

.preview-panel {
    position: sticky;
    top: calc(var(--nav-h) + 22px);
    height: calc(100vh - var(--nav-h) - 170px);
    min-height: 640px;
    max-height: calc(100vh - var(--nav-h) - 170px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, min-width 0.25s ease, opacity 0.25s ease;
}

.preview-panel.is-collapsed {
    min-height: auto;
    min-width: 74px;
}

.panel-block + .panel-block {
    margin-top: 18px;
}

.panel-card {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.024);
    border-radius: 18px;
    padding: 18px;
}

.panel-card h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.panel-card p {
    color: var(--text-dim);
    font-size: 14px;
}

.wizard-card {
    position: sticky;
    top: calc(var(--nav-h) + 12px);
    z-index: 6;
    backdrop-filter: blur(18px);
}

.wizard-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wizard-headline h2 {
    font-size: 22px;
    margin: 4px 0 0;
}

.wizard-headline p {
    margin-top: 6px;
    margin-bottom: 0;
    color: var(--text-faint);
    font-size: 12px;
}

.wizard-footer .actions-grid {
    align-items: center;
    flex: 1;
    margin-top: 0;
}

.wizard-body .panel-block:first-child {
    margin-top: 0;
}

.wizard-footer {
    position: sticky;
    bottom: 12px;
    width: 100%;
    z-index: 16;
    background: rgba(11, 13, 26, 0.92);
    backdrop-filter: blur(18px);
    border-radius: 18px;
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.28);
}

.wizard-footer-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.footer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 170px;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
}

.footer-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.footer-toggle span {
    white-space: nowrap;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field-grid.cols-1 {
    grid-template-columns: 1fr;
}

.field-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-group {
    margin-top: 14px;
}

.field-group.nested-check {
    margin-left: 30px;
    padding-left: 14px;
    border-left: 1px solid var(--border);
}

.field-group:first-child {
    margin-top: 0;
}

.field-group label,
.field-head label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
}

.field-help {
    color: var(--text-faint);
    font-size: 12px;
    margin-top: 6px;
}

.field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.field-head .mini-note {
    color: var(--text-faint);
    font-size: 12px;
}

.app-control,
.app-select,
.app-textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.app-control:focus,
.app-select:focus,
.app-textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.14);
}

.app-select option {
    background: #111420;
}

.app-textarea {
    resize: vertical;
    min-height: 104px;
    line-height: 1.58;
}

.localized-grid {
    display: grid;
    gap: 12px;
}

.localized-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.localized-tab {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-family: var(--font-mono);
}

.localized-tab.is-active {
    background: var(--grad);
    color: #04121a;
    border-color: transparent;
    font-weight: 600;
}

.localized-panels {
    display: grid;
    gap: 10px;
}

.locale-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.locale-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.22);
    color: var(--accent-2);
    font-size: 11px;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.snippet-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.snippet-row .app-select {
    flex: 1;
}

.btn-lite,
.btn-accent,
.btn-outline,
.btn-danger,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-lite {
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.btn-lite:hover,
.btn-outline:hover,
.btn-soft:hover {
    color: #fff;
    transform: translateY(-1px);
    border-color: var(--accent);
}

.btn-accent {
    border: 1px solid transparent;
    background: var(--grad);
    color: #04121a;
    box-shadow: 0 14px 30px -16px rgba(124, 92, 255, 0.8);
}

.btn-accent:hover {
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
}

.btn-danger {
    border: 1px solid rgba(255, 92, 138, 0.35);
    background: rgba(255, 92, 138, 0.12);
    color: #ff9eb8;
}

.btn-soft {
    border: 1px dashed var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-dim);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.status-line {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-faint);
}

.lang-list,
.variant-list-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lang-pill,
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 12px;
}

.lang-pill button {
    border: 0;
    background: transparent;
    color: var(--text-faint);
    cursor: pointer;
    padding: 0;
}

.item-list {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.item-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.item-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.item-card-head h3 {
    font-size: 16px;
    margin: 0;
}

.item-empty {
    margin-top: 14px;
    border: 1px dashed var(--border-strong);
    border-radius: 16px;
    padding: 18px;
    color: var(--text-faint);
    font-size: 14px;
}

.check-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.check-item input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent);
}

.check-item strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.check-item span {
    display: block;
    color: var(--text-faint);
    font-size: 12px;
    margin-top: 3px;
}

.photo-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    align-items: start;
}

.photo-preview {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-size: 28px;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
}

.preview-topbar h2 {
    font-size: 17px;
}

.preview-toggle {
    flex-shrink: 0;
    padding: 10px 10px;
    min-width: 42px;
}

.preview-panel.is-collapsed .preview-topbar {
    padding: 12px 10px;
    justify-content: center;
}

.preview-panel.is-collapsed .preview-topbar h2 {
    display: none;
}

.preview-panel.is-collapsed .preview-toggle {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 12px;
    padding: 12px 6px;
}

.preview-toolbar {
    padding: 14px 18px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.preview-language-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.preview-language-tab {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-family: var(--font-mono);
}

.preview-language-tab.is-active {
    background: var(--grad);
    color: #04121a;
    border-color: transparent;
    font-weight: 600;
}

.preview-theme-picker .field-group {
    margin-top: 0;
}

.preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-body {
    padding: 18px;
    background:
        radial-gradient(480px circle at 0% 0%, rgba(124, 92, 255, 0.09), transparent 50%),
        radial-gradient(420px circle at 100% 0%, rgba(45, 212, 191, 0.07), transparent 48%),
    #0b0f1c;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.preview-panel.is-collapsed .preview-body {
    display: none;
}

.preview-note {
    color: var(--text-faint);
    font-size: 13px;
    margin-bottom: 12px;
}

.preview-scroller {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 22px;
}

.preview-page-shell {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-page-frame {
    height: min(100%, 1000px);
    aspect-ratio: 210 / 297;
    width: auto;
    max-width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.preview-page {
    width: 100%;
    height: 100%;
}

.preview-page .cv-sheet,
.preview-page .cv-cover {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
}

.preview-page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.preview-page-tab {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-family: var(--font-mono);
}

.preview-page-tab.is-active {
    background: var(--grad);
    color: #04121a;
    border-color: transparent;
    font-weight: 700;
}

.preview-focus {
    position: fixed;
    inset: 0;
    z-index: 120;
    padding: 24px;
    background: rgba(5, 7, 14, 0.76);
    backdrop-filter: blur(18px);
}

.preview-focus-shell {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: rgba(11, 13, 26, 0.96);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.preview-focus-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.preview-focus-topbar h2 {
    font-size: 20px;
}

.preview-focus-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.preview-toolbar.is-fullscreen {
    padding-top: 18px;
}

.preview-focus-body {
    flex: 1;
    padding: 18px 22px 24px;
    overflow: hidden;
}

.preview-focus-scroller {
    width: 100%;
    height: 100%;
    overflow: auto;
    border-radius: 24px;
    background:
        radial-gradient(480px circle at 0% 0%, rgba(124, 92, 255, 0.09), transparent 50%),
        radial-gradient(420px circle at 100% 0%, rgba(45, 212, 191, 0.07), transparent 48%),
        #0b0f1c;
    padding: 18px;
    scroll-snap-type: y proximity;
}

.cv-cover {
    width: min(100%, 210mm);
    min-height: 297mm;
    margin: 0 auto 18px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    scroll-snap-align: start;
}

.cv-cover-inner {
    width: 100%;
    padding: 72px 46px;
}

.cv-cover-photo-wrap {
    margin-bottom: 24px;
}

.cv-cover-photo {
    width: 112px;
    height: 112px;
    border-radius: 28px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
}

.cv-cover-kicker {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 18px;
}

.cv-cover-name {
    font-size: 46px;
    line-height: 0.98;
    letter-spacing: -0.05em;
    margin: 0 0 12px;
}

.cv-cover-headline {
    font-size: 22px;
    color: #e2e8f0;
    margin-bottom: 18px;
}

.cv-cover-summary {
    font-size: 15px;
    line-height: 1.85;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 0 22px;
}

.cv-cover-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.cv-cover-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cv-cover-skill {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
}

.cv-cover.theme-modern {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.28), transparent 34%),
        linear-gradient(135deg, #101828, #1d2848 58%, #1f4f7a);
}

.cv-cover.theme-modern .cv-cover-kicker {
    color: #93c5fd;
}

.cv-cover.theme-modern .cv-cover-skill {
    background: rgba(147, 197, 253, 0.14);
    border: 1px solid rgba(147, 197, 253, 0.2);
}

.cv-cover.theme-classic {
    background: linear-gradient(180deg, #f7f1e7 0%, #efe4d3 100%);
    color: #33261b;
}

.cv-cover.theme-classic .cv-cover-kicker,
.cv-cover.theme-classic .cv-cover-headline,
.cv-cover.theme-classic .cv-cover-summary,
.cv-cover.theme-classic .cv-cover-contact {
    color: #6b5138;
}

.cv-cover.theme-classic .cv-cover-name {
    font-family: Georgia, "Times New Roman", serif;
    color: #2c2016;
}

.cv-cover.theme-classic .cv-cover-photo {
    border-color: rgba(107, 81, 56, 0.18);
    box-shadow: 0 18px 34px rgba(107, 81, 56, 0.12);
}

.cv-cover.theme-classic .cv-cover-skill {
    background: rgba(255, 255, 255, 0.55);
    color: #6b5138;
    border: 1px solid rgba(107, 81, 56, 0.12);
}

.cv-cover.theme-sharp {
    background:
        linear-gradient(135deg, #020617 0 42%, #172554 42% 72%, #22c55e 72% 100%);
}

.cv-cover.theme-sharp .cv-cover-inner {
    padding: 82px 46px;
}

.cv-cover.theme-sharp .cv-cover-kicker {
    color: #86efac;
}

.cv-cover.theme-sharp .cv-cover-name {
    font-size: 52px;
    text-transform: uppercase;
}

.cv-cover.theme-sharp .cv-cover-skill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cv-cover.theme-minimal {
    background: #fcfcfd;
    color: #111827;
    border: 1px solid #eceff5;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.cv-cover.theme-minimal .cv-cover-inner {
    padding: 64px 54px;
}

.cv-cover.theme-minimal .cv-cover-kicker,
.cv-cover.theme-minimal .cv-cover-headline,
.cv-cover.theme-minimal .cv-cover-summary,
.cv-cover.theme-minimal .cv-cover-contact {
    color: #475467;
}

.cv-cover.theme-minimal .cv-cover-name {
    color: #101828;
}

.cv-cover.theme-minimal .cv-cover-photo {
    border-color: #e5e7eb;
    box-shadow: none;
}

.cv-cover.theme-minimal .cv-cover-skill {
    background: #f8fafc;
    color: #344054;
    border: 1px solid #e5e7eb;
}

.cv-cover.theme-executive {
    background:
        linear-gradient(135deg, #111827 0%, #0f172a 58%, #334155 100%);
    position: relative;
}

.cv-cover.theme-executive::after {
    content: "";
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    pointer-events: none;
}

.cv-cover.theme-executive .cv-cover-inner {
    padding: 82px 56px;
}

.cv-cover.theme-executive .cv-cover-kicker {
    color: #cbd5e1;
}

.cv-cover.theme-executive .cv-cover-name {
    font-size: 50px;
}

.cv-cover.theme-executive .cv-cover-skill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cv-cover.theme-editorial {
    background:
        linear-gradient(180deg, #fffdf9 0%, #f8efe4 100%);
    color: #35281d;
}

.cv-cover.theme-editorial .cv-cover-inner {
    padding: 76px 56px;
}

.cv-cover.theme-editorial .cv-cover-kicker,
.cv-cover.theme-editorial .cv-cover-headline,
.cv-cover.theme-editorial .cv-cover-summary,
.cv-cover.theme-editorial .cv-cover-contact {
    color: #7c5a3d;
}

.cv-cover.theme-editorial .cv-cover-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 54px;
    color: #3f2f20;
}

.cv-cover.theme-editorial .cv-cover-photo {
    border-color: rgba(139, 94, 52, 0.16);
    box-shadow: 0 18px 34px rgba(139, 94, 52, 0.12);
}

.cv-cover.theme-editorial .cv-cover-skill {
    background: rgba(246, 237, 227, 0.9);
    color: #7c5a3d;
    border: 1px solid rgba(139, 94, 52, 0.12);
}

.cv-cover.theme-tech {
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 28%),
        linear-gradient(135deg, #07111f 0%, #0f172a 52%, #132238 100%);
}

.cv-cover.theme-tech .cv-cover-inner {
    padding: 74px 48px;
}

.cv-cover.theme-tech .cv-cover-kicker {
    color: #67e8f9;
}

.cv-cover.theme-tech .cv-cover-name {
    color: #ecfeff;
}

.cv-cover.theme-tech .cv-cover-headline,
.cv-cover.theme-tech .cv-cover-summary,
.cv-cover.theme-tech .cv-cover-contact {
    color: #bae6fd;
}

.cv-cover.theme-tech .cv-cover-photo {
    border-color: rgba(34, 211, 238, 0.28);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.cv-cover.theme-tech .cv-cover-skill {
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.18);
}

.cv-sheet {
    width: min(100%, 210mm);
    min-height: 297mm;
    margin: 0 auto;
    background: #fff;
    color: #1a2130;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    scroll-snap-align: start;
}

.cv-sheet-inner {
    padding: 34px;
}

.cv-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
    padding-bottom: 22px;
    border-bottom: 1px solid #dde3ef;
}

.cv-name {
    font-size: 34px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0;
    color: #111827;
}

.cv-headline {
    margin-top: 8px;
    font-size: 17px;
    color: #4b5565;
}

.cv-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 14px;
    color: #5f6a7d;
    font-size: 13px;
}

.cv-target {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 11px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cv-avatar {
    width: 108px;
    height: 108px;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid #e6ebf3;
}

.cv-summary {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.7;
    color: #314155;
    white-space: pre-line;
}

.cv-section {
    margin-top: 26px;
}

.cv-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #64748b;
}

.cv-section-title::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.35;
}

.cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cv-skill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #334155;
    font-size: 13px;
}

.cv-list {
    display: grid;
    gap: 18px;
}

.cv-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cv-item-title {
    font-size: 18px;
    color: #111827;
    margin: 0;
}

.cv-item-meta {
    color: #5b6679;
    font-size: 13px;
}

.cv-item-sub {
    margin-top: 4px;
    color: #4f46e5;
    font-weight: 700;
    font-size: 14px;
}

.cv-item-desc {
    margin-top: 8px;
    color: #314155;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-line;
}

.cv-link {
    color: #2563eb;
    word-break: break-word;
}

.cv-sheet.theme-modern .cv-header {
    border-bottom-color: #d9e4ff;
}

.cv-sheet.theme-modern .cv-target {
    background: #eef2ff;
    color: #4338ca;
}

.cv-sheet.theme-modern .cv-section-title {
    color: #4f46e5;
}

.cv-sheet.theme-classic .cv-sheet-inner {
    padding: 38px;
}

.cv-sheet.theme-classic .cv-name,
.cv-sheet.theme-classic .cv-item-title {
    font-family: Georgia, "Times New Roman", serif;
}

.cv-sheet.theme-classic .cv-target {
    background: #f5f2ec;
    color: #8a5a22;
}

.cv-sheet.theme-classic .cv-section-title {
    color: #8a5a22;
}

.cv-sheet.theme-classic .cv-skill {
    background: #f7f1e8;
}

.cv-sheet.theme-sharp .cv-sheet-inner {
    padding: 0;
}

.cv-sheet.theme-sharp .cv-header {
    padding: 34px 34px 22px;
    background: linear-gradient(135deg, #0f172a, #172554);
    border-bottom: 0;
}

.cv-sheet.theme-sharp .cv-name,
.cv-sheet.theme-sharp .cv-headline,
.cv-sheet.theme-sharp .cv-contact,
.cv-sheet.theme-sharp .cv-target {
    color: #fff;
}

.cv-sheet.theme-sharp .cv-target {
    background: rgba(255, 255, 255, 0.14);
}

.cv-sheet.theme-sharp .cv-summary,
.cv-sheet.theme-sharp .cv-section {
    padding-left: 34px;
    padding-right: 34px;
}

.cv-sheet.theme-sharp .cv-summary {
    margin-top: 24px;
}

.cv-sheet.theme-minimal {
    background: #fcfcfd;
}

.cv-sheet.theme-minimal .cv-sheet-inner {
    padding: 42px 40px;
}

.cv-sheet.theme-minimal .cv-header {
    border-bottom-color: #eceff5;
}

.cv-sheet.theme-minimal .cv-name {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.cv-sheet.theme-minimal .cv-headline,
.cv-sheet.theme-minimal .cv-contact,
.cv-sheet.theme-minimal .cv-summary,
.cv-sheet.theme-minimal .cv-item-meta,
.cv-sheet.theme-minimal .cv-item-desc {
    color: #475467;
}

.cv-sheet.theme-minimal .cv-target {
    background: #f3f4f6;
    color: #374151;
}

.cv-sheet.theme-minimal .cv-section {
    margin-top: 30px;
}

.cv-sheet.theme-minimal .cv-section-title {
    color: #111827;
    letter-spacing: 0.12em;
}

.cv-sheet.theme-minimal .cv-section-title::before {
    background: #d1d5db;
    opacity: 1;
}

.cv-sheet.theme-minimal .cv-skill {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.cv-sheet.theme-minimal .cv-item-sub {
    color: #111827;
}

.cv-sheet.theme-executive {
    background: #ffffff;
}

.cv-sheet.theme-executive .cv-sheet-inner {
    padding: 0;
}

.cv-sheet.theme-executive .cv-header {
    grid-template-columns: 1.2fr auto;
    padding: 34px 34px 26px;
    background: linear-gradient(135deg, #1f2937, #0f172a);
    border-bottom: 0;
}

.cv-sheet.theme-executive .cv-name,
.cv-sheet.theme-executive .cv-headline,
.cv-sheet.theme-executive .cv-contact {
    color: #f8fafc;
}

.cv-sheet.theme-executive .cv-target {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.cv-sheet.theme-executive .cv-avatar {
    border-color: rgba(255, 255, 255, 0.18);
}

.cv-sheet.theme-executive .cv-summary {
    margin-top: 0;
    padding: 26px 34px 0;
}

.cv-sheet.theme-executive .cv-section {
    margin-top: 24px;
    padding-left: 34px;
    padding-right: 34px;
}

.cv-sheet.theme-executive .cv-section-title {
    color: #0f172a;
}

.cv-sheet.theme-executive .cv-section-title::before {
    background: linear-gradient(90deg, #0f172a, #64748b);
    opacity: 1;
}

.cv-sheet.theme-executive .cv-skill {
    background: #e8eef7;
    color: #0f172a;
}

.cv-sheet.theme-executive .cv-item-sub {
    color: #1d4ed8;
}

.cv-sheet.theme-editorial {
    background: #fffdf9;
}

.cv-sheet.theme-editorial .cv-sheet-inner {
    padding: 44px 42px;
}

.cv-sheet.theme-editorial .cv-header {
    border-bottom: 2px solid #eadfd0;
}

.cv-sheet.theme-editorial .cv-name,
.cv-sheet.theme-editorial .cv-item-title {
    font-family: Georgia, "Times New Roman", serif;
}

.cv-sheet.theme-editorial .cv-name {
    font-size: 38px;
    letter-spacing: -0.045em;
}

.cv-sheet.theme-editorial .cv-headline {
    color: #7c5a3d;
    font-size: 18px;
}

.cv-sheet.theme-editorial .cv-target {
    background: #f6ede3;
    color: #8b5e34;
}

.cv-sheet.theme-editorial .cv-summary,
.cv-sheet.theme-editorial .cv-item-desc,
.cv-sheet.theme-editorial .cv-item-meta,
.cv-sheet.theme-editorial .cv-contact {
    color: #4b5563;
}

.cv-sheet.theme-editorial .cv-section-title {
    color: #8b5e34;
    letter-spacing: 0.18em;
}

.cv-sheet.theme-editorial .cv-section-title::before {
    background: #c9a27c;
    opacity: 1;
}

.cv-sheet.theme-editorial .cv-skill {
    background: #faf3ea;
    color: #5b4634;
}

.cv-sheet.theme-editorial .cv-item-sub {
    color: #8b5e34;
}

.cv-sheet.theme-tech {
    background: #f8fbff;
}

.cv-sheet.theme-tech .cv-sheet-inner {
    padding: 0;
}

.cv-sheet.theme-tech .cv-header {
    padding: 30px 30px 24px;
    border-bottom: 0;
    background:
        linear-gradient(135deg, #0b1220, #132238),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 40%);
}

.cv-sheet.theme-tech .cv-name,
.cv-sheet.theme-tech .cv-headline,
.cv-sheet.theme-tech .cv-contact {
    color: #ecfeff;
}

.cv-sheet.theme-tech .cv-target {
    background: rgba(34, 211, 238, 0.16);
    color: #a5f3fc;
}

.cv-sheet.theme-tech .cv-avatar {
    border-color: rgba(34, 211, 238, 0.22);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.cv-sheet.theme-tech .cv-summary {
    margin-top: 0;
    padding: 24px 30px 0;
}

.cv-sheet.theme-tech .cv-section {
    margin-top: 22px;
    padding-left: 30px;
    padding-right: 30px;
}

.cv-sheet.theme-tech .cv-section-title {
    color: #0369a1;
}

.cv-sheet.theme-tech .cv-section-title::before {
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    opacity: 1;
}

.cv-sheet.theme-tech .cv-skill {
    background: #e0f2fe;
    color: #0f172a;
    border: 1px solid #bae6fd;
}

.cv-sheet.theme-tech .cv-item-sub {
    color: #2563eb;
}

.cv-empty {
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 48px 30px;
    color: #5b6476;
}

.cv-empty i {
    font-size: 48px;
    color: #8b5cf6;
    margin-bottom: 16px;
}

.builder-footer-note {
    margin-top: 18px;
    margin-bottom: 24px;
    color: var(--text-faint);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1120px) {
    .builder-shell {
        grid-template-columns: 1fr;
    }

    .builder-shell.preview-collapsed {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        position: static;
        height: auto;
        max-height: none;
        min-height: 0;
    }

    .preview-focus {
        padding: 12px;
    }

    .preview-focus-body {
        padding: 12px;
    }
}

@media (max-width: 760px) {
    .builder-wrap {
        padding: 0 18px;
    }

    .builder-top {
        flex-direction: column;
        align-items: stretch;
    }

    .start-option-grid {
        grid-template-columns: 1fr;
    }

    .editor-panel,
    .preview-panel {
        border-radius: 20px;
    }

    .mobile-view-switch {
        display: flex;
    }

    .wizard-card {
        position: static;
    }

    .wizard-footer {
        bottom: 0;
    }

    .builder-shell[data-mobile-view="preview"] .editor-panel {
        display: none;
    }

    .builder-shell[data-mobile-view="editor"] .preview-panel {
        display: none;
    }

    .field-grid,
    .field-grid.cols-3,
    .photo-row,
    .actions-grid {
        grid-template-columns: 1fr;
    }

    .wizard-footer-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-toggle {
        min-width: 0;
        justify-content: center;
    }

    .cv-sheet {
        border-radius: 16px;
        min-height: auto;
    }

    .cv-cover {
        border-radius: 16px;
        min-height: auto;
    }

    .cv-sheet-inner,
    .cv-sheet.theme-classic .cv-sheet-inner,
    .cv-sheet.theme-sharp .cv-header,
    .cv-sheet.theme-sharp .cv-summary,
    .cv-sheet.theme-sharp .cv-section,
    .cv-sheet.theme-executive .cv-summary,
    .cv-sheet.theme-executive .cv-section,
    .cv-sheet.theme-tech .cv-summary,
    .cv-sheet.theme-tech .cv-section {
        padding-left: 22px;
        padding-right: 22px;
    }

    .cv-sheet-inner,
    .cv-sheet.theme-classic .cv-sheet-inner {
        padding-top: 22px;
        padding-bottom: 24px;
    }

    .cv-header {
        grid-template-columns: 1fr;
    }

    .cv-avatar {
        width: 88px;
        height: 88px;
    }

    .cv-name {
        font-size: 28px;
    }

    .cv-cover-inner {
        padding: 40px 22px;
    }

    .cv-cover-photo {
        width: 96px;
        height: 96px;
        border-radius: 24px;
    }

    .cv-cover-name {
        font-size: 34px;
    }

    .cv-cover-headline {
        font-size: 18px;
    }

}

@media print {
    body.cv-builder-page {
        background: #fff;
    }

    .nav,
    .builder-top,
    .mobile-view-switch,
    .editor-panel,
    .preview-topbar,
    .preview-note,
    .builder-footer-note,
    .bg-fx {
        display: none !important;
    }

    .builder-page,
    .builder-wrap,
    .builder-shell,
    .preview-panel,
    .preview-body,
    .preview-scroller {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        overflow: visible !important;
        box-shadow: none !important;
        border: 0 !important;
        background: #fff !important;
    }

    .cv-sheet {
        width: 100% !important;
        min-height: auto !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}
