@import url("../../../assets/css/cv-bottom-nav.css");
/* iOS minimal: SF Pro–like font, glassmorphism, soft shadows */
:root {
    /* A4 kenar boşluğu: ekran önizleme, yazdır, PDF — şablon bu alanı doldurur */
    --cv-page-margin: 1cm;
    /* script.js CV_PAGE_MARGIN_PX / PDF klonu ile aynı (~1cm @ 96dpi); Chrome yazdırmada üst 1cm’in kaybolmasını önler */
    --cv-print-pad-px: 38px;
    --bg-body: #f2f2f7;
    --bg-elevated: rgba(255, 255, 255, 0.72);
    --bg-glass: rgba(255, 255, 255, 0.65);
    --bg-soft: #e8e8ed;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --accent: #0a84ff;
    --accent-soft: rgba(10, 132, 255, 0.12);
    --accent-border: rgba(10, 132, 255, 0.5);
    --danger: #ff3b30;
    --danger-soft: rgba(255, 59, 48, 0.08);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-subtle: 0 0 0 1px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --step-active: #1d1d1f;
    --step-muted: #8e8e93;
    --blur-glass: 20px;
}

/* Gece teması */
html[data-theme="dark"] {
    --bg-body: #0f0f12;
    --bg-elevated: rgba(28, 28, 32, 0.85);
    --bg-glass: rgba(28, 28, 32, 0.8);
    --bg-soft: #1c1c20;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-subtle: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
    --step-active: #f5f5f7;
    --step-muted: #8e8e93;
}

html[data-theme="dark"] .logo-text {
    color: #f5f5f7;
}

html[data-theme="dark"] .btn.ghost {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #f5f5f7;
}

html[data-theme="dark"] .btn.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Tema geçiş butonu: ay (gündüzde) / güneş (gecede) */
.theme-toggle {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-soft);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.theme-toggle:hover {
    background: var(--accent-soft);
    color: var(--accent);
    transform: scale(1.05);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-soft);
}

/* Çıkış: tema düğmesi yanında, yuvarlak overlay (girişli) */
.cv-wizard-header-logout {
    position: relative;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.16);
    color: var(--text-main);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: background 0.2s, color 0.2s;
}

.cv-wizard-header-logout:hover {
    background: rgba(220, 38, 38, 0.14);
    color: #dc2626;
}

