/* ==DKCSS-START== editor layout shared by the document tools */
.dk { --dk-ac: var(--brand); }
.dk-tabs { display: none; }
.dk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 20px; align-items: start; }
.dk-form { min-width: 0; }
.dk-view { position: sticky; top: 72px; max-height: calc(100vh - 84px); overflow: auto; background: #e8ebf2; border-radius: 16px; padding: 12px; min-width: 0; overscroll-behavior: contain; }
:root[data-theme="dark"] .dk-view { background: #0b0d13; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dk-view { background: #0b0d13; } }
.btn.sm { min-height: 36px; padding: 7px 12px; font-size: 14px; border-radius: 9px; }
.dk-toolbar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.dk-tb-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dk-tb-label { font-weight: 700; font-size: 14px; margin-right: 2px; }
.dk-saved { font-size: 13px; color: var(--ok); margin-left: auto; }
.dk-sec { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; background: var(--card); overflow: hidden; }
.dk-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 14px; font-weight: 800; font-size: 16px; min-height: 50px; }
.dk-sec > summary::-webkit-details-marker { display: none; }
.dk-sec > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
.dk-sec[open] > summary::after { transform: rotate(180deg); }
.dk-sec[open] > summary { border-bottom: 1px solid var(--line); background: var(--bg); }
.dk-sec-ic { width: 30px; height: 30px; display: grid; place-items: center; background: var(--brand-soft); border-radius: 9px; font-size: 16px; flex: none; }
.dk-sec-b { padding: 6px 14px 14px; }
.dk-badge { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.dk-tip { font-size: 13.5px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 8px 10px; margin: 8px 0 4px; }
.dk-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.dk-fields .full { grid-column: 1 / -1; }
.dk-fields .field { margin: 8px 0 0; min-width: 0; }
.dk-fields .field label { font-size: 13px; }
.dk-check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin: 10px 0 0; cursor: pointer; min-height: 32px; }
.dk-card { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 12px; margin: 10px 0; background: var(--bg); }
.dk-card-h { display: flex; align-items: center; gap: 4px; padding-top: 6px; }
.dk-card-t { flex: 1; font-weight: 700; font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-ib { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 9px; width: 36px; height: 36px; font-size: 15px; cursor: pointer; flex: none; }
.dk-ib:disabled { opacity: .35; cursor: default; }
.dk-ib.del { color: var(--bad); }
.dk-add { width: 100%; margin-top: 4px; }
.dk-photo { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.dk-photo-img { width: 84px; height: 84px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; font-size: 12px; color: var(--muted); }
.dk-photo-img img { width: 100%; height: 100%; object-fit: cover; }
.dk-photo-b { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.dk-photo-b small { flex-basis: 100%; font-size: 12.5px; }
.dk-photo-b .dk-check { margin: 0; flex-basis: 100%; }
.dk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.dk-chip { display: inline-flex; align-items: center; gap: 2px; background: var(--brand-soft); color: var(--ink); border-radius: 99px; padding: 3px 4px 3px 12px; font-size: 14px; font-weight: 600; }
.dk-chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; }
.dk-chip-in { display: flex; gap: 8px; }
.dk-chip-in input { flex: 1; min-width: 0; }
.dk-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dk-sugg button { font: inherit; font-size: 13px; border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: 99px; padding: 5px 10px; cursor: pointer; }
.dk-arrange { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.dk-arrange li { display: flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; }
.dk-arrange input[type=text] { flex: 1; min-width: 0; min-height: 36px; padding: 5px 9px; font-weight: 600; font-size: 14px; }
.dk-ar-ic { width: 22px; text-align: center; flex: none; }
.dk-show { display: flex; align-items: center; gap: 4px; font-size: 12.5px; flex: none; }
.dk-design { background: var(--card); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.dk-tpls { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.dk-tpls button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 11px; padding: 6px 6px 5px; cursor: pointer; font: inherit; font-size: 12.5px; }
.dk-tpls button.on { border-color: var(--dk-ac); box-shadow: 0 0 0 2px color-mix(in srgb, var(--dk-ac) 25%, transparent); }
.dk-tpls b { font-weight: 700; }
.th { position: relative; width: 54px; height: 70px; background: #fff; border: 1px solid #d9dce5; border-radius: 4px; overflow: hidden; display: block; }
.th i { position: absolute; display: block; background: #c9ced9; height: 3px; border-radius: 2px; }
.dk-design-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 8px; }
.dk-swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dk-swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.dk-swatches button.on { box-shadow: 0 0 0 2px var(--ink); }
.dk-color-custom { position: relative; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px dashed var(--muted); cursor: pointer; font-size: 14px; }
.dk-color-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; padding: 0; border: 0; }
.dk-mini { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.dk-mini select { min-height: 34px; padding: 4px 8px; font-size: 14px; width: auto; }
.dk-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.dk-pagecount { font-size: 13px; color: var(--muted); margin-left: auto; }
.dk-pages { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.dk-pages.zoomed { align-items: flex-start; overflow-x: auto; }
.pv-box { position: relative; flex: none; box-shadow: 0 2px 14px rgba(15, 20, 40, .18); background: #fff; overflow: hidden; }
.pv-box > .pg { transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.pv-lab { font-size: 12px; color: var(--muted); margin: 2px 0 10px; }
.dk-hint { font-size: 13.5px; color: var(--muted); background: var(--card); border-radius: 12px; padding: 10px 12px; margin-top: 12px; line-height: 1.5; }
.dk-measure { position: absolute; left: -12000px; top: 0; visibility: hidden; pointer-events: none; contain: layout style; }
#dk-print { display: none; }
.dk-modal { position: fixed; inset: 0; background: rgba(10, 12, 20, .6); z-index: 100; display: grid; place-items: center; padding: 16px; }
.dk-modal-card { background: var(--card); color: var(--ink); border-radius: 16px; padding: 16px; max-width: 360px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dk-modal-title { font-weight: 800; }
.dk-crop-cv { touch-action: none; cursor: grab; border-radius: 8px; background: #eee; max-width: 100%; }
.dk-zoom { display: flex; align-items: center; gap: 8px; width: 100%; }
@media (max-width: 900px) {
  .dk-tabs { display: flex; gap: 6px; position: sticky; top: 60px; z-index: 15; background: var(--card); padding: 8px 0; margin: -8px 0 10px; border-bottom: 1px solid var(--line); }
  .dk-tabs button { flex: 1; font: inherit; font-weight: 700; font-size: 15px; min-height: 44px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 11px; cursor: pointer; }
  .dk-tabs button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
  .dk-tabs .dk-tab-pdf { flex: .8; background: var(--ok); color: #fff; border-color: var(--ok); }
  .dk-grid { grid-template-columns: minmax(0, 1fr); }
  .dk-view { position: static; max-height: none; overflow: visible; margin: 0 -10px; padding: 10px; }
  .dk[data-view="edit"] .dk-view, .dk[data-view="preview"] .dk-form { display: none; }
}
@media (max-width: 420px) {
  .dk-sec-b { padding: 4px 10px 12px; }
  .dk-card { padding: 4px 9px 10px; }
  .dk-actions .btn.big { flex: 1; }
}
@media print {
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body > *:not(#dk-print) { display: none !important; }
  #dk-print { display: block !important; }
  #dk-print .pg { break-after: page; page-break-after: always; transform: none !important; margin: 0 !important; box-shadow: none !important; }
  #dk-print .pg:last-child { break-after: auto; page-break-after: auto; }
}
/* ==DKCSS-END== */

/* thumbnails */
.th-modern::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 34%; background: var(--dk-ac); }
.th-modern i:nth-child(1) { left: 42%; top: 9px; width: 45%; height: 5px; background: #2b2f3a; }
.th-modern i:nth-child(2) { left: 42%; top: 22px; width: 48%; }
.th-modern i:nth-child(3) { left: 42%; top: 32px; width: 40%; }
.th-modern i:nth-child(4) { left: 7%; top: 10px; width: 20%; height: 12px; border-radius: 50%; background: #fff; }
.th-classic i:nth-child(1) { left: 25%; top: 8px; width: 50%; height: 5px; background: #2b2f3a; }
.th-classic i:nth-child(2) { left: 12%; top: 20px; width: 76%; height: 1px; background: var(--dk-ac); }
.th-classic i:nth-child(3) { left: 12%; top: 28px; width: 70%; }
.th-classic i:nth-child(4) { left: 12%; top: 38px; width: 60%; }
.th-fresher::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--dk-ac); }
.th-fresher i:nth-child(1) { left: 10%; top: 12px; width: 45%; height: 5px; background: #2b2f3a; }
.th-fresher i:nth-child(2) { left: 10%; top: 26px; width: 80%; height: 5px; background: color-mix(in srgb, var(--dk-ac) 25%, #fff); }
.th-fresher i:nth-child(3) { left: 10%; top: 36px; width: 70%; }
.th-fresher i:nth-child(4) { left: 70%; top: 9px; width: 18%; height: 12px; background: #c9ced9; }
.th-ats i:nth-child(1) { left: 10%; top: 8px; width: 45%; height: 5px; background: #111; }
.th-ats i:nth-child(2) { left: 10%; top: 20px; width: 80%; height: 1px; background: #111; }
.th-ats i:nth-child(3) { left: 10%; top: 27px; width: 75%; }
.th-ats i:nth-child(4) { left: 10%; top: 36px; width: 65%; }
.th-elegant { border: 1px solid #d9dce5; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--dk-ac); }
.th-elegant i:nth-child(1) { left: 22%; top: 10px; width: 56%; height: 5px; background: var(--dk-ac); }
.th-elegant i:nth-child(2) { left: 14%; top: 24px; width: 20%; height: 3px; background: var(--dk-ac); }
.th-elegant i:nth-child(3) { left: 40%; top: 24px; width: 46%; }
.th-elegant i:nth-child(4) { left: 40%; top: 34px; width: 40%; }

/* ===== resume page (always light paper, never follows the site theme) ===== */
.pg { position: relative; overflow: hidden; background: #fff; color: #23262e; font-family: var(--rf); font-size: var(--fs); line-height: 1.42; text-align: left;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; color-scheme: light; box-sizing: border-box; }
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg-in { position: relative; height: 100%; display: flex; flex-direction: column; }
.pg-cols { display: flex; flex: 1 1 0; min-height: 0; }
.pg-col { min-width: 0; flex: 1 1 0; min-height: 0; }
.rs h1, .rs h2, .rs p, .rs ul { margin: 0; }
.rs .ic { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.16em; margin-right: .38em; flex: none; }
.rs .r-name { font-size: 2.15em; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; color: #15171c; }
.rs .r-title { font-size: 1.12em; color: var(--ac); font-weight: 600; margin-top: 3px; }
.rs .r-contact { display: flex; flex-wrap: wrap; gap: 3px 16px; margin-top: 8px; font-size: .93em; color: #444955; }
.rs .r-contact span { display: inline-flex; align-items: center; }
.rs .r-photo { width: 98px; height: 98px; object-fit: cover; border-radius: 10px; flex: none; }
.rs .r-hd { display: flex; align-items: center; gap: 20px; }
.rs .r-hd-txt { flex: 1; min-width: 0; }
.rs .r-h { font-size: 1.02em; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--ac); margin: 15px 0 6px; }
.rs .r-p { margin: 0 0 4px; }
.rs .r-item { margin-top: 8px; break-inside: avoid; }
.rs .r-h + .r-item { margin-top: 2px; }
.rs .r-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rs .r-t { font-weight: 700; color: #16181d; }
.rs .r-tech { font-weight: 400; color: #555b68; }
.rs .r-d { color: #5b6170; font-size: .92em; white-space: nowrap; flex: none; }
.rs .r-sub { color: #444955; font-size: .96em; }
.rs .r-o { font-weight: 600; color: var(--ac-dark); }
.rs .r-loc { color: #5b6170; font-size: .95em; text-align: right; }
.rs .r-ul { padding-left: 1.15em; margin: 2px 0 0; }
.rs .r-ul li { padding-left: .1em; }
.rs .r-ul li::marker { color: var(--ac); }
.rs .r-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.rs .r-chips span { background: var(--ac-soft); color: #1f232b; border-radius: 4px; padding: 2px 8px; font-size: .93em; }
.rs .r-cert { margin-top: 4px; }
.rs .r-t2 { font-weight: 600; }
.rs .r-sub2 { color: #5b6170; font-size: .93em; }
.rs .r-sub2::before { content: " — "; }
.rs .r-langs > div { display: flex; justify-content: space-between; gap: 10px; padding: 1px 0; }
.rs .r-langs i { font-style: normal; color: #5b6170; font-size: .93em; }
.rs .r-kv > div { display: grid; grid-template-columns: 9em 1fr; gap: 8px; padding: 1px 0; }
.rs .r-kv span { color: #5b6170; }
.rs .r-kv b { font-weight: 500; }
.rs .r-sign { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; }
.rs .r-signame { font-weight: 600; }

/* Modern: coloured sidebar on every page */
.tpl-modern .r-sidebg { position: absolute; left: 0; top: 0; bottom: 0; width: 33%; background: var(--ac-dark); }
.tpl-modern .pg-col.side { flex: 0 0 33%; padding: 38px 22px 30px 26px; color: #fff; position: relative; }
.tpl-modern .pg-col.main { padding: 40px 38px 34px 32px; }
.tpl-modern.pg-cont .pg-col.main { padding-top: 34px; }
.tpl-modern .side .r-photo { width: 128px; height: 128px; border-radius: 50%; border: 4px solid rgba(255,255,255,.85); display: block; margin: 0 auto 6px; }
.tpl-modern .side .r-h { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 4px; margin-top: 20px; font-size: .95em; }
.tpl-modern .side .r-side-top .r-h { margin-top: 18px; }
.tpl-modern .side .r-cl { list-style: none; padding: 0; margin: 0; font-size: .9em; }
.tpl-modern .side .r-cl li { display: flex; align-items: flex-start; padding: 3px 0; overflow-wrap: anywhere; }
.tpl-modern .side .r-cl .ic { margin-top: .2em; opacity: .85; }
.tpl-modern .side .r-chips span { background: rgba(255,255,255,.14); color: #fff; }
.tpl-modern .side .r-langs i, .tpl-modern .side .r-sub2, .tpl-modern .side .r-kv span { color: rgba(255,255,255,.75); }
.tpl-modern .side .r-kv > div { grid-template-columns: 1fr; gap: 0; padding: 2px 0; }
.tpl-modern .side .r-row { display: block; }
.tpl-modern .side .r-cert { font-size: .93em; }
.tpl-modern .side .r-sub2::before { content: ""; display: block; }
.tpl-modern .side .r-ul li::marker { color: #fff; }
.tpl-modern .side .r-p { font-size: .93em; }
.tpl-modern .r-namebox { padding-bottom: 12px; border-bottom: 3px solid var(--ac); margin-bottom: 2px; }
.tpl-modern .main .r-name { font-size: 2.3em; }
.tpl-modern .main .r-h { display: flex; align-items: center; gap: 8px; color: #16181d; }
.tpl-modern .main .r-h::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--ac); flex: none; }

/* Classic: centred serif-friendly header, ruled sections */
.tpl-classic .pg-in { padding: 46px 56px 40px; }
.tpl-classic .r-hd { flex-direction: column; text-align: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid #23262e; margin-bottom: 2px; }
.tpl-classic .r-hd-txt { width: 100%; }
.tpl-classic .r-photo { border-radius: 50%; width: 92px; height: 92px; }
.tpl-classic .r-name { font-size: 2.2em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tpl-classic .r-title { color: #3a3f4b; font-style: italic; font-weight: 500; }
.tpl-classic .r-contact { justify-content: center; }
.tpl-classic .r-contact .ic { color: var(--ac); }
.tpl-classic .r-h { border-bottom: 1px solid #c4c8d1; padding-bottom: 3px; letter-spacing: .14em; color: var(--ac); }
.tpl-classic .r-o { font-style: italic; color: #2c3039; font-weight: 500; }
.tpl-classic .r-chips span { background: none; padding: 0; border-radius: 0; }
.tpl-classic .r-chips { gap: 2px 0; }
.tpl-classic .r-chips span:not(:last-child)::after { content: "•"; margin: 0 8px; color: var(--ac); }

/* Fresh: accent band, soft headings, square photo */
.tpl-fresher .r-band { position: absolute; left: 0; right: 0; top: 0; height: 9px; background: var(--ac); }
.tpl-fresher .pg-in { padding: 40px 46px 38px; }
.tpl-fresher.pg-cont .pg-in { padding-top: 36px; }
.tpl-fresher .r-hd { flex-direction: row-reverse; align-items: flex-start; padding-bottom: 6px; }
.tpl-fresher .r-photo { border-radius: 12px; width: 104px; height: 104px; border: 3px solid var(--ac-soft); }
.tpl-fresher .r-name { color: var(--ac-dark); }
.tpl-fresher .r-contact .ic { color: var(--ac); }
.tpl-fresher .r-h { background: var(--ac-soft); color: var(--ac-dark); padding: 4px 10px; border-left: 4px solid var(--ac); border-radius: 0 6px 6px 0; margin-top: 14px; }
.tpl-fresher .r-chips span { background: #fff; border: 1px solid var(--ac-mid); color: var(--ac-dark); border-radius: 99px; padding: 1px 10px; }

/* ATS: plain single column, no colour, no photo, no icons */
.tpl-ats { color: #000; }
.tpl-ats .pg-in { padding: 44px 54px 40px; }
.tpl-ats .r-name { font-size: 1.85em; font-weight: 700; color: #000; letter-spacing: 0; }
.tpl-ats .r-title { color: #000; font-weight: 600; font-size: 1.05em; }
.tpl-ats .r-contact { color: #000; gap: 0; margin-top: 4px; }
.tpl-ats .r-contact .sep { white-space: pre; }
.tpl-ats .r-h { color: #000; border-bottom: 1px solid #000; padding-bottom: 2px; letter-spacing: .04em; margin-top: 14px; }
.tpl-ats .r-t, .tpl-ats .r-o { color: #000; }
.tpl-ats .r-o { font-weight: 600; }
.tpl-ats .r-d, .tpl-ats .r-loc, .tpl-ats .r-sub, .tpl-ats .r-sub2, .tpl-ats .r-langs i, .tpl-ats .r-kv span, .tpl-ats .r-tech { color: #000; }
.tpl-ats .r-ul li::marker { color: #000; }

/* Elegant: thin frame, headings in a left column */
.tpl-elegant .r-frame { position: absolute; inset: 16px; border: 1px solid var(--ac-mid); pointer-events: none; }
.tpl-elegant .pg-in { padding: 50px 54px 44px; }
.tpl-elegant .r-hd { padding-bottom: 14px; border-bottom: 1px solid var(--ac-mid); }
.tpl-elegant .r-photo { border-radius: 50%; width: 92px; height: 92px; }
.tpl-elegant .r-name { color: var(--ac-dark); font-weight: 600; letter-spacing: .02em; font-size: 2.3em; }
.tpl-elegant .r-title { color: #3a3f4b; letter-spacing: .08em; text-transform: uppercase; font-size: .95em; }
.tpl-elegant .r-contact .ic { color: var(--ac); }
.tpl-elegant .pg-col.main > * { margin-left: 25%; }
.tpl-elegant .pg-col.main > .r-h { margin-left: 0; float: left; width: 23%; clear: both; margin-top: 16px; font-size: .9em; letter-spacing: .12em; line-height: 1.3; }
.tpl-elegant .pg-col.main > .r-h + * { margin-top: 16px; }
.tpl-elegant .pg-col.main { display: flow-root; }
.tpl-elegant .r-chips span { background: none; border-bottom: 1px solid var(--ac-mid); border-radius: 0; padding: 0 2px; }
