/* CV builder — list, form, preview, PDF */

body.account-area.account-cv-edit .cv-builder-wrap {
    width: 100%;
}

body.account-area.account-cv-edit .cv-profile-readonly,
.cv-wizard-modal .cv-profile-readonly {
    padding: 0.85rem 0.95rem;
    border: 1px dashed rgba(125, 128, 135, 0.22);
    border-radius: 12px;
    background: #f8fafc;
}

body.account-area.account-cv-edit .cv-profile-readonly .listing-form-label,
.cv-wizard-modal .cv-profile-readonly .listing-form-label {
    color: #a1aab4;
    font-weight: 500;
}

body.account-area.account-cv-edit .cv-profile-readonly__input,
body.account-area.account-cv-edit .cv-profile-readonly__input:disabled,
.cv-wizard-modal .cv-profile-readonly__input,
.cv-wizard-modal .cv-profile-readonly__input:disabled {
    background: #f1f5f9;
    border-color: rgba(125, 128, 135, 0.18);
    color: #6b7280;
    cursor: not-allowed;
    box-shadow: none;
}

body.account-area.account-cv-edit .cv-profile-readonly__input:focus,
body.account-area.account-cv-edit .cv-profile-readonly__input:disabled:focus,
.cv-wizard-modal .cv-profile-readonly__input:focus,
.cv-wizard-modal .cv-profile-readonly__input:disabled:focus {
    background: #f1f5f9;
    border-color: rgba(125, 128, 135, 0.18);
    box-shadow: none;
    outline: none;
}

body.account-area.account-cv-edit .cv-profile-readonly__head,
.cv-wizard-modal .cv-profile-readonly__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(125, 128, 135, 0.15);
}

body.account-area.account-cv-edit .cv-profile-readonly__title,
.cv-wizard-modal .cv-profile-readonly__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
}

body.account-area.account-cv-edit .cv-profile-readonly__edit-link,
.cv-wizard-modal .cv-profile-readonly__edit-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}

body.account-area.account-cv-edit .cv-profile-readonly__edit-link:hover,
.cv-wizard-modal .cv-profile-readonly__edit-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

body.account-area.account-cv-edit .cv-profile-data-alert,
.cv-wizard-modal .cv-profile-data-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.06);
}

body.account-area.account-cv-edit .cv-profile-data-alert__icon,
.cv-wizard-modal .cv-profile-data-alert__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    font-size: 1.1rem;
}

body.account-area.account-cv-edit .cv-profile-data-alert__text,
.cv-wizard-modal .cv-profile-data-alert__text {
    flex: 1 1 auto;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #334155;
}

body.account-area.account-cv-edit .cv-profile-data-alert__text a,
.cv-wizard-modal .cv-profile-data-alert__text a {
    font-weight: 600;
}

.cv-wizard-modal .listing-wizard-stepper {
    gap: 6px;
    margin-bottom: 14px;
}

.cv-wizard-modal .listing-wizard-stepper__item {
    padding: 5px 8px;
    font-size: 11px;
}

.cv-wizard-modal .listing-wizard-stepper__index {
    width: 20px;
    height: 20px;
    font-size: 10px;
}

.cv-wizard-modal .listing-wizard-stepper__label {
    font-size: 11px;
}

.cv-wizard-modal .listing-wizard-repeat-head .listing-wizard-step__intro {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #64748b;
    max-width: 34rem;
}

body.account-area.account-cv-edit .cv-builder-form {
    display: block;
}

body.account-area.account-cv-edit .cv-builder-wrap > .listing-form-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

body.account-area.account-cv-edit .cv-floating-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

body.account-area.account-cv-edit .cv-floating-action {
    gap: 0.25rem;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

body.account-area.account-cv-edit .cv-primary-check {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.account-area.account-cv-edit .cv-config-card {
    height: 100%;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(125, 128, 135, 0.24);
    border-radius: 12px;
    background: #fff;
}

body.account-area.account-cv-edit .cv-config-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6c757d;
    line-height: 1.2;
}

body.account-area.account-cv-edit .cv-config-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex-wrap: wrap;
}

body.account-area.account-cv-edit .cv-config-card__value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
}

body.account-area.account-cv-edit .cv-config-card__action {
    flex-shrink: 0;
    font-size: 0.82rem;
}

body.account-area.account-cv-edit .cv-config-card.cv-primary-card {
    position: relative;
    overflow: hidden;
    justify-content: flex-start;
    padding: 0;
    border-color: rgba(125, 128, 135, 0.18);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 158, 11, 0.06) 100%);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.account-area.account-cv-edit .cv-config-card.cv-primary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #d97706, rgba(245, 158, 11, 0.45));
    border-radius: 12px 0 0 12px;
    pointer-events: none;
    opacity: 0.45;
    transition: opacity 0.18s ease;
}

body.account-area.account-cv-edit .cv-config-card.cv-primary-card:has(.cv-primary-option__input:checked) {
    border-color: rgba(245, 158, 11, 0.45);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 158, 11, 0.12) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.account-area.account-cv-edit .cv-config-card.cv-primary-card:has(.cv-primary-option__input:checked)::before {
    opacity: 1;
}

body.account-area.account-cv-edit .cv-primary-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0.85rem 0.9rem 0.85rem 1rem;
    cursor: pointer;
}

body.account-area.account-cv-edit .cv-primary-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.account-area.account-cv-edit .cv-primary-option__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    margin-top: 0.1rem;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
    font-size: 0.95rem;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body.account-area.account-cv-edit .cv-config-card.cv-primary-card:has(.cv-primary-option__input:checked) .cv-primary-option__icon-wrap {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28);
}

body.account-area.account-cv-edit .cv-primary-option__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

body.account-area.account-cv-edit .cv-primary-option__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
}

body.account-area.account-cv-edit .cv-primary-option__desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

body.account-area.account-cv-edit .cv-config-card.cv-template-summary {
    position: relative;
    overflow: hidden;
    justify-content: flex-start;
    gap: 0.35rem;
    padding-left: 1rem;
    border-color: rgba(125, 128, 135, 0.18);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, var(--cv-tpl-grad-end, rgba(71, 85, 105, 0.1)) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.account-area.account-cv-edit .cv-config-card.cv-template-summary::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--cv-tpl-accent, #475569), var(--cv-tpl-accent-soft, rgba(71, 85, 105, 0.45)));
    border-radius: 12px 0 0 12px;
    pointer-events: none;
}

