/* --- ОСНОВНИЙ КОНТЕЙНЕР (ПОВНІСТЮ ПРОЗОРИЙ) --- */
.scv-app {
    display: flex; 
    width: 100%; 
    min-height: 85vh; 
    
    /* ВАЖЛИВО: Фон прозорий, щоб було видно фон сайту */
    background: transparent !important; 
    
    color: var(--sh-text);
    font-family: var(--font-family, system-ui, -apple-system, BlinkMacSystemFont, sans-serif);
    
    /* Компенсація відступів теми (якщо є) */
    margin: 0; 
    width: 100%;
}

/* Ізоляція стилів всередині плагіна */
.scv-app * {
    font-family: var(--font-family, system-ui, -apple-system, BlinkMacSystemFont, sans-serif) !important;
    box-sizing: border-box;
}

/* --- САЙДБАР (ЗЛІВА) --- */
.scv-sidebar {
    width: min(100%, clamp(320px, 38vw, 430px)); 
    flex-shrink: 0; 
    display: flex; 
    flex-direction: column;
    
    /* Ніяких рамок і фонів - блоки просто "висять" у повітрі */
    border: none !important; 
    background: transparent !important; 
    
    color: var(--sh-text);
}

.scv-scroll-area {
    padding: 18px 0 18px 0;
    padding-right: 14px;
    overflow-y: auto; 
    height: 100%; 
    scrollbar-width: thin;
}

/* --- 3D КАРТКИ (НАЛАШТУВАННЯ) --- */
/* Стиль точно як у .skill-card з вашого файлу */
.scv-acc {
    background: var(--sh-pill-bg, var(--sh-3d-gradient)) !important;
    border: 1px solid var(--sh-menu-border) !important;
    box-shadow: var(--sh-3d-shadow) !important;
    border-radius: var(--lg-radius-pill) !important;
    
    margin-bottom: 18px;
    transition: transform var(--lg-fast) var(--lg-ease-fluid), box-shadow var(--lg-medium) ease, border-color var(--lg-medium) ease;
    overflow: hidden;
    position: relative;
}

.scv-acc summary {
    min-height: 52px;
    padding: 10px 14px;
    font-weight: 800; text-transform: uppercase; font-size: var(--sh-card-title-size);
    color: var(--sh-text); text-shadow: var(--sh-text-3d, none);
    cursor: pointer; list-style: none; display: flex; justify-content: flex-start; align-items: center; outline: none;
    text-align: left;
    position: relative;
}
.scv-acc summary::-webkit-details-marker { display: none; }
.scv-acc-body { padding: 0 16px 16px 16px; border-top: none; }

.scv-acc:not([open]) {
    border-radius: var(--lg-radius-pill) !important;
}

.scv-acc:not([open]) summary {
    border-radius: var(--lg-radius-pill);
}

.scv-acc[open] {
    border-radius: var(--sh-card-radius-compact) !important;
}

.scv-acc[open] summary {
    border-top-left-radius: var(--sh-card-radius-compact);
    border-top-right-radius: var(--sh-card-radius-compact);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.scv-acc[open] .scv-acc-body {
    border-bottom-left-radius: var(--sh-card-radius-compact);
    border-bottom-right-radius: var(--sh-card-radius-compact);
    overflow: hidden;
}

/* --- ІНПУТИ (ЯК У ВАС В ТЕМІ) --- */
.scv-input, .scv-textarea, select.scv-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px !important;
    margin-bottom: 12px !important;
    border-radius: var(--lg-radius-pill) !important;
    
    background: var(--sh-menu-bg) !important;
    border: 1px solid var(--sh-menu-border) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05) !important; /* Вдавленість */
    
    color: var(--sh-text) !important; 
    font-size: var(--sh-card-meta-size) !important; font-weight: 600 !important; appearance: none;
    transition: box-shadow var(--lg-fast) ease, border-color var(--lg-fast) ease, background-color var(--lg-medium) ease;
}
.scv-textarea {
    min-height: 110px;
    border-radius: var(--sh-card-radius-compact) !important;
    resize: none !important; /* Прибираємо темний квадрат (resize handle) */
    appearance: none !important;
    -webkit-appearance: none !important;
}
.scv-input:focus, .scv-textarea:focus {
    border-color: var(--sh-text) !important; outline: none;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.1) !important;
}
.scv-label { 
    font-size: 11px; font-weight: 800; text-transform: uppercase; 
    margin-bottom: 8px; display: block; opacity: 0.7; color: var(--sh-text); 
}
.scv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
/* Один блок у рядку (напр. «Мова CV») — на всю ширину, як інші поля */
.scv-row > div:only-child {
    grid-column: 1 / -1;
    min-width: 0;
}
.scv-row > div:only-child .scv-input,
.scv-row > div:only-child select.scv-input {
    width: 100%;
}


/* --- БЛОКИ (3D КАРТКИ) --- */
.scv-photo-wrap { margin-bottom: 15px; }
.scv-photo-wrap label {
    display: flex; align-items: center; gap: 20px; cursor: pointer;
    background: var(--sh-pill-bg); 
    border: 1px solid var(--sh-menu-border);
    box-shadow: var(--sh-3d-shadow); 
    padding: var(--sh-card-padding-compact-mobile); border-radius: var(--sh-card-radius-compact);
}
.scv-photo-wrap img { width: 50px; height: 50px; border-radius: 14px; object-fit: cover; border: 1px solid var(--sh-menu-border); }
.scv-color-inp { width: 100%; height: 45px; border: 1px solid var(--sh-menu-border); border-radius: 12px; padding: 4px; background: transparent; cursor: pointer; }
.scv-color-inp {
    border-radius: var(--lg-radius-pill);
}

