/* =====================================================================
   CV PAGE LAYOUT  (template list on the left, CV on the right)
   ===================================================================== */
.cv-page{display:grid;grid-template-columns:250px minmax(0,1fr);gap:26px;padding:26px 0 70px;align-items:start}
.cv-aside{position:sticky;top:88px;background:#fff;border:1px solid #e4e9f1;border-radius:14px;padding:16px;box-shadow:0 8px 28px rgba(11,36,71,.08);max-height:calc(100vh - 108px);overflow:auto}
.cv-aside h3{color:#0b2447;font-size:.95rem;margin-bottom:12px}
.cv-aside .side-note{color:#667085;font-size:.8rem;margin-top:12px;line-height:1.35}
.cv-stage{min-width:0}
.cv-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.tpl-picker{display:flex;flex-direction:column;gap:10px}
.tpl-card{display:flex;gap:12px;align-items:center;border:2px solid #e4e9f1;border-radius:12px;padding:8px;background:#fff;text-align:left;color:#1d2939;transition:.15s}
.tpl-card:hover{text-decoration:none;border-color:#0e9f8e;background:#f7fcfb}
.tpl-card.on{border-color:#0e9f8e;background:#f0faf8;box-shadow:0 0 0 3px rgba(14,159,142,.15)}
.tpl-card .tx{min-width:0}
.tpl-card b{display:block;font-size:.9rem;line-height:1.2}
.tpl-card small{display:block;color:#667085;font-size:.73rem;line-height:1.25;margin-top:2px}
.tpl-card .tag-saved{display:inline-block;background:#e0f5e9;color:#14532d;font-size:.66rem;font-weight:700;border-radius:999px;padding:1px 8px;margin-top:4px}
.member-box .avatar-sm{width:84px;height:84px;margin:0 auto 10px;border-radius:50%;object-fit:cover;display:grid;place-items:center;color:#fff;font-weight:800;font-size:1.8rem;background:linear-gradient(135deg,#0b2447,#0e9f8e)}
.member-box h3{text-align:center;margin-bottom:2px}
.member-box p{text-align:center;font-size:.85rem;color:#667085;word-break:break-word}
.member-box .btn{display:block;width:100%;margin-top:10px}

/* thumbnails (54 x 72) */
.thumb{display:block;position:relative;width:54px;height:72px;flex:none;border:1px solid #d3dbe7;border-radius:4px;background:#fff;overflow:hidden}
.thumb span{position:absolute;display:block}
.thumb .sd{left:0;top:0;bottom:0;width:34%}
.thumb .hd{left:0;right:0;top:0;height:24%}
.thumb .ln{left:42%;right:8%;top:14%;bottom:8%;background:repeating-linear-gradient(#cfd7e3 0 2px,transparent 2px 6px)}
.th-modern .sd{background:#0f172a}
.th-creative .sd{background:#f1f5f9;border-right:3px solid #0d9488}
.th-classic .hd{border-bottom:2px solid #111;background:linear-gradient(#111,#111) 12% 40%/50% 3px no-repeat}
.th-classic .ln{left:12%;right:12%;top:32%}
.th-minimal .hd{background:linear-gradient(#0f172a,#0f172a) 12% 40%/45% 3px no-repeat;border-top:4px solid #0f172a}
.th-minimal .tb{left:10%;right:10%;top:28%;height:22%;background:repeating-linear-gradient(#e2e8f0 0 4px,#f6f8fb 4px 8px)}
.th-minimal .ln{left:10%;right:38%;top:56%}
.th-executive .hd{background:#0b2447;border-bottom:2px solid #2563eb}
.th-executive .col{right:6%;top:30%;bottom:8%;width:28%;background:#e6ecf5;border-radius:2px}
.th-executive .ln{left:10%;right:40%;top:30%}
.th-timeline .hd{background:#eef2f7;border-bottom:3px solid #2563eb}
.th-timeline .col{right:6%;top:30%;bottom:8%;width:28%;background:#dbeafe;border-radius:2px}
.th-timeline .ln{left:10%;right:40%;top:30%;border-left:2px solid #93c5fd;padding-left:2px}

/* skill quick-add chips in the registration form */
.skill-suggest{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.skill-suggest button{border:1px solid #cfd8e6;background:#f8fafc;color:#334155;border-radius:999px;padding:3px 11px;font-size:.78rem;cursor:pointer}
.skill-suggest button:hover,.skill-suggest button.on{background:#0e9f8e;border-color:#0e9f8e;color:#fff}

/* =====================================================================
   CV SHEET: shared
   ===================================================================== */
.cv-sheet{width:100%;background:#fff;min-height:1100px;box-shadow:0 10px 30px rgba(15,23,42,.14);color:#1f2937;
  font-family:"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:14px;line-height:1.5;overflow:hidden}
.cv-sheet *{box-sizing:border-box}
.cv-sheet h1,.cv-sheet h2,.cv-sheet h3{margin:0;text-align:left;font-weight:700}
.cv-sheet ul{list-style:none;margin:0;padding:0}
.cv-sheet p{margin:0}
.cv-sheet .avatar{margin:0;box-shadow:none;border:0;object-fit:cover;display:grid;place-items:center;font-weight:800;color:#fff;font-size:2.2rem;flex:none}
.cv-item{margin-bottom:16px;break-inside:avoid}
.item-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.item-head b{font-size:1rem;min-width:0}
.cv-col-side .item-head{display:block}
.cv-col-side .item-head .date{display:block;margin-top:1px}
.cv-sheet .date{font-size:.8rem;color:#64748b;white-space:nowrap;font-weight:600}
.cv-sheet .org{font-size:.9rem;font-weight:600}
.cv-sheet .bul{margin-top:5px}
.cv-sheet .bul li{position:relative;padding-left:16px;font-size:.89rem;margin:2px 0}
.cv-sheet .bul li::before{content:"";position:absolute;left:3px;top:.62em;width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.5}
.cv-summary{font-size:.92rem;white-space:pre-line}
.cert{margin-bottom:9px}
.cert b{display:block;font-size:.88rem}
.cert span{font-size:.78rem;opacity:.8}
.sk-group{margin-bottom:12px}
.sk-title{font-weight:700;font-size:.8rem;margin-bottom:4px}
.skill-chip{display:inline-block;border-radius:5px;padding:2px 9px;margin:0 4px 5px 0;font-size:.79rem}
.cv-id{margin-top:30px;font-size:.72rem;opacity:.65}
.cv-col-main,.cv-col-side,.cv-main,.cv-side{min-width:0;word-break:break-word}

/* =====================================================================
   1. NETWORK PRO  (dark sidebar)
   ===================================================================== */
.t-modern{display:grid;grid-template-columns:272px 1fr}
.t-modern .cv-side{background:#0f172a;color:#e2e8f0;padding:38px 24px}
.t-modern .avatar{width:124px;height:124px;border-radius:50%;margin:0 auto 24px;border:3px solid #38bdf8;background:#1e293b}
.t-modern .cv-side h3{color:#38bdf8;font-size:.76rem;letter-spacing:2px;text-transform:uppercase;margin:24px 0 10px;padding-bottom:6px;border-bottom:1px solid rgba(148,163,184,.3)}
.t-modern .contact li{padding:3px 0;font-size:.84rem}
.t-modern .sk-title{color:#fff}
.t-modern .skill-chip{display:block;background:none;padding:1px 0 1px 13px;margin:0;position:relative;color:#cbd5e1}
.t-modern .skill-chip::before{content:"\203A";position:absolute;left:0;color:#38bdf8;font-weight:700}
.t-modern .cert b{color:#fff}
.t-modern .cv-side p{font-size:.86rem}
.t-modern .cv-main{padding:42px 42px 42px 40px}
.t-modern h1{font-size:2.3rem;line-height:1.1;color:#0f172a;letter-spacing:-.5px}
.t-modern .role{color:#0369a1;font-weight:700;letter-spacing:2px;text-transform:uppercase;font-size:.84rem;margin:7px 0 6px}
.t-modern .cv-main h2{font-size:.92rem;letter-spacing:1.6px;text-transform:uppercase;color:#0f172a;border-left:4px solid #0ea5e9;padding-left:10px;margin:28px 0 14px}
.t-modern .item-head b{color:#0f172a}
.t-modern .org{color:#0369a1}

/* =====================================================================
   2. CORPORATE  (blue header band)
   ===================================================================== */
.t-executive .cv-head{background:linear-gradient(120deg,#0b2447,#1e3a8a);color:#fff;padding:34px 40px;display:flex;align-items:center;gap:22px}
.t-executive .avatar{width:104px;height:104px;border-radius:10px;background:#1e40af;border:3px solid rgba(255,255,255,.35)}
.t-executive .cv-head-text{flex:1;min-width:0}
.t-executive h1{color:#fff;font-size:2.2rem;line-height:1.1}
.t-executive .role{color:#93c5fd;text-transform:uppercase;letter-spacing:2.5px;font-size:.82rem;font-weight:600;margin-top:6px}
.t-executive .cv-contact{text-align:right;font-size:.82rem;color:#dbeafe;max-width:250px;word-break:break-word}
.t-executive .cv-contact li{padding:1px 0}
.t-executive .cv-body{display:grid;grid-template-columns:1fr 275px}
.t-executive .cv-col-main{padding:8px 34px 40px 40px}
.t-executive .cv-col-side{background:#f3f6fb;padding:8px 24px 40px;border-left:1px solid #e2e8f0}
.t-executive h2,.t-executive h3{color:#0b2447;text-transform:uppercase;letter-spacing:1.5px;border-bottom:2px solid #2563eb;padding-bottom:5px;margin:26px 0 13px}
.t-executive h2{font-size:.95rem}
.t-executive h3{font-size:.84rem}
.t-executive .item-head b{color:#0b2447}
.t-executive .org{color:#2563eb}
.t-executive .skill-chip{background:#dbeafe;color:#1e3a8a;font-weight:600}
.t-executive .sk-title{color:#0b2447}

/* =====================================================================
   3. ATS CLASSIC  (plain single column)
   ===================================================================== */
.t-classic{font-family:Arial,Helvetica,sans-serif;color:#111;padding:44px 50px}
.t-classic .cv-head{border-bottom:2px solid #111;padding-bottom:14px}
.t-classic h1{font-size:2rem;text-transform:uppercase;letter-spacing:1.5px;color:#111}
.t-classic .role{font-size:1.02rem;font-weight:600;margin:3px 0 8px;color:#333}
.t-classic .cv-contact{display:flex;flex-wrap:wrap;gap:2px 18px;font-size:.86rem;color:#333}
.t-classic h2{font-size:.9rem;text-transform:uppercase;letter-spacing:1.2px;border-bottom:1px solid #333;padding-bottom:3px;margin:22px 0 11px;color:#111}
.t-classic .item-head b{color:#111}
.t-classic .org{font-style:italic;font-weight:400;color:#333}
.t-classic .sk-group{display:flex;gap:8px;margin-bottom:5px}
.t-classic .sk-title{min-width:175px;margin:0;font-size:.88rem}
.t-classic .sk-items{flex:1}
.t-classic .skill-chip{display:inline;background:none;padding:0;margin:0;font-size:.88rem}
.t-classic .skill-chip:not(:last-child)::after{content:",\00a0"}
.t-classic .cert{margin-bottom:5px}
.t-classic .cert b,.t-classic .cert span{display:inline;font-size:.88rem}
.t-classic .cert span::before{content:"\00a0\2014\00a0"}

/* =====================================================================
   4. TECHNICAL  (skills matrix first)
   ===================================================================== */
.t-minimal{border-top:10px solid #0f172a}
.t-minimal .cv-head{padding:32px 40px 14px;display:flex;gap:22px;align-items:center}
.t-minimal .avatar{width:96px;height:96px;border-radius:50%;background:#0f172a}
.t-minimal h1{font-size:2.4rem;line-height:1.1;font-weight:800;color:#0f172a;letter-spacing:-.5px}
.t-minimal .role{text-transform:uppercase;letter-spacing:2px;font-size:.82rem;color:#475569;font-weight:700;margin-top:5px}
.t-minimal .cv-contact{display:flex;flex-wrap:wrap;gap:3px 18px;font-size:.84rem;color:#475569;margin-top:9px}
.t-minimal .cv-tech{padding:0 40px}
.t-minimal h2{font-size:.88rem;letter-spacing:1.6px;text-transform:uppercase;color:#0f172a;border-bottom:2px solid #0f172a;padding-bottom:5px;margin:22px 0 12px}
.t-minimal .tech-matrix .sk-group{display:grid;grid-template-columns:205px 1fr;gap:10px;padding:8px 12px;margin:0;align-items:start}
.t-minimal .tech-matrix .sk-group:nth-of-type(odd){background:#f1f5f9}
.t-minimal .tech-matrix .sk-title{margin:3px 0 0;font-size:.84rem;color:#0f172a}
.t-minimal .skill-chip{background:#e2e8f0;color:#1e293b;margin:0 5px 4px 0}
.t-minimal .cv-body{display:grid;grid-template-columns:1fr 285px}
.t-minimal .cv-col-main{padding:0 30px 40px 40px}
.t-minimal .cv-col-side{padding:0 40px 40px 10px}
.t-minimal .item-head b{color:#0f172a}
.t-minimal .org{color:#475569}

/* =====================================================================
   5. TEAL MODERN  (light sidebar)
   ===================================================================== */
.t-creative{display:grid;grid-template-columns:270px 1fr}
.t-creative .cv-side{background:#f1f5f9;padding:38px 24px;border-right:4px solid #0d9488}
.t-creative .avatar{width:124px;height:124px;border-radius:24px;margin:0 auto 24px;background:#0d9488}
.t-creative .cv-side h3{color:#0f766e;font-size:.76rem;letter-spacing:2px;text-transform:uppercase;margin:24px 0 10px;padding-bottom:6px;border-bottom:2px solid #99f6e4}
.t-creative .contact li{padding:3px 0;font-size:.84rem}
.t-creative .sk-title{color:#134e4a}
.t-creative .skill-chip{background:#ccfbf1;color:#115e59;font-weight:600}
.t-creative .cv-side p{font-size:.86rem}
.t-creative .cv-main{padding:42px 40px}
.t-creative h1{font-size:2.4rem;line-height:1.1;font-weight:800;color:#115e59;letter-spacing:-.5px}
.t-creative .role{color:#0d9488;font-weight:700;font-size:1rem;margin:6px 0 4px}
.t-creative .cv-main h2{font-size:.92rem;letter-spacing:1.5px;text-transform:uppercase;color:#0f766e;border-bottom:2px solid #99f6e4;padding-bottom:6px;margin:28px 0 14px}
.t-creative .item-head b{color:#134e4a}
.t-creative .org{color:#0d9488}

/* =====================================================================
   6. TIMELINE  (blue accent)
   ===================================================================== */
.t-timeline .cv-head{background:#f1f5f9;border-bottom:5px solid #2563eb;padding:34px 40px;display:flex;align-items:center;gap:22px}
.t-timeline .avatar{width:104px;height:104px;border-radius:50%;background:#2563eb;border:4px solid #fff;box-shadow:0 2px 10px rgba(37,99,235,.25)}
.t-timeline h1{color:#0f172a;font-size:2.3rem;line-height:1.1}
.t-timeline .role{color:#2563eb;font-weight:700;margin-top:5px}
.t-timeline .cv-contact{display:flex;flex-wrap:wrap;gap:3px 18px;font-size:.84rem;color:#475569;margin-top:9px}
.t-timeline .cv-body{display:grid;grid-template-columns:1fr 262px}
.t-timeline .cv-col-main{padding:6px 30px 40px 40px}
.t-timeline .cv-col-side{padding:6px 34px 40px 28px;border-left:1px dashed #bfdbfe}
.t-timeline h2,.t-timeline h3{color:#0f172a;text-transform:uppercase;letter-spacing:1.5px;border-bottom:2px solid #bfdbfe;padding-bottom:5px;margin:26px 0 14px}
.t-timeline h2{font-size:.92rem}
.t-timeline h3{font-size:.82rem}
.t-timeline .cv-item{position:relative;padding-left:22px;border-left:2px solid #bfdbfe;margin-left:6px;padding-bottom:2px}
.t-timeline .cv-item::before{content:"";position:absolute;left:-7px;top:6px;width:12px;height:12px;border-radius:50%;background:#2563eb;border:2px solid #fff;box-shadow:0 0 0 2px #bfdbfe}
.t-timeline .item-head b{color:#0f172a}
.t-timeline .org{color:#2563eb}
.t-timeline .skill-chip{background:#dbeafe;color:#1e3a8a;font-weight:600}
.t-timeline .sk-title{color:#0f172a}

/* =====================================================================
   Responsive / print
   ===================================================================== */
@media (max-width:980px){
  .cv-page{grid-template-columns:1fr}
  .cv-aside{position:static;max-height:none}
  .tpl-picker{flex-direction:row;overflow-x:auto;padding-bottom:6px}
  .tpl-card{flex:none;width:190px}
  .cv-aside .side-note{display:none}
  .t-modern,.t-creative,.t-executive .cv-body,.t-minimal .cv-body,.t-timeline .cv-body{grid-template-columns:1fr}
  .t-executive .cv-head,.t-minimal .cv-head,.t-timeline .cv-head{flex-direction:column;text-align:center}
  .t-executive .cv-contact{text-align:center;max-width:none}
  .t-minimal .cv-contact,.t-timeline .cv-contact{justify-content:center}
  .t-minimal .tech-matrix .sk-group{grid-template-columns:1fr}
  .t-classic{padding:28px 22px}
  .t-classic .sk-group{flex-direction:column;gap:2px}
  .cv-sheet h1{text-align:center}
}
@media print{
  .cv-aside,.cv-toolbar{display:none!important}
  .cv-page{display:block;padding:0}
  .container{width:100%}
  .cv-sheet{box-shadow:none;min-height:297mm}
}