body.account-area.account-cv-edit .cv-template-summary__desc {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

body.account-area.account-cv-edit .cv-template-summary__change.rts__btn {
    padding: 0.28rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--cv-tpl-accent, #475569);
    background: rgba(255, 255, 255, 0.92);
}

body.account-area.account-cv-edit .cv-template-summary__change.rts__btn:hover {
    border-color: var(--cv-tpl-accent, #475569);
    color: var(--cv-tpl-accent, #475569);
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

body.account-area.account-cv-edit .cv-template-summary__name {
    font-size: 0.92rem;
}

body.account-area.account-cv-edit .cv-template-summary__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

body.account-area.account-cv-edit .cv-template-summary__head .cv-config-card__label {
    margin: 0;
}

body.account-area.account-cv-edit .cv-template-summary__toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

body.account-area.account-cv-edit .cv-template-summary__colors {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    width: 100%;
}

body.account-area.account-cv-edit .cv-template-summary__colors-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #94a3b8;
}

body.account-area.account-cv-edit .cv-template-summary__color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}

body.account-area.account-cv-edit .cv-template-summary__color-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.22rem 0.45rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

body.account-area.account-cv-edit .cv-template-summary__color-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.account-area.account-cv-edit .cv-template-summary__color-option.is-selected {
    border-color: var(--cv-tpl-accent, #475569);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04);
}

body.account-area.account-cv-edit .cv-template-summary__color-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

body.account-area.account-cv-edit .cv-template-summary__color-name {
    font-size: 0.76rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.2;
}

body.account-area.account-cv-edit .cv-template-summary__color-option.is-selected .cv-template-summary__color-name {
    color: #1e293b;
}

body.account-area.account-cv-edit .cv-template-summary[data-color-scheme="slate"] {
    --cv-tpl-accent: #475569;
    --cv-tpl-accent-soft: #94a3b8;
    --cv-tpl-grad-end: rgba(71, 85, 105, 0.12);
}

body.account-area.account-cv-edit .cv-template-summary[data-color-scheme="blue"] {
    --cv-tpl-accent: #2563eb;
    --cv-tpl-accent-soft: #60a5fa;
    --cv-tpl-grad-end: rgba(37, 99, 235, 0.14);
}

body.account-area.account-cv-edit .cv-template-summary[data-color-scheme="teal"] {
    --cv-tpl-accent: #0d9488;
    --cv-tpl-accent-soft: #2dd4bf;
    --cv-tpl-grad-end: rgba(13, 148, 136, 0.14);
}

body.account-area.account-cv-edit .cv-template-summary[data-color-scheme="green"] {
    --cv-tpl-accent: #16a34a;
    --cv-tpl-accent-soft: #4ade80;
    --cv-tpl-grad-end: rgba(22, 163, 74, 0.14);
}

body.account-area.account-cv-edit .cv-template-summary[data-color-scheme="purple"] {
    --cv-tpl-accent: #7c3aed;
    --cv-tpl-accent-soft: #a78bfa;
    --cv-tpl-grad-end: rgba(124, 58, 237, 0.14);
}

body.account-area.account-cv-edit .cv-template-summary[data-color-scheme="burgundy"] {
    --cv-tpl-accent: #9f1239;
    --cv-tpl-accent-soft: #fb7185;
    --cv-tpl-grad-end: rgba(159, 18, 57, 0.14);
}

body.account-area.account-cv-edit .cv-template-summary__body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
}

body.account-area.account-cv-edit .cv-template-summary__visual {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

body.account-area.account-cv-edit .cv-template-summary__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cv-tpl-accent, #475569), var(--cv-tpl-accent-soft, #94a3b8));
    color: #fff;
    font-size: 0.82rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

body.account-area.account-cv-edit .cv-template-summary__thumb {
    width: 34px;
    aspect-ratio: 0.72;
    border-radius: 6px;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

body.account-area.account-cv-edit .cv-template-summary__info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

body.account-area.account-cv-edit .cv-template-summary__name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

body.account-area.account-cv-edit .cv-template-summary__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
}

body.account-area.account-cv-edit .cv-template-summary__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

body.account-area.account-cv-edit .cv-template-summary__change {
    margin-left: auto;
    flex-shrink: 0;
}

/* Simple config cards */
body.account-area.account-cv-edit .cv-config-card {
    justify-content: flex-start;
}

body.account-area.account-cv-edit .cv-config-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

body.account-area.account-cv-edit .cv-config-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rts-button-1, #34a853);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    flex-shrink: 0;
}

body.account-area.account-cv-edit .cv-config-card__link i {
    font-size: 0.7rem;
}

body.account-area.account-cv-edit .cv-config-card__link:hover {
    text-decoration: underline;
}

body.account-area.account-cv-edit .cv-config-card__value {
    margin: 0;
}

body.account-area.account-cv-edit .cv-config-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
}

body.account-area.account-cv-edit .cv-config-card .cv-primary-check {
    padding-left: 1.65rem;
}

body.account-area.account-cv-edit .cv-config-card .cv-primary-check .form-check-input {
    margin-left: -1.65rem;
    margin-top: 0.12rem;
}

body.account-area.account-cv-edit .cv-visibility-row .cv-visibility-option {
    height: 100%;
    min-height: 96px;
}

body.account-area.account-cv-edit .cv-config-card--primary .cv-primary-check {
    padding-left: 1.65rem;
}

body.account-area.account-cv-edit .cv-config-card--primary .cv-primary-check .form-check-input {
    margin-left: -1.65rem;
    margin-top: 0.12rem;
}

body.account-area.account-cv-edit .cv-primary-check .form-check-label {
    color: var(--rts-heading, #1a1a1a);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
}

body.account-area.account-cv-edit .cv-primary-check .form-text,
body.account-area.account-cv-edit .cv-primary-check .listing-form-help {
    font-size: 0.75rem;
    line-height: 1.35;
    margin-top: 0.2rem;
    margin-bottom: 0;
}

body.account-area.account-cv-edit .cv-category-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

body.account-area.account-cv-edit .cv-skills-badge-input {
    border: 1px solid rgba(125, 128, 135, 0.24);
    border-radius: 14px;
    background: #fff;
    padding: 0.65rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.account-area.account-cv-edit .cv-skills-badge-input:focus-within {
    border-color: var(--rts-button-1, #34a853);
    box-shadow: 0 0 0 0.18rem rgba(52, 168, 83, 0.12);
}

body.account-area.account-cv-edit .cv-skills-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

body.account-area.account-cv-edit .cv-skills-badge-list:empty {
    display: none;
}

body.account-area.account-cv-edit .cv-skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.5rem 0.38rem 0.72rem;
    border: 1px solid rgba(52, 168, 83, 0.18);
    border-radius: 999px;
    background: rgba(52, 168, 83, 0.1);
    color: #1e7e34;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
}

body.account-area.account-cv-edit .cv-skill-badge__remove {
    width: 19px;
    height: 19px;
    border: 0;
    border-radius: 50%;
    background: rgba(30, 126, 52, 0.14);
    color: #1e7e34;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

body.account-area.account-cv-edit .cv-skill-badge__remove:hover,
body.account-area.account-cv-edit .cv-skill-badge__remove:focus-visible {
    background: #1e7e34;
    color: #fff;
    outline: none;
}

body.account-area.account-cv-edit .cv-skills-entry {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0.35rem 0.2rem !important;
    min-height: 38px;
}

.cv-preview-modal-dialog {
    max-width: min(230mm, calc(100vw - 2rem));
    width: 100%;
    margin: 1rem auto;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
}

#candidateCvModal .modal-dialog {
    display: flex;
    flex-direction: column;
}

.cv-preview-modal,
.cv-preview-modal-inner {
    width: 100%;
    max-width: none;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.cv-preview-modal__header {
    flex: 0 0 auto;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    border-bottom: 0;
    align-items: flex-start;
    gap: 0.75rem;
}

.cv-preview-modal__title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.cv-preview-modal__eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.82;
    margin-bottom: 0.15rem;
}

.cv-preview-modal__header .modal-title {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.cv-preview-modal__header .btn-close {
    flex: 0 0 auto;
    margin: 0;
    filter: invert(1) grayscale(1) brightness(2);
    opacity: 0.88;
}

.cv-preview-modal__header .btn-close:hover {
    opacity: 1;
}

.cv-preview-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    background: #e9ecef;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.28) transparent;
}

#candidateCvModal .cv-preview-modal__body::-webkit-scrollbar {
    width: 6px;
}

#candidateCvModal .cv-preview-modal__body::-webkit-scrollbar-track {
    background: transparent;
}

#candidateCvModal .cv-preview-modal__body::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.24);
    border-radius: 999px;
}

