.cvt_page {
    display: grid;
    gap: 1.2rem;
    padding-bottom: 2rem;
}

.cvt_hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.cvt_eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #4299e1;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.cvt_title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.08;
    color: var(--main-color);
}

.cvt_text {
    max-width: 44rem;
    margin: 0.4rem 0 0;
    color: var(--text-paragraph);
    font-size: 0.85rem;
    line-height: 1.7;
}

.cvt_hero_status {
    display: grid;
    gap: 0.75rem;
}

.cvt_status_card {
    display: grid;
    gap: 0.28rem;
    align-content: start;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.cvt_status_label {
    color: #64748b;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.cvt_status_value {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.35;
}

.cvt_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.cvt_card {
    display: grid;
    gap: 0.9rem;
    padding: 1.05rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cvt_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.09);
}

.cvt_card.is_selected {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 22px 48px rgba(59, 130, 246, 0.14);
}

.cvt_card_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.cvt_card_title {
    margin: 0;
    color: #0f172a;
    font-size: 1.22rem;
    line-height: 1.2;
}

.cvt_card_sub {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.5;
}

.cvt_selected_badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.cvt_preview {
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef5ff 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.cvt_template_cover {
    width: 100%;
}

.cvt_template_cover_sheet {
    aspect-ratio: 210 / 297;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.cvt_template_cover_art {
    position: absolute;
    inset: 0;
}

.cvt_template_cover.template-1 .cvt_template_cover_art {
    background:
        linear-gradient(90deg, #343944 0 32%, #ffffff 32% 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.cvt_template_cover.template-1 .cvt_template_cover_art::before,
.cvt_template_cover.template-1 .cvt_template_cover_art::after,
.cvt_template_cover.template-2 .cvt_template_cover_art::before,
.cvt_template_cover.template-2 .cvt_template_cover_art::after,
.cvt_template_cover.template-3 .cvt_template_cover_art::before,
.cvt_template_cover.template-3 .cvt_template_cover_art::after {
    content: "";
    position: absolute;
}

.cvt_template_cover.template-1 .cvt_template_cover_art::before {
    left: 39%;
    top: 11%;
    width: 48%;
    height: 2px;
    background: rgba(15, 23, 42, 0.14);
    box-shadow:
        0 52px 0 rgba(15, 23, 42, 0.1),
        0 104px 0 rgba(15, 23, 42, 0.1),
        0 156px 0 rgba(15, 23, 42, 0.1),
        0 208px 0 rgba(15, 23, 42, 0.1);
}

.cvt_template_cover.template-1 .cvt_template_cover_art::after {
    left: 6%;
    top: 14%;
    width: 20%;
    height: 58%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0 10%, transparent 10% 22%, rgba(255, 255, 255, 0.8) 22% 24%, transparent 24% 34%, rgba(255, 255, 255, 0.8) 34% 36%, transparent 36% 46%, rgba(255, 255, 255, 0.8) 46% 48%, transparent 48% 58%, rgba(255, 255, 255, 0.8) 58% 60%, transparent 60% 100%);
    opacity: 0.95;
}

.cvt_template_cover.template-2 .cvt_template_cover_art {
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfbf9 100%);
}

.cvt_template_cover.template-2 .cvt_template_cover_art::before {
    left: 8%;
    right: 8%;
    top: 18%;
    height: 1px;
    background: rgba(15, 23, 42, 0.12);
    box-shadow:
        0 62px 0 rgba(15, 23, 42, 0.12),
        0 124px 0 rgba(15, 23, 42, 0.12),
        0 186px 0 rgba(15, 23, 42, 0.12),
        0 248px 0 rgba(15, 23, 42, 0.12);
}

.cvt_template_cover.template-2 .cvt_template_cover_art::after {
    left: 11%;
    top: 9%;
    width: 78%;
    height: 72%;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0 2px, transparent 2px 100%),
        linear-gradient(90deg, transparent 0 30%, rgba(15, 23, 42, 0.08) 30% 31%, transparent 31% 100%);
    opacity: 0.55;
}

.cvt_template_cover.template-3 .cvt_template_cover_art {
    background:
        linear-gradient(90deg, #232a33 0 34%, #ffffff 34% 100%);
}

.cvt_template_cover.template-3 .cvt_template_cover_art::before {
    left: 0;
    top: 0;
    width: 34%;
    height: 30%;
    background: linear-gradient(135deg, #f0b318 0%, #f0b318 62%, transparent 62%);
}

.cvt_template_cover.template-3 .cvt_template_cover_art::after {
    right: 7%;
    top: 16%;
    width: 50%;
    height: 52%;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.14) 0 2px, transparent 2px 100%);
    box-shadow:
        0 58px 0 rgba(15, 23, 42, 0.12),
        0 116px 0 rgba(15, 23, 42, 0.12),
        0 174px 0 rgba(15, 23, 42, 0.12);
}

.cvt_template_cover_meta {
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.95rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.78rem 0.82rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.cvt_template_cover_meta span {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cvt_template_cover_meta strong {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.15;
    font-weight: 700;
}

.cvt_template_cover_meta small {
    color: var(--text-paragraph);
    font-size: 0.76rem;
    line-height: 1.45;
}

.cvt_card_actions {
    display: grid;
    gap: 0.5rem;
}

.cvt_select_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.cvt_select_btn:hover {
    color: #fff;
    opacity: 0.96;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.cvt_select_btn.is_selected {
    background: #2563eb;
}

.cvt_action_hint {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .cvt_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .cvt_hero {
        grid-template-columns: 1fr;
        display: grid;
    }

    .cvt_grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cvt_page {
        gap: 0.9rem;
    }

    .cvt_hero {
        padding: 1rem;
        border-radius: 18px;
    }

    .cvt_title {
        font-size: 1.55rem;
    }

    .cvt_card {
        padding: 0.85rem;
        border-radius: 18px;
    }
}

.cvt_export_bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cvt_export_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cvt_export_btn:hover {
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.cvt_export_btn.is_primary {
    background: #0f172a;
    color: #fff;
}

.cvt_export_btn.is_primary:hover {
    color: #fff;
}

.cvt_card_inline_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.cvt_inline_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.07);
    color: #334155;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
}

.cvt_inline_btn:hover {
    color: #0f172a;
    background: #eef4ff;
    border-color: rgba(59, 130, 246, 0.18);
}

.cvt_preview_body {
    background: #edf1f6;
    min-height: 100vh;
}

.cvt_preview_page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.35rem;
    box-sizing: border-box;
}

.cvt_preview_topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cvt_preview_back {
    display: inline-flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
}

.cvt_preview_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cvt_document {
    width: 210mm;
    max-width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    overflow: hidden;
}

.cvt_resume {
    width: 210mm;
    min-height: 297mm;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 9.5pt;
    box-sizing: border-box;
}

.cvt_resume_slate {
    display: grid;
    grid-template-columns: 46mm 1fr;
}

.cvt_resume_sidebar {
    background: #343944;
    color: #fff;
    padding: 13mm 7mm 13mm 8mm;
}

.cvt_resume_name {
    font-size: 12.5pt;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
}

.cvt_resume_role {
    margin-top: 0.3rem;
    color: rgba(255, 255, 255, .78);
    font-size: 8pt;
    line-height: 1.5;
    font-weight: 400;
}

.cvt_resume_block {
    margin-top: 0.92rem;
}

.cvt_resume_block h3 {
    margin: 0 0 0.52rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
    color: #fff;
    font-size: 7pt;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.cvt_resume_contact_list,
.cvt_resume_lang_list,
.cvt_resume_meter_list {
    display: grid;
    gap: 0.42rem;
}

.cvt_resume_contact_list span,
.cvt_resume_lang_list span,
.cvt_resume_meter_item span {
    display: block;
    font-size: 7pt;
    color: rgba(255, 255, 255, .62);
}

.cvt_resume_contact_list strong,
.cvt_resume_lang_list strong {
    display: block;
    margin-top: 0.1rem;
    font-size: 8pt;
    line-height: 1.45;
    color: #fff;
    font-weight: 500;
}

.cvt_resume_meter {
    height: 3px;
    margin-top: 0.2rem;
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    overflow: hidden;
}

.cvt_resume_meter i {
    display: block;
    width: 72%;
    height: 100%;
    background: #fff;
}

.cvt_resume_main {
    padding: 12.5mm 10.5mm 12.5mm;
    display: grid;
    gap: 0.88rem;
}

.cvt_resume_main_section h2,
.cvt_resume_accent_section h2 {
    margin: 0 0 0.45rem;
    color: #2d3440;
    font-size: 9pt;
    font-weight: 600;
    border-bottom: 1px solid rgba(15, 23, 42, .09);
    padding-bottom: 0.22rem;
    letter-spacing: 0.01em;
}

.cvt_resume_main_section p,
.cvt_resume_accent_section p,
.cvt_resume_minimal_body p {
    margin: 0;
    color: #515a69;
    font-size: 8.5pt;
    line-height: 1.6;
    font-weight: 400;
}

.cvt_resume_timeline_item {
    display: grid;
    grid-template-columns: 16mm 1fr;
    gap: 0.55rem;
    padding-top: 0.42rem;
}

.cvt_resume_period {
    font-size: 7.5pt;
    color: #6b7280;
    line-height: 1.5;
}

.cvt_resume_content strong,
.cvt_resume_minimal_item strong,
.cvt_resume_accent_job_head strong,
.cvt_resume_accent_card strong {
    display: block;
    color: #2f3744;
    font-size: 9pt;
    line-height: 1.35;
    font-weight: 600;
}

.cvt_resume_content span,
.cvt_resume_minimal_item span,
.cvt_resume_accent_job_body span,
.cvt_resume_accent_card span {
    display: block;
    margin-top: 0.1rem;
    color: #6b7280;
    font-size: 7.5pt;
    line-height: 1.5;
}

.cvt_resume_content p,
.cvt_resume_accent_job_body p {
    margin-top: 0.2rem;
}

.cvt_resume_cert_list {
    display: grid;
    gap: 0.3rem;
    color: #4b5563;
    font-size: 8pt;
    line-height: 1.5;
}

.cvt_resume_minimal {
    padding: 12mm 11mm 13mm;
    font-family: Georgia, "Times New Roman", serif;
}

.cvt_resume_minimal_head {
    padding-bottom: 0.78rem;
    border-bottom: 1px solid rgba(15, 23, 42, .1);
    text-align: center;
}

.cvt_resume_minimal_head h1 {
    margin: 0;
    color: #2d3138;
    font-size: 15pt;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.cvt_resume_minimal_head p {
    margin: 0.2rem 0 0;
    color: #6b7280;
    font-size: 8pt;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cvt_resume_minimal_meta {
    margin-top: 0.35rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.42rem 0.75rem;
    color: #6b7280;
    font-size: 7.5pt;
}

.cvt_resume_minimal_section {
    display: grid;
    grid-template-columns: 24mm 1fr;
    gap: 0.75rem;
    padding-top: 0.76rem;
    border-top: 1px solid rgba(15, 23, 42, .09);
}

.cvt_resume_minimal_label {
    color: #3b434f;
    font-size: 7pt;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.cvt_resume_minimal_body {
    display: grid;
    gap: 0.46rem;
}

.cvt_resume_minimal_item {
    display: grid;
    grid-template-columns: 16mm 1fr 20mm;
    gap: 0.45rem;
}

.cvt_resume_minimal_date,
.cvt_resume_minimal_place,
.cvt_resume_accent_job_head small,
.cvt_resume_accent_card small {
    color: #6b7280;
    font-size: 7.5pt;
    line-height: 1.5;
}

.cvt_resume_minimal_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem 0.65rem;
}

.cvt_resume_accent {
    display: grid;
    grid-template-columns: 48mm 1fr;
}

.cvt_resume_accent_side {
    background: #232a33;
    color: #fff;
    padding: 0 7.5mm 12.5mm;
    position: relative;
}

.cvt_resume_accent_top {
    height: 26mm;
    margin: 0 -7.5mm 0.65rem;
    background: #f0b318;
}

.cvt_resume_accent_avatar {
    width: 22mm;
    height: 22mm;
    margin: -11mm auto 0.65rem;
    border-radius: 999px;
    background: #fff;
    border: 2.2mm solid #f0b318;
    color: #252c36;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 600;
}

.cvt_resume_accent_name {
    color: #f0b318;
    font-size: 12pt;
    line-height: 1.2;
    font-weight: 600;
}

.cvt_resume_accent_role {
    margin-top: 0.22rem;
    color: rgba(255, 255, 255, .84);
    font-size: 8pt;
    line-height: 1.45;
}

.cvt_resume_accent_block {
    margin-top: 0.86rem;
}

.cvt_resume_accent_block h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.45rem;
    color: #f0b318;
    font-size: 7pt;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.cvt_resume_accent_block span {
    display: block;
    color: rgba(255, 255, 255, .9);
    font-size: 7.5pt;
    line-height: 1.55;
    margin-bottom: 0.18rem;
}

.cvt_resume_accent_skill {
    margin-bottom: 0.38rem;
}

.cvt_resume_accent_skill label {
    display: block;
    margin-bottom: 0.18rem;
    color: #fff;
    font-size: 7.5pt;
    line-height: 1.4;
}

.cvt_resume_accent_skillbar {
    height: 3px;
    background: rgba(255, 255, 255, .14);
    border-radius: 999px;
    overflow: hidden;
}

.cvt_resume_accent_skillbar i {
    display: block;
    width: 70%;
    height: 100%;
    background: #f0b318;
}

.cvt_resume_accent_main {
    padding: 12mm 11mm 12mm;
    display: grid;
    gap: 0.82rem;
}

.cvt_resume_accent_section {
    display: grid;
    gap: 0.35rem;
}

.cvt_resume_accent_job {
    display: grid;
    grid-template-columns: 8px 1fr;
    gap: 0.5rem;
    position: relative;
}

.cvt_resume_accent_dot {
    width: 8px;
    height: 8px;
    margin-top: 0.28rem;
    border-radius: 999px;
    background: #f0b318;
}

.cvt_resume_accent_job_body {
    padding-bottom: 0.48rem;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.cvt_resume_accent_job_head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.65rem;
}

.cvt_resume_accent_columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.82rem;
}

.cvt_resume_accent_card {
    padding: 0.42rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.cvt_print_mode .cvt_preview_topbar {
    display: none;
}

@media (max-width: 991.98px) {
    .cvt_preview_page {
        padding: 1rem;
        overflow-x: auto;
    }

    .cvt_preview_topbar {
        flex-direction: column;
        align-items: stretch;
        min-width: 210mm;
    }

    .cvt_preview_actions {
        justify-content: stretch;
    }

    .cvt_preview_actions .cvt_export_btn,
    .cvt_preview_back {
        justify-content: center;
    }
}

@page {
    size: A4 portrait;
    margin: 0;
}

@media print {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html,
    body.cvt_preview_body {
        background: #fff;
        margin: 0;
        padding: 0;
    }

    .cvt_preview_page {
        max-width: none;
        width: 210mm;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .cvt_preview_topbar {
        display: none !important;
    }

    .cvt_document {
        width: 210mm;
        max-width: 210mm;
        min-height: 297mm;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }

    .cvt_resume {
        width: 210mm;
        min-height: 297mm;
    }
}