[data-theme="dark"] .cv-wizard-header-logout {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cv-wizard-header-logout:hover {
    background: rgba(220, 38, 38, 0.22);
    color: #fecaca;
}

.cv-wizard-header-logout i {
    font-size: 0.95rem;
    line-height: 1;
}

.cv-create-user-btn {
    text-decoration: none;
    color: inherit;
}
.cv-create-user-btn:hover {
    color: var(--text-main);
}
.cv-create-user-btn i {
    font-size: 0.95rem;
}

.theme-icon {
    font-size: 1rem;
    position: absolute;
    transition: opacity 0.2s, transform 0.2s;
}

.theme-icon-moon {
    opacity: 1;
}

.theme-icon-sun {
    opacity: 0;
}

html[data-theme="dark"] .theme-icon-moon {
    opacity: 0;
}

html[data-theme="dark"] .theme-icon-sun {
    opacity: 1;
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field textarea:focus,
html[data-theme="dark"] .field select:focus {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .char-counter {
    color: #94a3b8;
}

html[data-theme="dark"] .char-counter--at-limit {
    color: #60a5fa;
}

html[data-theme="dark"] .wizard-step {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .wizard-step.active {
    background: var(--bg-glass);
    border-color: rgba(10, 132, 255, 0.4);
}

html[data-theme="dark"] .photo-preview {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .accordion-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .draggable-row {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .template-card-h,
html[data-theme="dark"] .font-size-option,
html[data-theme="dark"] .photo-shape-option {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .input-with-icon > i {
    color: var(--text-muted);
}

html[data-theme="dark"] .input-with-icon > i.icon-soft {
    color: rgba(255, 255, 255, 0.45);
}

/* Gece teması: il/ilçe ve tüm dropdown (select) alanları */
html[data-theme="dark"] .field select,
html[data-theme="dark"] .select-modern,
html[data-theme="dark"] .field select.select-modern {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

html[data-theme="dark"] .select-modern,
html[data-theme="dark"] .field select.select-modern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23a1a1a6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .select-modern:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(10, 132, 255, 0.5);
}

/* Açılır listenin (option) gece teması - tarayıcı desteklediği ölçüde */
html[data-theme="dark"] .select-modern option,
html[data-theme="dark"] .field select option {
    background: #1c1c20;
    color: #f5f5f7;
}

/* Kayıtlı CV alanı (header dropdown) gece teması */
html[data-theme="dark"] .cv-save-label {
    color: var(--text-muted);
}
html[data-theme="dark"] .cv-saved-select {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}
html[data-theme="dark"] .cv-saved-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(10, 132, 255, 0.5);
}
html[data-theme="dark"] .cv-saved-select option {
    background: #1c1c20;
    color: #f5f5f7;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app {
    max-width: 1280px;
    margin: 32px auto;
    padding: 0 16px 32px;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg-glass);
    box-shadow: var(--shadow-soft), var(--shadow-subtle);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cv-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Üst bar: ikon odaklı kompakt kontroller */
.app-header-right .btn.small {
    padding: 5px 9px;
    gap: 6px;
    font-size: 12px;
}

.app-header-right .btn.small i {
    font-size: 0.88rem;
}

/* Üst bar: Yazdır / İndir / Paylaş — view toolbar ikonları ile aynı köşe yuvarlaklığı */
.cv-header-actions .btn.ghost.small,
.cv-view-toolbar .cv-site-header-actions .btn,
.cv-view-toolbar .cv-site-header-actions .btn.primary {
    border-radius: 10px;
}

.driver-license-field .driver-license-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    color: var(--text-main, #111827);
}

.driver-license-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--text-muted, #64748b);
    line-height: 1.4;
}

/* Rozet satırı: liste açıkken altta kalsın; panel üstte çizilsin */
.driver-license-selected {
    position: relative;
    z-index: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 0;
    margin-bottom: 10px;
}

.driver-license-selected:empty {
    display: none;
}

/* iOS benzeri chip — ince dolgu, çerçeve yok */
.driver-license-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    border-radius: 100px;
    background: rgba(120, 120, 128, 0.12);
    color: var(--text-main);
    border: none;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

.driver-license-badge--none {
    background: rgba(255, 59, 48, 0.12);
    color: var(--danger);
    box-shadow: 0 0 0 0.5px rgba(255, 59, 48, 0.15);
}

.driver-license-badge-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.driver-license-badge-remove:hover {
    background: rgba(0, 0, 0, 0.14);
}

.driver-license-badge-remove:active {
    transform: scale(0.92);
}

.driver-license-badge-remove i {
    font-size: 0.65rem;
    line-height: 1;
    opacity: 0.75;
}

html[data-theme="dark"] .driver-license-badge {
    background: rgba(120, 120, 128, 0.22);
    box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .driver-license-badge--none {
    background: rgba(255, 69, 58, 0.18);
    box-shadow: 0 0 0 0.5px rgba(255, 69, 58, 0.2);
}

html[data-theme="dark"] .driver-license-badge-remove {
    background: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .driver-license-badge-remove:hover {
    background: rgba(255, 255, 255, 0.22);
}

.driver-license-multiselect {
    position: relative;
    width: 100%;
    min-width: 0;
}

/* Açıkken tüm kontrol bloğu üst katmanda — rozet / komşu alanlar panelin altında kalmaz */
.driver-license-multiselect.open {
    z-index: 500;
}

.driver-license-input-row {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    align-items: stretch;
}

.driver-license-multiselect.open .driver-license-input-row {
    z-index: 2;
}

.driver-license-input-row > i {
    align-self: center;
}

.driver-license-trigger-cell {
    position: relative;
    flex: 1;
    min-width: 0;
}

/* iOS Ayarlar tarzı tetikleyici */
.driver-license-trigger {
    position: relative;
    width: 100%;
    min-height: 44px;
    padding: 10px 38px 10px 38px;
    margin: 0;
    border: none;
    border-radius: var(--radius-md, 14px);
    background: #ffffff;
    color: var(--text-main, #111827);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
    box-shadow: var(--shadow-subtle), var(--shadow-card);
    transition: box-shadow 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.driver-license-trigger:hover {
    box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.22), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.driver-license-trigger:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft, rgba(10, 132, 255, 0.22)), var(--shadow-card);
}

.driver-license-multiselect.open .driver-license-trigger {
    box-shadow: 0 0 0 2px var(--accent-soft, rgba(10, 132, 255, 0.35)), var(--shadow-card);
}

.driver-license-trigger-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
    color: var(--text-main);
}

.driver-license-multiselect:not(.has-selection) .driver-license-trigger-text {
    color: var(--text-muted);
    font-weight: 400;
}

.driver-license-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    opacity: 0.45;
    pointer-events: none;
    color: var(--text-muted);
}

.driver-license-multiselect.open .driver-license-chevron {
    transform: translateY(-50%) rotate(180deg);
    opacity: 0.7;
}

/* Panel: dikey liste (çip ızgarası değil) + opak cam, net gölge */
.driver-license-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    isolation: isolate;
    max-height: min(320px, 52vh);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md, 14px);
    border: 0.5px solid var(--border-subtle);
    background: var(--bg-elevated);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03), 0 22px 48px rgba(0, 0, 0, 0.12);
    padding: 6px;
    gap: 2px;
    box-sizing: border-box;
}

.driver-license-panel.open {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.driver-license-panel-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding: 11px 36px 11px 14px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    cursor: pointer;
    color: var(--text-main, #111827);
    border: none;
    border-radius: var(--radius-sm, 10px);
    background: transparent;
    box-sizing: border-box;
    transition: background 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.driver-license-panel-item span {
    text-align: left;
    pointer-events: none;
}

.driver-license-panel-item::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(120, 120, 128, 0.35);
    box-sizing: border-box;
    pointer-events: none;
    opacity: 0.85;
}

.driver-license-panel-item:has(input:checked)::after {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: none;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    opacity: 1;
}

.driver-license-panel-item:hover:not(:has(input:checked)) {
    background: rgba(120, 120, 128, 0.08);
}

.driver-license-panel-item:has(input:checked) {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.driver-license-panel-item--none:has(input:checked) {
    background: var(--danger-soft);
    color: var(--danger);
}

.driver-license-panel-item--none:has(input:checked)::after {
    background: var(--danger);
    color: #fff;
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: none;
    width: 22px;
    height: 22px;
}

.driver-license-panel-item:has(input:focus-visible) {
    outline: none;
    box-shadow: 0 0 0 2px var(--bg-body), 0 0 0 4px var(--accent);
}

.driver-license-panel-item--none:has(input:focus-visible) {
    box-shadow: 0 0 0 2px var(--bg-body), 0 0 0 4px rgba(255, 59, 48, 0.45);
}

.driver-license-panel-item input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

html[data-theme="dark"] .driver-license-trigger {
    background: rgba(44, 44, 46, 0.95);
    color: var(--text-main);
    box-shadow: var(--shadow-subtle), 0 4px 24px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .driver-license-panel {
    background: rgba(36, 36, 40, 0.94);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .driver-license-panel-item::after {
    border-color: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .driver-license-panel-item:hover:not(:has(input:checked)) {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .driver-license-panel-item:has(input:checked) {
    background: rgba(10, 132, 255, 0.18);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.cv-save-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.cv-save-bar-header {
    flex: none;
    justify-content: flex-start;
}

.cv-save-label {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    margin: 0;
}

.cv-saved-select {
    min-width: 180px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle, #e2e8f0);
    font-size: 13px;
    background: var(--bg-soft, #fff);
}

.cv-save-title-input {
    width: 140px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle, #e2e8f0);
    font-size: 13px;
}

.cv-short-link-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cv-short-link {
    font-size: 12px;
    color: var(--cv-accent, #2563eb);
    text-decoration: none;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-short-link:hover {
    text-decoration: underline;
}

.cv-short-link-below {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 12px 0;
}

.preview-wrapper-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.cv-preview-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-option-hint {
    margin: 8px 0 0;
    font-size: 11px;
    color: var(--text-muted);
}

.qr-opacity-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.qr-opacity-row .preview-cell-label {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary, #374151);
    min-width: 90px;
}
.qr-opacity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 220px;
}
.qr-opacity-control input[type="range"] {
    flex: 1;
    min-width: 0;
    height: 6px;
    accent-color: var(--cv-accent, #2563eb);
    cursor: pointer;
}
.qr-opacity-value {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary, #111827);
    min-width: 2.5em;
    text-align: right;
}

html[data-theme="dark"] .qr-opacity-row .preview-cell-label {
    color: var(--text-muted);
}
html[data-theme="dark"] .qr-opacity-value {
    color: var(--text-main);
}
html[data-theme="dark"] .qr-opacity-control input[type="range"] {
    accent-color: var(--accent, #0a84ff);
}

/* Mobil: 3. adımda canlı önizleme yerine uyarı kutusu */
.step3-mobile-preview-notice {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--accent-soft);
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.45;
}
.step3-mobile-preview-notice-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.step3-mobile-preview-notice-text i {
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}
.step3-mobile-preview-notice-msg--view {
    display: none;
}
body.cv-view-mode .step3-mobile-preview-notice-msg--editor {
    display: none !important;
}
body.cv-view-mode .step3-mobile-preview-notice-msg--view {
    display: inline !important;
}
.step3-mobile-view-actions {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.step3-mobile-view-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
}
html[data-theme="dark"] .step3-mobile-preview-notice {
    background: rgba(10, 132, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.12);
}

@media screen and (max-width: 768px) {
    .wizard-panel.active[data-step-panel="3"] .preview-wrapper {
        display: none !important;
    }
    .wizard-panel.active[data-step-panel="3"] .step3-mobile-preview-notice {
        display: flex !important;
    }
    /*
     * PDF indir: #cvPreview display:none içinde kalınca görseller / layout takılıyor.
     * Geçici sınıf ile önizlemeyi ekran dışında gerçek boyutta gösterir (sessiz indir ile aynı fikir).
     * Adım 1–2’deyken tüm 3. panel kapalıdır; paneli de dışarı taşımak gerekir.
     */
    body.cv-pdf-export-mobile-prep:not(.cv-view-mode):not(.cv-silent-download)
        .wizard-panel[data-step-panel="3"] {
        display: block !important;
        position: fixed !important;
        left: -12000px !important;
        top: 0 !important;
        width: 820px !important;
        max-width: 820px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    body.cv-pdf-export-mobile-prep:not(.cv-view-mode):not(.cv-silent-download)
        .wizard-panel[data-step-panel="3"]
        .preview-wrapper {
        display: block !important;
        position: fixed !important;
        left: -12000px !important;
        top: 0 !important;
        width: 820px !important;
        max-width: 820px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: 0 !important;
    }
    body.cv-pdf-export-mobile-prep:not(.cv-view-mode):not(.cv-silent-download)
        .wizard-panel[data-step-panel="3"]
        .preview-cv-scaled {
        display: block !important;
        width: 794px !important;
        max-width: 794px !important;
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
        position: relative !important;
        margin: 0 !important;
        transform: none !important;
    }
    body.cv-pdf-export-mobile-prep:not(.cv-view-mode):not(.cv-silent-download)
        .wizard-panel[data-step-panel="3"]
        .preview-cv-scaled
        #cvPreview.cv-root,
    body.cv-pdf-export-mobile-prep:not(.cv-view-mode):not(.cv-silent-download)
        .wizard-panel[data-step-panel="3"]
        .preview-cv-scaled
        #cvPreview {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        transform-origin: top left !important;
        width: 794px !important;
        max-width: 794px !important;
        min-height: 1123px !important;
        height: auto !important;
    }
    /* Paylaşım linki önizlemesi: mobilde ölçekli önizleme göster; uyarı + yazdır/indir */
    body.cv-view-mode .wizard-body .wizard-panel[data-step-panel="3"] .preview-wrapper {
        display: block !important;
    }
    body.cv-view-mode .step3-mobile-view-actions {
        display: flex !important;
    }
}
@media screen and (min-width: 769px) {
    .step3-mobile-preview-notice {
        display: none !important;
    }
}

.cv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
}

.cv-modal-overlay.hidden {
    display: none !important;
}

/* Paylaş: iOS sheet / cam katman — display:none yerine görünmezlik (geçiş için hazır) */
.cv-modal-overlay.cv-share-modal-root.hidden {
    display: flex !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s;
}

.cv-modal-overlay.cv-share-modal-root:not(.hidden) {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.32s ease;
}

.cv-share-modal-root {
    align-items: flex-end;
    justify-content: center;
    padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    background: rgba(15, 23, 42, 0.42);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    backdrop-filter: blur(16px) saturate(1.25);
}

@media (min-width: 641px) {
    .cv-share-modal-root {
        align-items: center;
        padding: 24px;
        background: rgba(15, 23, 42, 0.38);
    }
}

html[data-theme="dark"] .cv-share-modal-root {
    background: rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    .cv-modal-overlay.cv-share-modal-root.hidden,
    .cv-modal-overlay.cv-share-modal-root:not(.hidden) {
        transition: none;
    }
}

.cv-modal-box {
    background: var(--bg-card, #fff);
    border-radius: var(--radius-lg, 12px);
    padding: 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle, #e2e8f0);
}

.cv-modal-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.cv-modal-desc {
    margin: 0 0 16px;
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
}

.cv-modal-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.cv-modal-input:focus {
    outline: none;
    border-color: var(--cv-accent, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.cv-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cv-share-modal-box {
    position: relative;
    max-width: min(100%, 520px);
    width: 100%;
    max-height: min(88vh, 780px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg, 20px) var(--radius-lg, 20px) 0 0;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-soft), 0 -4px 40px rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: blur(var(--blur-glass, 20px)) saturate(1.15);
    backdrop-filter: blur(var(--blur-glass, 20px)) saturate(1.15);
}

@media (min-width: 641px) {
    .cv-share-modal-box {
        border-radius: var(--radius-lg, 20px);
        max-height: min(86vh, 800px);
        box-shadow: var(--shadow-soft), 0 24px 80px rgba(0, 0, 0, 0.14);
    }
}

@keyframes cv-share-sheet-in {
    from {
        transform: translate3d(0, 14px, 0);
        opacity: 0.94;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .cv-modal-overlay.cv-share-modal-root:not(.hidden) .cv-share-modal-box {
        animation: cv-share-sheet-in 0.38s cubic-bezier(0.32, 0.72, 0, 1) both;
    }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
    .cv-modal-overlay.cv-share-modal-root:not(.hidden) .cv-share-modal-box {
        animation: none;
    }
}

.cv-share-modal-grab {
    display: block;
    width: 36px;
    height: 5px;
    margin: 10px auto 4px;
    border-radius: 100px;
    background: var(--border-subtle);
    flex-shrink: 0;
}

@media (min-width: 641px) {
    .cv-share-modal-grab {
        display: none;
    }
}

.cv-share-modal-header {
    flex-shrink: 0;
    padding: 8px 16px 14px;
    border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 641px) {
    .cv-share-modal-header {
        padding: 20px 22px 16px;
    }
}

.cv-share-modal-header-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cv-share-modal-lead {
    flex: 1;
    min-width: 0;
}

.cv-share-modal-title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-main);
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}

.cv-share-modal-subtitle {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.cv-share-modal-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: -6px -8px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.cv-share-modal-close:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.cv-share-modal-close:active {
    transform: scale(0.94);
}

.cv-share-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 14px 16px max(18px, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cv-share-modal-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

@media (min-width: 641px) {
    .cv-share-modal-body {
        padding: 18px 22px 22px;
        gap: 14px;
    }
}

.cv-share-card {
    position: relative;
    margin: 0;
    padding: 14px 16px 16px;
    border-radius: var(--radius-md, 14px);
    background: var(--bg-soft);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-subtle);
}

html[data-theme="dark"] .cv-share-card {
    background: rgba(255, 255, 255, 0.04);
}

.cv-share-card-title {
    margin: 0 0 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.cv-share-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.9rem;
}

.cv-share-card-hint {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.cv-share-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm, 10px);
    font-size: 16px;
    line-height: 1.45;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    margin-bottom: 12px;
    box-sizing: border-box;
    resize: vertical;
    min-height: 72px;
    max-height: 200px;
    background: var(--bg-body);
    color: var(--text-main);
    -webkit-appearance: none;
    appearance: none;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cv-share-textarea::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.cv-share-textarea:focus {
    outline: none;
    border-color: var(--accent-border);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.cv-share-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
}

/* Tasarım kodu çıktısı görünmez; yalnızca kopyalama için DOM’da (clipboard / execCommand yedeği) */
textarea.cv-share-code-out-sr.cv-share-textarea {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    resize: none;
    overflow: hidden;
    box-shadow: none;
}

.cv-share-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cv-share-action-btn {
    min-height: 48px;
    padding: 12px 18px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 14px;
    justify-content: center;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (min-width: 641px) {
    .cv-share-action-btn {
        width: auto;
        min-width: 200px;
    }
}

.cv-share-action-btn.cv-share-action-secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    box-shadow: none;
}

html[data-theme="dark"] .cv-share-action-btn.cv-share-action-secondary {
    background: rgba(255, 255, 255, 0.06);
}

.cv-share-action-btn.cv-share-action-secondary:hover {
    background: var(--bg-soft);
    transform: none;
}

.cv-modal-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 8px;
    font-size: 12px;
    font-family: ui-monospace, monospace;
    margin-bottom: 10px;
    box-sizing: border-box;
    resize: vertical;
    min-height: 64px;
    line-height: 1.4;
    background: var(--bg-elevated, #f8fafc);
    color: var(--text-primary, #111827);
}

.cv-modal-textarea:focus {
    outline: none;
    border-color: var(--cv-accent, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

html[data-theme="dark"] .cv-modal-textarea {
    background: rgba(15, 23, 42, 0.55);
}

html[data-theme="dark"] .cv-share-textarea {
    background: rgba(0, 0, 0, 0.35);
    border-color: var(--border-subtle);
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 20%, #0a84ff, #2563eb);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .04em;
    text-shadow: 0 2px 7px rgba(15, 23, 42, 0.65);
}

.logo-text {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
}

.btn {
    border: 0;
    outline: none;
    cursor: pointer;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    transition: all .16s ease-out;
    white-space: nowrap;
}

.btn.primary {
    background: linear-gradient(135deg, #0a84ff, #2563eb);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(10, 132, 255, 0.35);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(10, 132, 255, 0.45);
}

.btn.ghost {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f9fafb;
    color: #111827;
}

.btn.ghost:hover {
    background: #f3f4f6;
    border-color: rgba(15, 23, 42, 0.14);
}

.btn.text {
    background: transparent;
    color: var(--text-muted);
    padding-inline: 2px;
}

.btn.small {
    font-size: 12px;
    padding: 6px 10px;
}

.btn:disabled {
    opacity: .55;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.app-main {
    margin-top: 24px;
}

.wizard {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wizard-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.wizard-step {
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #ffffff;
    color: var(--step-muted);
    display: flex;
    align-items: center;
    padding: 9px 12px;
    gap: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .2s ease-out;
}

.wizard-step.active {
    border-color: rgba(10, 132, 255, 0.45);
    color: var(--step-active);
    background: var(--bg-glass);
    box-shadow: var(--shadow-soft), 0 0 0 1px rgba(10, 132, 255, 0.15);
    backdrop-filter: blur(var(--blur-glass));
}

.wizard-step::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(10, 132, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity .22s ease-out;
}

.wizard-step.active::after {
    opacity: 1;
}

.wizard-step .step-index {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    background: radial-gradient(circle at 30% 30%, rgba(148, 163, 184, 0.25), transparent 70%);
}

.wizard-step.active .step-index {
    border-color: rgba(10, 132, 255, 0.9);
    background: linear-gradient(135deg, #0a84ff, #2563eb);
    color: #ffffff;
}

.wizard-step .step-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    text-align: left;
}

.wizard-step .step-text strong {
    font-size: 13px;
    font-weight: 600;
}

.wizard-step .step-text small {
    font-size: 11px;
    color: #9ca3af;
}

.wizard-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.wizard-panel {
    display: none;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg-glass);
    box-shadow: var(--shadow-soft), var(--shadow-subtle);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    padding: 20px 20px 18px;
}

.wizard-panel.active {
    display: block;
}

.panel-header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.panel-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
    letter-spacing: -.01em;
}

.panel-header p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

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

.panel-grid > .field {
    min-width: 0;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 13px;
    font-weight: 500;
}

.field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.field-label-row label {
    flex: 1 1 auto;
    min-width: 0;
}

.char-counter {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted, #64748b);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.char-counter--at-limit {
    color: var(--accent, #2563eb);
}

.required {
    color: #fb923c;
}

.field input,
.field textarea {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f9fafb;
    color: #111827;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: all .16s ease-out;
    box-shadow: 0 0 0 1px transparent;
}

.field select {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f9fafb;
    color: #111827;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: all .16s ease-out;
    box-shadow: 0 0 0 1px transparent;
    appearance: none;
    box-sizing: border-box;
}

/* İl / İlçe ve diğer select'ler: temaya uygun, modern, scroll ince */
.select-modern,
.field select.select-modern {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.select-wrap {
    position: relative;
}

.select-wrap.select-wrap select {
    padding-right: 36px;
}

/* Tarayıcı açılır listesinde ince scroll (uyumlu olduğu yerde) */
.select-modern option {
    padding: 8px 12px;
}

@supports (scrollbar-width: thin) {
    .select-modern {
        scrollbar-width: thin;
        scrollbar-color: rgba(15, 23, 42, 0.25) transparent;
    }
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.15);
    background: #ffffff;
}

.field textarea {
    resize: vertical;
    min-height: 80px;
}

.field-hint {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
}

.panel-header.personal-header {
    flex-direction: column;
    align-items: stretch;
}

.personal-hero {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.photo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.photo-preview.has-photo .photo-placeholder {
    display: none;
}

.photo-preview.has-photo img {
    display: block;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(17, 24, 39, 0.55);
    color: #ffffff;
    font-size: 12px;
    opacity: 0;
    transition: opacity .16s ease-out;
}

.photo-preview:hover .photo-overlay,
.photo-preview:focus-within .photo-overlay,
.photo-preview:focus .photo-overlay {
    opacity: 1;
}

.photo-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#photoRemove[hidden],
#photoRemove.photo-remove-hidden {
    display: none !important;
    visibility: hidden !important;
}

.switch-label {
    font-size: 12px;
    color: var(--text-muted);
}

.photo-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: none;
}

.photo-placeholder {
    color: #4b5563;
    font-size: 30px;
}

.photo-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.name-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-width: 260px;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}

.input-with-icon > i.icon-soft {
    color: #94a3b8;
}

.input-with-icon input,
.input-with-icon select {
    padding-left: 36px;
    width: 100%;
    box-sizing: border-box;
}

.input-with-icon select.select-modern,
.input-with-icon.select-wrap select.select-modern {
    padding-right: 36px;
    min-width: 0;
}

.input-with-icon.textarea > i {
    top: 12px;
    transform: none;
}

.input-with-icon.textarea textarea {
    padding-left: 36px;
    padding-top: 10px;
    width: 100%;
}

.wizard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    margin-top: -4px;
    position: relative;
    z-index: 1;
}

.footer-left {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}
.wizard-footer-extra a {
    color: var(--text-muted);
    text-decoration: none;
}
.wizard-footer-extra a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Önizleme ayarları: bölümler, kompakt tablo */
.preview-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    /* A4 ölçekli #cvPreview bazen kutunun üstüne taşan görünmez hit-test alanı ile çakışıyordu */
    position: relative;
    z-index: 20;
    isolation: isolate;
    pointer-events: auto;
}

/* Oluşturucu adım 3 (masaüstü): tüm önizleme/transform katmanlarının üstünde kalsın */
@media screen and (min-width: 769px) {
    body:not(.cv-view-mode):not(.cv-silent-download) .wizard-panel[data-step-panel="3"] .preview-options {
        z-index: 120;
        pointer-events: auto !important;
    }

    body:not(.cv-view-mode):not(.cv-silent-download) .wizard-panel[data-step-panel="3"] .preview-wrapper {
        position: relative;
        z-index: 0;
    }
}

.preview-option-block {
    background: var(--bg-soft);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.preview-option-block .template-list-horizontal {
    justify-content: center;
}

.preview-block-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-block-title i {
    font-size: 13px;
    opacity: 0.85;
}

.preview-cell-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: default;
}

.preview-select-wrap {
    min-width: 120px;
}

/* Önizleme: Görünüm / Başlık stili — mobilde etiket+denetim çifti (tablo satırları etiketleri üst üste yığıyordu) */
.preview-options-stack {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.preview-options-stack--appearance,
.preview-options-stack--heading {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 16px;
    align-items: start;
}

/* Başlık stili: font/select ve anahtarlar önizleme katmanının üstünde kalsın */
.preview-options-stack--heading {
    position: relative;
    z-index: 5;
}

.preview-option-block:has(.preview-options-stack--heading) {
    position: relative;
    z-index: 8;
}

.preview-options-stack--heading .preview-select-wrap {
    position: relative;
    z-index: 2;
}

.preview-field-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preview-field-group--full {
    grid-column: 1 / -1;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--border-subtle);
}

/* Üst satırdaki hücrelerden gelen taşma / hit-test ile anahtarların çakışmasını önle */
.preview-options-stack--heading .preview-field-group--full {
    position: relative;
    z-index: 2;
}

.preview-field-group .preview-select-wrap {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.photo-shape-options--wrap {
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .preview-options-stack--appearance,
    .preview-options-stack--heading {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .preview-options-stack--appearance,
    .preview-options-stack--heading {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .preview-field-group--full {
        margin-top: 0;
        padding-top: 14px;
    }
}

.preview-select-wrap .section-title-select,
.preview-select-wrap .select-modern {
    width: 100%;
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: var(--bg-elevated);
    color: var(--text-main);
    padding: 8px 32px 8px 12px;
    font-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

.preview-select-wrap .section-title-select:focus,
.preview-select-wrap .select-modern:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.15);
}

.heading-style-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: center;
    align-items: center;
}

/* İkon + Izgara + İletişim üstte anahtarları yan yana (dar ekranda sarar) */
.heading-check-inline-pair {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.preview-options-label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.preview-options-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.preview-options-row-templates {
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.template-list-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
}

.template-list-horizontal::-webkit-scrollbar {
    height: 6px;
}

.template-list-horizontal::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 999px;
}

.template-card-h {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-soft);
    cursor: pointer;
    transition: all .16s ease-out;
}

.template-card-h:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.template-card-h input {
    display: none;
}

.template-card-h:has(input:checked) {
    border-color: var(--accent-border);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent-border);
}

.template-card-h .template-visual {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
}

.template-card-h .template-tag {
    display: none;
}

.template-card-h .template-name {
    font-size: 11px;
    white-space: nowrap;
    color: var(--text-main);
}

.preview-options-row-controls {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 20px;
}

.preview-options-row-headings {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 20px;
}

.preview-options-row-headings .preview-options-label {
    width: 100%;
    margin-bottom: 4px;
}

.heading-style-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 20px;
}

.preview-options-sublabel {
    display: block;
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.section-title-select {
    min-width: 100px;
}

/* Switch (toggle) – tema uyumlu */
.heading-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
}

/* Opaklık 0 + kaydırıcı boyutu: tıklama doğrudan input’a gider (clip/pointer-events:none bazı tarayıcılarda kilit hissi veriyordu) */
.heading-check input {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 24px;
    margin: 0;
    padding: 0;
    opacity: 0;
    border: 0;
    cursor: pointer;
    z-index: 3;
    pointer-events: auto;
}

.heading-check .switch-slider {
    display: inline-flex;
    flex-shrink: 0;
    width: 40px;
    height: 24px;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
    pointer-events: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.heading-check .switch-slider::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-subtle), 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

.heading-check input:checked + .switch-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.heading-check input:checked + .switch-slider::after {
    transform: translateX(16px);
}

.heading-check input:focus-visible + .switch-slider {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Gece teması: switch track ve thumb */
html[data-theme="dark"] .heading-check .switch-slider {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .heading-check .switch-slider::after {
    background: var(--bg-elevated);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .heading-check input:checked + .switch-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.heading-check input:disabled + .switch-slider {
    opacity: 0.7;
    filter: grayscale(0.2);
    cursor: not-allowed;
}

/* Gece teması: önizleme bölümleri ve select'ler */
html[data-theme="dark"] .preview-option-block {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .preview-select-wrap .section-title-select,
html[data-theme="dark"] .preview-select-wrap .select-modern {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

html[data-theme="dark"] .preview-select-wrap .section-title-select:focus,
html[data-theme="dark"] .preview-select-wrap .select-modern:focus {
    border-color: rgba(10, 132, 255, 0.5);
}

.preview-options .design-section {
    flex: 0 0 auto;
}

.preview-options .design-section-inline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preview-options .design-section h3,
.preview-options .design-section-inline h3 {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.photo-shape-options {
    display: flex;
    gap: 6px;
}

.photo-shape-option {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-soft);
    cursor: pointer;
    font-size: 12px;
    transition: all .16s ease-out;
}

.photo-shape-option:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.photo-shape-option input {
    display: none;
}

.photo-shape-option:has(input:checked) {
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.photo-shape-option input:checked + span {
    font-weight: 600;
    color: var(--accent);
}

/* Tek seçili renk gösterimi (palet yerine) */
.color-single-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.color-single-display {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    background: var(--bg-elevated);
    flex-shrink: 0;
}
.color-picker-input {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: transparent;
}
.color-picker-input::-webkit-color-swatch-wrapper { padding: 4px; }
.color-picker-input::-webkit-color-swatch { border-radius: 8px; border: 2px solid var(--border-subtle); }
.font-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.font-size-option {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-soft);
    cursor: pointer;
    font-size: 12px;
    transition: all .16s ease-out;
}
.font-size-option:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
}
.font-size-option input { display: none; }
.font-size-option input:checked + span {
    font-weight: 600;
    color: var(--accent);
}
.font-size-option:has(input:checked) {
    border-color: var(--accent-border);
    background: var(--accent-soft);
}
.preview-options .theme-list {
    margin-top: 0;
}

.template-list-inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.template-list-inline .template-card {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}

.template-list-inline .template-visual {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
}

.template-list-inline .template-name {
    font-size: 12px;
    white-space: nowrap;
}

.design-section h3 {
    margin: 0 0 10px;
    font-size: 14px;
}

.template-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.template-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f9fafb;
    cursor: pointer;
    transition: all .16s ease-out;
}

.template-card:hover {
    border-color: var(--accent-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.template-card input {
    display: none;
}

.template-card input:checked + .template-visual,
.template-card input:checked ~ .template-name {
    border-color: var(--accent-border);
}

.template-visual {
    height: 80px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

/* 8 şablon: Aurora, Glacier, Noir, Prism, Sage, Carbon, Dusk, Ivory */
.template-aurora::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(34, 197, 94, 0.18) 0%, rgba(59, 130, 246, 0.12) 35%, rgba(139, 92, 246, 0.1) 65%, #f0fdf4 100%);
}
.template-glacier::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e5e7eb, inset 0 -3px 0 #0d9488;
}
.template-noir::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #0f0f0f 0 8%, #fafafa 9% 100%);
    box-shadow: inset 4px 0 0 #0f0f0f;
}
.template-prism::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.06) 25%, rgba(34, 211, 238, 0.08) 50%, rgba(251, 146, 60, 0.06) 75%, #faf5ff 100%);
}
.template-sage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(34, 197, 94, 0.14) 0 32%, #f0fdf4 33% 100%);
}
.template-carbon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #0f172a 0 38%, rgba(148, 163, 184, 0.08) 39% 39.5%, #f8fafc 40% 100%);
}
.template-dusk::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(251, 113, 133, 0.12) 0 25%, rgba(253, 186, 116, 0.08) 26% 100%);
}
.template-ivory::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.template-tag {
    position: absolute;
    top: 7px;
    right: 7px;
    background: rgba(15, 23, 42, 0.84);
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 10px;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.template-name {
    font-size: 12px;
    color: var(--text-muted);
}

.theme-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-swatch {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: conic-gradient(from 180deg, var(--theme-color), #f3f4f6 40%, var(--theme-color));
    cursor: pointer;
    position: relative;
    transition: all .16s ease-out;
}

.theme-swatch::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.theme-swatch.active {
    border-color: #f9fafb;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.8), 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.theme-swatch.active {
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.8), 0 0 0 4px rgba(10, 132, 255, 0.22);
}

.preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card) inset;
    position: relative;
    z-index: 1;
}

.preview-inner {
    position: relative;
    display: flex;
    justify-content: center;
}

.cv-preview-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    z-index: 10;
    border-radius: var(--radius-lg, 8px);
}
.cv-preview-loading.hidden {
    display: none !important;
}
.preview-inner.cv-preview-loading-active .preview-cv-scaled {
    visibility: hidden;
}
/* Paylaşım görünümü: yükleme bitince içerik mutlaka görünsün (sınıf / ölçek yarışı) */
body.cv-view-mode .preview-inner:not(.cv-preview-loading-active) .preview-cv-scaled {
    visibility: visible !important;
}
.cv-preview-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-subtle, #e5e7eb);
    border-top-color: var(--accent, #2563eb);
    border-radius: 50%;
    animation: cv-preview-loading-spin 0.7s linear infinite;
}
.cv-preview-loading-text {
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
}

html[data-theme="dark"] .cv-preview-loading {
    background: rgba(28, 28, 32, 0.94);
    color: var(--text-muted);
}

html[data-theme="dark"] .cv-preview-loading-spinner {
    border-color: rgba(255, 255, 255, 0.14);
    border-top-color: var(--accent);
}

html[data-theme="dark"] .cv-preview-loading-text {
    color: var(--text-muted);
}

@keyframes cv-preview-loading-spin {
    to { transform: rotate(360deg); }
}

.preview-hologram-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 794px;
    max-width: 100%;
    height: 100%;
    min-height: 1123px;
    pointer-events: none;
    background: repeating-linear-gradient(
        125deg,
        transparent,
        transparent 40px,
        rgba(255, 255, 255, 0.08) 40px,
        rgba(255, 255, 255, 0.08) 41px
    ),
    repeating-linear-gradient(
        -125deg,
        transparent,
        transparent 40px,
        rgba(0, 0, 0, 0.04) 40px,
        rgba(0, 0, 0, 0.04) 41px
    );
    opacity: 0.85;
    z-index: 2;
}

.preview-hologram-overlay .preview-hologram-slogan {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}
.preview-hologram-overlay.hidden {
    display: none !important;
}
.preview-hologram-overlay.hidden .preview-hologram-slogan {
    display: none;
}

@media print {
    .preview-hologram-overlay:not(.hidden) {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        opacity: 0.6;
    }
}

.preview-login-hint-below {
    margin-top: 14px;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.preview-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.overflow-warning {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--danger-soft);
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.4);
    font-size: 12px;
}

.overflow-warning.hidden {
    display: none;
}

.preview-login-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--primary-soft, rgba(37, 99, 235, 0.1));
    color: var(--primary-color, #2563eb);
    font-size: 0.9rem;
}

.preview-login-hint.hidden {
    display: none;
}
.preview-login-hint a {
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
}
.preview-login-hint a:hover {
    text-decoration: none;
}

/* CV PREVIEW — A4 genişlik; yükseklik içerik + (editörde) min A4 ile önizleme oranı */
.cv-root {
    /* Başlık ↔ hemen altındaki veri */
    --cv-title-to-content-gap: 12px;
    /* Bölümler arası — tek sayfaya sığdırma ile denge */
    --cv-section-gap: 18px;
    width: 794px;
    height: auto;
    min-height: 0;
    background: #f9fafb;
    color: #111827;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    padding: var(--cv-page-margin, 1cm);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    /* JS --cv-title-font: oluşturucudaki yazı tipi — ad, ünvan, gövde, bölüm başlıkları (ikon fontları kendi CSS’lerinde) */
    font-family: var(--cv-title-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    /* CV içi metinler çoğunlukla em; üç kademe için taban 9 / 10 / 11px */
    font-size: 10px;
}

.cv-root.layout-classic {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* flex gap yazdırmada display:block ile kaybolduğu için üst boşluk padding ile (önizleme = baskı) */
.cv-root.layout-classic > .cv-body {
    padding-top: var(--cv-section-gap, 12px);
    box-sizing: border-box;
}

/* Şablona göre yazı boyutu: minimal / normal / büyük (gövde + başlık em ile birlikte ölçeklenir) */
.cv-root.cv-font-minimal {
    font-size: 9px;
}
.cv-root.cv-font-normal {
    font-size: 10px;
}
.cv-root.cv-font-large {
    font-size: 11px;
}

.cv-root.layout-sidebar {
    display: grid;
    grid-template-columns: 0.3fr 0.7fr;
    column-gap: 18px;
    row-gap: var(--cv-section-gap, 12px);
}

/* Seçilen renk başlık arkası ve çizgilerde kullanılır (JS --cv-accent set eder) */
.cv-root .cv-header {
    border-bottom-color: var(--cv-accent);
    border-bottom-width: 2px;
}
.cv-root .cv-section-title {
    background: var(--cv-title-bg-soft, var(--cv-accent-soft));
    border-left: 3px solid var(--cv-accent);
    border-bottom: 1px solid var(--cv-accent);
    padding-left: 10px;
    padding-bottom: 4px;
    margin-bottom: 0;
}

/* Başlık seçenekleri: alt çizgi / arka plan / sol çizgi ayrı ayrı */
.cv-root.cv-title-no-underline .cv-section-title {
    border-bottom: none;
}

.cv-root.cv-title-no-bg .cv-section-title {
    background: transparent;
}

.cv-root.cv-title-no-left-line .cv-section-title {
    border-left: none;
    padding-left: 8px;
}

.cv-root .cv-section-title .cv-title-icon {
    font-size: 1.2em;
    opacity: 0.9;
    margin-right: 4px;
}

/* Başlık ile veri arası — tüm şablonlarda .cv-root --cv-title-to-content-gap */
.cv-section > .cv-section-title + * {
    margin-top: var(--cv-title-to-content-gap, 11px);
}

/* Carbon: sidebar (koyu panel) */
.cv-root.tpl-carbon .cv-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-right-color: rgba(255,255,255,0.12);
    padding-left: 14px;
    padding-right: 14px;
}

.cv-root.tpl-carbon .cv-sidebar .cv-header {
    padding-top: 12px;
}

.cv-root.tpl-carbon .cv-sidebar .cv-section-title {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-left-color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.cv-root.cv-title-no-bg.tpl-carbon .cv-sidebar .cv-section-title {
    background: transparent;
}

.cv-root.cv-title-no-underline.tpl-carbon .cv-sidebar .cv-section-title {
    border-bottom-color: transparent;
}

.cv-root.cv-title-no-left-line.tpl-carbon .cv-sidebar .cv-section-title {
    border-left: none;
}

.cv-root.tpl-carbon .cv-sidebar .cv-text-block {
    color: #e2e8f0 !important;
    line-height: 1.4;
    font-size: 0.952em !important;
}

.cv-root.tpl-carbon .cv-sidebar .cv-contact--sidebar-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left !important;
    /* Diğer (misc) satırları ~etiket+değer iki satır; iletişim tek satır — aralığı hizalamak için biraz geniş */
    gap: 8px;
}
.cv-root.tpl-carbon .cv-sidebar .cv-contact--sidebar-stack .cv-contact-footer-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    line-height: 1.45;
    color: #e2e8f0;
    padding: 2px 0;
}
.cv-root.tpl-carbon .cv-sidebar .cv-contact--sidebar-stack .cv-contact-footer-row > i {
    flex-shrink: 0;
    width: 1.1em;
    text-align: center;
    margin-top: 0.18em;
    color: rgba(255, 255, 255, 0.65);
}
.cv-root.tpl-carbon .cv-sidebar .cv-contact--sidebar-stack .cv-contact-footer-text {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: left !important;
    color: #e2e8f0;
}

.cv-root.tpl-carbon .cv-sidebar .cv-header {
    align-items: center;
    text-align: center;
}

.cv-root.tpl-carbon .cv-sidebar .cv-title-block {
    width: 100%;
    text-align: center;
}

.cv-root.tpl-carbon .cv-sidebar .cv-title-block h1,
.cv-root.tpl-carbon .cv-sidebar .cv-title-block .cv-role {
    color: #fff;
}

.cv-root.tpl-carbon .cv-sidebar .cv-role {
    color: rgba(255,255,255,0.85);
}

.cv-root.tpl-sage .cv-header-sage {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.cv-root.tpl-sage .cv-header-sage .cv-photo {
    flex-shrink: 0;
    order: -1;
}
.cv-root.tpl-sage .cv-header-sage-name-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.cv-root.tpl-sage .cv-header-sage-fullname {
    font-size: 2em;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: inherit;
}
.cv-root.tpl-sage .cv-header-sage .cv-role-sage {
    margin: 0;
    font-size: 1.2em;
    font-weight: 500;
    color: var(--cv-accent);
}
.cv-root.tpl-sage .cv-sidebar .cv-header {
    margin-bottom: 12px;
    padding-bottom: 4px;
}

/* Sage: sol panelde iletişim / diğer bilgiler / beceriler — ortalanmasın */
.cv-root.tpl-sage .cv-sidebar {
    text-align: left;
}

/* Sage yan panel: iletişim satırları «Diğer» ile aynı dikey aralık (br yerine blok satırlar) */
.cv-root.tpl-sage .cv-sidebar .cv-contact--sidebar-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left !important;
    gap: 6px;
}
.cv-root.tpl-sage .cv-sidebar .cv-contact--sidebar-stack .cv-contact-footer-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    line-height: 1.4;
    font-size: 0.952em;
    color: #4b5563;
}
.cv-root.tpl-sage .cv-sidebar .cv-contact--sidebar-stack .cv-contact-footer-row > i {
    flex-shrink: 0;
    width: 1.1em;
    text-align: center;
    margin-top: 0.18em;
    color: #6b7280;
}
.cv-root.tpl-sage .cv-sidebar .cv-contact--sidebar-stack .cv-contact-footer-text {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: left !important;
}

.cv-root.tpl-sage .cv-sidebar .cv-misc--inline {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px 0;
}

.cv-root.tpl-sage .cv-sidebar .cv-misc--inline .cv-misc-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.cv-root.tpl-sage .cv-sidebar .cv-misc--inline .cv-misc-label {
    white-space: normal;
    max-width: 100%;
}

.cv-root.tpl-sage .cv-sidebar .cv-misc--inline .cv-misc-value {
    width: 100%;
    line-height: 1.4;
}

.cv-root.tpl-sage .cv-sidebar .cv-misc--full {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    gap: 6px;
}

.cv-root.tpl-sage .cv-sidebar .cv-misc--full .cv-misc-item {
    display: flex;
    align-items: flex-start;
    width: 100%;
    justify-content: flex-start;
}

.cv-root.tpl-sage .cv-sidebar .cv-list-inline {
    justify-content: flex-start;
}

.cv-root.tpl-carbon .cv-sidebar .cv-misc-item {
    color: rgba(255,255,255,0.9);
}

/* Noir: editorial / film noir – klasik layout, siyah-beyaz + tek aksan çizgi */
.cv-root.tpl-noir {
    background: #fafafa;
    color: #0f0f0f;
}
.cv-root.tpl-noir .cv-header {
    border-bottom: 2px solid #0f0f0f;
    padding-bottom: 8px;
    padding-left: 0;
}
.cv-root.tpl-noir .cv-title-block h1 {
    font-size: 2.6em;
    letter-spacing: 0.02em;
    color: #0f0f0f;
    font-weight: 700;
    line-height: 1.1;
}
.cv-root.tpl-noir .cv-title-block .cv-role {
    color: #374151;
    font-size: 1.2em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.cv-root.tpl-noir .cv-contact {
    color: #4b5563;
}

/* Noir üst başlık: iletişim satır satır, sağa hizalı blok; satır arası dikey boşluk sıkı */
.cv-root.tpl-noir .cv-header .cv-contact.cv-contact--noir-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(52%, 280px);
    text-align: right;
}

.cv-root.tpl-noir .cv-header .cv-contact.cv-contact--noir-stack .cv-contact-footer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    justify-content: flex-end;
    color: #4b5563;
}

.cv-root.tpl-noir .cv-header .cv-contact.cv-contact--noir-stack .cv-contact-footer-row > i {
    color: #374151;
    flex-shrink: 0;
}

.cv-root.tpl-noir .cv-header .cv-contact.cv-contact--noir-stack .cv-contact-footer-text {
    text-align: right;
}
.cv-root.tpl-noir .cv-section-title {
    background: var(--cv-title-bg-soft, rgba(0, 0, 0, 0.06));
    color: #0f0f0f;
    border-left: 4px solid var(--cv-accent, #171717);
    border-bottom: none;
    padding-left: 10px;
    letter-spacing: var(--cv-title-letter-spacing, 0.1em);
    font-family: var(--cv-title-font, inherit);
}
.cv-root.cv-title-no-bg.tpl-noir .cv-section-title {
    background: transparent !important;
}
.cv-root.cv-title-no-left-line.tpl-noir .cv-section-title {
    border-left: none;
    border-bottom: 1px solid #0f0f0f;
}
.cv-root.cv-title-no-underline.tpl-noir .cv-section-title {
    border-bottom: none !important;
}
.cv-root.tpl-noir .cv-skill-line {
    border-left-color: #0f0f0f;
    background: rgba(0,0,0,0.06);
}
.cv-root.tpl-noir .cv-misc-item i {
    color: #374151;
}
.cv-root.tpl-noir .cv-body-noir-timeline {
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    gap: 0 14px;
    align-items: start;
}
.cv-root.tpl-noir .cv-timeline-line {
    width: 2px;
    background: #0f0f0f;
    min-height: 100%;
    justify-self: center;
}
.cv-root.tpl-noir .cv-timeline-left,
.cv-root.tpl-noir .cv-timeline-right {
    display: flex;
    flex-direction: column;
    gap: var(--cv-section-gap, 12px);
}
.cv-root.tpl-noir .cv-timeline-left .cv-section,
.cv-root.tpl-noir .cv-timeline-right .cv-section {
    margin-bottom: 0;
}

/* Aurora: zaman çizelgeli – dikey çizgi + düğüm noktaları (kuzey ışıkları tonu) */
.cv-root.tpl-aurora .cv-header {
    border-bottom: none;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(59, 130, 246, 0.1) 40%, rgba(139, 92, 246, 0.12) 100%);
    padding: 12px 14px 8px;
}
.cv-root.tpl-aurora .cv-main {
    position: relative;
    padding-left: 10px;
    border-left: 2px solid rgba(139, 92, 246, 0.5);
}
.cv-root.tpl-aurora .cv-main .cv-section-title {
    background: transparent !important;
    border-left: none;
    padding-left: 14px;
    position: relative;
}
.cv-root.tpl-aurora .cv-main .cv-section-title::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 0 2px #fff;
}
.cv-root.cv-title-no-bg.tpl-aurora .cv-main .cv-section-title::before {
    background: var(--cv-accent);
}
.cv-root.tpl-aurora .cv-main .cv-section-title span {
    margin-left: 0;
}
.cv-root.tpl-aurora .cv-sidebar .cv-section-title {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.1), rgba(139, 92, 246, 0.08)) !important;
    border-left: 3px solid #8b5cf6;
}
.cv-root.cv-title-no-bg.tpl-aurora .cv-sidebar .cv-section-title {
    background: transparent !important;
    border-left: 3px solid var(--cv-accent);
}
/* Glacier: beyaz zemin, teal vurgu; üst bilgi ve kart köşeleri düz (global 18px radius yok) */
.cv-root.tpl-glacier {
    background: #ffffff;
    border-radius: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.cv-root.tpl-glacier .cv-header {
    border-bottom: 3px solid #0d9488;
    padding-top: 10px;
    padding-bottom: 10px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.cv-root.tpl-glacier .cv-title-block .cv-role {
    color: #0f766e;
}
.cv-root.tpl-glacier .cv-section-title {
    border-radius: 6px 14px 14px 6px;
    border-left: 3px solid #0d9488;
    border-right: 1px solid rgba(13, 148, 136, 0.12);
    background: linear-gradient(95deg, rgba(13, 148, 136, 0.14), rgba(240, 253, 250, 0.85)) !important;
    box-shadow: 0 1px 0 rgba(13, 148, 136, 0.12);
}
.cv-root.cv-title-no-bg.tpl-glacier .cv-section-title {
    background: transparent !important;
    border-right-color: transparent;
    box-shadow: none;
}
.cv-root.cv-title-no-left-line.tpl-glacier .cv-section-title {
    border-left: none;
    border-right: none;
}
.cv-root.tpl-glacier .cv-photo {
    border-color: #14b8a6;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.2);
}
/* Prism: cam / ışık kırılması – mor-pembe-cyan gradient blokları */
.cv-root.tpl-prism .cv-header {
    border-bottom: none;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.05) 30%, rgba(34, 211, 238, 0.08) 60%, transparent 70%);
    padding: 12px 12px 8px;
    border-left: 4px solid #6366f1;
}
.cv-root.tpl-prism .cv-section-title {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.06)) !important;
    border-left: 3px solid #22d3ee;
    padding-left: 12px;
}
.cv-root.cv-title-no-bg.tpl-prism .cv-section-title {
    background: transparent !important;
    border-left: 3px solid var(--cv-accent);
}
.cv-root.tpl-aurora .cv-sidebar .cv-section-title {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.1), rgba(139, 92, 246, 0.08)) !important;
}
.cv-root.cv-title-no-left-line.tpl-prism .cv-section-title {
    border-left: none;
}
/* Dusk: üst .cv-header = yalnızca ana renk (--cv-dusk-header-*); bölüm başlıkları = Başlık arka plan (--cv-dusk-title-*, --cv-title-bg) */
.cv-root.tpl-dusk .cv-header {
    border-bottom: none;
    background: linear-gradient(
        160deg,
        var(--cv-dusk-header-a, rgba(236, 72, 153, 0.14)),
        var(--cv-dusk-header-b, rgba(244, 114, 182, 0.08)),
        transparent
    );
    padding: 12px 12px 8px;
}
/* Dusk: üst başlıktaki iletişim ikon/metin «Başlık arka plan» veya vurgu rengine bağlanmasın */
.cv-root.tpl-dusk .cv-header .cv-contact,
.cv-root.tpl-dusk .cv-header .cv-contact .cv-contact-line {
    color: #4b5563 !important;
}
.cv-root.tpl-dusk .cv-header .cv-contact i {
    color: #4b5563 !important;
}
.cv-root.tpl-dusk .cv-section-title .cv-title-icon {
    color: #4b5563 !important;
}
.cv-root.tpl-dusk .cv-section-title {
    background: linear-gradient(
        90deg,
        var(--cv-dusk-title-a, rgba(236, 72, 153, 0.12)),
        var(--cv-dusk-title-b, rgba(244, 114, 182, 0.06))
    ) !important;
    border-left: 3px solid var(--cv-title-bg, var(--cv-accent, #ec4899));
}
.cv-root.cv-title-no-left-line.tpl-dusk .cv-section-title {
    border-left: none;
}
/* Ivory: düz editoryal CV — beyaz zemin, ince çizgiler, tek sütun, tipik ATS/PDF düzeni */
.cv-root.tpl-ivory {
    background: #ffffff;
    color: #171717;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-family: var(--cv-title-font, "Merriweather", Georgia, "Times New Roman", serif) !important;
    /* Tek sayfaya sığdırma: kenar + dikey ritim (JS --cv-section-gap ile çarpan) */
    --cv-page-margin: 0.72cm;
    --cv-print-pad-px: 28px;
    /* Bölüm başlığı altı ince çizgi (üst başlık çizgisiyle aynı ton) */
    --cv-ivory-section-rule: #e5e7eb;
    /* Gövde: siyah ton, kalınlık yalnızca okul/şirket vb. vurguda */
    --cv-ivory-body: #171717;
    --cv-ivory-muted: #454545;
    --cv-ivory-emphasis: #0a0a0a;
}
.cv-root.tpl-ivory .cv-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 2px 12px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.cv-root.tpl-ivory .cv-title-block h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0a0a0a;
}
.cv-root.tpl-ivory .cv-title-block .cv-role {
    color: var(--cv-ivory-body, #171717);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    font-size: 1.02em;
    margin-top: 3px;
}
.cv-root.tpl-ivory .cv-contact {
    color: #171717;
    font-size: 0.875em;
    line-height: 1.5;
    text-align: right;
}
.cv-root.tpl-ivory .cv-contact-line {
    display: block;
    text-align: right;
}
.cv-root.tpl-ivory .cv-contact-line i {
    color: #525252;
    margin-right: 6px;
    width: 1em;
    text-align: center;
}
/* Ivory üst başlık: ad / iletişim / foto dikey ortada; iletişim satırları sıkı (br + büyük line-height boşluğu kalkar) */
.cv-root.tpl-ivory > header.cv-header .cv-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    line-height: 1.35;
    font-size: 0.875em;
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(46%, 320px);
}
.cv-root.tpl-ivory > header.cv-header .cv-contact br {
    display: none;
}
.cv-root.tpl-ivory > header.cv-header .cv-contact .cv-contact-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    line-height: 1.35;
    margin: 0;
    padding: 0;
    text-align: left;
}
.cv-root.tpl-ivory > header.cv-header .cv-contact .cv-contact-line i {
    margin-right: 0;
}
.cv-root.tpl-ivory > header.cv-header .cv-title-block {
    flex: 0 1 auto;
    min-width: 0;
}
.cv-root.tpl-ivory > header.cv-header .cv-photo {
    flex-shrink: 0;
    align-self: center;
}

