/* Look matches the sister app Career Compass (career.ostlind.net): navy bar, gold accents, white cards. */
:root { --ink:#1d2130; --muted:#5a6078; --line:#e3e5ec; --bg:#f6f4ef; --card:#fff; --gold:#c8963e; --gold-soft:#f6ecd9; --ok:#2f7d4f; --err:#b3261e; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; background:var(--bg); color:var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.top { background:var(--ink); color:#fff; padding:14px 18px; padding-top:max(14px, env(safe-area-inset-top)); display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.brand { font-weight:700; font-size:18px; color:#fff; text-decoration:none; }
.top .sub { color:#c9cbd6; font-size:13px; }
main { max-width:1180px; margin:0 auto; padding:18px 16px 110px; }
.foot { max-width:1180px; margin:0 auto; padding:0 16px 100px; font-size:13px; color:var(--muted); }
.card { background:var(--card); border-radius:16px; padding:22px 18px; box-shadow:0 1px 3px rgba(29,33,48,.08); margin-bottom:16px; }
@media (min-width:640px) { .card { padding:28px; } }
.kicker { text-transform:uppercase; letter-spacing:.06em; font-size:12px; color:var(--gold); font-weight:700; margin:0 0 6px; }
.hed { font-size:clamp(24px, 4.5vw, 30px); line-height:1.2; margin:0 0 10px; }
.deck { font-size:17px; color:var(--muted); max-width:46em; margin:0 0 16px; }
.sub { font-size:17px; margin:20px 0 6px; }
.small { font-size:14px; color:var(--muted); margin:6px 0; }
.warn { color:var(--err); }

.btn { appearance:none; display:inline-flex; align-items:center; justify-content:center; border:1.5px solid var(--line); background:#fff; border-radius:12px; padding:12px 16px; font-size:15px; font-weight:600; cursor:pointer; min-height:48px; text-decoration:none; color:var(--ink); }
.btn.primary { background:var(--ink); border-color:var(--ink); color:#fff; }
.btn.gold { background:var(--gold); border-color:var(--gold); color:#fff; }
.btn.ghost { background:transparent; }
.btn:disabled { opacity:.35; cursor:default; }
.btn:focus-visible, .pill input:focus-visible + span, input:focus-visible, select:focus-visible, textarea:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.small-btn { min-height:38px; padding:7px 12px; font-size:14px; border-radius:10px; }
.link { background:none; border:0; padding:8px 0; cursor:pointer; font-weight:600; font-size:15px; color:var(--ink); }
.icon { width:38px; height:38px; border:1.5px solid var(--line); border-radius:10px; background:#fff; cursor:pointer; font-size:20px; line-height:1; flex:none; }

.versions { list-style:none; padding:0; margin:0; }
.versions li { display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; align-items:center; border-top:1px solid var(--line); padding:14px 0; }
.versions .meta { display:block; font-size:13px; color:var(--muted); }
.vbtns { display:flex; flex-wrap:wrap; gap:8px; }

.topline { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.vname { font-size:13px; color:var(--muted); text-align:right; font-weight:600; }
.progress { height:6px; background:var(--line); border-radius:3px; overflow:hidden; margin:4px 0 8px; }
.progress > div { height:100%; background:var(--gold); transition:width .25s; }
.steps { display:flex; gap:4px; overflow-x:auto; padding:2px 0 10px; scrollbar-width:none; }
.step { flex:1 0 auto; display:flex; align-items:center; gap:6px; border:0; background:none; padding:6px 6px; cursor:pointer; font-size:12.5px; font-weight:600; color:var(--muted); border-radius:10px; }
.step span { display:inline-grid; place-items:center; width:24px; height:24px; border:1.5px solid var(--line); border-radius:50%; font-size:11px; background:#fff; }
.step em { font-style:normal; white-space:nowrap; }
.step.cur { color:var(--ink); background:var(--gold-soft); }
.step.cur span { border-color:var(--gold); }
.step.done span { background:var(--gold); color:#fff; border-color:var(--gold); }
.step:disabled { opacity:.4; cursor:default; }
@media (max-width:720px) { .step em { display:none; } .step.cur em { display:inline; } }

.cols { display:grid; grid-template-columns:minmax(0, 1fr) 340px; gap:20px; align-items:start; }
.is-review .cols { grid-template-columns:minmax(0, 1fr) 300px; }
@media (max-width:900px) { .cols, .is-review .cols { grid-template-columns:minmax(0, 1fr); } .tips { order:-1; } .is-review .tips { order:1; } }
.grid { display:grid; gap:12px; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.row3 { display:grid; grid-template-columns:2fr 1fr 1fr; gap:12px; }
.row-lang { display:grid; grid-template-columns:2fr 1fr auto; gap:10px; align-items:end; }
@media (max-width:600px) { .row2, .row3 { grid-template-columns:1fr; } }
.f { display:grid; gap:4px; }
.f > span, .lbl, legend { font-size:14px; font-weight:600; }
.f small { font-size:13px; color:var(--muted); }
input, select, textarea { width:100%; min-height:48px; padding:11px 12px; border:1.5px solid var(--line); border-radius:12px; background:#fff; font-size:16px; }
textarea { resize:vertical; line-height:1.4; }
.check { display:flex; gap:8px; align-items:center; font-size:15px; }
.check input { width:20px; min-height:20px; }

.choice { border:0; padding:0; margin:0 0 6px; display:flex; flex-wrap:wrap; gap:8px; }
.choice legend { margin-bottom:8px; padding:0; }
.pill { position:relative; }
.pill input { position:absolute; opacity:0; width:1px; height:1px; }
.pill span { display:inline-block; padding:11px 14px; border:1.5px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; font-size:15px; min-height:46px; }
.pill input:checked + span { border-color:var(--gold); background:var(--gold-soft); font-weight:600; }

.entry { border:1.5px solid var(--line); border-radius:14px; padding:14px; margin:0 0 14px; display:grid; gap:10px; background:#fff; }
.entry legend { padding:0 6px; }
.bullets { display:grid; gap:8px; }
.bullet { display:flex; gap:8px; align-items:flex-start; }
.entry-tools { display:flex; gap:8px; justify-content:flex-end; }
.photo-box { display:flex; gap:12px; align-items:center; }
.photo-box img, .photo-box .ph { width:78px; height:99px; object-fit:cover; border:1.5px solid var(--line); border-radius:8px; display:grid; place-items:center; font-size:12px; color:var(--muted); background:#fff; }
.photo-box > div { display:grid; gap:6px; }

.tips { background:var(--gold-soft); border-radius:16px; padding:4px 16px 10px; position:sticky; top:10px; }
.tips summary { font-weight:700; font-size:14px; padding:12px 0; cursor:pointer; min-height:44px; }
.tips ul { list-style:none; margin:0; padding:0; }
.tips li { border-top:1px solid rgba(200,150,62,.35); padding:10px 0; font-size:15px; line-height:1.45; }
.tips .tag { display:block; text-transform:uppercase; letter-spacing:.06em; font-size:11px; color:var(--gold); font-weight:700; margin-bottom:2px; }
.tips .src { display:block; margin-top:4px; font-size:12.5px; color:var(--muted); }
.tips .src::before { content:"Source: "; }
@media (max-width:900px) { .tips { position:static; } }

.navbar { position:fixed; left:0; right:0; bottom:0; display:flex; justify-content:space-between; gap:12px; padding:12px 16px max(12px, env(safe-area-inset-bottom)); background:linear-gradient(rgba(246,244,239,0), var(--bg) 30%); z-index:5; }
.navbar .btn { min-width:130px; }

.toolbar { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:6px; }
.meter { font-weight:600; font-size:15px; margin:10px 0 2px; border-radius:12px; padding:10px 14px; background:#eef0f5; color:var(--muted); }
.meter.ok { background:#e6f4ec; color:var(--ok); } .meter.bad { background:#fbe9e7; color:var(--err); }
.paper-wrap { width:100%; background:#e7e4dc; border-radius:14px; padding:10px; overflow:hidden; }
#paper { position:relative; width:100%; overflow:hidden; }
#paper .cv-page { position:absolute; left:0; top:0; }
.mail { margin-top:16px; display:grid; gap:10px; max-width:560px; }
.status { border-radius:12px; padding:10px 14px; font-size:15px; }
.status:empty { display:none; }
.status.ok { background:#e6f4ec; color:var(--ok); } .status.err { background:#fbe9e7; color:var(--err); } .status.wait { background:#eef0f5; color:var(--muted); }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
#toast { position:fixed; left:50%; bottom:92px; transform:translateX(-50%) translateY(20px); background:var(--ink); color:#fff; padding:10px 16px; border-radius:12px; font-size:14px; opacity:0; transition:.2s; z-index:9; pointer-events:none; max-width:92vw; }
#toast.on { opacity:1; transform:translateX(-50%); }

/* ---------- the CV page (mirrors the PDF) ---------- */
.cv-page { width: 210mm; min-height: 297mm; background: #fff; color: #121212; padding: 14mm 16mm 13mm; transform-origin: top left; box-shadow: 0 1px 6px rgba(0,0,0,.18); font-size: 10.5pt; line-height: 1.22; position: relative; }
.cv-classic { font-family: "Times New Roman", Times, "Liberation Serif", serif; }
.cv-modern { font-family: Helvetica, Arial, "Liberation Sans", sans-serif; }
.cv-head { text-align: center; margin-bottom: 4pt; }
.cv-head.with-photo { display: flex; justify-content: space-between; gap: 5mm; text-align: left; }
.cv-photo { width: 26mm; height: 33mm; object-fit: cover; }
.cv-name { font-size: 18.4pt; font-weight: 700; margin: 0 0 3pt; line-height: 1.1; }
.cv-contact { margin: 1pt 0; font-size: 9.45pt; color: #555; }
.cv-sec h2 { font-size: 10.5pt; text-transform: uppercase; margin: 11pt 0 2pt; padding-bottom: 2pt; border-bottom: .6pt solid #121212; letter-spacing: .02em; }
.cv-entry { margin-top: 3.5pt; }
.cv-row { display: flex; justify-content: space-between; gap: 8pt; }
.cv-org { font-weight: 700; } .cv-role, .cv-dates { font-style: italic; } .cv-loc, .cv-dates { white-space: nowrap; }
.cv-entry ul { margin: 0; padding-left: 1.1em; } .cv-entry li { margin: 0; }
.tabular .cv-entry.tab { display: grid; grid-template-columns: 34mm 1fr; }
.tabular .cv-dcol .cv-dates { font-style: normal; font-size: 9.45pt; white-space: normal; padding-right: 6pt; display: block; }
.tabular .cv-row { display: block; }
.cv-line { margin: 0; }
.cv-foot { position: absolute; left: 16mm; right: 16mm; bottom: 9mm; margin: 0; font-size: 8.7pt; font-style: italic; color: #555; }
.ed { border-radius: 2px; outline: 1px dashed transparent; cursor: text; }
.ed:hover { outline-color: #c8963e; background: #fbf6ec; }
.ed:focus { outline: 2px solid #c8963e; background: #fbf6ec; }
.ed:empty::before { content: attr(data-ph); color: #999; }

/* section status marks and overview */
.step, .ovitem { position:relative; }
.sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.st { display:inline-grid; place-items:center; width:24px; height:24px; border-radius:50%; font-style:normal; font-weight:800; font-size:13px; flex:0 0 auto; }
.st-complete { background:var(--ok); color:#fff; }
.st-partly, .st-empty { background:#fff; color:var(--err); border:1.5px solid var(--err); }
.ovcount { margin:8px 0 6px; }
.overview { list-style:none; padding:0; margin:0 0 16px; display:grid; gap:8px; }
.ovitem { width:100%; display:flex; align-items:center; gap:12px; text-align:left; background:#fff; border:1.5px solid var(--line); border-radius:12px; padding:12px 14px; cursor:pointer; font:inherit; color:var(--ink); min-height:56px; }
.ovitem:hover, .ovitem:focus-visible { border-color:var(--gold); }
.ovitem .st { width:28px; height:28px; font-size:15px; }
.ovtext { flex:1; display:flex; flex-direction:column; }
.ovtext small { color:var(--muted); font-size:13px; }
.chev { font-size:22px; color:var(--muted); }
/* export panel, help, data save/load */
.deftag { display:inline-block; margin-left:6px; padding:1px 8px; border-radius:999px; background:var(--gold-soft); color:var(--ink); font-size:12px; font-weight:600; vertical-align:middle; }
.export { margin-top:16px; }
.export > summary, .help > summary { cursor:pointer; font-weight:700; font-size:16px; list-style-position:inside; padding:4px 0; }
.export[open] > summary { margin-bottom:10px; }
.export .mail { margin-top:10px; }
.att .pill span { min-height:40px; padding:8px 12px; }
.explain { margin:6px 0 14px; }
.btnhelp { padding-left:18px; }
.btnhelp li { margin:3px 0; }
.databox { margin-top:18px; padding-top:12px; border-top:1px solid var(--line); }
.filebtn { cursor:pointer; }
.help { margin-top:16px; border-top:1px solid var(--line); padding-top:10px; }
.help dl { margin:8px 0 0; }
.help dt { font-weight:700; margin-top:10px; }
.help dd { margin:2px 0 0; color:var(--muted); font-size:15px; }
.savenote { margin-top:10px; }
.savenote .link { font-size:14px; text-decoration:underline; padding:0; }
#helpslot .help { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:14px 18px; }
/* CV styles (preview mirrors the typography in styles.js, used by PDF and Word) */
.cv-page.left .cv-head { text-align: left; }
.cv-page.accent .cv-name, .cv-page.accent .cv-sec h2 { color: #1F3A5F; border-color: #1F3A5F; }
.cv-page.style-classic { font-size: 10.5pt; line-height: 1.22; padding: 14mm 16mm 13mm; }
.cv-page.style-classic .cv-name { font-size: 18.4pt; }
.cv-page.style-formal { font-size: 10.5pt; line-height: 1.25; padding: 15mm 18mm 14mm; }
.cv-page.style-formal .cv-name { font-size: 16.8pt; }
.cv-page.style-formal .cv-sec h2 { text-transform: none; font-size: 11.3pt; letter-spacing: 0; margin-top: 13pt; }
.cv-page.style-modern { font-size: 10pt; line-height: 1.25; padding: 14mm 16mm 13mm; }
.cv-page.style-modern .cv-name { font-size: 20pt; }
.cv-page.style-modern .cv-sec h2 { font-size: 9.5pt; letter-spacing: .06em; }
.cv-page.style-compact { font-size: 10pt; line-height: 1.13; padding: 11mm 13mm 11mm; }
.cv-page.style-compact .cv-name { font-size: 16pt; }
.cv-page.style-compact .cv-sec h2 { font-size: 9.5pt; margin-top: 7pt; }
.cv-page.style-compact .cv-entry { margin-top: 1.5pt; }
.cv-app { margin: 2pt 0 0; font-style: italic; }
.cv-profile { margin: 0; }
/* style picker */
.stylepick { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; margin:6px 0 4px; border:0; padding:0; }
.stylepick legend { padding:0; margin-bottom:8px; font-weight:600; }
.stylecard { position:relative; display:flex; flex-direction:column; gap:6px; border:1.5px solid var(--line); border-radius:12px; padding:10px; background:#fff; cursor:pointer; }
.stylecard input { position:absolute; opacity:0; width:1px; height:1px; }
.stylecard:has(input:checked) { border-color:var(--gold); background:var(--gold-soft); }
.stylecard:has(input:focus-visible) { outline:3px solid var(--gold); outline-offset:2px; }
.stylecard .thumb { align-self:center; }
.stylecard b { font-size:15px; }
.stylecard .why { font-size:13px; color:var(--muted); line-height:1.35; }
.stylecard .why a { color:inherit; }
.rec { display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; background:var(--ok); color:#fff; border-radius:999px; padding:1px 8px; margin-left:4px; vertical-align:middle; }
/* optional sections */
.optsecs { display:grid; gap:8px; margin:8px 0 14px; }
.optrow { display:grid; grid-template-columns:1fr minmax(170px, 240px); gap:10px; align-items:center; border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fff; }
.optinfo .why { display:block; font-size:13px; color:var(--muted); margin-top:2px; }
.optinfo .src { font-size:12px; }
.optsel { margin:0; }
.recbadge { display:inline-block; font-size:11px; font-weight:700; border-radius:999px; padding:1px 8px; vertical-align:middle; }
.rec-include { background:#e3f1e8; color:var(--ok); }
.rec-optional { background:var(--gold-soft); color:#7a5512; }
.rec-omit { background:#f3e3e2; color:var(--err); }
.onoff { font-size:12px; font-weight:700; margin-left:4px; }
.onoff.is-on { color:var(--ok); } .onoff.is-off { color:var(--muted); }
@media (max-width:600px) { .optrow { grid-template-columns:1fr; } }
.libbar { display:flex; flex-wrap:wrap; gap:6px; margin:-2px 0 8px; }
/* deadlines */
.deadlines { margin-top:18px; }
.dllist { list-style:none; padding:0; margin:8px 0; display:grid; gap:8px; }
.dl { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:start; border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fff; }
.dlmain { display:flex; flex-direction:column; gap:2px; }
.dlfirm { font-size:16px; }
.dlprog { font-size:14px; }
.dl .why { font-size:13px; color:var(--muted); }
.dlstatus { display:inline-block; width:max-content; font-size:12px; font-weight:700; border-radius:999px; padding:1px 8px; }
.dlstatus.st-open, .dlstatus.st-rolling { background:#e3f1e8; color:var(--ok); }
.dlstatus.st-soon, .dlstatus.st-upcoming, .dlstatus.st-unknown { background:var(--gold-soft); color:#7a5512; }
.dlstatus.st-closed { background:#eee; color:var(--muted); }
.dlbtns { display:flex; flex-direction:column; gap:6px; }
@media (max-width:600px) { .dl { grid-template-columns:1fr; } .dlbtns { flex-direction:row; flex-wrap:wrap; } }
.dlclosed > summary, .dladd > summary { cursor:pointer; font-weight:700; padding:6px 0; }
/* library */
.libdlg { border:0; border-radius:16px; padding:0; width:min(560px, 94vw); max-height:86vh; }
.libdlg::backdrop { background:rgba(20,22,35,.45); }
.dlgin { padding:16px 18px; display:grid; gap:10px; }
.libpick, .libitems { list-style:none; padding:0; margin:0; display:grid; gap:8px; max-height:56vh; overflow:auto; }
.libitem { width:100%; text-align:left; background:#fff; border:1.5px solid var(--line); border-radius:12px; padding:10px 12px; cursor:pointer; font:inherit; color:var(--ink); display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.libitem:hover, .libitem:focus-visible { border-color:var(--gold); }
.libitem .why { flex-basis:100%; font-size:13px; color:var(--muted); }
.ftag { display:inline-block; font-size:11px; font-weight:700; background:var(--gold-soft); border-radius:999px; padding:1px 8px; }
.ftag.none { background:#eee; color:var(--muted); }
.libitems { max-height:none; }
.libcard { border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fff; }
.libcard summary { cursor:pointer; display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.orderlist { padding-left:20px; display:grid; gap:6px; }
.orderlist li { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.orderlist .ordname { min-width:120px; font-weight:600; }
.orderlist input { flex:1; min-width:140px; padding:8px 10px; border:1.5px solid var(--line); border-radius:10px; }
.stylebox, .layoutbox { margin:10px 0; }
.stylebox > summary, .layoutbox > summary { cursor:pointer; font-weight:700; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .top, .foot, .topline, .progress, .steps, .hed, .tips, .toolbar, .meter, .small, .mail, .navbar, .export, .help, #helpslot, .btnhelp, .stylebox, .layoutbox, .libbar, #toast { display: none !important; }
  main { padding: 0; max-width: none; }
  .card { box-shadow: none; padding: 0; margin: 0; background: none; }
  .cols { display: block; }
  .paper-wrap { padding: 0; background: none; }
  #paper { height: auto !important; overflow: visible; }
  #paper .cv-page { position: relative; }
  .cv-page { transform: none !important; box-shadow: none; width: 210mm; height: 297mm; overflow: hidden; }
  .ed:empty::before { content: ""; }
}
