.template-choice-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.template-choice-backdrop.hidden {
    display: none;
}

.template-choice-dialog {
    width: min(100%, 440px);
    background: white;
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    padding: 1.35rem;
}

.template-choice-dialog h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    color: #0f172a;
}

.template-choice-lead {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
}

.template-choice-status {
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.82rem;
}

.template-choice-status.hidden {
    display: none;
}

.template-choice-card[data-template-choice="import"] {
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.template-choice-name {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.template-choice-name input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.7rem 0.85rem;
    font: inherit;
    font-weight: 500;
    color: #0f172a;
}

.template-choice-name input:focus {
    outline: 2px solid #bfdbfe;
    border-color: #2563eb;
}

.template-choice-options {
    display: grid;
    gap: 0.55rem;
}

.template-choice-card {
    display: grid;
    gap: 0.2rem;
    width: 100%;
    text-align: left;
    border: 2px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    background: white;
    cursor: pointer;
    font: inherit;
}

.template-choice-card strong {
    color: #0f172a;
    font-size: 0.92rem;
}

.template-choice-card span {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
}

.template-choice-card:hover {
    border-color: #bfdbfe;
    background: #f8fafc;
}

.template-choice-card[data-template-choice="keep"] {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.template-choice-card[data-template-choice="fresh"] {
    border-color: #fecaca;
}

.template-choice-cancel {
    margin-top: 0.75rem;
    width: 100%;
    background: transparent;
    color: #64748b;
    box-shadow: none;
}

.template-choice-cancel:hover {
    background: #f1f5f9;
    color: #334155;
}

.cv-name-field {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.cv-name-field span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.cv-name-field input {
    width: min(220px, 32vw);
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.45rem 0.65rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
}