.cv-root.tpl-carbon.layout-sidebar {
    grid-template-columns: 0.36fr 0.64fr;
}

.cv-root.tpl-carbon .cv-main .cv-section-title {
    background: var(--cv-title-bg-soft, var(--cv-accent-soft));
    color: #111827;
    border-radius: 0;
    padding-inline: 0;
    border-left: 3px solid var(--cv-accent);
    border-bottom: 1px solid var(--cv-accent);
}

.cv-root.cv-title-no-bg.tpl-carbon .cv-main .cv-section-title {
    background: transparent;
}

.cv-root.cv-title-no-underline.tpl-carbon .cv-main .cv-section-title {
    border-bottom: none;
}

.cv-root.cv-title-no-left-line.tpl-carbon .cv-main .cv-section-title {
    border-left: none;
}

/* İkon açıksa: başlıkla uyumlu boyut (switch tüm şablonlarda) */
.cv-root.tpl-ivory .cv-section-title .cv-title-icon {
    font-size: 1em;
    opacity: 0.88;
    margin-right: 6px;
    color: #525252;
}
/* Bölüm başlığı: oluşturucudaki font / harf aralığı (--cv-title-* JS ile kökte set edilir) */
.cv-root.tpl-ivory .cv-section-title,
.cv-root.tpl-ivory .cv-section > .cv-section-title {
    font-family: var(--cv-title-font, "Merriweather", Georgia, "Times New Roman", serif) !important;
}
.cv-root.tpl-ivory .cv-section-title span {
    font-family: inherit !important;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: inherit;
}
.cv-root.tpl-ivory .cv-body {
    grid-template-columns: 1fr !important;
    gap: 0;
    column-gap: 0;
}
.cv-root.layout-classic.tpl-ivory > .cv-body {
    position: relative;
    padding-top: calc(var(--cv-section-gap, 12px) * 0.68);
    padding-left: 0;
    box-sizing: border-box;
}

