/* MAKE MY CV (2026-10-29) -- templates/student/my_cv.html + js/cv-builder.js */
.cvb { --c-acc: var(--uk-saffron, #e8830c); --c-ink: var(--uk-ink, #1b1b1f); --c-mute: var(--uk-ink-3, #75757f); --c-line: var(--uk-line, #e8e6e1); }
.cvb-pad { padding: 16px 18px; }
.cvb-h { margin: 0; font: 600 17px/1.3 'Space Grotesk', system-ui, sans-serif; color: var(--c-ink); }
.cvb-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 12px; }
.cvb-sm { height: 30px !important; padding: 2px 8px !important; font-size: 13px !important; width: auto !important; display: inline-block; }

/* steps */
.cvb-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0 0 14px; }
.cvb-steps li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--uk-surface, #fff); border: 1px solid var(--c-line); border-radius: 12px; cursor: pointer; transition: .15s; }
.cvb-steps li b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--uk-soft, #f7f6f3); color: var(--c-mute); font-size: 14px; }
.cvb-steps li span { font-weight: 600; font-size: 14px; color: var(--c-ink); line-height: 1.2; min-width: 0; }
.cvb-steps li small { display: block; font-weight: 400; font-size: 12px; color: var(--c-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvb-steps li.on { border-color: var(--c-acc); box-shadow: 0 0 0 3px rgba(232, 131, 12, .15); }
.cvb-steps li.on b { background: var(--c-acc); color: #fff; }
.cvb-steps li.done b { background: var(--uk-green, #2e7d32); color: #fff; }
.cvb-draft { background: var(--uk-yellow-soft, #fff7d6); border: 1px solid #f2d67a; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cvb-draft[hidden] { display: none; }

/* 1 field */
.cvb-search { margin-bottom: 10px; }
.cvb-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cvb-cats button, .cvb-chips button { border: 1px solid var(--c-line); background: var(--uk-surface, #fff); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; color: var(--c-ink); }
.cvb-cats button.on { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.cvb-fields h4 { margin: 14px 0 8px; font-size: 14px; color: var(--c-mute); font-weight: 600; }
.cvb-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.cvb-field { text-align: left; display: grid; grid-template-columns: 34px 1fr; gap: 0 8px; padding: 10px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--uk-surface, #fff); cursor: pointer; transition: .12s; }
.cvb-field:hover { border-color: var(--uk-line-2, #d5d2ca); background: var(--uk-hover, #fff9ea); }
.cvb-field span { grid-row: span 2; font-size: 24px; line-height: 34px; text-align: center; }
.cvb-field b { font-size: 13.5px; color: var(--c-ink); }
.cvb-field small { font-size: 11.5px; color: var(--c-mute); line-height: 1.35; }
.cvb-field.on { border-color: var(--c-acc); background: var(--uk-saffron-soft, #fff1df); box-shadow: 0 0 0 2px rgba(232, 131, 12, .25); }
.cvb-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* 2 template + layout */
.cvb-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.cvb-split-4 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 980px) { .cvb-split, .cvb-split-4 { grid-template-columns: 1fr; } .cvb-steps { grid-template-columns: repeat(2, 1fr); } }
.cvb-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cvb-tpl { text-align: left; border: 1px solid var(--c-line); border-radius: 12px; padding: 8px; background: var(--uk-surface, #fff); cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.cvb-tpl b { font-size: 13px; color: var(--c-ink); } .cvb-tpl small { font-size: 11px; color: var(--c-mute); line-height: 1.3; }
.cvb-tpl.on { border-color: var(--a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 30%, transparent); }
.cvb-mini { display: block; height: 92px; border-radius: 6px; background: #fff; border: 1px solid #e5e7eb; position: relative; overflow: hidden; margin-bottom: 4px; }
.cvb-mini i { position: absolute; display: block; border-radius: 2px; }
.cvb-mini i:nth-child(1) { left: 0; right: 0; top: 0; height: 26px; background: var(--a); }
.cvb-mini i:nth-child(2) { left: 10px; top: 34px; width: 60%; height: 5px; background: #cbd5e1; box-shadow: 0 10px 0 #e2e8f0, 0 20px 0 #e2e8f0, 0 30px 0 #e2e8f0; }
.cvb-mini i:nth-child(3) { left: 10px; top: 76px; width: 40%; height: 5px; background: var(--a); opacity: .6; }
.cvb-mini i:nth-child(4) { right: 10px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .75); }
.cvb-mini-sidebar i:nth-child(1), .cvb-mini-corporate i:nth-child(1), .cvb-mini-purple i:nth-child(1) { right: auto; width: 34%; height: 100%; background: var(--b); }
.cvb-mini-sidebar i:nth-child(1) { background: #1e293b; } .cvb-mini-corporate i:nth-child(1) { background: #e5e7eb; } .cvb-mini-purple i:nth-child(1) { background: linear-gradient(#7c3aed, #4c1d95); }
.cvb-mini-sidebar i:nth-child(2), .cvb-mini-corporate i:nth-child(2), .cvb-mini-purple i:nth-child(2) { left: 40%; top: 12px; width: 50%; }
.cvb-mini-sidebar i:nth-child(4), .cvb-mini-corporate i:nth-child(4), .cvb-mini-purple i:nth-child(4) { left: 9px; right: auto; top: 10px; width: 20px; height: 20px; }
.cvb-mini-executive i:nth-child(1), .cvb-mini-teal i:nth-child(1), .cvb-mini-red i:nth-child(1) { height: 3px; top: 24px; left: 10px; right: 10px; }
.cvb-mini-twocol i:nth-child(3) { left: 55%; top: 34px; width: 35%; height: 5px; box-shadow: 0 10px 0 #e2e8f0, 0 20px 0 #e2e8f0; }
.cvb-mini-darkpro, .cvb-mini-mono { background: var(--b); border-color: #334155; }
.cvb-mini-darkpro i:nth-child(1) { background: #111827; } .cvb-mini-mono i:nth-child(1) { background: #020617; border-bottom: 2px solid var(--a); }
.cvb-mini-darkpro i:nth-child(2), .cvb-mini-mono i:nth-child(2) { background: #475569; box-shadow: 0 10px 0 #334155, 0 20px 0 #334155, 0 30px 0 #334155; }
.cvb-mini-infographic i:nth-child(3) { width: 70%; height: 6px; border-radius: 4px; box-shadow: 0 -8px 0 color-mix(in srgb, var(--a) 40%, #fff); }
.cvb-mini-green i:nth-child(1) { background: linear-gradient(90deg, #16a34a, #4ade80); } .cvb-mini-orange i:nth-child(1) { background: linear-gradient(90deg, #ea580c, #fb7185); }
.cvb-mini-navygold i:nth-child(1) { background: #0f1f3d; border-bottom: 3px solid var(--a); } .cvb-mini-bold i:nth-child(1) { height: 34px; }
.cvb-check { display: flex; gap: 8px; align-items: center; margin: 10px 0 2px; font-size: 13.5px; cursor: pointer; flex-wrap: wrap; }
.cvb-check input { width: 16px; height: 16px; accent-color: var(--c-acc); }

/* live preview */
.cvb-live { padding: 10px; position: sticky; top: 74px; background: #eef1f5; }
.cvb-live-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--c-mute); margin: 0 2px 8px; }
.cvb-frame { position: relative; overflow: hidden; border-radius: 6px; background: #fff; min-height: 300px; box-shadow: 0 4px 18px rgba(15, 23, 42, .12); }
.cvb-frame iframe { border: 0; transform-origin: 0 0; position: absolute; left: 0; top: 0; background: #fff; pointer-events: none; }
@media (max-width: 980px) { .cvb-live { position: static; } }

/* 3 sections */
.cvb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cvb-tabs button { position: relative; border: 1px solid var(--c-line); background: var(--uk-surface, #fff); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; cursor: pointer; color: var(--c-ink); }
.cvb-tabs button.on { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.cvb-tabs i { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.cvb-tabs i.ok { background: var(--uk-green, #2e7d32); border: 2px solid #fff; }
.cvb-tools { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; color: var(--c-mute); }
.cvb-sec { border-top: 1px solid var(--c-line); padding-top: 12px; }
.cvb-sec > .cvb-h { margin-bottom: 10px; }
.cvb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
@media (max-width: 600px) { .cvb-grid { grid-template-columns: 1fr; } }
.cvb-f.wide { grid-column: 1 / -1; }
.cvb-f > span { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cvb-hint { font-size: 11.5px; color: var(--c-mute); margin: 3px 0 6px; line-height: 1.35; }
.cvb-note { font-size: 13px; background: var(--uk-soft, #f7f6f3); border-radius: 8px; padding: 8px 10px; margin: 0 0 10px; }
.cvb-ai { border: 1px solid #c4b5fd; background: linear-gradient(90deg, #f5f3ff, #eef2ff); color: #5b21b6; border-radius: 999px; font-size: 11.5px; padding: 2px 9px; cursor: pointer; font-weight: 600; }
.cvb-ai:disabled { opacity: .6; cursor: wait; }
.cvb-item { border: 1px solid var(--c-line); border-radius: 12px; padding: 8px 10px 4px; margin-bottom: 10px; background: var(--uk-zebra, #fbfaf8); }
.cvb-item-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 13px; }
.cvb-item-h button { border: 0; background: transparent; cursor: pointer; padding: 2px 6px; color: var(--c-mute); font-size: 14px; }
.cvb-item-h button:hover { color: var(--uk-red, #c62828); }
.cvb-add { width: 100%; border-style: dashed !important; }
.cvb-modes { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13.5px; }
.cvb-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }

/* 4 */
.cvb-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cvb-inc { margin-top: 12px; padding-top: 6px; border-top: 1px solid var(--c-line); }
.cvb-inst p { margin: 0 0 10px; font-size: 13.5px; } .cvb-inst .cv-sm { font-size: 12px; color: var(--c-mute); }
.cvb-cert { display: flex; gap: 10px; align-items: center; } .cvb-cert img { flex: none; object-fit: contain; }
.cvb-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: #14532d; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 9999; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.cvb-toast.bad { background: #7f1d1d; }
[hidden].cvb-pane { display: none !important; }
.cvb-steps li { min-width: 0; }
@media (max-width: 600px) {
  .cvb-steps { gap: 6px; } .cvb-steps li { padding: 8px; gap: 7px; } .cvb-steps li b { width: 24px; height: 24px; font-size: 12px; }
  .cvb-steps li span { font-size: 12.5px; } .cvb-steps li small { font-size: 11px; }
  .cvb-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; } .cvb-cats button { flex: none; }
  .cvb-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px; } .cvb-tabs button { flex: none; }
  .cvb-pad { padding: 12px; } .cvb-fgrid { grid-template-columns: 1fr; }
}
/* 2026-10-29 more CVs + unlock */
.cvb-docs { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; margin: 0 0 12px; }
.cvb-docs-l { align-self: center; font-weight: 600; font-size: 13px; color: var(--c-mute); margin-right: 2px; }
.cvb-doc { display: flex; flex-direction: column; gap: 1px; padding: 7px 12px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--uk-surface, #fff); text-decoration: none; color: var(--c-ink); cursor: pointer; font: inherit; text-align: left; max-width: 260px; }
.cvb-doc b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cvb-doc small { font-size: 11.5px; color: var(--c-mute); }
.cvb-doc.on { border-color: var(--c-acc); background: var(--uk-saffron-soft, #fff1df); }
.cvb-doc-new { border-style: dashed; } .cvb-docdel { align-self: center; margin-left: auto; }
.cvb-newform { margin-bottom: 12px; } .cvb-newform[hidden] { display: none; }
.cvb-paybox { background: linear-gradient(135deg, #fff7ed, #fffbeb); border: 1px solid #fdba74; border-radius: 12px; padding: 12px 14px; margin: 10px 0; font-size: 13.5px; }
.cvb-paybox[hidden] { display: none; } .cvb-paybox b { font-size: 14.5px; } .cvb-paybox p { margin: 4px 0 8px; }
.cvb-warn { color: #9a3412; font-size: 12.5px; }
.cvb-upi { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; } .cvb-qr { width: 150px; flex: none; background: #fff; padding: 6px; border-radius: 8px; } .cvb-qr svg { width: 100%; height: auto; display: block; }
.cvb-photo { display: flex; gap: 10px; align-items: center; } .cvb-photo img, .cvb-photo i { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--uk-soft, #f7f6f3); display: grid; place-items: center; font-style: normal; font-size: 24px; }
.cvb-contact { margin-bottom: 8px; }
.cvb-grid > * { min-width: 0; } .cvb .uk-input { box-sizing: border-box; max-width: 100%; } .cvb-contact .uk-input { width: 100%; }
.cvb-sugg button { border-color: #c7d2fe; background: #eef2ff; color: #3730a3; }
.cvb-sample { background: var(--uk-soft, #f7f6f3); border-radius: 10px; padding: 8px 12px; margin: 2px 0 12px; font-size: 13px; }
.cvb-sample p { margin: 4px 0 8px; font-style: italic; } .cvb-sample ul { margin: 4px 0 8px; padding-left: 18px; }
/* guide popup + share panel (2026-10-29) */
.cvb-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(15, 23, 42, .55); display: flex; align-items: flex-start; justify-content: center; padding: 30px 12px; overflow-y: auto; }
.cvb-modal[hidden] { display: none; }
.cvb-modal-in { background: #fff; border-radius: 18px; max-width: 760px; width: 100%; padding: 20px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); position: relative; }
.cvb-modal-x { position: absolute; top: 10px; right: 12px; border: 0; background: #f1f5f9; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.cvb-modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; border-top: 1px solid var(--c-line); padding-top: 12px; }
.cvb-guide-btn { border: 1px solid #c7d2fe; background: #eef2ff; color: #3730a3; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.cvb-motiv { font-size: 13px; color: #9a3412; background: #fff7ed; border-radius: 10px; padding: 6px 10px; margin: 0 0 10px; }
.cvb-share { margin-top: 12px; border-top: 1px solid var(--c-line); padding-top: 12px; }
.cvb-share h3 { margin: 0 0 6px; font-size: 15px; } .cvb-share p { margin: 0 0 8px; font-size: 13px; color: var(--c-mute); }
.cvb-share .cvb-linkrow { display: flex; gap: 6px; } .cvb-share .cvb-linkrow input { flex: 1; min-width: 0; }
.cvb-nets { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; } .cvb-nets a { padding: 6px 11px; border-radius: 99px; color: #fff; text-decoration: none; font-weight: 600; font-size: 12.5px; }
.cvb-nets .n-wa { background: #16a34a; } .cvb-nets .n-li { background: #0a66c2; } .cvb-nets .n-fb { background: #1877f2; } .cvb-nets .n-x { background: #111; } .cvb-nets .n-tg { background: #229ed9; } .cvb-nets .n-em { background: #64748b; }
.cvb-share .cvb-thumb { width: 100%; max-width: 360px; border-radius: 10px; border: 1px solid var(--c-line); display: block; margin: 6px 0; }
.cvb-toggles { display: grid; gap: 4px; margin: 6px 0; } .cvb-toggles label { display: flex; gap: 8px; align-items: center; font-size: 13px; }
/* real design previews (2026-10-29) */
.cvb-tpl { cursor: pointer; } .cvb-tpl:focus { outline: 3px solid rgba(232,131,12,.35); outline-offset: 2px; }
.cvb-shot { position: relative; display: block; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; aspect-ratio: 420 / 594; background: #f8fafc; margin-bottom: 4px; }
.cvb-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cvb-eye { position: absolute; right: 6px; bottom: 6px; border: 0; border-radius: 99px; padding: 4px 9px; font-size: 11.5px; font-weight: 700; background: rgba(15,23,42,.82); color: #fff; cursor: pointer; }
.cvb-eye:hover { background: #0f172a; }
.cvb-tplbox { max-width: 980px; } .cvb-tplgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cvb-tplgrid img { width: 100%; height: auto; border-radius: 8px; border: 1px solid #e5e7eb; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
@media (max-width: 720px) { .cvb-tplgrid { grid-template-columns: 1fr; } }
.cvb-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 4px; } @media (max-width: 520px) { .cvb-plans { grid-template-columns: 1fr; } }
.cvb-plan { position: relative; text-align: left; border: 1.5px solid #fed7aa; background: #fff; border-radius: 12px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; font: inherit; }
.cvb-plan b { font-size: 20px; color: #0A3868; } .cvb-plan span { font-weight: 700; font-size: 13.5px; } .cvb-plan small { font-size: 11.5px; color: var(--c-mute); }
.cvb-plan em { position: absolute; top: -9px; right: 8px; font-style: normal; font-size: 10.5px; font-weight: 800; background: #16a34a; color: #fff; padding: 2px 7px; border-radius: 99px; }
.cvb-plan.on { border-color: #ea580c; box-shadow: 0 0 0 3px rgba(234,88,12,.18); background: #fff7ed; }
/* premium designs (website, 2026-10-29) */
.cvb-pbadge { position: absolute; left: 6px; bottom: 6px; background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; font-weight: 800; font-size: 10.5px; padding: 2px 8px; border-radius: 99px; box-shadow: 0 2px 6px rgba(180,83,9,.35); letter-spacing: .02em; }
.cvb-plans.prem .cvb-plan { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb, #fff); } .cvb-plans.prem .cvb-plan b { color: #92400e; }
.cvb-plans.prem .cvb-plan.on { border-color: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,.2); }
.cvb-upg { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1.5px dashed #d97706; background: #fffbeb; border-radius: 12px; padding: 10px 12px; margin: 8px 0 2px; }
.cvb-upg b { display: block; color: #92400e; font-size: 14px; } .cvb-upg small { color: #78350f; font-size: 12px; }
