/* NorthPeak CV Builder – vzhled aplikace */
:root {
  --navy: #0E1E3A;
  --navy-2: #18305A;
  --blue: #3D6FA8;
  --blue-2: #2F5C91;
  --blue-soft: #E7EEF7;
  --grey: #EEF1F5;
  --grey-2: #D7DDE5;
  --text: #1D2532;
  --muted: #5A6577;
  --danger: #C0392B;
  --ok: #1E8E5A;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(14,30,58,.06), 0 4px 16px rgba(14,30,58,.06);
  --font: "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 60px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; font-size: 15px; line-height: 1.5; }
body.in-app { background: var(--grey); }
a { color: var(--blue); }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
:focus-visible { outline: 3px solid rgba(61,111,168,.45); outline-offset: 2px; }

/* ---------- Tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; padding: 10px 18px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-2); }
.btn-accent { background: var(--blue); color: #fff; }
.btn-accent:hover { background: var(--blue-2); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--grey-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 6px 12px; font-size: 13.5px; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-xl { padding: 16px 30px; font-size: 17px; border-radius: 10px; box-shadow: 0 6px 20px rgba(14,30,58,.18); }
.btn-block { width: 100%; }
.btn-add { width: 100%; background: transparent; border: 1.5px dashed var(--grey-2); color: var(--blue); padding: 12px; margin-top: 4px; }
.btn-add:hover { border-color: var(--blue); background: var(--blue-soft); }
.btn-ai { background: #F4F1FB; color: #4B3A8A; border-color: #E2DBF5; }
.btn-ai:hover { background: #EAE4F8; }
.icon-btn { width: 32px; height: 32px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover:not(:disabled) { background: var(--grey); color: var(--navy); }
.icon-btn.danger:hover { color: var(--danger); background: #FBECEA; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Landing ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px, 5vw, 56px); border-bottom: 1px solid var(--grey); }
.brand img { display: block; }
.header-right { display: flex; align-items: center; gap: 10px; }
.ui-lang { width: auto !important; min-height: 0 !important; border: 1px solid var(--grey-2); border-radius: 6px; padding: 6px 8px; background: #fff; font: inherit; font-size: 13px; color: var(--navy); font-weight: 600; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(32px, 6vw, 80px) clamp(16px, 5vw, 56px); max-width: 1280px; margin: 0 auto; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 5px 10px; border-radius: 20px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.02em; color: var(--navy); margin: 0 0 18px; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--navy); font-weight: 600; font-size: 14px; }
.hero-points li::before { content: "✓"; color: var(--blue); margin-right: 6px; }
.hero-visual { position: relative; height: clamp(380px, 46vw, 560px); }
.thumb { position: absolute; width: 56%; background: #fff; border-radius: 6px; box-shadow: 0 18px 50px rgba(14,30,58,.18), 0 2px 6px rgba(14,30,58,.08); overflow: hidden; }
.thumb-inner { transform-origin: top left; width: 210mm; pointer-events: none; }
.thumb-1 { left: 0; top: 8%; transform: rotate(-5deg); }
.thumb-2 { right: 0; top: 4%; transform: rotate(4deg); }
.thumb-3 { left: 22%; top: 0; z-index: 2; }
.band { background: var(--navy); color: #fff; }
.band-inner { max-width: 1180px; margin: 0 auto; padding: 56px clamp(16px, 5vw, 56px); }
.band h2 { margin: 0 0 28px; font-size: 28px; }
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how li { display: flex; gap: 14px; align-items: flex-start; }
.how span { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.how p { margin: 6px 0 0; color: #D5DEEA; }
.why { max-width: 1180px; margin: 0 auto; padding: 64px clamp(16px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.why h2 { color: var(--navy); font-size: 30px; margin: 0 0 14px; }
.why p { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.why-list li { background: var(--grey); border-radius: var(--radius); padding: 16px 18px; border-left: 4px solid var(--blue); display: flex; flex-direction: column; }
.why-list strong { color: var(--navy); }
.why-list span { color: var(--muted); font-size: 14px; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px clamp(16px, 5vw, 56px); border-top: 1px solid var(--grey); font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer { align-items: center; }
.footer-logo { display: block; height: auto; }
@media (max-width: 560px) { .app-header .brand img { height: 24px !important; width: auto; } }

/* ---------- Editor – rozvržení ---------- */
.app-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); background: #fff; border-bottom: 1px solid var(--grey-2); display: flex; align-items: center; gap: 20px; padding: 0 18px; }
.progress { flex: 1; display: flex; align-items: center; gap: 12px; max-width: 420px; }
.progress-track { flex: 1; height: 6px; border-radius: 6px; background: var(--grey); overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--navy)); transition: width .35s; }
.progress-text { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-weight: 600; }
.app-header .header-right { margin-left: auto; }
.save-state { white-space: nowrap; font-size: 12px; color: var(--muted); transition: color .2s; }
.save-state::before { content: "●"; color: var(--ok); margin-right: 5px; font-size: 9px; vertical-align: 2px; }
.save-state.flash { color: var(--ok); }