/* Gövde sol dikey çizgi (pseudo) — Ivory’de kullanılmaz */
.cv-root.layout-classic.tpl-ivory > .cv-body::before {
    content: none !important;
    display: none !important;
}
.cv-root.tpl-ivory .cv-section > .cv-section-title + * {
    margin-top: calc(var(--cv-title-to-content-gap, 11px) * 0.85);
}
.cv-root.tpl-ivory .cv-section {
    margin-bottom: calc(var(--cv-section-gap, 14px) * 0.72);
    font-size: 1em;
    line-height: 1.34;
}
/* Bölüm başlıkları: okunaklı boyut + kontrast (çok küçük em + aşırı tracking kaldırıldı) */
.cv-root.tpl-ivory .cv-section > .cv-section-title {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 0 8px 0;
    border: none;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    color: #0a0a0a;
    font-weight: 800;
    font-size: 0.92em;
    letter-spacing: var(--cv-title-letter-spacing, 0.06em);
    border-bottom: 1px solid var(--cv-ivory-section-rule, #e5e7eb);
}
.cv-root.tpl-ivory .cv-section > .cv-section-title::before {
    content: none;
    display: none;
}
.cv-root.cv-title-no-bg.tpl-ivory .cv-section > .cv-section-title {
    background: transparent !important;
}
.cv-root.cv-title-no-left-line.tpl-ivory .cv-section > .cv-section-title {
    padding-left: 0;
}
.cv-root.cv-title-style-full.tpl-ivory .cv-section-title {
    border-left: none;
    border-radius: 0;
    padding: 0 0 8px 0;
    background: transparent !important;
    border-bottom: 1px solid var(--cv-ivory-section-rule, #e5e7eb);
}
.cv-root.cv-title-style-full.cv-title-no-underline.tpl-ivory .cv-section-title {
    border-bottom: 1px solid var(--cv-ivory-section-rule, #e5e7eb);
}
.cv-root.cv-title-no-underline.tpl-ivory .cv-section > .cv-section-title {
    border-bottom: 1px solid var(--cv-ivory-section-rule, #e5e7eb);
}
.cv-root.tpl-ivory .cv-text-block {
    color: var(--cv-ivory-body, #171717);
    font-weight: 400;
    line-height: 1.38;
    font-size: 0.98em;
}
/* Kurs / referans: isim vurgusu — tam siyaha gömülü <strong> yerine kontrollü ağırlık */
.cv-root.tpl-ivory .cv-text-block strong {
    font-weight: 600;
    color: var(--cv-ivory-emphasis, #0a0a0a);
}
.cv-root.tpl-ivory .cv-item-title {
    color: var(--cv-ivory-emphasis, #0a0a0a);
}
.cv-root.tpl-ivory .cv-item-meta {
    color: var(--cv-ivory-body, #171717);
    font-weight: 400;
}
.cv-root.tpl-ivory .cv-item-list {
    gap: 8px;
}

/* Eğitim / iş deneyimi: ardışık kayıtlar arası kısa ayraç (okunurluk) */
.cv-root.tpl-ivory .cv-section-education .cv-item-list,
.cv-root.tpl-ivory .cv-section-experience .cv-item-list {
    gap: 0;
}

.cv-root.tpl-ivory .cv-section-education .cv-item-list > .cv-item--ivory + .cv-item--ivory,
.cv-root.tpl-ivory .cv-section-experience .cv-item-list > .cv-item--ivory + .cv-item--ivory {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dotted rgba(23, 23, 23, 0.14);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.cv-root.tpl-ivory .cv-item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px 24px;
    width: 100%;
}
/* Varsayılan satır metni: normal ağırlık, gövde siyahı */
.cv-root.tpl-ivory .cv-item-primary {
    font-weight: 400;
    color: var(--cv-ivory-body, #171717);
    font-size: 0.98em;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}
/* Eğitim: okul (veya tek satırda bölüm) — vurgu */
.cv-root.tpl-ivory .cv-section-education .cv-item--ivory .cv-item-primary {
    font-weight: 700;
    color: var(--cv-ivory-emphasis, #0a0a0a);
}
/* Eğitim: bölüm satırı — hafif vurgu, tam kalın değil */
.cv-root.tpl-ivory .cv-section-education .cv-item--ivory .cv-item-secondary {
    font-weight: 600;
    color: var(--cv-ivory-body, #171717);
}

/* İş deneyimi: «Şirket – Pozisyon» tek satır; şirket kalın, pozisyon normal gövde */
.cv-root.tpl-ivory .cv-item-ivory-company-line {
    font-weight: 400;
    color: var(--cv-ivory-body, #171717);
    font-size: 0.98em;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}
.cv-root.tpl-ivory .cv-item-ivory-exp-company {
    font-weight: 700;
    color: var(--cv-ivory-emphasis, #0a0a0a);
}
.cv-root.tpl-ivory .cv-item-ivory-exp-sep {
    font-weight: 400;
    color: #a3a3a3;
    padding: 0 1px;
}
.cv-root.tpl-ivory .cv-item-ivory-exp-role {
    font-weight: 400;
    color: var(--cv-ivory-body, #171717);
}
.cv-root.tpl-ivory .cv-item-ivory-exp-single {
    font-weight: 700;
    color: var(--cv-ivory-emphasis, #0a0a0a);
}
.cv-root.tpl-ivory .cv-item-dates {
    font-size: 0.88em;
    color: var(--cv-ivory-muted, #454545);
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}
.cv-root.tpl-ivory .cv-item-secondary {
    font-size: 0.88em;
    color: var(--cv-ivory-body, #171717);
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.3;
}
.cv-root.tpl-ivory .cv-item-desc {
    margin-top: 4px;
    padding-left: 0;
    font-size: 0.88em;
    line-height: 1.34;
    color: var(--cv-ivory-body, #171717);
    font-weight: 400;
}
.cv-root.layout-classic.tpl-ivory .cv-item--ivory .cv-item-desc {
    padding-left: 0;
}
.cv-root.layout-classic.tpl-ivory .cv-section .cv-text-block {
    padding-left: 0;
}
.cv-root.layout-classic.tpl-ivory .cv-section .cv-item-list,
.cv-root.layout-classic.tpl-ivory .cv-section .cv-list-inline.cv-skill-lines,
.cv-root.layout-classic.tpl-ivory .cv-section .cv-languages,
.cv-root.layout-classic.tpl-ivory .cv-section .cv-misc-section .cv-misc {
    padding-left: 0;
}
/* Diğer (Kişisel): etiket hafif; değer = split iletişim satırı ile aynı ritim (font ailesi .cv-root’tan) */
.cv-root.tpl-ivory .cv-misc--inline .cv-misc-label {
    color: var(--cv-ivory-muted, #454545);
    font-weight: 500;
    font-size: 0.875em;
    line-height: 1.35;
}
.cv-root.tpl-ivory .cv-misc--inline .cv-misc-label i {
    color: #525252;
    font-size: 1em;
}
.cv-root.tpl-ivory .cv-misc--inline .cv-misc-value {
    color: var(--cv-ivory-body, #171717);
    font-weight: 400;
    font-size: 0.875em;
    line-height: 1.35;
}
.cv-root.tpl-ivory .cv-misc--full .cv-misc-item {
    color: var(--cv-ivory-body, #171717);
    font-weight: 400;
}
/* Ivory + iletişim altta: Diğer (sol) | çizgi | İletişim satırları (sağ) */
.cv-root.tpl-ivory .cv-ivory-misc-contact-split {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
/* Başlıklar grid hücresinde; .cv-section > seçicisi burada eşleşmez */
.cv-root.tpl-ivory .cv-ivory-misc-contact-split .cv-section-title {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 6px 0;
    padding: 0 0 8px 0;
    border: none;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    color: #0a0a0a;
    font-weight: 800;
    font-size: 0.92em;
    letter-spacing: var(--cv-title-letter-spacing, 0.06em);
    font-family: var(--cv-title-font, "Merriweather", Georgia, "Times New Roman", serif) !important;
    border-bottom: 1px solid var(--cv-ivory-section-rule, #e5e7eb);
}
.cv-root.tpl-ivory .cv-ivory-misc-contact-split .cv-section-title + * {
    margin-top: calc(var(--cv-title-to-content-gap, 11px) * 0.85);
}
.cv-root.tpl-ivory .cv-ivory-misc-contact-split__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 12px 18px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.cv-root.tpl-ivory .cv-ivory-misc-contact-split__misc,
.cv-root.tpl-ivory .cv-ivory-misc-contact-split__contact {
    min-width: 0;
    padding-left: 0;
}
.cv-root.tpl-ivory .cv-ivory-misc-contact-split__rule {
    width: 1px;
    background: #d4d4d8;
    align-self: stretch;
    min-height: 2.5em;
    margin-top: 0.2em;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.cv-root.tpl-ivory .cv-contact--ivory-split-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    text-align: left;
}
.cv-root.tpl-ivory .cv-contact--ivory-split-footer .cv-contact-footer-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}
.cv-root.tpl-ivory .cv-contact--ivory-split-footer .cv-contact-footer-row > i {
    flex-shrink: 0;
    width: 1.1em;
    text-align: center;
    margin-top: 0.12em;
    color: #525252;
}
.cv-root.tpl-ivory .cv-contact--ivory-split-footer .cv-contact-footer-text {
    flex: 0 1 auto;
    min-width: 0;
    text-align: left !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    color: var(--cv-ivory-body, #171717);
    font-weight: 400;
    font-size: 0.875em;
    line-height: 1.35;
}
.cv-root.tpl-ivory .cv-section:has(ul.cv-languages),
.cv-root.tpl-ivory .cv-section.cv-section--ivory-lang {
    padding-top: 5px;
    margin-top: 0;
    border-top: 1px dotted rgba(23, 23, 23, 0.14);
}
/* Ivory: beceri / dil — iş deneyimi satırı (sol isim, sağ derece) */
.cv-root.tpl-ivory .cv-item-list--ivory-skills,
.cv-root.tpl-ivory .cv-item-list--ivory-lang {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cv-root.tpl-ivory .cv-item--ivory-skill-row,
.cv-root.tpl-ivory .cv-item--ivory-lang-row {
    margin: 0;
    padding: 0;
}
.cv-root.tpl-ivory .cv-item--ivory-skill-row .cv-item-head,
.cv-root.tpl-ivory .cv-item--ivory-lang-row .cv-item-head {
    margin: 0;
}
/* Beceri / dil: iş deneyimi gibi tek satır — ölçekli önizlemede flex sütununa düşmesin */
.cv-root.tpl-ivory .cv-item-list--ivory-skills .cv-item--ivory-skill-row,
.cv-root.tpl-ivory .cv-item-list--ivory-lang .cv-item--ivory-lang-row {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.cv-root.tpl-ivory .cv-item-list--ivory-skills .cv-item--ivory-skill-row .cv-item-head,
.cv-root.tpl-ivory .cv-item-list--ivory-lang .cv-item--ivory-lang-row .cv-item-head {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: space-between !important;
    align-items: baseline !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    gap: 12px 18px;
}
.cv-root.tpl-ivory .cv-item-list--ivory-skills .cv-item--ivory-skill-row .cv-item-primary,
.cv-root.tpl-ivory .cv-item-list--ivory-lang .cv-item--ivory-lang-row .cv-item-primary {
    flex: 1 1 auto !important;
    min-width: 0;
    font-weight: 400 !important;
    color: var(--cv-ivory-body, #171717) !important;
}
.cv-root.tpl-ivory .cv-item-list--ivory-skills .cv-item--ivory-skill-row .cv-item-dates,
.cv-root.tpl-ivory .cv-item-list--ivory-lang .cv-item--ivory-lang-row .cv-item-dates {
    flex: 0 0 auto !important;
    text-align: right;
    margin-left: auto;
    font-weight: 400 !important;
    color: var(--cv-ivory-muted, #454545) !important;
}
.cv-root.tpl-ivory .cv-photo {
    border: 1px solid #e5e7eb;
    box-shadow: none;
    width: 72px;
    height: 84px;
}
.cv-root.tpl-ivory .cv-photo.cv-photo-round {
    border-radius: 50%;
    width: 68px;
    height: 68px;
}

.cv-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

/* Klasik üst satır (ad / iletişim / foto): dikey ortada ekran = baskı — flex-end bazı baskılarda kayma yapıyordu */
.cv-root.tpl-aurora > header.cv-header,
.cv-root.tpl-glacier > header.cv-header,
.cv-root.tpl-prism > header.cv-header,
.cv-root.tpl-dusk > header.cv-header,
.cv-root.tpl-ivory > header.cv-header,
.cv-root.tpl-noir > header.cv-header {
    align-items: center;
}

.cv-title-block h1 {
    margin: 0 0 1px;
    font-size: 2.8em;
    letter-spacing: -.03em;
    line-height: 1.12;
}

.cv-title-block .cv-role {
    margin: 0;
    font-size: 1.3em;
    font-weight: 500;
    color: #374151;
    line-height: 1.25;
}

.cv-contact {
    text-align: right;
    font-size: 1em;
    color: #4b5563;
}

/* Sage/Carbon yan panel: klasik üst başlık .cv-contact sağ hizası burada kesin sıfırlanır (dosya sonrası cascade) */
.cv-root.tpl-carbon .cv-sidebar .cv-contact,
.cv-root.tpl-sage .cv-sidebar .cv-contact {
    text-align: left;
}
.cv-root.tpl-carbon .cv-sidebar .cv-text-block.cv-sidebar-contact-text,
.cv-root.tpl-sage .cv-sidebar .cv-text-block.cv-sidebar-contact-text {
    text-align: left;
}

/* İletişim «Alt»: gövdede üstte — kalemler yan yana, ortada (Noir sol sütunda dikey) */
.cv-root .cv-section-contact-footer .cv-contact.cv-contact--footer-stack {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 22px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cv-root .cv-section-contact-footer .cv-contact-footer-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
    font-size: 1em;
    color: #4b5563;
    flex: 0 1 auto;
    max-width: 100%;
}

.cv-root .cv-section-contact-footer .cv-contact-footer-row > i {
    flex-shrink: 0;
    width: 1.15em;
    text-align: center;
    margin-top: 0;
    color: #6b7280;
    opacity: 0.95;
}

.cv-root .cv-section-contact-footer .cv-contact-footer-text {
    flex: 0 1 auto;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: left;
}

.cv-root.tpl-dusk .cv-section-contact-footer .cv-contact-footer-row,
.cv-root.tpl-dusk .cv-section-contact-footer .cv-contact-footer-text {
    color: #4b5563;
}

.cv-root.tpl-noir .cv-section-contact-footer .cv-contact-footer-row > i {
    color: #374151;
}

/* Noir: sol sütun dar — İletişim alt modunda dikey liste */
.cv-root.tpl-noir .cv-section-contact-footer .cv-contact.cv-contact--footer-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    text-align: left;
}
.cv-root.tpl-noir .cv-section-contact-footer .cv-contact-footer-row {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
}
.cv-root.tpl-noir .cv-section-contact-footer .cv-contact-footer-row > i {
    margin-top: 0.2em;
}
.cv-root.tpl-noir .cv-section-contact-footer .cv-contact-footer-text {
    flex: 1;
    text-align: left;
}

/* Noir dışı: alt İletişim başlığı ortada; satırlar yan yana ortalanır */
.cv-root:not(.tpl-noir) .cv-section-contact-footer {
    text-align: center;
}
.cv-root:not(.tpl-noir) .cv-section-contact-footer .cv-contact.cv-contact--footer-stack {
    justify-content: center;
}
.cv-root:not(.tpl-noir) .cv-section-contact-footer .cv-contact-footer-row {
    justify-content: center;
}
.cv-root:not(.tpl-noir) .cv-title-align-left .cv-section-contact-footer .cv-contact-footer-text {
    text-align: left;
}

/* Sage / Carbon: alt İletişim — ikon + metin sola (.cv-contact varsayılanı sağ hizayı iptal) */
.cv-root.tpl-carbon .cv-section-contact-footer,
.cv-root.tpl-sage .cv-section-contact-footer {
    text-align: left;
}
.cv-root.tpl-carbon .cv-section-contact-footer .cv-contact.cv-contact--footer-stack,
.cv-root.tpl-sage .cv-section-contact-footer .cv-contact.cv-contact--footer-stack {
    justify-content: flex-start;
    text-align: left;
}
.cv-root.tpl-carbon .cv-section-contact-footer .cv-contact-footer-row,
.cv-root.tpl-sage .cv-section-contact-footer .cv-contact-footer-row {
    justify-content: flex-start;
}
.cv-root.tpl-carbon .cv-section-contact-footer .cv-contact-footer-text,
.cv-root.tpl-sage .cv-section-contact-footer .cv-contact-footer-text {
    text-align: left;
}

.cv-contact div {
    line-height: 1.35;
}

.cv-photo {
    width: 84px;
    height: 98px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--cv-accent);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
    flex-shrink: 0;
}

.cv-photo.cv-photo-round {
    width: 76px;
    height: 76px;
    border-radius: 50%;
}

.cv-photo.cv-photo-square {
    border-radius: 12px;
}

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

.cv-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* Dikey aralık .cv-section margin-bottom + --cv-section-gap; çift boşluk olmasın */
    gap: 0 22px;
}

.cv-section {
    font-size: 1.05em;
    line-height: 1.43;
    margin-bottom: var(--cv-section-gap, 14px);
}

.cv-section:last-child {
    margin-bottom: 0;
}

.cv-section.full {
    grid-column: 1 / -1;
}

.cv-section-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    /* Üst .cv-section 1.05em iken ≈10px */
    font-size: 0.952em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--cv-title-letter-spacing, 0.1em);
    font-family: var(--cv-title-font, inherit);
    background: var(--cv-title-bg-soft, var(--cv-accent-soft));
    color: #111827;
    padding: 2px 7px;
    border-radius: 999px;
    margin-bottom: 0;
}

.cv-section-title span {
    font-size: 0.9em;
}

/* Başlık: tam genişlik - bölüm tam genişlikte, başlık 100% */
.cv-root.cv-title-style-full .cv-section {
    grid-column: 1 / -1;
}

.cv-root.cv-title-style-full .cv-section-title {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    padding: 4px 10px;
    margin-bottom: 0;
    border-left: 3px solid var(--cv-accent);
    border-bottom: 1px solid var(--cv-accent);
}

.cv-root.cv-title-style-full.cv-title-no-underline .cv-section-title {
    border-bottom: none;
}

.cv-root.cv-title-style-full.cv-title-no-left-line .cv-section-title {
    border-left: none;
    padding-left: 12px;
}

.cv-root.cv-title-align-left .cv-section-title {
    text-align: left;
    justify-content: flex-start;
}

.cv-root.cv-title-align-center .cv-section-title {
    text-align: center;
    justify-content: center;
}

.cv-root.cv-title-style-full.cv-title-align-center .cv-section-title {
    justify-content: center;
}

/* Sage sol sütun: başlık hizası global “ortada” seçili olsa da solda kalsın */
.cv-root.tpl-sage .cv-sidebar .cv-section-title {
    text-align: left;
    justify-content: flex-start;
}

.cv-text-block {
    white-space: pre-line;
    color: #111827;
    margin-top: 0;
    font-size: 0.952em;
}

/* Eğitim / İş deneyimi: başlık (kalın) + alt satır (yumuşak gri) */
.cv-item-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cv-item {
    margin-top: 1px;
}

.cv-item-title {
    font-weight: 600;
    color: #111827;
    font-size: 0.952em;
}

.cv-item-meta {
    font-size: 0.857em;
    color: #6b7280;
    margin-top: 1px;
}

/* Eğitim: okul adı vurgulu (tüm şablonlar) */
.cv-section-education .cv-item-title,
.cv-main .cv-section-education .cv-item-title,
.cv-timeline-left .cv-section-education .cv-item-title,
.cv-body .cv-section-education .cv-item-title {
    font-weight: 700 !important;
    font-size: 1.048em !important;
    color: #0f172a;
    letter-spacing: 0.02em;
}
.cv-section-education .cv-item-meta,
.cv-main .cv-section-education .cv-item-meta,
.cv-timeline-left .cv-section-education .cv-item-meta,
.cv-body .cv-section-education .cv-item-meta {
    font-size: 0.857em;
    color: #475569;
    margin-top: 2px;
}
.cv-section-education .cv-item-meta-department,
.cv-main .cv-section-education .cv-item-meta-department,
.cv-timeline-left .cv-section-education .cv-item-meta-department,
.cv-body .cv-section-education .cv-item-meta-department {
    font-weight: 600;
    color: #0f172a;
}

/* Ehliyet / Medeni hal: ikon + metin */
.cv-misc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.cv-misc--full {
    justify-content: center;
    text-align: center;
}

.cv-misc--inline {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 14px;
    align-items: baseline;
}

.cv-misc--inline .cv-misc-row {
    display: contents;
}

.cv-misc--inline .cv-misc-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.952em;
    color: #374151;
    white-space: nowrap;
}

.cv-misc--inline .cv-misc-value {
    font-size: 0.952em;
    color: #111827;
}

.cv-misc-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.952em;
    color: #374151;
}

.cv-misc-item i {
    color: #6b7280;
    font-size: 1.2em;
}

.cv-misc--inline .cv-misc-label i {
    color: #6b7280;
    font-size: 1.2em;
}

.cv-root.tpl-carbon .cv-sidebar .cv-misc-item i,
.cv-root.tpl-carbon .cv-sidebar .cv-misc-label i {
    color: rgba(255, 255, 255, 0.75);
}
.cv-root.tpl-carbon .cv-sidebar .cv-misc-label {
    color: rgba(255, 255, 255, 0.9);
}
.cv-root.tpl-carbon .cv-sidebar .cv-misc-value {
    color: rgba(255, 255, 255, 0.95);
}
.cv-root.tpl-carbon .cv-sidebar .cv-section-education .cv-item-title {
    color: #f1f5f9;
    font-weight: 700;
}
.cv-root.tpl-carbon .cv-sidebar .cv-section-education .cv-item-meta {
    color: rgba(255, 255, 255, 0.8);
}
.cv-root.tpl-carbon .cv-sidebar .cv-section-education .cv-item-meta-department {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* Carbon: kişisel / diğer bilgiler — sidebar’da her satır alt alta (iletişim stack ile aynı dikey ritim) */
.cv-root.tpl-carbon .cv-sidebar .cv-misc--inline {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px 0;
}

.cv-root.tpl-carbon .cv-sidebar .cv-misc--inline .cv-misc-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.cv-root.tpl-carbon .cv-sidebar .cv-misc--inline .cv-misc-label {
    white-space: normal;
    max-width: 100%;
}

.cv-root.tpl-carbon .cv-sidebar .cv-misc--inline .cv-misc-value {
    width: 100%;
    line-height: 1.4;
}

.cv-root.tpl-carbon .cv-sidebar .cv-misc--full {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    gap: 8px;
}

.cv-root.tpl-carbon .cv-sidebar .cv-misc--full .cv-misc-item {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

/* Carbon: ana sütun — çift dikey boşluk olmasın; ayırıcı çizgi + tek ritim */
.cv-root.tpl-carbon .cv-main > .cv-section {
    margin-bottom: 0;
}
.cv-root.tpl-carbon .cv-main > .cv-section:not(:first-child) {
    margin-top: var(--cv-section-gap, 12px);
    padding-top: calc(var(--cv-section-gap, 12px) * 0.5);
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.cv-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 0;
}

.cv-pill {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--cv-accent-soft);
    color: #111827;
    font-size: 0.857em;
}

.cv-skill-line {
    display: inline-block;
    padding: 3px 0 3px 8px;
    margin: 1px 6px 1px 0;
    border-left: 3px solid var(--cv-accent);
    background: rgba(0, 0, 0, 0.04);
    border-radius: 0 6px 6px 0;
    color: #111827;
    font-size: 0.952em;
}

.cv-skill-stars {
    color: #f59e0b;
    font-size: 1.1em;
    letter-spacing: 1px;
    margin-left: 2px;
}

.cv-root.tpl-carbon .cv-sidebar .cv-skill-lines {
    padding-right: 4px;
}
.cv-root.tpl-carbon .cv-sidebar .cv-skill-line {
    border-left-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
}

.cv-root.tpl-carbon .cv-sidebar .cv-skill-stars {
    color: #fbbf24;
}

.cv-languages {
    text-align: left;
    padding-left: 0;
    list-style: none;
    margin-left: 0;
}

.cv-languages li {
    margin-left: 0;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}

.cv-lang-name {
    min-width: 0;
    text-align: left;
}

.cv-lang-stars {
    color: #f59e0b;
    font-size: 1.2em;
    letter-spacing: 1px;
}

.cv-root.tpl-carbon .cv-sidebar .cv-lang-stars {
    color: #fbbf24;
}

.cv-root.tpl-carbon .cv-sidebar .cv-languages,
.cv-root.tpl-carbon .cv-sidebar .cv-lang-name {
    color: rgba(255, 255, 255, 0.95);
}

.cv-extra li {
    margin-left: 14px;
    margin-bottom: 2px;
}

/* Taşan mutlak QR kart dışına sızmasın; konum create/script.js içinde köke sıkıştırılır */
#cvPreview {
    position: relative;
    overflow: hidden;
}

/* Önizleme ızgarası: QR hizalama / qrGridCell kaydı (yazdırmada kapalı) */
#cvPreview.cv-preview-grid-on::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
    opacity: 0.32;
    background-image:
        linear-gradient(to right, rgba(37, 99, 235, 0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(37, 99, 235, 0.5) 1px, transparent 1px);
    background-size: var(--cv-grid-cell, 40px) var(--cv-grid-cell, 40px);
}

html[data-theme="dark"] #cvPreview.cv-preview-grid-on::before {
    background-image:
        linear-gradient(to right, rgba(147, 197, 253, 0.4) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(147, 197, 253, 0.4) 1px, transparent 1px);
}

.preview-grid-hint {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.45;
}

.preview-coord-readout {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary, #475569);
    text-align: center;
    padding: 8px 12px;
    margin: 0 auto 10px;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--bg-soft, #f1f5f9);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    font-variant-numeric: tabular-nums;
}

html[data-theme="dark"] .preview-coord-readout {
    color: var(--text-muted, #94a3b8);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

@media print {
    #cvPreview.cv-preview-grid-on::before {
        display: none !important;
        content: none !important;
    }

    .preview-coord-readout {
        display: none !important;
    }
}

.cv-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    position: absolute;
    z-index: 20;
}

.cv-qr-wrap.cv-qr-draggable {
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    z-index: 10;
}

.cv-qr-wrap.cv-qr-draggable img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    pointer-events: none;
}

.cv-qr-resize-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    background: var(--accent, #2563eb);
    cursor: nwse-resize;
    border-radius: 2px 0 0 0;
    opacity: 0.8;
}

.cv-qr-resize-handle:hover {
    opacity: 1;
}

.cv-qr-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
}

.cv-qr-wrap .cv-qr-placeholder {
    font-size: 0.8em;
    color: #6b7280;
    padding: 4px;
}

/* Paylaşım (?view=1): draggable yok; taban 8px padding 48px kutuyu içeride 32px QR’ye indiriyordu */
body.cv-view-mode .cv-qr-wrap:not(.cv-qr-draggable) {
    padding: 0;
}

/* Eski şablon / önbellek: ad + güncelleme satırı artık kullanılmıyor */
.cv-footer-note {
    display: none !important;
}

.cv-sidebar {
    border-right: 1px solid rgba(209, 213, 219, 0.9);
    padding-right: 14px;
}

.cv-main {
    padding-left: 2px;
}

/* Accordion */
.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-card {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #f9fafb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.accordion-header {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 10px;
}

.accordion-header h3 {
    margin: 0;
    font-size: 14px;
}

.accordion-header p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.accordion-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-body {
    padding: 0 14px 10px;
    display: none;
}

.accordion-card.open .accordion-body {
    display: block;
}

/* Sürüklenebilir satır: taşıma ikonu + içerik */
.draggable-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: #fafafa;
    cursor: grab;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out, box-shadow 0.2s ease-out;
}

.draggable-row:active {
    cursor: grabbing;
}

/* Sürükleme sırasında hedef konumda kayma animasyonu */
.draggable-row.cv-drop-before {
    transform: translateY(-10px);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.draggable-row.cv-drop-after {
    transform: translateY(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.draggable-row .row-drag-handle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 8px;
    margin-top: 2px;
}

.draggable-row .row-drag-handle:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.draggable-row .row-drag-handle i {
    font-size: 14px;
}

.draggable-row > .row-content {
    flex: 1;
    min-width: 0;
}

.draggable-row.row-dragging {
    opacity: 0.7;
    cursor: grabbing;
    transform: scale(0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.accordion-card.open .accordion-header i.fa-chevron-down {
    transform: rotate(180deg);
}

.sub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.sub-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Çalışma bilgisi: Tüm alanlar tek satırda yatay (Şirket | Pozisyon | Süre | Birim) */
.sub-grid-experience {
    grid-template-columns: 1fr 1fr minmax(0, 72px) minmax(0, 72px);
    gap: 10px 12px;
    margin-top: 8px;
}

.experience-row .field-experience-detail {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.experience-row .field-experience-detail textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.45;
}

/* Önizleme: iş deneyimi detay + seviye metinleri */
.cv-item-desc {
    margin-top: 4px;
    font-size: 0.92em;
    line-height: 1.38;
    color: var(--cv-text-muted, #4b5563);
    white-space: pre-wrap;
}

.cv-level-text,
.cv-lang-level-text {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--cv-text-muted, #6b7280);
}

.experience-row .field-narrow {
    min-width: 0;
}

.experience-row .field-narrow input,
.experience-row .field-narrow .select-modern {
    max-width: 100%;
}

.sub-grid-skill {
    grid-template-columns: 1fr minmax(0, 100px);
    gap: 10px 12px;
}

.sub-grid-skill .field-narrow {
    min-width: 0;
}

.sub-row-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.remove-chip {
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.remove-chip:hover {
    color: #ef4444;
}

/* Email suggestions */
.email-wrapper {
    position: relative;
}

.email-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 2px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
    z-index: 20;
    max-height: 180px;
    overflow-y: auto;
    font-size: 13px;
}

.email-suggestions.hidden {
    display: none;
}

.email-suggestions li {
    padding: 6px 10px;
    cursor: pointer;
}

.email-suggestions li:hover,
.email-suggestions li.active {
    background: var(--accent-soft);
    color: #111827;
}

/* Switch (fotoğraf) – tema uyumlu */
.switch-wrap {
    display: flex;
    align-items: center;
}

.ios-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-soft);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ios-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-subtle), 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ios-switch input:checked + .ios-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.ios-switch input:checked + .ios-slider:before {
    transform: translateX(16px);
}

html[data-theme="dark"] .ios-slider {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .ios-slider:before {
    background: var(--bg-elevated);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .ios-switch input:checked + .ios-slider {
    background: var(--accent);
    border-color: var(--accent);
}

/* Bildirimler: navbar (.app-header) altında, yatay ortada — üstte sabit 12px navbar ile çakışıyordu */
#alertBox.cv-alert-box {
    position: fixed;
    /* .app margin-top (32px) + .app-header (padding + satır ~5.5rem) + nefes */
    top: max(
        calc(32px + 5.5rem + 22px),
        calc(env(safe-area-inset-top, 0px) + 32px + 5rem + 16px)
    );
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 10000;
    width: min(520px, calc(100vw - 20px));
    max-width: min(520px, calc(100vw - 20px));
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    pointer-events: none;
    box-sizing: border-box;
}

/* Görüntüleme modu: sticky .cv-view-toolbar üstte; bildirim onun altında */
body.cv-view-mode #alertBox.cv-alert-box {
    top: max(
        calc(4.5rem + 18px),
        calc(env(safe-area-inset-top, 0px) + 4.25rem + 12px)
    );
}

#alertBox.cv-alert-box .alert {
    pointer-events: auto;
}

#alertBox .alert.alert-toast-minimal {
    padding: 12px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.08);
    animation: cvAlertSlideIn 0.25s ease-out;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

#alertBox .alert.fade-out {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes cvAlertSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#alertBox .alert-toast-minimal .alert-message {
    flex: 1;
    margin: 0;
    min-width: 0;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.35;
    display: flex;
    align-items: center;
}

#alertBox .alert-toast-minimal .alert-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
}

#alertBox .alert-close {
    flex-shrink: 0;
    margin: 0 0 0 4px;
    padding: 0;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.06);
    color: inherit;
    cursor: pointer;
    line-height: 1;
    opacity: 0.85;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: opacity 0.15s, background 0.15s, transform 0.12s ease, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}

#alertBox .alert-close .alert-close-x {
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    margin-top: -1px;
    pointer-events: none;
}

#alertBox .alert-close:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.1);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

#alertBox .alert-close:active {
    transform: scale(0.94);
}

/* Gündüz: opak pastel zemin — arkası görünmesin, metin net */
#alertBox .alert-error {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
}
#alertBox .alert-error .alert-icon { background: #fecaca; color: #b91c1c; }

#alertBox .alert-success {
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #bbf7d0;
}
#alertBox .alert-success .alert-icon { background: #bbf7d0; color: #15803d; }

#alertBox .alert-warning {
    background: #ffedd5;
    color: #7c2d12;
    border: 1px solid #fed7aa;
}
#alertBox .alert-warning .alert-icon { background: #fed7aa; color: #c2410c; }

#alertBox .alert-info {
    background: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}
#alertBox .alert-info .alert-icon { background: #bfdbfe; color: #1d4ed8; }

html[data-theme="dark"] #alertBox .alert-toast-minimal {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Gece: düz koyu tonlar, yüksek kontrast (saydam rgba yerine) */
html[data-theme="dark"] #alertBox .alert-error {
    background: #450a0a;
    color: #fecaca;
    border-color: #7f1d1d;
}
html[data-theme="dark"] #alertBox .alert-error .alert-icon { background: #7f1d1d; color: #fca5a5; }

html[data-theme="dark"] #alertBox .alert-success {
    background: #052e16;
    color: #bbf7d0;
    border-color: #166534;
}
html[data-theme="dark"] #alertBox .alert-success .alert-icon { background: #166534; color: #86efac; }

html[data-theme="dark"] #alertBox .alert-warning {
    background: #422006;
    color: #fef3c7;
    border-color: #b45309;
}
html[data-theme="dark"] #alertBox .alert-warning .alert-icon { background: #92400e; color: #fde68a; }

html[data-theme="dark"] #alertBox .alert-info {
    background: #172554;
    color: #dbeafe;
    border-color: #1d4ed8;
}
html[data-theme="dark"] #alertBox .alert-info .alert-icon { background: #1e40af; color: #93c5fd; }

html[data-theme="dark"] #alertBox .alert-close {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
html[data-theme="dark"] #alertBox .alert-close:hover {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}


/* PRINT – A4 kenar boşlukları; içerik kenara yapışmasın, QR ölçeklenince küçülmesin */
@media print {
    @page {
        size: A4;
        margin: 0;
    }

    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        background: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    #alertBox.cv-alert-box,
    #cvSiteAuthModal,
    #cvSiteAlertBox.cv-site-alert-box,
    .app-header,
    .wizard-steps,
    .wizard-footer,
    .panel-header,
    .preview-options,
    .preview-actions,
    .overflow-warning,
    .cv-view-toolbar,
    #cvViewToolbar,
    .preview-hologram-overlay,
    .preview-login-hint,
    .preview-login-hint-below,
    .cv-preview-loading,
    #cvPreviewLoading,
    .step3-mobile-preview-notice {
        display: none !important;
    }

    /* Yalnızca 3. adım önizlemesi; 1–2. adım formları yazdırmaya dahil olmasın */
    .wizard-body .wizard-panel[data-step-panel="1"],
    .wizard-body .wizard-panel[data-step-panel="2"] {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -99999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    .wizard-body .wizard-panel[data-step-panel="3"] {
        display: block !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .app,
    .app-main,
    .wizard,
    .wizard-body,
    .wizard-panel[data-step-panel="3"] {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-width: none !important;
    }

    /* Mobil önizleme: aspect-ratio sarmalayıcı yazdırmada boş 2. sayfa çıkarmasın */
    .preview-cv-scaled {
        display: block !important;
        height: auto !important;
        padding-bottom: 0 !important;
        width: 100% !important;
        max-width: 210mm !important;
        margin: 0 auto !important;
        position: relative !important;
    }

    .preview-cv-scaled .cv-root {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        transform-origin: top center !important;
        width: 100% !important;
        max-width: 210mm !important;
        height: auto !important;
    }

    .preview-wrapper,
    .preview-inner {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;
        display: block !important;
        overflow: visible !important;
    }

    /* Tek A4: kısa CV’de sayfa gövdesi en az A4 yüksekliği; içerik alta kadar beyaz/sütun dolgusu */
    #cvPreview,
    .cv-root {
        box-shadow: none !important;
        transform: none !important;
        width: 100% !important;
        max-width: 210mm !important;
        height: auto !important;
        min-height: 297mm !important;
        /* Ekran #f9fafb kalınca kısa CV’de kartın altında beyaz gövde şeridi oluşuyordu */
        background: #ffffff !important;
        margin: 0 auto !important;
        /* px: indirilen PDF (html2pdf klonu) ile birebir; 1cm shorthand bazı tarayıcılarda üstte zayıflıyordu */
        padding: var(--cv-print-pad-px, 38px) !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
        page-break-after: auto;
        break-after: auto;
        /* avoid: uzun CV tamamı tek parça “taşınmaya” çalışınca 1. sayfa boş kalabiliyor */
        page-break-inside: auto;
        break-inside: auto;
        overflow: visible !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Glacier: beyaz sayfa, düz üst bilgi (genel baskı #ffffff ile uyumlu) */
    #cvPreview.tpl-glacier.cv-root,
    #cvPreview.tpl-glacier,
    .cv-root.tpl-glacier {
        background: #ffffff !important;
    }
    #cvPreview.tpl-glacier > header.cv-header,
    .cv-root.tpl-glacier > header.cv-header {
        border-bottom: 3px solid #0d9488 !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    #cvPreview.tpl-glacier .cv-section-title,
    .cv-root.tpl-glacier .cv-section-title {
        border-radius: 6px 14px 14px 6px !important;
        border-left: 3px solid #0d9488 !important;
        border-right: 1px solid rgba(13, 148, 136, 0.12) !important;
        background: linear-gradient(95deg, rgba(13, 148, 136, 0.14), rgba(240, 253, 250, 0.85)) !important;
        box-shadow: 0 1px 0 rgba(13, 148, 136, 0.12) !important;
    }
    #cvPreview.cv-title-no-bg.tpl-glacier .cv-section-title,
    .cv-root.cv-title-no-bg.tpl-glacier .cv-section-title {
        background: transparent !important;
        border-right-color: transparent !important;
        box-shadow: none !important;
    }
    #cvPreview.cv-title-no-left-line.tpl-glacier .cv-section-title,
    .cv-root.cv-title-no-left-line.tpl-glacier .cv-section-title {
        border-left: none !important;
        border-right: none !important;
    }
    #cvPreview.tpl-glacier .cv-photo,
    .cv-root.tpl-glacier .cv-photo {
        border-color: #14b8a6 !important;
        box-shadow: 0 6px 20px rgba(13, 148, 136, 0.2) !important;
    }

    /* İlk satırın margin çökmesiyle üst boşluğun yutulmasını engelle */
    #cvPreview > header.cv-header:first-child,
    .cv-root > header.cv-header:first-child {
        margin-top: 0 !important;
        margin-block-start: 0 !important;
    }

    /*
     * Önizleme / PDF klonu ile aynı: klasik satır başlığı flex-end (ad–ünvan, iletişim, foto alt hizada).
     * Yazdırmada display/min-height sızıntısı renkli şeritte içeriği yukarı itip altında boşluk bırakabiliyordu.
     */
    #cvPreview header.cv-header,
    #cvPreview .cv-header,
    .cv-root header.cv-header,
    .cv-root .cv-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        gap: 12px !important;
        min-height: 0 !important;
        height: auto !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    /*
     * Aurora / Glacier / Prism / Dusk / Ivory / Noir: baskıda flex-end ile iletişim sütunu sarılınca
     * metin bloğu göreli olarak yukarı kayabiliyor; dikey ortada ekran ve kağıt daha tutarlı.
     */
    #cvPreview.tpl-aurora > header.cv-header,
    .cv-root.tpl-aurora > header.cv-header,
    #cvPreview.tpl-glacier > header.cv-header,
    .cv-root.tpl-glacier > header.cv-header,
    #cvPreview.tpl-prism > header.cv-header,
    .cv-root.tpl-prism > header.cv-header,
    #cvPreview.tpl-dusk > header.cv-header,
    .cv-root.tpl-dusk > header.cv-header,
    #cvPreview.tpl-ivory > header.cv-header,
    .cv-root.tpl-ivory > header.cv-header,
    #cvPreview.tpl-noir > header.cv-header,
    .cv-root.tpl-noir > header.cv-header {
        align-items: center !important;
    }

    /* Carbon/Sage sol panel: genel baskı kuralı avatarı sola iter; önizleme ile aynı ortalı başlık */
    #cvPreview.tpl-carbon .cv-sidebar .cv-header,
    .cv-root.tpl-carbon .cv-sidebar .cv-header {
        align-items: center !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        text-align: center !important;
    }
    #cvPreview.tpl-carbon .cv-sidebar .cv-header .cv-photo,
    .cv-root.tpl-carbon .cv-sidebar .cv-header .cv-photo {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #cvPreview.tpl-sage .cv-sidebar .cv-header.cv-header-sage,
    .cv-root.tpl-sage .cv-sidebar .cv-header.cv-header-sage {
        align-items: center !important;
        flex-direction: column !important;
    }

    /* Ivory: gövde — sol dikey çizgi yok */
    #cvPreview.layout-classic.tpl-ivory > .cv-body,
    .cv-root.layout-classic.tpl-ivory > .cv-body {
        position: relative !important;
        padding-left: 0 !important;
        box-sizing: border-box !important;
    }

    #cvPreview.layout-classic.tpl-ivory > .cv-body::before,
    .cv-root.layout-classic.tpl-ivory > .cv-body::before {
        content: none !important;
        display: none !important;
    }

    #cvPreview.tpl-ivory .cv-ivory-misc-contact-split__grid,
    .cv-root.tpl-ivory .cv-ivory-misc-contact-split__grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    }

    /* Başlık ile ilk bölüm arası */
    #cvPreview .cv-body > .cv-section:first-child,
    #cvPreview .cv-main > .cv-section:first-child {
        margin-top: 0 !important;
    }

    #cvPreview.tpl-carbon .cv-main > .cv-section,
    .cv-root.tpl-carbon .cv-main > .cv-section {
        margin-bottom: 0 !important;
    }
    #cvPreview.tpl-carbon .cv-main > .cv-section:not(:first-child),
    .cv-root.tpl-carbon .cv-main > .cv-section:not(:first-child) {
        margin-top: var(--cv-section-gap, 12px) !important;
        padding-top: calc(var(--cv-section-gap, 12px) * 0.5) !important;
    }

    /* Klasik: dikey flex ile alt boşluk .cv-body içinde dağılır */
    #cvPreview.cv-root.layout-classic:not(.tpl-noir),
    .cv-root.layout-classic:not(.tpl-noir) {
        display: flex !important;
        flex-direction: column !important;
    }
    #cvPreview.cv-root.layout-classic:not(.tpl-noir) .cv-body,
    .cv-root.layout-classic:not(.tpl-noir) .cv-body {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
    }
    /* Noir (klasik + zaman çizelgesi): A4 alt boşluğu gövdeye yayılır */
    #cvPreview.cv-root.layout-classic.tpl-noir,
    .cv-root.layout-classic.tpl-noir {
        display: flex !important;
        flex-direction: column !important;
    }
    #cvPreview.cv-root.layout-classic.tpl-noir .cv-body-noir-timeline,
    .cv-root.layout-classic.tpl-noir .cv-body-noir-timeline {
        flex: 1 1 auto !important;
        min-height: 0 !important;
    }
    /* Aurora/Glacier vb. (tek sütun baskı): üst sidebar + ana gövde; ana sütun kalan A4’ü doldurur */
    #cvPreview.cv-root.layout-sidebar:not(.tpl-carbon):not(.tpl-sage),
    .cv-root.layout-sidebar:not(.tpl-carbon):not(.tpl-sage) {
        display: flex !important;
        flex-direction: column !important;
    }
    #cvPreview.cv-root.layout-sidebar:not(.tpl-carbon):not(.tpl-sage) .cv-sidebar,
    .cv-root.layout-sidebar:not(.tpl-carbon):not(.tpl-sage) .cv-sidebar {
        display: block !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        padding-right: 0 !important;
        margin-bottom: var(--cv-section-gap, 12px) !important;
    }
    #cvPreview.cv-root.layout-sidebar:not(.tpl-carbon):not(.tpl-sage) .cv-main,
    .cv-root.layout-sidebar:not(.tpl-carbon):not(.tpl-sage) .cv-main {
        display: block !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        min-height: 0 !important;
    }
    /* Carbon / Sage: önizleme ile aynı iki sütun (yazdırmada üst üste yığılmayı önler) */
    #cvPreview.cv-root.tpl-carbon.layout-sidebar,
    .cv-root.tpl-carbon.layout-sidebar {
        display: grid !important;
        grid-template-columns: 0.36fr 0.64fr !important;
        grid-template-rows: 1fr !important;
        column-gap: 14px !important;
        row-gap: var(--cv-section-gap, 12px) !important;
        align-items: stretch !important;
    }
    #cvPreview.cv-root.tpl-sage.layout-sidebar,
    .cv-root.tpl-sage.layout-sidebar {
        display: grid !important;
        grid-template-columns: 0.3fr 0.7fr !important;
        grid-template-rows: 1fr !important;
        column-gap: 18px !important;
        row-gap: var(--cv-section-gap, 12px) !important;
        align-items: stretch !important;
    }
    #cvPreview.cv-root.tpl-carbon.layout-sidebar .cv-sidebar,
    .cv-root.tpl-carbon.layout-sidebar .cv-sidebar,
    #cvPreview.cv-root.tpl-sage.layout-sidebar .cv-sidebar,
    .cv-root.tpl-sage.layout-sidebar .cv-sidebar {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        margin-bottom: 0 !important;
        padding-right: 14px !important;
        border-right: none !important;
        min-height: 100% !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    #cvPreview.cv-root.tpl-carbon.layout-sidebar .cv-main,
    .cv-root.tpl-carbon.layout-sidebar .cv-main,
    #cvPreview.cv-root.tpl-sage.layout-sidebar .cv-main,
    .cv-root.tpl-sage.layout-sidebar .cv-main {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        padding-left: 2px !important;
        background: #ffffff !important;
        align-self: stretch !important;
        min-height: 100% !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    /* Carbon/Sage hariç: min-height:0 taşmayı önler; align-self:start kaldırıldı — A4 min-yükseklikte gövde/sütun alta uzar */
    #cvPreview .cv-sidebar,
    #cvPreview .cv-main,
    #cvPreview .cv-body,
    .cv-root .cv-sidebar,
    .cv-root .cv-main,
    .cv-root .cv-body {
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
    }
    #cvPreview.cv-root.tpl-carbon.layout-sidebar .cv-sidebar,
    #cvPreview.cv-root.tpl-carbon.layout-sidebar .cv-main,
    #cvPreview.cv-root.tpl-sage.layout-sidebar .cv-sidebar,
    #cvPreview.cv-root.tpl-sage.layout-sidebar .cv-main,
    .cv-root.tpl-carbon.layout-sidebar .cv-sidebar,
    .cv-root.tpl-carbon.layout-sidebar .cv-main,
    .cv-root.tpl-sage.layout-sidebar .cv-sidebar,
    .cv-root.tpl-sage.layout-sidebar .cv-main {
        align-self: stretch !important;
    }

    /* Bölümler sayfalar arasında bölünebilir (flex + break-after:avoid başlıkta tüm bölümü 2. sayfaya atabiliyordu) */
    #cvPreview .cv-section,
    .cv-root .cv-section {
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    .cv-root.tpl-noir .cv-body-noir-timeline {
        align-items: start !important;
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    /* QR kod yazdırmada görünsün; padding yok (ekran sürükleme modu ile çakışmasın) */
    .cv-qr-wrap {
        display: block !important;
        visibility: visible !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    /* QR: önizlemedeki kayıtlı left/top (inline) yazdırmada da geçerli; sağ-alt zorlaması kaldırıldı */
    body.cv-view-mode .cv-qr-wrap,
    body.cv-print-adjust-view .cv-qr-wrap,
    body.cv-print-adjust-id .cv-qr-wrap,
    body.cv-print-adjust-editor .cv-qr-wrap {
        transform: none !important;
        position: absolute !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .cv-qr-wrap img,
    .cv-qr-wrap img#cv-qr-img,
    #cv-qr-img {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: contain !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .cv-qr-resize-handle {
        display: none !important;
    }

    /*
     * View / kısa link: üst kurallar block iken burada flex ile eziliyordu — Chrome yazdırmada
     * flex sarmalayıcılar sayfa kırılımını bozup son bölümleri boş 1. sayfa + 2. sayfaya atabiliyordu.
     * PDF klon yolu block akış kullanıyor; aynısını native print ile hizala.
     */
    body.cv-view-mode .app,
    body.cv-print-adjust-view .app,
    body.cv-print-adjust-id .app,
    body.cv-print-adjust-editor .app {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.cv-view-mode .app-main,
    body.cv-print-adjust-view .app-main,
    body.cv-print-adjust-id .app-main,
    body.cv-print-adjust-editor .app-main,
    body.cv-view-mode .wizard,
    body.cv-print-adjust-view .wizard,
    body.cv-print-adjust-id .wizard,
    body.cv-print-adjust-editor .wizard,
    body.cv-view-mode .wizard-body,
    body.cv-print-adjust-view .wizard-body,
    body.cv-print-adjust-id .wizard-body,
    body.cv-print-adjust-editor .wizard-body {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.cv-view-mode .wizard-body .wizard-panel[data-step-panel="3"],
    body.cv-print-adjust-view .wizard-body .wizard-panel[data-step-panel="3"],
    body.cv-print-adjust-id .wizard-body .wizard-panel[data-step-panel="3"],
    body.cv-print-adjust-editor .wizard-body .wizard-panel[data-step-panel="3"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.cv-view-mode .wizard-body .wizard-panel[data-step-panel="3"] .preview-wrapper,
    body.cv-print-adjust-view .wizard-body .wizard-panel[data-step-panel="3"] .preview-wrapper,
    body.cv-print-adjust-id .wizard-body .wizard-panel[data-step-panel="3"] .preview-wrapper,
    body.cv-print-adjust-editor .wizard-body .wizard-panel[data-step-panel="3"] .preview-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.cv-view-mode .preview-inner,
    body.cv-print-adjust-view .preview-inner,
    body.cv-print-adjust-id .preview-inner,
    body.cv-print-adjust-editor .preview-inner {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.cv-view-mode .preview-cv-scaled,
    body.cv-print-adjust-view .preview-cv-scaled,
    body.cv-print-adjust-id .preview-cv-scaled,
    body.cv-print-adjust-editor .preview-cv-scaled {
        display: block !important;
        width: 100% !important;
        max-width: 210mm !important;
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 auto !important;
        flex: none !important;
        float: none !important;
        position: relative !important;
    }

    body.cv-view-mode #cvPreview.cv-root,
    body.cv-print-adjust-view #cvPreview.cv-root,
    body.cv-print-adjust-id #cvPreview.cv-root,
    body.cv-print-adjust-editor #cvPreview.cv-root {
        display: block !important;
        padding: var(--cv-print-pad-px, 38px) !important;
        margin: 0 auto !important;
        position: relative !important;
        /* Mobil ekranda scale(…) + % genişlik baskıda QR / başlık hizasını bozar; A4 piksel genişliği sabit */
        width: 794px !important;
        max-width: 794px !important;
        min-width: 794px !important;
        transform: none !important;
        transform-origin: top left !important;
        min-height: 297mm !important;
        height: auto !important;
        max-height: none !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        page-break-inside: auto;
        break-inside: auto;
        page-break-after: auto;
        break-after: auto;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Klasik tek sütun: indirilen PDF (html2pdf) gibi doğal yükseklik — 297mm + flex gövde başlığı PDF’ten kaydırıyordu */
    body.cv-view-mode #cvPreview.cv-root.layout-classic,
    body.cv-print-adjust-view #cvPreview.cv-root.layout-classic,
    body.cv-print-adjust-id #cvPreview.cv-root.layout-classic,
    body.cv-print-adjust-editor #cvPreview.cv-root.layout-classic {
        min-height: auto !important;
    }

    /* Carbon/Sage: üstteki display:block ezilmesin (iki sütun A4 doldurma) */
    body.cv-view-mode #cvPreview.cv-root.tpl-carbon.layout-sidebar,
    body.cv-view-mode #cvPreview.cv-root.tpl-sage.layout-sidebar,
    body.cv-print-adjust-view #cvPreview.cv-root.tpl-carbon.layout-sidebar,
    body.cv-print-adjust-view #cvPreview.cv-root.tpl-sage.layout-sidebar,
    body.cv-print-adjust-id #cvPreview.cv-root.tpl-carbon.layout-sidebar,
    body.cv-print-adjust-id #cvPreview.cv-root.tpl-sage.layout-sidebar,
    body.cv-print-adjust-editor #cvPreview.cv-root.tpl-carbon.layout-sidebar,
    body.cv-print-adjust-editor #cvPreview.cv-root.tpl-sage.layout-sidebar {
        display: grid !important;
    }

    body.cv-view-mode .cv-qr-wrap img,
    body.cv-print-adjust-view .cv-qr-wrap img,
    body.cv-print-adjust-id .cv-qr-wrap img,
    body.cv-print-adjust-editor .cv-qr-wrap img,
    body.cv-view-mode .cv-qr-wrap img#cv-qr-img,
    body.cv-print-adjust-view .cv-qr-wrap img#cv-qr-img,
    body.cv-print-adjust-id .cv-qr-wrap img#cv-qr-img,
    body.cv-print-adjust-editor .cv-qr-wrap img#cv-qr-img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: contain !important;
        visibility: visible !important;
    }
}

/*
 * Yazdırma popup’ı (printPage → about:blank): bağlı style.css’teki .cv-root{height:1123px;overflow:hidden}
 * print @media dışında da uygulanır; önizlemede tam CV görünüp baskıda gövdenin kesilmesini engeller.
 */
body.cv-print-popup {
    display: flex;
    flex-direction: column;
    align-items: center;
}
body.cv-print-popup #cvPreview.cv-root,
body.cv-print-popup #cvPreview {
    height: auto !important;
    max-height: none !important;
    min-height: 297mm !important;
    overflow: visible !important;
    max-width: 100% !important;
    padding: var(--cv-print-pad-px, 38px) !important;
    box-sizing: border-box !important;
}

/* Yazdır penceresi: Glacier = beyaz zemin, düz üst bilgi */
body.cv-print-popup #cvPreview.cv-root.tpl-glacier,
body.cv-print-popup #cvPreview.tpl-glacier {
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
body.cv-print-popup #cvPreview.tpl-glacier > header.cv-header {
    border-bottom: 3px solid #0d9488 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
body.cv-print-popup #cvPreview.tpl-glacier .cv-section-title {
    border-radius: 6px 14px 14px 6px !important;
    border-left: 3px solid #0d9488 !important;
    border-right: 1px solid rgba(13, 148, 136, 0.12) !important;
    background: linear-gradient(95deg, rgba(13, 148, 136, 0.14), rgba(240, 253, 250, 0.85)) !important;
    box-shadow: 0 1px 0 rgba(13, 148, 136, 0.12) !important;
}
body.cv-print-popup #cvPreview.cv-title-no-bg.tpl-glacier .cv-section-title {
    background: transparent !important;
    border-right-color: transparent !important;
    box-shadow: none !important;
}
body.cv-print-popup #cvPreview.cv-title-no-left-line.tpl-glacier .cv-section-title {
    border-left: none !important;
    border-right: none !important;
}
body.cv-print-popup #cvPreview.tpl-glacier .cv-photo {
    border-color: #14b8a6 !important;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.2) !important;
}

body.cv-print-popup #cvPreview.tpl-aurora > header.cv-header,
body.cv-print-popup #cvPreview.tpl-glacier > header.cv-header,
body.cv-print-popup #cvPreview.tpl-prism > header.cv-header,
body.cv-print-popup #cvPreview.tpl-dusk > header.cv-header,
body.cv-print-popup #cvPreview.tpl-ivory > header.cv-header,
body.cv-print-popup #cvPreview.tpl-noir > header.cv-header {
    align-items: center !important;
}
/* Yazdırma popup’ı: A4 min-yükseklikte gövde flex/grid ile alta uzar (block kesiyordu) */
body.cv-print-popup #cvPreview.layout-classic:not(.tpl-noir) {
    display: flex !important;
    flex-direction: column !important;
}
body.cv-print-popup #cvPreview.layout-classic:not(.tpl-noir) .cv-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}
body.cv-print-popup #cvPreview.layout-sidebar:not(.tpl-carbon):not(.tpl-sage),
body.cv-print-popup #cvPreview.cv-root.layout-sidebar:not(.tpl-carbon):not(.tpl-sage) {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
}
body.cv-print-popup #cvPreview.layout-sidebar:not(.tpl-carbon):not(.tpl-sage) .cv-sidebar,
body.cv-print-popup #cvPreview.cv-root.layout-sidebar:not(.tpl-carbon):not(.tpl-sage) .cv-sidebar {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border-right: none !important;
    padding-right: 0 !important;
    margin-bottom: var(--cv-section-gap, 12px) !important;
    flex: 0 0 auto !important;
}
body.cv-print-popup #cvPreview.layout-sidebar:not(.tpl-carbon):not(.tpl-sage) .cv-main,
body.cv-print-popup #cvPreview.cv-root.layout-sidebar:not(.tpl-carbon):not(.tpl-sage) .cv-main {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}
body.cv-print-popup #cvPreview.tpl-carbon.layout-sidebar,
body.cv-print-popup #cvPreview.cv-root.tpl-carbon.layout-sidebar {
    display: grid !important;
    grid-template-columns: 0.36fr 0.64fr !important;
    grid-template-rows: minmax(0, 1fr) !important;
    column-gap: 14px !important;
    row-gap: var(--cv-section-gap, 12px) !important;
    align-items: stretch !important;
}
body.cv-print-popup #cvPreview.tpl-sage.layout-sidebar,
body.cv-print-popup #cvPreview.cv-root.tpl-sage.layout-sidebar {
    display: grid !important;
    grid-template-columns: 0.3fr 0.7fr !important;
    grid-template-rows: minmax(0, 1fr) !important;
    column-gap: 18px !important;
    row-gap: var(--cv-section-gap, 12px) !important;
    align-items: stretch !important;
}
body.cv-print-popup #cvPreview.tpl-carbon.layout-sidebar .cv-sidebar,
body.cv-print-popup #cvPreview.cv-root.tpl-carbon.layout-sidebar .cv-sidebar,
body.cv-print-popup #cvPreview.tpl-sage.layout-sidebar .cv-sidebar,
body.cv-print-popup #cvPreview.cv-root.tpl-sage.layout-sidebar .cv-sidebar {
    width: auto !important;
    max-width: none !important;
    margin-bottom: 0 !important;
    padding-right: 14px !important;
    min-height: 100% !important;
    box-sizing: border-box !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}
body.cv-print-popup #cvPreview.tpl-carbon.layout-sidebar .cv-main,
body.cv-print-popup #cvPreview.cv-root.tpl-carbon.layout-sidebar .cv-main,
body.cv-print-popup #cvPreview.tpl-sage.layout-sidebar .cv-main,
body.cv-print-popup #cvPreview.cv-root.tpl-sage.layout-sidebar .cv-main {
    width: auto !important;
    max-width: none !important;
    padding-left: 2px !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}