/* Картки досвіду/освіти */
.scv-job-card {
    position: relative; padding: 14px; margin-bottom: 14px; border-radius: 16px;
    /* Трохи темніший фон для контрасту всередині акордеона */
    background: var(--sh-menu-bg) !important; 
    border: 1px solid var(--sh-menu-border) !important;
    box-shadow: var(--sh-3d-shadow) !important;
    animation: fadeIn 0.3s ease;
}
.scv-remove-btn {
    position: absolute; top: -10px; right: -10px; width: 30px; height: 30px;
    margin: 0; padding: 0; border: none; font: inherit; line-height: 1;
    background: #ff4757; color: #fff !important; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 5;
    -webkit-appearance: none; appearance: none;
}
.scv-remove-btn:focus-visible {
    outline: 2px solid var(--sh-text, #fff); outline-offset: 2px;
}

/* --- КНОПКИ --- */
.scv-footer { margin-top: 40px; }

.scv-btn-main {
    width: 100%;
    min-height: 56px;
    padding: 12px 18px !important;
    background: var(--sh-pill-bg) !important; 
    border: 1px solid var(--sh-menu-border) !important;
    box-shadow: var(--sh-3d-shadow) !important;
    border-radius: var(--lg-radius-pill) !important;
    color: var(--sh-text) !important; text-shadow: var(--sh-text-3d, none);
    font-weight: 800 !important; font-size: 16px !important; text-transform: uppercase;
    cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px;
}
.scv-btn-main:hover { transform: translateY(-2px); }
.scv-btn-dashed {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    background: transparent; 
    border: 2px dashed var(--sh-text); border-radius: var(--lg-radius-pill); 
    color: var(--sh-text); font-weight: 800; opacity: 0.5; cursor: pointer;
}
.scv-btn-dashed:hover { opacity: 1; }

/* --- ПРЕВ'Ю (СПРАВА) --- */
.scv-preview-panel {
    flex: 1; 
    background: transparent !important; /* Прозорий фон, щоб зливатися з сайтом */
    display: flex; justify-content: center; 
    padding: 20px 16px 24px;
    align-items: flex-start; /* Вирівнювання зверху */
    overflow: auto;
}

/* Папір */
.scv-paper {
    width: min(210mm, 100%);
    min-height: 297mm; 
    background: var(--scv-paper-bg, #fff) !important; 
    color: #000;      
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 18px 55px rgba(0,0,0,0.22);
    margin: 0 auto 16px;
    flex-shrink: 0;
    overflow: hidden;
}

#cv-render {
    width: 100%;
    min-height: 297mm;
}

#cv-render .cv-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 297mm;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .scv-app { flex-direction: column; height: auto; min-height: auto; margin: 0; width: 100%; }
    .scv-sidebar { width: 100%; }
    .scv-preview-panel { display: none; }
    .scv-scroll-area { padding: 0 0 50px 0; }
}

/* !!! ВАЖЛИВО: ЦЕЙ БЛОК ВБИВАЄ АНІМАЦІЮ ТЕМИ В ПРЕВ'Ю !!! 
   Використовуємо #ID, бо він пріоритетніший за .class вашої теми
*/
#cv-render,
#cv-render *,
#cv-render div,
#cv-render span,
#cv-render p,
#cv-render h1 {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    /* Запобігаємо анімації відступів */
    transition-property: none !important; 
}
/* ... (весь попередній код) ... */

/* --- PDF GENERATION LOADER --- */
#scv-pdf-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.98); /* Майже непрозорий білий */
    z-index: var(--sh-z-system, 90);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-family, system-ui, -apple-system, BlinkMacSystemFont, sans-serif);
    color: #111;
}

#scv-pdf-overlay .spinner {
    width: 50px; height: 50px;
    border: 5px solid #eee;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

#scv-pdf-overlay .text {
    font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Контейнер для клону (схований під лоадером) */
#scv-print-stage {
    position: absolute;
    top: 0; left: 0;
    width: 210mm;
    min-height: 297mm;
    background: var(--scv-paper-bg, #fff);
    z-index: calc(var(--sh-z-system, 90) - 1);
    pointer-events: none;
}
/* ... (весь попередній код) ... */

/* --- ПЛАВАЮЧА КНОПКА ЗАВАНТАЖЕННЯ (MODAL) --- */
.scv-floating-btn {
    position: absolute; 
    bottom: 30px; 
    right: 30px; 
    z-index: var(--sh-z-floating-action, 40);

    /* ВАЖЛИВО: Спочатку твердий колір фону теми, потім градієнт */
    background-color: var(--sh-bg) !important; 
    background-image: var(--sh-3d-gradient) !important;
    
    /* Чіткі рамки і текст */
    border: 1px solid var(--sh-menu-border) !important;
    color: var(--sh-text) !important;
    text-shadow: var(--sh-text-3d, none);
    
    /* Глибока тінь, щоб відділити від білого паперу */
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), var(--sh-3d-shadow) !important;
    
    padding: 16px 35px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scv-floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.4), var(--sh-3d-shadow) !important;
}

.scv-floating-btn:active {
    transform: scale(0.98);
}

