/* ==========================================================
   CV State – application UI
   ========================================================== */
:root {
  --brand: #0e9f8e; --brand-d: #0a7d70; --brand-l: #e3f6f3; --brand-ll: #f1fbf9;
  --coral: #ff7a59; --coral-l: #fff0eb;
  --ink: #12232b; --ink2: #3b4d57; --muted: #6b7c86; --line: #dfe6ea; --line2: #edf1f3;
  --bg: #f4f7f8; --card: #fff; --danger: #d6336c; --ok: #2f9e44; --warn: #f08c00;
  --r: 12px; --shadow: 0 1px 2px rgba(18,35,43,.06), 0 6px 20px rgba(18,35,43,.06);
  --shadow-l: 0 10px 40px rgba(18,35,43,.16);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
img { max-width: 100%; }
button { font-family: inherit; }
.hide { display: none !important; }
.muted { color: var(--muted); }
.sm { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s; white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: #c4d0d6; background: #fafcfc; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn-coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-coral:hover { background: #f0603c; border-color: #f0603c; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: #fff0f5; border-color: #f4b6cb; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: rgba(18,35,43,.06); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-sm.btn-icon { width: 30px; height: 30px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg, .ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span, .lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink2); margin-bottom: 5px; }
.inp, select.inp, textarea.inp { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; transition: .15s; }
textarea.inp { height: auto; padding: 10px 12px; resize: vertical; min-height: 80px; }
.inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,159,142,.16); }
.inp::placeholder { color: #9aa9b1; }
.inp.sm { height: 34px; font-size: 13px; }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b7c86' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(12, 1fr); }
.grid > * { grid-column: span 12; min-width: 0; }
.grid .w6 { grid-column: span 6; } .grid .w3 { grid-column: span 3; } .grid .w4 { grid-column: span 4; } .grid .w8 { grid-column: span 8; }
.grid .field { margin-bottom: 0; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; color: var(--ink2); user-select: none; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }
.switch { position: relative; display: inline-block; width: 40px; height: 23px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #ccd6dc; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch i::before { content: ''; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::before { transform: translateX(17px); }
.err { background: #fff0f5; color: #a61e4d; border: 1px solid #f4b6cb; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; }
.okmsg { background: var(--brand-ll); color: var(--brand-d); border: 1px solid #b6e5de; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; }
input[type=range] { width: 100%; accent-color: var(--brand); }
input[type=color] { width: 40px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }

/* ---------- cards / badges ---------- */
.card { background: var(--card); border: 1px solid var(--line2); border-radius: var(--r); box-shadow: var(--shadow); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--line2); color: var(--ink2); }
.badge.ok { background: var(--brand-l); color: var(--brand-d); }
.badge.coral { background: var(--coral-l); color: #c2410c; }

/* ---------- top nav (app pages) ---------- */
.nav { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 24px; gap: 28px; position: sticky; top: 0; z-index: 40; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; color: var(--ink); text-decoration: none !important; }
.logo i { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), #14c4ae); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 16px; box-shadow: 0 4px 10px rgba(14,159,142,.35); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 9px; color: var(--ink2); font-weight: 600; font-size: 14px; text-decoration: none !important; }
.nav-links a:hover { background: var(--bg); }
.nav-links a.on { background: var(--brand-l); color: var(--brand-d); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; cursor: pointer; border: 0; font-size: 14px; }

/* ---------- dropdown menu ---------- */
.menu-wrap { position: relative; display: inline-block; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-l); padding: 6px; z-index: 80; display: none; }
.menu.open { display: block; }
.menu.left { right: auto; left: 0; }
.menu.up { top: auto; bottom: calc(100% + 6px); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 11px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; text-decoration: none !important; }
.menu a:hover, .menu button:hover { background: var(--bg); }
.menu .danger { color: var(--danger); }
.menu hr { border: 0; border-top: 1px solid var(--line2); margin: 5px 0; }
.menu .mh { font-size: 12px; color: var(--muted); padding: 6px 11px; }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(12,26,33,.52); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow: auto; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; box-shadow: var(--shadow-l); animation: rise .18s; }
.modal.wide { max-width: 860px; }
.modal.mid { max-width: 640px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-h h3 { font-size: 19px; }
.modal-b { padding: 18px 22px; }
.modal-f { padding: 0 22px 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.x { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; width: 32px; height: 32px; border-radius: 8px; }
.x:hover { background: var(--bg); }

/* ---------- toast ---------- */
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-l); animation: rise .2s; max-width: 90vw; }
.toast.bad { background: var(--danger); }
.toast.good { background: #1b7f45; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: none; padding: 11px 16px; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--brand-d); border-bottom-color: var(--brand); }

/* ---------- dashboard ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 32px 24px 80px; }
.page-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h h1 { font-size: 28px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { padding: 16px 18px; }
.stat b { display: block; font-size: 28px; letter-spacing: -.03em; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.doc { background: #fff; border: 1px solid var(--line2); border-radius: 14px; overflow: visible; position: relative; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column; }
.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.doc:has(.menu.open) { z-index: 30; }
.doc-th { border-radius: 13px 13px 0 0; background: #e8eef0; padding: 16px 16px 0; display: flex; justify-content: center; height: 270px; overflow: hidden; cursor: pointer; position: relative; }
.doc-th .cv-thumb { box-shadow: 0 4px 16px rgba(18,35,43,.18); flex: none; }
.doc-b { padding: 13px 14px 14px; }
.doc-t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-m { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.doc-new { border: 2px dashed #b9c8cf; background: transparent; box-shadow: none; display: grid; place-items: center; min-height: 340px; cursor: pointer; color: var(--ink2); text-align: center; padding: 20px; }
.doc-new:hover { border-color: var(--brand); background: var(--brand-ll); color: var(--brand-d); transform: none; }
.doc-new .plus { width: 54px; height: 54px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; font-size: 28px; margin: 0 auto 10px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: linear-gradient(150deg, #0a7d70 0%, #0e9f8e 55%, #2dd4bf 130%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.08); right: -180px; bottom: -160px; }
.auth-side h2 { font-size: 36px; line-height: 1.12; max-width: 440px; }
.auth-side p { opacity: .9; max-width: 420px; font-size: 16px; }
.auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.auth-side li::before { content: '✓'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.22); margin-right: 10px; font-size: 12px; font-weight: 800; }
.auth-main { display: grid; place-items: center; padding: 32px; background: #fff; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 30px; margin-bottom: 6px; }
.auth-box .sub { color: var(--muted); margin-bottom: 24px; }
.auth .logo { color: #fff; }
.auth .logo i { background: rgba(255,255,255,.2); box-shadow: none; }

/* ---------- landing ---------- */
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line2); }
.lp-nav .in { max-width: 1180px; margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 28px; padding: 0 24px; }
.lp-nav nav { display: flex; gap: 6px; }
.lp-nav nav a { padding: 8px 12px; color: var(--ink2); font-weight: 600; font-size: 14px; border-radius: 8px; text-decoration: none !important; }
.lp-nav nav a:hover { background: var(--bg); }
.lp-nav nav a.on { background: var(--brand-l); color: var(--brand-d); }
.hero { background: radial-gradient(1200px 500px at 85% -10%, #d3f4ee 0%, transparent 60%), radial-gradient(800px 400px at -10% 20%, #ffe8e0 0%, transparent 55%), #fff; overflow: hidden; }
.hero .in { max-width: 1180px; margin: 0 auto; padding: 72px 24px 80px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); letter-spacing: -.04em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .2em; background: var(--coral); opacity: .35; border-radius: 4px; z-index: -1; }
.hero p.lead { font-size: 19px; color: var(--ink2); margin: 20px 0 28px; max-width: 520px; }
.hero-vis { position: relative; height: 560px; }
.hero-vis .sheet { position: absolute; box-shadow: 0 20px 60px rgba(18,35,43,.22); border-radius: 4px; overflow: hidden; background: #fff; }
.pill { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: 13px; color: var(--brand-d); margin-bottom: 20px; box-shadow: var(--shadow); }
.lp-sec { padding: 84px 24px; }
.lp-sec .in { max-width: 1180px; margin: 0 auto; }
.lp-sec .in > h2, .lp-sec .in > h1 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.035em; text-align: center; }
.lp-sec .sub { text-align: center; color: var(--muted); font-size: 17px; max-width: 620px; margin: 12px auto 44px; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feat { padding: 26px; border-radius: 16px; background: #fff; border: 1px solid var(--line2); box-shadow: var(--shadow); }
.feat .fi { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-l); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.feat:nth-child(3n+2) .fi { background: var(--coral-l); }
.feat h3 { font-size: 17px; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; justify-items: stretch; }
@media (max-width: 900px) { .tpls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; } }
@media (max-width: 620px) { .tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
.tpls .tpl-card .cv-thumb { margin-left: auto; margin-right: auto; }
.tpl-card { text-align: center; font-weight: 700; }
.tpl-card .cv-thumb { box-shadow: 0 10px 30px rgba(18,35,43,.16); border-radius: 3px; margin-bottom: 10px; transition: .2s; }
.tpl-card { position: relative; cursor: pointer; display: block; }
.tpl-card .cv-thumb { border: 1px solid var(--line); }
.tpl-card .cv-thumb-in { pointer-events: none; }              /* links inside the preview must not steal the click */
.tpl-card .cv-thumb::after { content: 'Use this template'; position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); background: var(--brand); color: #fff; font: 700 13px/1 'Plus Jakarta Sans', system-ui, sans-serif; padding: 10px 16px; border-radius: 99px; white-space: nowrap; opacity: 0; transition: .2s; box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none; }
.tpl-card .cv-thumb::before { content: ''; position: absolute; inset: 0; background: rgba(14,40,38,.0); transition: .2s; z-index: 1; pointer-events: none; }
.tpl-card:hover .cv-thumb::before { background: rgba(14,40,38,.10); }
.tpl-card:hover .cv-thumb::after, .tpl-card:focus-visible .cv-thumb::after { opacity: 1; transform: translate(-50%, 0); z-index: 2; }
.tpl-card:hover .cv-thumb { transform: translateY(-5px); border-color: var(--brand); }
.tpl-card .tn { display: block; margin-top: 2px; color: var(--ink2); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; counter-reset: s; }
.step { text-align: center; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 20px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }
.cta { background: var(--ink); color: #fff; border-radius: 28px; padding: 60px 30px; text-align: center; max-width: 1132px; margin: 0 auto; background-image: radial-gradient(600px 260px at 90% 0, rgba(14,159,142,.55), transparent 70%), radial-gradient(500px 240px at 0 100%, rgba(255,122,89,.35), transparent 70%); }
.cta h2 { color: #fff; }
.cta p { opacity: .85; margin: 12px 0 26px; }
.faq details { background: #fff; border: 1px solid var(--line2); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* ---------- builder (editor) ---------- */
.bld { height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.bar { height: 58px; flex: none; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 14px; gap: 8px; z-index: 30; }
.title-inp { border: 1px solid transparent; background: transparent; font: inherit; font-weight: 700; font-size: 16px; padding: 6px 10px; border-radius: 8px; width: 240px; max-width: 34vw; color: var(--ink); }
.title-inp:hover { background: var(--bg); }
.title-inp:focus { outline: none; border-color: var(--brand); background: #fff; }
.save-st { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.save-st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.save-st.saving::before { background: var(--warn); animation: pulse 1s infinite; }
.save-st.err2::before { background: var(--danger); }
@keyframes pulse { 50% { opacity: .3; } }
.bld-main { flex: 1; display: grid; grid-template-columns: minmax(380px, 520px) 1fr; min-height: 0; }
.panel { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.panel-tabs { flex: none; padding: 0 14px; }
.panel-b { flex: 1; overflow-y: auto; padding: 18px 16px 90px; }
.preview { overflow: auto; position: relative; background: #dfe6ea; display: flex; flex-direction: column; min-width: 0; }
.pv-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: rgba(255,255,255,.85); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.pv-scroll { flex: 1; padding: 26px 20px 60px; }
.pv-pages { transform-origin: top left; display: flex; flex-direction: column; gap: 22px; }
.pv-pages .cv-sheet { box-shadow: 0 4px 24px rgba(18,35,43,.2); }
.pv-wrap { margin: 0 auto; position: relative; }
.pg-no { text-align: center; color: #7b8c95; font-size: 12px; margin-top: -14px; }

/* section cards in editor */
.blk-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(18,35,43,.04); }
.blk-card.dragging { opacity: .5; }
.blk-card.is-hidden { opacity: .6; background: #fafbfb; }
.bc-h { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 8px; cursor: pointer; }
.bc-h h4 { font-size: 15px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-l); display: grid; place-items: center; font-size: 15px; flex: none; }
.handle { cursor: grab; color: #9fb0b8; padding: 4px 3px; flex: none; user-select: none; touch-action: none; line-height: 1; letter-spacing: -2px; font-size: 15px; }
.handle:hover { color: var(--ink); }
.bc-b { padding: 4px 14px 16px; border-top: 1px solid var(--line2); }
.sec-title-inp { margin: 10px 0 12px; }
.items { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.item { border: 1px solid var(--line); border-radius: 11px; background: #fbfcfc; }
.item.open { background: #fff; border-color: #b9cdd3; }
.it-hd { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 6px; cursor: pointer; min-height: 44px; }
.it-hd .t { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-hd .t small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.it-bd { padding: 4px 12px 14px; }
.add-btn { width: 100%; margin-top: 10px; border: 1.5px dashed #b4c6cd; background: transparent; color: var(--brand-d); font-weight: 700; padding: 10px; border-radius: 11px; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; }
.add-btn:hover { background: var(--brand-ll); border-color: var(--brand); }
.add-sec { margin-top: 6px; border: 2px dashed #b4c6cd; border-radius: 14px; padding: 15px; background: transparent; width: 100%; font: inherit; font-weight: 700; color: var(--ink2); cursor: pointer; font-size: 15px; }
.add-sec:hover { background: var(--brand-ll); border-color: var(--brand); color: var(--brand-d); }
.sortable-ghost { opacity: .35; }
.dz { margin-top: 4px; }
.photo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.photo-box { width: 72px; height: 72px; border-radius: 50%; background: var(--bg); border: 2px dashed #b4c6cd; display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 24px; cursor: pointer; flex: none; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.sec-lab { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; }
.sec-lab:first-child { margin-top: 0; }

/* rich text editor */
.rte-wrap { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.rte-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,159,142,.16); }
.rte-bar { display: flex; gap: 2px; padding: 4px; background: #f6f9fa; border-bottom: 1px solid var(--line2); flex-wrap: wrap; align-items: center; }
.rte-bar button { border: 0; background: none; width: 30px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--ink2); font-family: inherit; }
.rte-bar button:hover { background: #e4ecef; }
.rte-bar .ai { width: auto; padding: 0 10px; font-weight: 700; font-size: 12.5px; color: #c2410c; background: var(--coral-l); margin-left: auto; }
.rte-bar .ai:hover { background: #ffe2d8; }
.rte { min-height: 84px; padding: 10px 12px; font-size: 14px; line-height: 1.55; outline: none; max-height: 340px; overflow-y: auto; }
.rte ul, .rte ol { margin: 4px 0; padding-left: 22px; }
.rte p { margin: 0 0 4px; }
.rte:empty::before { content: attr(data-ph); color: #9aa9b1; }

/* design panel */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.tpl-opt { border: 2px solid transparent; border-radius: 10px; padding: 4px; cursor: pointer; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink2); background: transparent; font-family: inherit; }
.tpl-opt .cv-thumb { box-shadow: 0 2px 10px rgba(18,35,43,.18); margin: 0 auto 5px; }
.tpl-opt:hover { background: var(--bg); }
.tpl-opt.on { border-color: var(--brand); color: var(--brand-d); background: var(--brand-ll); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; }
.sw.on { box-shadow: 0 0 0 2.5px var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; flex-wrap: wrap; }
.seg button { border: 0; background: #fff; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--brand); color: #fff; }
.ctl { margin-bottom: 16px; }
.ctl .lbl { display: flex; justify-content: space-between; }
.ctl .lbl b { color: var(--brand-d); }
.panel-pane { display: none; }
.panel-pane.on { display: block; }
.mob-tabs { display: none; }

/* share modal */
.link-box { display: flex; gap: 8px; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 70px; margin-top: 10px; }
.spark i { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 3px; opacity: .85; position: relative; }
.spark i:hover { opacity: 1; }

/* job tracker */
.board { display: grid; grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 20px; align-items: start; }
.col { background: #eaf0f2; border-radius: 14px; padding: 10px; min-height: 200px; }
.col-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font-weight: 800; font-size: 14px; }
.col-h .cnt { background: #fff; border-radius: 99px; font-size: 12px; padding: 1px 9px; color: var(--muted); }
.col-h .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 7px; }
.cards { display: flex; flex-direction: column; gap: 9px; min-height: 60px; }
.jcard { background: #fff; border-radius: 11px; padding: 12px 13px; box-shadow: 0 1px 3px rgba(18,35,43,.1); cursor: grab; border: 1px solid transparent; }
.jcard:hover { border-color: #b9cdd3; }
.jcard b { display: block; font-size: 14.5px; }
.jcard .co { color: var(--muted); font-size: 13px; }
.jcard .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 11.5px; }
.jcard .meta span { background: var(--bg); padding: 2px 8px; border-radius: 99px; color: var(--ink2); font-weight: 600; }
.jcard .meta .late { background: #ffe3e3; color: #c92a2a; }
.col-add { width: 100%; margin-top: 8px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 13px; padding: 8px; border-radius: 8px; cursor: pointer; }
.col-add:hover { background: rgba(255,255,255,.7); color: var(--brand-d); }

/* public page */
.pub-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; }
.pub-stage { padding: 30px 12px 60px; display: flex; justify-content: center; background: #dfe6ea; min-height: calc(100vh - 56px); }
.pub-pages { transform-origin: top left; display: flex; flex-direction: column; gap: 20px; }
.pub-pages .cv-sheet { box-shadow: 0 4px 24px rgba(18,35,43,.2); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero .in { grid-template-columns: 1fr; } .hero-vis { height: 420px; }
  .auth { grid-template-columns: 1fr; } .auth-side { display: none; }
  .lp-nav .in { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 6px 14px; }
  .lp-nav nav { display: none; order: 3; width: 100%; flex-direction: column; gap: 2px; padding: 4px 0 6px; border-top: 1px solid var(--line2); margin-top: 4px; }
  .lp-nav.menu-open nav { display: flex; }
  .lp-nav nav a { white-space: nowrap; padding: 12px 12px; font-size: 15px; }
  .nav-burger { display: inline-block; }
  .lp-nav .in > .spacer { flex: 1; }
  .logo { white-space: nowrap; flex: none; }
  .lp-nav .in > .logo ~ .btn { white-space: nowrap; flex: none; }
  .bld-main { grid-template-columns: 1fr; }
  .mob-tabs { display: flex; }
  .bld .panel, .bld .preview { display: none; }
  .bld[data-m='edit'] .panel { display: flex; }
  .bld[data-m='view'] .preview { display: flex; }
  .title-inp { width: 130px; }
  .hide-m { display: none !important; }
  .board { grid-template-columns: repeat(5, 270px); }
}
@media (max-width: 900px) {
  .nav { height: auto; flex-wrap: wrap; padding: 8px 14px; gap: 4px 14px; }
  .nav .spacer { flex: 1; }
  .nav-links { display: none; order: 3; width: 100%; flex-direction: column; gap: 2px; padding: 4px 0 6px; border-top: 1px solid var(--line2); margin-top: 4px; }
  .nav.menu-open .nav-links { display: flex; }
  .nav-links a { white-space: nowrap; padding: 12px 12px; font-size: 15px; }
  .nav-burger { display: inline-block; }
}
@media (max-width: 560px) {
  .lp-nav .in { gap: 6px 8px; padding: 10px 12px; }
  .lp-nav .in > .logo { font-size: 17px; gap: 7px; }
  .lp-nav .in > .logo i { width: 26px; height: 26px; font-size: 14px; border-radius: 8px; }
  .lp-nav .in > .btn { padding: 8px 11px; font-size: 13px; }
  .nav { padding: 8px 12px; } .nav .logo { font-size: 17px; } .nav .logo i { width: 26px; height: 26px; font-size: 14px; }
  .lp-nav .in > .btn-ghost { display: none; }
  .page { padding: 20px 14px 60px; }
  .grid .w6, .grid .w3, .grid .w4, .grid .w8 { grid-column: span 12; }
  .grid .w3.keep, .grid .w6.keep { grid-column: span 6; }
}
@media print { .no-print { display: none !important; } }

/* ---------- builder additions ---------- */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.show-m { display: none; }
body.is-dragging { user-select: none; cursor: grabbing; }
.item.cmp { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 4px; }
.cmp-f { flex: 1; min-width: 0; display: flex; gap: 8px; }
.cmp-f .field { margin: 0; }
.cmp-f .inp { height: 36px; }
.add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.add-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; text-align: left; color: var(--ink); }
.add-opt b { font-size: 14px; }
.add-opt:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-ll); }
.add-opt.off { opacity: .4; cursor: not-allowed; }
.score-card { display: flex; align-items: center; gap: 18px; padding: 16px; background: var(--brand-ll); border: 1px solid #cfeee9; border-radius: 14px; margin-bottom: 16px; }
.ring { width: 78px; height: 78px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #dbe5e8 0); display: grid; place-items: center; flex: none; position: relative; }
.ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.ring b { position: relative; font-size: 24px; letter-spacing: -.03em; }
.score-card h3 { font-size: 18px; margin-bottom: 3px; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.chk { display: flex; gap: 11px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line2); background: #fff; }
.chk i { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; margin-top: 1px; }
.chk.ok i { background: var(--ok); } .chk.warn i { background: var(--warn); } .chk.bad i { background: var(--danger); } .chk.info i { background: #4c6ef5; }
.chk b { display: block; font-size: 14px; }
.chk span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.chk.ok { background: #fbfdfc; }
.tips { margin: 0; padding-left: 20px; color: var(--ink2); font-size: 13.5px; display: grid; gap: 6px; }
.badge.coral { background: var(--coral-l); color: #c2410c; }
@media (max-width: 1000px) { .show-m { display: inline; } .bar { padding: 0 8px; gap: 4px; } }
@media (max-width: 1000px) {
  .mob-tabs { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 60; box-shadow: var(--shadow-l); border-radius: 99px; border-color: var(--line); }
  .mob-tabs button { padding: 11px 22px; font-weight: 700; }
  .pv-scroll { padding-bottom: 100px; }
}
@media (max-width: 700px) {
  .save-st { display: none; }
  .title-inp { width: 100%; max-width: none; flex: 1; min-width: 0; }
  .bar .spacer { display: none; }
  .bar .btn { padding: 0 12px; }
  .bar .btn-icon { padding: 0; }
}

/* ---------- upgrade modal: plan choice ---------- */
.up-plans { display: grid; gap: 10px; margin: 6px 0 16px; }
.up-plan { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 16px 16px; cursor: pointer; transition: .15s; color: var(--ink); }
.up-plan:hover { border-color: #b8c6cc; }
.up-plan.on { border-color: var(--brand); background: var(--brand-ll); }
.up-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b8c6cc; display: grid; place-items: center; }
.up-plan.on .up-radio { border-color: var(--brand); }
.up-plan.on .up-radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.up-pt { flex: 1; min-width: 0; }
.up-pt b { display: block; font-size: 16px; }
.up-pt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.up-pp { text-align: right; color: var(--muted); font-size: 13px; white-space: nowrap; }
.up-pp b { font-size: 24px; letter-spacing: -.03em; color: var(--ink); }
.up-best { position: absolute; top: -10px; right: 14px; background: var(--brand); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; }

/* ---------- subscription band + green footer ---------- */
.sub-band { background: var(--brand-ll); border-top: 1px solid var(--line2); padding: 52px 24px; }
.sub-band .in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 12px 40px; align-items: center; }
.sub-tx h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.03em; }
.sub-tx p { margin: 0; color: var(--muted); max-width: 520px; }
.sub-form { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px; box-shadow: var(--shadow); }
.sub-in { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; padding: 0 16px; color: var(--ink); }
.sub-btn { flex: none; border: 0; cursor: pointer; background: var(--brand); color: #fff; font: 700 15px/1 inherit; font-family: inherit; padding: 13px 24px; border-radius: 99px; transition: .15s; }
.sub-btn:hover { background: var(--brand-d); } .sub-btn:disabled { opacity: .7; cursor: default; }
.sub-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sub-msg { grid-column: 2; min-height: 20px; font-size: 14px; font-weight: 600; padding-left: 16px; }
.sub-msg.ok { color: var(--brand-d); } .sub-msg.bad { color: var(--danger); }
.site-foot { background: linear-gradient(135deg, var(--brand-d), var(--brand)); color: rgba(255,255,255,.9); padding: 34px 24px; }
.site-foot .in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.sf-l { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; font-size: 14px; }
.site-foot .logo { color: #fff; }
.site-foot .logo i { background: #fff; color: var(--brand-d); box-shadow: none; }
.sf-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.sf-nav a { color: rgba(255,255,255,.92); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.sf-nav a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 800px) {
  .sub-band .in { grid-template-columns: minmax(0, 1fr); } .sub-msg { grid-column: 1; padding-left: 4px; }
  .site-foot .in { flex-direction: column; align-items: flex-start; }
}
.sub-band .in > * { min-width: 0; }

.site-foot .in { row-gap: 14px; }
.sf-nav.sf-sub { flex-basis: 100%; border-top: 1px solid rgba(255,255,255,.22); padding-top: 14px; }
.sf-nav.sf-sub a { font-weight: 500; font-size: 13.5px; opacity: .85; }

/* ---------- template category chips ---------- */
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.cat-chip { border: 1px solid var(--line); background: #fff; color: var(--ink2); font: 600 13px/1 inherit; font-family: inherit; padding: 8px 14px; border-radius: 99px; cursor: pointer; transition: .15s; }
.cat-chip:hover { border-color: var(--brand); color: var(--brand-d); }
.cat-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tpl-card .cv-thumb { background: #fff; }
#b-dl ~ .menu { min-width: 240px; } #b-dl ~ .menu button { white-space: nowrap; } .dl-caret { font-size: 11px; margin-left: 2px; }

@media (max-width: 370px) { .lp-nav .in > .btn { padding: 7px 9px; font-size: 12.5px; } .lp-nav .in > .logo { font-size: 16px; } .lp-nav .in > .logo i { width: 24px; height: 24px; } }
@media (max-width: 340px) { .lp-nav .in { padding: 8px 8px; gap: 6px 4px; } .lp-nav .in > .btn { padding: 7px 8px; font-size: 12px; } .lp-nav .in > .btn-ghost { padding: 7px 4px; } .lp-nav .in > .logo { font-size: 15px; gap: 5px; } .lp-nav .in > .logo i { width: 22px; height: 22px; font-size: 12px; } }

.nav-burger { display: none; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0; cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .18s, opacity .18s, top .18s; }
.nav-burger span:nth-child(1) { top: 13px; } .nav-burger span:nth-child(2) { top: 19px; } .nav-burger span:nth-child(3) { top: 25px; }
.menu-open .nav-burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.menu-open .nav-burger span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
.nav-mob-signin { padding: 12px; font-weight: 600; font-size: 15px; color: var(--ink2); border-radius: 8px; text-decoration: none !important; }
.nav-mob-signin:hover { background: var(--bg); }
.lp-nav nav a.nav-mob-signin { display: block; }
/* hero pictures on phones */
@media (max-width: 700px) {
  .hero .in { padding: 36px 18px 48px; gap: 28px; }
  .hero-vis { height: 330px; max-width: 360px; width: 100%; margin: 0 auto; }
  .hero-vis .sheet:nth-child(3) { left: 50% !important; margin-left: -95px; top: 52px !important; }
  .hero-vis .sheet:nth-child(1) { top: 34px !important; }
  .hero-vis .sheet:nth-child(2) { top: 6px !important; }
}
@media (max-width: 1000px) { .lp-nav .nav-burger { display: inline-block; } }
@media (max-width: 900px) { .nav .nav-burger { display: inline-block; } }
@media (max-width: 620px) { .tpl-card .tdesc { font-size: 12px; font-weight: 400; line-height: 1.4; } .tpl-card .tn { font-size: 14px; } }

/* ---------- "Resume Examples" dropdown (public header + app header) ---------- */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd-t::after { content: ''; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 8px; transition: transform .15s; }
.nav-dd.open .nav-dd-t::after { transform: rotate(225deg) translate(-1px, -1px); }
.nav-dd-m { display: none; position: absolute; top: 100%; left: -8px; min-width: 500px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(18,35,43,.16); grid-template-columns: 1fr 1fr; gap: 2px 8px; z-index: 80; }
.nav-dd-m a { display: block; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink2); white-space: nowrap; text-decoration: none; }
.nav-dd-m a:hover, .nav-dd-m a:focus { background: var(--brand-ll); color: var(--brand-d); }
.nav-dd-m a.all { grid-column: 1 / -1; margin-top: 6px; border-top: 1px solid var(--line2); border-radius: 0 0 8px 8px; padding-top: 12px; color: var(--brand-d); }
.nav-dd.open .nav-dd-m { display: grid; }
@media (min-width: 1001px) { .nav-dd:hover .nav-dd-m, .nav-dd:focus-within .nav-dd-m { display: grid; } }
@media (max-width: 1000px) {
  .lp-nav nav .nav-dd { display: block; }
  .lp-nav .nav-dd-m { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 6px 14px; grid-template-columns: 1fr; gap: 0; }
  .lp-nav .nav-dd-m a { padding: 10px 12px; font-size: 14.5px; }
  .lp-nav .nav-dd-t { display: block; }
}
@media (max-width: 900px) {
  .nav-links .nav-dd { display: block; }
  .nav .nav-dd-m { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 6px 14px; grid-template-columns: 1fr; gap: 0; }
  .nav .nav-dd-t { display: block; }
}
.lp-nav .logo, .lp-nav nav a, .lp-nav .btn { white-space: nowrap; }
@media (min-width: 1001px) and (max-width: 1200px) { .lp-nav .in { gap: 6px; padding-left: 14px; padding-right: 14px; } .lp-nav nav a { padding: 8px 9px; font-size: 14px; } .lp-nav .in > .btn { padding: 9px 13px; font-size: 14px; } }
@media (min-width: 1001px) and (max-width: 1080px) { .lp-nav nav a { padding: 8px 6px; font-size: 13.5px; } .lp-nav .in > .btn { padding: 8px 10px; font-size: 13.5px; } .lp-nav .in > .btn-ghost { padding: 8px 6px; } .lp-nav .in { gap: 4px; padding-left: 10px; padding-right: 10px; } }