body.cv-print-popup .layout-sidebar,
body.cv-print-popup .cv-body,
body.cv-print-popup .cv-main,
body.cv-print-popup .cv-sidebar {
    overflow: visible !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* RESPONSIVE */
/* Kayıt Ekle ile gelen her satır (Eğitim, Çalışma, Kurs, Beceri, Dil, Referans) – inputlar alt alta */
@media (max-width: 1024px) {
    .education-row .row-content .sub-grid,
    .experience-row .row-content .sub-grid,
    .experience-row .row-content .sub-grid-experience,
    .experience-row .row-content .sub-grid.sub-grid-experience,
    .course-row .row-content .sub-grid,
    .course-row .row-content .sub-grid.two-col,
    .language-row .sub-grid,
    .language-row .sub-grid.two-col,
    .skill-row .row-content .sub-grid,
    .skill-row .row-content .sub-grid-skill,
    .reference-row .sub-grid,
    .reference-row .sub-grid.two-col,
    .accordion-body .row-content .sub-grid,
    .accordion-body .row-content .sub-grid.two-col,
    .accordion-body .row-content .sub-grid-experience,
    .accordion-body .row-content .sub-grid-skill,
    .accordion-body .sub-grid,
    .accordion-body .sub-grid.two-col,
    .accordion-body .sub-grid-experience,
    .accordion-body .sub-grid-skill {
        display: grid !important;
        grid-template-columns: 1fr !important;
        min-width: 0;
        gap: 12px;
    }
}

@media (max-width: 900px) {
    body:not(.cv-view-mode) .app {
        margin: 16px auto 24px;
    }

    .cv-root {
        transform: scale(.7);
        transform-origin: top center;
    }

    /* Detaylar: Kayıt Ekle ile gelen inputlar alt alta (Şirket, Pozisyon, Süre, Birim dahil) */
    .accordion-body .sub-grid,
    .accordion-body .sub-grid.two-col,
    .accordion-body .sub-grid-experience,
    .accordion-body .sub-grid-skill,
    .education-row .sub-grid,
    .experience-row .sub-grid-experience,
    .experience-row .row-content .sub-grid.sub-grid-experience,
    .course-row .sub-grid,
    .language-row .sub-grid,
    .skill-row .sub-grid-skill,
    .reference-row .sub-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        min-width: 0;
        gap: 12px;
    }

    .education-row .row-content,
    .experience-row .row-content,
    .course-row .row-content,
    .skill-row .row-content {
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    body:not(.cv-view-mode) .app {
        padding: 0 12px 24px;
    }

    .app-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        border-radius: 18px;
        padding: 12px 16px;
    }

    .app-header-left {
        flex-wrap: wrap;
        gap: 12px;
    }

    .app-header-right {
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .app-header-right .cv-header-actions {
        flex: 1 1 auto;
        justify-content: flex-end;
        min-width: 0;
    }

    .cv-save-bar.cv-save-bar-header {
        width: 100%;
        min-width: 0;
    }

    .cv-saved-select {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .theme-toggle {
        align-self: center;
        flex-shrink: 0;
    }

    .cv-wizard-header-logout {
        align-self: center;
        flex-shrink: 0;
    }

    .cv-create-user-btn {
        align-self: center;
        flex-shrink: 0;
    }

    body.cv-has-bottom-nav #cvCreateUserBtn {
        display: none !important;
    }

    .theme-toggle,
    .cv-create-user-btn,
    .cv-header-actions .btn {
        min-height: 38px;
        min-width: 38px;
        padding: 8px 10px;
        justify-content: center;
    }

    .cv-wizard-header-logout {
        min-width: 36px;
        min-height: 36px;
        width: 36px;
        height: 36px;
        padding: 0;
        box-sizing: border-box;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .wizard-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .wizard-step {
        padding: 10px 12px;
        min-height: 48px;
    }

    .wizard-step .step-text strong {
        font-size: 12px;
    }

    .wizard-step .step-text small {
        font-size: 10px;
    }

    .wizard-panel {
        padding: 16px 14px;
    }

    .panel-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .panel-header.personal-header {
        align-items: center;
        text-align: center;
    }

    .personal-hero {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 12px;
    }

    .photo-card {
        align-items: center;
        width: 100%;
        min-width: 0;
    }

    .name-stack {
        width: 100%;
        max-width: 320px;
    }

    .field {
        gap: 10px;
    }

    .field label {
        margin-bottom: 2px;
        line-height: 1.3;
    }

    .field input,
    .field textarea,
    .field select,
    .field .select-modern {
        font-size: 16px;
        min-height: 44px;
        padding: 10px 12px;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }

    .field textarea {
        min-height: 88px;
    }

    .input-with-icon input {
        padding-left: 42px;
        padding-right: 16px;
    }

    /* Select'lerde sağ padding ok için korunmalı; kayma önlenir */
    .input-with-icon select,
    .input-with-icon select.select-modern,
    .input-with-icon.select-wrap select {
        padding-left: 42px;
        padding-right: 40px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .input-with-icon.textarea textarea {
        padding-left: 42px;
        padding-right: 16px;
    }

    .input-with-icon > i {
        left: 14px;
        font-size: 13px;
    }

    /* Mobil: cinsiyet, askerlik, ehliyet, il, ilçe, medeni hali – kayma önleme */
    .field .input-with-icon {
        min-width: 0;
    }
    .field select.select-modern {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .driver-license-trigger {
        min-height: 44px;
        font-size: 16px;
        padding: 10px 40px 10px 42px;
    }

    .driver-license-panel-item {
        min-height: 48px;
        padding: 12px 40px 12px 14px;
        font-size: 16px;
    }

    .driver-license-badge {
        font-size: 13px;
        padding: 6px 8px 6px 12px;
    }

    .driver-license-badge-remove {
        width: 28px;
        height: 28px;
    }

    .driver-license-badge-remove i {
        font-size: 0.72rem;
    }

    .accordion-header {
        min-height: 44px;
        padding: 12px 14px;
    }

    /* Detaylar: Eğitim, Çalışma (Şirket, Pozisyon, Süre, Birim), Kurs, Beceri, Dil, Referans – mobilde hepsi alt alta */
    .sub-grid,
    .sub-grid.two-col,
    .sub-grid-experience,
    .sub-grid-skill,
    .accordion-body .sub-grid,
    .accordion-body .sub-grid.two-col,
    .accordion-body .sub-grid-experience,
    .accordion-body .sub-grid-skill,
    .education-row .sub-grid,
    .experience-row .sub-grid-experience,
    .experience-row .row-content .sub-grid.sub-grid-experience,
    .course-row .sub-grid,
    .course-row .sub-grid.two-col,
    .language-row .sub-grid,
    .skill-row .sub-grid-skill,
    .reference-row .sub-grid,
    .reference-row .sub-grid.two-col {
        display: grid !important;
        grid-template-columns: 1fr !important;
        min-width: 0;
        gap: 12px;
    }

    .experience-row .row-content,
    .education-row .row-content,
    .course-row .row-content,
    .skill-row .row-content {
        overflow-x: visible;
        margin: 0;
        padding: 0;
        max-width: 100%;
        min-width: 0;
    }

    .accordion-body {
        overflow-x: visible;
    }

    .accordion-body .field {
        min-width: 0;
    }

    /* Önizleme: Görünüm ve önizleme alanı taşması önleme */
    .preview-option-block {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
    }

    .preview-options-row-controls {
        flex-wrap: wrap;
        gap: 10px;
        min-width: 0;
    }

    .preview-options-stack .preview-cell-label {
        margin-bottom: 0;
    }

    .heading-style-checks--mobile {
        justify-content: flex-start;
        align-items: flex-start;
        gap: 10px 14px;
    }

    .preview-field-group .preview-select-wrap .section-title-select,
    .preview-field-group .preview-select-wrap .select-modern {
        font-size: 16px;
        min-height: 44px;
        padding: 10px 36px 10px 12px;
        box-sizing: border-box;
        width: 100%;
    }

    .preview-options .design-section,
    .preview-options .design-section-inline {
        min-width: 0;
    }

    .heading-style-controls,
    .heading-style-checks {
        flex-wrap: wrap;
        gap: 8px;
    }

    .font-size-options,
    .photo-shape-options,
    .heading-style-checks {
        flex-wrap: wrap;
        gap: 8px;
    }

    .preview-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
        align-items: stretch;
    }

    .preview-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
        justify-content: flex-start;
        width: 100%;
    }

    /* Önizleme CV: mobilde sola hizala, kaydırılabilir */
    .preview-inner .cv-root {
        transform-origin: top left;
    }

    .preview-options-row-controls {
        gap: 12px;
    }

    .preview-options-row-templates {
        align-items: center;
    }

    .template-list-horizontal {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }

    .panel-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .design-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .preview-wrapper {
        padding: 8px;
        margin: 0 -4px;
    }

    .wizard-footer {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 4px;
    }

    .wizard-footer .btn {
        min-height: 44px;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }

    .footer-right {
        width: 100%;
        justify-content: stretch;
    }

    .cv-modal-box {
        margin: 12px;
        max-width: none;
        max-height: 85vh;
        overflow: auto;
    }

    .cv-share-modal-root .cv-share-modal-box {
        margin: 0;
        max-width: 100%;
        max-height: min(92vh, 820px);
        overflow: hidden;
    }

    .cv-modal-overlay {
        padding: 12px;
    }

    .cv-modal-overlay.cv-share-modal-root {
        padding: max(8px, env(safe-area-inset-top, 0px)) 0 0;
    }
}

/* Mobil: logo kısa, header/toolbar butonları sadece ikon */
@media (max-width: 600px) {
    .logo-text-suffix {
        display: none !important;
    }

    .cv-header-actions .btn-label,
    .cv-view-toolbar .cv-site-header-actions .btn-label {
        display: none !important;
    }

    .cv-header-actions .btn,
    .cv-view-toolbar .cv-site-header-actions .btn,
    .cv-view-toolbar .cv-site-header-actions .btn.primary {
        padding: 8px 10px;
        min-width: 38px;
        min-height: 38px;
    }

    .cv-view-toolbar .cv-site-header-actions .btn i,
    .cv-header-actions .btn i {
        font-size: 0.88rem;
    }

    .cv-view-toolbar.cv-site-header {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .cv-view-toolbar .cv-site-header-actions {
        flex: 1;
        justify-content: flex-end;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    body:not(.cv-view-mode) .app {
        margin: 12px auto 20px;
        padding: 0 10px 20px;
    }

    .wizard-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .wizard-step {
        min-height: 48px;
    }

    .wizard-step .step-index {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .template-card-h {
        min-width: 0;
    }

    .cv-root {
        transform: scale(.55);
        transform-origin: top left;
    }

    .preview-actions {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .preview-actions .btn {
        flex: 1;
        min-width: 0;
        min-height: 44px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #alertBox.cv-alert-box {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        top: max(
            calc(8px + 4.75rem + 10px),
            calc(env(safe-area-inset-top, 0px) + 8px + 4.25rem + 8px)
        );
    }

    body.cv-view-mode #alertBox.cv-alert-box {
        top: max(
            calc(3.75rem + 14px),
            calc(env(safe-area-inset-top, 0px) + 3.5rem + 10px)
        );
    }

    body:not(.cv-view-mode) .app {
        margin: 8px auto 16px;
        padding: 0 8px 16px;
    }

    .app-header {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .logo-text {
        font-size: 13px;
    }

    .personal-hero {
        margin-top: 10px;
    }

    .photo-preview {
        width: 100px;
        height: 100px;
    }

    .wizard-panel {
        padding: 12px 10px;
    }

    .panel-header h2 {
        font-size: 16px;
    }

    .accordion-header {
        padding: 8px 12px;
    }

    .accordion-header h3 {
        font-size: 13px;
    }

    .field {
        gap: 12px;
    }

    .field input,
    .field textarea,
    .field select {
        padding: 12px 14px;
    }

    .input-with-icon input {
        padding-left: 44px;
        padding-right: 14px;
    }

    .input-with-icon select,
    .input-with-icon select.select-modern,
    .input-with-icon.select-wrap select {
        padding-left: 44px;
        padding-right: 40px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .input-with-icon.textarea textarea {
        padding-left: 44px;
        padding-right: 14px;
    }

    .input-with-icon > i {
        left: 12px;
    }

    .cv-root {
        transform: scale(.5);
        transform-origin: top left;
    }

    .preview-options-row-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .design-section-inline {
        align-items: stretch;
    }

    .color-single-wrap {
        justify-content: flex-start;
    }

    .font-size-options,
    .photo-shape-options {
        flex-wrap: wrap;
    }

    .preview-wrapper {
        padding: 8px 4px;
    }

    .preview-option-block {
        padding: 10px 12px;
    }
}

/* Kısa link görüntüleme modu – User sayfası (cv.haswave.com/User/) navbar ile aynı yükseklik, genişlik ve mavi */
.cv-view-toolbar.cv-site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    min-height: 60px;
    box-sizing: border-box;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}
.cv-view-toolbar .cv-site-header-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cv-view-toolbar .cv-site-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    font-size: 1.15rem;
}
.cv-view-toolbar .cv-site-logo-mark {
    background: #2563eb;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.cv-view-toolbar .cv-site-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cv-view-toolbar .cv-view-auth-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
/* Ana sayfa header ile aynı: yuvarlak cam overlay */
.cv-view-toolbar .cv-site-account-link-desktop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.14);
    color: #0f172a;
    text-decoration: none;
    overflow: hidden;
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.cv-view-toolbar .cv-site-account-link-desktop:hover {
    background: rgba(100, 116, 139, 0.24);
}
.cv-view-toolbar .cv-site-create-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.cv-view-toolbar .cv-site-create-btn-icon:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.cv-view-toolbar .cv-view-toolbar-logout-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 0;
    box-sizing: border-box;
    flex: 0 0 40px;
    border: none;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.14);
    color: #0f172a;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cv-view-toolbar .cv-view-toolbar-logout-btn:hover {
    background: rgba(220, 38, 38, 0.14);
    color: #dc2626;
}
.cv-view-toolbar .cv-view-toolbar-logout-btn i {
    font-size: 0.95rem;
    line-height: 1;
}
.cv-view-toolbar .cv-site-account-link-desktop i {
    font-size: 0.95rem;
    line-height: 1;
}
.cv-view-toolbar .cv-site-theme-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.16);
    color: #0f172a;
    cursor: pointer;
    overflow: hidden;
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: background 0.2s, box-shadow 0.2s;
}
.cv-view-toolbar .cv-site-theme-btn:hover {
    background: rgba(100, 116, 139, 0.26);
}