#candidateCvModal .cv-preview-modal__body::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.38);
}

.cv-preview-modal__footer {
    flex: 0 0 auto;
    padding: 0.9rem 1.25rem;
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    gap: 0.75rem;
    justify-content: flex-end;
}

.cv-preview-modal__btn {
    min-height: 42px;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.cv-preview-modal__btn--close {
    border: 1px solid rgba(125, 128, 135, 0.28);
    background: #fff;
    color: var(--rts-heading, #1f2937);
}

.cv-preview-modal__btn--close:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(125, 128, 135, 0.45);
    color: var(--rts-heading, #1f2937);
}

.cv-preview-modal__btn--download:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cv-preview-shell--modal {
    height: auto;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.cv-preview-shell--modal .cv-preview-doc {
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .cv-preview-modal__footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .cv-preview-modal__btn {
        width: 100%;
    }
}

.cv-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.cv-list-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cv-list-card {
    position: relative;
    border: 1px solid rgba(52, 168, 83, 0.16);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cv-list-card:hover {
    border-color: rgba(52, 168, 83, 0.32);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
}

.cv-list-card--full {
    width: 100%;
}

.cv-list-card--compact {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 76px;
    padding: 0;
}

.cv-list-card--detailed {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
}

.cv-list-card--detailed .cv-list-card__banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    background: var(--cv-category-gradient, linear-gradient(135deg, #64748b 0%, #94a3b8 100%));
    color: #fff;
}

.cv-list-card--detailed .cv-list-card__banner.is-placeholder {
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
}

.cv-list-card--detailed .cv-list-card__banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.1rem;
}

.cv-list-card--detailed .cv-list-card__banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1 1 auto;
}

.cv-list-card--detailed .cv-list-card__banner-eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.88;
}

.cv-list-card--detailed .cv-list-card__banner-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.cv-list-card--detailed .cv-list-card__location-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

.cv-list-card--detailed .cv-list-card__body {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 1rem 1rem 0.85rem;
}

.cv-list-card--detailed .cv-list-card__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-top: 0.15rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(52, 168, 83, 0.12);
}

.cv-list-card--detailed .cv-list-card__details {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.85rem 1.25rem;
    flex: 1 1 auto;
    min-width: 0;
}

.cv-list-card--detailed .cv-list-card__actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    margin-left: auto;
    padding: 0;
    border-top: 0;
    background: transparent;
    overflow-x: auto;
}

.cv-list-card--detailed .cv-list-card__status-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.cv-list-card--detailed .cv-list-card__visibility {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.cv-list-card--detailed .cv-list-card__visibility--private {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.cv-list-card--detailed .cv-list-card__visibility--public {
    background: rgba(52, 168, 83, 0.12);
    color: #1e7e34;
}

.cv-list-card--detailed .cv-list-card__detail {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.cv-list-card--detailed .cv-list-card__detail-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.2;
}

.cv-list-card--detailed .cv-list-card__detail-value {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
}

.cv-list-card--detailed .cv-list-card__detail-value i {
    color: #64748b;
    font-size: 0.76rem;
}

.cv-list-card--detailed .cv-list-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
}

.cv-list-card--detailed .cv-list-card__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: rgba(52, 168, 83, 0.1);
    color: #166534;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.cv-list-card--detailed .cv-list-card__chip.is-empty {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.cv-list-card--detailed .cv-list-card__chip--accent {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.cv-list-card--detailed .cv-public-note {
    margin: 0;
    font-size: 0.78rem;
}

body.account-area .cv-list-card--detailed .cv-list-card__actions.account-table-actions {
    flex-wrap: nowrap;
}

body.account-area .cv-list-card--detailed .cv-list-card__action-form {
    display: inline-flex;
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

body.account-area .cv-list-card--detailed .cv-list-card__actions .cv-list-tool {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 32px;
    padding: 0.3rem 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}

body.account-area .cv-list-card--detailed .cv-list-card__actions .cv-list-tool i {
    font-size: 0.78rem;
    line-height: 1;
}

.cv-list-card.is-preferred {
    border-color: rgba(52, 168, 83, 0.38);
    box-shadow: 0 10px 24px rgba(52, 168, 83, 0.12);
}

.cv-list-card__icon {
    display: flex;
    align-self: stretch;
    flex: 0 0 56px;
    width: 56px;
    min-height: 76px;
}

.cv-list-card--compact .cv-list-card__icon .cv-preview-listing-icon.listing-thumb-link {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    flex: 1 1 auto !important;
    border-radius: 0 !important;
    align-self: stretch !important;
}

.cv-list-card--compact .cv-list-card__icon .cv-preview-listing-icon.listing-thumb-link .category-icon-wrapper,
.cv-list-card--compact .cv-list-card__icon .cv-preview-listing-icon.listing-thumb-link .listing-category-thumb {
    border-radius: 0 !important;
}

.cv-list-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.28rem;
    padding: 0.8rem 1rem 0.8rem 0.85rem;
    text-align: left;
}

.cv-list-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem 0.65rem;
    margin-bottom: 0;
    width: 100%;
}

.cv-list-card__title-row h5 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--rts-heading, #1a1a1a);
    line-height: 1.25;
    text-align: left;
}

.cv-preferred-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(52, 168, 83, 0.12);
    color: #1e7e34;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.cv-preferred-badge i {
    font-size: 0.65rem;
    line-height: 1;
}

.cv-public-note i {
    font-size: 0.72rem;
    line-height: 1;
}

.cv-list-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    margin-top: 0;
    width: 100%;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #6c757d;
    text-align: left;
}

.cv-list-card__updated {
    white-space: nowrap;
}

.cv-public-note {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    color: #1e7e34;
    font-weight: 600;
}

.cv-list-card__actions {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 0.85rem;
    border-left: 1px solid rgba(52, 168, 83, 0.12);
    background: rgba(248, 250, 252, 0.72);
}

body.account-area .cv-list-card__actions.account-table-actions {
    flex-wrap: nowrap;
}

body.account-area .cv-list-card__action-form {
    display: inline-flex;
    margin: 0;
}

body.account-area .cv-list-card__actions .cv-list-tool {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
}

body.account-area .cv-list-card__actions .cv-list-tool i {
    font-size: 13px;
    line-height: 1;
}

body.account-area .cv-list-card__actions .cv-list-tool--pdf {
    background-color: transparent !important;
    border-color: rgba(220, 53, 69, 0.34) !important;
    color: #dc3545 !important;
}