/* Широка кнопка в модалці PDF (зручно на мобільних) */
.scv-floating-btn.scv-floating-btn--wide {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    justify-content: center;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════
   TEMPLATE SELECTOR GRID
   ═══════════════════════════════════════════════════ */
#scv-tpl-grid {
    /* Дефолти до першого render(); далі оновлює core.js */
    --cv-accent: #1a1a1a;
    --cv-text-primary: #2d3436;
}
.scv-tpl-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    /* Два рівні рядки однакової висоти → усі 8 карток одного розміру */
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
    min-height: 0;
    align-items: stretch;
    justify-items: stretch;
}
.scv-tpl-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: var(--sh-menu-bg);
    border: 2px solid var(--sh-menu-border);
    border-radius: 10px;
    padding: 5px 5px 7px;
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, transform 0.15s;
}
.scv-tpl-card:hover { transform: translateY(-1px); border-color: var(--sh-text); }
.scv-tpl-card.active { border-color: var(--sh-accent, #6c5ce7); }
.scv-tpl-card span {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    display: block;
    flex: 0 0 auto;
    line-height: 1.2;
    min-height: 2.4em;
    color: var(--sh-text); opacity: 0.6;
}
.scv-tpl-card.active span { opacity: 1; }
.scv-tpl-thumb {
    width: 100%;
    flex: 0 0 auto;
    /* Висота від ширини комірки; у високій клітинці залишок — під підписом */
    aspect-ratio: 210 / 297;
    border-radius: 4px;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 0;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .scv-tpl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(4, minmax(0, 1fr));
        min-height: 0;
    }
}

/* ═══════════════════════════════════════════════════
   SECTION VISIBILITY BUTTON
   ═══════════════════════════════════════════════════ */
.scv-acc summary { justify-content: flex-start; }
/* Override the old ::after arrow with a span */
.scv-acc summary::after { content: none !important; display: none !important; }
.scv-acc-title { flex: 1; }
.scv-acc-title {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: var(--sh-card-line-height);
    text-align: left;
    width: 100%;
    padding: 0 56px 0 0;
}
.scv-acc-right {
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}
.scv-acc-arrow { font-size: 22px; font-weight: 300; opacity: 0.55; min-width: 18px; text-align: center; }
.scv-acc-arrow::before { content: '+'; }
.scv-acc[open] .scv-acc-arrow::before { content: '−'; }

.scv-vis-btn {
    background: transparent; border: none; cursor: pointer;
    font-size: 15px; opacity: 0.45; padding: 2px 5px;
    border-radius: 6px; line-height: 1; transition: opacity 0.2s;
    flex-shrink: 0;
}
.scv-vis-btn:hover { opacity: 1; }
.scv-vis-btn.scv-vis-hidden { opacity: 0.15; filter: grayscale(1); }

/* ═══════════════════════════════════════════════════
   DOT RATING INPUT (in form)
   ═══════════════════════════════════════════════════ */
.scv-dots-input {
    display: flex; gap: 7px; align-items: center; flex-shrink: 0; padding: 4px 0;
}
.scv-dot {
    display: inline-block;
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid var(--sh-text); background: transparent;
    cursor: pointer; transition: background 0.15s; opacity: 0.4;
}
.scv-dot.dot-on { background: var(--sh-text); opacity: 1; }

/* ═══════════════════════════════════════════════════
   UX EXTRAS
   ═══════════════════════════════════════════════════ */
#scv-save-status {
    font-size: 12px; font-weight: 600; opacity: 0.6;
    color: var(--sh-text); display: none;
}
#bio-count {
    font-size: 11px; opacity: 0.45; color: var(--sh-text);
    display: block; text-align: right; margin-top: -10px; margin-bottom: 10px;
}
.scv-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0 10px;
}
#scv-save-status {
    flex: 1;
    padding-right: 8px;
}
/* ПК: компактна кнопка за шириною тексту (без фіксованих 220×56) */
.scv-btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 52px;
    padding: 12px 18px !important;
    border-radius: var(--lg-radius-pill) !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: normal;
    color: var(--sh-text) !important;
    background: var(--sh-menu-bg) !important;
    border: 1px solid var(--sh-menu-border) !important;
    box-shadow: var(--sh-3d-shadow) !important;
    transition: transform var(--lg-fast) var(--lg-ease-fluid), box-shadow var(--lg-medium) ease, border-color var(--lg-medium) ease, opacity var(--lg-fast) ease;
    opacity: 0.95;
    box-sizing: border-box;
}
.scv-btn-clear-icon { font-size: 15px; line-height: 1; opacity: 0.88; }
.scv-btn-clear:hover {
    opacity: 1;
    transform: translateY(-1px);
    border-color: rgba(231, 76, 60, 0.45) !important;
    color: #e74c3c !important;
}
.scv-btn-clear:active { transform: translateY(0); }

@media (max-width: 1024px) {
    .scv-footer-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .scv-btn-clear {
        width: 100%;
        min-width: 0;
        max-width: none;
        white-space: normal;
        min-height: 52px;
        padding: 12px 20px !important;
        border-radius: var(--lg-radius-pill) !important;
        font-size: 14px !important;
    }
    #scv-save-status {
        padding-right: 0;
    }
}

/* =========================================
   Liquid Glass unify layer
   ========================================= */
.scv-acc,
.scv-job-card,
.scv-photo-wrap label,
.scv-btn-main,
.scv-btn-clear,
.scv-input,
.scv-textarea,
.scv-floating-btn {
    background: var(--lg-surface-bg) !important;
    border: 1px solid var(--lg-surface-border) !important;
    box-shadow: var(--lg-shadow-soft), var(--lg-inner-highlight) !important;
    -webkit-backdrop-filter: var(--lg-blur);
    backdrop-filter: var(--lg-blur);
}