/* Oturum yok: tema düğmesi yanında giriş (yalnız ikon) */
.cv-view-toolbar .cv-view-toolbar-login-guest {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(100, 116, 139, 0.16);
    color: #0f172a;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    box-sizing: border-box;
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: background 0.2s, color 0.2s;
}
.cv-view-toolbar .cv-view-toolbar-login-guest:hover {
    background: rgba(100, 116, 139, 0.26);
    color: #0f172a;
}
[data-theme="dark"] .cv-view-toolbar .cv-view-toolbar-login-guest {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .cv-view-toolbar .cv-view-toolbar-login-guest:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #f8fafc;
}
.cv-view-toolbar .cv-view-toolbar-login-guest i {
    font-size: 0.95rem;
    line-height: 1;
}

.cv-view-toolbar .cv-site-theme-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cv-view-toolbar .cv-site-theme-btn .cv-site-theme-sun { display: none !important; }
.cv-view-toolbar .cv-site-theme-btn .cv-site-theme-moon { display: inline-flex !important; }
[data-theme="dark"] .cv-view-toolbar .cv-site-theme-btn .cv-site-theme-sun { display: inline-flex !important; }
[data-theme="dark"] .cv-view-toolbar .cv-site-theme-btn .cv-site-theme-moon { display: none !important; }
.cv-view-toolbar-sep {
    display: inline-block;
    width: 1px;
    height: 24px;
    align-self: center;
    background: #e2e8f0;
    margin: 0 8px 0 4px;
    flex-shrink: 0;
}

