/* Free CV wizard: light, friendly, black and white with a sparing dark-green accent. No gradients. */
[hidden] { display: none !important; }
.cvw-body { min-height: 100vh; background: var(--bg-2); }
/* Shared bits that live in sections.css on other pages (this page loads home.css + v4.css only). */
.qq-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill); background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: .8rem; }
.qq-st { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 600; font-size: .8rem; }
.qq-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; }
.qq-st--active::before { background: var(--ok); }

/* ---------- compact top bar: light, friendly ---------- */
.cvw-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cvw-top__in { display: flex; align-items: center; gap: 14px; max-width: 1320px; margin: 0 auto; min-height: 60px; padding: 0 20px; }
.cvw-saved { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvw-top__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- progress + step list ---------- */
.cvw-progress { display: flex; align-items: center; gap: 14px; max-width: 1320px; margin: 0 auto; padding: 16px 20px 0; font-weight: 600; font-size: .86rem; color: var(--text-2); }
.cvw-progress__bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.cvw-progress__bar i { display: block; height: 100%; width: 12.5%; border-radius: inherit; background: var(--accent); transition: width .6s cubic-bezier(.4, 0, .2, 1); }
.cvw-steps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; max-width: 1320px; margin: 0 auto; padding: 12px 20px 4px; }
.cvw-steps__it { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border-radius: 14px; border: 1px solid transparent; background: none; cursor: pointer; text-align: left; transition: background .2s, border-color .2s; }
.cvw-steps__it:hover:not(:disabled) { background: var(--surface); border-color: var(--line); }
.cvw-steps__it:disabled { cursor: default; }
.cvw-steps__n { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); transition: all .25s; }
.cvw-steps__n .qq-ic { width: 16px; height: 16px; }
.cvw-steps__t { display: grid; min-width: 0; font-weight: 700; font-size: .86rem; line-height: 1.25; }
.cvw-steps__t small { font-weight: 500; color: var(--text-2); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvw-steps__it.is-on { background: var(--surface); border-color: var(--line-2); box-shadow: var(--sh-1); }
.cvw-steps__it.is-on .cvw-steps__n { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.cvw-steps__it.is-done .cvw-steps__n { border-color: var(--accent-line); color: var(--accent); background: var(--surface); }
.cvw-steps__it.is-lock { opacity: .55; }
/* ---------- main layout: form left, live preview right ---------- */
.cvw-main { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 20px; align-items: start; max-width: 1320px; margin: 0 auto; padding: 12px 20px 64px; }
.cvw-formcol { display: grid; gap: 14px; min-width: 0; }
.cvw-stage { position: relative; overflow: clip; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); min-height: 560px; }
.cvw-step { position: absolute; inset: 0; display: grid; gap: 14px; align-content: start; padding: 36px 40px 40px; opacity: 0; visibility: hidden; transform: translateX(48px); transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1), visibility 0s .6s; overflow: auto; max-height: 100%; }
.cvw-step.is-on { position: relative; opacity: 1; visibility: visible; transform: none; transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1); overflow: visible; max-height: none; }
.cvw-step.is-in-right { transform: translateX(48px); opacity: 0; visibility: visible; transition: none; }
.cvw-step.is-in-left { transform: translateX(-48px); opacity: 0; visibility: visible; transition: none; }
.cvw-step.is-out-left { opacity: 0; visibility: visible; transform: translateX(-48px); transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1), visibility 0s .6s; }
.cvw-step.is-out-right { opacity: 0; visibility: visible; transform: translateX(48px); transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1), visibility 0s .6s; }
.cvw-kicker { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 32px; margin-bottom: 2px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line); font-weight: 600; font-size: .84rem; }
.cvw-kicker .qq-ic { width: 15px; height: 15px; color: var(--accent); }
.cvw-step h1, .cvw-modal__box h2, .cvw-gate__tx h2 { text-wrap: balance; }
.cvw-step h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: var(--display-track); line-height: var(--display-lh); font-size: clamp(2.2rem, 1.5rem + 1.8vw, 3.1rem); }
:root[data-font="oswald"] .cvw-step h1, :root[data-font="shoulders"] .cvw-step h1, :root[data-font="barlow"] .cvw-step h1 { font-weight: 700; }
.cvw-wzhead { display: flex; align-items: center; gap: 14px; }
.cvw-wzhead__ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 15px; background: var(--accent-soft); color: var(--accent); }
.cvw-wzhead__ic .qq-ic { width: 25px; height: 25px; }
.cvw-wzhead > div { display: grid; gap: 2px; min-width: 0; }
.cvw-wzhead small { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.cvw-step .cvw-wzhead h1 { font-family: var(--font); font-weight: 700; text-transform: none; letter-spacing: -.01em; line-height: 1.2; font-size: 1.4rem; margin: 0; }
.cvw-wzhead .cvw-lead { margin: 0; }
.cvw-lead { color: var(--text-2); font-size: 1rem; }
.cvw-sbody { display: grid; gap: 14px; margin-top: 6px; }
.cvw-nav { position: sticky; bottom: 12px; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.cvw-hint { flex: 1; min-width: 0; margin: 0; text-align: center; font-size: .84rem; font-weight: 500; color: var(--text-2); }
.cvw-hint.is-err { color: #c2321f; font-weight: 600; }
.cvw-prevbtn { display: none; }
/* ---------- fields, option cards, import, art ---------- */
.cvw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cvw-field { display: grid; gap: 6px; min-width: 0; }
.cvw-field > span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; font-size: .88rem; }
.cvw-field > span em { font-style: normal; font-weight: 500; color: var(--text-2); font-size: .8rem; }
.cvw-input { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 6px 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.cvw-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.cvw-input.is-bad { border-color: #c2321f; box-shadow: 0 0 0 3px rgba(194, 50, 31, .15); }
.cvw-input > .qq-ic { width: 18px; height: 18px; color: var(--text-2); flex: none; }
.cvw-input input, .cvw-input textarea { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; font: inherit; color: var(--text); }
.cvw-input--area { align-items: stretch; padding: 12px 14px; }
.cvw-input--area textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.cvw-err { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: #c2321f; }
.cvw-err .qq-ic { width: 14px; height: 14px; }
.cvw-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .84rem; color: var(--text-2); }
.cvw-note .qq-ic { width: 16px; height: 16px; color: var(--accent); flex: none; }
.cvw-opts { display: grid; gap: 10px; }
.cvw-opts--2 { grid-template-columns: 1fr 1fr; }
.cvw-opt { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s, background .2s; }
.cvw-opt:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cvw-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cvw-opt__ic { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 13px; background: var(--surface-2); }
.cvw-opt__ic .qq-ic { width: 24px; height: 24px; }
.cvw-opt b { font-size: .98rem; }
.cvw-opt small { color: var(--text-2); font-size: .84rem; }
.cvw-opt__ck { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); color: transparent; transition: all .2s; }
.cvw-opt__ck .qq-ic { width: 13px; height: 13px; }
.cvw-opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--bg-2); }
.cvw-opt:has(input:checked) .cvw-opt__ic { background: var(--accent-soft); color: var(--accent); }
.cvw-opt:has(input:checked) .cvw-opt__ck { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.cvw-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cvw-or { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: .84rem; font-weight: 500; }
.cvw-or::before, .cvw-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cvw-import { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 18px; border: 1.5px dashed var(--line-2); background: var(--bg-2); cursor: pointer; text-align: left; transition: border-color .2s, transform .2s; }
.cvw-import:hover { border-color: var(--ink); transform: translateY(-1px); }
.cvw-import > .qq-ic:first-child { width: 26px; height: 26px; color: var(--accent); flex: none; }
.cvw-import > span { flex: 1; display: grid; gap: 2px; }
.cvw-import small { color: var(--text-2); font-size: .84rem; }
.cvw-import > .qq-ic:last-child { width: 16px; height: 16px; flex: none; }
.cvw-art { margin: 4px 0 0; display: grid; gap: 8px; }
.cvw-art .qq-img { border-radius: 18px; }
.cvw-art figcaption { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--text-2); font-size: .84rem; font-weight: 500; }
.cvw-art figcaption .qq-ic { width: 16px; height: 16px; color: var(--accent); }
/* ---------- photo, dynamic lists, bullets, month picker ---------- */
.cvw-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.cvw-avatar { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 800; font-size: 1.1rem; overflow: hidden; }
.cvw-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cvw-photo__tx { flex: 1; display: grid; gap: 2px; min-width: 0; }
.cvw-photo__tx em { font-style: normal; font-weight: 500; color: var(--text-2); }
.cvw-photo__tx small { color: var(--text-2); font-size: .82rem; }
.cvw-list { display: grid; gap: 12px; }
.cvw-item { display: grid; gap: 12px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.cvw-item__head { display: flex; align-items: center; gap: 10px; }
.cvw-item__head .cvw-grip { color: var(--text-2); display: inline-flex; }
.cvw-item__head .cvw-grip .qq-ic { width: 18px; height: 18px; }
.cvw-item__head b { flex: 1; min-width: 0; font-size: .95rem; overflow-wrap: anywhere; }
.cvw-iconbtn { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 10px; background: none; cursor: pointer; color: var(--text-2); }
.cvw-iconbtn:hover { background: var(--surface-3); color: var(--text); }
.cvw-iconbtn .qq-ic { width: 16px; height: 16px; }
.cvw-iconbtn:disabled { opacity: .35; cursor: default; }
.cvw-iconbtn.is-danger:hover { background: rgba(194, 50, 31, .12); color: #c2321f; }
.cvw-month { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-weight: 500; cursor: pointer; }
.cvw-month:hover { border-color: var(--ink); }
.cvw-month.is-empty { color: var(--text-2); }
.cvw-month:disabled { opacity: .5; cursor: default; }
.cvw-month .qq-ic { width: 16px; height: 16px; flex: none; }
.cvw-check { display: flex; gap: 10px; align-items: center; font-size: .9rem; font-weight: 500; cursor: pointer; }
.cvw-check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.cvw-bullets { display: grid; gap: 6px; }
.cvw-bullet { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.cvw-bullet .cvw-grip { color: var(--text-2); display: inline-flex; }
.cvw-bullet .cvw-grip .qq-ic { width: 16px; height: 16px; }
.cvw-bullet input { min-width: 0; width: 100%; border: 0; outline: 0; background: none; font: inherit; color: var(--text); min-height: 40px; }
.cvw-bullet__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cvw-empty { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 26px 18px; border-radius: 18px; border: 1.5px dashed var(--line-2); }
.cvw-empty__img { width: min(200px, 60%); }
.cvw-empty__img .qq-img { border-radius: 16px; }
.cvw-empty p { margin: 0; color: var(--text-2); font-size: .9rem; max-width: 40ch; }
.cvw-empty--flat { padding: 18px; }
/* ---------- chips, languages, mini rows, toggle, tip ---------- */
.cvw-chipbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 56px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); cursor: text; }
.cvw-chipbox:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.cvw-chipbox__chips { display: contents; }
.cvw-chipbox input { flex: 1; min-width: 140px; border: 0; outline: 0; background: none; font: inherit; color: var(--text); min-height: 38px; }
.cvw-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 6px 0 12px; border-radius: var(--pill); background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: .86rem; }
.cvw-chip button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; opacity: .75; }
.cvw-chip button:hover { opacity: 1; }
.cvw-chip button .qq-ic { width: 13px; height: 13px; }
.cvw-sug { display: flex; flex-wrap: wrap; gap: 8px; }
.cvw-sug button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .84rem; cursor: pointer; }
.cvw-sug button:hover { border-color: var(--ink); }
.cvw-sug button .qq-ic { width: 14px; height: 14px; }
.cvw-langs { display: grid; gap: 8px; }
.cvw-lang { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.cvw-lang b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvw-dots { display: flex; gap: 6px; }
.cvw-dots button { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; padding: 0; }
.cvw-dots button.is-on { background: var(--accent); border-color: var(--accent); }
.cvw-dots button:hover { border-color: var(--accent); }
.cvw-addrow { display: flex; flex-wrap: wrap; gap: 8px; }
.cvw-addrow .cvw-input { flex: 1 1 160px; }
.cvw-addrow .qq-btn { flex: none; }
.cvw-minilist { display: grid; gap: 8px; }
.cvw-minilist:empty { display: none; }
.cvw-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.cvw-row__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); }
.cvw-row__ic .qq-ic { width: 17px; height: 17px; }
.cvw-row div { display: grid; min-width: 0; }
.cvw-row small { color: var(--text-2); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvw-tg { display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.cvw-tg__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); }
.cvw-tg__ic .qq-ic { width: 20px; height: 20px; }
.cvw-tg__tx { display: grid; min-width: 0; }
.cvw-tg__tx small { color: var(--text-2); font-size: .82rem; }
.cvw-tg input { position: absolute; opacity: 0; pointer-events: none; }
.cvw-tg__sw { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--surface-3); transition: background .25s; }
.cvw-tg__sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .25s; }
.cvw-tg:has(input:checked) .cvw-tg__sw { background: var(--accent); }
.cvw-tg:has(input:checked) .cvw-tg__sw::after { transform: translateX(18px); }
.cvw-tg:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cvw-tip { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.cvw-tip__img .qq-img { border-radius: 12px; }
.cvw-tip b { display: block; margin-bottom: 2px; }
.cvw-tip p { margin: 0; color: var(--text-2); font-size: .88rem; }
/* ---------- design step: templates, swatches, fonts, columns ---------- */
.cvw-tpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cvw-tpl { display: grid; gap: 4px; justify-items: center; padding: 12px 10px 14px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; text-align: center; }
.cvw-tpl:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cvw-tpl.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cvw-tpl small { color: var(--text-2); font-size: .76rem; }
.cvw-mini { display: block; width: 100%; aspect-ratio: 210 / 260; padding: 10px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); overflow: hidden; }
.cvw-mini i { display: block; height: 14px; border-radius: 4px; background: #161616; }
.cvw-mini u { display: block; height: 5px; margin-top: 6px; border-radius: 3px; background: #d6d6d6; text-decoration: none; }
.cvw-mini--classic { text-align: center; }
.cvw-mini--classic i { width: 40%; margin: 0 auto; border-radius: 7px; }
.cvw-mini--classic u { margin-left: auto; margin-right: auto; }
.cvw-mini--classic s { display: block; height: 1.5px; margin: 7px 4px 1px; background: #161616; text-decoration: none; }
.cvw-mini--modern { display: grid; grid-template-columns: 34% minmax(0, 1fr); gap: 6px; padding: 0; }
.cvw-mini--modern > b { display: block; padding: 10px 6px; background: #161616; }
.cvw-mini--modern > b i { height: 12px; border-radius: 6px; background: #fff; }
.cvw-mini--modern > b u { background: #6b6b6b; }
.cvw-mini--modern > span { display: block; padding: 10px 6px 10px 0; }
.cvw-mini--compact { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; align-content: start; }
.cvw-mini--compact i { grid-column: 1 / -1; height: 10px; }
.cvw-mini--compact u { height: 4px; margin-top: 5px; }
.cvw-sw { display: flex; gap: 12px; }
.cvw-sw__b { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sw); cursor: pointer; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-2); transition: box-shadow .2s, transform .2s; }
.cvw-sw__b:hover { transform: scale(1.08); }
.cvw-sw__b.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.cvw-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cvw-font { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; }
.cvw-font:hover { border-color: var(--line-2); }
.cvw-font.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cvw-font > b { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--surface-2); font-size: 1.2rem; }
.cvw-font > b.is-serif { font-family: Georgia, serif; }
.cvw-font > span { display: grid; }
.cvw-font small { color: var(--text-2); font-size: .8rem; }
.cvw-seg { display: flex; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); gap: 4px; max-width: 420px; }
.cvw-seg button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: none; font-weight: 600; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.cvw-seg button.is-on { background: var(--ink); color: var(--on-ink); }
/* ---------- finish: checklist, gate, after ---------- */
.cvw-checkcard { background: var(--bg-2); }
.cvw-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cvw-checks li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .92rem; }
.cvw-checks .qq-ic { width: 20px; height: 20px; flex: none; }
.cvw-checks li.is-ok .qq-ic { color: var(--accent); }
.cvw-checks li.is-warn .qq-ic { color: #d97706; }
.cvw-gate { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 20px; background: var(--bg-2); }
.cvw-gate__img .qq-img { height: 100%; min-height: 220px; border-radius: 14px; }
.cvw-gate__tx { display: grid; gap: 10px; align-content: start; }
.cvw-gate__tx h2 { font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.2; }
.cvw-gate__tx > p { margin: 0; color: var(--text-2); font-size: .94rem; }
.cvw-gate__btns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.cvw-sbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: .94rem; cursor: pointer; transition: background .15s, transform .15s; }
.cvw-sbtn:hover { background: var(--surface-2); transform: translateY(-1px); }
.cvw-sbtn .qq-ic { width: 19px; height: 19px; flex: none; }
.cvw-link { justify-self: start; display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 4px 0; font: 600 .9rem var(--font); color: var(--accent); cursor: pointer; }
.cvw-after { display: grid; gap: 14px; background: var(--bg-2); }
.cvw-after__ok { display: flex; gap: 12px; align-items: center; }
.cvw-after__ok > .qq-ic { width: 34px; height: 34px; flex: none; color: var(--accent); }
.cvw-after__ok small { display: block; color: var(--text-2); font-size: .86rem; }
.cvw-after__btns { display: flex; flex-wrap: wrap; gap: 10px; }
/* ---------- live A4 preview (the document stays light in both themes) ---------- */
.cvw-side { position: sticky; top: 76px; display: grid; gap: 10px; }
.cvw-side__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; }
.cvw-side__head > span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .84rem; font-weight: 600; }
.cvw-side__head em { font-style: normal; }
.cvw-pagewrap { border-radius: 10px; }
.cvw-side .cvw-pagewrap { max-height: calc(100vh - 210px); min-height: 320px; overflow: auto; overscroll-behavior: contain; }
.cvw-page { aspect-ratio: 210 / 297; background: #fff; color: #1a1a1a; border-radius: 8px; border: 1px solid var(--line-2); box-shadow: var(--sh-3); overflow: hidden; font-size: 12px; line-height: 1.5; }
.cvw-side__note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 2px; color: var(--text-2); font-size: .82rem; }
.cvw-side__note .qq-ic { width: 15px; height: 15px; flex: none; }
.cvp { --cv-accent: #166534; height: 100%; padding: 24px 26px; overflow: hidden; font-family: "Inter", system-ui, sans-serif; }
.cvp--fserif .cvp-name, .cvp--fserif .cvp-sec > h6, .cvp--fserif .cvp-ssec > h6 { font-family: Georgia, "Times New Roman", serif; }
.cvp-head { display: flex; gap: 12px; align-items: center; }
.cvp-av { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: #161616; color: #fff; font-weight: 800; font-size: 1rem; overflow: hidden; }
.cvp-av img { width: 100%; height: 100%; object-fit: cover; }
.cvp-name { display: block; font-size: 21px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.cvp-role { display: block; font-size: 12.5px; font-weight: 600; color: var(--cv-accent); }
.cvp-contact { display: block; font-size: 10.5px; color: #5b5b5b; margin-top: 2px; overflow-wrap: anywhere; }
.cvp-qr { margin-left: auto; flex: none; width: 58px; padding: 4px; border: 1px solid #e4e4e4; border-radius: 8px; background: #fff; color: #111; text-align: center; }
.cvp-qr small { display: block; font-size: 7px; color: #777; line-height: 1.2; margin-top: 2px; }
.cvp-cols { display: block; margin-top: 14px; }
.cvp--cols2 .cvp-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
.cvp-sec { margin-top: 13px; }
.cvp-sec > h6, .cvp-ssec > h6 { margin: 0 0 6px; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--cv-accent); }
.cvp-sec > p { margin: 0; font-size: 11.5px; color: #333; }
.cvp-job { margin-top: 8px; }
.cvp-job__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cvp-job__top b { font-size: 12.5px; }
.cvp-job__top em { font-style: normal; font-size: 10px; color: #777; white-space: nowrap; }
.cvp-job__sub { display: block; font-size: 11px; color: #5b5b5b; font-weight: 600; }
.cvp-job ul { margin: 4px 0 0; padding-left: 16px; display: grid; gap: 2px; font-size: 11.5px; color: #333; }
.cvp-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cvp-tags span { padding: 2px 8px; border-radius: 999px; border: 1px solid #d9d9d9; font-size: 10.5px; font-weight: 600; }
.cvp-lang { display: flex; align-items: center; gap: 8px; font-size: 11.5px; padding: 2px 0; }
.cvp-lang b { font-weight: 600; }
.cvp-lang i { display: inline-flex; gap: 3px; margin-left: auto; }
.cvp-lang i s { width: 7px; height: 7px; border-radius: 50%; background: #ddd; text-decoration: none; }
.cvp-lang i s.on { background: var(--cv-accent); }
.cvp-cv { display: grid; gap: 5px; font-size: 11.5px; }
.cvp-cv small { color: #777; }
.cvp-ph { color: #b5b5b5; font-size: 11px; }
/* preview template variants */
.cvp--classic .cvp-head { flex-direction: column; text-align: center; gap: 8px; }
.cvp--classic .cvp-qr { margin: 6px auto 0; }
.cvp--classic .cvp-sec > h6 { display: flex; align-items: center; gap: 10px; justify-content: center; color: #1a1a1a; }
.cvp--classic .cvp-sec > h6::before, .cvp--classic .cvp-sec > h6::after { content: ""; flex: 1; height: 1px; background: #d9d9d9; }
.cvp--modern { display: grid; grid-template-columns: 35% minmax(0, 1fr); padding: 0; }
.cvp-bar { background: #161616; color: #f2f2f2; padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.cvp-bar .cvp-av { background: #fff; color: #161616; width: 64px; height: 64px; font-size: 1.2rem; }
.cvp-bar .cvp-contact { color: #c9c9c9; }
.cvp-bar .cvp-ssec > h6 { color: #fff; border-bottom: 1px solid #3d3d3d; padding-bottom: 5px; }
.cvp-bar .cvp-tags span { border-color: #4a4a4a; }
.cvp-bar .cvp-lang i s { background: #4a4a4a; }
.cvp-bar .cvp-lang i s.on { background: #fff; }
.cvp-bar .cvp-qr { margin: auto 0 0; border-color: #3d3d3d; }
.cvp-body { padding: 22px 20px; overflow: hidden; }
.cvp-body .cvp-name { font-size: 23px; }
.cvp--compact { padding: 18px 20px; }
.cvp--compact .cvp-av { width: 40px; height: 40px; font-size: .82rem; }
.cvp--compact .cvp-name { font-size: 17px; }
.cvp--compact .cvp-role { font-size: 11.5px; }
.cvp--compact .cvp-contact { font-size: 9.5px; }
.cvp--compact .cvp-qr { width: 46px; }
.cvp--compact .cvp-sec { margin-top: 9px; }
.cvp--compact .cvp-sec > h6 { margin-bottom: 4px; }
.cvp--compact .cvp-sec > p, .cvp--compact .cvp-job ul { font-size: 10.5px; }
.cvp--compact .cvp-job__top b { font-size: 11.5px; }
/* ---------- sheet, modals, month popover, toast ---------- */
.cvw-sheet { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; justify-items: center; background: rgba(10, 10, 10, .5); padding: 12px; }
.cvw-sheet__box { width: min(560px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 24px 24px 18px 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); padding: 14px 14px 20px; animation: cvw-up .35s cubic-bezier(.2, .7, .2, 1); }
.cvw-sheet__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cvw-sheet__head b { font-size: 1.05rem; }
.cvw-sheet__head .qq-btn { margin-left: auto; }
@keyframes cvw-up { from { opacity: 0; transform: translateY(48px); } }
.cvw-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(10, 10, 10, .5); padding: 16px; overflow: auto; }
.cvw-modal__box { position: relative; width: min(520px, 100%); display: grid; gap: 10px; padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: cvw-pop .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes cvw-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.cvw-modal__x { position: absolute; right: 12px; top: 12px; }
.cvw-modal__box h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.cvw-modal__box > p { margin: 0; color: var(--text-2); font-size: .94rem; }
.cvw-modal__img .qq-img { border-radius: 16px; max-height: 200px; }
.cvw-drop { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 18px; border: 1.5px dashed var(--line-2); background: var(--bg-2); cursor: pointer; text-align: left; }
.cvw-drop:hover { border-color: var(--ink); }
.cvw-drop > .qq-ic { width: 30px; height: 30px; flex: none; color: var(--accent); }
.cvw-drop > span { display: grid; gap: 2px; }
.cvw-drop small { color: var(--text-2); font-size: .82rem; }
.cvw-share { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.cvw-share__qr { padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: #0a0a0a; }
.cvw-share small { color: var(--text-2); font-size: .8rem; font-weight: 500; }
.cvw-share b { display: block; overflow-wrap: anywhere; margin: 2px 0 10px; }
.cvw-mpop { position: fixed; z-index: 70; width: 264px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-3); }
.cvw-mpop__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cvw-mpop__head b { font-size: 1rem; }
.cvw-mpop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.cvw-mpop__grid button { min-height: 40px; border: 0; border-radius: 10px; background: none; font-weight: 600; font-size: .86rem; cursor: pointer; }
.cvw-mpop__grid button:hover { background: var(--surface-2); }
.cvw-mpop__grid button.is-on { background: var(--ink); color: var(--on-ink); }
.cvw-toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 90; display: flex; align-items: center; gap: 10px; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: var(--pill); background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: .9rem; box-shadow: var(--sh-3); animation: cvw-pop .3s cubic-bezier(.2, .7, .2, 1); }
.cvw-toast .qq-ic { width: 18px; height: 18px; flex: none; }
/* ---------- responsive: 1440 / 1024 / 390 without horizontal scroll ---------- */
@media (max-width: 1180px) {
  .cvw-main { grid-template-columns: minmax(0, 1fr) 340px; }
  .cvw-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cvw-step { padding: 28px 26px 32px; }
}
@media (max-width: 900px) {
  .cvw-main { grid-template-columns: minmax(0, 1fr); }
  .cvw-side { display: none; }
  .cvw-prevbtn { display: inline-flex; }
  .cvw-gate { grid-template-columns: minmax(0, 1fr); }
  .cvw-gate__img .qq-img { min-height: 0; }
  .cvw-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cvw-top__in { padding: 0 12px; gap: 8px; }
  .cvw-saved { max-width: 10px; overflow: hidden; white-space: nowrap; }
  .cvw-progress, .cvw-main { padding-left: 12px; padding-right: 12px; }
  .cvw-steps { display: flex; gap: 2px; overflow-x: auto; padding: 12px 12px 4px; scrollbar-width: none; }
  .cvw-steps::-webkit-scrollbar { display: none; }
  .cvw-steps__it { flex: none; gap: 6px; padding: 6px 8px; }
  .cvw-steps__t { font-size: .66rem; }
  .cvw-steps__t small { display: none; }
  .cvw-steps__n { width: 30px; height: 30px; }
  .cvw-steps__n .qq-ic { width: 14px; height: 14px; }
  .cvw-step { padding: 22px 16px 26px; }
  .cvw-grid, .cvw-opts--2, .cvw-fonts, .cvw-gate__btns { grid-template-columns: minmax(0, 1fr); }
  .cvw-nav { gap: 8px; padding: 8px; }
  .cvw-nav .qq-btn--lg { min-height: 50px; padding: 0 8px; font-size: .9rem; flex: 1 1 0; min-width: 0; }
  .cvw-nav .qq-btn--lg .qq-ic { width: 16px; height: 16px; }
  .cvw-hint { display: none; }
  .cvw-bullet { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .cvw-bullet .cvw-grip { display: none; }
  .cvw-bullet .cvw-iconbtn { width: 30px; height: 30px; }
  .cvw-tip { grid-template-columns: minmax(0, 1fr); }
  .cvw-tip__img { max-width: 220px; }
  .cvw-share { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .cvw-share__qr { width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .cvw-step, .cvw-progress__bar i, .cvw-sheet__box, .cvw-modal__box, .cvw-toast { transition: none !important; animation: none !important; }
}

/* ---------- S20: presets, switches, sections, checks, ATS ---------- */
.cvw-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cvw-preset { position: relative; display: grid; gap: 2px; align-content: start; padding: 12px 12px 12px 48px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.cvw-preset:hover { border-color: var(--line-2); }
.cvw-preset input { position: absolute; opacity: 0; pointer-events: none; }
.cvw-preset__ic { position: absolute; left: 10px; top: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--surface-2); }
.cvw-preset__ic .qq-ic { width: 17px; height: 17px; }
.cvw-preset b { font-size: .88rem; }
.cvw-preset small { color: var(--text-2); font-size: .78rem; }
.cvw-preset__ck { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); color: transparent; }
.cvw-preset__ck .qq-ic { width: 12px; height: 12px; }
.cvw-preset:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--bg-2); }
.cvw-preset:has(input:checked) .cvw-preset__ic { background: var(--accent-soft); color: var(--accent); }
.cvw-preset:has(input:checked) .cvw-preset__ck { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.cvw-preset:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cvw-guide { display: grid; gap: 6px; padding: 14px 16px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.cvw-guide b { font-size: .94rem; }
.cvw-guide ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--text-2); font-size: .86rem; }
.cvw-guide p { margin: 0; font-size: .86rem; font-weight: 600; }
.cvw-guide em { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.cvw-switches { display: grid; gap: 6px; }
.cvw-swrow { display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.cvw-swrow__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--surface-2); }
.cvw-swrow__ic .qq-ic { width: 17px; height: 17px; }
.cvw-swrow__tx { display: grid; min-width: 0; }
.cvw-swrow__tx b { font-size: .9rem; }
.cvw-swrow__tx small { color: var(--text-2); font-size: .8rem; line-height: 1.35; }
.cvw-swrow input { position: absolute; opacity: 0; pointer-events: none; }
.cvw-swrow__sw { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--surface-3); transition: background .25s; }
.cvw-swrow__sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .25s; }
.cvw-swrow:has(input:checked) { border-color: var(--ink); }
.cvw-swrow:has(input:checked) .cvw-swrow__sw { background: var(--accent); }
.cvw-swrow:has(input:checked) .cvw-swrow__sw::after { transform: translateX(18px); }
.cvw-swrow:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cvw-moref { border: 1px solid var(--line); border-radius: 14px; }
.cvw-moref > summary { display: flex; align-items: center; gap: 6px; padding: 12px 14px; font-size: .88rem; font-weight: 600; color: var(--text-2); cursor: pointer; list-style: none; }
.cvw-moref > summary::-webkit-details-marker { display: none; }
.cvw-moref > summary .qq-ic { width: 14px; height: 14px; }
.cvw-moref .cvw-swrow { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.cvw-moref[open] > summary .qq-ic { transform: rotate(180deg); }
[data-prow][hidden] { display: none; }
[data-prows] { display: grid; gap: 12px; }
.cvw-order { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cvw-order li { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 6px 6px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.cvw-order li:hover { border-color: var(--line-2); }
.cvw-order__grip { display: inline-flex; color: var(--text-2); cursor: grab; }
.cvw-order__grip .qq-ic { width: 17px; height: 17px; }
.cvw-order b { flex: 1; min-width: 0; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvw-order em { font-style: normal; font-size: .76rem; font-weight: 600; color: var(--text-2); }
.cvw-order .cvw-iconbtn, .cvw-order .qq-btn { flex: none; }
.cvw-checks li { align-items: flex-start; }
.cvw-checks li > .qq-ic { margin-top: 2px; }
.cvw-checks li > div { flex: 1; min-width: 0; display: grid; }
.cvw-checks li > div b { font-size: .9rem; font-weight: 600; }
.cvw-finding__act { display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
.cvw-finding__act .is-danger { border-color: rgba(194, 50, 31, .4); color: #c2321f; }
.cvw-checkcard .qq-card__head { display: flex; align-items: center; gap: 10px; }
.cvw-checkcard .qq-card__head .qq-btn { margin-left: auto; }
.cvw-atsbox { width: min(560px, 100%); }
.cvw-ats { max-height: 44vh; overflow-y: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.cvw-atsdoc { padding: 22px 24px; color: #111; font: 400 .9rem/1.55 Arial, sans-serif; }
.cvw-atsdoc h3 { margin: 0; font-size: 1.3rem; }
.cvw-atsdoc h4 { margin: 14px 0 4px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid #ddd; padding-bottom: 3px; }
.cvw-atsdoc p { margin: 2px 0; }
.cvw-atsdoc ul { margin: 4px 0; padding-left: 20px; }
@media (max-width: 640px) {
  .cvw-presets { grid-template-columns: minmax(0, 1fr); }
  .cvw-checks li { flex-wrap: wrap; }
  .cvw-wzhead__ic { width: 42px; height: 42px; }
  .cvw-step .cvw-wzhead h1 { font-size: 1.2rem; }
}
