/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: #f0f4f8; color: #1e293b; min-height: 100vh; font-size: 17px; line-height: 1.6; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 0 16px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 100; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 1.1rem; font-weight: 700; color: #1e293b; flex-shrink: 0; }
.brand i { color: #2563eb; font-size: 1.3rem; }
.brand strong { color: #2563eb; }
.header-nav { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: #f1f5f9; color: #475569; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; text-decoration: none; flex-shrink: 0; }
.icon-nav-btn:hover { background: #e2e8f0; }
.btn-header-cta { background: #2563eb; color: #fff; border: none; border-radius: 20px; padding: 0 16px; height: 40px; font-size: .84rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.btn-header-cta:hover { background: #1d4ed8; color: #fff; }

@media (max-width: 420px) {
  .brand-word { display: none; }
  .btn-header-cta-label { display: none; }
  .btn-header-cta { width: 40px; height: 40px; padding: 0; border-radius: 50%; justify-content: center; }
  .btn-header-cta i { margin: 0 !important; }
}

/* ── Main ──────────────────────────────────────────────────────────────────── */
.main-wrap { max-width: 900px; margin: 0 auto; padding: 32px 16px 96px; }

/* ── Landing screen ────────────────────────────────────────────────────────── */
.landing { max-width: 480px; margin: 0 auto; text-align: center; padding: 12px 0 24px; }
.landing-badge { display: inline-flex; align-items: center; gap: 6px; background: #fffbeb; color: #92400e; border: 1px solid #fde68a; border-radius: 20px; padding: 5px 14px; font-size: .8rem; font-weight: 700; margin-bottom: 20px; }
.landing-icon { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, #1e3a5f, #2563eb); color: #fff; font-size: 2.2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 10px 30px rgba(37,99,235,.3); }
.landing-title { font-size: 2rem; font-weight: 800; line-height: 1.25; color: #0f172a; margin-bottom: 14px; }
.accent { color: #2563eb; }
.landing-sub { font-size: 1rem; color: #475569; line-height: 1.6; margin-bottom: 28px; }

.landing-cta-col { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.landing-btn-primary { text-decoration: none; }
.landing-btn-secondary { justify-content: center; text-decoration: none; padding: 14px 20px; font-size: .95rem; min-height: 52px; }

.landing-features { display: flex; flex-direction: column; gap: 14px; text-align: left; margin-bottom: 28px; }
.landing-feature { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.landing-feature-icon { width: 44px; height: 44px; border-radius: 12px; background: #eff6ff; color: #2563eb; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.landing-feature-title { font-weight: 700; font-size: .92rem; color: #0f172a; }
.landing-feature-desc { font-size: .8rem; color: #94a3b8; }

.landing-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.landing-langs span { background: #f1f5f9; border-radius: 20px; padding: 4px 12px; font-size: .78rem; color: #475569; }

/* ── Error / success banners ──────────────────────────────────────────────── */
.error-banner { background: #fef2f2; border: 1.5px solid #fecaca; color: #991b1b; border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: .9rem; font-weight: 600; }
.error-banner i { font-size: 1.3rem; flex-shrink: 0; }
.success-banner { background: #f0fdf4; border: 1.5px solid #bbf7d0; color: #166534; border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: .9rem; font-weight: 600; }
.success-banner i { font-size: 1.3rem; flex-shrink: 0; }

/* ── My CVs (screen 3) ─────────────────────────────────────────────────────── */
.mycvs-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.mycvs-header h1 { font-size: 1.4rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; }
.mycvs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mycvs-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.06); padding: 18px; border: 2px solid transparent; }
.mycvs-card.just-created { border-color: #86efac; box-shadow: 0 4px 24px rgba(22,163,74,.15); }
.mycvs-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mycvs-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mycvs-avatar-ph { background: linear-gradient(135deg, #1e3a5f, #2563eb); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.mycvs-name { font-weight: 700; font-size: 1rem; color: #0f172a; }
.mycvs-role { font-size: .8rem; color: #64748b; }
.mycvs-meta { font-size: .76rem; color: #94a3b8; display: flex; align-items: center; gap: 5px; margin-bottom: 14px; }
.mycvs-actions { display: flex; gap: 8px; }
.mycvs-actions .btn-action { flex: 1; justify-content: center; }
.mycvs-empty { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.06); padding: 48px 24px; text-align: center; color: #64748b; }

/* ── Builder ───────────────────────────────────────────────────────────────── */
.builder-wrap { background: #fff; border-radius: 20px; box-shadow: 0 4px 32px rgba(0,0,0,.08); overflow: hidden; }
.builder-header { padding: 20px 24px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.builder-header h2 { font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.voice-lang-row { display: flex; align-items: center; gap: 8px; }
.lang-select { border: 1px solid #e2e8f0; border-radius: 8px; padding: 5px 10px; font-size: .78rem; color: #374151; outline: none; }

/* Section quick-jump nav (all sections are always visible; this just scrolls) */
.tabs { display: flex; border-bottom: 1px solid #e2e8f0; overflow-x: auto; padding: 10px 24px; margin-top: 16px; background: #f8fafc; position: sticky; top: 58px; z-index: 20; gap: 4px; }
.tab { flex-shrink: 0; padding: 8px 14px; border: 1.5px solid transparent; border-radius: 20px; background: transparent; font-size: .82rem; color: #64748b; cursor: pointer; font-weight: 600; font-family: inherit; display: flex; align-items: center; gap: 5px; transition: all .15s; }
.tab.active { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
.tab:hover:not(.active) { color: #374151; background: #f1f5f9; }

/* Tab panels — every section is always visible, stacked top to bottom */
.tab-panel { padding: 24px; border-top: 1px solid #f1f5f9; }
.tab-panel:first-of-type { border-top: none; }
.tab-panel.hidden { display: none; }
.section-heading { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 800; color: #0f172a; margin-bottom: 18px; }
.section-num { width: 34px; height: 34px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Form grid — single column: one question at a time, top to bottom, easy to follow */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group.span-2 { grid-column: span 1; }
.field-group label { font-size: 1rem; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req { background: #fef2f2; color: #b91c1c; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-radius: 6px; padding: 2px 7px; }
.opt { color: #94a3b8; font-weight: 500; font-size: .78rem; }

input[type=text], input[type=tel], input[type=email], input[type=date],
input[type=month], input[type=number], select, textarea {
  width: 100%; border: 2px solid #e2e8f0; border-radius: 10px; padding: 13px 14px;
  font-size: 1rem; color: #1e293b; outline: none; font-family: inherit; background: #fff; transition: border-color .15s;
  min-height: 52px;
}
input:focus, select:focus, textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
textarea { resize: vertical; min-height: 80px; }

.input-mic { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.input-mic input, .input-mic textarea { border-radius: 10px; flex: 1; min-width: 180px; }
.mic-btn {
  border: 2px solid #bfdbfe; border-radius: 10px; background: #eff6ff; color: #2563eb; cursor: pointer;
  padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .88rem; font-weight: 700; font-family: inherit; transition: all .15s; min-height: 52px;
}
.mic-btn:hover { background: #dbeafe; }
.mic-btn.listening { background: #fef2f2; color: #ef4444; border-color: #fca5a5; animation: pulse-red 1s infinite; }
@keyframes pulse-red { 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.3)} 50%{box-shadow:0 0 0 6px rgba(239,68,68,0)} }
#skillMicBtn { border: 2px solid #bfdbfe; border-radius: 10px; padding: 10px 16px; background: #eff6ff; color: #2563eb; cursor: pointer; font-size: .88rem; font-weight: 700; display: flex; align-items: center; gap: 6px; min-height: 44px; flex-shrink: 0; white-space: nowrap; }

/* Choice buttons (used instead of dropdowns for a small set of options, e.g. Gender) */
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice-btn { flex: 1; min-width: 100px; min-height: 52px; border: 2px solid #e2e8f0; border-radius: 10px; background: #fff; color: #374151; font-size: 1rem; font-weight: 600; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .15s; }
.choice-btn:hover { border-color: #bfdbfe; background: #f8fafc; }
.choice-btn.selected { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }

/* Photo upload */
.photo-upload-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.photo-preview { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; border: 2px solid #e2e8f0; }
.photo-upload-btn { display: inline-flex; align-items: center; gap: 8px; border: 2px dashed #bfdbfe; border-radius: 12px; background: #eff6ff; color: #2563eb; font-weight: 700; font-size: .92rem; padding: 14px 20px; cursor: pointer; min-height: 52px; }
.photo-upload-btn:hover { background: #dbeafe; }
.photo-file-name { font-size: .82rem; color: #16a34a; font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Dynamic cards */
.dynamic-card { border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.dynamic-card.sm { padding: 12px; }
.dcard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dcard-title { font-size: .82rem; font-weight: 600; color: #374151; }
.btn-remove-item { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: .9rem; padding: 2px 4px; border-radius: 4px; }
.btn-remove-item:hover { color: #ef4444; background: #fef2f2; }

/* Skill tag input */
.tag-input-wrap { border: 1.5px solid #e2e8f0; border-radius: 9px; padding: 8px; min-height: 46px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; cursor: text; }
.tag-input-wrap:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.tag { display: inline-flex; align-items: center; gap: 4px; background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 20px; padding: 3px 10px; font-size: .78rem; font-weight: 500; }
.tag-rm { background: none; border: none; color: inherit; cursor: pointer; font-size: .85rem; line-height: 1; padding: 0; }
.tag-input-row { display: flex; align-items: center; gap: 6px; flex: 1 1 100%; min-width: 0; }
.tag-input-row input { border: none; outline: none; background: transparent; font-size: 1rem; min-width: 0; flex: 1; padding: 6px 2px; }

/* Quick chips */
.quick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; margin-bottom: 4px; }
.qc-label { font-size: .78rem; color: #94a3b8; padding-top: 8px; width: 100%; }
.qchip { border: 1.5px solid #e2e8f0; border-radius: 20px; background: #f8fafc; color: #374151; font-size: .82rem; font-weight: 600; padding: 9px 14px; cursor: pointer; font-family: inherit; min-height: 40px; }
.qchip:hover { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }

/* Language checkboxes */
.lang-checkboxes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.lang-check { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; cursor: pointer; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 9px 14px; min-height: 44px; }
.lang-check:has(input:checked) { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.lang-check input { width: 18px; height: 18px; cursor: pointer; accent-color: #16a34a; }

/* Section helpers */
.section-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-hint { font-size: .8rem; color: #94a3b8; }
.section-divider { border: none; border-top: 1px solid #f1f5f9; margin: 20px 0; }
.check-label { display: flex; align-items: center; gap: 5px; font-size: .8rem; cursor: pointer; }
.exp-curr-wrap { grid-column: span 1; }

.empty-hint { text-align: center; padding: 20px; color: #94a3b8; font-size: .82rem; }

/* Buttons */
.btn-add { background: #eff6ff; color: #2563eb; border: 2px solid #bfdbfe; border-radius: 10px; padding: 10px 16px; font-size: .86rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: inherit; min-height: 44px; }
.btn-add:hover { background: #dbeafe; }
.tab-nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.btn-next, .btn-back { border: none; border-radius: 9px; padding: 9px 20px; font-size: .84rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-family: inherit; }
.btn-next { background: #2563eb; color: #fff; }
.btn-next:hover { background: #1d4ed8; }
.btn-back { background: #f1f5f9; color: #374151; }
.btn-back:hover { background: #e2e8f0; }
.form-actions { padding: 24px; border-top: 1px solid #f1f5f9; display: flex; justify-content: center; }
.btn-submit { background: #16a34a; color: #fff; border: none; border-radius: 12px; padding: 16px 40px; font-size: 1.05rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; min-height: 56px; width: 100%; max-width: 420px; justify-content: center; }
.btn-submit:hover { background: #15803d; }

/* Sticky bottom bar — the "finish" action is always reachable, no matter where you scroll */
.sticky-submit-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1.5px solid #e2e8f0; padding: 12px 16px; box-shadow: 0 -4px 20px rgba(0,0,0,.08); z-index: 50; display: none; }
.sticky-submit-bar.show { display: flex; justify-content: center; }
.sticky-submit-bar .btn-submit { max-width: 480px; }

/* ── Language picker (screen 0) ───────────────────────────────────────────── */
.lang-picker-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(160deg, #1e3a5f 0%, #2563eb 100%); padding: 24px; }
.lang-picker { background: #fff; border-radius: 24px; padding: 36px 28px; max-width: 460px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.lang-picker-icon { width: 64px; height: 64px; border-radius: 50%; background: #eff6ff; color: #2563eb; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.lang-picker-title { font-size: 1.3rem; font-weight: 800; color: #0f172a; line-height: 1.4; margin-bottom: 10px; }
.lang-picker-title span { color: #2563eb; }
.lang-picker-sub { font-size: .88rem; color: #64748b; line-height: 1.6; margin-bottom: 26px; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lang-option { border: 2px solid #e2e8f0; border-radius: 14px; background: #fff; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-family: inherit; min-height: 90px; transition: all .15s; }
.lang-option:hover { border-color: #2563eb; background: #eff6ff; }
.lang-flag { font-size: 1.6rem; }
.lang-native { font-size: 1.05rem; font-weight: 700; color: #1e293b; }
@media (max-width: 420px) { .lang-grid { grid-template-columns: 1fr 1fr; } }

/* ── Voice wizard (one question at a time, create-CV flow) ───────────────────── */
.wizard-mode .section-heading { display: none; }
.wizard-hide { display: none !important; }

.wizard-intro { text-align: center; padding: 40px 24px; }
.wizard-intro h3 { font-size: 1.3rem; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.wizard-intro p { color: #64748b; font-size: .95rem; margin-bottom: 24px; max-width: 420px; margin-left: auto; margin-right: auto; }
.wizard-intro .btn-submit { max-width: 260px; margin: 0 auto; }

.wizard-progress-row { display: flex; align-items: center; gap: 12px; padding: 20px 24px 0; }
.wizard-progress-bar { flex: 1; height: 8px; background: #eef2f7; border-radius: 20px; overflow: hidden; }
.wizard-progress-fill { height: 100%; background: #2563eb; border-radius: 20px; transition: width .25s; width: 0%; }
.wizard-progress-text { font-size: .76rem; color: #94a3b8; font-weight: 700; white-space: nowrap; }

.wizard-prompt-box { display: flex; align-items: center; gap: 12px; background: #eff6ff; border-radius: 14px; padding: 14px 16px; margin: 16px 24px 4px; }
.wizard-prompt-text { flex: 1; font-size: 1.02rem; font-weight: 700; color: #1e3a8a; }
.wizard-icon-btn { border: none; background: #dbeafe; color: #2563eb; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; }
.wizard-icon-btn:hover { background: #bfdbfe; }
.wizard-icon-btn.muted { background: #fef2f2; color: #ef4444; }

.wizard-warning { display: none; margin: 4px 24px 0; background: #fffbeb; color: #92400e; border: 1.5px solid #fde68a; border-radius: 10px; padding: 10px 14px; font-size: .84rem; font-weight: 600; }
.wizard-warning.show { display: block; }

.wizard-nav { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1.5px solid #e2e8f0; padding: 12px 20px; box-shadow: 0 -4px 20px rgba(0,0,0,.08); z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wizard-back-btn { background: #f1f5f9; color: #374151; border: none; border-radius: 12px; padding: 14px 20px; font-size: .92rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; min-height: 52px; visibility: hidden; }
.wizard-nav .btn-submit { width: auto; flex: 1; max-width: 320px; margin-left: auto; }

/* ── Preview / CV doc ──────────────────────────────────────────────────────── */
.save-banner { background: linear-gradient(135deg, #1e3a5f, #2563eb); color: #fff; padding: 12px 20px; border-radius: 12px; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.save-banner i { font-size: 1.2rem; flex-shrink: 0; }
.btn-copy-link { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 7px 16px; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; font-family: inherit; }
.btn-copy-link:hover { background: rgba(255,255,255,.3); }

.preview-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.pa-left, .pa-right { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-action { border-radius: 9px; padding: 8px 16px; font-size: .82rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-family: inherit; text-decoration: none; border: none; }
.btn-action.primary { background: #2563eb; color: #fff; }
.btn-action.primary:hover { background: #1d4ed8; color: #fff; }
.btn-action.outline { background: #fff; color: #374151; border: 1.5px solid #e2e8f0; }
.btn-action.outline:hover { background: #f8fafc; }
.btn-action.ghost { background: transparent; color: #64748b; border: none; }
.btn-action.ghost:hover { color: #374151; }
.btn-action.share-on { background: #f0fdf4; color: #166534; border: 1.5px solid #bbf7d0; }

.share-bar { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.share-bar i { color: #16a34a; font-size: 1rem; }
.share-input { flex: 1; border: 1px solid #e2e8f0; border-radius: 7px; padding: 7px 10px; font-size: .78rem; font-family: monospace; color: #374151; min-width: 0; outline: none; }
.btn-copy { background: #16a34a; color: #fff; border: none; border-radius: 7px; padding: 7px 14px; font-size: .76rem; font-weight: 600; cursor: pointer; white-space: nowrap; font-family: inherit; }
.btn-copy:hover { background: #15803d; }

/* CV Document */
.cv-doc { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 32px rgba(0,0,0,.1); max-width: 780px; margin: 0 auto; }
.cv-header-block { background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%); padding: 28px 32px; color: #fff; display: flex; gap: 20px; align-items: flex-start; }
.cv-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.3); flex-shrink: 0; }
.cv-photo-placeholder { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; flex-shrink: 0; }
.cv-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 3px; }
.cv-headline { font-size: .88rem; opacity: .8; margin-bottom: 8px; }
.cv-contact-row { display: flex; flex-wrap: wrap; gap: 12px; font-size: .76rem; opacity: .9; }
.cv-contact-row span { display: flex; align-items: center; gap: 4px; }
.cv-body { padding: 24px 32px; }
.cv-section { border-bottom: 1px solid #e2e8f0; padding-bottom: 16px; margin-bottom: 16px; }
.cv-section.last { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cv-sec-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #2563eb; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.exp-item { margin-bottom: 12px; }
.exp-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.exp-role { font-weight: 600; font-size: .88rem; color: #0f172a; }
.exp-co { color: #475569; font-size: .84rem; }
.exp-period { font-size: .74rem; color: #94a3b8; white-space: nowrap; }
.exp-tasks { font-size: .81rem; color: #475569; margin-top: 3px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chip { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 20px; padding: 3px 12px; font-size: .77rem; font-weight: 500; }
.lang-chip { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; border-radius: 20px; padding: 3px 12px; font-size: .77rem; font-weight: 500; }
.simple-row { font-size: .84rem; color: #374151; margin-bottom: 5px; }
.simple-row strong { color: #0f172a; }

/* Voice toast */
#voiceToast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 10px 20px; border-radius: 24px; font-size: .82rem; z-index: 9999; box-shadow: 0 4px 20px rgba(0,0,0,.25); display: none; align-items: center; gap: 10px; white-space: nowrap; }
.mic-dot { width: 10px; height: 10px; background: #ef4444; border-radius: 50%; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer { text-align: center; padding: 20px; font-size: .74rem; color: #94a3b8; border-top: 1px solid #e2e8f0; background: #fff; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .landing-title { font-size: 1.6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field-group.span-2 { grid-column: span 1; }
  .builder-header { flex-direction: column; align-items: flex-start; }
  .cv-header-block { flex-direction: column; align-items: center; text-align: center; }
  .cv-contact-row { justify-content: center; }
  .cv-body { padding: 16px 16px; }
  .preview-actions { flex-direction: column; align-items: stretch; }
  .pa-left, .pa-right { justify-content: stretch; }
  .pa-right { flex-direction: column; }
  .btn-action { justify-content: center; }
}

/* ── Print ─────────────────────────────────────────────────────────────────── */
@media print {
  .no-print, .site-header, .site-footer, .save-banner, .preview-actions, .share-bar, #voiceToast { display: none !important; }
  body { background: #fff; }
  .main-wrap { padding: 0; max-width: 100%; }
  .cv-doc { border-radius: 0; box-shadow: none; max-width: 100%; }
  @page { size: A4; margin: 1cm 1.5cm; }
}