/* View toolbar: mobilde tek “Hesabım” düğmesi + dropdown (User/ ile aynı mantık) */
.cv-view-toolbar .cv-view-account-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cv-view-toolbar .cv-view-account-mobile-btn {
    display: none !important;
}

.cv-view-toolbar .cv-view-account-dropdown {
    display: none;
}

@media (min-width: 601px) {
    .cv-view-toolbar .cv-view-account-mobile-btn,
    .cv-view-toolbar .cv-view-account-dropdown {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .cv-view-toolbar .cv-site-account-link-desktop {
        display: none !important;
    }

    .cv-view-toolbar .cv-view-account-mobile-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 40px;
        height: 40px;
        min-height: 40px;
        min-width: 40px;
        padding: 0;
        border-radius: 50%;
        border: none;
        background: rgba(100, 116, 139, 0.14);
        color: #0f172a;
        font-weight: 600;
        font-size: 0.95rem;
        font-family: inherit;
        cursor: pointer;
        overflow: hidden;
        -webkit-backdrop-filter: blur(12px) saturate(1.2);
        backdrop-filter: blur(12px) saturate(1.2);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
        transition: background 0.2s, box-shadow 0.2s;
        box-sizing: border-box;
    }

    .cv-view-toolbar .cv-view-account-mobile-btn:hover {
        background: rgba(100, 116, 139, 0.24);
    }

    .cv-view-toolbar .cv-view-account-label {
        display: none !important;
    }

    .cv-view-toolbar .cv-view-account-chevron {
        display: none !important;
    }

    .cv-view-toolbar .cv-view-account-dropdown.open {
        display: block !important;
    }

    .cv-view-toolbar .cv-view-account-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 6px;
        min-width: 200px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
        padding: 6px 0;
        z-index: 300;
    }

    .cv-view-toolbar .cv-view-account-dropdown a,
    .cv-view-toolbar .cv-view-account-dropdown button {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 10px 16px;
        border: none;
        background: none;
        color: #0f172a;
        font-size: 0.95rem;
        text-align: left;
        cursor: pointer;
        text-decoration: none;
        font-family: inherit;
        box-sizing: border-box;
    }

    .cv-view-toolbar .cv-view-account-dropdown a:hover,
    .cv-view-toolbar .cv-view-account-dropdown button:hover {
        background: #f1f5f9;
    }

    .cv-view-toolbar .cv-view-dropdown-hr {
        height: 1px;
        background: #e2e8f0;
        margin: 6px 0;
    }

    .cv-view-toolbar .cv-site-header-actions {
        align-items: center;
    }
}

