[hidden]{display:none!important}
.app{max-width:1180px}
.apphead{display:flex;align-items:center;gap:6px;margin-inline-start:-10px}
.apphead h1{flex:1;font-size:24px}
.who{display:flex;align-items:center;gap:12px;font-size:13px;color:#8A9690}
.view{display:flex;flex-direction:column;gap:14px}
.card{background:#0F1312;border:1px solid #232B28;border-radius:20px;padding:20px}
.card h2,.step h2{margin:0 0 6px;font-size:19px}
.hero{border-color:#2F5A45;background:linear-gradient(160deg,#0F1D16,#0F1312)}
.ticks{margin:12px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;color:#C9D1CC}
.ticks li::before{content:'✓';color:#9EEFC3;font-weight:800;margin-inline-end:10px}
.stack{display:flex;flex-direction:column;gap:14px}
.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrapr{flex-wrap:wrap}
.grow{flex:1;min-width:0}
.muted{color:#8A9690;margin:0}.sm{font-size:13px}
.txt{width:100%;background:#07090A;border:1px solid #2A3430;border-radius:12px;color:#ECEFED;font-size:16px;padding:12px 14px;outline:none;font-family:inherit}
.txt:focus{border-color:#9EEFC3;box-shadow:0 0 0 3px rgba(158,239,195,.15)}
.area{resize:vertical;line-height:1.5}
.code{font-size:28px;letter-spacing:10px;text-align:center;font-weight:700}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border-radius:14px;border:1px solid #9EEFC3;background:#9EEFC3;color:#06210F;font-weight:700;font-size:15px;cursor:pointer;text-decoration:none;font-family:inherit}
.btn.ghost{background:transparent;color:#9EEFC3}
.btn.sm{min-height:36px;padding:0 12px;font-size:13px;border-radius:10px}
.btn:disabled{opacity:.5;cursor:default}
.link{background:none;border:0;color:#9EEFC3;font-weight:600;cursor:pointer;padding:6px 0;font-size:14px;font-family:inherit}
.link:disabled{color:#5A6660;cursor:default}
.link.danger{color:#F79A9A}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#ECEFED;color:#07090A;font-weight:600;padding:12px 18px;border-radius:12px;z-index:50;max-width:90vw;box-shadow:0 8px 30px rgba(0,0,0,.5)}
.toast.err{background:#F79A9A}
.plan{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.plan.on{border-color:#2F5A45}
.flow{display:flex;flex-direction:column;gap:0;position:relative}
.step{display:flex;gap:14px;align-items:flex-start;background:#0F1312;border:1px solid #232B28;border-radius:20px;padding:20px;position:relative}
.step.on{border:1.5px solid #9EEFC3;box-shadow:0 0 30px rgba(110,255,180,.15)}
.step.lock{opacity:.6}
.flow>*+*{margin-top:12px}
.flow>.step+.step::before,.flow>.cvlist+.step::before{content:'';position:absolute;left:37px;top:-13px;height:12px;border-left:2px dashed #2F5A45}
.num{width:34px;height:34px;border-radius:50%;background:#9EEFC3;color:#06210F;font-weight:800;display:flex;align-items:center;justify-content:center;flex:none}
.lock .num{background:#232B28;color:#8A9690}
.pill{font-size:12px;border:1px solid #2A3430;border-radius:99px;padding:4px 10px;color:#A3AEA8;white-space:nowrap}
.cvlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.cvlist:empty{display:none}
.cvi{display:flex;gap:12px;align-items:center;background:#0F1312;border:1px solid #232B28;border-radius:16px;padding:12px}
.cvi img,.cvi .ph{width:48px;height:60px;border-radius:8px;object-fit:cover;background:#1A211E;flex:none}
.cvi b{display:block}.cvi .acts{display:flex;gap:12px}
.score-sm{font-size:12px;color:#9EEFC3}
/* editor */
.tabsm{display:none;background:#0F1312;border:1px solid #232B28;border-radius:14px;padding:4px;gap:4px}
.tabsm button{flex:1;height:40px;border:0;border-radius:10px;background:transparent;color:#A3AEA8;font-weight:700;font-family:inherit;cursor:pointer}
.tabsm button.on{background:#9EEFC3;color:#06210F}
.editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);grid-template-areas:"form prev" "ats prev";gap:16px;align-items:start}
.pform{grid-area:form;display:flex;flex-direction:column;gap:12px}
.pprev{grid-area:prev;position:sticky;top:12px;display:flex;flex-direction:column;gap:12px}
.pats{grid-area:ats}
details.sec{background:#0F1312;border:1px solid #232B28;border-radius:16px;padding:0 16px}
details.sec[open]{padding-bottom:16px}
details.sec>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;font-weight:700;padding:16px 0;font-size:16px}
details.sec>summary::-webkit-details-marker{display:none}
details.sec>summary::after{content:'+';color:#9EEFC3;font-size:22px;font-weight:400}
details.sec[open]>summary::after{content:'–'}
.sec .stack{gap:12px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.item{border:1px dashed #2A3430;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px}
.photo{display:flex;gap:14px;align-items:center}
.photo img,.photo .ph{width:84px;height:105px;border-radius:12px;object-fit:cover;background:#1A211E;border:1px solid #2A3430;display:flex;align-items:center;justify-content:center;color:#5A6660;font-size:12px;text-align:center}
.req{color:#F7C66E;font-size:12px;font-weight:600}
.tpls{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.tpl{flex:none;border:1px solid #2A3430;background:#0F1312;color:#C9D1CC;border-radius:12px;padding:8px 12px;font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:8px;font-family:inherit}
.tpl i{width:14px;height:14px;border-radius:4px;display:block}
.tpl.on{border-color:#9EEFC3;color:#9EEFC3;box-shadow:0 0 14px rgba(110,255,180,.2)}
.paperwrap{background:#1A211E;border-radius:16px;padding:12px;overflow:hidden;position:relative}
.dl{display:flex;flex-wrap:wrap;gap:8px}
.dl .btn{flex:1 1 90px}
.ring{width:110px;height:110px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}
.ring b{width:86px;height:86px;border-radius:50%;background:#0F1312;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:800}
.checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:14px}
.checks li{display:flex;gap:10px;align-items:flex-start}
.checks .ok{color:#9EEFC3}.checks .no{color:#F7C66E}
.checks small{display:block;color:#8A9690}
.kw{display:flex;flex-wrap:wrap;gap:6px}
.kw span{font-size:12px;border-radius:99px;padding:3px 9px;border:1px solid #2A3430}
.kw .hit{border-color:#2F5A45;color:#9EEFC3}.kw .miss{border-color:#5B4A12;color:#F7C66E}
/* modal */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.7);display:flex;align-items:center;justify-content:center;padding:16px;z-index:40}
.modal[hidden]{display:none}
.sheet{background:#0F1312;border:1px solid #2F5A45;border-radius:22px;padding:22px;max-width:640px;width:100%;display:flex;flex-direction:column;gap:14px;max-height:92vh;overflow:auto}
.sheet h2{margin:0}
.x{background:none;border:0;color:#A3AEA8;font-size:30px;cursor:pointer;line-height:1}
.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pl{border:1px solid #2A3430;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px;text-align:center}
.pl.best{border-color:#9EEFC3;box-shadow:0 0 20px rgba(110,255,180,.15)}
.pl .pr{font-size:30px;font-weight:800}
.pl small{color:#8A9690}
@media (max-width:860px){
  .apphead h1{font-size:20px}
  .who span{display:none}
  .tabsm{display:flex}
  .editor{display:block}
  .editor .pane{display:none}
  .editor .pane.show{display:flex}
  .pats.show{display:block!important}
  .pprev{position:static}
  .plans{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
}

/* ===== CV paper (A4 at 794px) ===== */
.paper{width:794px;min-height:1123px;background:#fff;color:#1B1F1D;transform-origin:top left;font-family:Inter,Arial,sans-serif;font-size:13px;line-height:1.5;position:relative;--ac:#1F5F4A}
.paper *{box-sizing:border-box}
.paper .pg{padding:44px 50px}
.paper .hd{display:flex;gap:22px;align-items:center;margin-bottom:18px}
.paper .pic{width:108px;height:135px;object-fit:cover;border-radius:10px;flex:none;background:#EEF1EF}
.paper .nm{font-size:30px;font-weight:800;line-height:1.1;margin:0;color:#111}
.paper .tt{font-size:16px;font-weight:600;color:var(--ac);margin:4px 0 8px}
.paper .ct{font-size:12px;color:#4A5450;display:flex;flex-wrap:wrap;gap:4px 14px}
.paper h3{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--ac);margin:18px 0 8px;padding-bottom:5px;border-bottom:1.5px solid #DDE3E0}
.paper p{margin:0}
.paper .ex{margin-bottom:12px;break-inside:avoid}
.paper .exh{display:flex;justify-content:space-between;gap:10px;font-weight:700;color:#111}
.paper .exm{font-size:12px;color:#5A6660;white-space:nowrap;font-weight:500}
.paper .exc{color:#3A4440;font-weight:600}
.paper ul{margin:5px 0 0;padding-left:18px}
.paper li{margin:2px 0}
.paper .inl{display:flex;flex-wrap:wrap;gap:6px}
.paper .inl span{background:#F0F4F2;border-radius:6px;padding:2px 8px;font-size:12px}
.paper .empty{color:#9AA5A0;font-style:italic}
.paper .wm{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;font-size:110px;font-weight:900;color:rgba(31,95,74,.07);transform:rotate(-30deg);letter-spacing:8px}
/* t1 Classic */
.paper.t1 .pic{border-radius:50%;width:120px;height:120px}
/* t2 Modern: side stripe, photo right */
.paper.t2{--ac:#2647B8;border-left:14px solid var(--ac)}
.paper.t2 .hd{flex-direction:row-reverse;justify-content:space-between}
.paper.t2 h3{border-bottom:0;background:#EEF2FC;padding:5px 10px;border-radius:6px}
/* t3 Executive: centered, serif headings */
.paper.t3{--ac:#7A5A1E}
.paper.t3 .hd{flex-direction:column;text-align:center;gap:10px}
.paper.t3 .ct{justify-content:center}
.paper.t3 .pic{border-radius:50%;width:110px;height:110px}
.paper.t3 .nm,.paper.t3 h3{font-family:Georgia,'Times New Roman',serif}
.paper.t3 h3{text-align:center;letter-spacing:.14em;border-bottom:1px solid #D9CDB4}
/* t4 Minimal */
.paper.t4{--ac:#222}
.paper.t4 .hd{flex-direction:row-reverse;justify-content:space-between;border-bottom:2px solid #222;padding-bottom:16px}
.paper.t4 .pic{width:92px;height:115px;border-radius:4px;filter:grayscale(.15)}
.paper.t4 h3{border-bottom:0;letter-spacing:.18em;font-size:12px}
.paper.t4 .inl span{background:none;border:1px solid #DDD}
/* t5 Gulf: navy band */
.paper.t5{--ac:#14325C}
.paper.t5 .hd{background:#14325C;color:#fff;margin:-44px -50px 20px;padding:30px 50px}
.paper.t5 .nm{color:#fff}.paper.t5 .tt{color:#F2C46D}.paper.t5 .ct{color:#D6E0EE}
.paper.t5 .pic{border:3px solid #fff;border-radius:8px}
/* t6 Fresh: green band */
.paper.t6{--ac:#0E7A4D}
.paper.t6 .hd{background:#E6F6EE;margin:-44px -50px 20px;padding:28px 50px;border-bottom:3px solid #0E7A4D}
.paper.t6 .pic{border-radius:50%;width:118px;height:118px;border:4px solid #fff}

/* print: only the CV / letter */
#printroot{display:none}
@media print{
  @page{size:A4;margin:0}
  html,body{background:#fff!important}
  body>*:not(#printroot){display:none!important}
  #printroot{display:block!important}
  #printroot .paper{transform:none!important;box-shadow:none;min-height:0}
  #printroot .wm{display:none}
}

.pop{max-width:400px;text-align:center;align-items:center}
.popic{width:64px;height:64px;border-radius:50%;background:#9EEFC3;color:#06210F;font-size:34px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 0 30px rgba(110,255,180,.45)}
.pop .btn{width:100%}
.sent{align-self:flex-start;background:#0E1A14;border:1px solid #2F5A45;color:#9EEFC3;font-weight:700;font-size:14px;border-radius:99px;padding:6px 14px}