body.account-area .cv-list-card__actions .cv-list-tool--pdf:hover,
body.account-area .cv-list-card__actions .cv-list-tool--pdf:focus-visible {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

body.account-area .cv-list-card__actions .cv-list-tool--pdf:hover i,
body.account-area .cv-list-card__actions .cv-list-tool--pdf:focus-visible i {
    color: #fff !important;
}

body.account-area .cv-list-card__actions .account-action-status:hover i,
body.account-area .cv-list-card__actions .account-action-status:focus-visible i {
    color: #fff !important;
}

@media (max-width: 767px) {
    body.account-area.account-cv-edit .cv-floating-actions {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 1rem;
    }

    body.account-area.account-cv-edit .cv-floating-action {
        flex: 1 1 140px;
        min-width: 0;
    }

    body.account-area.account-cv-edit .cv-floating-action:hover,
    body.account-area.account-cv-edit .cv-floating-action:focus-visible {
        transform: translateY(-1px);
    }

    .cv-content-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .cv-list-card--compact {
        flex-wrap: wrap;
    }

    .cv-list-card--detailed .cv-list-card__location-pill {
        margin-left: 0;
    }

    .cv-list-card--detailed .cv-list-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cv-list-card--detailed .cv-list-card__actions {
        margin-left: 0;
        align-self: stretch;
        justify-content: flex-start;
    }

    .cv-list-card--compact .cv-list-card__icon {
        flex-basis: 48px;
        width: 48px;
    }

    .cv-list-card--compact .cv-list-card__icon .cv-preview-listing-icon.listing-thumb-link {
        min-height: 72px;
    }

    .cv-list-card__actions {
        width: 100%;
        justify-content: flex-end;
        border-left: 0;
        border-top: 1px solid rgba(52, 168, 83, 0.12);
        padding: 0.45rem 0.65rem;
    }
}

.cv-list-card__head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.cv-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    color: #fff;
    flex-shrink: 0;
    font-size: 1.15rem;
    line-height: 1;
    overflow: hidden;
}

.cv-category-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    width: 1em;
    height: 1em;
}

.cv-category-icon--sm {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    border-radius: 10px;
}

.cv-category-icon--lg {
    width: 56px;
    height: 56px;
    font-size: 1.45rem;
    border-radius: 14px;
}

.cv-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.65rem;
}

.cv-category-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 0.5rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fafafa;
}

.cv-category-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cv-category-option.is-selected,
.cv-category-option:has(input:checked) {
    border-color: var(--theme-color, #2563eb);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
    background: #fff;
}

.cv-category-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    color: #fff;
    font-size: 1.1rem;
}

.cv-category-option__label {
    font-size: 0.72rem;
    line-height: 1.25;
    color: #444;
    font-weight: 500;
}

.cv-category-grid.has-collapsible:not(.is-expanded) .cv-category-option--collapsible {
    display: none;
}

.cv-category-toggle {
    display: inline-flex;
    align-items: center;
    margin-top: 0.85rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--rts-heading, #333);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.cv-category-toggle:hover {
    border-color: var(--rts-button-1, #34a853);
    color: var(--rts-button-1, #34a853);
    background: rgba(52, 168, 83, 0.06);
}

.cv-category-toggle__collapse {
    display: none;
}

.cv-category-grid.is-expanded + .cv-category-toggle .cv-category-toggle__expand {
    display: none;
}

.cv-category-grid.is-expanded + .cv-category-toggle .cv-category-toggle__collapse {
    display: inline-flex;
    align-items: center;
}

/* Compact picker inside Formación entries */
.cv-category-picker--compact {
    margin-top: 0.15rem;
}

.cv-category-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.45rem;
}

.cv-category-grid--compact .cv-category-option {
    padding: 0.55rem 0.35rem;
    gap: 0.3rem;
}

.cv-category-grid--compact .cv-category-option__icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    border-radius: 9px;
}

.cv-category-grid--compact .cv-category-option__label {
    font-size: 0.62rem;
}

.cv-category-picker--compact .cv-category-toggle {
    margin-top: 0.55rem;
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
}