[data-theme="dark"] .cv-view-toolbar .cv-view-account-mobile-btn {
    background: rgba(255, 255, 255, 0.09);
    color: #f1f5f9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cv-view-toolbar .cv-view-account-mobile-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .cv-view-toolbar .cv-view-account-dropdown {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .cv-view-toolbar .cv-view-account-dropdown a,
[data-theme="dark"] .cv-view-toolbar .cv-view-account-dropdown button {
    color: #f1f5f9;
}

[data-theme="dark"] .cv-view-toolbar .cv-view-account-dropdown a:hover,
[data-theme="dark"] .cv-view-toolbar .cv-view-account-dropdown button:hover {
    background: #334155;
}

[data-theme="dark"] .cv-view-toolbar .cv-view-dropdown-hr {
    background: #334155;
}

[data-theme="dark"] .cv-view-toolbar.cv-site-header {
    background: #0f172a;
    border-bottom-color: #334155;
}
[data-theme="dark"] .cv-view-toolbar .cv-site-logo { color: #f1f5f9; }
[data-theme="dark"] .cv-view-toolbar .cv-site-logo-mark { background: #3b82f6; }
[data-theme="dark"] .cv-view-toolbar .cv-site-account-link-desktop,
[data-theme="dark"] .cv-view-toolbar .cv-site-create-btn-icon {
    background: rgba(255, 255, 255, 0.09);
    color: #f1f5f9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .cv-view-toolbar .cv-site-account-link-desktop:hover {
    background: rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .cv-view-toolbar .cv-view-toolbar-logout-btn {
    background: rgba(255, 255, 255, 0.09);
    color: #f1f5f9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .cv-view-toolbar .cv-view-toolbar-logout-btn:hover {
    background: rgba(220, 38, 38, 0.22);
    color: #fecaca;
}
[data-theme="dark"] .cv-view-toolbar .cv-site-theme-btn {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .cv-view-toolbar .cv-site-create-btn-icon:hover {
    background: #334155;
    border-color: #475569;
}
[data-theme="dark"] .cv-view-toolbar .cv-site-theme-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}
[data-theme="dark"] .cv-view-toolbar-sep { background: #334155; }

/*
 * View / paylaşım: .app (margin:auto + max-width) flex zincirinde önizlemeyi ~0 genişliğe düşürebiliyordu (ince şerit).
 * Responsive @media .app kuralları da :not ile View dışında bırakıldı. !important: özelik/yüklenme sırasına karşı.
 */
body.cv-view-mode .app,
body.cv-view-standalone .app {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 12px 24px;
    box-sizing: border-box;
}
body.cv-view-mode .app-main,
body.cv-view-standalone .app-main {
    margin-top: 0;
}

body.cv-view-mode .cv-view-toolbar {
    display: flex !important;
}
body.cv-view-mode .app-header {
    display: none !important;
}
body.cv-view-mode .wizard-steps {
    display: none !important;
}
body.cv-view-mode .wizard-body .wizard-panel[data-step-panel="1"],
body.cv-view-mode .wizard-body .wizard-panel[data-step-panel="2"] {
    display: none !important;
}
body.cv-view-mode .wizard-body .wizard-panel[data-step-panel="3"] {
    display: block !important;
}
body.cv-view-mode .wizard-body .wizard-panel[data-step-panel="3"] .preview-option-block,
body.cv-view-mode .wizard-body .wizard-panel[data-step-panel="3"] .panel-header {
    display: none !important;
}
body.cv-view-mode .wizard-body .wizard-panel[data-step-panel="3"] .preview-wrapper {
    max-width: none;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    /* iframe içi ilk boyama: 100vw yerine kutu genişliği (cqw) kullanılsın */
    container-type: inline-size;
    container-name: cv-share-preview;
}

@media screen and (min-width: 769px) {
    body.cv-view-mode .wizard-body .wizard-panel[data-step-panel="3"] .preview-wrapper {
        min-height: min(85vh, 1200px);
    }
}
body.cv-view-mode .wizard-footer {
    display: none !important;
}

/* Hesap paneli: PDF için gizli iframe — önizleme sayfası görünmeden işlenir */
body.cv-silent-download {
    background: #fff !important;
}
body.cv-silent-download .cv-view-toolbar {
    display: none !important;
}
body.cv-silent-download .wizard-body .wizard-panel[data-step-panel="3"] .preview-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    position: absolute;
    left: -12000px;
    top: 0;
    width: 820px;
    max-width: 820px;
    overflow: visible;
    box-sizing: border-box;
}
body.cv-silent-download .preview-inner {
    padding: 0 !important;
    margin: 0 !important;
}
body.cv-silent-download .preview-cv-scaled {
    transform: none !important;
    width: 794px !important;
    max-width: 794px !important;
}
body.cv-silent-download #cvPreview.cv-root,
body.cv-silent-download #cvPreview {
    transform: none !important;
}

body.cv-view-mode .preview-inner {
    justify-content: center;
    overflow: visible;
}

/* Paylaşım / User iframe: ek sıkışma önlemi (wizard .preview-wrapper kuralları çoğu durumu kapsar) */
html.cv-embed body.cv-view-mode .preview-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
@media screen and (min-width: 769px) {
    body.cv-view-mode:not(.cv-silent-download) .wizard-panel[data-step-panel="3"] .preview-cv-scaled {
        min-width: min(100%, 280px);
    }
}

@media (max-width: 768px) {
    /* Girişli: profil/çıkış alt navda; üst önizleme çubuğunda tekrar etmesin */
    body.cv-view-mode.cv-has-bottom-nav #cvViewAuthActions {
        display: none !important;
    }

    /* Mobil önizleme: üstte yalnızca logo + gece/gündüz (yazdır/indir/çıkış gizli; PDF mobil kutudan) */
    body.cv-view-mode .cv-view-toolbar .cv-view-toolbar-print,
    body.cv-view-mode .cv-view-toolbar .cv-view-toolbar-download,
    body.cv-view-mode .cv-view-toolbar #cvViewLogoutBtnDesktop {
        display: none !important;
    }

    /* Yazdır/İndir yokken ayraç anlamsız; üstte tek ikon (tema) kalır */
    body.cv-view-mode .cv-view-toolbar .cv-view-toolbar-sep {
        display: none !important;
    }

    body.cv-view-mode .cv-view-toolbar {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
    }
    body.cv-view-mode .cv-view-toolbar .cv-site-header-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }
    body.cv-view-mode .cv-view-toolbar .cv-site-header-actions {
        justify-content: flex-end;
        width: auto;
        flex: 0 0 auto;
        gap: 10px;
    }
    body.cv-view-mode .cv-view-toolbar #cvViewThemeToggle {
        display: inline-flex !important;
    }

    /* Giriş: altta «Giriş yap» var; üst çubukta tekrar gösterme */
    body.cv-view-mode .cv-view-toolbar #cvViewLoginGuest {
        display: none !important;
    }
}

/*
 * Masaüstü oluşturucu (adım 3): önizleme alanı A4 oranı (794×1123); --cv-preview-scale script.js ile ayarlanır.
 * Kare geniş panel hissi gider; QR overflow:hidden ile kart dışına taşmaz.
 */
@media screen and (min-width: 769px) {
    body:not(.cv-view-mode):not(.cv-silent-download) .wizard-panel[data-step-panel="3"] .preview-cv-scaled {
        display: block;
        width: min(100%, 794px, calc(85vh * 794 / 1123));
        aspect-ratio: 794 / 1123;
        position: relative;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
        box-sizing: border-box;
        flex-shrink: 0;
        align-self: center;
        contain: paint;
        --cv-preview-scale: 1;
        /* Sarmalayıcı taşan alan tıklanmasın; yalnızca CV kökü (QR sürükleme vb.) tıklansın */
        pointer-events: none;
    }

    body:not(.cv-view-mode):not(.cv-silent-download) .wizard-panel[data-step-panel="3"] .preview-cv-scaled #cvPreview.cv-root,
    body:not(.cv-view-mode):not(.cv-silent-download) .wizard-panel[data-step-panel="3"] .preview-cv-scaled #cvPreview {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 794px !important;
        max-width: 794px !important;
        min-height: 1123px !important;
        transform-origin: top left !important;
        transform: scale(var(--cv-preview-scale, 1)) !important;
        box-sizing: border-box !important;
        /* Ölçekli A4 kutusu dışına taşan görünmez hit alanı üstteki font/switch’leri yutmasın */
        pointer-events: none !important;
    }

    body:not(.cv-view-mode):not(.cv-silent-download) .wizard-panel[data-step-panel="3"] .preview-cv-scaled #cvPreview .cv-qr-wrap,
    body:not(.cv-view-mode):not(.cv-silent-download) .wizard-panel[data-step-panel="3"] .preview-cv-scaled #cvPreview .cv-qr-resize-handle {
        pointer-events: auto !important;
    }

    /* Flex üst öğe yüksekliği aspect-ratio’yu ezmesin; önizleme A4 (794:1123) kalsın */
    body:not(.cv-view-mode):not(.cv-silent-download) .wizard-panel[data-step-panel="3"] .preview-inner {
        flex-direction: column;
        align-items: center;
        min-height: 0;
        width: 100%;
        overflow: hidden;
    }

    /* Paylaşım / ?view=1: oluşturucu ile aynı A4 kutusu (view-mode’da :not(.cv-view-mode) yüzünden dışlanıyordu) */
    body.cv-view-mode:not(.cv-silent-download) .wizard-panel[data-step-panel="3"] .preview-cv-scaled {
        display: block;
        width: min(100%, 794px, calc(85vh * 794 / 1123));
        aspect-ratio: 794 / 1123;
        position: relative;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
        box-sizing: border-box;
        flex-shrink: 0;
        align-self: center;
        contain: paint;
        --cv-preview-scale: 1;
        pointer-events: none;
    }

    body.cv-view-mode:not(.cv-silent-download) .wizard-panel[data-step-panel="3"] .preview-cv-scaled #cvPreview.cv-root,
    body.cv-view-mode:not(.cv-silent-download) .wizard-panel[data-step-panel="3"] .preview-cv-scaled #cvPreview {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 794px !important;
        max-width: 794px !important;
        min-height: 1123px !important;
        transform-origin: top left !important;
        transform: scale(var(--cv-preview-scale, 1)) !important;
        box-sizing: border-box !important;
        pointer-events: auto;
    }

    body.cv-view-mode:not(.cv-silent-download) .wizard-panel[data-step-panel="3"] .preview-inner {
        flex-direction: column;
        align-items: center;
        min-height: 0;
        width: 100%;
        overflow: hidden;
    }
}

/* Mobil: QR/link ile açılan CV önizlemesi ekrana sığsın, tam görünsün
 * 100vw iframe içinde üst pencereyi / 0 genişliği kullanabiliyordu → ince şerit.
 * container-type + cqw: ölçek, .preview-wrapper genişliğine göre (iframe güvenli). */
@media (max-width: 768px) {
    body.cv-view-mode .preview-wrapper {
        padding: 0;
        max-width: 100%;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        box-sizing: border-box;
        container-type: inline-size;
        container-name: cv-share-preview;
    }
    body.cv-view-mode .preview-inner {
        justify-content: flex-start;
        min-height: 0;
        width: 100%;
        padding: 0;
        overflow: visible;
    }
    body.cv-view-mode .preview-cv-scaled {
        display: block;
        width: 100%;
        max-width: 100%;
        height: 0;
        padding-bottom: calc(1123 / 794 * 100%);
        position: relative;
        margin: 0 auto;
        box-sizing: border-box;
    }
    body.cv-view-mode .preview-cv-scaled .cv-root {
        position: absolute;
        top: 0;
        left: 0;
        width: 794px;
        height: 1123px;
        transform-origin: top left;
        transform: scale(calc((100vw - 16px) / 794));
    }
}

@supports (width: 1cqw) {
    @media (max-width: 768px) {
        body.cv-view-mode .preview-cv-scaled .cv-root {
            transform: scale(calc((100cqw - 16px) / 794));
        }
    }
}

@media (max-width: 480px) {
    body.cv-view-mode .preview-wrapper {
        padding: 0;
    }
    body.cv-view-mode .preview-cv-scaled {
        width: 100%;
        padding-bottom: calc(1123 / 794 * 100%);
    }
    body.cv-view-mode .preview-cv-scaled .cv-root {
        transform: scale(calc((100vw - 12px) / 794));
        transform-origin: top left;
    }
}

@supports (width: 1cqw) {
    @media (max-width: 480px) {
        body.cv-view-mode .preview-cv-scaled .cv-root {
            transform: scale(calc((100cqw - 12px) / 794));
        }
    }
}

/* Çıkış Swal toast (showLogoutToastThen yedeği): .app-header altı, modal z-index üstü */
.swal2-container.swal2-toast-shown,
.swal2-container:has(.cv-create-sw-toast) {
    padding-top: calc(96px + env(safe-area-inset-top, 0px)) !important;
    box-sizing: border-box;
    z-index: 120000 !important;
}

.cv-create-sw-toast.swal2-popup {
    border-radius: 12px !important;
    padding: 12px 16px !important;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.18) !important;
    border: 1px solid var(--cv-site-border) !important;
    background: var(--cv-site-card) !important;
    color: var(--cv-site-text) !important;
}

.cv-create-sw-toast-title.swal2-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
}

/* SweetAlert2 – profil / cv-site.js ile aynı çıkış onayı (create view toolbar) */
:root {
    --cv-site-card: #ffffff;
    --cv-site-text: #0f172a;
    --cv-site-muted: #64748b;
    --cv-site-border: #e2e8f0;
    --cv-site-accent: #2563eb;
    --cv-site-accent-hover: #1d4ed8;
    --cv-site-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
    --cv-site-card: #1e293b;
    --cv-site-text: #f1f5f9;
    --cv-site-muted: #94a3b8;
    --cv-site-border: #334155;
    --cv-site-accent: #3b82f6;
    --cv-site-accent-hover: #60a5fa;
    --cv-site-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cv-swal-popup.swal2-popup {
    background: var(--cv-site-card);
    color: var(--cv-site-text);
    border-radius: 16px;
    box-shadow: var(--cv-site-shadow);
    border: 1px solid var(--cv-site-border);
    padding: 24px 28px;
    max-width: 400px;
}

.cv-swal-popup .swal2-title {
    color: var(--cv-site-text);
    font-size: 1.25rem;
    font-weight: 600;
}

.cv-swal-popup .swal2-html-container {
    color: var(--cv-site-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.cv-swal-popup .swal2-actions {
    gap: 10px;
    margin-top: 20px;
}

.cv-swal-btn.swal2-styled {
    border-radius: 10px;
    font-weight: 500;
    padding: 10px 20px;
    transition: background-color 0.2s, transform 0.1s;
}

.cv-swal-btn.swal2-styled:active {
    transform: scale(0.98);
}

.cv-swal-confirm.swal2-confirm {
    background: var(--cv-site-accent) !important;
    color: #fff !important;
    border: none;
}

.cv-swal-confirm.swal2-confirm:hover {
    background: var(--cv-site-accent-hover) !important;
}

.cv-swal-cancel.swal2-cancel {
    background: var(--cv-site-border) !important;
    color: var(--cv-site-text) !important;
    border: none;
}

.cv-swal-cancel.swal2-cancel:hover {
    background: var(--cv-site-muted) !important;
    color: var(--cv-site-card) !important;
}

.swal2-container.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.4);
}

html[data-theme="dark"] .swal2-container.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.6);
}
