@font-face{font-family:Heebo;font-weight:400;font-display:swap;src:url(/fonts/heebo-400.ttf) format("truetype")}
@font-face{font-family:Heebo;font-weight:500;font-display:swap;src:url(/fonts/heebo-500.ttf) format("truetype")}
@font-face{font-family:Heebo;font-weight:700;font-display:swap;src:url(/fonts/heebo-700.ttf) format("truetype")}
:root{--bg:#F5F7FA;--sf:#fff;--sf2:#F8FAFC;--tx:#0F172A;--mu:#64748B;--pr:#2563EB;--pr2:#1D4ED8;--prbg:#EFF6FF;--ln:#E2E8F0;--ln2:#CBD5E1;--ok:#16A34A;--bad:#DC2626;--badbg:#FEF2F2;--warn:#B45309;--me:#DBEAFE;--other:#F1F5F9;--sh:0 1px 2px rgba(15,23,42,.05);--nav:64px}
@media(prefers-color-scheme:dark){:root{--bg:#0B1220;--sf:#111A2E;--sf2:#16213A;--tx:#E5EAF3;--mu:#94A3B8;--pr:#60A5FA;--pr2:#93C5FD;--prbg:#16284A;--ln:#25324D;--ln2:#33425F;--ok:#4ADE80;--bad:#F87171;--badbg:#3A1620;--warn:#FBBF24;--me:#1E3A6B;--other:#1B2742;--sh:none}}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--tx);font:15px/1.55 Heebo,"Segoe UI",Arial,sans-serif;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}
h1,h2,h3{margin:0;font-weight:700}h2{font-size:18px}h3{font-size:15px}
a{color:var(--pr);text-decoration:none}
.skip{position:absolute;inset-inline-start:8px;top:-60px;background:var(--pr);color:#fff;padding:8px 14px;border-radius:8px;z-index:100}.skip:focus{top:8px}
:focus-visible{outline:3px solid var(--pr);outline-offset:2px}
.mu{color:var(--mu);font-size:13px}.sp{flex:1;min-width:0}.row{display:flex;gap:8px;align-items:center}.wrap{flex-wrap:wrap}.col{display:flex;flex-direction:column;gap:8px}
.boot{padding:40vh 0 0;text-align:center;color:var(--mu)}
#offline{background:#92400E;color:#fff;text-align:center;padding:6px;font-size:13px;position:sticky;top:0;z-index:60}
input,select,textarea,button{font:inherit;color:var(--tx)}
input,select,textarea{width:100%;background:var(--sf);border:1px solid var(--ln2);border-radius:10px;padding:9px 12px;min-height:44px}
input:focus,select:focus,textarea:focus{border-color:var(--pr);outline:none;box-shadow:0 0 0 3px rgba(37,99,235,.2)}
textarea{min-height:120px;resize:vertical}
label{display:block;color:var(--mu);font-size:13px;margin:12px 0 4px}
button{border:1px solid var(--ln2);background:var(--sf);border-radius:10px;padding:0 14px;min-height:44px;cursor:pointer;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:6px}
button:hover{background:var(--sf2)}button:disabled{opacity:.5;cursor:default}
button.pri{background:var(--pr);color:#fff;border-color:var(--pr)}button.pri:hover{background:var(--pr2)}
@media(prefers-color-scheme:dark){button.pri{color:#0B1220}}
button.sm{min-height:36px;padding:0 12px;font-size:13px}button.dng{color:var(--bad)}button.ghost{border-color:transparent;background:transparent}
button.ic{width:44px;padding:0;position:relative}
svg{flex:none}
.card{background:var(--sf);border:1px solid var(--ln);border-radius:14px;padding:14px;box-shadow:var(--sh)}
.card.hov{cursor:pointer}.card.hov:hover{border-color:var(--ln2)}
.badge{font-size:12px;border:1px solid var(--ln);border-radius:999px;padding:1px 9px;color:var(--mu);background:var(--sf2);white-space:nowrap}.tbadge{display:inline-flex;align-items:center;gap:4px}.tbadge svg{width:14px;height:14px;flex:none;vertical-align:-2px}
.badge.pr{color:var(--pr2);border-color:var(--ln2);background:var(--prbg)}.badge.ok{color:var(--ok)}.badge.bad{color:var(--bad);background:var(--badbg)}.badge.warn{color:var(--warn)}
.dot{min-width:20px;height:20px;border-radius:10px;background:var(--bad);color:#fff;font-size:11.5px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
/* layout */
#shell{min-height:100vh;display:flex;flex-direction:column}
header.top{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--ln);padding:8px 12px;display:flex;align-items:center;gap:8px}
header.top h1{font-size:18px;display:flex;align-items:center;gap:8px;flex:1}
.logo{width:26px;height:26px;border-radius:8px;background:var(--pr);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:14px}
#main{flex:1;max-width:1100px;width:100%;margin:0 auto;padding:12px 12px calc(var(--nav) + 24px + env(safe-area-inset-bottom))}
nav.tabs{position:fixed;bottom:0;inset-inline:0;z-index:40;display:flex;background:var(--sf);border-top:1px solid var(--ln);padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
nav.tabs button{flex:1;border:0;background:none;flex-direction:column;gap:1px;font-size:11.5px;color:var(--mu);min-height:52px;position:relative;border-radius:10px}
nav.tabs button.on{color:var(--pr);background:var(--prbg)}
nav.tabs .dot{position:absolute;top:2px;inset-inline-start:calc(50% + 6px)}
@media(min-width:900px){
 #shell{flex-direction:row;flex-wrap:wrap}
 nav.tabs{position:sticky;top:0;order:-1;width:220px;height:100vh;flex-direction:column;justify-content:flex-start;gap:4px;border-top:0;border-inline-start:1px solid var(--ln);padding:72px 10px 10px;align-self:flex-start}
 nav.tabs button{flex:none;flex-direction:row;justify-content:flex-start;padding:0 14px;min-height:44px;font-size:15px;gap:10px}
 nav.tabs .dot{position:static;margin-inline-start:auto}
 header.top{position:fixed;top:0;inset-inline:0;z-index:50}
 #main{padding-top:68px;width:calc(100% - 220px);max-width:none;margin:0}
 #main>*{max-width:980px;margin-inline:auto}
}
.grid{display:grid;gap:12px;grid-template-columns:1fr}
@media(min-width:760px){.grid.g2{grid-template-columns:1fr 1fr}.grid.g3{grid-template-columns:repeat(3,1fr)}}
.stat{display:flex;flex-direction:column;gap:2px}.stat b{font-size:26px;line-height:1.1}
/* chat */
.chat{display:grid;gap:10px;grid-template-columns:1fr}
@media(min-width:760px){.chat{grid-template-columns:220px 1fr}}
.chlist{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}
@media(min-width:760px){.chlist{flex-direction:column;overflow:visible}}
.chlist button{justify-content:flex-start;min-height:38px;font-size:14px;white-space:nowrap;border-color:transparent;background:transparent}
.chlist button.on{background:var(--prbg);color:var(--pr)}.chlist .dot{margin-inline-start:auto}.chlist h3{font-size:12px;color:var(--mu);margin:8px 6px 0;display:none}
@media(min-width:760px){.chlist h3{display:block}}
.msgs{height:calc(100dvh - 290px);min-height:240px;overflow:auto;display:flex;flex-direction:column;gap:6px;padding:4px}
@media(min-width:900px){.msgs{height:calc(100vh - 230px)}}
.m{max-width:85%;padding:6px 12px;border-radius:14px;background:var(--other);word-wrap:break-word;overflow-wrap:anywhere;white-space:pre-wrap;position:relative}
.m.me{align-self:flex-start;background:var(--me)}.m.ag{border:1px dashed var(--ln2)}
.m small{display:block;color:var(--mu);font-size:11.5px}.m.del{opacity:.55;font-style:italic}
mark.mn{background:transparent;color:var(--pr);font-weight:700}
.sugg{position:absolute;bottom:56px;inset-inline:0;background:var(--sf);border:1px solid var(--ln2);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.15);max-height:200px;overflow:auto;z-index:5}
.sugg button{width:100%;justify-content:flex-start;border:0;border-radius:0;min-height:40px}.sugg button.on{background:var(--prbg)}
.composer{position:relative}
/* tasks */
.filters{display:flex;gap:6px;overflow-x:auto;padding:2px 0 8px}
.filters select{width:auto;min-height:36px;padding:0 10px;font-size:13px}
.seg{display:inline-flex;border:1px solid var(--ln2);border-radius:10px;overflow:hidden}.seg button{border:0;border-radius:0;min-height:36px;font-size:13px}.seg button.on{background:var(--prbg);color:var(--pr)}
.board{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory}.lane{min-width:84%;scroll-snap-align:start;display:flex;flex-direction:column;gap:8px}
@media(min-width:760px){.lane{min-width:0;flex:1}}
.task{display:flex;gap:10px;align-items:flex-start;padding:10px 12px}.task .chk{width:24px;height:24px;min-height:24px;border-radius:50%;padding:0;flex:none;margin-top:1px}.task.done .tt{text-decoration:line-through;color:var(--mu)}
.task .chk.on{background:var(--ok);border-color:var(--ok);color:#fff}
.pri-high{border-inline-start:3px solid var(--bad)}.pri-low{border-inline-start:3px solid var(--ln2)}
.tl{position:relative;border-inline-start:1px solid var(--ln);margin:6px 0}.bar{position:absolute;height:24px;border-radius:6px;background:var(--pr);color:#fff;font-size:11.5px;padding:0 8px;line-height:24px;overflow:hidden;white-space:nowrap;cursor:pointer}.bar.done{background:var(--ok)}.bar.late{background:var(--bad)}
/* modal */
dialog{border:0;border-radius:16px;padding:0;width:min(560px,94vw);max-height:92dvh;background:var(--sf);color:var(--tx);box-shadow:0 20px 60px rgba(0,0,0,.35)}
dialog::backdrop{background:rgba(15,23,42,.5)}
dialog .mh{padding:14px 16px;border-bottom:1px solid var(--ln);display:flex;align-items:center;gap:8px}.mb{padding:4px 16px 16px;overflow:auto;max-height:calc(92dvh - 70px)}
.sr{position:fixed;inset:0;z-index:70;background:var(--bg);overflow:auto;padding:12px}.sr>div{max-width:720px;margin:0 auto}
.panel{position:fixed;top:56px;inset-inline-start:8px;width:min(380px,calc(100vw - 16px));max-height:75vh;overflow:auto;z-index:60;background:var(--sf);border:1px solid var(--ln);border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.2)}
.nt{padding:10px 14px;border-bottom:1px solid var(--ln);cursor:pointer;display:block;color:var(--tx)}.nt.un{background:var(--prbg)}
/* docs */
.md h1,.md h2,.md h3{margin:14px 0 6px}.md p,.md li{line-height:1.8}.md pre{background:var(--other);border-radius:10px;padding:12px;overflow:auto;direction:ltr;text-align:left}.md code{background:var(--other);border-radius:5px;padding:1px 5px;direction:ltr;unicode-bidi:embed}.md pre code{padding:0;background:none}.md blockquote{margin:8px 0;padding:2px 12px;border-inline-start:3px solid var(--pr);color:var(--mu)}
.tw{overflow:auto;max-width:100%}table{border-collapse:collapse;font-size:13px}th,td{border:1px solid var(--ln);padding:5px 9px;text-align:start;white-space:nowrap}th{background:var(--sf2)}
.frame{width:100%;height:72dvh;border:1px solid var(--ln);border-radius:12px;background:#fff}
.empty{text-align:center;color:var(--mu);padding:28px 10px}.empty svg{opacity:.5}
.err{color:var(--bad);background:var(--badbg);border-radius:10px;padding:10px 12px}
.center{max-width:400px;margin:10vh auto 0;padding:0 12px}
.bars{height:8px;border-radius:4px;background:var(--ln);overflow:hidden}.bars i{display:block;height:100%;background:var(--pr)}
.skel{height:56px;border-radius:14px;background:linear-gradient(90deg,var(--ln),var(--sf2),var(--ln));background-size:200% 100%;animation:sk 1.2s infinite}@keyframes sk{to{background-position:-200% 0}}
#toast{position:fixed;top:12px;left:50%;transform:translateX(-50%);background:#0F172A;color:#fff;border-radius:10px;padding:9px 16px;z-index:200;display:none;max-width:90vw}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
[hidden]{display:none!important}
.stats{display:grid;gap:8px;grid-template-columns:repeat(3,1fr)}.stats .stat{padding:10px 12px}.stats .stat b{font-size:24px}.stats .mu{font-size:12px}
.msgs{height:calc(100dvh - 350px)}
@media(min-width:900px){.msgs{height:calc(100vh - 230px)}}
.filters button{white-space:nowrap}.filters{-webkit-overflow-scrolling:touch}
@media(max-width:600px){.hd h2{flex-basis:100%}}
.chlist select{width:auto;flex:none;min-width:140px}
/* chat sides: mine on the right (start), others on the left */
.m{align-self:flex-end}.m.me{align-self:flex-start}
.navout{display:none}
@media(min-width:900px){nav.tabs .navout{display:flex;margin-top:auto;color:var(--mu)}#bo{display:none}}
/* auth */
.authwrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:radial-gradient(1200px 500px at 50% -10%,var(--prbg),transparent),var(--bg)}
.authcard{width:100%;max-width:420px;background:var(--sf);border:1px solid var(--ln);border-radius:20px;padding:32px 28px;box-shadow:0 10px 40px rgba(15,23,42,.08)}
.brand{text-align:center;margin-bottom:18px}.brand h1{font-size:24px;margin:10px 0 2px}.brand h2{margin-top:10px}.brand p{margin:0}
.logo.big{width:56px;height:56px;border-radius:16px;font-size:30px;margin:0 auto}
@media(min-width:900px){.authcard{padding:40px 40px;max-width:440px}}
.chat>*{min-width:0}
.fs{position:fixed;inset:0;z-index:90;background:#fff;display:flex;flex-direction:column}.fsb{display:flex;gap:8px;align-items:center;padding:8px 12px;background:var(--sf);color:var(--tx);border-bottom:1px solid var(--ln)}.fs iframe{flex:1;border:0;width:100%;background:#fff}

/* message menu */
.mhd{display:flex;align-items:center;gap:4px;margin:-2px -6px 0 -6px}.mhd small{display:block;padding-inline-start:4px}
.mbtn{min-height:32px;width:32px;padding:0;border:0;background:transparent;color:var(--mu);border-radius:8px}.mbtn:hover{background:rgba(0,0,0,.07);color:var(--tx)}
.pmenu{position:fixed;z-index:120;background:var(--sf);border:1px solid var(--ln2);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.22);padding:4px;min-width:170px;display:flex;flex-direction:column}
.pmenu button{border:0;justify-content:flex-start;min-height:44px;width:100%;border-radius:8px}.pmenu button.dng{color:var(--bad)}

.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{margin:0;cursor:pointer}.chip input{position:absolute;opacity:0;pointer-events:none}.chip span{display:inline-block;padding:6px 12px;border:1px solid var(--bd,#d6dce5);border-radius:999px;background:#fff;font-size:14px}.chip input:checked+span{background:#2563EB;color:#fff;border-color:#2563EB}.chip input:focus-visible+span{outline:2px solid #2563EB;outline-offset:2px}

.pcard{display:flex;flex-direction:column;gap:8px;text-decoration:none}.pbw{display:flex;flex-direction:column;gap:3px}
.bars.hot i{background:var(--bad)}.wl{display:flex;flex-direction:column;gap:4px}
.stats{grid-template-columns:repeat(2,1fr)}@media(min-width:760px){.stats{grid-template-columns:repeat(3,1fr)}}
.bad{color:var(--bad)}
/* dashboard v2 */
.dash{display:flex;flex-direction:column;gap:12px}.dh{margin:10px 2px 0}
.hero{background:linear-gradient(135deg,#EFF6FF 0%,#F8FAFC 60%,#fff 100%);border:1px solid var(--ln);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:14px;box-shadow:0 4px 18px rgba(37,99,235,.07)}
@media(prefers-color-scheme:dark){.hero{background:linear-gradient(135deg,#16284A,#111A2E)}}
.hero h2{font-size:21px}
.kpis{display:grid;gap:10px;grid-template-columns:repeat(2,1fr)}@media(min-width:760px){.kpis{grid-template-columns:repeat(4,1fr)}}
.kpi{display:flex;gap:10px;align-items:center;background:var(--sf);border:1px solid var(--ln);border-radius:14px;padding:10px 12px}
.kpi b{font-size:26px;line-height:1.1;display:block}.kpi .mu{display:block;font-size:12px}.kpi small{display:block;font-size:11px}
.kic{width:38px;height:38px;border-radius:12px;background:var(--prbg);color:var(--pr);display:flex;align-items:center;justify-content:center;flex:none}
.kpi.bad .kic{background:var(--badbg);color:var(--bad)}.kpi.bad b{color:var(--bad)}
.dgrid .card h3{margin-bottom:8px}.dn-w{gap:14px;align-items:center}.donut{width:140px;height:140px}.dn{font-size:26px;font-weight:700;fill:var(--tx)}.dl{font-size:11px;fill:var(--mu)}
.leg{display:flex;flex-direction:column;gap:6px;font-size:13px}.leg.row{flex-direction:row}.leg i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-inline-end:6px}
.lc,.cc{width:100%;height:auto;max-height:170px}.bad{color:var(--bad)}
.sbw{height:12px;border-radius:6px;display:flex;background:var(--ln);overflow:hidden}.sb{display:flex;height:100%;border-radius:6px;overflow:hidden;gap:2px;transform-origin:right;animation:grow .8s cubic-bezier(.2,.8,.2,1) both}.sb i{display:block;height:100%}.sbw.hot{box-shadow:0 0 0 2px var(--badbg)}
.prc{display:flex;gap:12px;align-items:center}
.fx{animation:up .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms)}
.dseg{animation:dr 1s cubic-bezier(.2,.8,.2,1) both}.ln{stroke-dasharray:600;animation:dl 1.2s ease-out both}.cbar{transform-box:fill-box;transform-origin:bottom;animation:cg .7s cubic-bezier(.2,.8,.2,1) both}
@keyframes up{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes dr{from{opacity:0;stroke-width:0}to{opacity:1}}
@keyframes dl{from{stroke-dashoffset:600}to{stroke-dashoffset:0}}
@keyframes cg{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){.fx,.dseg,.ln,.cbar,.sb{animation:none!important}}

.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.chip{background:var(--prbg);border:1px solid var(--ln2);border-radius:999px;padding:4px 6px 4px 12px;font-size:.85rem;display:inline-flex;gap:6px;align-items:center}.chip button{border:0;background:transparent;min-height:24px;min-width:24px;padding:0;font-size:1.1rem;cursor:pointer}
.cards{display:flex;flex-direction:column;gap:6px;margin-top:6px}.rc{display:flex;gap:8px;align-items:center;background:var(--sf);border:1px solid var(--ln2);border-radius:10px;padding:6px 8px}.rc.hid{color:var(--mu);font-size:.85rem}.rcb{flex:1;text-align:start;border:0;background:transparent;min-height:36px;cursor:pointer;color:inherit}.rc .sm{white-space:nowrap}
#slb{min-width:44px;font-weight:700;direction:ltr}a.btn{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--ln2);border-radius:10px;text-decoration:none;color:var(--pr);background:var(--sf)}
.rc{flex-wrap:wrap}.rcb{flex:1 1 150px;min-width:0;overflow-wrap:anywhere;word-break:normal;white-space:normal}.rc .sm{flex:0 0 auto}.sugg{max-height:240px}
.rcb b{white-space:nowrap}
.sugg{max-height:340px}

#mnb{position:fixed;top:12px;inset-inline:12px;z-index:60;display:flex;flex-direction:column;gap:8px;max-width:420px;margin-inline:auto;pointer-events:none}.mncard{pointer-events:auto;background:var(--sf);border:2px solid var(--pr);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.22);padding:12px}.mnb{margin-top:4px;color:var(--mu);font-size:.9rem;overflow-wrap:anywhere}
dialog{overflow:hidden}dialog[open]{display:flex;flex-direction:column}dialog .mh{flex:0 0 auto}.mb{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;max-height:none}dialog .mb *{min-width:0;max-width:100%}dialog .mb input,dialog .mb select,dialog .mb textarea{box-sizing:border-box;max-width:100%}
.pn{background:var(--prbg);border:1px solid var(--ln2);border-radius:10px;padding:6px 10px;font-size:.85rem;margin-bottom:6px}

.cal .cg{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;direction:rtl}.cal .cw{text-align:center;color:var(--mu);font-size:12px;padding:2px 0}
.cal .cd{min-height:84px;border:1px solid var(--ln);border-radius:8px;background:var(--sf);padding:3px;display:flex;flex-direction:column;gap:2px;align-items:stretch;text-align:start;overflow:hidden;min-width:0}
.cal .cd.out{background:transparent;border-color:transparent}.cal .cd.tdy{border-color:var(--pr)}.cal .cd.tdy .dn{color:var(--pr);font-weight:700}.cal .cd.sel{background:var(--prbg);border-color:var(--pr)}
.cal .dn{font-size:12px;color:var(--mu)}.cal .ch{display:block;background:var(--pr);color:#fff;border-radius:4px;font-size:11px;line-height:16px;padding:0 4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cal .ch.done,.cal .dots i.done{background:var(--ok)}.cal .ch.late,.cal .dots i.late{background:var(--bad)}.cal .ch.doing,.cal .dots i.doing{background:#0891B2}
.cal .more{font-size:11px;color:var(--mu)}.cal .dots{display:none;gap:2px;flex-wrap:wrap}.cal .dots i{width:6px;height:6px;border-radius:50%;background:var(--pr);display:block}
@media(max-width:640px){.cal .cd{min-height:48px;align-items:center}.cal .ch,.cal .more{display:none}.cal .dots{display:flex;justify-content:center}}

.how summary{cursor:pointer;color:var(--pr);min-height:36px;display:flex;align-items:center}.how ol{margin:4px 0;padding-inline-start:20px}.how li{margin:2px 0}.btn{display:inline-flex;align-items:center;border:1px solid var(--ln2);border-radius:10px;padding:0 12px;min-height:36px;color:var(--tx);text-decoration:none;background:var(--sf)}

.gr{border:0;background:transparent;color:var(--mu);min-width:36px;min-height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;cursor:grab;touch-action:none;flex:none;align-self:center}
.dnd-on,.dnd-on *{user-select:none;-webkit-user-select:none;cursor:grabbing!important}.dragging{opacity:.35}.ghost{margin:0}
.lane{border-radius:10px;transition:background .12s}.lane.over{background:var(--prbg);outline:2px dashed var(--pr);outline-offset:-2px}
.pcard{position:relative}.pcard .gr{position:absolute;inset-block-start:2px;inset-inline-end:2px}.board .pcard{padding-inline-end:34px}
.dnd-on .board{scroll-snap-type:none}
.ulogo{height:88px;width:auto;display:block;margin:0 auto}

#main>input[type=search]{display:block;width:100%}
.it{display:flex;align-items:center;gap:12px;color:inherit;padding:12px 14px}.it .itx{display:flex;flex-direction:column;gap:2px;min-width:0}.it .itx b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.it .itx .mu{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ti{flex:none;width:44px;height:44px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;background:var(--sf2);color:var(--mu);border:1px solid var(--ln)}
.ti.kb{background:var(--prbg);color:var(--pr);border-color:#BFDBFE}.ti.dc{background:#F0FDF4;color:var(--ok);border-color:#BBF7D0}.ti.rp{color:var(--tx)}
.note{margin-top:12px;font-size:13px}
@media(min-width:900px){#main>.hd{padding-bottom:10px;border-bottom:1px solid var(--ln);margin-bottom:14px!important}#ls{gap:8px}#main>.filters{margin-block:10px!important;padding-bottom:0}}

/* Scoped chat update: channel drawer on mobile, permanent list on desktop. */
.typing-status{min-height:25px;color:var(--muted,#657572);font-size:.84rem;padding:3px 8px}
.channel-toggle,.drawer-head,.channels-backdrop{display:none}
.chat .msgs{overflow-x:hidden}.chat .m{overflow-wrap:anywhere;max-width:94%}
@media(max-width:759px){
body:has(.chat) #main{padding:8px 8px 76px}.chat{display:block}.chat>section.card{padding:12px;border-radius:18px;min-width:0;display:flex;flex-direction:column;min-height:calc(100dvh - 174px)}
.chat>section>.row{flex-wrap:nowrap;gap:6px}.channel-toggle{display:inline-flex;align-items:center;flex-shrink:0;min-height:42px}.chat #chn{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.chat aside#channelDrawer{display:block;position:fixed;inset:0 0 0 auto;width:min(84vw,320px);height:100dvh;z-index:111;background:var(--card,#fff);padding:20px 14px;box-shadow:-12px 0 48px #152a3428;transform:translateX(110%);transition:transform .18s;overflow-y:auto;border-radius:20px 0 0 20px}
.channels-open .chat aside#channelDrawer{transform:translateX(0)}.drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.drawer-head button{font-size:28px;min-width:44px;min-height:44px}.chat aside .chlist{display:flex;flex-direction:column;max-height:none;overflow:visible}.chat aside .chlist button{text-align:right;min-height:46px;width:100%;white-space:normal;justify-content:flex-start}.chat aside .chlist h3{margin:20px 8px 8px}.channels-open .channels-backdrop{display:block;position:fixed;inset:0;background:#102d4166;backdrop-filter:blur(2px);z-index:110;border:0;border-radius:0}.channels-backdrop[hidden]{display:none}
.chat .msgs{height:calc(100dvh - 320px);min-height:220px;max-height:none;flex:1;padding:8px 0}.chat .composer{flex-wrap:nowrap;gap:6px}.chat .composer input{min-width:0;width:0;font-size:16px;min-height:44px}.chat .composer button{min-height:44px}.chat #chd{display:none}.chat #chm{font-size:.75rem;padding:6px}.chat .m{max-width:96%;padding:10px 12px}.chat .pn{font-size:.75rem}.chat .typing-status{font-size:.78rem;min-height:24px}.channels-open{overflow:hidden}
}

@media(max-width:759px){.chat aside#channelDrawer .chlist h3{display:block;font-size:.8rem;color:var(--muted,#657572);width:100%;padding:0 8px}}

/* Nexus identity and clearer source reading, original Ariel palette retained. */
.nexus-guide{margin:8px 0 12px;border:1px solid #d5e5e7;background:#f5faf9;border-radius:13px;overflow:hidden}.nexus-guide summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:9px;padding:10px 12px}.nexus-guide summary::-webkit-details-marker{display:none}.nexus-guide summary>span:first-of-type{display:flex;flex-direction:column;line-height:1.4}.nexus-guide b{font-size:.95rem;color:#163c64}.nexus-guide small{font-size:.73rem;color:#55716c}.nexus-guide .nexus-pill{margin-inline-start:auto;font-size:.72rem;color:#2b665b;padding:4px 8px;border-radius:20px;border:1px solid #d2e6df;background:white}.nexus-guide-body{padding:0 14px 14px;font-size:.86rem}.nexus-guide-body p{margin:6px 0 10px}.nexus-guide-body small{display:block;margin-top:10px}.agent-identity{display:flex;align-items:center;gap:7px}.nexus-avatar{border-radius:8px;flex-shrink:0}.chat .m.ag{background:#f3f8fb;border:1px solid #d3e2e9;border-inline-start:3px solid #4b9f91}.chat .m .bd{line-height:1.8}.message-source{color:#1e5d92;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;word-break:break-word}.message-source:hover{color:#16423c}.channel-filter{width:100%;min-height:40px;margin:5px 0 10px;font-size:.85rem}.chlist button[hidden]{display:none!important}
@media(max-width:759px){.nexus-guide summary{padding:8px 10px}.nexus-guide{margin:6px 0 8px}.nexus-guide small{font-size:.67rem}.nexus-guide .nexus-pill{font-size:.67rem;padding:3px 6px}.chat .msgs{min-height:180px;height:calc(100dvh - 390px)}.chat aside .channel-filter{font-size:16px;margin-bottom:8px}.chat .m .bd{font-size:.94rem}.chat .m.ag .mhd{margin-bottom:6px}}
@media(prefers-color-scheme:dark){.nexus-guide{background:#12272c;border-color:#2b4b50}.nexus-guide b{color:#acd8ee}.nexus-guide small{color:#a1c3ba}.nexus-guide .nexus-pill{background:#173930;border-color:#2d6557;color:#b3e6d9}.chat .m.ag{background:#152d3a;border-color:#2f4e60}.message-source{color:#8ac3ef}}
@media(min-width:760px){.chat>section.card{display:flex;flex-direction:column;height:calc(100dvh - 90px);min-height:500px}.chat>section.card>.msgs{height:auto;min-height:220px;flex:1}.chat>section.card>.composer{flex-shrink:0}.chat>section.card>.nexus-guide{flex-shrink:0}}
@media(max-width:759px){.nexus-guide[open] .nexus-guide-body{max-height:205px;overflow-y:auto}.nexus-guide[open] .nexus-guide-body>small{font-size:.72rem}}
/* Workspace 2: calm light surfaces, clear hierarchy, original Ariel identity. */
:root{--bg:#f3f6fa;--sf:#fff;--sf2:#f8fafc;--pr:#2357a4;--pr2:#193f7d;--prbg:#ecf3ff;--ln:#e1e8f0;--tx:#15283e;--mu:#66798e;--nav:68px}
.top h1>span:last-child{display:flex;flex-direction:column;font-size:17px;line-height:1.4}.top h1 small{font-size:10px;font-weight:400;letter-spacing:.02em;color:var(--mu)}.top .logo{background:#153c64;border-radius:10px;box-shadow:0 2px 4px #153c6412}.workspace-search{display:flex;align-items:center;gap:9px;min-width:280px;min-height:39px;background:#fff;border:1px solid var(--ln);color:var(--mu);font-weight:400;font-size:12px}.workspace-search kbd{margin-inline-start:auto;font:10px ui-monospace,monospace;padding:2px 5px;border:1px solid var(--ln);border-radius:4px;background:var(--sf2)}.workspace-profile{margin-top:auto;display:flex;align-items:center;gap:10px;padding:18px 12px 8px;border-top:1px solid var(--ln);font-size:12px}.workspace-profile>span:last-child{display:flex;flex-direction:column}.workspace-profile small{font-size:10px;color:var(--mu)}.profile-initial{width:32px;height:32px;border-radius:50%;background:#eaf2f5;color:#315968;display:grid;place-items:center;font-weight:700}.tabs .navout{margin-top:4px}.tabs button[data-tab]{border-radius:10px;transition:background .15s,color .15s}.tabs button[data-tab].on{background:#e8f0fd;color:#1d519c;font-weight:700}.card{border-radius:14px;box-shadow:0 2px 5px #183a5a03}.card.hov:hover{border-color:#b9cce4;box-shadow:0 4px 12px #183a5a08}.eyebrow{display:block;color:#72869c;font-size:10px;font-weight:500;letter-spacing:.04em;margin-bottom:4px}.workspace-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 24px}.workspace-welcome h2{font-size:29px;letter-spacing:-.035em;line-height:1.3;margin:0 0 7px}.workspace-welcome p{margin:0;color:var(--mu);font-size:14px}.welcome-date{text-align:end;display:flex;flex-direction:column;font-size:12px;gap:3px;color:var(--mu)}.welcome-date b{color:var(--tx);font-size:14px}.workspace-home .stats{gap:14px;margin-bottom:28px}.workspace-home .stat{padding:19px 22px;border-top:3px solid #2357a4}.workspace-home .stat:nth-child(2){border-top-color:#bf7c42}.workspace-home .stat:nth-child(3){border-top-color:#4d9b91}.workspace-home .stat b{font-size:34px;line-height:1.2;margin-top:6px}.workspace-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:28px;align-items:start}.workspace-columns>section{gap:12px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 2px}.section-title h3{font-size:17px;line-height:1.4}.workspace-columns .section-title:not(:first-child){margin-top:22px}.text-link{color:var(--pr);font-size:12px}.home-projects{display:grid;grid-template-columns:1fr 1fr;gap:12px}.home-projects .pcard{padding:18px;min-height:170px;display:flex;flex-direction:column;gap:12px}.home-projects .pcard .pbw{margin-top:auto}.pcard .bars{height:5px;border-radius:5px}.pcard .bars i{background:#4e9f91}.workspace-empty{padding:30px;text-align:center;background:var(--sf);border:1px dashed #cbd9e8;border-radius:14px;color:var(--mu)}.workspace-empty>svg{color:#7da59a}.workspace-empty h3{font-size:16px;color:var(--tx);margin:8px 0}.workspace-empty p{max-width:340px;margin:0 auto 16px;font-size:13px}.workspace-aside{gap:20px}.nexus-home-card{padding:23px;background:#153b62;color:#fff;border-radius:17px;box-shadow:0 10px 22px #153b6212}.nexus-home-card .eyebrow{color:#add2dd;font-size:9px}.nexus-home-card h3{font-size:17px;line-height:1.4}.nexus-home-card p{font-size:13px;line-height:1.9;color:#d7e4ef;margin:16px 0}.nexus-home-card small{display:block;margin-top:13px;color:#b7cddf;font-size:10px;line-height:1.7}.nexus-start{display:flex;align-items:center;justify-content:space-between;width:100%;background:#a3e0cf;border:none;color:#123c3b;font-size:12px;font-weight:700;padding:10px 13px;border-radius:8px}.nexus-start:hover{background:#bbecde}.quick-links{padding:18px}.quick-links h3{font-size:14px;margin-bottom:12px}.quick-links a{display:flex;align-items:center;gap:10px;padding:12px 0;color:var(--tx);font-size:12px;border-bottom:1px solid var(--ln)}.quick-links a:last-child{border:0;padding-bottom:0}.quick-links a>span{margin-inline-start:auto;color:var(--mu)}.quick-links svg{color:#547b9c}.quiet-state{font-size:12px;color:var(--mu);padding:20px}.notification-preview{display:block;margin-bottom:9px;font-size:12px;color:var(--tx)}.notification-preview p{color:var(--mu);margin:5px 0}.notification-preview small{color:var(--mu);font-size:10px}.sr>div{border-radius:18px}.sr input{min-height:48px;font-size:16px}.filters{padding:12px;background:var(--sf);border:1px solid var(--ln);border-radius:12px;gap:8px}.task{padding:15px 18px}.task .tt b{font-weight:500}.task .chk{border-radius:7px}.badge{border-radius:6px;font-size:11px}.pri{box-shadow:0 2px 3px #153b6210}button:focus-visible,a:focus-visible{outline:3px solid #87b8ee;outline-offset:3px}.authcard{border-radius:20px;box-shadow:0 15px 50px #143f6810}.authwrap{background:radial-gradient(ellipse at 25% 0,#e8f0fa,transparent 60%),var(--bg)}
@media(min-width:900px){#main{max-width:1500px;padding:30px 34px}.tabs{padding:24px 14px 12px;width:220px}.tabs button[data-tab]{min-height:46px;font-size:13px;margin-bottom:4px}.top{padding-inline:30px}.chat>section.card{height:calc(100dvh - 132px)}.top .workspace-search{margin-inline-start:auto;margin-inline-end:20px}}
@media(max-width:899px){.workspace-profile{display:none}.workspace-columns{gap:18px}.workspace-search{min-width:0;padding:8px;border:0;background:transparent}.workspace-search>span,.workspace-search kbd{display:none}}
@media(max-width:759px){.workspace-welcome{margin:12px 2px 20px;gap:12px}.workspace-welcome h2{font-size:24px}.workspace-welcome p{font-size:12px}.welcome-date{font-size:9px}.welcome-date b{font-size:11px}.workspace-home .stats{gap:8px;margin-bottom:22px}.workspace-home .stat{padding:12px 10px}.workspace-home .stat .mu{font-size:10px;min-height:30px}.workspace-home .stat b{font-size:27px}.workspace-columns{grid-template-columns:1fr;gap:22px}.workspace-aside{display:grid;grid-template-columns:1fr}.home-projects{gap:9px}.home-projects .pcard{padding:13px;min-height:170px}.home-projects .pcard b{font-size:12px}.home-projects .pcard .mu{font-size:10px}.section-title h3{font-size:16px}.nexus-home-card{padding:20px}.tabs{padding:5px 2px max(5px,env(safe-area-inset-bottom));gap:0;justify-content:space-around}.tabs button[data-tab]{flex:1;min-width:0;padding:7px 3px;font-size:9px}.tabs button[data-tab] svg{width:20px;height:20px}.tabs button[data-tab="settings"]{display:none}.top h1>span:last-child{font-size:15px}.top h1 small{font-size:8px}.filters{padding:9px}.filters select{max-width:145px}.workspace-empty{padding:25px 18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition:none!important}}
@media(max-width:759px){.workspace-home .stats{grid-template-columns:repeat(3,minmax(0,1fr))}.tabs button[data-tab="dash"]{display:none}.workspace-home .stat{min-height:103px}.workspace-home .stat .mu{font-size:9px;line-height:1.4}.workspace-home .stat b{font-size:26px}.workspace-home .eyebrow{font-size:9px}}
.home-empty-projects{grid-column:1/-1;padding:22px;font-size:13px;text-align:center}.workspace-home .task .tt{line-height:1.5}
@media(min-width:900px){#main{padding-top:88px;padding-bottom:30px}#main>*{max-width:1160px}.chat>section.card{height:calc(100dvh - 126px)}.chat{grid-template-columns:220px minmax(0,1fr)}.workspace-welcome{margin-top:0}.pcard{min-height:145px;padding:20px;display:flex;flex-direction:column;gap:10px}.pcard .pbw{margin-top:auto}}
.filters .task-search{min-width:170px;max-width:260px;flex:1}.filters{flex-wrap:wrap;overflow:visible}.hd{gap:10px}.pcard b{line-height:1.5}.filters select{flex:none}
@media(max-width:759px){.filters .task-search{flex:1 0 100%;max-width:none;min-width:0}.filters{display:flex;flex-wrap:wrap;overflow:visible}.filters select{max-width:calc(50% - 5px);flex:1;min-width:110px}.filters button{flex:none}.hd h2{flex:1 0 45%;font-size:23px}.hd .seg{max-width:100%;overflow:auto}.home-projects .pcard{min-height:175px}}
.activity-list{font-size:12px;display:flex;flex-direction:column;gap:0}.activity-list>.row{padding:11px 0;border-bottom:1px solid var(--ln)}.activity-list>.row:last-child{border:0}.activity-list small{font-size:10px;color:var(--mu)}.mobile-settings{display:none}.account-menu{position:fixed;top:60px;left:12px;right:auto;width:230px;z-index:100;display:flex;flex-direction:column;gap:3px;padding:15px;border:1px solid var(--ln);border-radius:14px;background:var(--sf);box-shadow:0 12px 40px #153b6220}.account-menu>a,.account-menu>button{padding:11px;color:var(--tx);text-align:start;border:0;border-radius:8px;background:var(--sf2);font-size:13px}.account-menu>b{padding:5px 8px 10px}@media(max-width:899px){.mobile-settings{display:flex}#bo{display:none}}
.project-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:16px}.project-toolbar input{flex:1;min-width:180px}.project-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 18px}.project-overview>div{padding:18px;border:1px solid var(--ln);border-radius:12px;background:var(--sf);display:flex;justify-content:space-between;align-items:center;gap:12px}.project-overview b{font-size:25px}.project-overview span{font-size:12px;color:var(--mu)}.project-deadline{font-size:11px;color:var(--mu);margin-top:5px}.project-deadline.late{color:var(--bad)}@media(max-width:759px){.project-overview{gap:8px}.project-overview>div{padding:11px;flex-direction:column;align-items:start;gap:4px}.project-overview span{font-size:10px}.project-overview b{font-size:22px}.project-toolbar input{min-width:100%;order:-1}}
.agent-markdown{white-space:normal!important;line-height:1.85;font-size:14px}.agent-markdown>p{margin:0 0 9px}.agent-markdown>p:last-child{margin-bottom:0}.agent-markdown h1,.agent-markdown h2,.agent-markdown h3,.agent-markdown h4{font-size:15px;margin:14px 0 7px;line-height:1.6}.agent-markdown h1:first-child,.agent-markdown h2:first-child,.agent-markdown h3:first-child{margin-top:0}.agent-markdown ul,.agent-markdown ol{padding-inline-start:22px;margin:7px 0}.agent-markdown li{margin:6px 0}.agent-markdown code{font:12px/1.7 ui-monospace,monospace;direction:ltr;unicode-bidi:isolate;background:#e9f0f4;padding:2px 4px;border-radius:4px}.agent-markdown pre{max-width:100%;overflow:auto;direction:ltr;text-align:left;background:#edf3f7;padding:12px;border-radius:9px}.agent-markdown pre code{background:none;padding:0}.agent-markdown a{color:var(--pr);overflow-wrap:anywhere;text-decoration:underline}.agent-markdown blockquote{margin:8px 0;padding:8px 12px;border-inline-start:3px solid #98beb8;color:var(--mu);background:#f5f9fa}.m.ag{max-width:min(92%,760px)}@media(max-width:759px){.agent-markdown{font-size:13px}.m.ag{max-width:100%}}
.chat>section.card{min-height:0;overflow:hidden}.chat .msgs{min-height:0;flex:1 1 0;overflow-y:auto;overscroll-behavior:contain}.chat .msgs>.m{flex-shrink:0}.chat .composer,.chat .typing-status,.chat .nexus-guide,.chat .pn,.chat>section.card>.row:first-child{flex-shrink:0}.chat .composer{position:relative;background:var(--sf);z-index:2}.m.ag .agent-markdown{min-width:0}.agent-markdown pre{white-space:pre;max-width:100%}.agent-markdown h3{font-weight:700}
@media(max-width:759px){.chat>section.card{height:calc(100dvh - 166px);min-height:420px;max-height:calc(100dvh - 166px)}.chat .msgs{min-height:0!important;height:auto!important;flex:1 1 0!important}.chat .nexus-guide[open] .nexus-guide-body{max-height:160px}}
.knowledge-stats{font-size:13px;color:var(--mu);margin:4px 0 10px}.knowledge-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.knowledge-bar .knowledge-search{flex:1 1 260px}.knowledge-bar .filters{display:flex;gap:6px;flex-wrap:wrap;padding:0}#tourOv{position:fixed;inset:0;z-index:1200;background:rgba(15,23,42,.3)}.tour-hl{position:fixed;border:2px solid #2f6df6;border-radius:10px;box-shadow:0 0 0 4px rgba(47,109,246,.3);pointer-events:none;transition:top .2s,left .2s,width .2s,height .2s}.tour-tip{position:fixed;width:300px;background:var(--card,#fff);color:var(--tx,#0f172a);border:1px solid var(--ln,#dce4ee);border-radius:12px;padding:14px 16px;box-shadow:0 12px 32px rgba(15,23,42,.25);font-size:14px;line-height:1.6}.tour-tip p{margin:0}.tour-tip .row{margin-top:10px}.knowledge-search{display:flex;gap:8px;align-items:center;background:var(--sf);border:1px solid var(--ln);border-radius:11px;padding:0 14px}.knowledge-search svg{color:var(--mu)}.knowledge-search input{border:0;background:none;box-shadow:none;min-height:48px;width:100%}.knowledge-search input:focus{outline:none}#ls{margin-top:18px;gap:12px}#ls .it{padding:19px;align-items:center}.itx b{font-size:14px}.itx>.mu{font-size:12px;line-height:1.8}.ti{border-radius:11px;min-width:46px;height:46px}.ti.rp{background:#edf1f6;color:#28425c}.note{line-height:1.8;font-size:11px}.project-search{flex:1 1 240px;width:auto!important;min-width:180px!important}@media(max-width:759px){.knowledge-bar .knowledge-search{flex:1 0 100%}#ls .it{padding:14px}.itx b{font-size:13px}.itx>.mu{font-size:11px}.project-search{flex:1 0 100%;min-width:0!important}.agent-markdown>p:last-child a{font-size:12px}}
@media(max-width:759px){.hd>div.sp:has(.eyebrow){flex:1 0 100%;width:100%;margin-bottom:6px}.hd>div.sp>.eyebrow{font-size:10px;max-width:none}.hd>div.sp>h2{font-size:24px;line-height:1.4}}}
/* UI Skills-informed usability pass: preserve the local visual language and workflows. */
.stats b,.kpi b,.badge b,bdi{font-variant-numeric:tabular-nums}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #2357a4;outline-offset:3px}
@media(max-width:759px),(pointer:coarse){
 button.sm,.seg button,.filters select,.chlist button,.sugg button,.rcb{min-height:44px}
 .task .chk{min-height:44px;min-width:44px;width:44px;height:44px;flex:none;border-radius:10px}
 .task .chk svg{width:20px;height:20px}
 .filters{gap:10px;padding:12px}
 .filters select{font-size:14px;padding-inline:10px;min-width:100px}
 .filters .task-search{min-height:48px}
 .hd{row-gap:12px}
 .chip button{min-height:44px;min-width:44px}
 .chip span{min-height:44px;display:inline-flex;align-items:center}
 .chat .m .more{min-width:44px;min-height:44px}
 .knowledge-search input{font-size:16px}
}

/* Desktop workspace clarity: visible field labels and a stable scan path. */
.filter-field{display:contents}.filter-caption{display:none}
@media(min-width:900px){
 #main:has([data-task-search])>.hd{padding-block:4px 18px;margin-bottom:20px!important;align-items:center}
 #main:has([data-task-search])>.hd h2{font-size:27px;line-height:1.25;letter-spacing:-.02em}
 #main:has([data-task-search])>.hd .seg button{min-height:40px;padding-inline:16px}
 .workspace-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:14px 16px;padding:18px!important;align-items:end;margin-bottom:16px!important}
 .workspace-filter-grid .filter-field{display:flex;flex-direction:column;gap:7px;margin:0;min-width:0;color:#52677e}
 .workspace-filter-grid .filter-caption{display:block;font-size:12px;font-weight:500;line-height:1.3}
 .workspace-filter-grid .filter-search{grid-column:span 2}
 .workspace-filter-grid .filter-field input,.workspace-filter-grid .filter-field select{width:100%;max-width:none;min-width:0;min-height:44px;font-size:14px}
 .workspace-filter-grid>button{min-height:44px;align-self:end}
 #tv>.task{padding:18px 20px;gap:16px;transition:background .12s,border-color .12s}
 #tv>.task:hover{border-color:#b7cbe0;box-shadow:0 3px 10px #183a5a10}
 #tv>.task .tt b{font-size:16px;font-weight:500;line-height:1.5}
 #tv>.task .chk{width:36px;height:36px;min-height:36px;min-width:36px;border-radius:9px;flex:none}
 #tv>.task .badge{font-size:12px;padding:2px 9px}
 #tv>.task .mu{font-size:13px}
 .section-title h3{font-size:19px}.workspace-columns{gap:30px}.quick-links a{font-size:13px;min-height:44px}
}
@media(min-width:900px) and (max-width:1150px){.workspace-filter-grid{grid-template-columns:repeat(3,minmax(120px,1fr))}}
@media(min-width:900px){
 #tv .task{padding:18px 20px;gap:16px;transition:background .12s,border-color .12s}
 #tv .task:hover{border-color:#b7cbe0;box-shadow:0 3px 10px #183a5a10}
 #tv .task .tt b{font-size:16px;font-weight:500;line-height:1.5}
 #tv .task .chk{width:36px;height:36px;min-height:36px;min-width:36px;border-radius:9px;flex:none}
 #tv .task .badge{font-size:12px;padding:2px 9px}
 #tv .task .mu{font-size:13px}
 #main:has([data-task-search])>.hd button.pri{min-height:40px}
}

.nexus-work-status{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #bcd3ed;border-radius:12px;background:#f0f6ff;color:#234f80;margin-block:8px}.nexus-work-status[hidden]{display:none}.nexus-work-status>div{flex:1}.nexus-work-status b{font-size:13px;display:block}.nexus-work-status small{font-size:12px;display:block;margin-top:3px;line-height:1.6}.nexus-work-dot{width:8px;height:8px;border-radius:50%;background:#367cba;flex:none}.nexus-work-status.held{background:#fff8ed;border-color:#ead7b6;color:#795623}.nexus-work-status.held .nexus-work-dot{background:#b58130}
@media(min-width:900px){.chat .msgs{padding:16px 12px}.chat .m{max-width:min(84%,780px);padding:14px 18px;line-height:1.8}.chat .m.ag{align-self:stretch;max-width:900px;background:#fff;border:1px solid #d4e3e8;border-inline-start:3px solid #78aca3;box-shadow:0 3px 10px #153b6205}.chat .m.ag .bd{font-size:15px;line-height:1.9}.chat .m.ag h3{margin-block:16px 8px}.chat .m.ag li{margin-block:6px}.chat .composer{padding-top:12px;border-top:1px solid var(--ln);gap:10px}.chat .composer input{min-height:48px}.chat .composer button.pri{min-height:48px;padding-inline:24px}}
/* Keep RTL cards and list markers away from the scroll viewport edges. */
@media(max-width:759px){.chat .msgs{padding:10px 6px}.chat .msgs>.m.ag{width:100%;max-width:100%;min-width:0}.chat .m.ag .bd,.chat .m.ag ul,.chat .m.ag ol{max-width:100%;min-width:0}.chat .m.ag a{overflow-wrap:anywhere;word-break:break-word}.chat .m.ag ul,.chat .m.ag ol{padding-inline-start:24px;padding-inline-end:2px}}

.service-incident{position:relative;flex:0 0 100%;width:100%;padding:10px 14px;background:#fff4db;border:1px solid #e7ba65;color:#684312;font-size:13px;line-height:1.6;z-index:40}@media(min-width:900px){.service-incident{position:fixed;top:54px;inset-inline:0;z-index:51}body:has(.service-incident) #main{padding-top:110px}body:has(.service-incident) .chat>section.card{height:calc(100dvh - 212px)}}@media(max-width:899px){body:has(.service-incident) .chat>section.card{min-height:calc(100dvh - 244px)}body:has(.service-incident) .chat .msgs{height:calc(100dvh - 460px)}}
@media(max-width:759px){body:has(.service-incident) .chat>section.card{height:calc(100dvh - 220px);min-height:0}body:has(.service-incident) .chat .msgs{height:auto;min-height:80px;flex:1}body:has(.service-incident) .chat .composer,body:has(.service-incident) .chat .nexus-guide,body:has(.service-incident) .nexus-request-status{flex-shrink:0}}

.nexus-service-state{position:relative;flex:0 0 100%;width:100%;padding:6px 14px;background:#edf3f9;border-bottom:1px solid #d2dfed;color:#264661;font-size:12px;line-height:1.5;z-index:40}@media(min-width:900px){.nexus-service-state{position:fixed;top:54px;inset-inline:0;z-index:51}body:has(.nexus-service-state) #main{padding-top:94px}}

/* Task-first product pass,2026-10-28. Preserve the team's light RTL identity. */
:root{color-scheme:light;--bg:#f4f7fa;--tx:#18324c;--mu:#536b82;--ln:#dde6ef;--pr:#245ba5;--pr2:#194a8c;--sf:#fff;--sf2:#f7f9fc}
.focus-hub{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#eaf2fa;border:1px solid #d3e2f1;border-radius:16px;padding:24px;margin-bottom:28px}.focus-hub h3{font-size:22px;margin:5px 0 8px;line-height:1.4}.focus-hub p{margin:0;max-width:520px;color:var(--mu);font-size:13px;line-height:1.8}.focus-actions{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;max-width:350px}.focus-actions .text-link{padding:10px 4px}.focus-actions button,.focus-actions .btn{min-height:44px}.focus-hub .eyebrow{color:#355a81;font-size:11px}.workspace-home .stats{margin-bottom:18px}.workspace-home .stat{border-top:0;min-height:108px;box-shadow:none}.workspace-home .stat b{font-size:32px}.workspace-home .stat:hover{border-color:#9fb9d6}.workspace-home .section-title{margin-top:18px}.workspace-empty{padding:25px 18px;min-height:175px;border:1px solid var(--ln);background:#fff}.workspace-empty h3{font-size:17px}.workspace-empty p{max-width:390px;margin:8px auto 15px}.workspace-columns{grid-template-columns:minmax(0,2.2fr) minmax(260px,1fr)}.workspace-welcome{padding-bottom:4px}.workspace-aside{gap:18px}.quick-links{padding:20px}.quick-links a{min-height:50px}.activity-list .row{padding-block:12px}.pcard{border-top:3px solid #b4cadf;border-radius:12px;box-shadow:none}.pcard>.row:first-child{align-items:start}.pcard>.row:first-child>b{font-size:16px;line-height:1.65}.pcard:hover{border-color:#8aaccd;box-shadow:0 5px 18px #18324c0a;transform:translateY(-1px)}.project-description{margin:0;font-size:13px;line-height:1.7;color:var(--mu);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.project-unplanned{display:flex;align-items:center;gap:8px;border-top:1px solid var(--ln);padding-top:13px;margin-top:auto;color:var(--mu);font-size:12px}.project-next{margin-inline-start:auto;font-size:11px;color:var(--pr)}.task-lenses{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:16px 0}.task-lenses button{min-height:42px;background:white;border:1px solid var(--ln);border-radius:8px;padding:8px 14px;color:var(--mu)}.task-lenses button.on{color:#17467d;background:#e6effb;border-color:#b4ccea;font-weight:700}.task-lenses .filter-reset{margin-inline-start:auto;background:transparent;border-color:transparent;font-size:12px;text-decoration:underline}.result-context{font-size:12px;color:var(--mu);margin:10px 2px 14px}.project-overview>div{box-shadow:none}.knowledge-summary{background:#f0f5fa}.workspace-profile{border-top:1px solid var(--ln)}
@media(min-width:900px){.workspace-columns{gap:24px}.workspace-welcome h2{font-size:30px}.workspace-home .home-projects{gap:14px}.tabs button[data-tab].on{border-inline-start:3px solid var(--pr)}.task-lenses{margin-block:18px}.project-overview{margin-block:18px 24px}}
@media(max-width:899px){.workspace-columns{grid-template-columns:1fr}.focus-hub{padding:18px;align-items:start;flex-direction:column;gap:16px}.focus-actions{max-width:none;width:100%}.focus-actions .pri{flex:1}.workspace-home .workspace-welcome{align-items:start}.workspace-welcome h2{font-size:24px}.welcome-date{max-width:95px}.workspace-home .stats{gap:8px}.workspace-home .stat{min-height:98px;padding:12px 10px}.workspace-home .stat .mu{font-size:11px;line-height:1.6}.workspace-home .stat b{font-size:27px}.focus-hub h3{font-size:20px}.focus-hub p{font-size:13px}.workspace-home .home-projects{grid-template-columns:1fr}.workspace-empty{min-height:0}.workspace-columns{gap:20px}.task-lenses{gap:7px}.task-lenses button{min-height:44px;padding-inline:11px;font-size:12px}.task-lenses .filter-reset{margin-inline-start:0}.pcard{padding:18px;min-height:150px}.project-next{font-size:11px}.hd .seg{flex-wrap:wrap;max-width:100%}.hd .seg button{flex:1}.project-overview span{font-size:11px}.filters{max-width:100%}.focus-actions .btn{flex:1;text-align:center}button,input,select,textarea{max-width:100%}.knowledge-summary p{font-size:12px}.top h1 small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.pcard:hover{transform:none}.pcard{transition:none}}

.mobile-filter-toggle{display:none}@media(max-width:899px){.focus-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.focus-actions .pri,.focus-actions .btn{white-space:nowrap;padding-inline:12px;font-size:13px}.focus-actions .text-link{grid-column:1/-1;font-size:12px}.hd>.seg[aria-label="תצוגה"]{flex:1 0 100%;width:100%}.hd>.seg[aria-label="תצוגה"] button{white-space:nowrap;font-size:12px;padding-inline:10px}.mobile-filter-toggle{display:block;min-height:44px;margin:0 0 8px;background:white;border:1px solid var(--ln);color:var(--pr)}.task-filter-panel:not(.expanded)>:not(.task-search):not(.filter-search){display:none}.task-filter-panel:not(.expanded) .filter-search{display:contents}.task-filter-panel .task-search{width:100%}.task-filter-panel{margin-top:0!important}.focus-hub{gap:12px}}

/* Light means light even when the device requests a dark scheme. */
:root{--prbg:#eff5fd;--ln2:#c6d5e4;--ok:#267c66;--bad:#c3313b;--badbg:#fff1f2;--warn:#99601b;--me:#e5f0fc;--other:#f0f4f8;--sh:0 1px 2px #18324c08}button.pri,button.pri:hover{color:#fff}.focus-actions .btn{display:flex;align-items:center;justify-content:center}
@media(max-width:899px){.task-filter-panel.expanded{display:grid;grid-template-columns:1fr 1fr;gap:10px}.task-filter-panel.expanded .filter-field{display:flex;flex-direction:column;gap:5px;min-width:0}.task-filter-panel.expanded .filter-search{grid-column:1/-1}.task-filter-panel.expanded .filter-caption{display:block;font-size:11px;color:var(--mu)}.task-filter-panel.expanded select{width:100%;min-width:0}.filters:has([data-project-query]){display:grid;grid-template-columns:1fr 1fr;gap:10px}.filters:has([data-project-query])>.seg,.filters:has([data-project-query])>[data-project-query]{grid-column:1/-1}.filters:has([data-project-query])>select{min-width:0;width:100%;font-size:12px}.filters:has([data-project-query])>.seg{justify-self:start}}

@media(max-width:899px){.task-filter-panel.expanded{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.task-filter-panel.expanded .filter-field{width:100%;max-width:100%;height:auto}.task-filter-panel.expanded .filter-field select,.task-filter-panel.expanded .filter-field input{width:100%!important;max-width:100%;min-width:0!important;height:44px}.task-filter-panel.expanded>button{min-height:44px;height:44px;align-self:end}.task-filter-panel.expanded .filter-search{grid-column:1/-1}.task-filter-panel.expanded .filter-caption{line-height:1.5}}

/* Corrected projects composition after owner screenshot feedback. Scoped to projects. */
.projects-heading{align-items:center;gap:12px;padding-bottom:18px!important;margin-bottom:20px!important}.projects-heading h2{font-size:26px;line-height:1.4}.projects-controls{background:#fff;border:1px solid var(--ln);border-radius:12px;padding:18px 20px;margin-bottom:0}.projects-search-row{display:grid;grid-template-columns:minmax(220px,1fr) repeat(4,150px);gap:16px;align-items:end}.projects-search-field,.projects-field{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0}.projects-search-row label>span{font-size:12px;font-weight:500;color:var(--mu)}.projects-search-row input,.projects-search-row select{width:100%!important;min-width:0!important;height:44px;margin:0;background:#fff;border:1px solid #c9d7e5;border-radius:8px;padding:0 12px;font-size:14px}.projects-view-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--ln);padding-top:14px;margin-top:18px}.projects-count{font-size:12px;color:var(--mu)}.projects-count b{font-size:14px;color:var(--tx);margin-inline-end:4px}.projects-view-row .seg button{min-height:36px;padding-inline:18px;font-size:12px}.project-overview.projects-summary{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:0;margin:0 0 24px;padding:14px 2px;border-bottom:1px solid var(--ln)}.project-overview.projects-summary>div{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0 22px;display:flex;flex-direction:row;align-items:center;justify-content:start;gap:8px}.project-overview.projects-summary>div:first-child{padding-inline-start:0}.project-overview.projects-summary>div+div{border-inline-start:1px solid var(--ln)}.project-overview.projects-summary span{font-size:12px}.project-overview.projects-summary b{font-size:16px;line-height:1.4}.projects-grid{gap:18px}.projects-grid>.pcard{min-height:185px;padding:20px 22px;border-top:1px solid var(--ln);gap:14px}.projects-grid>.pcard>.row:first-child{gap:14px!important;align-items:start}.projects-grid>.pcard>.row:first-child>b{font-size:16px;line-height:1.7}.projects-grid .project-description{font-size:13px;line-height:1.8;-webkit-line-clamp:2}.projects-grid .project-unplanned{padding-top:12px;margin-top:auto}.projects-grid .project-next{white-space:nowrap}
@media(max-width:899px){.projects-heading{padding-bottom:14px!important;margin-bottom:16px!important}.projects-heading h2{font-size:24px}.projects-heading .seg{flex:none;max-width:100%}.projects-heading>button.pri{margin-inline-start:auto}.projects-controls{padding:16px}.projects-search-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.projects-search-field{grid-column:1/-1}.projects-search-row input,.projects-search-row select{font-size:13px;padding-inline:10px}.projects-view-row{padding-top:12px;margin-top:16px}.project-overview.projects-summary{display:flex;gap:10px;margin-bottom:18px;padding:14px 0}.project-overview.projects-summary>div{padding:0;border:0!important;gap:5px;flex:1;flex-direction:column;align-items:start}.project-overview.projects-summary span{font-size:11px;line-height:1.5}.project-overview.projects-summary b{font-size:18px}.projects-grid{grid-template-columns:1fr;gap:14px}.projects-grid>.pcard{padding:18px;min-height:175px}.projects-grid .project-description{font-size:13px}.projects-grid .project-next{font-size:11px}}

.projects-controls .project-search{flex:none!important;min-height:44px!important;max-height:44px!important;height:44px!important;width:100%!important}.projects-search-row{align-items:end}.projects-search-field{align-self:end}@media(min-width:900px){.projects-controls .projects-search-row{grid-template-columns:minmax(220px,1fr) repeat(4,150px)}}
.pstrip{display:flex;gap:6px;overflow-x:auto;padding:2px 0 8px;margin:0 0 8px;-webkit-overflow-scrolling:touch}
.pchip{flex:0 0 auto;border:1px solid var(--ln);background:var(--sf);border-radius:999px;padding:6px 12px;font:inherit;font-size:14px;cursor:pointer;color:var(--tx)}
.pchip.on{background:var(--prbg);border-color:var(--pr);font-weight:600}
.attlist{max-height:180px;overflow:auto;border:1px solid var(--ln);border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:6px;background:var(--sf2)}
.attlist label{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;margin:0;color:var(--tx);font-size:14px}
.attlist input[type=checkbox]{width:18px;height:18px;min-height:0;padding:0;flex:0 0 auto;margin:0}
.msugg{border-top:1px solid var(--ln);padding-top:8px;display:flex;flex-direction:column;gap:6px}
.msugg .st{width:100%;box-sizing:border-box}

.dfs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.dfs select{width:auto;min-width:150px;height:38px;border:1px solid #c9d7e5;border-radius:8px;padding:0 10px;font-size:13px;background:#fff}
.d2kpis{display:grid;gap:10px;grid-template-columns:repeat(2,1fr)}
@media(min-width:760px){.d2kpis{grid-template-columns:repeat(5,1fr)}}
.d2kpi{background:var(--sf);border:1px solid var(--ln);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.d2kpi .n{font-size:30px;font-weight:700;line-height:1.1}
.d2kpi .l{font-size:12px;color:var(--mu)}
.d2kpi .s{font-size:11px;color:var(--mu)}
.d2kpi.bad .n{color:var(--bad)}.d2kpi.warn .n{color:var(--warn)}
.attn{display:flex;flex-direction:column;gap:8px}
.attnr{display:flex;gap:10px;align-items:baseline;font-size:14px}
.attnr i{flex:0 0 10px;width:10px;height:10px;border-radius:3px}
.attnr b{min-width:24px;text-align:center}
.attnr small{color:var(--mu)}
.sysrows{display:flex;flex-direction:column;gap:4px}
.sysrow{display:grid;grid-template-columns:minmax(110px,1.4fr) 70px 110px minmax(140px,2fr);gap:10px;align-items:center;padding:6px 8px;border-radius:10px}
.sysrow[data-sys]{cursor:pointer}
.sysrow[data-sys]:hover{background:var(--sf2)}
.sysrow[data-sys]:focus-visible{outline:3px solid #87b8ee;outline-offset:1px}
.sysh{color:var(--mu);font-size:11px;border-bottom:1px solid var(--ln);cursor:default}
@media(max-width:759px){.dfs select{flex:1 1 45%;min-width:0}.sysrow{grid-template-columns:1fr auto;row-gap:4px}.sysh{display:none}.sysrow .bars{grid-column:1/-1}.attnr{flex-wrap:wrap;row-gap:2px}.attnr small{flex-basis:100%;margin-inline-start:34px}}

.pcard .ptitle{display:block;font-size:16px;line-height:1.55;font-weight:700;word-break:break-word;padding-inline-end:22px}
@media(min-width:760px){.board{gap:12px;overflow-x:visible}.board .lane{min-width:0;flex:1 1 0}}
@media(max-width:759px){.pcard .ptitle{font-size:15px}}
.prc .ptitle{display:block;font-size:15px;line-height:1.5;margin:2px 0 4px;word-break:break-word}

.uattr{display:inline-flex;flex-direction:column;align-items:flex-start;gap:1px;margin-inline-start:8px}
.uattr small{font-size:10px;line-height:1.2;color:var(--mu);font-weight:600}
.badge.urole{font-weight:700}
.badge.urole-admin{background:var(--pr);border-color:var(--pr);color:#fff}
.badge.urole-manager{background:var(--prbg);border-color:var(--ln2);color:var(--pr2)}
.badge.urole-member{background:var(--sf2);border-color:var(--ln);color:var(--tx)}
.badge.urole-viewer{background:transparent;border:1px dashed var(--ln2);color:var(--mu)}
.badge.urole-cluster_head{background:#e6f6f4;border-color:var(--ln2);color:#0d9488}
.badge.udept{background:transparent;border:1px solid var(--ln);color:var(--mu)}

.pcard{border-inline-start:4px solid transparent}
.pcard.st-design{border-inline-start-color:var(--warn)}
.pcard.st-active,.pcard.st-maintenance{border-inline-start-color:var(--ok)}
.pcard.st-paused{border-inline-start-color:var(--bad)}
.card.task{border-inline-start:4px solid transparent}
.card.task.st-todo{border-inline-start-color:var(--warn)}
.card.task.st-doing{border-inline-start-color:var(--ok)}

/* status-colored cards (user request 5.11, palette refined 5.11): design/todo yellow, active/maintenance/doing green, paused red, done neutral */
.card.task.st-todo,.card.pcard.st-design{background:#fbf5de;border-color:#e3d194}
.card.task.st-doing,.card.pcard.st-active,.card.pcard.st-maintenance{background:#e8f4eb;border-color:#a8d0b1}
.card.pcard.st-paused{background:#f9e9e6;border-color:#e0a89e}
.card.task.st-done,.card.pcard.st-done{background:#f0f1f3;border-color:#d3d8de}
.diw{position:relative;display:flex}
.diw input{flex:1;padding-inline-end:34px}
.dical{position:absolute;inset-inline-end:4px;top:50%;transform:translateY(-50%);border:0;background:none;cursor:pointer;padding:6px;min-height:32px;min-width:32px;display:grid;place-items:center;color:var(--mu);box-shadow:none}
.dical:hover{color:var(--tx)}
.dical svg{display:block}

/* system logos + icons */
.badge.sysb{display:inline-flex;align-items:center;gap:5px;font-weight:600}
.syslg{display:block;width:auto;max-width:72px;object-fit:contain}
.sysic{display:inline-flex;color:var(--mu);flex:none}
.sysopt .sysic{color:var(--pr2)}
.sysname{display:inline-flex;align-items:center;gap:7px;min-width:0}
.sysname .syslg{max-width:88px}
.sysname .sysic{color:var(--pr2)}

/* admin users list */
.uroles-guide{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;padding:8px 12px;background:var(--sf2);border:1px solid var(--ln);border-radius:10px;font-size:12px;margin-bottom:4px}
.urleg{display:inline-flex;align-items:center;gap:5px}
.urow{display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;gap:10px;align-items:center;border-top:1px solid var(--ln);padding:9px 0}
.urow.uoff{opacity:.55}
.uavatar{width:36px;height:36px;border-radius:50%;background:var(--prbg);color:var(--pr2);font-weight:700;display:flex;align-items:center;justify-content:center;font-size:15px;flex:none}
.umain{min-width:0}
.uhead{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.usub{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.utags{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end}
@media (max-width:640px){
  .urow{grid-template-columns:36px minmax(0,1fr) auto;grid-template-areas:"av main btn" "tags tags tags"}
  .uavatar{grid-area:av}
  .umain{grid-area:main}
  .utags{grid-area:tags;justify-content:flex-start;margin-inline-start:46px}
  .urow>.sm{grid-area:btn}
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