.cv-preview-item--with-icon {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.cv-preview-item__icon,
.cv-preview-header__icon {
    flex-shrink: 0;
}

.cv-preview-item__icon {
    margin-top: 0.05rem;
}

/* Match listing card square category thumbnails */
.cv-preview-listing-icon.listing-thumb-link {
    position: relative !important;
    display: block !important;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
    align-self: flex-start !important;
    padding: 0 !important;
    line-height: 0;
    background-color: transparent !important;
    border-radius: 6px;
}

.cv-preview-listing-icon--sm.listing-thumb-link {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex: 0 0 40px !important;
}

.cv-preview-listing-icon--md.listing-thumb-link {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    flex: 0 0 52px !important;
}

.cv-preview-listing-icon--lg.listing-thumb-link {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    flex: 0 0 72px !important;
}

.cv-preview-listing-icon.listing-thumb-link > .category-icon-wrapper,
.cv-preview-listing-icon.listing-thumb-link .category-icon-wrapper,
.cv-preview-listing-icon.listing-thumb-link .listing-category-thumb {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: inherit;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.cv-preview-listing-icon--sm.listing-thumb-link .category-icon-fa {
    font-size: 1.35rem;
    color: #fff;
    line-height: 1;
}

.cv-preview-listing-icon--md.listing-thumb-link .category-icon-fa {
    font-size: 1.75rem;
    color: #fff;
    line-height: 1;
}

.cv-preview-listing-icon--lg.listing-thumb-link .category-icon-fa {
    font-size: 2.35rem;
    color: #fff;
    line-height: 1;
}

/* Icon style variants (resolved on .cv-preview-doc) */
.cv-preview-doc.cv-icons-off .cv-preview-header__icon,
.cv-preview-doc.cv-icons-off .cv-preview-item__icon {
    display: none !important;
}

.cv-preview-doc .cv-preview-listing-icon.cv-icon-style-soft .category-icon-wrapper {
    background: var(--cv-accent-soft, rgba(71, 85, 105, 0.12)) !important;
}

.cv-preview-doc .cv-preview-listing-icon.cv-icon-style-soft .category-icon-fa {
    color: var(--cv-accent, #475569) !important;
}

.cv-preview-doc .cv-preview-listing-icon.cv-icon-style-outline {
    border-radius: 999px;
}

.cv-preview-doc .cv-preview-listing-icon.cv-icon-style-outline .category-icon-wrapper {
    background: transparent !important;
    border: 1.5px solid var(--cv-accent, #475569);
    border-radius: inherit;
}

.cv-preview-doc .cv-preview-listing-icon.cv-icon-style-outline .category-icon-fa {
    color: var(--cv-accent, #475569) !important;
}

.cv-preview-doc .cv-preview-listing-icon.cv-icon-style-plain {
    background: transparent !important;
    border-radius: 0;
}

.cv-preview-doc .cv-preview-listing-icon.cv-icon-style-plain .category-icon-wrapper {
    background: transparent !important;
}

.cv-preview-doc .cv-preview-listing-icon.cv-icon-style-plain .category-icon-fa {
    color: var(--cv-accent, #475569) !important;
}

.cv-preview-doc .cv-preview-listing-icon.cv-icon-style-plain.cv-preview-listing-icon--sm .category-icon-fa {
    font-size: 1.15rem;
}

.cv-preview-doc .cv-preview-listing-icon.cv-icon-style-plain.cv-preview-listing-icon--lg .category-icon-fa {
    font-size: 1.85rem;
}

.cv-pdf-sandbox .cv-preview-listing-icon.listing-thumb-link,
.cv-pdf-sandbox .cv-preview-icon-raster {
    border-radius: 6px !important;
    overflow: hidden;
}

.cv-preview-item__body {
    flex: 1;
    min-width: 0;
}

.cv-preview-edu-category {
    margin: 0 0 0.15rem;
    font-size: 9.5px;
    color: #666;
    font-weight: 500;
}

.cv-repeat-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cv-content-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(52, 168, 83, 0.14);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.94) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.cv-content-add-menu .dropdown-item {
    font-size: 0.9rem;
    font-weight: 600;
}

.cv-content-add-menu .dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--rts-button-1, #34a853);
}

.cv-form-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
}

.cv-form-section {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(52, 168, 83, 0.14);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.cv-form-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(125, 128, 135, 0.12);
}

.cv-form-section__head-text {
    min-width: 0;
    flex: 1;
}

.cv-form-section__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--rts-heading, #1a1a1a);
    line-height: 1.3;
}

.cv-form-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(52, 168, 83, 0.1);
    color: var(--rts-button-1, #34a853);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.cv-form-section__desc {
    margin: 0.28rem 0 0;
    padding-left: calc(30px + 0.55rem);
    font-size: 0.78rem;
    color: #6c757d;
    line-height: 1.4;
}

.cv-form-section__add {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

body.account-area.account-cv-edit .cv-content-meta {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(125, 128, 135, 0.14);
    border-radius: 14px;
    background: #f8faf9;
}

body.account-area.account-cv-edit .cv-content-meta--top {
    margin-bottom: 1.25rem;
}

body.account-area.account-cv-edit .listing-form-card__body > .cv-content-meta--top {
    margin-top: 0;
}

body.account-area.account-cv-edit .cv-content-meta__grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

body.account-area.account-cv-edit .cv-content-meta__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: stretch;
}

body.account-area.account-cv-edit .cv-content-meta__stats:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.account-area.account-cv-edit .cv-content-meta__stats:has(> :nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.account-area.account-cv-edit .cv-content-meta__stats .cv-content-meta__item {
    height: 100%;
    min-height: 92px;
}

body.account-area.account-cv-edit .cv-content-meta__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(125, 128, 135, 0.14);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

body.account-area.account-cv-edit .cv-content-meta__item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

body.account-area.account-cv-edit .cv-content-meta__item--wide {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.55rem 0.7rem;
    width: 100%;
    min-height: 0;
    padding: 0.65rem 0.85rem;
    overflow-x: auto;
}

body.account-area.account-cv-edit .cv-content-meta__label--inline {
    flex-shrink: 0;
    white-space: nowrap;
}

body.account-area.account-cv-edit .cv-content-meta__item--wide .cv-content-meta__icon-wrap {
    flex-shrink: 0;
}

body.account-area.account-cv-edit .cv-content-meta__item--wide .cv-content-meta__chips {
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.4rem;
}

body.account-area.account-cv-edit .cv-content-meta__item--unsaved {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
    font-weight: 600;
}

body.account-area.account-cv-edit .cv-content-meta__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(52, 168, 83, 0.1);
    color: var(--rts-button-1, #34a853);
    font-size: 0.78rem;
    flex-shrink: 0;
}

body.account-area.account-cv-edit .cv-content-meta__icon-wrap--accent {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
}

body.account-area.account-cv-edit .cv-content-meta__icon-wrap--warn {
    background: rgba(245, 158, 11, 0.16);
    color: #d97706;
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
}

body.account-area.account-cv-edit .cv-content-meta__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6c757d;
    line-height: 1.2;
}

body.account-area.account-cv-edit .cv-content-meta__value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    word-break: break-word;
}

body.account-area.account-cv-edit .cv-content-meta__badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}

