
:root{
  --accent:#E2531B; --accent-dark:#B8400F; --accent-soft:#FFF4EC;
  --ink:#1C1917; --muted:#57534E; --line:#E7E2DC; --soft:#FAF7F4; --bg:#F6F3EF;
  --green:#15803D; --green-soft:#E8F7EE; --red:#B91C1C; --red-soft:#FDECEC;
  --blue:#1D4ED8; --blue-soft:#E8EFFE; --yellow:#A16207; --yellow-soft:#FEF6DC; --teal:#0F766E; --teal-soft:#E3F6F4;
}
*{box-sizing:border-box}
body{margin:0;font-family:'Hind Siliguri',system-ui,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;font-size:15.5px}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;color:inherit}
input,select,textarea{font:inherit;color:var(--ink)}
h1,h2,h3,p{margin:0}
.num{font-family:'Manrope',sans-serif}
.muted{color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.hidden{display:none!important}
.wrap{max-width:1100px;margin:0 auto;padding:0 20px}

/* shared */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:0 18px;border-radius:12px;border:1px solid var(--line);background:#fff;font-weight:700;font-size:15px;white-space:nowrap}
.btn.pr{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.pr:hover{background:var(--accent-dark)}
.btn.gr{background:var(--green);border-color:var(--green);color:#fff}
.btn.dk{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.rd{color:var(--red);border-color:#F3C4C4}
.btn.sm{min-height:38px;padding:0 12px;font-size:14px;border-radius:10px}
.btn.block{width:100%}
.btn:disabled{opacity:.5;cursor:not-allowed}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px}
.card h2{font-size:19px}
.fld{display:flex;flex-direction:column;gap:6px}
.fld label,.lbl{font-size:14px;font-weight:600}
.fld label .req{color:var(--red)}
.inp,.sel,textarea{width:100%;min-height:48px;padding:10px 14px;border:1px solid #D6D0C9;border-radius:12px;background:#fff;outline:none;font-size:16px}
textarea{min-height:84px;resize:vertical}
.inp:focus,.sel:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(226,83,27,.14)}
.inp.err,.sel.err,textarea.err{border-color:var(--red);background:#FFFBFB}
.err-t{font-size:13px;color:var(--red)}
.hint{font-size:13px;color:var(--muted)}
.g2{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.g3{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.pill{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:700;white-space:nowrap}
.pill.green{background:var(--green-soft);color:var(--green)}.pill.orange{background:var(--accent-soft);color:#9A3412}.pill.blue{background:var(--blue-soft);color:var(--blue)}
.pill.yellow{background:var(--yellow-soft);color:var(--yellow)}.pill.red{background:var(--red-soft);color:var(--red)}.pill.grey{background:#F0ECE8;color:var(--muted)}.pill.teal{background:var(--teal-soft);color:var(--teal)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:40px;padding:0 14px;border:1px solid #D6D0C9;border-radius:999px;background:#fff;font-size:14.5px;font-weight:600}
.chip.on{background:var(--ink);border-color:var(--ink);color:#fff}
.opt{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid #D6D0C9;border-radius:14px;cursor:pointer;background:#fff}
.opt input{margin-top:3px;width:18px;height:18px;accent-color:var(--accent)}
.opt:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.opt small{display:block;color:var(--muted)}
.tg{position:relative;display:inline-flex;width:48px;height:28px;flex:0 0 auto;cursor:pointer}
.tg input{opacity:0;width:0;height:0;position:absolute}
.tg span{position:absolute;inset:0;background:#D6D0C9;border-radius:14px;transition:.15s}
.tg span::after{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.15s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.tg input:checked+span{background:var(--green)}
.tg input:checked+span::after{transform:translateX(20px)}
.tg input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:0}
.row .t b{display:block}.row .t small{color:var(--muted)}
.alert{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;font-size:14.5px;line-height:1.55}
.alert.ok{background:var(--green-soft);color:#14532D}.alert.warn{background:var(--yellow-soft);color:#713F12}.alert.info{background:var(--blue-soft);color:#1E3A8A}.alert.bad{background:var(--red-soft);color:#7F1D1D}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%) translateY(20px);background:var(--ink);color:#fff;padding:12px 18px;border-radius:12px;z-index:90;opacity:0;transition:.2s;pointer-events:none;max-width:calc(100% - 32px);text-align:center}
.toast.show{opacity:1;transform:translateX(-50%)}
.logo{display:flex;align-items:center;gap:10px}
.logo .mk{width:40px;height:40px;border-radius:12px;background:var(--accent);display:grid;place-items:center;flex:0 0 auto}
.logo b{font:800 21px 'Manrope',sans-serif;display:block;line-height:1}
.logo small{font-size:12.5px;color:var(--muted)}

/* public header */
.phead{background:#fff;border-bottom:1px solid var(--line)}
.phead .wrap{display:flex;align-items:center;gap:10px;min-height:66px;flex-wrap:wrap}
.phead nav{margin-left:auto;display:flex;gap:4px;flex-wrap:wrap}
.phead nav a{min-height:42px;padding:0 12px;border-radius:10px;display:flex;align-items:center;font-weight:600;color:var(--muted)}
.phead nav a.on,.phead nav a:hover{background:var(--soft);color:var(--ink)}
.hero{background:var(--accent-soft);padding:36px 0}
.hero h1{font-size:clamp(26px,4vw,40px);line-height:1.2}
.hero p{margin-top:8px;color:#44403C;font-size:17px;max-width:620px;line-height:1.6}
.perks{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}

/* stepper form */
.steps{display:flex;gap:6px;margin:24px 0 16px;overflow-x:auto;scrollbar-width:none}
.steps div{flex:1;min-width:110px;display:flex;flex-direction:column;gap:6px;font-size:13.5px;font-weight:600;color:var(--muted)}
.steps div i{display:block;height:6px;border-radius:3px;background:#E3DCD4}
.steps div.done i,.steps div.now i{background:var(--accent)}
.steps div.now{color:var(--ink)}
.form{display:flex;flex-direction:column;gap:16px}
.fnav{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:6px}
.up{display:flex;align-items:center;gap:12px;padding:12px;border:1px dashed #CFC6BC;border-radius:14px;background:var(--soft)}
.up .ic{width:48px;height:48px;border-radius:10px;background:#fff;display:grid;place-items:center;flex:0 0 auto;color:var(--muted)}
.up .t{flex:1;min-width:0}
.up .t b{display:block;font-size:15px}
.up .t small{color:var(--muted);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.up.done{border-style:solid;border-color:#B7E1C6;background:var(--green-soft)}
.up label.btn{cursor:pointer}
.up input[type=file]{position:absolute;width:1px;height:1px;opacity:0}
.sum div{display:grid;grid-template-columns:170px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.sum div span:first-child{color:var(--muted)}
.tl{display:flex;flex-direction:column}
.tl .s{display:flex;gap:12px;position:relative;padding-bottom:20px}
.tl .s:last-child{padding-bottom:0}
.tl .s .d{width:28px;height:28px;border-radius:50%;border:2px solid #D6D0C9;background:#fff;display:grid;place-items:center;flex:0 0 auto;z-index:1}
.tl .s:not(:last-child)::before{content:"";position:absolute;left:13px;top:28px;bottom:0;width:2px;background:#E7E2DC}
.tl .s.done .d{background:var(--green);border-color:var(--green);color:#fff}
.tl .s.done:not(:last-child)::before{background:var(--green)}
.tl .s.now .d{border-color:var(--accent);box-shadow:0 0 0 5px rgba(226,83,27,.15)}
.tl .s b{display:block}.tl .s small{color:var(--muted)}
.auth{max-width:440px;margin:40px auto;padding:0 20px}

/* panel */
.pan{display:flex;min-height:100vh}
.pside{width:240px;flex:0 0 240px;background:#fff;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:16px 12px;gap:4px}
.pside .rest{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;background:var(--soft);margin:12px 0}
.pside .rest i{width:40px;height:40px;border-radius:10px;flex:0 0 auto}
.pside a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:12px;font-weight:600;color:var(--muted)}
.pside a:hover{background:var(--soft);color:var(--ink)}
.pside a.on{background:var(--accent-soft);color:#9A3412}
.pside a .c{margin-left:auto;min-width:22px;height:22px;border-radius:11px;background:var(--accent);color:#fff;font:700 12px 'Manrope',sans-serif;display:grid;place-items:center;padding:0 6px}
.pmain{flex:1;min-width:0;display:flex;flex-direction:column}
.ptop{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:10px 22px;min-height:64px;flex-wrap:wrap}
.openbox{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 14px;border-radius:999px;border:1px solid var(--line);font-weight:700}
.pcontent{padding:22px;display:flex;flex-direction:column;gap:18px;max-width:1200px;width:100%}
.ph{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px}
.ph h1{font-size:24px}
.ph p{color:var(--muted)}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:2px}
.kpi span{color:var(--muted);font-size:14px}
.kpi b{font:800 26px 'Manrope',sans-serif}
.kpi small{font-size:13px}
.up2{color:var(--green)}
.newbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;border-radius:16px;background:var(--accent);color:#fff;font-weight:700;animation:pulse 1.4s infinite}
@keyframes pulse{50%{box-shadow:0 0 0 6px rgba(226,83,27,.25)}}
.ord{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:10px}
.ord.new{border:2px solid var(--accent)}
.ord .tp{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.ord .its{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:12px;background:var(--soft)}
.ord .its div{display:flex;justify-content:space-between;gap:10px}
.ord .its small{color:var(--muted);display:block}
.ord .acts{display:flex;gap:8px;flex-wrap:wrap}
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;align-items:start}
.col h3{font-size:16px;margin-bottom:10px;display:flex;justify-content:space-between}
.tbl{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#fff}
table{width:100%;border-collapse:collapse;min-width:560px}
th{font-size:13px;color:var(--muted);font-weight:600;text-align:left;padding:10px 14px;background:var(--soft);border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
tr:last-child td{border-bottom:0}
td .sub{display:block;font-size:13px;color:var(--muted)}
.bars{display:flex;align-items:flex-end;gap:6px;height:160px;padding-top:10px}
.bars .b{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;height:100%;justify-content:flex-end}
.bars .b i{display:block;width:100%;max-width:32px;background:var(--accent);border-radius:6px 6px 2px 2px;min-height:2px}
.bars .b small{font-size:11.5px;color:var(--muted)}
.hbar{display:flex;flex-direction:column;gap:10px}
.hbar .r{display:grid;grid-template-columns:150px 1fr 60px;gap:10px;align-items:center;font-size:14px}
.hbar .r .tr{background:#F0ECE8;border-radius:5px}
.hbar .r i{display:block;height:10px;border-radius:5px;background:var(--accent)}
.mb{position:fixed;inset:0;z-index:80;background:rgba(28,25,23,.5);display:none;align-items:center;justify-content:center;padding:20px}
.mb.open{display:flex}
.md{width:min(500px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:20px;padding:22px;display:flex;flex-direction:column;gap:14px}
.bnav{display:none}
.stars{color:#D97706;letter-spacing:1px}

/* research additions */
.kds{min-height:100vh;background:#1C1917;color:#fff;padding:20px;display:flex;flex-direction:column;gap:16px}
.kgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.kcard{background:#292524;border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:8px;border:2px solid #44403C}
.kcard.n{border-color:var(--accent);background:#3B2117}
.stk{display:flex;gap:6px;align-items:center}
.posg{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.posg button{min-height:72px;border:1px solid var(--line);border-radius:12px;background:var(--soft);display:flex;flex-direction:column;justify-content:center;gap:2px;padding:8px;text-align:left}
.posg button:hover{border-color:var(--accent)}
.posg button b{font-size:14px;line-height:1.3}
@media (max-width:900px){
  .pside{display:none}
  .bnav{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(5,1fr);height:66px;background:#fff;border-top:1px solid var(--line)}
  .bnav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:12px;color:var(--muted);position:relative}
  .bnav a.on{color:var(--accent-dark);font-weight:700}
  .bnav a .c{position:absolute;top:6px;left:56%;min-width:18px;height:18px;border-radius:9px;background:var(--accent);color:#fff;font:700 11px 'Manrope',sans-serif;display:grid;place-items:center;padding:0 4px}
  .pan{padding-bottom:70px}
  .ptop{padding:10px 14px}
  .pcontent{padding:16px}
  .hbar .r{grid-template-columns:110px 1fr 50px}
  .sum div{grid-template-columns:120px 1fr}
}

/* ---- live additions ---- */
details>summary{list-style:none;cursor:pointer}details>summary::-webkit-details-marker{display:none}
.pside form button:hover{color:var(--accent)}
#qr img,#qr canvas{display:block}