.app-body { display: grid; grid-template-columns: minmax(380px, 40%) 1fr; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
.panel-edit { overflow-y: auto; background: #F7F9FB; border-right: 1px solid var(--grey-2); scroll-behavior: smooth; }
.panel-preview { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: #E4E9F0; }

.steps { position: sticky; top: 0; z-index: 5; display: flex; gap: 2px; overflow-x: auto; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--grey-2); scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step { flex: none; display: flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 10px; border-radius: 7px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.step-n { width: 20px; height: 20px; border-radius: 50%; background: var(--grey); color: var(--muted); font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center; }
.step:hover { background: var(--grey); }
.step.on { background: var(--blue-soft); color: var(--navy); }
.step.on .step-n { background: var(--navy); color: #fff; }
.step.bad .step-n { background: var(--danger); color: #fff; }

.form { padding: 18px clamp(14px, 2.4vw, 28px) 40px; max-width: 760px; }
.section-title { font-size: 22px; color: var(--navy); margin: 6px 0 14px; letter-spacing: -.01em; }
.section-hint { color: var(--muted); margin: -6px 0 14px; font-size: 14px; }
.form-nav { display: flex; justify-content: space-between; margin-top: 22px; }

/* ---------- Karty a pole ---------- */
.card { background: #fff; border: 1px solid var(--grey-2); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card-flat { box-shadow: none; padding: 14px 18px; }
.cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.entry { padding: 0; overflow: hidden; margin: 0; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; cursor: pointer; }
.entry.open .card-head { border-bottom: 1px solid var(--grey); background: #FBFCFD; }
.card-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card-head-text strong { color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-head-text span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tools { display: flex; gap: 2px; flex: none; }
.card-body { padding: 16px; }
.empty { color: var(--muted); font-size: 14px; padding: 14px; text-align: center; border: 1px dashed var(--grey-2); border-radius: var(--radius); background: #fff; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid2 .full, .field.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; color: var(--navy); }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; }
.field-hint { font-size: 12.5px; color: var(--muted); }
.field-error { font-size: 12.5px; color: var(--danger); font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=month], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: #fff; border: 1px solid var(--grey-2); border-radius: 8px; padding: 9px 11px; min-height: 42px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,111,168,.15); }
input:disabled { background: var(--grey); color: var(--muted); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.phone-row { display: grid; grid-template-columns: 112px 1fr; gap: 6px; }
.phone-code { font-size: 13.5px !important; padding-right: 4px !important; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; padding: 4px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
fieldset.sub { border: 0; border-top: 1px solid var(--grey); margin: 18px 0 0; padding: 14px 0 0; display: flex; flex-direction: column; gap: 12px; }
fieldset.sub legend { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); padding: 0 8px 0 0; }
.questions { display: flex; flex-direction: column; gap: 10px; }
.q { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.legal-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; padding: 10px 12px; background: var(--grey); border-radius: 8px; }

/* Segmenty a čipy */
.seg { display: inline-flex; background: var(--grey); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 6px; font-weight: 600; color: var(--muted); font-size: 14px; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(14,30,58,.12); }
.seg-sm button { padding: 5px 12px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { border: 1px solid var(--grey-2); background: #fff; color: var(--text); border-radius: 20px; padding: 6px 13px; font-size: 13.5px; transition: all .12s; }
.chip:hover { border-color: var(--blue); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.on::before { content: "✓ "; }
.tabs { display: inline-flex; gap: 2px; background: var(--grey); padding: 3px; border-radius: 8px; }
.tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 6px; font-weight: 600; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.tabs button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(14,30,58,.12); }
.tabs-scroll { display: flex; overflow-x: auto; margin-bottom: 14px; max-width: 100%; }

/* Fotografie */
.photo-field { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--grey); }
.photo-thumb { width: 96px; height: 120px; border-radius: 8px; background: var(--grey); color: #B9C2CF; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; cursor: pointer; border: 2px dashed var(--grey-2); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-field.has-error .photo-thumb { border-color: var(--danger); }
.photo-side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.photo-side .btn-row { margin: 4px 0 2px; }

/* Popis praxe */
.desc-box textarea.desc { font-size: 14px; }
.desc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.badge-auto { background: var(--blue-soft); color: var(--blue-2); }
.badge-edit { background: #FFF4DE; color: #8A5A00; }
.hint-box { font-size: 13px; background: #FFF8EA; border: 1px solid #F5E3B5; color: #6E5200; padding: 8px 12px; border-radius: 8px; }
.ai-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px; background: #FAF8FE; border: 1px solid #EEE9F9; border-radius: 8px; }
.ai-label { font-size: 12.5px; font-weight: 700; color: #4B3A8A; margin-right: 4px; }

/* Jazyky, dovednosti */
.lang-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.lang-row { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 10px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--grey); }
.lang-row:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr 1.4fr auto; }
.lang-row .icon-btn { margin-bottom: 5px; }
.add-row { display: flex; gap: 8px; margin-top: 14px; }
.sel-list { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: s; }
.sel-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 4px 6px 10px; border-bottom: 1px solid var(--grey); font-size: 14px; counter-increment: s; }
.sel-list li > span:first-child::before { content: counter(s) "."; color: var(--muted); margin-right: 8px; font-size: 12px; }

/* Šablony & dokončení */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.tpl-card { text-align: left; border: 2px solid var(--grey-2); background: #fff; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.tpl-card strong { color: var(--navy); font-size: 13.5px; }
.tpl-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,111,168,.15); }
.tpl-thumb { height: 74px; border-radius: 5px; background: var(--grey); position: relative; overflow: hidden; margin-bottom: 6px; }
.tpl-thumb i { position: absolute; display: block; background: #C5CEDB; border-radius: 2px; }
.tpl-thumb-classic i:nth-child(1) { left: 0; right: 0; top: 0; height: 6px; background: var(--navy); }
.tpl-thumb-classic i:nth-child(2) { left: 10%; top: 16px; width: 18%; height: 22px; background: #9FB2CB; }
.tpl-thumb-classic i:nth-child(3) { left: 34%; top: 18px; width: 50%; height: 6px; background: var(--navy); }
.tpl-thumb-classic i:nth-child(4) { left: 10%; right: 10%; top: 48px; height: 18px; }
.tpl-thumb-modern i:nth-child(1) { left: 0; top: 0; bottom: 0; width: 34%; background: var(--navy); }
.tpl-thumb-modern i:nth-child(2) { left: 9%; top: 10px; width: 16%; height: 16px; border-radius: 50%; background: #9FB2CB; }
.tpl-thumb-modern i:nth-child(3) { left: 42%; top: 12px; width: 46%; height: 7px; background: var(--navy); }
.tpl-thumb-modern i:nth-child(4) { left: 42%; right: 8%; top: 30px; height: 30px; }
.tpl-thumb-executive i:nth-child(1) { left: 10%; top: 12px; width: 52%; height: 8px; background: var(--navy); }
.tpl-thumb-executive i:nth-child(2) { right: 10%; top: 10px; width: 16%; height: 22px; background: #9FB2CB; }
.tpl-thumb-executive i:nth-child(3) { left: 10%; right: 10%; top: 38px; height: 2px; background: var(--blue); }
.tpl-thumb-executive i:nth-child(4) { left: 34%; right: 10%; top: 46px; height: 20px; }
.missing { background: #FDF0EE; border: 1px solid #F4CFC9; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.missing ul { margin: 6px 0 0; padding-left: 20px; }
.ok-box { background: #E9F6EF; border: 1px solid #BFE5CF; color: #145C3B; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.privacy-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.pool-card { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border: 0; }
.pool-card h4 { margin: 0 0 6px; font-size: 18px; }
.pool-card p { color: #D5DEEA; margin: 0 0 14px; font-size: 14px; }
.pool-card .field-hint { color: #9FB2CB; margin: 10px 0 0; }
.danger-zone { text-align: center; margin-top: 8px; }

/* ---------- Náhled ---------- */
.preview-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--grey-2); }
.preview-toolbar .btn { margin-left: auto; }
.page-count { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.preview-stage { flex: 1; min-height: 0; overflow: auto; padding: 22px 16px 60px; }
.pages-wrap { margin: 0 auto; position: relative; overflow: hidden; }
.pages { transform-origin: top left; width: 210mm; display: flex; flex-direction: column; gap: 18px; }
.pages .cv-page { box-shadow: 0 4px 24px rgba(14,30,58,.16); }

/* Jazyk exportu a překlady */
.export-lang { display: inline-flex; align-items: center; gap: 6px; }
.export-label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tr-status { border: 0; background: transparent; font-size: 12.5px; font-weight: 600; padding: 4px 6px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.tr-status:empty { display: none; }
.tr-status.warn { color: #8A5A00; background: #FFF4DE; cursor: pointer; }
.tr-status.busy { color: var(--blue-2); }
.tr-box { margin-top: 14px; border-top: 1px solid var(--grey); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.tr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tr-item { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; background: #FAFBFC; border: 1px solid var(--grey); border-radius: 8px; }
.tr-label { font-size: 11.5px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; }
.tr-orig { font-size: 13px; color: var(--muted); white-space: pre-wrap; }
.tr-input { min-height: 38px !important; font-size: 14px !important; }
.tr-input.tr-missing { border-color: #F0C36D; background: #FFFCF4; }

/* Praxe – nápověda, starší pozice, další možnosti */
.info-box { font-size: 13.5px; background: var(--blue-soft); border: 1px solid #C9D9EC; color: var(--navy-2); padding: 10px 14px; border-radius: 8px; margin: -4px 0 12px; line-height: 1.45; }
.old-warn { margin-top: 12px; }
.entry.is-old .card-head-text strong::after { content: "10+"; font-size: 10.5px; font-weight: 800; color: #8A5A00; background: #FFF4DE; border-radius: 10px; padding: 1px 7px; margin-left: 8px; vertical-align: 2px; }
.link-btn { border: 0; background: none; color: var(--blue); font-weight: 600; font-size: 13.5px; padding: 2px 0; align-self: flex-start; }
.link-btn:hover { text-decoration: underline; }

/* Přílohy */
.att-add { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: end; margin-top: 8px; }
.att-drop { border: 2px dashed var(--grey-2); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; color: var(--muted); text-align: center; font-size: 13px; transition: all .15s; }
.att-drop strong { color: var(--navy); font-size: 14px; }
.att-drop:hover, .att-drop.over { border-color: var(--blue); background: var(--blue-soft); }
.att-drop-ico { color: var(--blue); }
.att-status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; min-height: 18px; margin-top: 8px; }
.att-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.att-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--grey-2); border-radius: 10px; background: #FBFCFD; }
.att-thumb { width: 64px; height: 84px; border: 1px solid var(--grey-2); border-radius: 6px; background: #fff; padding: 0; overflow: hidden; position: relative; }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.att-thumb.no-thumb img { display: none; }
.att-kind { position: absolute; left: 3px; bottom: 3px; font-size: 9.5px; font-weight: 800; background: var(--navy); color: #fff; border-radius: 3px; padding: 0 4px; }
.att-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.att-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.att-row select { width: auto; min-height: 34px; padding: 4px 8px; font-size: 13.5px; }
.att-meta input { min-height: 36px; padding: 6px 10px; }
.att-info { font-size: 12.5px; color: var(--muted); }
.att-tools { flex-direction: column; }
.att-preview { display: flex; flex-direction: column; gap: 12px; align-items: center; background: #E4E9F0; padding: 12px; border-radius: 8px; }
.att-page { max-width: 100%; height: auto; box-shadow: 0 2px 10px rgba(14,30,58,.15); background: #fff; }

/* Ukazatel délky CV */
.page-count { display: inline-flex; align-items: center; gap: 6px; cursor: help; }
.len-bar { display: inline-flex; gap: 2px; }
.len-bar i { display: block; width: 14px; height: 18px; border-radius: 2px; border: 1px solid var(--grey-2); background: linear-gradient(to top, var(--c, #1E8E5A) calc(var(--f) * 100%), #fff 0); }
.len-ok { color: #145C3B; } .len-ok .len-bar i { --c: #2EA36B; }
.len-info { color: var(--navy-2); } .len-info .len-bar i { --c: var(--blue); }
.len-warn { color: #8A5A00; } .len-warn .len-bar i { --c: #E0A21B; }
.len-bad { color: var(--danger); } .len-bad .len-bar i { --c: var(--danger); }

/* Export */
.modal-export { max-width: 560px; }
.export-box { display: flex; flex-direction: column; gap: 12px; }
.len-card { border-radius: 10px; padding: 12px 14px; border: 1px solid var(--grey-2); background: #FAFBFC; }
.len-card.len-ok { background: #E9F6EF; border-color: #BFE5CF; }
.len-card.len-warn { background: #FFF8EA; border-color: #F5E3B5; }
.len-card.len-bad { background: #FDF0EE; border-color: #F4CFC9; }
.len-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.len-head span { color: var(--text); font-size: 14px; }
.adv-list { margin: 8px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--text); }
.adv-list li { margin: 2px 0; }
.export-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--grey-2); border-radius: 10px; }
.export-item.is-empty { background: #FAFBFC; }
.export-item .btn-row { margin-top: 0; }
.modal-preview { max-width: 980px; }
.pdf-preview { background: #E4E9F0; padding: 14px; border-radius: 8px; }
.pdf-preview-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pdf-page-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.pdf-page-scale { position: relative; overflow: hidden; box-shadow: 0 4px 18px rgba(14,30,58,.18); background: #fff; }
.pdf-page-scale > .cv-page { transform-origin: top left; position: absolute; left: 0; top: 0; }

/* ---------- Mobilní lišta ---------- */
.mobile-bar { display: none; }

/* ---------- Modální okna ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(14,30,58,.5); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal-wide { max-width: 860px; }
.modal-sm { max-width: 380px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0; }
.modal-head h3 { margin: 0; font-size: 18px; color: var(--navy); }
.modal-body { padding: 16px 18px; overflow: auto; }
.modal-body p { margin: 0 0 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 18px 16px; }
.miss-list { margin: 0; padding-left: 20px; }
.cropper { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.crop-view { position: relative; overflow: hidden; background: #222; border-radius: 8px; touch-action: none; cursor: grab; user-select: none; }
.crop-view:active { cursor: grabbing; }
.crop-img { position: absolute; left: 0; top: 0; max-width: none; max-height: none; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.crop-view.dragging { cursor: grabbing; }
.crop-view:focus-visible { outline: 3px solid rgba(61,111,168,.6); }
.crop-guide { position: absolute; inset: 0; border: 2px solid rgba(255,255,255,.8); border-radius: 8px; pointer-events: none; box-shadow: inset 0 0 0 9999px rgba(0,0,0,0); }
.crop-guide::after { content: ""; position: absolute; left: 50%; top: 42%; width: 62%; height: 64%; transform: translate(-50%, -50%); border: 1.5px dashed rgba(255,255,255,.55); border-radius: 50%; }
.crop-zoom { display: flex; align-items: center; gap: 8px; width: 260px; font-size: 13px; color: var(--muted); }
.zoom-btn { border: 1px solid var(--grey-2); font-size: 18px; font-weight: 700; flex: none; }
.crop-zoom input { flex: 1; accent-color: var(--navy); }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .center { text-align: center; }
.ai-box { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-col .label { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.ai-orig { white-space: pre-wrap; font-size: 14px; background: var(--grey); border-radius: 8px; padding: 10px 12px; min-height: 180px; color: var(--muted); }
.ai-sugg { min-height: 180px; font-size: 14px; }
.ai-status { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.ai-status.error { color: var(--danger); font-weight: 600; }
.ai-note { grid-column: 1 / -1; font-size: 13px; background: #FFF8EA; border: 1px solid #F5E3B5; border-radius: 8px; padding: 8px 12px; margin: 0 !important; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--grey-2); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.print-hint { display: flex; gap: 14px; align-items: flex-start; }
.pool-modal { text-align: center; padding: 6px 4px 0; }
.pool-ico { width: 56px; height: 56px; border-radius: 50%; background: #E9F6EF; color: var(--ok); font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.pool-modal h3 { color: var(--navy); margin: 0 0 8px; font-size: 22px; }
.pool-modal .btn { margin: 8px 0 6px; }
.modal-pool .modal-actions { justify-content: center; }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 200; opacity: 0; transition: all .25s; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { background: #8A5A00; }

/* ---------- Responzivita ---------- */
@media (max-width: 1100px) {
  .app-body { grid-template-columns: minmax(360px, 46%) 1fr; }
  .tpl-grid { grid-template-columns: 1fr; }
  .tpl-card { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .tpl-thumb { width: 70px; height: 56px; margin: 0 8px 0 0; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { height: 92vw; max-height: 520px; }
  .how { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .hide-sm { display: none; }

  .app-body { display: block; height: auto; }
  .panel-edit { overflow: visible; border: 0; min-height: calc(100vh - var(--header-h)); padding-bottom: 70px; }
  .steps { top: var(--header-h); }
  .panel-preview { display: none; min-height: calc(100vh - var(--header-h)); padding-bottom: 70px; overflow: visible; }
  body.show-preview .panel-edit { display: none; }
  body.show-preview .panel-preview { display: flex; }
  .preview-toolbar { position: sticky; top: var(--header-h); z-index: 5; }
  .preview-toolbar > .btn { display: none; }
  .preview-stage { padding: 14px 8px 30px; overflow: visible; }
  .save-state { display: none; }
  .progress { max-width: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--grey-2); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .mobile-bar button { border: 1px solid var(--grey-2); background: #fff; border-radius: 8px; padding: 10px 6px; font-weight: 700; color: var(--muted); font-size: 14px; }
  .mobile-bar button.on { color: var(--navy); border-color: var(--navy); background: var(--blue-soft); }
  .mobile-bar .mb-dl { background: var(--navy); color: #fff; border-color: var(--navy); }
  .ai-box { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .att-add { grid-template-columns: 1fr; }
  .att-item { grid-template-columns: 52px 1fr; }
  .att-tools { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  body { font-size: 14.5px; }
  .grid2 { grid-template-columns: 1fr; }
  .lang-row, .lang-row:has(> :nth-child(4)) { grid-template-columns: 1fr auto; }
  .lang-row > .field:nth-child(n+2) { grid-column: 1 / 2; }
  .lang-row .icon-btn { grid-row: 1; grid-column: 2; }
  .photo-field { flex-direction: row; }
  .photo-thumb { width: 80px; height: 100px; }
  .app-header { gap: 10px; padding: 0 10px; }
  .progress-text { display: none; }
  .q { flex-direction: column; align-items: flex-start; gap: 6px; }
  .card { padding: 14px; }
  .card-body { padding: 12px; }
  .icon-btn { width: 30px; height: 30px; }
  .seg-tpl button { padding: 5px 8px; font-size: 12.5px; }
}
@media print {
  .site-header, .site-footer, #landing, #app, .modal-wrap, .toast { display: none !important; }
}