.scv-btn-main:active,
.scv-btn-clear:active,
.scv-floating-btn:active {
    transform: scale(var(--lg-press-scale));
    box-shadow: var(--lg-shadow-press), var(--lg-inner-highlight) !important;
}

/* All action buttons match category capsules */
.scv-btn-main,
.scv-btn-clear,
.scv-btn-dashed {
    min-height: 56px;
    padding: 12px 18px !important;
    border-radius: var(--lg-radius-pill) !important;
    border: 1px solid var(--lg-surface-border) !important;
    box-shadow: var(--lg-shadow-soft), var(--lg-inner-highlight) !important;
    background: var(--lg-surface-bg) !important;
    color: var(--sh-text) !important;
    font-size: var(--sh-card-title-size) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    text-align: center;
    box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
    .scv-app *,
    .scv-floating-btn {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* =========================================
   CV emergency mobile-safe layer
   ========================================= */
.scv-app {
    font-size: 13px;
    line-height: 1.4;
}

.scv-scroll-area {
    padding-right: 12px;
}

.scv-label {
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: 0.03em;
}

.scv-acc {
    border-radius: var(--lg-radius-xl) !important;
    margin-bottom: 14px;
}

.scv-acc summary {
    min-height: 52px;
    padding: 10px 14px;
    justify-content: flex-start;
}

.scv-acc-title {
    font-size: 14px;
    line-height: 1.25;
    text-align: left;
    padding: 0 54px 0 0;
    width: 100%;
}

.scv-acc-right {
    right: 12px;
    gap: 4px;
}

.scv-input,
.scv-textarea,
select.scv-input {
    min-height: 48px;
    font-size: 14px !important;
}

.scv-textarea {
    min-height: 112px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    border-radius: var(--sh-card-radius-compact) !important;
}

.scv-btn-main,
.scv-btn-dashed,
.scv-btn-clear {
    min-height: 50px;
    font-size: 13px !important;
}

.scv-row {
    gap: 10px;
}

.scv-job-card {
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 14px;
}

/* Keep strong rounded corners when section is expanded */
.scv-acc[open] {
    border-radius: var(--lg-radius-xl) !important;
}

.scv-acc[open] summary {
    border-top-left-radius: var(--lg-radius-xl) !important;
    border-top-right-radius: var(--lg-radius-xl) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.scv-acc[open] .scv-acc-body {
    border-bottom-left-radius: var(--lg-radius-xl) !important;
    border-bottom-right-radius: var(--lg-radius-xl) !important;
    overflow: hidden;
}

.scv-remove-btn {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    z-index: 6;
}

.scv-floating-btn {
    min-height: 50px;
    font-size: 13px !important;
    padding: 0 18px !important;
    box-shadow: none !important;
}

.scv-photo-wrap label {
    box-shadow: 0 8px 20px rgba(20, 32, 56, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}

@media (max-width: 1024px) {
    .scv-app {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .scv-scroll-area {
        padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 640px) {
    .scv-row {
        grid-template-columns: 1fr;
    }

    .scv-acc-body {
        padding: 0 12px 12px 12px;
    }

    .scv-acc-title {
        font-size: 13px;
        padding: 0 48px 0 2px;
    }

    .scv-floating-btn {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        justify-content: center;
    }

    .scv-floating-btn.scv-floating-btn--wide {
        max-width: 100%;
    }
}

/* =========================================
   Unified design system parity
   ========================================= */
.scv-acc,
.scv-job-card,
.scv-photo-wrap label,
.scv-btn-main,
.scv-btn-dashed,
.scv-btn-clear,
.scv-input,
.scv-textarea,
.scv-floating-btn,
.scv-tpl-card,
.scv-color-inp {
    background: var(--sh-ui-surface-bg) !important;
    border: 1px solid var(--sh-ui-surface-border) !important;
    box-shadow: var(--lg-shadow-soft), var(--lg-inner-highlight), var(--sh-ui-floating-shadow) !important;
    -webkit-backdrop-filter: var(--lg-blur) !important;
    backdrop-filter: var(--lg-blur) !important;
}

.scv-acc,
.scv-job-card,
.scv-photo-wrap label,
.scv-tpl-card {
    border-radius: var(--sh-ui-card-radius) !important;
}

.scv-btn-main,
.scv-btn-dashed,
.scv-btn-clear,
.scv-floating-btn {
    min-height: var(--sh-ui-button-height) !important;
    padding: 0 var(--sh-ui-button-padding-inline) !important;
    border-radius: var(--sh-ui-pill-radius) !important;
    line-height: 1.35 !important;
}

.scv-input,
.scv-textarea,
select.scv-input,
.scv-color-inp {
    min-height: var(--sh-ui-input-height) !important;
    border-radius: var(--sh-ui-pill-radius) !important;
    padding-left: var(--sh-ui-space-3) !important;
    padding-right: var(--sh-ui-space-3) !important;
    font-size: var(--sh-ui-font-size-sm) !important;
    line-height: var(--sh-ui-line-height-base) !important;
}

.scv-textarea {
    min-height: var(--sh-ui-input-textarea-min) !important;
    border-radius: var(--sh-ui-card-radius) !important;
}

.scv-color-inp {
    padding: 4px 8px !important;
}

.scv-tpl-card.active,
.scv-acc[open] {
    border-color: var(--sh-ui-surface-border-strong) !important;
}

.scv-btn-main:disabled,
.scv-btn-dashed:disabled,
.scv-btn-clear:disabled,
.scv-input:disabled,
.scv-textarea:disabled,
select.scv-input:disabled {
    opacity: var(--sh-ui-disabled-opacity);
    cursor: not-allowed;
    filter: saturate(var(--sh-ui-disabled-saturation));
    transform: none !important;
}

.scv-input:focus-visible,
.scv-textarea:focus-visible,
select.scv-input:focus-visible,
.scv-btn-main:focus-visible,
.scv-btn-dashed:focus-visible,
.scv-btn-clear:focus-visible,
.scv-floating-btn:focus-visible {
    outline: none;
    box-shadow: var(--lg-shadow-soft), var(--lg-inner-highlight), var(--sh-ui-focus-ring) !important;
}



/* =========================================
   Final reference-match layer for CV Builder
   ========================================= */
.scv-app {
    position: relative;
    align-items: stretch;
    gap: clamp(18px, 3vw, 28px);
    padding: clamp(8px, 2vw, 18px);
    border-radius: clamp(26px, 4vw, 34px);
    background: transparent !important;
    box-shadow: none !important;

    /* Design System Variables to bypass dark mode inversion */
    --scv-glass-bg: rgba(255, 255, 255, 0.1);
    --scv-glass-bg-hover: rgba(255, 255, 255, 0.15);
    --scv-glass-bg-active: rgba(255, 255, 255, 0.2);
    --scv-glass-border: rgba(255, 255, 255, 0.2);
    --scv-glass-border-hover: rgba(255, 255, 255, 0.4);
    --scv-paper-bg: #ffffff;
}

html.wp-dark-mode-active .scv-app,
body.wp-dark-mode-active .scv-app {
    --scv-glass-bg: rgba(255, 255, 255, 0.05);
    --scv-glass-bg-hover: rgba(255, 255, 255, 0.1);
    --scv-glass-bg-active: rgba(255, 255, 255, 0.15);
    --scv-glass-border: rgba(255, 255, 255, 0.1);
    --scv-glass-border-hover: rgba(255, 255, 255, 0.25);
    --scv-paper-bg: #ffffff;
}

.scv-sidebar {
    width: min(100%, 460px);
}

.scv-scroll-area {
    padding: 8px 4px calc(128px + env(safe-area-inset-bottom, 0px)) 4px;
    scrollbar-width: none;
}

.scv-scroll-area::-webkit-scrollbar {
    display: none;
}

.scv-acc {
    margin-bottom: 16px;
    border-radius: 28px !important;
    overflow: hidden;
    background: var(--scv-glass-bg) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--scv-glass-border) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.scv-acc:hover {
    border-color: var(--scv-glass-border-hover) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
}

.scv-acc summary {
    min-height: 60px;
    padding: 16px 18px;
    align-items: center;
}

.scv-acc-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 72px 0 0;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.scv-acc-label-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.scv-acc-icon,
.scv-vis-btn::before,
.scv-btn-clear-icon,
.scv-btn-main-icon {
    display: inline-block;
    flex: 0 0 auto;
    background-color: var(--sh-accent);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.scv-acc-icon {
    width: 18px;
    height: 18px;
}

.scv-acc-icon--palette {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C6.49 2 2 5.93 2 10.78 2 13.58 3.53 15.93 6 17.2c.6.31 1 .93 1 1.6 0 1.17.95 2.12 2.12 2.12h2.76c1.17 0 2.12-.95 2.12-2.12 0-.67.4-1.29 1-1.6 2.47-1.27 4-3.62 4-6.42C22 5.93 17.51 2 12 2Zm-4 8.25a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5Zm3-3.5a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5Zm3 0a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5Zm3 3.5a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C6.49 2 2 5.93 2 10.78 2 13.58 3.53 15.93 6 17.2c.6.31 1 .93 1 1.6 0 1.17.95 2.12 2.12 2.12h2.76c1.17 0 2.12-.95 2.12-2.12 0-.67.4-1.29 1-1.6 2.47-1.27 4-3.62 4-6.42C22 5.93 17.51 2 12 2Zm-4 8.25a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5Zm3-3.5a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5Zm3 0a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5Zm3 3.5a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5Z'/%3E%3C/svg%3E");
}

.scv-acc-icon--profile {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E");
}

.scv-acc-icon--contact {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6.62 10.79a15.53 15.53 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1-.24 11.36 11.36 0 0 0 3.55.57 1 1 0 0 1 1 1V21a1 1 0 0 1-1 1A17 17 0 0 1 2 5a1 1 0 0 1 1-1h3.49a1 1 0 0 1 1 1 11.36 11.36 0 0 0 .57 3.55 1 1 0 0 1-.25 1Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6.62 10.79a15.53 15.53 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1-.24 11.36 11.36 0 0 0 3.55.57 1 1 0 0 1 1 1V21a1 1 0 0 1-1 1A17 17 0 0 1 2 5a1 1 0 0 1 1-1h3.49a1 1 0 0 1 1 1 11.36 11.36 0 0 0 .57 3.55 1 1 0 0 1-.25 1Z'/%3E%3C/svg%3E");
}

.scv-acc-icon--work {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10 4h4a2 2 0 0 1 2 2v1h3a2 2 0 0 1 2 2v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V9a2 2 0 0 1 2-2h3V6a2 2 0 0 1 2-2Zm0 3h4V6h-4Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10 4h4a2 2 0 0 1 2 2v1h3a2 2 0 0 1 2 2v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V9a2 2 0 0 1 2-2h3V6a2 2 0 0 1 2-2Zm0 3h4V6h-4Z'/%3E%3C/svg%3E");
}

.scv-acc-icon--education {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 3 10 5-10 5L2 8Zm7 7.18V14c0 2.21-3.13 4-7 4s-7-1.79-7-4v-3.82l7 3.5ZM21 12v5h-2v-4Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 3 10 5-10 5L2 8Zm7 7.18V14c0 2.21-3.13 4-7 4s-7-1.79-7-4v-3.82l7 3.5ZM21 12v5h-2v-4Z'/%3E%3C/svg%3E");
}

.scv-acc-icon--skills {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M13.13 3a1 1 0 0 1 .94.66l.7 2.11a7.14 7.14 0 0 1 1.42.83l2.16-.44a1 1 0 0 1 1 .38l1.5 2.07a1 1 0 0 1-.08 1.19l-1.41 1.68a7.94 7.94 0 0 1 0 1.65l1.41 1.68a1 1 0 0 1 .08 1.19l-1.5 2.07a1 1 0 0 1-1 .38l-2.16-.44a7.14 7.14 0 0 1-1.42.83l-.7 2.11a1 1 0 0 1-.94.66h-2.56a1 1 0 0 1-.94-.66l-.7-2.11a7.14 7.14 0 0 1-1.42-.83l-2.16.44a1 1 0 0 1-1-.38L2.83 17.2a1 1 0 0 1 .08-1.19l1.41-1.68a7.94 7.94 0 0 1 0-1.65L2.91 11a1 1 0 0 1-.08-1.19l1.5-2.07a1 1 0 0 1 1-.38l2.16.44a7.14 7.14 0 0 1 1.42-.83l.7-2.11A1 1 0 0 1 10.55 3ZM12 9.5A2.5 2.5 0 1 0 14.5 12 2.5 2.5 0 0 0 12 9.5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M13.13 3a1 1 0 0 1 .94.66l.7 2.11a7.14 7.14 0 0 1 1.42.83l2.16-.44a1 1 0 0 1 1 .38l1.5 2.07a1 1 0 0 1-.08 1.19l-1.41 1.68a7.94 7.94 0 0 1 0 1.65l1.41 1.68a1 1 0 0 1 .08 1.19l-1.5 2.07a1 1 0 0 1-1 .38l-2.16-.44a7.14 7.14 0 0 1-1.42.83l-.7 2.11a1 1 0 0 1-.94.66h-2.56a1 1 0 0 1-.94-.66l-.7-2.11a7.14 7.14 0 0 1-1.42-.83l-2.16.44a1 1 0 0 1-1-.38L2.83 17.2a1 1 0 0 1 .08-1.19l1.41-1.68a7.94 7.94 0 0 1 0-1.65L2.91 11a1 1 0 0 1-.08-1.19l1.5-2.07a1 1 0 0 1 1-.38l2.16.44a7.14 7.14 0 0 1 1.42-.83l.7-2.11A1 1 0 0 1 10.55 3ZM12 9.5A2.5 2.5 0 1 0 14.5 12 2.5 2.5 0 0 0 12 9.5Z'/%3E%3C/svg%3E");
}

.scv-acc-icon--language {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm6.92 9h-3.03a15.47 15.47 0 0 0-1.31-5A8.05 8.05 0 0 1 18.92 11ZM12 4.08A13.37 13.37 0 0 1 13.86 11h-3.72A13.37 13.37 0 0 1 12 4.08ZM4.08 13h3.03a15.47 15.47 0 0 0 1.31 5A8.05 8.05 0 0 1 4.08 13ZM7.11 11H4.08A8.05 8.05 0 0 1 8.42 6a15.47 15.47 0 0 0-1.31 5ZM12 19.92A13.37 13.37 0 0 1 10.14 13h3.72A13.37 13.37 0 0 1 12 19.92ZM14.58 18a15.47 15.47 0 0 0 1.31-5h3.03A8.05 8.05 0 0 1 14.58 18Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm6.92 9h-3.03a15.47 15.47 0 0 0-1.31-5A8.05 8.05 0 0 1 18.92 11ZM12 4.08A13.37 13.37 0 0 1 13.86 11h-3.72A13.37 13.37 0 0 1 12 4.08ZM4.08 13h3.03a15.47 15.47 0 0 0 1.31 5A8.05 8.05 0 0 1 4.08 13ZM7.11 11H4.08A8.05 8.05 0 0 1 8.42 6a15.47 15.47 0 0 0-1.31 5ZM12 19.92A13.37 13.37 0 0 1 10.14 13h3.72A13.37 13.37 0 0 1 12 19.92ZM14.58 18a15.47 15.47 0 0 0 1.31-5h3.03A8.05 8.05 0 0 1 14.58 18Z'/%3E%3C/svg%3E");
}

.scv-acc-icon--cert {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17 13.13A4 4 0 1 0 11.13 9 4 4 0 0 0 17 13.13ZM6 22l3.11-7.11a6 6 0 0 0 5.78 0L18 22l-3-1.5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17 13.13A4 4 0 1 0 11.13 9 4 4 0 0 0 17 13.13ZM6 22l3.11-7.11a6 6 0 0 0 5.78 0L18 22l-3-1.5Z'/%3E%3C/svg%3E");
}

.scv-acc-right {
    right: 18px;
    gap: 8px;
}

.scv-vis-btn,
.scv-acc-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
}

.scv-vis-btn {
    padding: 0;
    background: transparent;
    border: none;
    opacity: 0.68;
}

.scv-vis-btn::before {
    content: "";
    width: 16px;
    height: 16px;
    background-color: color-mix(in srgb, var(--sh-text) 74%, transparent);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 5c5.5 0 9.27 4.11 10 7-.73 2.89-4.5 7-10 7S2.73 14.89 2 12c.73-2.89 4.5-7 10-7Zm0 2.5A4.5 4.5 0 1 0 16.5 12 4.5 4.5 0 0 0 12 7.5Zm0 2A2.5 2.5 0 1 1 9.5 12 2.5 2.5 0 0 1 12 9.5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 5c5.5 0 9.27 4.11 10 7-.73 2.89-4.5 7-10 7S2.73 14.89 2 12c.73-2.89 4.5-7 10-7Zm0 2.5A4.5 4.5 0 1 0 16.5 12 4.5 4.5 0 0 0 12 7.5Zm0 2A2.5 2.5 0 1 1 9.5 12 2.5 2.5 0 0 1 12 9.5Z'/%3E%3C/svg%3E");
}

.scv-vis-btn.scv-vis-hidden::before {
    opacity: 0.26;
}

.scv-acc-arrow {
    font-size: 0;
    opacity: 0.72;
}

.scv-acc-arrow::before,
.scv-acc-arrow::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 1.8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--sh-text) 74%, transparent);
}

.scv-acc-arrow::after {
    transform: rotate(90deg);
}

.scv-acc[open] .scv-acc-arrow::after {
    opacity: 0;
}

.scv-acc-body {
    padding: 4px 18px 18px;
}

.scv-label {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--sh-text) 72%, transparent);
}

.scv-row {
    gap: 14px;
    margin-bottom: 16px;
}

.scv-input,
.scv-textarea,
select.scv-input {
    min-height: 44px !important;
    padding: 0 18px !important;
    background: var(--scv-glass-bg) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--scv-glass-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    color: var(--sh-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: left !important;
    border-radius: 16px !important;
    transition: all 0.3s ease;
    will-change: transform;
}

.scv-input:hover,
.scv-textarea:hover,
select.scv-input:hover {
    border-color: var(--scv-glass-border-hover) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

select.scv-input {
    padding-right: 42px !important;
    background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%236a7384' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right 16px center;
    background-size: auto, 16px 16px;
}

.scv-input::placeholder,
.scv-textarea::placeholder {
    color: var(--sh-menu-text, rgba(255, 255, 255, 0.6));
    opacity: 0.7;
}

.scv-textarea {
    min-height: 132px !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    border-radius: 16px !important;
}

.scv-color-inp {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.scv-color-inp::-webkit-color-swatch-wrapper {
    padding: 0;
}

.scv-color-inp::-webkit-color-swatch,
.scv-color-inp::-moz-color-swatch {
    border: none;
    border-radius: 999px;
}

.scv-color-picker-glass {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--scv-glass-bg) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-radius: 999px !important;
    border: 1px solid var(--scv-glass-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    min-height: 44px !important;
    transition: all 0.3s ease;
    will-change: transform;
    overflow: hidden;
}

.scv-color-picker-glass:hover {
    border-color: var(--scv-glass-border-hover) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.scv-color-picker-glass .scv-emoji {
    position: absolute;
    font-size: 20px;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.scv-color-picker-glass input[type="color"].scv-color-inp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1;
    z-index: 1;
    border-radius: 999px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.scv-lang-select {
    display: flex;
    align-items: center;
    background: var(--scv-glass-bg) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-radius: 999px !important;
    border: 1px solid var(--scv-glass-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    padding: 0 16px !important;
    min-height: 44px !important;
    transition: all 0.3s ease;
    will-change: transform;
}

.scv-lang-select:hover {
    border-color: var(--scv-glass-border-hover) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.scv-lang-select .scv-emoji {
    font-size: 20px;
    margin-right: 8px;
    z-index: 2;
}

.scv-lang-select select.scv-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 32px !important;
    min-height: 42px !important;
    margin: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 999px !important;
}

.scv-photo-wrap label {
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 24px !important;
}

.scv-photo-wrap img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    border: none;
    box-shadow: 0 10px 24px rgba(14, 23, 45, 0.14);
}

.scv-photo-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.scv-photo-title {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--sh-text) !important;
}

.scv-photo-hint {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--sh-menu-text, #747e8e);
}

.scv-tpl-grid {
    gap: 14px;
    margin-bottom: 22px;
}

.scv-tpl-card {
    gap: 10px;
    padding: 12px;
    border-radius: 16px !important;
    background: var(--scv-glass-bg) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--scv-glass-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    will-change: transform;
}

.scv-tpl-emoji {
    font-size: 24px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.scv-tpl-thumb {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--scv-glass-border);
    box-shadow: none !important;
    background: var(--scv-paper-bg, #fff) !important;
    overflow: hidden;
}

.scv-tpl-card.active {
    background: var(--scv-glass-bg-active) !important;
    border-color: var(--scv-glass-border-hover) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    transform: scale(1.05);
}

.scv-job-card {
    padding: 16px;
    border-radius: 24px !important;
    background: var(--scv-glass-bg) !important;
    border: 1px solid var(--scv-glass-border) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    margin-bottom: 16px;
}

.scv-remove-btn {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--scv-glass-bg-hover) !important;
    color: var(--sh-text) !important;
    border: 1px solid var(--scv-glass-border);
    box-shadow: 0 8px 18px rgba(14, 23, 45, 0.16);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
}

.scv-dots-input {
    gap: 8px;
}

.scv-dot {
    width: 15px;
    height: 15px;
    border-color: color-mix(in srgb, var(--sh-accent) 52%, #90a0b8);
}

.scv-dot.dot-on {
    background: color-mix(in srgb, var(--sh-accent) 78%, #8fb8ff);
}

.scv-footer-bar,
.scv-footer {
    margin-top: 16px;
}

.scv-btn-clear,
.scv-btn-main,
.scv-btn-dashed {
    min-height: 44px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0;
    text-transform: none;
    background: var(--scv-glass-bg) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--scv-glass-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--sh-text) !important;
}

.scv-btn-main,
.scv-floating-btn {
    border-radius: 999px !important;
    background: var(--scv-glass-bg-hover) !important;
}

.scv-floating-btn {
    min-height: 44px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0;
    text-transform: none;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--scv-glass-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
    will-change: transform;
    color: var(--sh-text) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px !important;
}

.scv-floating-btn:hover {
    border-color: var(--scv-glass-border-hover) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    background: var(--scv-glass-bg-active) !important;
}

.scv-btn-dashed {
    border: 1.5px dashed var(--scv-glass-border-hover) !important;
}

.scv-btn-clear:hover,
.scv-btn-main:hover,
.scv-btn-dashed:hover {
    border-color: var(--scv-glass-border-hover) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    background: var(--scv-glass-bg-hover) !important;
}

.scv-btn-main-icon,
.scv-btn-clear-icon {
    width: 18px;
    height: 18px;
    background-color: currentColor;
    display: inline-block;
}

.scv-btn-main-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 3v10.17l3.59-3.58L17 11l-5 5-5-5 1.41-1.41L11 13.17V3ZM5 19h14v2H5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 3v10.17l3.59-3.58L17 11l-5 5-5-5 1.41-1.41L11 13.17V3ZM5 19h14v2H5Z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.scv-btn-clear-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 4h10l1 2h4v2H2V6h4Zm1 6h2v8H8Zm6 0h2v8h-2ZM5 8h14l-1 12a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 4h10l1 2h4v2H2V6h4Zm1 6h2v8H8Zm6 0h2v8h-2ZM5 8h14l-1 12a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2Z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

#bio-count,
#scv-save-status {
    color: var(--sh-menu-text, #747e8e);
    opacity: 1;
}

@media (max-width: 1024px) {
    .scv-app {
        padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        box-shadow: none;
    }

    .scv-sidebar {
        width: 100%;
    }

    .scv-scroll-area {
        padding-bottom: calc(154px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 640px) {
    .scv-app {
        padding: 0;
        background: transparent !important;
    }

    .scv-scroll-area {
        padding: 12px 12px calc(154px + env(safe-area-inset-bottom, 0px));
    }

    .scv-tpl-grid {
        gap: 12px;
    }

    .scv-acc {
        margin-bottom: 14px;
        border-radius: 26px !important;
    }

    .scv-acc summary {
        min-height: 58px;
        padding: 15px 16px;
    }

    .scv-acc-title {
        font-size: 14px;
        padding-right: 68px;
    }

    .scv-acc-body {
        padding: 4px 16px 16px;
    }

    .scv-input,
    .scv-textarea,
    select.scv-input,
    .scv-color-inp {
        min-height: 44px !important;
    }

    .scv-textarea {
        min-height: 122px !important;
    }

    .scv-btn-main,
    .scv-btn-clear,
    .scv-btn-dashed {
        min-height: 44px !important;
        font-size: 14px !important;
    }
}

.scv-app,
.scv-app * {
    font-family: var(--font-family, system-ui, -apple-system, BlinkMacSystemFont, sans-serif) !important;
}

#scv-pdf-overlay {
    font-family: var(--font-family, system-ui, -apple-system, BlinkMacSystemFont, sans-serif) !important;
}

.scv-acc summary,
.scv-acc-title,
.scv-label,
.scv-btn-main,
.scv-btn-dashed,
.scv-floating-btn,
#scv-pdf-overlay .text,
.scv-tpl-card span {
    text-transform: none !important;
    letter-spacing: normal !important;
}

.scv-remove-btn {
    background: var(--danger, #E03131) !important;
}

.scv-remove-btn:focus-visible {
    outline: none !important;
    box-shadow: var(--sh-ui-focus-ring) !important;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .scv-acc {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: var(--bg-surface-solid, #ffffff) !important;
        border-color: var(--border-subtle, rgba(0, 0, 0, 0.06)) !important;
        box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04)) !important;
    }
}

.scv-input:focus-visible,
.scv-textarea:focus-visible,
select.scv-input:focus-visible,
.scv-color-inp:focus-visible,
.scv-btn-main:focus-visible,
.scv-btn-clear:focus-visible,
.scv-btn-dashed:focus-visible,
.scv-floating-btn:focus-visible,
.scv-acc summary:focus-visible {
    outline: none !important;
    box-shadow: var(--lg-shadow-soft, var(--shadow-sm)), var(--lg-inner-highlight), var(--sh-ui-focus-ring) !important;
}

.scv-btn-main:active,
.scv-btn-clear:active,
.scv-btn-dashed:active,
.scv-floating-btn:active {
    transform: scale(var(--lg-press-scale, 0.98)) !important;
}