body.account-area.account-cv-edit .cv-content-meta__badge--private {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

body.account-area.account-cv-edit .cv-content-meta__badge--public {
    background: rgba(52, 168, 83, 0.12);
    color: #1e7e34;
}

body.account-area.account-cv-edit .cv-content-meta__badge--primary {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

body.account-area.account-cv-edit .cv-content-meta__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

body.account-area.account-cv-edit .cv-content-meta__chip {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(52, 168, 83, 0.2);
    background: rgba(52, 168, 83, 0.07);
    color: #2d6a3e;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.25;
}

body.account-area.account-cv-edit .cv-content-meta__chip.is-empty {
    border-color: rgba(125, 128, 135, 0.2);
    background: #f1f3f5;
    color: #6c757d;
    font-weight: 500;
}

.cv-form-section:first-child {
    margin-top: 0;
}

.cv-form-section h5:not(.cv-form-section__title) {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rts-heading, #1a1a1a);
}

.cv-form-section .cv-repeat-list {
    max-width: 100%;
}

body.account-area.account-cv-edit .cv-form-section .row {
    --bs-gutter-x: 0.65rem;
    --bs-gutter-y: 0.65rem;
}

.cv-repeat-item {
    position: relative;
    padding: 0.75rem 2.4rem 0.75rem 2.55rem;
    border: 1px dashed rgba(52, 168, 83, 0.22);
    border-radius: 12px;
    background: #f8fbf9;
    transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.cv-repeat-item.is-dragging {
    opacity: 0.62;
    transform: scale(0.995);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.cv-repeat-drag {
    position: absolute;
    left: 0.7rem;
    top: 0.75rem;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(52, 168, 83, 0.18);
    border-radius: 8px;
    background: #fff;
    color: #1e7e34;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: grab;
    user-select: none;
}

.cv-repeat-drag:active {
    cursor: grabbing;
}

.cv-repeat-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 58px;
    padding: 0.75rem;
    border: 1px dashed rgba(52, 168, 83, 0.25);
    border-radius: 12px;
    background: rgba(52, 168, 83, 0.05);
    color: #527064;
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.35;
}

.cv-repeat-empty i {
    color: var(--rts-button-1, #34a853);
}

body.account-area.account-cv-edit .cv-repeat-item .form-label {
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
    line-height: 1.25;
}

body.account-area.account-cv-edit .cv-repeat-item .form-control,
body.account-area.account-cv-edit .cv-repeat-item .form-select {
    min-height: 36px;
    padding: 0.32rem 0.6rem;
    border: 1px solid rgba(125, 128, 135, 0.24);
    border-radius: 10px;
    background: #fff;
    color: var(--rts-heading, #1a1a1a);
    font-size: 0.82rem;
    line-height: 1.35;
}

body.account-area.account-cv-edit .cv-repeat-item textarea.form-control {
    min-height: 72px;
    font-size: 0.82rem;
}

body.account-area.account-cv-edit .cv-repeat-field--textarea {
    width: 100%;
}

body.account-area.account-cv-edit .cv-rich-editor {
    width: 100%;
}

body.account-area.account-cv-edit .cv-repeat-field--textarea .listing-form-editor__toolbar {
    padding: 0.2rem 0.35rem;
    gap: 0.15rem;
}

body.account-area.account-cv-edit .cv-repeat-field--textarea .listing-form-editor__btn {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
}

body.account-area.account-cv-edit .cv-repeat-field--textarea .listing-form-editor__content {
    min-height: 84px;
    padding: 0.45rem 0.55rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

body.account-area.account-cv-edit .cv-repeat-item .form-control:focus,
body.account-area.account-cv-edit .cv-repeat-item .form-select:focus {
    border-color: var(--rts-button-1, #34a853);
    box-shadow: 0 0 0 0.18rem rgba(52, 168, 83, 0.12);
}

.cv-repeat-remove {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(220, 53, 69, 0.18);
    border-radius: 50%;
    background: #fff5f5;
    color: #dc3545;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1;
    z-index: 2;
}

.cv-repeat-remove i {
    display: block;
    font-size: 0.62rem;
    line-height: 1;
    pointer-events: none;
}

.cv-repeat-remove:hover {
    background: #dc3545;
    color: #fff;
}

.cv-preview-shell {
    background: #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    max-height: calc(100vh - 120px);
    overflow: auto;
}

.cv-preview-modal__body .cv-preview-shell.cv-preview-shell--modal {
    max-height: none;
    height: auto;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    padding: 1rem;
}

.cv-preview-doc {
    box-sizing: border-box;
    width: 100%;
    max-width: 210mm;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 10mm 12mm;
    color: #222;
    font-size: 11px;
    line-height: 1.45;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.cv-preview-doc p,
.cv-preview-doc li,
.cv-preview-doc div {
    font-size: inherit;
    line-height: inherit;
}

.cv-preview-doc p {
    margin: 0 0 0.45em;
}

.cv-preview-doc p:last-child {
    margin-bottom: 0;
}

.cv-preview-doc ul,
.cv-preview-doc ol {
    margin: 0 0 0.45em;
    padding-left: 1.15em;
}

.cv-preview-rich ul {
    list-style-type: disc;
    list-style-position: outside;
}

.cv-preview-rich ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.cv-preview-rich ul,
.cv-preview-rich ol {
    margin: 0 0 0.45em;
    padding-left: 1.15em;
}

.cv-preview-doc li,
.cv-preview-rich li {
    display: list-item;
    margin-bottom: 0.2em;
}

.cv-preview-doc h4 {
    font-size: 11px;
    font-weight: 700;
    margin: 0.5em 0 0.25em;
    color: #222;
}

.cv-preview-header {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.cv-preview-name {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: #111;
    line-height: 1.2;
}

.cv-preview-category {
    margin: 0 0 0.35rem;
    color: #666;
    font-weight: 500;
    font-size: 10.5px;
}

.cv-preview-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 10px;
    color: #555;
}

.cv-preview-contact li {
    margin-bottom: 0.2rem;
}

.cv-preview-contact i {
    width: 1.1rem;
    margin-right: 0.25rem;
    color: #888;
}

.cv-preview-section {
    margin-bottom: 0.75rem;
}

.cv-preview-section h2 {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cv-accent, #475569);
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.cv-preview-section p {
    margin: 0 0 0.45em;
}

.cv-preview-section p:last-child {
    margin-bottom: 0;
}

.cv-preview-rich p {
    margin: 0 0 0.45em;
}

.cv-preview-rich p:last-child {
    margin-bottom: 0;
}

.cv-preview-rich strong,
.cv-preview-rich b {
    font-weight: 700;
}

.cv-preview-rich em,
.cv-preview-rich i {
    font-style: italic;
}

.cv-preview-rich u {
    text-decoration: underline;
}

.cv-preview-item {
    margin-bottom: 0.55rem;
}

.cv-preview-item h3 {
    font-size: 11.5px;
    margin: 0 0 0.1rem;
    font-weight: 600;
}

.cv-preview-meta {
    font-size: 10px;
    color: #666;
    margin: 0 0 0.25rem;
}

.cv-preview-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cv-preview-tags li {
    background: var(--cv-accent-soft, #f3f4f6);
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-size: 9.5px;
    color: #333;
}

.cv-preview-footer {
    margin-top: 0.85rem;
    padding-top: 0.55rem;
    border-top: 1px solid #eee;
    color: #aaa;
    text-align: center;
    font-size: 9px;
}

#cvPreviewModal .modal-content {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

/* PDF capture host — off-screen for html2canvas, then removed */
.cv-pdf-sandbox {
    position: fixed;
    top: 0;
    left: -1200px;
    width: 794px;
    max-width: 794px;
    z-index: -1;
    background: #fff;
    pointer-events: none;
    overflow: visible;
}

body.cv-pdf-generating {
    overflow: hidden;
}

.cv-pdf-loader {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.42);
}

.cv-pdf-loader[hidden] {
    display: none !important;
}

.cv-pdf-loader__panel {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.cv-pdf-loader__panel .fa-spinner {
    color: #2563eb;
    font-size: 1.1rem;
}

.cv-pdf-sandbox .cv-preview-doc,
.cv-pdf-sandbox .cv-preview-doc--pdf {
    width: 794px;
    max-width: 794px;
    margin: 0;
    padding: 10mm 12mm;
    box-shadow: none;
    border-radius: 0;
    position: relative;
    left: 0;
    top: 0;
    transform: none;
}

.cv-pdf-sandbox .cv-preview-rich p,
.cv-pdf-sandbox .cv-preview-section p {
    display: block;
    margin: 0 0 6px;
    line-height: 1.45;
}

.cv-pdf-sandbox .cv-preview-rich p:last-child,
.cv-pdf-sandbox .cv-preview-section p:last-child {
    margin-bottom: 0;
}

.cv-pdf-sandbox .cv-preview-rich br {
    display: block;
    margin-bottom: 5px;
    line-height: 5px;
}

.cv-pdf-sandbox .cv-preview-rich ul,
.cv-pdf-sandbox .cv-preview-rich ol {
    display: block;
    margin: 0 0 6px;
    padding-left: 14px;
}

.cv-pdf-sandbox .cv-preview-rich ul {
    list-style-type: disc;
    list-style-position: outside;
}

.cv-pdf-sandbox .cv-preview-rich ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.cv-pdf-sandbox .cv-preview-rich li {
    display: list-item;
    margin-bottom: 2px;
}

@media print {
    .cv-preview-shell {
        padding: 0;
        background: transparent;
    }

    .cv-preview-doc {
        box-shadow: none;
    }
}

/* Flat form zones */
body.account-area.account-cv-edit .cv-form-zone {
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(125, 128, 135, 0.14);
}

body.account-area.account-cv-edit .cv-form-zone:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

body.account-area.account-cv-edit .cv-form-zone__head {
    margin-bottom: 0.85rem;
}

body.account-area.account-cv-edit .cv-form-zone__head--toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

body.account-area.account-cv-edit .cv-form-zone__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
}

body.account-area.account-cv-edit .cv-form-zone__desc {
    margin: 0.2rem 0 0;
    font-size: 0.84rem;
    color: #6c757d;
}

body.account-area.account-cv-edit .cv-form-zone__subhead {
    margin-top: 0.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(125, 128, 135, 0.14);
}

body.account-area.account-cv-edit .cv-form-zone__subhead--first {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

body.account-area.account-cv-edit .cv-form-zone__subhead-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}

body.account-area.account-cv-edit .cv-form-zone__subhead-row .cv-profile-readonly__edit-link {
    margin-top: 0.15rem;
}

body.account-area.account-cv-edit .cv-category-preview-card {
    position: relative;
    width: 100%;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--cv-category-gradient, linear-gradient(135deg, #4b6cb7 0%, #182848 100%));
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
    color: #fff;
    transition: background 0.28s ease, box-shadow 0.28s ease, opacity 0.2s ease;
}

body.account-area.account-cv-edit .cv-category-preview-card--banner {
    min-height: 108px;
}

body.account-area.account-cv-edit .cv-category-preview-card__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.32) 0%, transparent 48%),
        radial-gradient(circle at 88% 92%, rgba(0, 0, 0, 0.14) 0%, transparent 42%);
    pointer-events: none;
}

body.account-area.account-cv-edit .cv-category-preview-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    min-height: 108px;
    padding: 1rem 1.15rem;
    box-sizing: border-box;
}

body.account-area.account-cv-edit .cv-category-preview-card--banner .cv-category-preview-card__content {
    flex-direction: row;
    text-align: left;
}

body.account-area.account-cv-edit .cv-category-preview-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    font-size: 2.1rem;
    line-height: 1;
    flex-shrink: 0;
}

body.account-area.account-cv-edit .cv-category-preview-card__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

body.account-area.account-cv-edit .cv-category-preview-card__eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    opacity: 0.88;
    line-height: 1.2;
}

body.account-area.account-cv-edit .cv-category-preview-card__title {
    margin: 0.35rem 0 0;
    font-size: clamp(0.95rem, 2.4vw, 1.08rem);
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    width: 100%;
    max-width: none;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    body.account-area.account-cv-edit .cv-category-preview-card--banner .cv-category-preview-card__content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }

    body.account-area.account-cv-edit .cv-category-preview-card__text {
        align-items: center;
    }

    body.account-area.account-cv-edit .cv-category-preview-card__title {
        text-align: center;
    }
}

body.account-area.account-cv-edit .cv-category-preview-card.is-placeholder {
    opacity: 0.9;
}

body.account-area.account-cv-edit .cv-category-preview-card.is-placeholder .cv-category-preview-card__title {
    font-weight: 600;
    opacity: 0.92;
}

body.account-area.account-cv-edit .cv-category-select-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

body.account-area.account-cv-edit .cv-category-select-icon {
    flex-shrink: 0;
}

body.account-area.account-cv-edit .cv-category-select-row .form-select {
    flex: 1;
    min-width: 0;
}

body.account-area.account-cv-edit .cv-category-select-icon--placeholder .cv-preview-listing-icon {
    opacity: 0.72;
}

body.account-area.account-cv-edit .cv-visibility-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

body.account-area.account-cv-edit .cv-visibility-fieldset legend {
    float: none;
    width: auto;
    padding: 0;
}

body.account-area.account-cv-edit .cv-visibility-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

body.account-area.account-cv-edit .cv-visibility-option {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 0.85rem 0.75rem 2.35rem;
    border: 1px solid rgba(125, 128, 135, 0.22);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    position: relative;
    min-height: 100%;
}

body.account-area.account-cv-edit .cv-visibility-option.is-selected {
    border-color: rgba(52, 168, 83, 0.45);
    background: rgba(52, 168, 83, 0.05);
}

body.account-area.account-cv-edit .cv-visibility-option .form-check-input {
    position: absolute;
    left: 0.85rem;
    top: 0.9rem;
    margin: 0;
}

body.account-area.account-cv-edit .cv-visibility-option__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a1a;
}

body.account-area.account-cv-edit .cv-visibility-option__desc {
    font-size: 0.78rem;
    color: #6c757d;
    line-height: 1.35;
}

/* Template picker modal */
.cv-template-modal-dialog {
    max-width: 1080px;
}

.cv-template-modal__body {
    padding: 1rem 1.25rem 1.25rem;
}

.cv-template-modal__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 1.25rem;
    align-items: start;
}

.cv-template-modal__preview-wrap {
    position: sticky;
    top: 0;
}

.cv-preview-shell--template-picker {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-height: 70vh;
    min-height: 420px;
    padding: 1rem;
    border: 1px solid rgba(125, 128, 135, 0.14);
    border-radius: 14px;
    background: linear-gradient(180deg, #eef2f6 0%, #f8fafc 100%);
    overflow: auto;
}

.cv-template-preview-page {
    position: relative;
    width: 100%;
    overflow: visible;
    display: flex;
    justify-content: center;
}

.cv-template-preview-scale {
    transform-origin: top center;
    will-change: transform;
    flex-shrink: 0;
}

.cv-template-preview-scale > .cv-preview-doc {
    width: 794px;
    max-width: none;
    margin: 0;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
}

.cv-preview-shell--template-picker .cv-preview-layout {
    grid-template-columns: 32% minmax(0, 1fr);
}

.cv-template-colors {
    margin-bottom: 1rem;
}

.cv-template-colors__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 0.55rem;
}

.cv-template-colors__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.cv-template-color-swatch {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0;
}

.cv-template-color-swatch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cv-template-color-swatch__dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.cv-template-color-swatch.is-selected .cv-template-color-swatch__dot {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rts-button-1, #2563eb);
}

.cv-template-icons {
    margin-bottom: 1rem;
}

.cv-template-icons__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 0.25rem;
}

