:root{--navy:#222A37;--amber:#F59E0B;--bg:#F3F5F8;--red:#DC2626;--green:#16A34A;--blue:#2563EB}
*{box-sizing:border-box}body{margin:0;font-family:"Noto Sans Georgian",system-ui,sans-serif;background:var(--bg);color:#111}
header{background:var(--navy);color:#fff;display:flex;align-items:center;gap:10px;padding:10px 14px;position:sticky;top:0;z-index:10}
header img.hl{height:38px}header h1{font-size:17px;margin:0;flex:1}header .accent{color:var(--amber)}
button,.btn{background:var(--amber);color:#111;border:0;border-radius:8px;padding:9px 14px;font-weight:600;cursor:pointer;font-size:14px;text-decoration:none;display:inline-block}
button.sec{background:#e2e8f0}button.ghost{background:transparent;color:#fff;border:1px solid #fff5}button.danger{background:var(--red);color:#fff}
main{max-width:900px;margin:0 auto;padding:12px}
.card{background:#fff;border-radius:12px;padding:14px;margin-bottom:10px;box-shadow:0 1px 3px #0001}
.task{border-left:5px solid var(--blue);cursor:pointer}.task.done{border-left-color:var(--green);opacity:.75}.task.overdue{border-left-color:var(--red);background:#FEF2F2}
.task h3{margin:0 0 6px;font-size:16px}.meta{font-size:13px;color:#555;display:flex;flex-wrap:wrap;gap:10px}
.badge{padding:2px 8px;border-radius:10px;font-size:12px;background:#e2e8f0}.b-new{background:#DBEAFE}.b-progress{background:#FEF3C7}.b-done{background:#DCFCE7}.b-over{background:var(--red);color:#fff}.p-high{background:#FECACA}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}select,input,textarea{padding:9px;border:1px solid #cbd5e1;border-radius:8px;font-size:15px;font-family:inherit;width:100%}
.filters select{width:auto;flex:1;min-width:140px}label{font-size:13px;color:#444;display:block;margin:8px 0 3px}
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--navy)}
.login .card{width:min(360px,92vw);text-align:center}.login img.ll{width:100%;max-width:280px}.login .card{background:transparent;box-shadow:none;color:#fff}.login label,.login p{color:#cbd5e1}.login h2{margin:8px 0 2px;color:var(--navy)}.login p{margin:0 0 12px;color:#666}
.row{display:flex;gap:8px}.row>*{flex:1}#map{height:320px;border-radius:10px;margin-top:8px}.files a{display:block;margin:4px 0}.err{color:var(--red);font-size:14px;min-height:18px}
.tabs{display:flex;gap:6px;margin-bottom:10px}.tabs button{flex:1}.tabs button.on{background:var(--navy);color:#fff}
.login p,.login label{color:#cbd5e1!important}h1,h2,h3{font-weight:800;letter-spacing:.3px}
header{flex-wrap:wrap}header h1{font-size:15px;min-width:0}header button{padding:6px 9px;font-size:12px}@media(max-width:480px){header h1{display:none}header img.hl{height:30px;margin-right:auto}}
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px;margin:8px 0}
.ph{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;background:#e2e8f0;cursor:pointer}
.ph img{width:100%;height:100%;object-fit:cover;display:block}
.ph .del{position:absolute;top:3px;right:3px;padding:2px 7px;font-size:13px;border-radius:12px;background:#000a;color:#fff;line-height:1.4}
.upbar{height:8px;background:#e2e8f0;border-radius:4px;overflow:hidden;margin-top:6px}.upbar>div{height:100%;width:0;background:var(--amber);transition:width .2s}
.upmsg{font-size:13px;color:#555;margin-top:4px}
.lb{position:fixed;inset:0;background:#000;z-index:100;display:flex;align-items:center;justify-content:center;touch-action:pan-y}
.lb img{max-width:100%;max-height:100%;object-fit:contain;user-select:none}
.lb button{position:absolute;background:#0008;color:#fff;font-size:22px;border-radius:24px;padding:6px 14px}
.lb .x{top:10px;right:10px}.lb .pv{left:8px;top:50%;transform:translateY(-50%)}.lb .nx{right:8px;top:50%;transform:translateY(-50%)}
.lb .cnt{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#fff;font-size:14px}
.task.unread{box-shadow:0 0 0 2px var(--amber),0 1px 3px #0001}.task.unread h3{font-weight:900}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--amber);margin-right:6px;vertical-align:middle}
.b-unread{background:var(--amber);color:#111;font-weight:700}
button.unread-h{border-color:var(--amber);color:var(--amber);font-weight:700}
.comments{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.cm{border-radius:10px;padding:8px 10px;border-left:4px solid #94a3b8;background:#f8fafc}
.cm.c-asg{border-left-color:var(--blue);background:#EFF6FF}.cm.c-adm{border-left-color:var(--amber);background:#FFFBEB}
.cm-h{display:flex;gap:8px;align-items:center;font-size:13px;flex-wrap:wrap}.cm-t{color:#666;margin-left:auto}
.cm-x{white-space:pre-wrap;word-break:break-word;margin-top:4px;font-size:15px}
.cm-del{padding:1px 7px;font-size:12px;background:#e2e8f0;border-radius:10px}
#cmt{margin-top:6px}
.ty-survey{background:#E9D5FF}.ty-planning{background:#CCFBF1}.ty-execution{background:#FED7AA;font-weight:700}.ty-none{background:#f1f5f9;color:#64748b}
.tblwrap{overflow-x:auto}.tbl{width:100%;border-collapse:collapse;margin-top:8px;font-size:14px}.tbl th,.tbl td{border:1px solid #cbd5e1;padding:6px 7px;text-align:left;vertical-align:middle}
.tbl th{background:#f1f5f9}.tbl td.num{text-align:right;white-space:nowrap}.tbl td.act{white-space:nowrap}.tbl td.act button{padding:5px 8px;margin:1px;font-size:13px}
.tbl td.pos{color:var(--green)}.tbl td.neg{color:var(--red)}
button.restock{background:var(--green);color:#fff}
.modal{position:fixed;inset:0;background:#0008;z-index:50;display:flex;align-items:flex-end;justify-content:center}
@media(min-width:600px){.modal{align-items:center}}
.mbox{background:#fff;width:min(560px,100vw);max-height:92vh;overflow:auto;border-radius:14px 14px 0 0;padding:16px}@media(min-width:600px){.mbox{border-radius:14px}}
.mbox h3{margin-top:0}.mbox .row{margin-top:10px}.big{font-size:18px}
.cdlist{max-height:48vh;overflow:auto;margin:8px 0;border:1px solid #e2e8f0;border-radius:8px}
.cdrow{display:flex;align-items:center;gap:8px;padding:8px;border-bottom:1px solid #eee}.cdn{flex:1;min-width:0}.cdn b{font-size:14px}
.cdq{width:90px!important;flex:0 0 90px;text-align:right}.cdq.bad{border-color:var(--red);background:#FEF2F2}.cdu{font-size:13px;color:#555;width:44px}
label.chk{display:flex;gap:8px;align-items:center;font-size:15px;color:#111;margin:10px 0}label.chk input{width:auto;transform:scale(1.3)}
.warn{color:#92400E!important}
.tbl.stock tr.item td{border-bottom:0}.tbl.stock tr.actrow td{border-top:0;padding-top:0;text-align:right;background:#fafbfc}
.tbl.stock tr.actrow button.restock{font-size:14px;padding:7px 14px}
.mbox.wide{width:min(900px,100vw)}
.tbl.imp td{font-size:13px}.tbl.imp tr.perr{background:#FEF2F2}.tbl.imp tr.pwarn{background:#FFFBEB}
.perr-t{color:var(--red);font-size:12px}.pwarn-t{color:#92400E;font-size:12px}
.dupw{background:#FFFBEB;border:1px solid #FCD34D;border-radius:8px;padding:8px 10px;margin:8px 0;font-size:14px}

/* done vs active (list) */
.task.done{opacity:.6;background:#F0F7F2;border-left-color:var(--green)}
.task.done .tt{text-decoration:line-through;text-decoration-color:#64748b;font-weight:500;color:#334155}
.task.done.unread{opacity:.85}
.task.done:hover{opacity:.85}
.b-donemark{background:var(--green);color:#fff;font-weight:700}
.task .closed{color:#166534}
.task.overdue{border-left-color:var(--red);background:#FEF2F2;box-shadow:0 0 0 1px #FCA5A5}
.task.overdue h3{color:#B91C1C}
.donesec{margin-top:18px}
.donehdr{display:flex;align-items:center;gap:6px;width:100%;background:none;border:0;border-top:1px solid #cbd5e1;border-radius:0;color:#475569;font-size:13px;font-weight:700;padding:10px 2px 8px;cursor:pointer;text-align:left}
.donehdr:hover{color:#166534;background:none}
.donehdr .chev{display:inline-block;transition:transform .15s}
.donesec.coll .chev{transform:rotate(-90deg)}
.donesec.coll .donelist{display:none}

/* crew */
.av{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#1E3A5F;color:#fff;font-size:10px;font-style:normal;font-weight:700;border:2px solid #fff;flex:none}
.crew{display:inline-flex;align-items:center}.crew .av{margin-left:-6px}.crew .av:first-child{margin-left:0}.crew .av.more{background:#64748b}.crew b{margin-left:4px;font-size:12px;color:#334155}
.crewbox{margin:10px 0;padding:10px;border:1px solid #e2e8f0;border-radius:10px;background:#F8FAFC}.crewbox h3{margin:0 0 8px}
.crewlist{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.cchip{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #cbd5e1;border-radius:16px;padding:2px 10px 2px 2px;font-size:13px}
.crewpick{max-height:52vh;overflow:auto;border:1px solid #e2e8f0;border-radius:8px;margin:8px 0}
.crewpick .cp{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid #f1f5f9;cursor:pointer;margin:0;font-weight:400}.crewpick .cp input{width:auto;margin:0}
.cm.c-crew{border-left:3px solid #1E3A5F}

/* users: manager toggle */
.urow{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 0;border-bottom:1px solid #eee}.urow .uinfo{flex:1;min-width:140px;display:flex;flex-direction:column}
.r-admin{background:#1E293B;color:#fff}.r-manager{background:#DBEAFE;color:#1E3A8A;font-weight:700}.r-employee{background:#e2e8f0}
.tgl{display:inline-flex;align-items:center;gap:8px;cursor:pointer;margin:0;font-weight:600;font-size:13px;user-select:none}
.tgl input{position:absolute;opacity:0;width:1px;height:1px}
.tgl .sl{position:relative;width:38px;height:22px;border-radius:11px;background:#cbd5e1;transition:background .15s;flex:none}
.tgl .sl:after{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .15s;box-shadow:0 1px 2px #0003}
.tgl input:checked+.sl{background:var(--green)}.tgl input:checked+.sl:after{left:19px}
.tgl input:focus-visible+.sl{outline:2px solid var(--amber)}
.tgl.big{margin-top:14px;font-size:15px}
button.ued{padding:4px 10px}
label.chk.small{font-size:12px;font-weight:400;display:flex;align-items:center;gap:6px;margin-top:6px}label.chk.small input{width:auto;margin:0}
.crcount{margin:6px 0;font-size:14px}.crcount span{color:#64748b;font-size:12px}

/* web push */
.pushban{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#FFF7E6;border:1px solid var(--amber);border-radius:10px;padding:10px 12px;margin-bottom:12px;font-size:14px}
.pushban span{flex:1;min-width:180px}.pushban button.x{background:none;border:0;font-size:16px;padding:4px 8px;color:#64748b}
.pushban.hint{background:#EFF6FF;border-color:#93C5FD}
.pushhint{background:#EFF6FF;border:1px solid #93C5FD;border-radius:8px;padding:8px 10px;font-size:13px}

/* ===== warehouse (საწყობი) — Ant Group branding ===== */
main.wh{max-width:1100px}
.whback{min-height:44px;margin-bottom:10px}
.whhero{background:linear-gradient(135deg,#222A37 0%,#2E3A4D 100%);color:#fff;border-radius:16px;padding:16px 18px;display:flex;align-items:center;gap:16px;box-shadow:0 6px 18px #222a3733;position:relative;overflow:hidden;margin-bottom:12px}
.whhero::after{content:'';position:absolute;right:-46px;top:-46px;width:170px;height:170px;border-radius:50%;border:16px solid #F59E0B26;pointer-events:none}
.whlogo{height:46px;width:auto;border-radius:6px;flex:0 0 auto}
.whhero h2{margin:0;font-size:22px;color:#fff}.whhero p{margin:3px 0 0;color:#CBD5E1;font-size:13px}
@media(max-width:600px){.whhero{flex-direction:column;align-items:flex-start;gap:8px;padding:14px 16px}.whlogo{height:34px}}
.whstats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}
@media(max-width:760px){.whstats{grid-template-columns:repeat(2,1fr)}}
.whstat{background:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 1px 3px #0001;border:1px solid #E5E9F0;border-top:4px solid var(--navy);text-align:left;color:#111;font-weight:400;display:flex;flex-direction:column;gap:4px;min-height:84px;min-width:0}
button.whstat{cursor:pointer;font-family:inherit}button.whstat:hover{box-shadow:0 4px 12px #0002}
.whstat .lbl{font-size:12px;color:#475569;font-weight:700}.whstat b{font-size:28px;line-height:1.1;color:var(--navy)}.whstat b.sm{font-size:15px;line-height:1.3}
.whstat .sub{font-size:12px;color:#64748B;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.whstat.s-zero{border-top-color:var(--red)}.whstat.s-zero b{color:#B91C1C}
.whstat.s-low{border-top-color:var(--amber)}.whstat.s-low b{color:#B45309}
.whstat.s-imp{border-top-color:var(--green)}
.whbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;background:#fff;border-radius:14px;padding:10px;box-shadow:0 1px 3px #0001;border:1px solid #E5E9F0;margin-bottom:10px}
.whsearch{flex:1 1 260px;position:relative;margin:0}
.whsearch svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:#64748B;pointer-events:none}
.whsearch input{padding:11px 12px 11px 40px;min-height:46px;border-radius:10px;border:1.5px solid #CBD5E1;background:#F8FAFC}
.whsearch input:focus,.whm input:focus,.whm select:focus,.whsort select:focus{outline:none;border-color:var(--navy);box-shadow:0 0 0 3px #222a3726;background:#fff}
.wh button:focus-visible,.whm button:focus-visible{outline:3px solid #F59E0B;outline-offset:2px}
.whbtns{display:flex;gap:8px;flex-wrap:wrap;flex:1 1 auto;justify-content:flex-end}
.whprim,.whsec{min-height:44px;border-radius:10px;padding:10px 16px;font-size:14px}
.whprim{background:var(--navy);color:#fff}.whprim:hover{background:#2E3A4D}
.whsec{background:#fff;color:var(--navy);border:1.5px solid #C7CFDB}.whsec:hover{border-color:var(--navy);background:#F8FAFC}
.whsec:disabled,.whprim:disabled{opacity:.55;cursor:wait}
@media(max-width:600px){.whbtns>*{flex:1 1 auto}.whbtns .whprim{flex-basis:100%}}
.whfil{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 6px;scroll-margin-top:calc(var(--hdrh,58px) + 8px)}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{min-height:44px;border-radius:999px;background:#fff;color:#334155;border:1.5px solid #CBD5E1;padding:8px 14px;font-weight:700;display:inline-flex;align-items:center;gap:6px}
.chip .cnt{display:inline-block;min-width:22px;padding:1px 7px;border-radius:999px;background:#E2E8F0;color:#1E293B;font-size:12px;text-align:center}
.chip[aria-pressed=true]{background:var(--navy);color:#fff;border-color:var(--navy)}.chip[aria-pressed=true] .cnt{background:var(--amber);color:#111}
.chip.c-zero[aria-pressed=true]{background:#B91C1C;border-color:#B91C1C}.chip.c-zero[aria-pressed=true] .cnt{background:#fff;color:#B91C1C}
.chip.c-low[aria-pressed=true]{background:#B45309;border-color:#B45309}.chip.c-low[aria-pressed=true] .cnt{background:#fff;color:#B45309}
.whsort{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;color:#475569;font-weight:700}.whsort select{width:auto;min-height:44px;border-radius:10px;border:1.5px solid #CBD5E1;background:#fff}
.whcount{font-size:12px;color:#64748B;margin:4px 2px 8px}
.code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;background:#EEF1F6;color:#222A37;border:1px solid #D5DBE5;border-radius:6px;padding:2px 7px;white-space:nowrap;letter-spacing:.02em}
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700;white-space:nowrap}
.pill::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}
.p-zero{background:#FEE2E2;color:#991B1B}.p-low{background:#FEF3C7;color:#92400E}.p-ok{background:#DCFCE7;color:#166534}
.whcards{display:grid;gap:10px}
.whcard{background:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 1px 3px #0001;border:1px solid #E5E9F0;border-left:5px solid var(--green)}
.whcard.st-zero{border-left-color:var(--red)}.whcard.st-low{border-left-color:var(--amber)}
.whc-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.whc-name{margin:8px 0 6px;font-size:16px;font-weight:700;line-height:1.35;color:#111;letter-spacing:0}
.whc-qty{display:flex;align-items:baseline;gap:6px;margin-bottom:10px}.whc-qty b{font-size:30px;color:var(--navy);line-height:1;font-variant-numeric:tabular-nums}.whc-qty span{color:#475569;font-size:14px;font-weight:600}
.whcard.st-zero .whc-qty b{color:#B91C1C}
.whc-act{display:flex;gap:6px}.whc-act .restock{flex:1}
.wh button.restock,.whm button.restock{min-height:44px;border-radius:10px;background:#15803D;color:#fff;padding:8px 14px}
.wh button.restock:hover{background:#166534}
.ib{min-width:44px;min-height:44px;padding:0 10px;border-radius:10px;background:#F1F4F8;color:var(--navy);border:1px solid #D5DBE5;font-size:17px;line-height:1}
.ib:hover{background:#E2E8F0}.ib.del{color:#B91C1C;background:#FEF2F2;border-color:#FECACA}.ib.del:hover{background:#FEE2E2}
.whtable{display:none}
@media(min-width:900px){.whcards{display:none}.whtable{display:block;background:#fff;border-radius:14px;box-shadow:0 1px 3px #0001;border:1px solid #E5E9F0;overflow:clip}}
.whtable .tbl{margin:0;font-size:14px;border-collapse:separate;border-spacing:0}
.whtable .tbl th{position:sticky;top:var(--hdrh,58px);z-index:2;background:var(--navy);color:#fff;font-weight:700;font-size:13px;padding:12px;border:0;text-align:left}
.whtable .tbl td{border:0;border-bottom:1px solid #EDF0F4;padding:8px 12px}
.whtable .tbl tbody tr:nth-child(even) td{background:#F8FAFC}
.whtable .tbl tbody tr:hover td{background:#FFF7E6}
.whtable .tbl th.num,.whtable .tbl td.num{text-align:right}.whtable .tbl td.num b{font-size:16px;font-variant-numeric:tabular-nums}
.whtable .tbl tr.st-zero td.num b{color:#B91C1C}.whtable .tbl td.nm{font-weight:600}
.whtable .tbl th.act,.whtable .tbl td.act{text-align:right;white-space:nowrap}
.whtable .tbl td.act button{padding:0 10px;margin:0 0 0 4px;font-size:17px}.whtable .tbl td.act button.restock{padding:8px 14px;font-size:14px}
.whempty{background:#fff;border-radius:16px;padding:28px 18px;text-align:center;border:2px dashed #CBD5E1}
.whill{width:104px;height:104px;margin:0 auto 10px;border-radius:50%;background:#EEF1F6;display:flex;align-items:center;justify-content:center}.whill svg{width:60px;height:60px}
.whempty h3{margin:6px 0;color:var(--navy)}.whempty p{color:#475569;max-width:440px;margin:0 auto 14px;font-size:14px;line-height:1.5}
.whempty .row{justify-content:center;flex-wrap:wrap}.whempty .row>*{flex:0 1 auto}
.whempty.sm{padding:18px;display:flex;flex-direction:column;align-items:center;gap:10px;color:#475569}
/* warehouse dialogs */
.modal.whm{background:#0F172AA6}
.whm .mbox{padding:0 18px 18px;border-top:5px solid var(--amber)}
.whm .mbox>h3,.whm .mbox>form>h3{margin:0 -18px 14px;padding:14px 18px;background:var(--navy);color:#fff;font-size:17px}
.whm .mbox button{min-height:44px;border-radius:10px}
.whm .mbox button:not(.sec):not(.danger):not(.ib):not(.restock){background:var(--navy);color:#fff}
.whm .mbox button.sec{background:#fff;color:var(--navy);border:1.5px solid #C7CFDB}
.whm .mbox button:disabled{opacity:.45;cursor:not-allowed}
.whm input,.whm select{min-height:44px;border-radius:10px;border:1.5px solid #CBD5E1}.whm select.ugs{min-height:36px}
.whm label{font-weight:700;color:#334155}
.whm .whdn{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.whm .whcur{background:#F1F4F8;border-radius:10px;padding:10px 12px}
.whm .big{background:#F0FDF4;border:1px solid #BBF7D0;border-radius:10px;padding:12px}
.whm .tblwrap{border:1px solid #E5E9F0;border-radius:10px;max-height:55vh;overflow:auto;margin-top:8px}
.whm .tbl{margin:0;border-collapse:separate;border-spacing:0;font-size:13px}
.whm .tbl th{background:#EEF1F6;color:var(--navy);border:0;border-bottom:2px solid #D5DBE5;position:sticky;top:0;z-index:1}
.whm .tbl td{border:0;border-bottom:1px solid #EDF0F4}
.whm .tbl tr:nth-child(even) td{background:#FAFBFD}
.whm .tbl.imp tr.perr td{background:#FEF2F2}.whm .tbl.imp tr.pwarn td{background:#FFFBEB}
.whm.imp p.meta span{background:#EEF1F6;border-radius:999px;padding:3px 10px;color:#334155}
.whm .dupw{border-radius:10px}

/* ===== app-wide Ant Group style: header/nav, task list, detail, forms, users ===== */
body{background:#F1F4F8}
main{max-width:1000px;padding:12px 14px 28px}
.card{border-radius:14px;border:1px solid #E5E9F0;box-shadow:0 1px 3px #0000000f}
button,.btn{background:var(--navy);color:#fff;border-radius:10px}
main button,.mbox button{min-height:44px}
button:disabled{opacity:.5;cursor:not-allowed}
button.sec{background:#fff;color:var(--navy);border:1.5px solid #C7CFDB}button.sec:hover{border-color:var(--navy);background:#F8FAFC}
button.danger{background:#B91C1C;color:#fff}
.login button{background:var(--amber);color:#111;min-height:46px}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select{min-height:44px;border-radius:10px;border:1.5px solid #CBD5E1;background:#fff}
textarea{border-radius:10px;border:1.5px solid #CBD5E1}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--navy);box-shadow:0 0 0 3px #222a3726}
button:focus-visible,.task:focus-visible{outline:3px solid var(--amber);outline-offset:2px}
label{font-weight:600;color:#334155}
.badge{padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:4px;line-height:1.4}
.b-new{background:#DBEAFE;color:#1E40AF}.b-progress{background:#FEF3C7;color:#92400E}.b-done{background:#DCFCE7;color:#166534}.b-pr{background:#EEF1F6;color:#334155}.p-high{background:#FEE2E2;color:#991B1B}
.ty-survey{background:#EDE9FE;color:#5B21B6}.ty-planning{background:#CCFBF1;color:#115E59}.ty-execution{background:#FFEDD5;color:#9A3412}.ty-none{background:#F1F5F9;color:#475569}
.b-donemark{background:#15803D;color:#fff}.b-over{background:#B91C1C;color:#fff}.b-unread{background:var(--amber);color:#111}
/* header + nav */
header.top{background:var(--navy);padding:8px 16px;gap:12px;flex-wrap:nowrap;box-shadow:0 2px 10px #0000002e;min-height:60px}
header.top .brand{background:none;padding:0;min-height:44px;display:flex;align-items:center;border-radius:8px}
header.top img.hl{height:38px;margin:0}
header.top .hsp{flex:1}
header.top button.unread-h{min-height:44px;padding:6px 12px;font-size:14px;border-radius:999px;background:#F59E0B1f;border:1.5px solid var(--amber);color:var(--amber);font-weight:800}
.tnav{display:flex;gap:4px}
.tnav .nb{background:transparent;color:#CBD5E1;border:0;border-radius:10px;padding:6px 12px;min-height:44px;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600}
.tnav .nb:hover{background:#ffffff14;color:#fff}
.tnav .nb.on{background:#ffffff1f;color:#fff;box-shadow:inset 0 -3px 0 var(--amber)}
@media(max-width:760px){
 header.top{padding:6px 12px;min-height:54px}header.top img.hl{height:32px}
 .tnav{position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--navy);justify-content:space-around;padding:4px 4px calc(4px + env(safe-area-inset-bottom));box-shadow:0 -2px 12px #0003;gap:2px}
 .tnav .nb{flex:1 1 0;flex-direction:column;gap:3px;padding:6px 2px;min-height:56px;font-size:10.5px;border-radius:8px;min-width:0}
 .tnav .nb .ni{font-size:19px;line-height:1}.tnav .nb .nl{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .tnav .nb.on{box-shadow:inset 0 3px 0 var(--amber)}
 body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
}
/* list page */
.lhero{background:linear-gradient(135deg,#222A37 0%,#2E3A4D 100%);color:#fff;border-radius:16px;padding:16px 18px;position:relative;overflow:hidden;margin-bottom:12px;box-shadow:0 6px 18px #222a3733}
.lhero::after{content:'';position:absolute;right:-46px;top:-46px;width:170px;height:170px;border-radius:50%;border:16px solid #F59E0B26;pointer-events:none}
.lhero h2{margin:0;font-size:22px;color:#fff}.lhero p{margin:3px 0 0;color:#CBD5E1;font-size:13px}
.whstat.s-act b{color:var(--navy)}
.whstat.s-over{border-top-color:var(--red)}.whstat.s-over b{color:#B91C1C}
.whstat.s-unr{border-top-color:var(--amber)}.whstat.s-unr b{color:#B45309}
.whstat.s-week{border-top-color:var(--green)}.whstat.s-week b{color:#15803D}
.whstat.on{box-shadow:0 0 0 3px #222a3755;background:#F8FAFC}
.filters{display:block;background:#fff;border:1px solid #E5E9F0;border-radius:14px;padding:10px;box-shadow:0 1px 3px #0001;margin-bottom:12px}
.fbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ftog{display:none}.ftog .cnt,.chip .cnt{display:inline-block;min-width:22px;padding:1px 7px;border-radius:999px;background:#E2E8F0;color:#1E293B;font-size:12px;text-align:center;margin-left:4px}
.fpanel{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;align-items:center}
.fpanel select{flex:1 1 170px;width:auto;min-width:150px}
.lnk{background:none;color:var(--navy);text-decoration:underline;padding:0 8px;font-weight:700}
.qfbar{margin:-4px 0 10px}
.fab{margin-left:auto;background:var(--amber);color:#111;font-weight:800;min-height:46px;border-radius:12px;padding:10px 18px;box-shadow:0 4px 12px #f59e0b55;font-size:15px}
.fab:hover{background:#FBBF24}
@media(max-width:760px){
 .ftog{display:inline-flex;align-items:center;margin-left:auto;min-height:44px}
 .filters:not(.fopen) .fpanel{display:none}
 .fpanel select{flex:1 1 100%}
 .fab{position:fixed;right:14px;bottom:calc(80px + env(safe-area-inset-bottom));z-index:25;border-radius:999px;padding:14px 20px;box-shadow:0 8px 22px #0004}
 main.lst{padding-bottom:90px}
}
.lempty{background:#fff;border-radius:16px;padding:28px 18px;text-align:center;border:2px dashed #CBD5E1;margin-bottom:12px}
.lempty h3{margin:6px 0;color:var(--navy)}.lempty p{color:#475569;max-width:440px;margin:0 auto 14px;font-size:14px;line-height:1.5}
.lempty.sm{padding:16px;display:flex;flex-direction:column;align-items:center;gap:10px;color:#475569}
/* task cards */
.card.task{border:1px solid #E5E9F0;border-left:5px solid #94A3B8;padding:12px 14px;margin-bottom:10px;transition:box-shadow .15s}
.card.task:hover{box-shadow:0 6px 16px #0000001a}
.task.tys-survey{border-left-color:#7C3AED}.task.tys-planning{border-left-color:#0D9488}.task.tys-execution{border-left-color:#EA580C}
.tk-top{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:6px}
.task h3{margin:0 0 6px;font-size:16px;line-height:1.35;color:#0F172A}
.tk-meta{gap:8px;align-items:center}
.tk-dl{display:inline-flex;align-items:center;gap:5px;font-weight:600;color:#334155}.tk-dl svg{width:15px;height:15px;flex:none}
.tk-dl.od{color:#B91C1C}.tk-dl.soon{color:#B45309}
.tk-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;padding-top:8px;border-top:1px dashed #E2E8F0;font-size:13px;color:#334155}
.tk-mgr{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.av.mgr{background:var(--navy);width:26px;height:26px}
.tk-cnt{margin-left:auto;display:flex;gap:10px;color:#475569}
.task.unread{box-shadow:0 0 0 2px var(--amber),0 2px 8px #f59e0b33}
/* keep done / overdue semantics (re-asserted after the type stripe) */
.task.done{opacity:.6;background:#F0F7F2;border-left-color:var(--green)}
.task.done .tk-foot{border-top-color:#CFE5D6}
.task.overdue{border-left-color:var(--red);background:#FEF2F2;box-shadow:0 0 0 1px #FCA5A5}
.task.overdue h3{color:#B91C1C}
.task.overdue.unread{box-shadow:0 0 0 2px var(--amber)}
.donehdr{min-height:44px}
/* task detail */
.whback{margin-bottom:10px}
.card.td{border-top:5px solid #94A3B8;padding:16px}
.td.tys-survey{border-top-color:#7C3AED}.td.tys-planning{border-top-color:#0D9488}.td.tys-execution{border-top-color:#EA580C}.td.overdue{border-top-color:var(--red)}
.td h2{margin:6px 0 12px;font-size:21px;line-height:1.3;color:#0F172A}
.tdfacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin-bottom:12px}
.fact{background:#F8FAFC;border:1px solid #E5E9F0;border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;gap:5px}
.fl{font-size:11px;color:#64748B;font-weight:700}
.tddesc{white-space:pre-wrap;background:#F8FAFC;border:1px solid #EEF1F6;border-radius:10px;padding:10px 12px;line-height:1.55;margin:10px 0}
.td>h3{font-size:15px;margin:20px 0 8px;padding-left:10px;border-left:4px solid var(--amber);color:var(--navy)}
.stseg{gap:6px}.stseg button{flex:1}
.crewbox{border-radius:12px;background:#F8FAFC;border-color:#E5E9F0}.crewbox h3{font-size:15px;color:var(--navy)}
.cchip{padding:3px 12px 3px 3px;border-radius:999px}
.cm{border-radius:12px;padding:10px 12px}
.cm-del{min-width:44px;min-height:44px;background:transparent;color:#64748B;font-size:14px;border-radius:10px;padding:0}
.cm-del:hover{background:#FEE2E2;color:#B91C1C}
.ph{border-radius:10px}.ph .del{width:34px;height:34px;padding:0;border-radius:50%;line-height:34px;text-align:center}
.ph .del::after{content:'';position:absolute;inset:-6px}
#phbtn{background:var(--navy);color:#fff}
.files a{padding:8px 0;font-weight:600;color:#1E40AF}
/* forms, settings, users */
.fcard h2,.fcard h3{color:var(--navy)}
.fcard h2{margin-top:2px}
.ucard h2{color:var(--navy)}
.urow{padding:12px 4px;gap:10px;border-bottom:1px solid #EEF1F6}
.av.lg{width:40px;height:40px;font-size:14px;border:0}
.av.r-admin-av{background:var(--navy)}.av.r-manager-av{background:#1E40AF}.av.r-employee-av{background:#64748B}
.urow .tgl{min-height:44px}.urow button.ued{min-width:44px}
.tgl .sl{width:44px;height:26px;border-radius:13px}.tgl .sl:after{width:20px;height:20px}.tgl input:checked+.sl:after{left:21px}
.mbox{border-top:5px solid var(--amber)}
/* ---- user management (edit / password / delete) ---- */
.urow .uact{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
.urow .uact button{min-width:44px;min-height:44px;padding:6px 10px;border-radius:10px;font-size:16px}
.urow button.udel{color:#B91C1C;border-color:#FCA5A5}
.urow button.udel:hover{background:#FEF2F2}
img.av.avimg{object-fit:cover;border-radius:50%;padding:0;display:inline-block;background:#E5E9F0}
.av.xl{width:56px;height:56px;font-size:18px;flex:none}
.uehead{display:flex;gap:12px;align-items:center;background:#F1F4F8;border-radius:10px;padding:10px 12px;margin-bottom:8px}
.uehead b{color:var(--navy)}
.pwf{position:relative;display:flex;align-items:center}
.pwf input{flex:1;width:100%;padding-right:54px;min-height:44px}
.pwf button.eye{position:absolute;right:2px;top:50%;transform:translateY(-50%);min-width:44px;min-height:44px;margin:0;padding:0;background:transparent!important;color:#334155;border:0;font-size:18px;box-shadow:none}
.pwshow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#F0FDF4;border:1px solid #BBF7D0;border-radius:10px;padding:12px;margin:10px 0}
.pwshow code{flex:1;min-width:200px;font-size:20px;font-weight:700;letter-spacing:.5px;color:#14532D;word-break:break-all;user-select:all}
.udact{background:#FFFBEB;border:1px solid #FDE68A;border-radius:10px;padding:10px 12px;margin:8px 0}
.udact ul,.udlist{margin:6px 0 8px;padding-left:20px}
.udact li{margin:4px 0}
.udlist{color:#334155}
.um code{background:#EEF1F6;border-radius:6px;padding:1px 6px;color:var(--navy)}
.okc{color:#15803D}
.meta.warn{color:#B45309}
.um .chk{display:flex;align-items:center;gap:8px;min-height:44px;font-weight:600}
.um .chk input{width:22px;height:22px;min-height:0}
.um .avrow{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.um .avrow input[type=file]{min-height:44px;border:1.5px dashed #CBD5E1;padding:8px;flex:1}
.um button.gen,.usr button#npg{margin-top:8px;min-height:44px}
.umdel .mbox{border-top-color:#B91C1C}
.umdel .mbox>h3{background:#7F1D1D!important}
.spw form{display:flex;flex-direction:column}
.spw button.whprim{margin-top:10px;align-self:flex-start}
@media (max-width:600px){.urow .uact{width:100%;justify-content:flex-end}.spw button.whprim{align-self:stretch}}
.pwshow code{font-size:18px;letter-spacing:0;white-space:nowrap;word-break:normal;min-width:0;overflow-x:auto}
/* ---- app update banner + manual update ---- */
.updban{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:10px;background:var(--navy);color:#fff;padding:8px 8px 8px 14px;padding-top:calc(8px + env(safe-area-inset-top,0px));border-bottom:3px solid var(--amber);box-shadow:0 4px 14px #0000003d}
.updban span{flex:1;font-weight:700;font-size:15px;line-height:1.3}
.updban #updgo{background:var(--amber);color:#1F2937;min-height:44px;border-radius:10px;font-weight:800;padding:8px 16px;border:0;white-space:nowrap}
.updban #updgo:focus-visible,.updban .x:focus-visible{outline:3px solid #fff;outline-offset:2px}
.updban .x{background:transparent;color:#fff;border:0;min-width:44px;min-height:44px;font-size:18px;padding:0}
body.hasupd header.top{top:var(--updh,0px)}
header.top button.hupd{min-width:44px;min-height:44px;border-radius:999px;padding:0;font-size:18px;border:1.5px solid #ffffff55;background:transparent;color:#fff}
.appupd #appver{font-family:ui-monospace,monospace;color:var(--navy)}
.appupd #appnew{color:#B45309;font-weight:700}
.appupd button.whprim{margin-top:6px}