.cv-template-icons__hint {
    line-height: 1.35;
}

.cv-template-icons__options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    max-height: 220px;
    overflow: auto;
    padding-right: 0.15rem;
}

.cv-template-icon-option {
    position: relative;
    display: block;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(125, 128, 135, 0.2);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cv-template-icon-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cv-template-icon-option.is-selected {
    border-color: var(--rts-button-1, #2563eb);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
    background: #f8fbff;
}

.cv-template-icon-option__title {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
}

.cv-template-icon-option__desc {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.35;
}

.cv-template-card__icons-hint {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.cv-template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.cv-template-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem;
    border: 2px solid rgba(125, 128, 135, 0.2);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    margin: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cv-template-card.is-selected {
    border-color: var(--rts-button-1, #2563eb);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.cv-template-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cv-template-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 0.72;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    padding: 7%;
}

.cv-template-thumb {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5%;
    width: 100%;
    height: 100%;
}

.cv-template-thumb--photo {
    display: block;
}

.cv-template-thumb--sidebar {
    display: grid;
    grid-template-columns: 34% minmax(0, 1fr);
    gap: 5%;
    height: 100%;
}

.cv-template-thumb__header {
    display: block;
    width: 72%;
    height: 11%;
    border-radius: 2px;
    background: rgba(71, 85, 105, 0.28);
}

.cv-template-thumb__header--compact {
    width: 58%;
    margin-top: 2%;
}

.cv-template-thumb__photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(71, 85, 105, 0.34);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.cv-template-thumb__photo--sm {
    position: static;
    width: 46%;
    margin: 0 auto 8%;
    border-width: 1px;
}

.cv-template-thumb__section {
    display: block;
    width: 34%;
    height: 6%;
    border-radius: 2px;
    background: rgba(71, 85, 105, 0.2);
}

.cv-template-thumb__line {
    display: block;
    width: 100%;
    height: 5%;
    border-radius: 2px;
    background: rgba(71, 85, 105, 0.14);
}

.cv-template-thumb__line--short {
    width: 72%;
}

.cv-template-thumb__side {
    display: flex;
    flex-direction: column;
    gap: 6%;
    height: 100%;
    padding: 8% 6%;
    border-radius: 4px;
    background: rgba(71, 85, 105, 0.16);
}

.cv-template-thumb__side-head {
    display: block;
    width: 100%;
    height: 10%;
    border-radius: 2px;
    background: rgba(71, 85, 105, 0.28);
}

.cv-template-thumb__side-line {
    display: block;
    width: 100%;
    height: 6%;
    border-radius: 2px;
    background: rgba(71, 85, 105, 0.2);
}

.cv-template-thumb__side-line--short {
    width: 70%;
}

.cv-template-thumb__main {
    display: flex;
    flex-direction: column;
    gap: 5%;
    min-width: 0;
    padding-top: 2%;
}

.cv-template-card.is-selected .cv-template-thumb__side {
    background: rgba(37, 99, 235, 0.16);
}

.cv-template-card.is-selected .cv-template-thumb__header,
.cv-template-card.is-selected .cv-template-thumb__section,
.cv-template-card.is-selected .cv-template-thumb__side-head {
    background: rgba(37, 99, 235, 0.28);
}

.cv-template-card.is-selected .cv-template-thumb__line,
.cv-template-card.is-selected .cv-template-thumb__side-line {
    background: rgba(37, 99, 235, 0.18);
}

.cv-template-card.is-selected .cv-template-thumb__photo {
    background: rgba(37, 99, 235, 0.34);
}

.cv-template-card__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #222;
}

.cv-template-card__desc {
    font-size: 0.72rem;
    color: #6c757d;
    line-height: 1.3;
}

.cv-template-modal__footer {
    justify-content: space-between;
}

/* Preview color schemes */
.cv-preview-doc.cv-scheme-slate { --cv-accent: #475569; --cv-accent-soft: rgba(71, 85, 105, 0.12); }
.cv-preview-doc.cv-scheme-blue { --cv-accent: #2563eb; --cv-accent-soft: rgba(37, 99, 235, 0.12); }
.cv-preview-doc.cv-scheme-teal { --cv-accent: #0d9488; --cv-accent-soft: rgba(13, 148, 136, 0.12); }
.cv-preview-doc.cv-scheme-green { --cv-accent: #16a34a; --cv-accent-soft: rgba(22, 163, 74, 0.12); }
.cv-preview-doc.cv-scheme-purple { --cv-accent: #7c3aed; --cv-accent-soft: rgba(124, 58, 237, 0.12); }
.cv-preview-doc.cv-scheme-burgundy { --cv-accent: #9f1239; --cv-accent-soft: rgba(159, 18, 57, 0.12); }

.cv-preview-doc .cv-preview-header {
    border-bottom-color: var(--cv-accent-soft, #f0f0f0);
}

.cv-preview-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--cv-accent-soft, #eee);
    background: #f8fafc;
}

.cv-preview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cv-preview-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cv-accent, #888);
    font-size: 1.35rem;
}

.cv-preview-doc.cv-tpl-photo .cv-preview-header {
    align-items: center;
}

.cv-preview-doc.cv-tpl-photo .cv-preview-photo {
    margin-left: auto;
    order: 2;
}

.cv-preview-layout {
    display: grid;
    grid-template-columns: 32% minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.cv-preview-sidebar {
    background: var(--cv-accent-soft, #f8fafc);
    border-radius: 6px;
    padding: 0.75rem 0.65rem;
}

.cv-preview-sidebar .cv-preview-name {
    font-size: 14px;
}

.cv-preview-sidebar .cv-preview-section--sidebar h2,
.cv-preview-sidebar .cv-preview-section h2 {
    font-size: 8.5px;
}

.cv-preview-sidebar .cv-preview-contact {
    font-size: 9.5px;
}

.cv-preview-main {
    min-width: 0;
}

/* —— CV AI helper —— */
body.account-area.account-cv-edit .cv-ai-helper-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
}

body.account-area.account-cv-edit .cv-ai-helper-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

body.account-area.account-cv-edit .cv-ai-helper-banner__title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
}

body.account-area.account-cv-edit .cv-ai-helper-banner__desc {
    margin-top: 0.2rem;
    font-size: 0.84rem;
    color: #64748b;
    max-width: 42rem;
}

body.account-area.account-cv-edit .cv-ai-helper-banner__quota {
    margin-top: 0.45rem;
}

body.account-area.account-cv-edit .cv-ai-helper-banner__btn {
    flex-shrink: 0;
    white-space: nowrap;
}

body.account-area.account-cv-edit .cv-ai-open-btn {
    border-color: rgba(37, 99, 235, 0.28);
    color: #1d4ed8;
}

body.account-area.account-cv-edit .cv-ai-modal .cv-ai-modal__presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

body.account-area.account-cv-edit .cv-ai-modal .cv-ai-modal__field .listing-form-label {
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

body.account-area.account-cv-edit .cv-ai-modal .cv-ai-modal__sections {
    margin-bottom: 0.85rem;
}

body.account-area.account-cv-edit .cv-ai-modal .cv-ai-modal__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
}

body.account-area.account-cv-edit .cv-ai-modal .cv-ai-modal__check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    color: #334155;
    cursor: pointer;
    margin: 0;
}

body.account-area.account-cv-edit .cv-ai-modal .cv-ai-modal__result {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(125, 128, 135, 0.18);
}

body.account-area.account-cv-edit .cv-ai-modal .cv-ai-modal__block {
    margin-bottom: 0.85rem;
}

body.account-area.account-cv-edit .cv-ai-modal .cv-ai-modal__block h6 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin: 0 0 0.4rem;
}

body.account-area.account-cv-edit .cv-ai-modal .cv-ai-modal__preview {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid rgba(125, 128, 135, 0.14);
    font-size: 0.88rem;
    max-height: 180px;
    overflow: auto;
}

body.account-area.account-cv-edit .cv-ai-modal .cv-ai-modal__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

body.account-area.account-cv-edit .cv-ai-modal .cv-ai-modal__exp {
    margin-bottom: 0.55rem;
}

body.account-area.account-cv-edit .cv-ai-modal .cv-ai-modal__exp-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

body.account-area.account-cv-edit .cv-ai-modal .cv-ai-modal__block--tips ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.86rem;
    color: #475569;
}

@media (max-width: 575.98px) {
    body.account-area.account-cv-edit .cv-ai-modal .cv-ai-modal__presets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .cv-form-section__head {
        flex-direction: column;
        align-items: stretch;
    }

    .cv-form-section__add {
        align-self: flex-start;
    }

    .cv-form-section__desc {
        padding-left: 0;
    }

    body.account-area.account-cv-edit .cv-content-meta__stats,
    body.account-area.account-cv-edit .cv-content-meta__stats:has(> :nth-child(3):last-child),
    body.account-area.account-cv-edit .cv-content-meta__stats:has(> :nth-child(4)) {
        grid-template-columns: 1fr;
    }

    body.account-area.account-cv-edit .cv-visibility-options {
        grid-template-columns: 1fr;
    }

    .cv-template-modal__layout {
        grid-template-columns: 1fr;
    }

    .cv-template-modal__preview-wrap {
        position: static;
    }

    .cv-preview-shell--template-picker .cv-preview-layout {
        grid-template-columns: 32% minmax(0, 1fr);
    }

    .cv-preview-layout {
        grid-template-columns: 1fr;
    }
}
