:root{
  --blue:#3A97DA; --blue-d:#2577b3; --blue-l:#e8f3fb;
  --side:#0f1720; --side2:#16212d; --side-txt:#b7c3cf; --side-hi:#ffffff;
  --bg:#ffffff; --line:#e6e9ee; --txt:#1d232b; --mut:#6b7684;
  --green:#1f9d61; --green-l:#e7f6ee; --amber:#c27a00; --amber-l:#fff5e0; --red:#c2410c; --red-l:#fdeee6;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;color:var(--txt);font-size:14px}
body{display:flex;flex-direction:column;background:var(--side)}
.app{flex:1;display:flex;min-height:0}
/* top bar */
.top{height:40px;background:#0a1118;display:flex;align-items:center;justify-content:center;gap:12px;color:#9fb0c0;font-size:13px;border-bottom:1px solid #1d2a37;position:relative}
.search{width:520px;max-width:60%;background:#1b2734;border:1px solid #2a3a4b;border-radius:6px;padding:5px 12px;color:#8fa1b3}
.top .me{position:absolute;right:14px;display:flex;align-items:center;gap:8px;color:#d5dee7}
/* sidebar */
.side{width:268px;background:var(--side);color:var(--side-txt);display:flex;flex-direction:column;border-right:1px solid #1d2a37;flex-shrink:0}
.ws{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #1d2a37}
.ws img{width:34px;height:auto}
.ws .n{color:#fff;font-weight:700;font-size:16px;line-height:1.1}
.ws .s{font-size:11.5px;color:#8597a8}
.nav{overflow:auto;flex:1;padding:8px 0 16px}
.sec{padding:14px 16px 4px;font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:#7d8fa1;font-weight:600;display:flex;justify-content:space-between}
.sec span.add{color:#7d8fa1;font-size:15px;line-height:10px}
.it{display:flex;align-items:center;gap:9px;padding:4px 16px;margin:0 8px;border-radius:6px;cursor:pointer;color:var(--side-txt);font-size:14px;text-decoration:none;white-space:nowrap}
.it:hover{background:var(--side2)}
.it.act{background:var(--blue);color:#fff}
.it .h{width:16px;text-align:center;opacity:.8}
.it .badge{margin-left:auto;background:#e01e5a;color:#fff;border-radius:9px;font-size:11px;padding:0 6px;font-weight:700}
.it.bold{color:#fff;font-weight:600}
.dot{width:8px;height:8px;border-radius:50%;background:#2bac76;flex-shrink:0}
.dot.off{background:transparent;border:1.5px solid #6b7c8d}
.pin{margin:10px 8px 2px;padding:9px 10px;border-radius:8px;background:linear-gradient(135deg,#183049,#132233);border:1px solid #24405c;display:flex;gap:10px;align-items:center;cursor:pointer}
.pin.act{outline:2px solid var(--blue)}
.av{width:28px;height:28px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;font-size:12px;flex-shrink:0}
.av.chief{background:var(--blue)}
.av.egg{background:#8a5cf6}
.av.andrei{background:#e8a23a}
.av.jonathan{background:#1e4d8c}
.av.sx{background:#0e9f8a}
.pin .t{color:#fff;font-weight:600;font-size:14px}
.pin .st{font-size:11.5px;color:#8fd0a8}
.botav{width:18px;height:18px;border-radius:5px;font-size:9.5px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;flex-shrink:0}
/* main */
.main{flex:1;display:flex;min-width:0;background:var(--bg)}
.view{display:none;flex:1;min-width:0}
.view.on{display:flex}
.chat{flex:1;display:flex;flex-direction:column;min-width:0}
.chead{height:56px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 20px;gap:10px;flex-shrink:0}
.chead .nm{font-weight:700;font-size:17px}
.chead .ds{color:var(--mut);font-size:13px;border-left:1px solid var(--line);padding-left:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chead .r{margin-left:auto;display:flex;gap:8px;align-items:center;color:var(--mut);font-size:13px}
.avs{display:flex}
.avs .av{width:24px;height:24px;font-size:10px;border:2px solid #fff;margin-left:-6px;border-radius:6px}
.tabs{display:flex;gap:18px;padding:0 20px;border-bottom:1px solid var(--line);font-size:13px;color:var(--mut);flex-shrink:0}
.tabs div{padding:8px 0}
.tabs .on{color:var(--txt);border-bottom:2px solid var(--blue);font-weight:600}
.msgs{flex:1;overflow:auto;padding:8px 0 12px}
.day{display:flex;align-items:center;gap:10px;color:var(--mut);font-size:12px;font-weight:600;padding:10px 20px}
.day:before,.day:after{content:"";flex:1;height:1px;background:var(--line)}
.day span{border:1px solid var(--line);border-radius:999px;padding:2px 12px;background:#fff}
.m{display:flex;gap:10px;padding:6px 20px}
.m:hover{background:#f8fafc}
.m .av{width:36px;height:36px;font-size:14px;border-radius:8px}
.m .b{flex:1;min-width:0}
.m .who{font-weight:700}
.m .tm{color:var(--mut);font-size:12px;margin-left:6px}
.app-tag{background:#eef1f4;color:#5b6773;font-size:10px;font-weight:700;padding:1px 4px;border-radius:3px;margin-left:5px;vertical-align:1px}
.fast{color:var(--green);font-size:11.5px;margin-left:6px;font-weight:600}
.txt{line-height:1.45;margin-top:2px}
.mention{background:#e4f0fb;color:#1264a3;border-radius:3px;padding:0 2px;font-weight:600}
.muted{color:var(--mut)}
.typing{font-style:italic;color:var(--mut);display:flex;align-items:center;gap:6px}
.spin{width:12px;height:12px;border:2px solid #c9d6e2;border-top-color:var(--blue);border-radius:50%}
.card{border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:8px;padding:10px 12px;margin-top:8px;max-width:640px;background:#fff}
.card.egg{border-left-color:#8a5cf6;background:#faf8ff}
.card.ok{border-left-color:var(--green)}
.card.warn{border-left-color:var(--amber);background:#fffbf2}
.card.stop{border-left-color:var(--red);background:#fff8f4}
.card .ch{display:flex;align-items:center;gap:8px;font-weight:700;font-size:13.5px}
.card .cb{margin-top:4px;color:#36404b;line-height:1.45}
.pill{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;border-radius:999px;padding:2px 8px}
.pill.g{background:var(--green-l);color:var(--green)}
.pill.a{background:var(--amber-l);color:var(--amber)}
.pill.r{background:var(--red-l);color:var(--red)}
.pill.b{background:var(--blue-l);color:var(--blue-d)}
.pill.p{background:#efe9ff;color:#6d3fe0}
.grid{display:grid;grid-template-columns:repeat(4,auto);gap:4px 22px;margin-top:8px;font-size:13px}
.grid .k{color:var(--mut);font-size:11.5px;text-transform:uppercase;letter-spacing:.04em}
.grid .v{font-weight:600}
.tog{width:34px;height:20px;border-radius:999px;background:var(--green);position:relative;display:inline-block;vertical-align:middle;flex-shrink:0}
.tog:after{content:"";position:absolute;top:2px;right:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.tog.off{background:#c7cfd8}
.tog.off:after{right:auto;left:2px}
.cfoot{display:flex;align-items:center;gap:10px;margin-top:8px;padding-top:6px;border-top:1px dashed var(--line)}
.btn{border:1px solid #cfd6de;background:#fff;border-radius:6px;padding:4px 10px;font-size:12.5px;font-weight:600;color:#2b3540;cursor:pointer}
.btn.pri{background:var(--blue);color:#fff;border-color:var(--blue)}
.thr{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:12.5px;color:#1264a3;font-weight:600;padding:3px 6px;border-radius:6px;width:fit-content;border:1px solid transparent}
.thr.act{background:var(--blue-l);border-color:#cfe5f6}
.thr .av{width:20px;height:20px;font-size:9px;border-radius:5px}
.thr .muted{font-weight:400}
.steps{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.step{font-size:11.5px;padding:3px 8px;border-radius:6px;background:#f1f4f7;color:#4a5562}
.step.done{background:var(--green-l);color:var(--green)}
.step.now{background:var(--amber-l);color:var(--amber)}
/* composer */
.comp{margin:0 20px 16px;border:1px solid #c9d1da;border-radius:10px;flex-shrink:0}
.comp .tb{display:flex;gap:4px;padding:6px 8px;border-bottom:1px solid #eef1f4;color:#6b7684}
.comp .tb span{padding:2px 7px;border-radius:4px;font-weight:700;font-size:13px}
.comp .in{padding:10px 12px;color:#8a95a1;min-height:40px}
.comp .bt{display:flex;align-items:center;gap:6px;padding:6px 8px}
.ib{width:28px;height:28px;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#55616d;font-weight:700;font-size:15px}
.ib:hover{background:#f1f4f7}
.send{margin-left:auto;background:var(--blue);color:#fff;border-radius:6px;padding:5px 12px;font-weight:700;font-size:13px}
.hint{font-size:11.5px;color:var(--mut);padding:0 20px 10px;margin-top:-10px}
/* thread */
.thread{width:400px;border-left:1px solid var(--line);display:flex;flex-direction:column;flex-shrink:0}
.thread .chead .nm{font-size:16px}
.thread .m{padding:6px 16px}
.thread .comp{margin:0 16px 16px}
.reps{display:flex;align-items:center;gap:10px;color:var(--mut);font-size:12px;padding:4px 16px}
.reps:after{content:"";flex:1;height:1px;background:var(--line)}
.prev{background:#f6f8fa;border:1px solid var(--line);border-radius:8px;padding:8px 10px;margin-top:6px;font-size:12.5px;line-height:1.5}
.prev b{display:block;margin-bottom:2px}
.r1{color:var(--green)} .r2{color:var(--amber)} .r3{color:var(--red)}
/* automations */
.auto{flex:1;display:flex;flex-direction:column;min-width:0;background:#f6f8fa}
.ahead{background:#fff;border-bottom:1px solid var(--line);padding:16px 24px;display:flex;align-items:center;gap:14px;flex-shrink:0}
.ahead h1{margin:0;font-size:20px}
.ahead .sub{color:var(--mut);font-size:13px;margin-top:2px}
.ahead .r{margin-left:auto;display:flex;gap:10px;align-items:center}
.stats{display:flex;gap:12px;padding:16px 24px 0;flex-shrink:0}
.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 14px;flex:1}
.stat .v{font-size:20px;font-weight:700}
.stat .k{font-size:12px;color:var(--mut)}
.filters{display:flex;gap:6px;padding:14px 24px 0;flex-wrap:wrap;flex-shrink:0}
.chip{border:1px solid #d5dce3;background:#fff;border-radius:999px;padding:4px 11px;font-size:12.5px;color:#3a4550}
.chip.on{background:var(--blue);border-color:var(--blue);color:#fff}
.dgrid{flex:1;overflow:auto;padding:14px 24px 24px;display:grid;grid-template-columns:1fr 1fr;gap:14px;align-content:start}
.dept{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.dept .dh{display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid var(--line);font-weight:700}
.dept .dh .c{color:var(--mut);font-weight:400;font-size:12.5px}
.dept .dh .add{margin-left:auto;color:var(--blue-d);font-size:12.5px;font-weight:600}
.row{display:grid;grid-template-columns:1.7fr 1.3fr 1.1fr .9fr 40px;gap:8px;align-items:center;padding:8px 14px;border-bottom:1px solid #f0f2f5;font-size:13px}
.row:last-child{border-bottom:0}
.row.hd{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--mut);padding-top:6px;padding-bottom:6px;background:#fbfcfd}
.row .nm{font-weight:600}
.row .nm small{display:block;font-weight:400;color:var(--mut);font-size:11.5px}
.owner{display:flex;align-items:center;gap:6px}
/* modal */
.ov{display:none;position:fixed;inset:0;background:rgba(10,17,24,.45);z-index:40;align-items:center;justify-content:center}
.ov.on{display:flex}
.modal{width:620px;background:#fff;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.3);overflow:hidden}
.modal .mh{padding:16px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center}
.modal .mh h2{margin:0;font-size:18px}
.modal .mh .x{margin-left:auto;color:var(--mut);font-size:20px}
.modal .mb{padding:16px 20px}
.modal label{font-weight:700;font-size:13px;display:block;margin-bottom:6px}
.ta{border:2px solid var(--blue);border-radius:8px;padding:12px;min-height:110px;line-height:1.5;color:#2b3540;font-size:14px}
.ta .ph{color:#9aa5b1}
.sugg{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.sugg span{background:#f1f4f7;border-radius:999px;padding:4px 10px;font-size:12px;color:#3a4550}
.frow{display:flex;gap:12px;margin-top:14px}
.frow > div{flex:1}
.sel{border:1px solid #cfd6de;border-radius:6px;padding:7px 10px;font-size:13px;display:flex;justify-content:space-between}
.eggnote{margin-top:14px;background:#faf8ff;border:1px solid #e4dcfb;border-radius:8px;padding:10px 12px;font-size:12.5px;color:#4b3a7a;display:flex;gap:10px;align-items:flex-start;line-height:1.45}
.modal .mf{padding:12px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px;background:#fbfcfd}
.modal .mf .btn{padding:7px 14px;font-size:13px}
/* mobile */
.mtop{display:none}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .top,:where(html:not(.nc-tablet)) .side,:where(html:not(.nc-tablet)) .thread,:where(html:not(.nc-tablet)) .tabs,:where(html:not(.nc-tablet)) .chead{display:none!important}
  :where(html:not(.nc-tablet)) .mtop{display:flex;align-items:center;gap:10px;height:56px;padding:0 14px;background:var(--side);color:#fff;flex-shrink:0}
  :where(html:not(.nc-tablet)) .mtop img{width:26px}
  :where(html:not(.nc-tablet)) .mtop .nm{font-weight:700;font-size:16px}
  :where(html:not(.nc-tablet)) .mtop .ds{font-size:11.5px;color:#9fb0c0}
  :where(html:not(.nc-tablet)) .mtop .r{margin-left:auto;font-size:20px;color:#cbd6e0}
  :where(html:not(.nc-tablet)) .m{padding:6px 12px}
  :where(html:not(.nc-tablet)) .grid{grid-template-columns:repeat(2,auto)}
  :where(html:not(.nc-tablet)) .comp{margin:0 10px 10px}
  :where(html:not(.nc-tablet)) .comp .tb{display:none}
  :where(html:not(.nc-tablet)) .hint{display:none}
  :where(html:not(.nc-tablet)) .card{max-width:100%}
}

.comp.row1{display:flex;align-items:center;gap:2px;padding:6px 8px}
.comp.row1 .in{flex:1;min-height:0;padding:6px 8px}
.comp.row1 .send{margin-left:6px}
.grid{grid-template-columns:repeat(4,auto)}
.dgrid{grid-auto-rows:max-content}
.dept{overflow:visible}
.mtag{display:none}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .grid{grid-template-columns:1fr 1fr;gap:8px 14px}
  :where(html:not(.nc-tablet)) .mtag{display:inline-block;margin-left:auto;background:#fff7d6;color:#7a5b00;font-size:10px;font-weight:700;padding:3px 7px;border-radius:999px}
  :where(html:not(.nc-tablet)) .mtop .r{display:none}
  :where(html:not(.nc-tablet)) .comp.row1 .ib:nth-of-type(3),:where(html:not(.nc-tablet)) .comp.row1 .ib:nth-of-type(4){display:none}
}

.m{padding:5px 20px}
.msgs{scroll-behavior:auto}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .m{padding:6px 12px}
  :where(html:not(.nc-tablet)) .mtag{white-space:nowrap;font-size:9.5px}
  :where(html:not(.nc-tablet)) .mtop > div{min-width:0}
  :where(html:not(.nc-tablet)) .mtop .ds{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* ---- live app additions ---- */
.it{user-select:none}
.it .badge:empty{display:none}
.comp textarea{flex:1;border:0;outline:0;resize:none;font:inherit;font-size:14px;line-height:1.4;padding:6px 8px;max-height:180px;min-height:22px;color:var(--txt);background:transparent}
.comp{background:#fff}
.comp.drag{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-l)}
.ib{cursor:pointer;user-select:none}
.send{cursor:pointer;user-select:none;border:0}
.send[disabled]{opacity:.5;cursor:default}
.pend-files{display:flex;flex-wrap:wrap;gap:6px;padding:0 20px 6px}
.thread .pend-files{padding:0 16px 6px}
.pf{display:flex;align-items:center;gap:6px;background:#f1f4f7;border-radius:6px;padding:3px 8px;font-size:12px}
.pf .x{cursor:pointer;color:var(--mut)}
.att{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.att a.file{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;padding:6px 10px;color:var(--txt);text-decoration:none;font-size:13px;background:#fff}
.att a.file:hover{background:#f8fafc}
.att img{max-width:320px;max-height:220px;border-radius:8px;border:1px solid var(--line);display:block}
.thr{cursor:pointer}
.thr:hover{background:var(--blue-l);border-color:#cfe5f6}
.queued{display:inline-block;font-size:10.5px;font-weight:700;color:var(--amber);background:var(--amber-l);border-radius:4px;padding:0 5px;margin-left:6px;vertical-align:1px}
.txt p{margin:0 0 4px}.txt p:last-child{margin:0}
.txt code{background:#f1f4f7;border-radius:4px;padding:0 4px;font-size:12.5px}
.txt pre{background:#f6f8fa;border:1px solid var(--line);border-radius:6px;padding:8px 10px;overflow:auto;font-size:12.5px;margin:4px 0}
.txt ul,.txt ol{margin:2px 0 4px;padding-left:22px}
.txt a{color:#1264a3}
.txt h3,.txt h4{margin:4px 0;font-size:14.5px}
.card .cb ul{margin:2px 0;padding-left:20px}
.empty{color:var(--mut);padding:40px 20px;text-align:center;line-height:1.6}
.empty b{color:var(--txt);display:block;font-size:16px;margin-bottom:4px}
.working{padding:6px 20px 10px;display:flex;gap:10px;align-items:center}
.working .av{width:36px;height:36px;font-size:14px;border-radius:8px}
.thread .working{padding:6px 16px 10px}
@keyframes spn{to{transform:rotate(360deg)}}
.spin{animation:spn .8s linear infinite}
.thread{display:none}
.thread.on{display:flex}
.thread .x{cursor:pointer}
.tog{cursor:pointer}
.chip{cursor:pointer}
.sugg span{cursor:pointer}
.sugg span:first-child{cursor:default;background:none;padding-left:0;color:var(--mut)}
.modal textarea.ta{width:100%;font:inherit;font-size:14px;outline:0;resize:vertical}
.modal select{width:100%;border:1px solid #cfd6de;border-radius:6px;padding:7px 10px;font:inherit;font-size:13px;background:#fff}
.err{color:var(--red);font-size:12.5px;margin-top:8px}
.search input{width:100%;background:transparent;border:0;outline:0;color:#dfe7ef;font:inherit;font-size:13px}
.search input::placeholder{color:#8fa1b3}
.srch{position:absolute;top:36px;left:50%;transform:translateX(-50%);width:560px;max-width:90vw;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 40px rgba(0,0,0,.25);z-index:60;max-height:60vh;overflow:auto;color:var(--txt);display:none}
.srch.on{display:block}
.srch .r{padding:8px 12px;border-bottom:1px solid #f0f2f5;cursor:pointer;font-size:13px}
.srch .r:hover{background:#f8fafc}
.srch .r small{color:var(--mut)}
.me{cursor:pointer}
.thlist{flex:1;overflow:auto;padding:10px 0}
.thitem{padding:10px 20px;border-bottom:1px solid var(--line);cursor:pointer}
.thitem:hover{background:#f8fafc}
/* login (Nov 15 2026 redesign: ShopXpert-style split, ShopXpert branding) */
.login{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;overflow:auto;padding:24px;background:#0b1522;color:#e8eef5}
.lg-bg{position:fixed;inset:0;pointer-events:none;
  background:radial-gradient(900px 600px at 15% 20%,rgba(58,151,218,.28),transparent 60%),radial-gradient(700px 500px at 90% 85%,rgba(37,119,179,.25),transparent 60%),
  linear-gradient(160deg,#0b1522 0%,#0f2236 55%,#0b1522 100%)}
.lg-bg::after{content:"";position:absolute;inset:0;opacity:.35;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:44px 44px;
  -webkit-mask-image:radial-gradient(ellipse at center,#000 30%,transparent 75%);mask-image:radial-gradient(ellipse at center,#000 30%,transparent 75%)}
.lg-wrap{position:relative;display:flex;align-items:center;gap:56px;max-width:1040px;width:100%;justify-content:center;margin:auto}
.lg-intro{flex:1;max-width:460px}
.lg-logo-w{width:260px;display:block;margin-bottom:34px}
.lg-intro h2{font-size:40px;line-height:1.1;margin:0 0 14px;font-weight:750;letter-spacing:-.5px;color:#fff}
.lg-intro>p{color:#a9bbcc;font-size:15px;line-height:1.55;margin:0 0 26px}
.lg-feats{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.lg-feats li{display:flex;gap:14px;align-items:center;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:13px 16px;backdrop-filter:blur(6px)}
.lg-feats .ic{width:34px;height:34px;border-radius:9px;background:rgba(58,151,218,.18);display:flex;align-items:center;justify-content:center;font-size:16px;flex:none}
.lg-feats b{display:block;font-size:14px;color:#fff}
.lg-feats small{color:#9fb2c4;font-size:12.5px}
.login .box{background:#fff;color:var(--txt);border-radius:18px;padding:26px 30px 20px;width:400px;max-width:100%;box-shadow:0 30px 80px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.06);flex:none}
.lg-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.lg-pill{background:#eef4fa;color:#2b5d86;font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;padding:6px 11px;border-radius:999px}
.lg-site{color:var(--mut);font-size:12px}
.lg-logo{width:210px;display:block;margin:0 0 18px}
.login h1{font-size:23px;margin:0 0 4px;font-weight:700;letter-spacing:-.2px}
.lg-sub{color:var(--mut);margin:0 0 20px;font-size:13.5px}
.lg-lbl{display:block;font-size:11px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;color:#5b6775;margin:0 0 6px}
.lg-field{display:flex;align-items:center;border:1px solid #d5dce4;border-radius:10px;background:#fff;margin-bottom:14px;transition:border-color .15s,box-shadow .15s}
.lg-field:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-l)}
.lg-field.lg-ro{background:#f6f8fa}
.lg-ic{padding:0 4px 0 12px;font-size:14px;opacity:.7}
.lg-field input{flex:1;min-width:0;border:0;background:transparent;padding:12px 10px;font:inherit;font-size:15px;outline:0;color:var(--txt)}
.lg-field select{flex:1;min-width:0;border:0;background:transparent;padding:12px 10px;font:inherit;font-size:15px;outline:0;color:var(--txt);appearance:none}
.lg-ro input{color:#475261}
.lg-eye{border:0;background:transparent;color:var(--blue-d);font-weight:600;font-size:12.5px;padding:0 12px;cursor:pointer}
.login .err{color:var(--red);font-size:13px;min-height:18px;margin:-4px 0 8px}
.lg-go{width:100%;background:linear-gradient(180deg,#3d9be0,#2577b3);color:#fff;border:0;border-radius:10px;padding:12px;font-weight:700;font-size:15px;cursor:pointer;box-shadow:0 8px 20px rgba(37,119,179,.35)}
.lg-go:hover{filter:brightness(1.05)} .lg-go:disabled{opacity:.7;cursor:default}
.lg-note{display:flex;gap:10px;align-items:flex-start;background:#f6f9fc;border:1px solid #e5ecf3;border-radius:12px;padding:12px 14px;margin-top:18px;font-size:12.5px}
.lg-note b{display:block;font-size:13px;color:#24384b}
.lg-note small{color:var(--mut)}
.lg-foot{text-align:center;color:#9aa5b1;font-size:11.5px;margin-top:16px}
@media (max-width:900px){
  .lg-intro{display:none}
  .login{padding:20px 16px;align-items:flex-start}
  .login .box{margin-top:max(4vh,env(safe-area-inset-top));width:440px;padding:22px 20px 18px;border-radius:16px}
  .lg-logo{width:190px}
  .lg-field input,.lg-field select{font-size:16px} /* stops iOS zoom on focus */
}
.hidden{display:none!important}
.dept .dh .add{cursor:pointer}
.row .nm small{white-space:normal}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .side.open{display:flex!important;position:fixed;inset:0 auto 0 0;z-index:70;width:280px;box-shadow:0 0 40px rgba(0,0,0,.5)}
  :where(html:not(.nc-tablet)) .thread.on{display:flex!important;position:fixed;inset:0;z-index:65;width:auto;background:#fff}
  :where(html:not(.nc-tablet)) .thread.on .chead{display:flex!important}
  :where(html:not(.nc-tablet)) .mtop .menu{cursor:pointer}
  :where(html:not(.nc-tablet)) .dgrid{grid-template-columns:1fr}
  :where(html:not(.nc-tablet)) .stats{flex-wrap:wrap}
  :where(html:not(.nc-tablet)) .stat{flex:1 1 40%}
  :where(html:not(.nc-tablet)) .ahead{flex-wrap:wrap}
  :where(html:not(.nc-tablet)) .row{grid-template-columns:1.5fr 1fr 40px}
  :where(html:not(.nc-tablet)) .row > div:nth-child(3),:where(html:not(.nc-tablet)) .row > div:nth-child(4){display:none}
  :where(html:not(.nc-tablet)) .att img{max-width:100%}
}
.thr.hov{display:none;font-weight:500}
.m:hover .thr.hov{display:flex}
.thread .grid{grid-template-columns:repeat(2,auto)}
.card .ch{flex-wrap:wrap}
.comp textarea::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:700px){:where(html:not(.nc-tablet)) .working{padding:6px 12px 10px}}

/* ---- People section, voice memos, Bots page (Nov 15 2026) ---- */
.pfind{padding:2px 16px 4px}
.pfind input{width:100%;box-sizing:border-box;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:var(--side-txt);border-radius:6px;padding:5px 9px;font-size:13px;outline:none}
.pfind input::placeholder{color:#7d8fa1}
.it .pav{width:18px;height:18px;border-radius:50%;background:#0f766e;color:#fff;font-size:8.5px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.it.person{overflow:hidden;text-overflow:ellipsis}
.sec .add{cursor:pointer}
.bots-link{margin-top:10px;font-size:13px;opacity:.85}
.ib.mic.on{background:#fde2e2;color:#c81e1e;border-radius:6px}
.pf.rec{background:#fde8e8;color:#9b1c1c}
.pf.rec .dot{width:8px;height:8px;border-radius:50%;background:#e02424;animation:recb 1s infinite}
.pf.rec .x{color:#9b1c1c;font-weight:700;margin-left:4px}
@keyframes recb{50%{opacity:.25}}
.att .aud{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;max-width:420px;background:#f8fafc;margin:4px 0}
.att .aud .play{width:34px;height:34px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;font-size:13px}
.att .aud audio{height:34px;max-width:220px}
.att .aud .an{display:flex;flex-direction:column;font-size:12.5px;min-width:0}
.att .aud .an b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pempty .av.big{width:56px;height:56px;border-radius:14px;font-size:20px;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700}
.pempty .howto{max-width:460px;margin:16px auto 0;text-align:left;display:flex;flex-direction:column;gap:10px}
.pempty .howto div{display:flex;gap:10px;align-items:flex-start;color:var(--txt);font-size:13.5px}
.pempty .howto span{width:22px;height:22px;border-radius:50%;background:#e6f4f1;color:#0f766e;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:12px}
.botdir{padding:16px 20px;overflow:auto;display:flex;flex-direction:column;gap:8px;max-width:760px}
.botdir .botnote{background:#f1f6fd;border:1px solid #d6e4f7;border-radius:10px;padding:12px 14px;font-size:13.5px;line-height:1.5}
.botdir .botrow{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:13.5px}
.botdir .botrow .muted{font-size:13px;margin-top:2px;line-height:1.45}
#ovP input.ta{width:100%;box-sizing:border-box;border-width:1px}
@media (max-width:700px){:where(html:not(.nc-tablet)) .att .aud{max-width:100%}:where(html:not(.nc-tablet)) .att .aud audio{max-width:170px}}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .comp.row1 .ib.mic{display:flex !important;font-size:18px}
  :where(html:not(.nc-tablet)) .comp.row1 textarea::placeholder{font-size:13px}
}

.scrim{display:none}
.side.open + .scrim{display:block;position:fixed;inset:0;z-index:69;background:rgba(3,8,16,.5);-webkit-tap-highlight-color:transparent}

/* ---- HR inbox and Andrei's checklist (Nov 15 2026) ---- */
.hr-workspace{flex:1;display:flex;flex-direction:column;min-width:0;background:#f6f8fa}
.hr-scroll{flex:1;overflow:auto;padding:22px 28px 40px}
.hr-scroll > *{max-width:1080px;margin-left:auto;margin-right:auto}
.hr-menu{background:transparent;border:0;color:#fff;font-size:20px;padding:0;cursor:pointer}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hr-title{display:flex;align-items:flex-start;gap:14px;margin-bottom:14px}
.hr-title > div{flex:1;min-width:0}
.hr-title h1{margin:2px 0 2px;font-size:24px;letter-spacing:-.01em}
.hr-title p{margin:0;color:var(--mut);font-size:14px}
.hr-title .btn{padding:8px 14px;font-size:13.5px;text-decoration:none;white-space:nowrap}
.hr-eyebrow{font-size:11px;font-weight:700;letter-spacing:.08em;color:var(--blue-d);text-transform:uppercase}
.hr-notice{background:#f1f6fd;border:1px solid #d6e4f7;border-radius:10px;padding:11px 14px;font-size:13.5px;line-height:1.5;color:#24384b;margin-bottom:14px}
.hr-notice.hr-amber{background:var(--amber-l);border-color:#f3d79a;color:#6b4500}
.hr-notice.hr-green{background:var(--green-l);border-color:#b8e3cb;color:#135c3a}
.hr-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}
.hr-metrics div{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 14px}
.hr-metrics b{display:block;font-size:22px}
.hr-metrics span{font-size:12px;color:var(--mut)}
.hr-types{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}
.hr-type-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px;text-decoration:none;color:var(--txt);display:flex;flex-direction:column;gap:4px;transition:border-color .15s,box-shadow .15s}
.hr-type-card:hover{border-color:var(--blue);box-shadow:0 2px 10px rgba(58,151,218,.12)}
.hr-type-card span{color:var(--mut);font-size:13px;line-height:1.4;flex:1}
.hr-type-card strong{color:var(--blue-d);font-size:13px;margin-top:6px}
.hr-type-card:nth-child(3){border-left:4px solid var(--amber)}
.hr-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.hr-toolbar h2{margin:0;font-size:16px;flex:1}
.hr-toolbar select,.hr-field select,.hr-field input,.hr-field textarea{border:1px solid #cfd6de;border-radius:7px;padding:8px 10px;font:inherit;font-size:14px;background:#fff;color:var(--txt);width:100%}
.hr-toolbar select{width:auto}
.hr-field textarea{resize:vertical;line-height:1.45}
.hr-field input:focus,.hr-field select:focus,.hr-field textarea:focus,.hr-toolbar select:focus,.hr-check-item textarea:focus{outline:2px solid var(--blue-l);border-color:var(--blue)}
.hr-list{display:flex;flex-direction:column;gap:8px}
.hr-row{display:block;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 14px;text-decoration:none;color:var(--txt);margin-bottom:8px}
.hr-row:hover{border-color:#b9d3ea}
.hr-row-top{display:flex;align-items:center;gap:8px}
.hr-type{font-size:11.5px;font-weight:700;color:var(--mut);text-transform:uppercase;letter-spacing:.04em;flex:1}
.hr-row h3{margin:6px 0 2px;font-size:15px}
.hr-row p{margin:0;color:#46525e;font-size:13.5px;line-height:1.45}
.hr-meta{font-size:12px;color:var(--mut);margin-top:6px}
.hr-effect{display:inline-block;margin-top:8px;font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:6px;background:var(--amber-l);color:var(--amber)}
.hr-effect.yes{background:var(--green-l);color:var(--green)}
.hr-empty{background:#fff;border:1px dashed #cfd6de;border-radius:10px;padding:22px;text-align:center;color:var(--mut)}
.hr-empty h3{margin:0 0 4px;color:var(--txt);font-size:15px}
.hr-empty p{margin:0}
.hr-back{display:inline-block;margin-bottom:10px;color:var(--blue-d);font-weight:600;font-size:13.5px;text-decoration:none}
.hr-panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px;margin-bottom:14px}
.hr-panel h2{margin:0 0 4px;font-size:16px}
.hr-form{display:flex;flex-direction:column;gap:12px;max-width:760px}
.hr-detail-grid .hr-form{max-width:none}
.hr-field{display:flex;flex-direction:column;gap:5px;font-weight:700;font-size:13px}
.hr-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hr-help{margin:0;color:var(--mut);font-size:12.5px;font-weight:400}
.hr-error{color:var(--red);font-size:13px;min-height:0}
.hr-error:empty{display:none}
.hr-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.hr-actions .btn,.hr-form > .btn{padding:8px 14px;font-size:13.5px;text-decoration:none;font-family:inherit}
.hr-form > .btn{align-self:flex-start}
.btn:disabled{opacity:.6;cursor:default}
.hr-workflow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px;font-size:12.5px}
.hr-workflow span{padding:5px 10px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--mut);font-weight:600}
.hr-workflow span.active{background:var(--blue);border-color:var(--blue);color:#fff}
.hr-workflow i{color:#9aa5b1;font-style:normal}
.hr-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;align-items:start}
.hr-prose{margin-bottom:12px}
.hr-prose h3{margin:0 0 3px;font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--mut)}
.hr-prose p{margin:0;white-space:pre-wrap;line-height:1.5}
.hr-photo{max-width:100%;max-height:280px;border-radius:8px;border:1px solid var(--line);margin-top:8px}
.hr-history{position:sticky;top:0}
.hr-event{border-left:2px solid #d6e4f7;padding:2px 0 10px 12px;margin-left:4px;font-size:13px;display:flex;flex-direction:column;gap:1px}
.hr-event span{text-transform:capitalize}
.hr-event small{color:var(--mut);font-size:11.5px}
.hr-event p{margin:4px 0 0;background:#f6f8fa;border-radius:6px;padding:6px 8px;white-space:pre-wrap}
.hr-history .hr-help{margin-bottom:10px}
.hr-progress{display:flex;align-items:center;gap:12px;margin-bottom:16px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 14px}
.hr-progress b{white-space:nowrap;font-size:13.5px}
.hr-progress > div{flex:1;height:8px;background:#eef1f4;border-radius:99px;overflow:hidden}
.hr-progress span{display:block;height:100%;background:var(--green);border-radius:99px;transition:width .2s}
.hr-section-head{display:flex;align-items:baseline;gap:10px;margin-bottom:8px}
.hr-section-head h2{flex:1}
.hr-section-head span{font-size:12px;color:var(--mut);font-weight:600}
.hr-check-item{border-top:1px solid #f0f2f5;padding:10px 0;display:flex;flex-direction:column;gap:6px}
.hr-tick{display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.hr-tick input{width:18px;height:18px;margin:1px 0 0;flex-shrink:0;accent-color:var(--green)}
.hr-tick b{font-size:14px}
.hr-tick p{margin:2px 0 0;color:#55616d;font-size:13px;line-height:1.45}
.hr-check-item.done .hr-tick b{color:var(--mut);text-decoration:line-through}
.hr-check-extras{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;padding-left:28px;font-size:12.5px}
.hr-check-extras a{color:var(--blue-d);font-weight:600;text-decoration:none}
.hr-check-extras details{flex:1;min-width:220px}
.hr-check-extras summary{cursor:pointer;color:var(--mut);font-weight:600}
.hr-check-extras textarea{display:block;width:100%;margin:6px 0;border:1px solid #cfd6de;border-radius:7px;padding:7px 9px;font:inherit;font-size:13.5px;resize:vertical}
.hr-check-extras small{color:var(--green);font-weight:600}
.hr-check-add{border-top:1px solid #f0f2f5;padding-top:10px}
.hr-check-add summary{cursor:pointer;color:var(--blue-d);font-weight:600;font-size:13px}
.hr-check-add form{display:flex;flex-direction:column;gap:10px;margin-top:10px;max-width:560px}
.hr-check-add form .btn{align-self:flex-start;padding:7px 12px;font-family:inherit}
@media (max-width:900px){.hr-detail-grid{grid-template-columns:1fr}.hr-history{position:static}}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .hr-workspace .mtop{display:flex}
  :where(html:not(.nc-tablet)) .hr-scroll{padding:14px 12px 32px}
  :where(html:not(.nc-tablet)) .hr-title{flex-wrap:wrap}
  :where(html:not(.nc-tablet)) .hr-title h1{font-size:21px}
  :where(html:not(.nc-tablet)) .hr-types,:where(html:not(.nc-tablet)) .hr-metrics{grid-template-columns:1fr}
  :where(html:not(.nc-tablet)) .hr-metrics{grid-template-columns:repeat(3,1fr);gap:6px}
  :where(html:not(.nc-tablet)) .hr-metrics div{padding:8px 10px}
  :where(html:not(.nc-tablet)) .hr-metrics b{font-size:18px}
  :where(html:not(.nc-tablet)) .hr-toolbar{flex-wrap:wrap}
  :where(html:not(.nc-tablet)) .hr-toolbar h2{flex-basis:100%}
  :where(html:not(.nc-tablet)) .hr-toolbar select{flex:1}
  :where(html:not(.nc-tablet)) .hr-field-pair{grid-template-columns:1fr}
  :where(html:not(.nc-tablet)) .hr-field input,:where(html:not(.nc-tablet)) .hr-field select,:where(html:not(.nc-tablet)) .hr-field textarea,:where(html:not(.nc-tablet)) .hr-toolbar select,:where(html:not(.nc-tablet)) .hr-check-extras textarea{font-size:16px}
  :where(html:not(.nc-tablet)) .hr-check-extras{padding-left:0}
}
.hr-panel a:not(.btn):not(.hr-row){color:var(--blue-d);font-weight:600;text-decoration:none}
.hr-panel a:not(.btn):not(.hr-row):hover{text-decoration:underline}
.hr-event span{text-transform:none}
.hr-event span::first-letter{text-transform:uppercase}
.hr-workflow span.active.rej{background:var(--red);border-color:var(--red)}
/* checklist v2: preview banner and person chat buttons */
.hr-preview{background:#fff7e0;border:1px solid #f0c36d;color:#5a4300;border-radius:10px;padding:10px 14px;margin:0 0 14px;font-size:14px}
.hr-chip{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;padding:3px 9px;border:1px solid #d7dbe0;border-radius:999px;cursor:pointer;color:inherit;text-decoration:none;margin:2px 6px 2px 0;background:#fff}
.hr-chip:hover{border-color:#1264a3;color:#1264a3}
.hr-who{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px 28px}
.hr-who-name{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;padding:3px 10px;border-radius:999px;background:#eef4fb;border:1px solid #c9dcf0;color:#0b4f8a;text-decoration:none;margin:0}
a.hr-who-name{cursor:pointer}
a.hr-who-name:hover{background:#dcebf9}
/* signed-in person, top left (desktop top bar, mobile bar) */
.top .who{position:absolute;left:14px;display:flex;align-items:center;gap:8px;color:#e8eef4;font-size:13.5px;max-width:calc(50% - 240px);min-width:0;white-space:nowrap}
.top .who > span:last-child{overflow:hidden;text-overflow:ellipsis}
.top .who .wlbl{color:#8597a8;font-size:12px}
.top .who .wname{color:#fff;font-weight:700}
.wav{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex:0 0 26px;border-radius:7px;background:#e8a33d;color:#1a1206;font-weight:800;font-size:11px;letter-spacing:.02em}
.top .me{background:none;border:1px solid #2a3a4a;border-radius:6px;padding:3px 10px;font:inherit;font-size:12.5px;color:#b7c3cf;cursor:pointer}
.top .me:hover{color:#fff;border-color:#3d5163}
.mbar{display:none}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .mbar{display:flex;align-items:center;gap:9px;padding:8px 14px;background:#0a1118;border-bottom:1px solid #1d2a37;color:#fff;font-size:14.5px;flex-shrink:0}
  :where(html:not(.nc-tablet)) .mbar[hidden]{display:none}
  :where(html:not(.nc-tablet)) .mbar .wname{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  :where(html:not(.nc-tablet)) .mbar .mout{margin-left:auto;background:none;border:1px solid #2a3a4a;border-radius:6px;padding:4px 10px;font:inherit;font-size:12.5px;color:#b7c3cf;flex-shrink:0}
}
.top .who[hidden]{display:none}
.top .who{font-size:14.5px}
.top .who .wname{font-size:15px}
/* items WingMan does (Andrei only helps with access) */
.hr-check-item.chief{background:#f6f9fc;border-radius:8px}
.hr-chief-tag{display:inline-block;margin:6px 0 6px 28px;font-size:12px;font-weight:700;color:#2577b3;background:#e8f3fb;border:1px solid #c9dcf0;border-radius:999px;padding:2px 10px}
/* one section per person: name header at the top */
.hr-section-head.person{align-items:center}
.hr-person-name{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;font-size:19px}
.hr-person-name .pav.big{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;background:#0b4f8a;color:#fff;font-size:13px;font-weight:800}
.hr-openchat{font-size:12.5px;font-weight:700}
.hr-nopage{font-size:12px;font-weight:600;color:var(--mut)}

/* cleaner-chat-v1: unread dot, Needs you, Mark done, Done section, pinned list */
.cc-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--blue);margin-right:6px;vertical-align:middle;flex-shrink:0}
.m.cc-unread .who{font-weight:800}
.m.cc-unread>.b>.txt{font-weight:700;color:#111}
.m.cc-title>.b>.txt{font-size:15px;font-weight:600}
.m.cc-title.cc-unread>.b>.txt{font-weight:800}
.pill.cc-ny{background:#fff1e6;color:#ea580c;border:1px solid #fdba74}
.cc-tag{margin-left:8px;font-size:10.5px;padding:0 7px}
.m.cc-needs{box-shadow:inset 3px 0 0 #ea580c}
.m.cc-isdone{opacity:.8}
.cc-acts{margin-top:4px;min-height:0}
.cc-mdone{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;color:var(--mut);border:1px solid var(--line);border-radius:6px;padding:1px 8px;cursor:pointer;background:#fff;user-select:none}
.cc-mdone:hover{color:var(--green);border-color:var(--green)}
.cc-mdone.pri{color:#fff;background:var(--green);border-color:var(--green)}
.cc-mdone.undo{color:var(--mut)}
.m .cc-acts .cc-mdone:not(.pri){visibility:hidden}
.m:hover .cc-acts .cc-mdone,.m.cc-isdone .cc-acts .cc-mdone{visibility:visible}
@media (hover:none){.m .cc-acts .cc-mdone:not(.pri){visibility:visible;opacity:.7}}
.thread .chead #ccTDone{margin-left:auto;margin-right:10px}
.cc-pins{position:sticky;top:0;z-index:3;background:#fffaf5;border:1px solid #fdba74;border-radius:10px;margin:8px 16px;padding:6px 10px;box-shadow:0 2px 6px rgba(0,0,0,.05);max-height:40vh;overflow:auto}
.cc-ph{font-size:12.5px;font-weight:700;color:#ea580c;padding:2px 0 4px}
.cc-n{display:inline-block;min-width:18px;text-align:center;border-radius:999px;background:rgba(0,0,0,.07);font-size:11px;padding:0 5px;margin-left:4px}
.cc-pin{display:flex;align-items:center;gap:8px;padding:5px 4px;border-top:1px solid #fde7d3;cursor:pointer;font-size:13.5px}
.cc-pin:first-of-type{border-top:0}
.cc-pin .cc-pt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-pin.cc-unread .cc-pt{font-weight:700}
.cc-pin .pill{font-size:10.5px;padding:0 6px}
.cc-done{margin:6px 16px 8px;border:1px solid var(--line);border-radius:10px;background:#fafcfb}
.cc-dh{display:flex;align-items:center;gap:6px;padding:7px 12px;cursor:pointer;font-weight:700;font-size:13px;color:var(--green);user-select:none}
.cc-done.open .cc-dh{border-bottom:1px solid var(--line)}
.cc-chk{color:var(--green)}
.cc-older{font-size:12px;padding:6px 16px}

/* PWA notifications settings */
#v-notifications .hr-scroll{padding:20px 24px 40px;max-width:720px}
.nf-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin:0 0 14px}
.nf-card h2{margin:0 0 6px;font-size:16px}
.nf-card p,.nf-card ol{color:var(--mut);font-size:13.5px;line-height:1.55;margin:0 0 10px}
.nf-card ol{padding-left:20px;color:var(--txt)}
.nf-card ol li{margin:0 0 6px}
.nf-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--line)}
.nf-row:first-of-type{border-top:0;padding-top:4px}
.nf-row b{display:block;font-size:14px}
.nf-row small{display:block;color:var(--mut);font-size:12.5px;margin-top:2px}
.nf-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.nf-msg{font-size:13.5px;margin-top:10px;color:var(--green)}
.nf-msg.err{color:var(--red)}
.nf-dev{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:13.5px}
.nf-dev small{color:var(--mut)}
.nf-warn{background:var(--amber-l);border-color:#f0d7a3}


.lg-ms{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;box-sizing:border-box;background:#fff;color:#1f1f1f;border:1px solid #8a8a8a;border-radius:10px;padding:12px;font-weight:650;font-size:15px;text-decoration:none;margin:4px 0 10px}
.lg-ms:hover{background:#f3f3f3}
.lg-ms::before{content:"";width:18px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Crect fill='%23f25022' width='10' height='10'/%3E%3Crect fill='%2300a4ef' x='11' width='10' height='10'/%3E%3Crect fill='%237fba00' y='11' width='10' height='10'/%3E%3Crect fill='%23ffb900' x='11' y='11' width='10' height='10'/%3E%3C/svg%3E") center/18px no-repeat;flex:none}
.lg-or{text-align:center;color:var(--mut);font-size:12px;margin:2px 0 14px}
.lg-pwlink{display:block;width:100%;border:0;background:transparent;color:var(--blue-d);font:inherit;font-size:13px;font-weight:600;cursor:pointer;padding:8px 0 0;text-align:center}
.lg-pwlink:hover{text-decoration:underline}
#login.sso-on:not(.pw-open) #pwBox{display:none}
#login.sso-on:not(.pw-open) #lgOr{display:none}
#login.sso-on #msBtn,#login.sso-on #lgOr,#login.sso-on #pwLink{display:block}
#login.sso-on #msBtn{display:flex}
#login.sso-on.pw-open #lgOr{display:block}
#login.sso-on.pw-open #pwLink{display:none}
#login.sso-on #lgSub{margin-bottom:16px}

#login.sso-on #msBtn.hidden{display:flex!important}
#login.sso-on #pwLink.hidden{display:block!important}
#login.sso-on.pw-open #pwLink.hidden{display:none!important}
#login.sso-on.pw-open #lgOr.hidden{display:block!important}

/* safe-area-v1, 22 Nov 2026
   iPhone PWA: viewport-fit=cover + apple-mobile-web-app-status-bar-style
   black-translucent + manifest display=standalone lets the UI draw under the
   status bar and Dynamic Island. env() is 0 on desktop, so these rules do
   not change the desktop layout. */
.top{
  height:calc(40px + env(safe-area-inset-top, 0px));
  padding-top:env(safe-area-inset-top, 0px);
  padding-left:env(safe-area-inset-left, 0px);
  padding-right:env(safe-area-inset-right, 0px);
}
.top .who{left:max(14px, env(safe-area-inset-left, 0px))}
.top .me{right:max(14px, env(safe-area-inset-right, 0px))}
.side{
  padding-left:env(safe-area-inset-left, 0px);
  padding-bottom:env(safe-area-inset-bottom, 0px);
}
.comp{
  margin-left:max(20px, env(safe-area-inset-left, 0px));
  margin-right:max(20px, env(safe-area-inset-right, 0px));
  margin-bottom:max(16px, env(safe-area-inset-bottom, 0px));
}
.login{
  padding-top:max(24px, env(safe-area-inset-top, 0px));
  padding-right:max(24px, env(safe-area-inset-right, 0px));
  padding-bottom:max(24px, env(safe-area-inset-bottom, 0px));
  padding-left:max(24px, env(safe-area-inset-left, 0px));
}
.ov.on{
  padding:env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
@media (max-width:900px){
  .login{
    padding-top:20px;
    padding-right:max(16px, env(safe-area-inset-right, 0px));
    padding-bottom:max(20px, env(safe-area-inset-bottom, 0px));
    padding-left:max(16px, env(safe-area-inset-left, 0px));
  }
}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .mbar{
    padding-top:calc(8px + env(safe-area-inset-top, 0px));
    padding-left:max(14px, env(safe-area-inset-left, 0px));
    padding-right:max(14px, env(safe-area-inset-right, 0px));
    padding-bottom:8px;
  }
  /* When the signed-in bar is hidden, the hamburger header is flush with the status bar */
  :where(html:not(.nc-tablet)) .mbar[hidden] + .app .mtop{
    height:calc(56px + env(safe-area-inset-top, 0px));
    padding-top:env(safe-area-inset-top, 0px);
  }
  :where(html:not(.nc-tablet)) .mtop{
    padding-left:max(14px, env(safe-area-inset-left, 0px));
    padding-right:max(14px, env(safe-area-inset-right, 0px));
  }
  /* Fullscreen thread is position:fixed; inset:0, so it must pad itself */
  :where(html:not(.nc-tablet)) .thread.on{
    padding-top:env(safe-area-inset-top, 0px);
    padding-right:env(safe-area-inset-right, 0px);
    padding-bottom:env(safe-area-inset-bottom, 0px);
    padding-left:env(safe-area-inset-left, 0px);
  }
  :where(html:not(.nc-tablet)) .side.open{
    padding-top:env(safe-area-inset-top, 0px);
    padding-bottom:env(safe-area-inset-bottom, 0px);
    padding-left:env(safe-area-inset-left, 0px);
  }
  :where(html:not(.nc-tablet)) .comp{
    margin-left:max(10px, env(safe-area-inset-left, 0px));
    margin-right:max(10px, env(safe-area-inset-right, 0px));
    margin-bottom:max(10px, env(safe-area-inset-bottom, 0px));
  }
  /* Thread already has the inset as padding, so do not double it on the composer */
  :where(html:not(.nc-tablet)) .thread.on .comp{
    margin-left:10px;
    margin-right:10px;
    margin-bottom:10px;
  }
}

/* menu-pinned-v1, 22 Nov 2026
   Keep the signed-in bar and the hamburger header visible when a thread
   or the drawer is open. Overlays start below --nc-chrome-h (CSS fallback,
   then measured). All of this is inside max-width:700px, so desktop is
   unchanged. env() is 0 on desktop anyway. */
@media (max-width:700px){
  html:where(:not(.nc-tablet)),:where(html:not(.nc-tablet)) body{
    height:100%;
    height:100dvh;
    overflow:hidden;
    overscroll-behavior:none;
  }
  html:where(:not(.nc-tablet)){
    --nc-mbar-h:0px;
    --nc-chrome-h:calc(env(safe-area-inset-top, 0px) + 56px);
    --nc-vv-top:0px;
    --nc-vv-bottom:0px;
  }
  html:where(:not(.nc-tablet)):has(#mbar:not([hidden])){
    --nc-mbar-h:calc(env(safe-area-inset-top, 0px) + 42px);
    --nc-chrome-h:calc(var(--nc-mbar-h) + 56px);
  }
  :where(html:not(.nc-tablet)) .mbar{
    position:fixed;
    top:var(--nc-vv-top, 0px);
    left:0;
    right:0;
    z-index:80;
  }
  :where(html:not(.nc-tablet)) .view.on .mtop{
    position:fixed;
    top:calc(var(--nc-vv-top, 0px) + var(--nc-mbar-h, 0px));
    left:0;
    right:0;
    z-index:80;
  }
  :where(html:not(.nc-tablet)) .app{padding-top:var(--nc-chrome-h)}
  /* Thread and drawer open below the pinned chrome, not over it */
  :where(html:not(.nc-tablet)) .thread.on{
    top:calc(var(--nc-vv-top, 0px) + var(--nc-chrome-h));
    right:0;
    bottom:var(--nc-vv-bottom, 0px);
    left:0;
    padding-top:0;
    padding-bottom:max(0px, calc(env(safe-area-inset-bottom, 0px) - var(--nc-vv-bottom, 0px)));
    z-index:65;
  }
  :where(html:not(.nc-tablet)) .side.open{
    top:calc(var(--nc-vv-top, 0px) + var(--nc-chrome-h));
    bottom:var(--nc-vv-bottom, 0px);
    padding-top:0;
    padding-bottom:max(0px, calc(env(safe-area-inset-bottom, 0px) - var(--nc-vv-bottom, 0px)));
    z-index:70;
  }
  :where(html:not(.nc-tablet)) .side.open + .scrim{
    top:calc(var(--nc-vv-top, 0px) + var(--nc-chrome-h));
    right:0;
    bottom:var(--nc-vv-bottom, 0px);
    left:0;
    z-index:69;
  }
  /* Keep modals above the pinned chrome */
  :where(html:not(.nc-tablet)) .ov{z-index:90}
}

/* no-zoom-v1, 23 Nov 2026
   The app never zooms. Viewport meta sets maximum-scale=1 and
   user-scalable=no, app.js blocks pinch and double-tap on iOS, and these
   rules stop the other two causes: iOS zooms in when a field under 16px
   gets focus, and any sideways overflow lets the page pan. */
html{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-x:hidden}
body{touch-action:manipulation}
/* Phones, and any touch screen (iPad too): fields are 16px so focus never zooms. */
@media (max-width:700px), (hover:none) and (pointer:coarse){
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),
  textarea,
  select,
  [contenteditable]:not([contenteditable=false]){font-size:16px!important}
  /* keep the look tight at the bigger size */
  .comp textarea{line-height:1.3}
  .comp.row1 textarea::placeholder{font-size:14px}
  .pfind input{padding:4px 9px;line-height:1.25}
  .search input{line-height:1.2}
  .modal select{padding:6px 10px}
}
@media (max-width:700px){
  html:where(:not(.nc-tablet)),:where(html:not(.nc-tablet)) body{overflow-x:hidden;max-width:100%}
  :where(html:not(.nc-tablet)) .app,:where(html:not(.nc-tablet)) .main,:where(html:not(.nc-tablet)) .view,:where(html:not(.nc-tablet)) .chat,:where(html:not(.nc-tablet)) .msgs{min-width:0;max-width:100vw}
  /* Drawer and scrim fit the screen: no off-screen width */
  :where(html:not(.nc-tablet)) .side.open{box-sizing:border-box;width:280px;max-width:calc(100vw - 48px);overflow-x:hidden}
  :where(html:not(.nc-tablet)) .side.open .nav{overflow-x:hidden;overscroll-behavior:contain}
  :where(html:not(.nc-tablet)) .side.open + .scrim{width:auto;max-width:100vw;touch-action:none}
  /* Drawer (z 70) always sits above the scrim (z 69) and takes taps */
  :where(html:not(.nc-tablet)) .side.open{pointer-events:auto}
}

/* resize-thread-v1, 23 Nov 2026
   Draggable line between the chat and the Thread panel (app.js sets the
   thread width inline). The hit area is 20px (28px on touch screens) and
   sits mostly over the thread's left padding, so the chat scrollbar stays
   usable. Hidden on phones, where the thread is full screen. */
.tsplit{flex:0 0 20px;margin:0 -16px 0 -4px;position:relative;z-index:6;cursor:col-resize;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;outline:none;overscroll-behavior:none}
.tsplit[hidden]{display:none!important}
.tsplit::before{content:"";position:absolute;top:0;bottom:0;left:3px;width:2px;background:transparent;transition:background .15s}
.tsplit::after{content:"";position:absolute;left:2px;top:50%;width:4px;height:36px;margin-top:-18px;border-radius:2px;background:#c3ccd6;opacity:0;transition:opacity .15s,background .15s}
.tsplit:hover::after{opacity:.9}
.tsplit:hover::before,.tsplit.drag::before,.tsplit:focus-visible::before{background:var(--blue)}
.tsplit.drag::after,.tsplit:focus-visible::after{background:var(--blue);opacity:1}
html.nc-resizing,html.nc-resizing *{cursor:col-resize!important;user-select:none!important;-webkit-user-select:none!important}
html.nc-resizing iframe,html.nc-resizing video{pointer-events:none}
@media (hover:none) and (pointer:coarse){
  .tsplit{flex-basis:28px;margin:0 -22px 0 -6px}
  .tsplit::before{left:5px}
  .tsplit::after{left:4px;height:44px;margin-top:-22px;opacity:1}
}
@media (max-width:700px){:where(html:not(.nc-tablet)) .tsplit{display:none!important}}

/* slack-a-v1, 23 Nov 2026: drafts marker, message menu, copy link highlight, quick switcher, toast */
.m{position:relative}
.mx-more{position:absolute;top:2px;right:12px;display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:26px;padding:0 6px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--mut);font-size:16px;line-height:1;cursor:pointer;visibility:hidden;user-select:none;-webkit-user-select:none;z-index:2}
.m:hover .mx-more,.mx-more:focus{visibility:visible}
.mx-more:hover{color:var(--txt);border-color:#c9d2dc}
@media (hover:none){.mx-more{visibility:visible;opacity:.55;border-color:transparent;background:transparent;min-width:36px;height:32px;top:0;right:6px}}
.mx-menu{z-index:60;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px rgba(15,23,32,.18);padding:4px;max-height:70vh;overflow:auto}
.mx-it{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:7px;font-size:14px;cursor:pointer;outline:none}
.mx-it:hover,.mx-it:focus{background:var(--blue-l)}
.mx-ic{width:22px;text-align:center}
@keyframes mxhl{0%{background:#fff3c4}70%{background:#fff3c4}100%{background:transparent}}
.m.mx-hl{animation:mxhl 4s ease-out;box-shadow:inset 3px 0 0 #f5b301}
.side .it .nc-dr{margin-left:auto;font-size:12px;color:#8fb6d9;padding-right:2px}
.side .it.has-draft .nc-dr + .badge:empty{display:none}
.nc-toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);background:#0f1720;color:#fff;border-radius:10px;padding:10px 14px;font-size:14px;box-shadow:0 8px 24px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;z-index:80;max-width:min(92vw,520px)}
.nc-toast.on{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.nc-toast a,.nc-toast .lnk{color:#8fd0ff;cursor:pointer;text-decoration:underline;margin-left:8px}
.nc-toast .nc-cp{font-size:16px;width:100%;margin-top:6px;padding:4px 6px;border-radius:6px;border:1px solid #2a3a4a;background:#16212d;color:#fff}
.qs-btn{background:#16212d;border:1px solid #2a3a4a;border-radius:6px;color:#b7c3cf;font:inherit;font-size:12.5px;padding:3px 10px;cursor:pointer;white-space:nowrap}
.qs-btn:hover{color:#fff;border-color:#3d5163}
.qs-btn kbd{font:inherit;font-size:11px;color:#8597a8;border:1px solid #2a3a4a;border-radius:4px;padding:0 4px;margin-left:4px}
.qs-btnm{background:none;border:1px solid #2a3a4a;border-radius:6px;padding:4px 10px;font:inherit;font-size:12.5px;color:#d5dee7;flex-shrink:0;margin-left:auto}
.mbar .qs-btnm + .mout{margin-left:0}
.qs-ov{position:fixed;inset:0;z-index:70;background:rgba(10,17,24,.45);display:flex;justify-content:center;align-items:flex-start;padding:max(10vh,calc(env(safe-area-inset-top,0px) + 12px)) 12px 12px}
.qs{width:min(620px,100%);background:#fff;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.3);overflow:hidden;display:flex;flex-direction:column;max-height:min(70vh,560px)}
.qs-h{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line)}
.qs-h input{flex:1;border:0;outline:none;font:inherit;font-size:16px;min-width:0;padding:4px 0;background:transparent;color:var(--txt)}
.qs-x{font-size:11.5px;color:var(--mut);border:1px solid var(--line);border-radius:5px;padding:1px 6px;cursor:pointer}
.qs-list{overflow:auto;padding:4px}
.qs-it{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;cursor:pointer;min-height:40px}
.qs-it.on,.qs-it:hover{background:var(--blue-l)}
.qs-i{width:22px;text-align:center;color:var(--mut);font-weight:700}
.qs-l{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:55%}
.qs-s{color:var(--mut);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}
.qs-none{padding:16px;color:var(--mut);text-align:center}
.qs-f{display:flex;gap:14px;padding:7px 12px;border-top:1px solid var(--line);color:var(--mut);font-size:11.5px}
@media (hover:none){.qs-f{display:none}}
@media (max-width:700px){:where(html:not(.nc-tablet)) .qs-ov{padding-top:calc(env(safe-area-inset-top,0px) + 8px)}:where(html:not(.nc-tablet)) .qs{max-height:calc(100% - 16px)}:where(html:not(.nc-tablet)) .qs-l{max-width:60%}}

/* slack-b-v1 */
.sx-ov{position:fixed;inset:0;z-index:65;background:rgba(10,17,24,.45);display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top,0px)) 12px max(12px,env(safe-area-inset-bottom,0px))}
.sx-dialog{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:12px;width:min(520px,100%);max-height:90dvh;box-shadow:0 20px 60px #0005;overflow:hidden;color:var(--txt)}
.sx-dialog.wide{width:min(620px,100%)}
.sx-head{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:14px 18px;flex-shrink:0}
.sx-head h2{font-size:18px;margin:0;flex:1}
.sx-x{background:none;border:0;color:var(--mut);font-size:18px;cursor:pointer;min-width:32px;height:32px}
.sx-body{padding:16px 18px;overflow:auto;overscroll-behavior:contain}
.sx-body h3{font-size:14px;margin:18px 0 8px}.sx-body h3:first-child{margin-top:0}.sx-body h3 small{display:block;font-size:12px;font-weight:400;color:var(--mut);margin-top:3px}
.sx-dialog label,#sxQuiet label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.sx-dialog input,.sx-dialog textarea,#sxQuiet input{font:inherit;font-size:16px;padding:9px 10px;border:1px solid #cdd5df;border-radius:7px;color:var(--txt);background:#fff;width:100%;min-width:0}
.sx-dialog input:focus,.sx-dialog textarea:focus,#sxQuiet input:focus{outline:2px solid #3a97da55;border-color:var(--blue)}
.sx-text{min-height:150px;resize:vertical;width:100%;line-height:1.5}
.sx-dest{margin:0 0 10px;font-size:13px;color:var(--mut)}
.sx-preview{border-left:3px solid #cdd5df;padding:2px 12px;max-height:160px;overflow:auto;font-size:14px;color:#3d4d60;background:#fafbfc;overflow-wrap:anywhere}
.sx-preview p{margin:5px 0}
.sx-help{color:var(--mut);font-size:12.5px;line-height:1.5;margin:8px 0 12px}
.sx-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}
.sx-preset{background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px;text-align:left;font:inherit;color:var(--txt);cursor:pointer}
.sx-preset b{display:block;font-size:13px}.sx-preset small{display:block;color:var(--mut);font-size:12px;margin-top:4px}
.sx-preset:hover,.sx-preset.on{background:var(--blue-l);border-color:var(--blue)}
.sx-custom{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.sx-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:18px;flex-wrap:wrap}
.sx-primary,.sx-secondary,.sx-link{font:inherit;font-size:13px;font-weight:600;cursor:pointer;border-radius:7px;padding:8px 12px;line-height:1.3}
.sx-primary{background:var(--blue);color:#fff;border:1px solid var(--blue)}.sx-primary:hover{background:var(--blue-d)}
.sx-secondary{background:#fff;border:1px solid #cdd5df;color:var(--txt)}.sx-secondary:hover{background:#f8fafc}
.sx-link{background:none;border:0;color:var(--blue-d);padding:4px 0;text-align:left}.sx-link:hover{text-decoration:underline}.sx-link.danger{color:var(--red)}
.sx-primary:disabled,.sx-secondary:disabled,.sx-link:disabled{opacity:.5;cursor:wait}
.sx-error{padding:10px 18px;border-top:1px solid #fed7aa;background:var(--red-l);color:var(--red);font-size:13px;flex-shrink:0}
.sx-warn{background:var(--amber-l);color:#8a5700;border:1px solid #fde68a;padding:10px;border-radius:8px;font-size:13px;margin:8px 0}
.sx-later{background:#f4f7fa;border:1px solid #d7dfe8;border-radius:6px;padding:4px 6px;font-size:16px;min-width:32px;height:30px;cursor:pointer;flex-shrink:0;margin-left:-2px}
.sx-later:hover{background:var(--blue-l);border-color:var(--blue)}
.sx-em-insert{font-size:20px}
.sx-edited{font-size:10.5px;color:var(--mut);margin-left:6px;font-style:italic}
.sx-reactions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:5px}
.sx-reaction{display:inline-flex;gap:5px;align-items:center;border:1px solid #dce3eb;border-radius:14px;background:#f8fafc;color:#42546a;font:inherit;font-size:15px;line-height:1;padding:3px 7px;min-height:26px;cursor:pointer}
.sx-reaction span{font-size:12px;font-weight:600}.sx-reaction.mine{background:var(--blue-l);border-color:var(--blue);color:#1264a3}.sx-reaction:hover{border-color:var(--blue)}
.sx-emoji{display:inline-block;width:24px;height:24px;object-fit:contain;vertical-align:-5px;margin:0 1px}.sx-reaction .sx-emoji{width:20px;height:20px;vertical-align:middle}
.sx-emoji-picker{z-index:75;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px #0003;padding:10px;color:var(--txt)}
.sx-emoji-picker>small{display:block;color:var(--mut);font-size:12px;margin-bottom:6px}.sx-emoji-picker>div{display:flex;flex-wrap:wrap;gap:4px}.sx-emoji-picker button{background:none;border:1px solid transparent;border-radius:6px;font-size:24px;width:42px;height:42px;display:flex;align-items:center;justify-content:center;cursor:pointer}.sx-emoji-picker button:hover,.sx-emoji-picker button.on{background:var(--blue-l);border-color:var(--blue)}.sx-emoji-picker p{font-size:11px;color:var(--mut);line-height:1.5;margin:8px 0 0}.sx-emoji-picker code{font-size:11px}
.sx-job{border:1px solid var(--line);border-radius:9px;padding:12px;margin-bottom:9px}.sx-job-h{display:flex;align-items:center;gap:10px;font-size:13px}.sx-job-sub{font-size:12px;color:var(--mut);margin:6px 0}.sx-job-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;max-height:110px;overflow:auto}.sx-job-acts{display:flex;gap:12px;align-items:center;margin-top:10px}.sx-job-err{color:var(--red);font-size:12px;margin:8px 0}.sx-status{margin-left:auto;font-size:11px;color:var(--mut);text-transform:capitalize}.sx-status.pending{color:var(--blue-d)}.sx-status.failed{color:var(--red)}.sx-status.done{color:var(--green)}.sx-empty{padding:20px 10px;border:1px dashed #cdd5df;border-radius:9px;text-align:center;color:var(--mut);line-height:1.5;font-size:14px}
.sx-version{font-size:14px;white-space:normal;overflow-wrap:anywhere;border:1px solid var(--line);padding:8px 12px;border-radius:8px}.sx-version p{margin:4px 0}
#sxQuiet input{max-width:340px}#sxQuiet .sx-check{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;margin:12px 0}#sxQuiet .sx-check input{width:18px;height:18px;flex-shrink:0}
.sx-qrow{display:flex;gap:12px;max-width:340px;margin-bottom:12px}.sx-qrow label{flex:1;min-width:0}.sx-qrow input{margin-top:4px}
.sx-note{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.sx-note>div{flex:1;min-width:0}.sx-note small{display:block;color:var(--mut);font-size:12px;margin-top:3px}.sx-note p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0;max-height:110px;overflow:auto}.sx-note.unread{border-left:3px solid var(--blue);padding-left:9px}.sx-note+.sx-link{margin-top:12px}
@media (max-width:700px){:where(html:not(.nc-tablet)) .sx-dialog{max-height:calc(100dvh - 24px)}:where(html:not(.nc-tablet)) .sx-body{padding:12px 14px}:where(html:not(.nc-tablet)) .sx-head{padding:10px 14px}:where(html:not(.nc-tablet)) .sx-head h2{font-size:17px}:where(html:not(.nc-tablet)) .sx-later{min-width:30px;padding:2px 4px}:where(html:not(.nc-tablet)) .comp .sx-em-insert{display:none}:where(html:not(.nc-tablet)) .sx-presets{gap:6px}:where(html:not(.nc-tablet)) .sx-preset{padding:9px 8px}:where(html:not(.nc-tablet)) .sx-preset b{font-size:12.5px}:where(html:not(.nc-tablet)) .sx-qrow{gap:8px}:where(html:not(.nc-tablet)) .mx-menu .mx-it{min-height:42px}}
@media (prefers-reduced-motion:reduce){.nc-toast,.m.mx-hl{transition:none;animation:none}}

/* full-height-v1, 23 Nov 2026
   The shell was shorter (and in landscape, narrower) than the viewport, so a
   dark navy band the colour of the body background showed under the composer
   and along the right edge. html/body used height:100% (and 100dvh only under
   700px). With viewport-fit=cover those units can be the inset viewport while
   the page paints under the status bar and home indicator, so the leftover is
   visible as body background. The composer also used margin-bottom for the
   bottom inset, and the visual-viewport helper treated that shortfall as a
   keyboard offset. The top bar's centered 520px search plus absolutely
   positioned "Signed in as" overlapped on iPad. The ☺ insert button was
   display:none under 700px.
   Fix: pin the body to the layout viewport on every width, put the bottom
   inset in the composer's light padding, flex the top bar, and keep ☺ visible. */
html{
  --nc-sat:env(safe-area-inset-top, 0px);
  --nc-sab:env(safe-area-inset-bottom, 0px);
  --nc-sab-eff:var(--nc-sab, 0px);
  --nc-sal:env(safe-area-inset-left, 0px);
  --nc-sar:env(safe-area-inset-right, 0px);
}
html{width:100%;height:100%;min-height:100%;min-height:100dvh;min-height:-webkit-fill-available}
body{
  position:fixed;
  inset:0;
  width:auto;
  height:auto;
  max-width:none;
  overflow:hidden;
  overscroll-behavior:none;
}
.app{width:100%;min-width:0}
.main{padding-right:var(--nc-sar)}

/* Top bar: a real flex row, so Search never draws on top of the signed-in label */
.top{
  justify-content:flex-start;
  gap:10px;
  padding-left:max(10px, var(--nc-sal));
  padding-right:max(10px, var(--nc-sar));
}
.top .who{
  position:static;
  left:auto;
  order:1;
  flex:0 1 auto;
  max-width:30%;
  min-width:0;
}
.top .search{
  order:2;
  flex:1 1 auto;
  width:auto;
  max-width:520px;
  min-width:0;
}
.top .qs-btn{order:3;flex:0 0 auto;margin-left:auto}
.top .me{position:static;right:auto;order:4;flex:0 0 auto;margin-left:0}
.top .srch{order:5}
@media (max-width:1100px){
  .top .who .wlbl{display:none}
}
@media (max-width:900px){
  .top .qs-btn kbd{display:none}
  .top .who{max-width:24%}
}

/* Composer sits on the bottom edge; the safe-area is padding in its light background.
   .comp.row1{padding:6px 8px} and .thread .comp{margin:0 16px 16px} are more
   specific than .comp, so they are named here. */
.comp,
.comp.row1,
.thread .comp,
.thread .comp.row1{
  margin-left:20px;
  margin-right:20px;
  margin-bottom:0;
  padding-bottom:max(8px, var(--nc-sab));
}
.thread .comp,
.thread .comp.row1{
  margin-left:16px;
  margin-right:16px;
}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .comp,
  :where(html:not(.nc-tablet)) .comp.row1{
    margin-left:max(10px, var(--nc-sal));
    margin-right:max(10px, var(--nc-sar));
    margin-bottom:0;
    padding-bottom:max(8px, calc(var(--nc-sab) - var(--nc-vv-bottom, 0px)));
  }
  /* Fullscreen thread: put the inset on the composer, not as a dark/empty pad
     under a short panel. Subtract any keyboard offset so it is not doubled. */
  :where(html:not(.nc-tablet)) .thread.on{
    padding-bottom:var(--nc-vv-bottom, 0px);
  }
  :where(html:not(.nc-tablet)) .thread.on .comp,
  :where(html:not(.nc-tablet)) .thread.on .comp.row1{
    margin-left:10px;
    margin-right:10px;
    margin-bottom:0;
    padding-bottom:max(8px, calc(var(--nc-sab) - var(--nc-vv-bottom, 0px)));
  }
}

/* ☺ insert stays visible and tappable on phones and other touch screens */
.comp .sx-em-insert{display:flex;flex-shrink:0}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .comp .sx-em-insert{display:flex!important;min-width:36px;min-height:36px;width:36px;height:36px}
}
@media (hover:none){
  .comp .sx-em-insert{min-width:36px;min-height:36px}
  .comp.row1{flex-wrap:nowrap}
  .comp.row1 textarea{min-width:0}
  .comp .ib,.comp .send,.comp .sx-later{flex-shrink:0}
}

/* swipe-v1, 23 Nov 2026
   Left-to-right swipe closes an open thread (the panel follows the finger).
   When no thread is open, the same swipe opens the phone drawer; a
   right-to-left swipe on the open drawer closes it. iPad layouts with a
   always-on sidebar do not open a drawer. */
.thread.nc-swiping,.side.nc-swiping{will-change:transform;transition:none}
.thread.nc-swipe-anim,.side.nc-swipe-anim{transition:transform .2s ease-out}
.sideScrim-swipe,.scrim.nc-swiping{transition:opacity .2s ease-out}
@media (prefers-reduced-motion:reduce){
  .thread.nc-swipe-anim,.side.nc-swipe-anim,.scrim.nc-swiping,.sideScrim-swipe{transition:none}
}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .side.nc-swiping{
    display:flex!important;
    position:fixed;
    inset:0 auto 0 0;
    z-index:70;
    width:280px;
    max-width:calc(100vw - 48px);
    box-shadow:0 0 40px rgba(0,0,0,.5);
    box-sizing:border-box;
  }
  :where(html:not(.nc-tablet)) .side.nc-swiping + .scrim,
  :where(html:not(.nc-tablet)) .side.open.nc-swiping + .scrim{
    display:block;
    position:fixed;
    inset:0;
    z-index:69;
    background:rgba(3,8,16,.5);
    opacity:var(--nc-swipe-p, 0);
    pointer-events:none;
  }
}

/* swipefix-v1, 24 Nov 2026
   iPhone: a right swipe from anywhere in an open thread goes back one
   level (or closes the thread at the top). #tMsgs is overflow:auto and
   html/body use touch-action:manipulation, which lets iOS treat a
   horizontal move as a pan and never hand it to app.js. pan-y keeps
   vertical scrolling and leaves the horizontal swipe to the script.
   The breadcrumb bar is included so a swipe there goes back too. Fields
   stay on manipulation so typing is unchanged. */
#thread.on,
#thread.on .chead,
#thread.on .msgs,
#thread.on #lyCrumbs,
#thread.on .ly-crumbs{
  touch-action:pan-y;
  overscroll-behavior-x:none;
}
#thread.on input,
#thread.on textarea,
#thread.on select,
#thread.on [contenteditable]:not([contenteditable="false"]){
  touch-action:manipulation;
}

/* layers-v1, 24 Nov 2026: tags, threads inside threads, quotes, record links */
.ly-chips{display:flex;flex-wrap:wrap;gap:4px;margin:3px 0 2px}
.ly-tag{--tc:#475569;display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;line-height:18px;padding:0 8px;border-radius:9px;color:var(--tc);background:#f1f5f9;background:color-mix(in srgb,var(--tc) 11%,#fff);border:1px solid #e2e8f0;border-color:color-mix(in srgb,var(--tc) 35%,#fff);cursor:pointer;white-space:nowrap;user-select:none;-webkit-user-select:none}
.ly-tag::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--tc);flex-shrink:0}
.ly-tag.ly-f.on{background:var(--tc);color:#fff;border-color:var(--tc)}
.ly-tag.ly-f.on::before{background:#fff}
.ly-bar{display:flex;gap:6px;align-items:center;padding:6px 16px;border-bottom:1px solid var(--line);overflow-x:auto;flex-shrink:0;background:#fff;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.ly-bar::-webkit-scrollbar{display:none}
.ly-bar[hidden]{display:none}
.ly-btn{font:inherit;font-size:12.5px;font-weight:600;border:1px solid var(--line);background:#fff;border-radius:14px;padding:3px 10px;color:var(--txt);white-space:nowrap;cursor:pointer;flex-shrink:0}
.ly-btn.on{background:var(--blue-l);border-color:#cfe5f6;color:var(--blue-d)}
.ly-btn.pri{background:var(--blue);color:#fff;border-color:var(--blue)}
.ly-fl{display:flex;gap:4px;align-items:center;flex-shrink:0}
.ly-clear{font-size:12px;color:var(--mut);cursor:pointer;padding:0 6px}
.ly-lv{font-weight:400;color:var(--mut)}
.ly-otl{display:inline-flex;align-items:center;font-size:12px;font-weight:600;color:var(--blue-d);cursor:pointer;margin-top:6px;margin-left:6px;padding:3px 6px;border-radius:6px;white-space:nowrap}
.ly-otl:hover,.ly-otl.on{background:var(--blue-l)}
.m .ly-otl{vertical-align:top}
#lyCrumbs:empty{display:none}
.ly-crumbs{display:flex;align-items:center;gap:4px;padding:6px 14px;border-bottom:1px solid var(--line);font-size:12.5px;overflow-x:auto;white-space:nowrap;background:#fafbfc;scrollbar-width:none}
.ly-crumbs::-webkit-scrollbar{display:none}
.ly-cr{color:var(--blue-d);cursor:pointer;max-width:42vw;overflow:hidden;text-overflow:ellipsis;flex-shrink:1;min-width:0}
.ly-cr.cur{color:var(--txt);font-weight:600;cursor:default}
.ly-sep{color:var(--mut);flex-shrink:0}
.ly-crumbs .ly-otl{margin:0 0 0 auto;flex-shrink:0}
.thr.ly-sub{font-weight:600}
.ly-tree{border:1px solid var(--line);border-radius:8px;margin:4px 0 12px;padding:4px 0;background:#fafbfc}
.ly-node{padding:6px 10px 6px calc(10px + var(--d) * 16px);font-size:13px;cursor:pointer;display:flex;gap:6px;align-items:center;border-left:3px solid transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:32px}
.ly-node:hover{background:var(--blue-l)}
.ly-node.cur{border-left-color:var(--blue);background:var(--blue-l)}
.ly-node b{overflow:hidden;text-overflow:ellipsis}
.ly-who{font-size:10px;font-weight:700;background:#e2e8f0;border-radius:4px;padding:0 4px;color:#334155;flex-shrink:0}
.ly-cnt{margin-left:auto;font-size:11px;background:#e2e8f0;border-radius:8px;padding:0 6px;color:#334155;flex-shrink:0}
.ly-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--tc);font-style:normal;flex-shrink:0}
.ly-status{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.ly-status button{--tc:#475569;font:inherit;font-size:12.5px;font-weight:600;border:1px solid var(--line);background:#fff;border-radius:14px;padding:3px 12px;color:var(--tc);cursor:pointer}
.ly-status button.on{background:var(--tc);color:#fff;border-color:var(--tc)}
.ly-subj{padding:2px 0 8px}
.ly-srow{padding:10px 96px 10px 16px;border-bottom:1px solid var(--line);cursor:pointer;position:relative}
.ly-srow:hover{background:#f8fafc}
.ly-st{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center}
.ly-st b{font-weight:600}
.ly-sm{font-size:12px;color:var(--mut);margin-top:3px}
.ly-srow .ly-otl{position:absolute;right:10px;top:8px}
/* menus open above the full-screen thread pane (z 65) and the pinned phone header (z 80) */
.mx-menu{z-index:85}
.ly-pop{padding:6px 0;z-index:86}
@media (max-width:700px){:where(html:not(.nc-tablet)) .ly-pop{position:fixed!important;left:8px!important;right:8px!important;top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-height:70dvh}:where(html:not(.nc-tablet)) .ly-pop .ly-plist{max-height:45dvh}}
.ly-pop small{display:block;padding:2px 12px 6px;color:var(--mut);font-weight:600}
.ly-plist{max-height:260px;overflow:auto}
.ly-pi{display:flex;gap:8px;align-items:center;padding:5px 12px;cursor:pointer}
.ly-pi .muted{margin-left:auto;font-size:11px}
.ly-new{display:flex;gap:6px;padding:8px 12px 4px;border-top:1px solid var(--line);margin-top:4px}
.ly-new input:not([type=color]){flex:1;min-width:0;font:inherit;font-size:16px;padding:5px 8px;border:1px solid var(--line);border-radius:6px}
.ly-new input[type=color]{width:36px;height:34px;border:1px solid var(--line);border-radius:6px;padding:0;background:#fff}
.ly-new button{font:inherit;font-size:13px;font-weight:600;border:1px solid var(--blue);background:var(--blue);color:#fff;border-radius:6px;padding:4px 10px;cursor:pointer}
.ly-man{display:block;padding:6px 12px 2px;color:var(--blue-d);cursor:pointer;font-size:12.5px}
.ly-ov{position:fixed;inset:0;background:rgba(15,23,32,.45);display:flex;align-items:center;justify-content:center;z-index:1000;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.ly-modal{background:#fff;border-radius:12px;padding:18px;width:min(520px,100%);max-height:100%;overflow:auto;box-shadow:0 20px 50px rgba(15,23,32,.3)}
.ly-modal h3{margin:0 0 6px;font-size:17px}
.ly-modal label{display:block;font-weight:600;font-size:13px;margin:12px 0 0}
.ly-modal label .muted{font-weight:400}
.ly-modal input:not([type=color]),.ly-modal textarea,.ly-modal select{display:block;width:100%;margin-top:4px;font:inherit;font-size:16px;padding:7px 9px;border:1px solid #cdd5df;border-radius:8px;background:#fff}
.ly-modal .ly-new{padding:10px 0 0;border-top:none}
.ly-modal .sx-error{margin-top:10px;border-radius:8px}
.ly-mrow{display:flex;gap:8px;align-items:center;padding:4px 0}
.ly-mrow .nm{flex:1;min-width:0;margin:0 !important}
.ly-mrow input[type=color]{width:34px;height:32px;border:1px solid var(--line);border-radius:6px;padding:0;background:#fff;flex-shrink:0}
.ly-mrow button{font:inherit;font-size:12.5px;border:1px solid #cdd5df;background:#fff;border-radius:6px;padding:4px 8px;cursor:pointer}
.ly-mrow.arch{opacity:.55}
.ly-rl input{margin-top:6px}
a.ly-ref,span.ly-ref{color:#1264a3;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.ly-ref-list{text-decoration-style:dotted !important}
span.ly-ref{color:inherit}
.ly-sit .ly-n{margin-left:auto;font-size:11px;color:#7d8fa1}
.ly-sit .h{display:flex;align-items:center;justify-content:center}
a.ly-titem{display:block;color:inherit;text-decoration:none}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .ly-bar{padding:6px 12px}
  :where(html:not(.nc-tablet)) .ly-crumbs{padding:6px 12px}
  :where(html:not(.nc-tablet)) .ly-srow{padding:10px 92px 10px 12px}
  :where(html:not(.nc-tablet)) .ly-cr{max-width:46vw}
  :where(html:not(.nc-tablet)) .ly-modal{padding:14px}
}
@media (hover:none){ .ly-node{min-height:40px} .ly-btn,.ly-status button{padding:5px 12px} }

/* accounts-v1, 24 Nov 2026: direct messages, private channels, members */
.ac-mem{border:1px solid var(--line);background:#fff;border-radius:999px;padding:3px 10px;font:inherit;font-size:12.5px;color:var(--txt);cursor:pointer;margin-right:6px;min-height:28px}
.ac-mem:hover{background:var(--blue-l)}
.ac-modal .ac-list{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.ac-row{display:flex;align-items:center;gap:10px;padding:6px 4px;border-bottom:1px solid var(--line)}
.ac-row .nm{flex:1;font-weight:600}
.ac-row button,.ac-add button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:5px 12px;font:inherit;cursor:pointer;min-height:34px}
.ac-add{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:6px 0}
.ac-add select{font:inherit;font-size:16px;padding:6px;border:1px solid var(--line);border-radius:8px;margin-left:6px;max-width:60vw}
.ac-row .pav,.ac-modal .pav{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#e2e8f0;font-size:11px;font-weight:700;color:#334155}
.mtop .ac-mem-m{margin-left:auto;margin-right:0;flex:none;background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.3)}
.ac-mem[hidden]{display:none!important}
.chead .avs .ac-av{background:#0f766e;color:#fff}

/* pdfclose-v1, 24 Nov 2026; pdfpages-v1, 25 Nov 2026
   In-app viewer for PDFs and images (and a close/download/share panel for
   other files). Attachment links used to open the raw /files/ URL in a
   new tab. In the Home Screen app that navigates away, with no browser
   chrome and no close button, so the only way back was a swipe. The
   viewer stays inside Command. The top bar is above the notch. */
.nc-fv{display:none;position:fixed;inset:0;z-index:1200;flex-direction:column;background:#0b1522;color:#e8eef5}
.nc-fv.on{display:flex}
html.nc-fv-open,html.nc-fv-open body{overflow:hidden;overscroll-behavior:none}
.nc-fv-bar{flex:0 0 auto;display:flex;align-items:center;gap:8px;min-height:48px;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-left:max(10px,env(safe-area-inset-left,0px));padding-right:max(10px,env(safe-area-inset-right,0px));padding-bottom:8px;background:#0b1522;border-bottom:1px solid #1d2a37;z-index:1}
.nc-fv-title{flex:1 1 auto;min-width:0;font-size:15px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px}
.nc-fv-act,.nc-fv-x{flex:0 0 auto;appearance:none;-webkit-appearance:none;border:1px solid #2a3a4a;background:#15202c;color:#e8eef5;border-radius:8px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;min-height:44px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}
.nc-fv-x{min-width:44px;font-size:20px;line-height:1;padding:0}
.nc-fv-act:active,.nc-fv-x:active{background:#1e2d3c}
.nc-fv-act[hidden]{display:none}
.nc-fv-body{flex:1 1 auto;min-height:0;position:relative;background:#0b1522;padding-bottom:env(safe-area-inset-bottom,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
.nc-fv-pages{flex:0 0 auto;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;color:#c5d0db;min-width:4.8em;text-align:center;padding:0 4px;letter-spacing:.02em;white-space:nowrap}
.nc-fv-pages[hidden]{display:none}
.nc-fv-pdf,.nc-fv-pdfwrap{position:absolute;inset:0;width:100%;height:100%;border:0;background:#525659}
/* pdfpages-v1, 25 Nov 2026: all pages in a scrollable column (no iframe).
   iPhone Safari and the Home Screen app can then reach every page. */
.nc-fv-pdfwrap{overflow:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;overscroll-behavior:contain}
.nc-fv-pdfsizer{position:relative}
.nc-fv-pdfzoom{position:absolute;left:0;top:0;transform-origin:0 0}
.nc-fv-page{background:#fff;margin:0 auto 10px;box-shadow:0 1px 4px rgba(0,0,0,.35);position:relative}
.nc-fv-page:last-child{margin-bottom:16px}
.nc-fv-page canvas{display:block;width:100%;height:100%;}
.nc-fv-page.is-loading{background:#6a6e72}

.nc-fv-imgwrap{position:absolute;inset:0;overflow:auto;display:flex;align-items:center;justify-content:center;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
.nc-fv-imgwrap img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.nc-fv-msg{padding:24px 18px;font-size:15px;line-height:1.5;color:#c5d0db}
.nc-fv-msg b{display:block;font-size:16px;color:#fff;margin-bottom:6px}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .nc-fv-bar{min-height:calc(48px + env(safe-area-inset-top,0px))}
}


/* step-v1, 24 Nov 2026
   CAD viewer body, mounted inside the pdfclose-v1 file overlay.
   The top bar (Share, Download, X) stays the overlay's own chrome. */
.nc-cad{position:absolute;inset:0;display:flex;flex-direction:column;background:#0b1522;color:#e8eef5;min-height:0}
.nc-cad-warn{flex:0 0 auto;margin:8px 10px 0;padding:10px 12px;border-radius:8px;background:#3a2a12;color:#ffe7c2;font-size:13px;line-height:1.4}
.nc-cad-stage{flex:1 1 0;min-height:0;height:0;position:relative}
.nc-cad-stage canvas{display:block;width:100%;height:100%;touch-action:none}
.nc-cad-status{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(15,23,32,.92);color:#d5dee7;padding:12px 16px;border-radius:10px;font-size:14px;max-width:min(90%,420px);text-align:center;z-index:2;pointer-events:none}
.nc-cad-status[hidden]{display:none!important}
.nc-cad-status.err{color:#ffd0c0}
.nc-cad-readout{flex:0 0 auto;padding:8px 12px;padding-bottom:max(8px, env(safe-area-inset-bottom,0px));background:#0f1720;border-top:1px solid #1d2a37;font-size:13px;line-height:1.45}
.nc-cad-tools{display:flex;gap:8px;margin-bottom:6px}
.nc-cad-tools button{appearance:none;-webkit-appearance:none;border:1px solid #2a3a4a;background:#15202c;color:#e8eef5;border-radius:8px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;min-height:40px;padding:0 12px}
.nc-cad-tools button.on{background:var(--blue);border-color:var(--blue);color:#fff}
.nc-cad-tools button:disabled{opacity:.45}
.nc-cad-readout .k{color:#8597a8}
.nc-cad-measure{margin-top:4px;color:#8fd0a8;font-weight:700;font-size:16px}
.nc-cad-measure .delta{color:#b7c3cf;font-weight:500;font-size:13px}
.nc-cad-hint{color:#8597a8;margin-top:2px}

/* subfiles-v1: file chips on a quote line card at the quote thread level */
.ly-linefiles{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 2px;cursor:pointer}
.ly-lf{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;line-height:1.3;padding:5px 8px;border:1px solid var(--line,#d8dee6);border-radius:8px;background:#f6f8fa;color:#1f2a37}

/* approvals-v1 */
.card.ap-card{border-left-color:#16a34a}
.card.ap-card.ap-pending{background:#fbfffc}
.card.ap-card .ap-btns{flex-wrap:wrap;gap:8px}
.card.ap-card .ap-btn{font-size:14px;padding:8px 16px;min-height:40px;min-width:88px}
.card.ap-card .ap-btn.ap-armed{background:var(--red);border-color:var(--red);color:#fff}
.card.ap-card .ap-foot{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:6px;font-size:12px}
.card.ap-card .ap-open{margin-left:auto;font-weight:600}
.card.ap-card .ap-err{color:var(--red);font-size:12.5px;font-weight:600;margin-top:4px}
.card.ap-card .ap-err:empty{display:none}
.card.ap-card .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px 12px;margin-top:6px}
.ap-panel{position:fixed;inset:0;background:rgba(10,17,24,.45);z-index:1000;display:none;align-items:flex-start;justify-content:center;padding:calc(env(safe-area-inset-top,0px) + 40px) 12px 12px}
.ap-panel.on{display:flex}
.ap-sheet{background:#fff;border-radius:12px;width:min(680px,100%);max-height:calc(100vh - 80px);overflow:auto;padding:12px 14px 16px;box-shadow:0 12px 40px rgba(0,0,0,.3)}
.ap-head{display:flex;align-items:center;gap:10px;position:sticky;top:-12px;background:#fff;padding:4px 0 8px;border-bottom:1px solid var(--line);z-index:1}
.ap-head .btn{margin-left:auto}
.ap-sub{margin:14px 0 2px;font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--mut);font-weight:600}
.ap-empty{padding:16px 2px}
@media (max-width:700px){:where(html:not(.nc-tablet)) .ap-panel{padding:calc(env(safe-area-inset-top,0px) + 8px) 6px 6px}:where(html:not(.nc-tablet)) .ap-sheet{max-height:calc(100vh - 16px)}}

/* kbfix-v1, 25 Nov 2026; kbfix2-v1, 25 Nov 2026
   When the iPhone keyboard opens, the composer sits just above it in the
   channel, a thread and a sub-thread. The message list fills the space
   between the header and the composer. Scrolling only moves the message
   list, not the page. A visualViewport scroll (iOS panning the layout
   under the keyboard) keeps the shell pinned: no jump of the composer
   under the header, and no blank gap above the keyboard. Closing the
   keyboard leaves no gap or white band.
   The @ mention picker sits above the composer (and above the keyboard).
   Mentions are highlighted in the composer while typing, using the same
   @Name token the sent message already uses.
   Do not undo no-zoom-v1, full-height-v1, swipefix-v1, pdfclose-v1,
   pdfpages-v1 or approvals-v1. */

/* Mention highlight overlay inside the composer. The textarea stays the
   real editor (paste, drafts, send, caret). When it has text, its glyphs
   are made transparent so the overlay can show @mentions as chips. */
.comp-hlwrap{position:relative;flex:1 1 auto;min-width:0;align-self:stretch;display:flex}
.comp-hl{
  position:absolute;inset:0;pointer-events:none;overflow:hidden;
  font:inherit;font-size:inherit;line-height:inherit;letter-spacing:inherit;
  padding:6px 8px;margin:0;border:0;white-space:pre-wrap;overflow-wrap:anywhere;
  word-wrap:break-word;color:var(--txt);background:transparent;z-index:0;
}
.comp-hlwrap textarea{flex:1 1 auto;width:100%;position:relative;z-index:1;background:transparent}
.comp-hlwrap.nc-hl-on textarea{color:transparent;caret-color:var(--txt);-webkit-text-fill-color:transparent}
.comp-hlwrap.nc-hl-on textarea::placeholder{color:transparent;-webkit-text-fill-color:transparent}
.comp-hl .mention{background:#e4f0fb;color:#1264a3;border-radius:3px;padding:0;font-weight:inherit}

/* Slack-like @ picker. z-index sits above the thread (65) and the drawer
   (70), and below the file viewer (1200) and approval sheet (1000). */
.nc-mpick{
  position:fixed;z-index:200;box-sizing:border-box;
  background:#fff;border:1px solid var(--line);border-radius:10px;
  box-shadow:0 12px 40px rgba(0,0,0,.25);color:var(--txt);
  max-height:min(240px, 42vh);overflow:auto;-webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;padding:4px 0;width:280px;
}
.nc-mpick .r{
  display:flex;align-items:center;gap:8px;
  padding:10px 12px;min-height:44px;cursor:pointer;font-size:14px;
  border:0;border-bottom:1px solid #f0f2f5;
}
.nc-mpick .r:last-child{border-bottom:0}
.nc-mpick .r.on,.nc-mpick .r:hover{background:var(--blue-l)}
.nc-mpick .r .av{width:20px;height:20px;font-size:9px;border-radius:6px}

@media (max-width:700px){
  /* Channel column: make room for pinned chrome that follows --nc-vv-top,
     and shrink by the keyboard so #compMain sits above it. */
  :where(html:not(.nc-tablet)) .app{
    padding-top:calc(var(--nc-chrome-h) + var(--nc-vv-top, 0px));
    padding-bottom:var(--nc-vv-bottom, 0px);
  }
  :where(html:not(.nc-tablet)) .app,:where(html:not(.nc-tablet)) .main,:where(html:not(.nc-tablet)) .view,:where(html:not(.nc-tablet)) .chat{
    overflow:hidden;
    min-height:0;
  }
  :where(html:not(.nc-tablet)) #msgs,:where(html:not(.nc-tablet)) .msgs{overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  /* The thread is already position:fixed with bottom:--nc-vv-bottom.
     full-height-v1 also set padding-bottom to that same value, which
     opened a blank band between the composer and the keyboard, and
     squeezed the messages so the composer sat under the header. */
  :where(html:not(.nc-tablet)) #thread.on{
    overflow:hidden;
    overscroll-behavior:none;
    padding-bottom:max(0px, calc(var(--nc-sab) - var(--nc-vv-bottom, 0px)));
  }
  :where(html:not(.nc-tablet)) #thread.on .chead,:where(html:not(.nc-tablet)) #thread.on #lyCrumbs,:where(html:not(.nc-tablet)) #thread.on .ly-crumbs,:where(html:not(.nc-tablet)) #thread.on .comp{
    flex-shrink:0;
  }
  :where(html:not(.nc-tablet)) #thread.on .msgs,:where(html:not(.nc-tablet)) #thread.on #tMsgs{overflow:auto;overscroll-behavior:contain;min-height:0}
  :where(html:not(.nc-tablet)) .comp,:where(html:not(.nc-tablet)) #compMain,:where(html:not(.nc-tablet)) #compThread,:where(html:not(.nc-tablet)) #thread.on #pfThread,:where(html:not(.nc-tablet)) .pend-files{flex-shrink:0}
  html:where(:not(.nc-tablet)).nc-kb-open,html:where(:not(.nc-tablet)).nc-kb-open body{
    overflow:hidden !important;
    overscroll-behavior:none;
  }
  /* Pin the composer to the visual-viewport bottom (flush on the keyboard),
     like Slack or Messages. The breadcrumb / Outline bar stays at the top
     of the thread panel. Messages fill the space between them. */
  html:where(:not(.nc-tablet)).nc-kb-open #compMain,
  html:where(:not(.nc-tablet)).nc-kb-open #thread.on #compThread{
    position:fixed;
    left:0;
    right:0;
    bottom:var(--nc-vv-bottom, 0px);
    z-index:85;
    margin:0 !important;
    border-radius:0;
    border-left:0;
    border-right:0;
    border-bottom:0;
    padding-left:max(8px, var(--nc-sal, 0px));
    padding-right:max(8px, var(--nc-sar, 0px));
    background:#fff;
    box-shadow:0 -1px 0 var(--line);
  }
  /* The channel composer is position:fixed at z-index 85, above the
     thread panel (65). Hide it while a thread or sub-thread is open so
     it cannot cover the "Reply in this sub-thread" bar. */
  html:where(:not(.nc-tablet)).nc-kb-open:has(#thread.on) #compMain{display:none !important}
  html:where(:not(.nc-tablet)).nc-kb-open #thread.on #lyCrumbs,
  html:where(:not(.nc-tablet)).nc-kb-open #thread.on .ly-crumbs{
    flex-shrink:0;
    position:relative;
    z-index:2;
    background:#fafbfc;
  }
  html:where(:not(.nc-tablet)).nc-kb-open #thread.on .ly-tree{
    max-height:28vh;
    overflow:auto;
  }
  html:where(:not(.nc-tablet)).nc-kb-open #msgs,
  html:where(:not(.nc-tablet)).nc-kb-open #thread.on #tMsgs{
    padding-bottom:calc(var(--nc-comp-h, 56px) + 8px);
  }
  :where(html:not(.nc-tablet)) .nc-mpick{
    left:8px;right:8px;width:auto;max-width:none;
    max-height:min(220px, 36vh);
  }
}

/* kbfix2-v1: no smooth jump when restoring a saved scroll position. */
#msgs, #tMsgs, .msgs{scroll-behavior:auto !important}

/* activity-v1, 25 Nov 2026: Activity feed, filters, and an iPhone bottom tab bar
   like Slack (Home, Activity, Approvals). The tab bar is hidden when the
   keyboard is open so the composer stays flush on it (kbfix2). Desktop is
   unchanged aside from the Activity sidebar row. */
.act-head .r{margin-left:auto}
.act-toolbar{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);background:#fff;flex-shrink:0;padding-right:10px}
.act-filters{display:flex;gap:6px;padding:8px 12px 6px;flex:1;min-width:0;overflow:auto;background:#fff;-webkit-overflow-scrolling:touch;border-bottom:0}
#actReadAll{font-size:13px;padding:6px 10px;white-space:nowrap;flex:0 0 auto}
.act-f{border:0;background:#f4f6f8;color:#334155;border-radius:16px;padding:7px 12px;font:inherit;font-size:13px;font-weight:650;cursor:pointer;flex:0 0 auto}
.act-f.on{background:#0b1522;color:#fff}
.act-list{flex:1;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#fff;min-height:0}
.act-row{display:flex;gap:10px;padding:12px 14px;border-bottom:1px solid #eef1f4;cursor:pointer;text-decoration:none;color:inherit}
.act-row:hover{background:#f7f9fb}
.act-row.unread{background:#f3f8ff}
.act-row.unread .act-sum{font-weight:650}
.act-kind{font-size:11px;font-weight:700;letter-spacing:.02em;color:#1264a3;text-transform:uppercase}
.act-meta{font-size:12px;color:var(--mut);margin-top:2px}
.act-sum{font-size:14px;line-height:1.35;margin-top:4px;overflow-wrap:anywhere}
.act-av{width:32px;height:32px;border-radius:8px;background:#e8eef4;color:#334155;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;flex-shrink:0}
.act-dot{width:8px;height:8px;border-radius:50%;background:#e01e5a;flex-shrink:0;margin-top:12px}
.act-row:not(.unread) .act-dot{visibility:hidden}
.act-empty{padding:32px 18px;color:var(--mut);text-align:center;font-size:14px}
.act-wrap{min-height:0}
#actBadge:empty,#actTabBadge:empty,#actApBadge:empty{display:none}

.act-tabs{display:none}

@media (max-width:700px){
  html:where(:not(.nc-tablet)){--nc-tab-h:0px}
  :where(html:not(.nc-tablet)) .act-tabs{
    display:flex;
    position:fixed;
    left:0;right:0;bottom:0;
    z-index:82;
    align-items:stretch;
    justify-content:space-around;
    background:#fff;
    border-top:1px solid var(--line);
    padding-bottom:env(safe-area-inset-bottom, 0px);
    min-height:calc(52px + env(safe-area-inset-bottom, 0px));
    box-shadow:0 -1px 0 rgba(15,23,32,.04);
  }
  :where(html:not(.nc-tablet)) .act-tabs[hidden]{display:none}
  html:where(:not(.nc-tablet)).nc-kb-open .act-tabs{display:none !important}
  :where(html:not(.nc-tablet)) .act-tab{
    flex:1 1 0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    text-decoration:none;
    color:#5b6775;
    font-size:10px;
    font-weight:700;
    padding:8px 4px 6px;
    position:relative;
    min-height:52px;
  }
  :where(html:not(.nc-tablet)) .act-tab.on{color:#0b1522}
  :where(html:not(.nc-tablet)) .act-tab-ic{font-size:18px;line-height:1}
  :where(html:not(.nc-tablet)) .act-tab .badge{
    position:absolute;
    top:4px;
    right:calc(50% - 22px);
    margin:0;
    min-width:16px;
    text-align:center;
  }
  /* Make room for the tab bar when the keyboard is closed. */
  :where(html:not(.nc-tablet)) .app{
    padding-bottom:calc(var(--nc-vv-bottom, 0px) + var(--nc-tab-h, 0px));
  }
  :where(html:not(.nc-tablet)) .thread.on{
    bottom:calc(var(--nc-vv-bottom, 0px) + var(--nc-tab-h, 0px));
  }
  :where(html:not(.nc-tablet)) .side.open,
  :where(html:not(.nc-tablet)) .side.open + .scrim{
    bottom:calc(var(--nc-vv-bottom, 0px) + var(--nc-tab-h, 0px));
  }
  :where(html:not(.nc-tablet)) .act-head .r{padding-right:8px}
  :where(html:not(.nc-tablet)) #actReadAll{font-size:12px;padding:5px 8px;margin-right:max(4px, var(--nc-sar, 0px))}
  :where(html:not(.nc-tablet)) .act-toolbar{padding-right:max(8px, var(--nc-sar, 0px))}
  :where(html:not(.nc-tablet)) .act-filters{padding-left:max(10px, var(--nc-sal, 0px));padding-right:8px}
  html:where(:not(.nc-tablet)).nc-kb-open .comp,
  html:where(:not(.nc-tablet)).nc-kb-open .comp.row1,
  html:where(:not(.nc-tablet)).nc-kb-open .thread.on .comp,
  html:where(:not(.nc-tablet)).nc-kb-open .thread.on .comp.row1{
    padding-bottom:max(8px, calc(var(--nc-sab, 0px) - var(--nc-vv-bottom, 0px)));
  }
}
@media (min-width:701px){
  .act-tabs{display:none !important}
}
/* tablet2b-v1: same rules for an iPad window of 600-700px (html.nc-tablet) */
:where(html.nc-tablet) .act-tabs{display:none !important}



/* activity2-v1, 25 Nov 2026: Slack-like iPhone chrome. Tab bar only on
   Home, Activity and Approvals (49px plus the safe area once). Chats get
   a single header and a slim one-line composer. The signed-in bar is
   folded into the Home list. Desktop is unchanged. */
.mtop-back{display:none;align-items:center;justify-content:center;flex:0 0 auto;border:0;background:transparent;color:#fff;font-size:28px;line-height:1;padding:0 8px 0 0;margin:0;min-width:28px;height:44px;cursor:pointer}
.ws-tools{display:none}
.act-read-short{display:none}
.act-tab-ic svg{width:24px;height:24px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:700px){
  /* One header in a chat: drop the signed-in bar (Jump to / Sign out live on Home). */
  :where(html:not(.nc-tablet)) #mbar{display:none !important}

  html:where(:not(.nc-tablet)):not(.nc-home-root) #v-chat.on .mtop-back{display:flex}
  html:where(:not(.nc-tablet)):not(.nc-home-root) #v-chat.on .mtop .menu{display:none}

  :where(html:not(.nc-tablet)) .act-read-full{display:none}
  :where(html:not(.nc-tablet)) .act-read-short{display:inline}

  /* Home list is a full-screen root, not a drawer over a chat. */
  html:where(:not(.nc-tablet)).nc-home-root #side{
    display:flex !important;
    position:fixed;
    top:0;left:0;right:0;bottom:0;
    width:100%;
    max-width:none;
    box-shadow:none;
    z-index:60;
    padding-top:0;
    padding-bottom:calc(49px + var(--nc-sab-eff, env(safe-area-inset-bottom, 0px)));
    padding-left:env(safe-area-inset-left, 0px);
    padding-right:env(safe-area-inset-right, 0px);
  }
  html:where(:not(.nc-tablet)).nc-home-root #side .ws{
    flex-shrink:0;
    width:100%;
    box-sizing:border-box;
    padding-top:calc(10px + env(safe-area-inset-top, 0px));
    padding-bottom:10px;
    gap:8px;
  }
  html:where(:not(.nc-tablet)).nc-home-root .ws-tools{display:flex;gap:8px;margin-left:auto;align-items:center;flex-shrink:0}
  :where(html:not(.nc-tablet)) .ws-jump,:where(html:not(.nc-tablet)) .ws-out{
    border:1px solid #2a3a4a;background:transparent;color:#d5dee7;
    border-radius:8px;padding:6px 10px;font:inherit;font-size:12.5px;font-weight:650;cursor:pointer;
  }
  :where(html:not(.nc-tablet)) .ws-jump:active,:where(html:not(.nc-tablet)) .ws-out:active{background:#1d2a37}
  html:where(:not(.nc-tablet)).nc-home-root .scrim,html:where(:not(.nc-tablet)).nc-home-root #sideScrim{display:none !important}
  html:where(:not(.nc-tablet)).nc-home-root #v-chat .chat{visibility:hidden;pointer-events:none}
  html:where(:not(.nc-tablet)).nc-home-root .view.on .mtop{display:none !important}

  /* Thread uses its own header. Hide the channel header so there is one bar. */
  html:where(:not(.nc-tablet)).nc-thread-on .view.on .mtop{display:none !important}
  html:where(:not(.nc-tablet)).nc-thread-on #thread.on{
    top:0;
    padding-top:env(safe-area-inset-top, 0px);
    bottom:var(--nc-vv-bottom, 0px);
  }
  html:where(:not(.nc-tablet)).nc-thread-on #thread.on .chead{display:flex !important}

  /* Tab bar: iOS / Slack style. Compact 49px plus the safe area once. */
  html:where(:not(.nc-tablet)){--nc-tab-h:0px}
  :where(html:not(.nc-tablet)) .act-tabs{
    display:none;
    position:fixed;
    left:0;right:0;bottom:0;
    z-index:82;
    align-items:stretch;
    justify-content:space-around;
    height:calc(49px + var(--nc-sab-eff, env(safe-area-inset-bottom, 0px)));
    min-height:calc(49px + var(--nc-sab-eff, env(safe-area-inset-bottom, 0px)));
    max-height:calc(49px + var(--nc-sab-eff, env(safe-area-inset-bottom, 0px)));
    padding:0 0 var(--nc-sab-eff, env(safe-area-inset-bottom, 0px)) 0;
    background:rgba(255,255,255,.92);
    -webkit-backdrop-filter:saturate(180%) blur(20px);
    backdrop-filter:saturate(180%) blur(20px);
    border-top:0.5px solid rgba(15,23,32,.18);
    box-shadow:none;
    box-sizing:border-box;
  }
  html:where(:not(.nc-tablet)).nc-tabs-on:not(.nc-kb-open) .act-tabs{display:flex}
  :where(html:not(.nc-tablet)) .act-tabs[hidden]{display:none !important}
  html:where(:not(.nc-tablet)).nc-kb-open .act-tabs{display:none !important}
  :where(html:not(.nc-tablet)) .act-tab{
    flex:1 1 0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:1px;
    text-decoration:none;
    color:#8b95a1;
    font-size:10px;
    font-weight:600;
    padding:4px 4px 2px;
    position:relative;
    min-height:0;
    height:49px;
    box-sizing:border-box;
  }
  :where(html:not(.nc-tablet)) .act-tab.on{color:#1264a3}
  :where(html:not(.nc-tablet)) .act-tab-ic{font-size:0;line-height:0}
  :where(html:not(.nc-tablet)) .act-tab .badge{
    position:absolute;
    top:2px;
    right:calc(50% - 18px);
    margin:0;
    min-width:16px;
    height:16px;
    line-height:16px;
    padding:0 4px;
    font-size:10px;
    font-weight:700;
    border-radius:999px;
    background:#e01e5a;
    color:#fff;
    text-align:center;
  }

  /* When tabs show, reserve 49px + safe area once. Never use a measured
     tab height that already includes the safe area (that left a black strip). */
  html:where(:not(.nc-tablet)).nc-tabs-on:not(.nc-kb-open) .app{
    padding-bottom:calc(49px + var(--nc-sab-eff, env(safe-area-inset-bottom, 0px)));
  }
  html:where(:not(.nc-tablet)):not(.nc-tabs-on) .app,
  html:where(:not(.nc-tablet)).nc-kb-open .app{
    padding-bottom:var(--nc-vv-bottom, 0px);
  }
  html:where(:not(.nc-tablet)):not(.nc-tabs-on) .thread.on,
  html:where(:not(.nc-tablet)).nc-kb-open .thread.on{
    bottom:var(--nc-vv-bottom, 0px);
  }
  html:where(:not(.nc-tablet)):not(.nc-tabs-on) .side.open,
  html:where(:not(.nc-tablet)):not(.nc-tabs-on) .side.open + .scrim,
  html:where(:not(.nc-tablet)).nc-kb-open .side.open,
  html:where(:not(.nc-tablet)).nc-kb-open .side.open + .scrim{
    bottom:var(--nc-vv-bottom, 0px);
  }

  /* Slim single-line composer, flush to the bottom. Grows only as you type. */
  :where(html:not(.nc-tablet)) .comp,
  :where(html:not(.nc-tablet)) .comp.row1,
  :where(html:not(.nc-tablet)) #compMain,
  :where(html:not(.nc-tablet)) .thread .comp,
  :where(html:not(.nc-tablet)) .thread .comp.row1,
  :where(html:not(.nc-tablet)) .thread.on .comp,
  :where(html:not(.nc-tablet)) .thread.on .comp.row1{
    margin:0 !important;
    border-radius:0;
    border-left:0;
    border-right:0;
    border-bottom:0;
    border-top:0.5px solid var(--line);
    padding-top:6px !important;
    padding-left:max(8px, var(--nc-sal, 0px)) !important;
    padding-right:max(8px, var(--nc-sar, 0px)) !important;
    padding-bottom:max(6px, calc(var(--nc-sab-eff, var(--nc-sab, 0px)) - var(--nc-vv-bottom, 0px))) !important;
    align-items:center;
    min-height:0;
    background:#fff;
    gap:4px;
  }
  html:where(:not(.nc-tablet)).nc-kb-open #compMain,
  html:where(:not(.nc-tablet)).nc-kb-open #thread.on #compThread{
    padding-bottom:6px !important;
  }
  :where(html:not(.nc-tablet)) .comp.row1 .ib,
  :where(html:not(.nc-tablet)) .comp .sx-em-insert,
  :where(html:not(.nc-tablet)) .comp .sx-later{
    min-width:32px !important;
    min-height:32px !important;
    width:32px !important;
    height:32px !important;
    box-sizing:border-box;
  }
  :where(html:not(.nc-tablet)) .comp.row1 .send{
    min-height:32px !important;
    height:32px !important;
    min-width:56px !important;
    width:auto !important;
    padding:0 10px !important;
    box-sizing:border-box;
    flex:0 0 auto;
  }
  :where(html:not(.nc-tablet)) .comp-hlwrap{
    align-self:center !important;
    display:block;
    position:relative;
    flex:1 1 auto;
    min-width:0;
    min-height:0;
  }
  :where(html:not(.nc-tablet)) .comp textarea,
  :where(html:not(.nc-tablet)) .comp-hl{
    font-family:inherit !important;
    font-size:16px !important;
    font-weight:400 !important;
    font-style:normal !important;
    line-height:20px !important;
    letter-spacing:normal !important;
    padding:6px 8px !important;
    margin:0 !important;
    border:0 !important;
    box-sizing:border-box !important;
    min-height:32px !important;
    max-height:180px;
  }
  :where(html:not(.nc-tablet)) .comp-hlwrap textarea{
    flex:none;
    width:100%;
    max-width:100%;
    display:block;
    height:32px;
    align-self:auto;
    resize:none;
    overflow-x:hidden;
    overflow-y:auto;
    vertical-align:top;
    overflow-wrap:break-word;
    word-break:normal;
  }
  :where(html:not(.nc-tablet)) .comp-hl{
    position:absolute;
    inset:0;
    overflow:hidden;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    word-wrap:break-word;
    background:transparent;
  }

  /* Tighter chat chrome: subjects, Mark done, pins, thread rows. */
  :where(html:not(.nc-tablet)) .cc-pins{margin:6px 10px;padding:4px 8px;border-radius:8px;max-height:30vh}
  :where(html:not(.nc-tablet)) .cc-mdone{padding:2px 8px;font-size:12px;border-radius:999px}
  :where(html:not(.nc-tablet)) .cc-pin{padding:4px 2px;font-size:13px}
  :where(html:not(.nc-tablet)) #v-chat .mtop{height:52px}
  :where(html:not(.nc-tablet)) .mtop[style]{ }
}

@media (min-width:701px){
  .mtop-back,.ws-tools,.act-read-short{display:none !important}
}
/* tablet2b-v1: same rules for an iPad window of 600-700px (html.nc-tablet) */
:where(html.nc-tablet) .mtop-back,:where(html.nc-tablet) .ws-tools,:where(html.nc-tablet) .act-read-short{display:none !important}



/* activity2-v1 composer row: Slack iOS layout. The field takes the full
   width of the first row (+ on the left, a paper-plane Send on the right
   only when there is text). @, mic / Live, emoji, schedule and automation
   sit in a compact second row that appears only while the field is focused. */
.comp-row{display:flex;flex-direction:row;align-items:flex-end;gap:8px;width:100%;min-width:0}
.comp-tools{display:flex;flex-direction:row;align-items:center;gap:2px;flex-shrink:0}
.send-plane{display:none}
.send-ico .send-label{display:inline}

@media (min-width:701px){
  .comp.row1,.comp{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap}
  .comp-row,.comp-tools{display:contents}
  .comp [data-act=attach]{order:1}
  .comp [data-act=mention]{order:2}
  .comp-hlwrap{order:3;flex:1 1 auto;min-width:0}
  .comp [data-act=record],.comp .ld-btn{order:4}
  .comp [data-act=auto]{order:5}
  .comp .sx-em-insert{order:6}
  .comp .send{order:7}
  .comp .sx-later{order:8}
  .send-plane{display:none !important}
  .send-ico .send-label{display:inline}
}
/* tablet2b-v1: same rules for an iPad window of 600-700px (html.nc-tablet) */
:where(html.nc-tablet) .comp.row1,:where(html.nc-tablet) .comp{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap}
  :where(html.nc-tablet) .comp-row,:where(html.nc-tablet) .comp-tools{display:contents}
  :where(html.nc-tablet) .comp [data-act=attach]{order:1}
  :where(html.nc-tablet) .comp [data-act=mention]{order:2}
  :where(html.nc-tablet) .comp-hlwrap{order:3;flex:1 1 auto;min-width:0}
  :where(html.nc-tablet) .comp [data-act=record],:where(html.nc-tablet) .comp .ld-btn{order:4}
  :where(html.nc-tablet) .comp [data-act=auto]{order:5}
  :where(html.nc-tablet) .comp .sx-em-insert{order:6}
  :where(html.nc-tablet) .comp .send{order:7}
  :where(html.nc-tablet) .comp .sx-later{order:8}
  :where(html.nc-tablet) .send-plane{display:none !important}
  :where(html.nc-tablet) .send-ico .send-label{display:inline}


@media (max-width:700px){
  :where(html:not(.nc-tablet)) .comp,
  :where(html:not(.nc-tablet)) .comp.row1,
  :where(html:not(.nc-tablet)) #compMain,
  :where(html:not(.nc-tablet)) .thread .comp,
  :where(html:not(.nc-tablet)) .thread .comp.row1,
  :where(html:not(.nc-tablet)) .thread.on .comp,
  :where(html:not(.nc-tablet)) .thread.on .comp.row1{
    display:flex !important;
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }
  :where(html:not(.nc-tablet)) .comp-row{
    display:flex;
    flex-direction:row;
    align-items:flex-end !important;
    gap:8px;
    width:100%;
    min-width:0;
  }
  :where(html:not(.nc-tablet)) .comp-row > .ib[data-act=attach]{
    flex:0 0 auto !important;
    width:36px !important;
    min-width:36px !important;
    height:36px !important;
    min-height:36px !important;
  }
  :where(html:not(.nc-tablet)) .comp-row .comp-hlwrap{
    flex:1 1 auto !important;
    min-width:0 !important;
    width:auto !important;
    max-width:none !important;
  }
  :where(html:not(.nc-tablet)) .comp-row .comp-hlwrap textarea{
    width:100% !important;
    max-width:100% !important;
    overflow-wrap:break-word !important;
    word-break:normal !important;
  }
  /* Paper-plane circle, only when there is text or a pending file. */
  :where(html:not(.nc-tablet)) .comp-row .send.send-ico{
    display:none !important;
    flex:0 0 auto !important;
    align-items:center;
    justify-content:center;
    width:36px !important;
    min-width:36px !important;
    height:36px !important;
    min-height:36px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    border-radius:50% !important;
    background:#1264a3;
    color:#fff;
    box-shadow:none;
  }
  :where(html:not(.nc-tablet)) .comp.has-text .comp-row .send.send-ico{display:flex !important}
  :where(html:not(.nc-tablet)) .comp-row .send.send-ico .send-label{display:none}
  :where(html:not(.nc-tablet)) .comp-row .send.send-ico .send-plane{display:block}
  :where(html:not(.nc-tablet)) .comp-row .send.send-ico[disabled]{opacity:.45}

  /* Second tool row: only while the composer is focused or the keyboard is open. */
  :where(html:not(.nc-tablet)) .comp-tools{
    display:none;
    flex-direction:row;
    align-items:center;
    gap:4px;
    padding:4px 0 0 44px;
    min-height:0;
  }
  :where(html:not(.nc-tablet)) .comp.nc-comp-focus .comp-tools,
  :where(html:not(.nc-tablet)) .comp:focus-within .comp-tools,
  html:where(:not(.nc-tablet)).nc-kb-open #compMain .comp-tools,
  html:where(:not(.nc-tablet)).nc-kb-open #thread.on #compThread .comp-tools{
    display:flex;
  }
  :where(html:not(.nc-tablet)) .comp-tools .ib,
  :where(html:not(.nc-tablet)) .comp-tools .sx-em-insert,
  :where(html:not(.nc-tablet)) .comp-tools .sx-later,
  :where(html:not(.nc-tablet)) .comp-tools .ld-btn{
    flex:0 0 auto;
    width:32px !important;
    min-width:32px !important;
    height:32px !important;
    min-height:32px !important;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    font-size:16px;
    border-radius:8px;
  }
  :where(html:not(.nc-tablet)) .comp-tools .ld-btn{
    width:auto !important;
    min-width:32px !important;
    padding:0 8px !important;
    font-size:11px;
    font-weight:700;
  }
}

/* staff0-v1: empty Home for a new staff sign-in */
.nc-staff-empty{padding:36px 22px 24px;max-width:28rem;margin:0 auto}
.nc-staff-empty b{font-size:16px}

/* staff1-v1: New message, request a channel, add-people history */
.nc-staff-actions{display:flex;flex-direction:column;gap:8px;padding:12px 14px 6px}
.nc-staff-btn{appearance:none;border:1px solid var(--line,#2a3a4d);background:#122033;color:var(--txt,#e8eef5);border-radius:10px;padding:10px 12px;font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer}
.nc-staff-btn:active{transform:scale(0.99)}
.nc-staff-pick{max-height:220px;overflow:auto;display:flex;flex-direction:column;gap:4px;margin:8px 0}
.nc-staff-pick button{appearance:none;border:1px solid #e2e8f0;background:#f8fafc;color:#0f172a;text-align:left;padding:10px 12px;border-radius:8px;font:inherit;font-size:15px;cursor:pointer}
.nc-staff-pick button:active,.nc-staff-pick button:hover{background:#e2e8f0}
.nc-staff-chips{display:flex;flex-wrap:wrap;gap:6px;min-height:0;margin:6px 0}
.nc-staff-chips span{background:#1a4a7a;color:#fff;border-radius:999px;padding:4px 8px;font-size:12px}
.ac-add{flex-direction:column;align-items:stretch}
.ac-add>label{display:flex;flex-direction:column;align-items:stretch;gap:6px;font-weight:600}
.ac-add select{margin-left:0;max-width:100%}
.ac-add button[data-acadd]{align-self:flex-start}
.nc-staff-hist{display:flex;flex-direction:column;gap:8px;width:100%}
.nc-staff-hist>p{margin:0}
.nc-staff-hist label{display:flex;align-items:center;gap:10px;margin:0;font-size:14px;font-weight:500;flex-wrap:nowrap}
.nc-staff-hist input[type="radio"],
.nc-staff-check input[type="checkbox"]{display:inline-block;width:auto;flex:0 0 auto;margin:0}
.nc-staff-hist input[type="date"]{display:inline-block;width:auto;flex:0 0 auto;font:inherit;font-size:16px;padding:4px 8px;border:1px solid var(--line,#cbd5e1);border-radius:8px;min-width:11rem;margin:0}
.nc-staff-check{display:flex;align-items:center;gap:8px;margin:8px 0 4px;font-size:14px}
.nc-staff-sent{padding:24px 8px;text-align:center;line-height:1.5}

/* activity3-v1, 25 Nov 2026: pack short message lists against the composer
   (Slack-style, so there is no empty band between the last message and
   the typing bar). Apply the home-indicator inset only once. Slack-style
   file preview cards. */
.msgs, #msgs, #tMsgs{
  display:flex;
  flex-direction:column;
  min-height:0;
  padding-top:8px;
}
.msgs > .nc-pack-sp,
#msgs > .nc-pack-sp,
#tMsgs > .nc-pack-sp{
  flex:1 1 auto;
  min-height:0;
  height:auto;
  pointer-events:none;
  font-size:0;
  line-height:0;
}
.msgs > *:not(.nc-pack-sp),
#msgs > *:not(.nc-pack-sp),
#tMsgs > *:not(.nc-pack-sp){
  flex:0 0 auto;
  min-width:0;
  max-width:100%;
}

.att-imgs{display:flex;flex-wrap:wrap;gap:4px;max-width:min(360px,100%);margin-top:2px}
.att-imgs.att-one .att-img img{max-width:min(320px,100%);max-height:240px;width:auto;height:auto;object-fit:contain;border-radius:10px;border:1px solid var(--line);display:block;background:#f4f6f8}
.att-imgs.att-grid{display:grid;gap:4px;width:min(360px,100%)}
.att-imgs.att-n2{grid-template-columns:1fr 1fr}
.att-imgs.att-n3,.att-imgs.att-n4{grid-template-columns:1fr 1fr}
.att-img{display:block;min-width:0;border-radius:10px;overflow:hidden;background:#eef1f4}
.att-grid .att-img img{width:100%;height:140px;object-fit:cover;display:block;border:0;border-radius:0}
.att-card{
  display:flex;align-items:stretch;gap:0;max-width:min(360px,100%);
  border:1px solid var(--line);border-radius:10px;overflow:hidden;
  background:#fff;color:var(--txt);text-decoration:none;margin-top:4px;
}
.att-card:hover{background:#f8fafc}
.att-thumb{
  flex:0 0 88px;width:88px;min-height:72px;max-height:96px;
  background:#eef1f4;display:flex;align-items:center;justify-content:center;
  overflow:hidden;position:relative;
}
.att-pdf .att-thumb{background:#f3f4f6}
.att-pdf-ph{font-size:11px;font-weight:800;letter-spacing:.06em;color:#c2410c;border:1.5px solid #c2410c;border-radius:4px;padding:2px 5px;background:#fff}
.att-pdf-canvas{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}
.att-cad-ic{color:#1264a3}
.att-file-ic{font-size:22px;line-height:1}
.att-meta{flex:1 1 auto;min-width:0;padding:10px 12px;display:flex;flex-direction:column;justify-content:center;gap:2px}
.att-meta b{font-size:13.5px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.att-meta .muted{font-size:12px}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .att-imgs,:where(html:not(.nc-tablet)) .att-card{max-width:100%}
  :where(html:not(.nc-tablet)) .att-grid .att-img img{height:120px}
}

/* activity3-v1 nav: Slack-style section + and collapse; My requests cards. */
.sec.nc-sec{align-items:center;gap:8px;padding-right:10px}
.sec-toggle{
  appearance:none;background:transparent;border:0;color:inherit;font:inherit;
  font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;
  display:flex;align-items:center;gap:6px;padding:0;margin:0;cursor:pointer;
  flex:1 1 auto;min-width:0;text-align:left;
}
.sec-chev{
  display:inline-block;width:0;height:0;flex:0 0 auto;
  border-left:5px solid transparent;border-right:5px solid transparent;
  border-top:6px solid currentColor;transform:rotate(0deg);
  transition:transform .12s ease;opacity:.85;
}
.nc-sec.is-collapsed .sec-chev{transform:rotate(-90deg)}
.sec.nc-sec .add{flex:0 0 auto;min-width:22px;min-height:22px;display:inline-flex;align-items:center;justify-content:center}
#sec-channels.is-collapsed + #chanList > .it:not(.bold){display:none !important}
#sec-channels.is-collapsed + #chanList + #ncStaffEmpty{display:none !important}
#sec-dms.is-collapsed + #dmList > .it:not(.bold){display:none !important}
#sec-tags.is-collapsed + #tagList > .it{display:none !important}
#sec-people.is-collapsed ~ #pFindWrap{display:none !important}
#sec-people.is-collapsed ~ #peopleList > .it:not(.bold){display:none !important}
#sec-manager.is-collapsed + #nav-checklist{display:none !important}
.myreq{border:1px solid var(--line,#e2e8f0);border-radius:10px;padding:12px 14px;margin:0 0 8px;background:#fff}
.myreq-top{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.myreq-top b{flex:1;min-width:0}
.myreq .ap-meta{margin-top:4px}
#tab-approvals[hidden]{display:none !important}

/* activity3-v1: who can see this, Activity preview pane */
.nc-whosee{display:inline-flex;align-items:center;gap:6px;max-width:100%;margin:6px 0 0;padding:4px 8px;border:1px solid var(--line,#d5dee8);border-radius:999px;background:#f8fafc;color:#334155;font:600 12px/1.3 system-ui,sans-serif;cursor:pointer;text-align:left}
.nc-whosee[hidden]{display:none !important}
.nc-whosee-lock{flex:0 0 auto}
.nc-whosee-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nc-whosee-avs{display:inline-flex;margin-left:2px}
.nc-whosee-avs .av,.nc-whosee-avs .ac-av{width:18px;height:18px;font-size:8px;margin-left:-4px;border:1px solid #fff;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e2e8f0}
.nc-whosee-m{margin:0 8px 0 auto;max-width:46%}
.nc-whosee-flow{display:none}
.nc-whosee-flow[hidden]{display:none !important}
.nc-whosee-t{margin:0 8px 0 auto;max-width:42%}
.nc-whosee-note{margin:0;padding:6px 14px 8px;font-size:12.5px;line-height:1.4;color:#9a3412;background:#fff7ed;border-bottom:1px solid #fed7aa}
.nc-whosee-note[hidden]{display:none !important}
.queued{font-size:10.5px;font-weight:700;color:#92400e;background:#fef3c7;border-radius:4px;padding:0 5px;margin-left:6px}
#actWrap{display:flex;flex-direction:row;align-items:stretch;height:100%;min-height:0}
#actWrap .act-main{flex:1 1 46%;min-width:0;min-height:0;display:flex;flex-direction:column}
#actWrap .act-main .act-list{flex:1;min-height:0;overflow:auto}
.act-preview{flex:1 1 54%;min-width:280px;max-width:56%;border-left:1px solid var(--line,#e2e8f0);display:flex;flex-direction:column;background:#fff;min-height:0}
.act-preview[hidden]{display:none !important}
.act-prev-head{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line,#e2e8f0);flex-shrink:0}
.act-prev-title{flex:1;min-width:0}
.act-prev-title .nm{font-weight:700;font-size:14px}
.act-prev-title .ds{font-size:12px;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.act-prev-back,.act-prev-x{border:0;background:none;font-size:20px;cursor:pointer;padding:4px 6px;color:#334155}
.act-prev-back{display:none}
.act-prev-body{flex:1;min-height:0;overflow:auto;padding:10px 12px}
.act-prev-comp{display:flex;gap:8px;padding:8px 12px;border-top:1px solid var(--line,#e2e8f0);flex-shrink:0}
.act-prev-comp[hidden]{display:none !important}
.act-prev-comp textarea{flex:1;min-height:36px;max-height:90px;resize:none;border:1px solid var(--line,#d5dee8);border-radius:8px;padding:8px;font:inherit}
.act-row.on{background:#eff6ff}
.act-row.unread.held .act-dot{opacity:.45}
.m.nc-jump-hl{outline:2px solid #2563eb;outline-offset:2px;border-radius:8px}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .act-preview{position:fixed;inset:0;z-index:90;max-width:none;min-width:0;border-left:0;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
  :where(html:not(.nc-tablet)) .act-prev-head{min-height:48px;background:#fff}
  :where(html:not(.nc-tablet)) .act-prev-back{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px}
  :where(html:not(.nc-tablet)) .act-prev-x{display:none}
  :where(html:not(.nc-tablet)) .nc-whosee-m{display:none !important}
  :where(html:not(.nc-tablet)) .nc-whosee-flow{display:inline-flex;margin:8px 12px 6px;max-width:calc(100% - 24px)}
}

/* mobile1-v1, 25 Nov 2026; backfix-v1
   Pad chat, thread and other mobile headers by the status-bar safe area
   so the back control is not in the clock area. activity2 set
   #v-chat .mtop{height:52px}, which (with border-box and the existing
   padding-top inset) squeezed the 44px back button into the status bar.
   Also: 44px tap targets on the header back control. The thumb-reach Back
   pill was removed in tablet1-v1 (it covered content; swipe-back and the
   header back arrow are enough).
   Keyboard pin remains kbfix-v1 / kbfix2-v1; this block does not rewrite it.
   --nc-sat-pad is env(safe-area-inset-top), or --nc-sat-js (Home Screen
   fallback), or --nc-sat-test (test injection). env() stays 0 on desktop. */
html{
  --nc-sat-pad:max(env(safe-area-inset-top, 0px), var(--nc-sat-js, 0px), var(--nc-sat-test, 0px));
}
#ncBackPill{display:none!important}

@media (max-width:700px){
  html:where(:not(.nc-tablet)){
    --nc-chrome-h:calc(var(--nc-sat-pad, 0px) + 56px);
  }

  /* Channel and other view headers: content height plus the inset, not
     a fixed 52/56px that includes (and then eats) the padding. */
  :where(html:not(.nc-tablet)) .view.on .mtop,
  :where(html:not(.nc-tablet)) .mbar[hidden] + .app .mtop{
    box-sizing:border-box;
    height:calc(56px + var(--nc-sat-pad, 0px)) !important;
    padding-top:var(--nc-sat-pad, 0px) !important;
    align-items:center;
  }
  :where(html:not(.nc-tablet)) #v-chat .mtop{
    height:calc(52px + var(--nc-sat-pad, 0px)) !important;
    padding-top:var(--nc-sat-pad, 0px) !important;
  }

  :where(html:not(.nc-tablet)) .mtop-back,
  :where(html:not(.nc-tablet)) #mBack{
    min-width:44px;
    min-height:44px;
    width:44px;
    height:44px;
    padding:0;
    box-sizing:border-box;
    flex:0 0 44px;
  }

  /* Full-screen thread / sub-thread: keep the close control below the
     status bar (activity2 had placed the panel at top:0). */
  html:where(:not(.nc-tablet)).nc-thread-on #thread.on{
    top:0;
    padding-top:var(--nc-sat-pad, 0px);
  }
  html:where(:not(.nc-tablet)).nc-thread-on #thread.on .chead{
    min-height:52px;
    box-sizing:border-box;
    flex-shrink:0;
  }
  :where(html:not(.nc-tablet)) #thread.on #tClose,
  :where(html:not(.nc-tablet)) #thread.on .chead .x{
    min-width:44px;
    min-height:44px;
    width:44px;
    height:44px;
    box-sizing:border-box;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin:0;
    flex:0 0 44px;
  }

  /* Home list header, when env() is 0 on an Android Home Screen app. */
  html:where(:not(.nc-tablet)).nc-home-root #side .ws{
    padding-top:calc(10px + var(--nc-sat-pad, 0px));
  }

  /* Activity preview already pads the panel; keep the back target 44px. */
  :where(html:not(.nc-tablet)) .act-prev-back{
    min-width:44px;
    min-height:44px;
  }

  /* tablet1-v1: #ncBackPill stays display:none on phones too. */
}

@media (min-width:701px){
  #ncBackPill{display:none !important}
}
/* tablet2b-v1: same rules for an iPad window of 600-700px (html.nc-tablet) */
:where(html.nc-tablet) #ncBackPill{display:none !important}


/* quotedue1-v1, 25 Nov 2026: per-thread due dates. Display is "Tue, Nov 17, 2026" in PT. */
.due-chip{display:inline-flex;align-items:center;font-size:11.5px;font-weight:600;line-height:18px;padding:0 8px;border-radius:9px;background:#f1f5f9;border:1px solid #e2e8f0;color:#334155;white-space:nowrap;user-select:none}
.due-chip.amber{background:#fff7ed;border-color:#fdba74;color:#9a3412}
.due-chip.red{background:#fef2f2;border-color:#fca5a5;color:#b91c1c}
.ly-chips .due-chip,.ly-st .due-chip{margin-right:2px}
.due-head{display:flex;align-items:center;gap:8px;padding:6px 14px;border-bottom:1px solid var(--line);background:#fafbfc;flex-shrink:0;flex-wrap:wrap}
.due-head .due-none{font-size:12.5px;color:var(--mut)}
.due-btn{font:inherit;font-size:12.5px;font-weight:600;border:1px solid var(--line);background:#fff;border-radius:14px;padding:3px 10px;color:var(--txt);white-space:nowrap;cursor:pointer}
.due-btn.pri,.due-actions .ly-btn.pri{background:var(--blue);color:#fff;border-color:var(--blue)}
.due-btn.due-clear,.due-actions .due-clear{color:#9a3412}
.due-preview{margin:4px 0 8px;font-weight:600;font-size:15px}
.due-presets{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.due-presets button{font:inherit;font-size:12.5px;font-weight:600;border:1px solid var(--line);background:#fff;border-radius:14px;padding:4px 10px;cursor:pointer}
.due-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
#sec-due{margin-top:2px}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .due-head{padding:6px 12px}
  :where(html:not(.nc-tablet)) .due-btn{padding:5px 12px}
}
@media (hover:none){
  .due-btn,.due-presets button{padding:5px 12px}
}


/* tablet1-v1, 25 Nov 2026
   iPad and other widths >= 701px keep the split layout (menu left,
   conversation right). activity2 / activity3 phone chrome (full-screen
   Home list, bottom tab bar) is phones only (<700px). The dark body
   background must not show as a band under the app. The menu edge is
   a drag handle (220-480px). The floating Back pill is gone on every
   width; header safe-area padding and the 44px header back stay. */
.ssplit{flex:0 0 20px;margin:0 -10px 0 -10px;position:relative;z-index:6;cursor:col-resize;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;outline:none;overscroll-behavior:none;align-self:stretch}
.ssplit[hidden]{display:none!important}
.ssplit::before{content:"";position:absolute;top:0;bottom:0;left:9px;width:2px;background:transparent;transition:background .15s}
.ssplit::after{content:"";position:absolute;left:8px;top:50%;width:4px;height:36px;margin-top:-18px;border-radius:2px;background:#c3ccd6;opacity:0;transition:opacity .15s,background .15s}
.ssplit:hover::after{opacity:.9}
.ssplit:hover::before,.ssplit.drag::before,.ssplit:focus-visible::before{background:var(--blue)}
.ssplit.drag::after,.ssplit:focus-visible::after{background:var(--blue);opacity:1}
@media (hover:none) and (pointer:coarse){
  .ssplit{flex-basis:28px;margin:0 -14px 0 -14px}
  .ssplit::before{left:13px}
  .ssplit::after{left:12px;height:44px;margin-top:-22px;opacity:1}
}
@media (max-width:700px){
  :where(html:not(.nc-tablet)) .ssplit{display:none!important}
  :where(html:not(.nc-tablet)) #ncBackPill{display:none!important}
}

@media (min-width:701px){
  html,body{height:100%;height:100dvh}
  body:has(#login.hidden){overflow:hidden}
  body:has(#login.hidden) .app{
    flex:1;
    min-height:0;
    height:100%;
    height:100dvh;
    padding-bottom:0!important;
    padding-top:0;
  }
  .act-tabs{display:none!important}
  #ncBackPill{display:none!important}
  /* Even if JS left nc-home-root or .side.open from a phone session or #home,
     the menu stays an in-flow sidebar beside the conversation. */
  html.nc-home-root #side,
  #side,
  .side,
  .side.open{
    display:flex!important;
    position:relative!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    inset:auto!important;
    width:var(--nc-side-w, 268px);
    max-width:none;
    box-shadow:none;
    z-index:auto;
    padding-top:0;
    padding-bottom:0;
    padding-left:0;
    padding-right:0;
    flex-shrink:0;
  }
  html.nc-home-root #v-chat .chat{visibility:visible!important;pointer-events:auto!important}
  html.nc-home-root .scrim,
  html.nc-home-root #sideScrim,
  .side.open + .scrim,
  #sideScrim{display:none!important}
  html.nc-home-root .view.on .mtop,
  .view.on .mtop,
  .mtop{display:none!important}
  .top{display:flex!important}
  #v-chat.on .chead{display:flex!important}
  .due-head{display:flex}
}
/* tablet2b-v1: same rules for an iPad window of 600-700px (html.nc-tablet) */
html:where(.nc-tablet),:where(html.nc-tablet) body{height:100%;height:100dvh}
  :where(html.nc-tablet) body:has(#login.hidden){overflow:hidden}
  :where(html.nc-tablet) body:has(#login.hidden) .app{
    flex:1;
    min-height:0;
    height:100%;
    height:100dvh;
    padding-bottom:0!important;
    padding-top:0;
  }
  :where(html.nc-tablet) .act-tabs{display:none!important}
  :where(html.nc-tablet) #ncBackPill{display:none!important}
  /* Even if JS left nc-home-root or .side.open from a phone session or #home,
     the menu stays an in-flow sidebar beside the conversation. */
  html:where(.nc-tablet).nc-home-root #side,
  :where(html.nc-tablet) #side,
  :where(html.nc-tablet) .side,
  :where(html.nc-tablet) .side.open{
    display:flex!important;
    position:relative!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    inset:auto!important;
    width:var(--nc-side-w, 268px);
    max-width:none;
    box-shadow:none;
    z-index:auto;
    padding-top:0;
    padding-bottom:0;
    padding-left:0;
    padding-right:0;
    flex-shrink:0;
  }
  html:where(.nc-tablet).nc-home-root #v-chat .chat{visibility:visible!important;pointer-events:auto!important}
  html:where(.nc-tablet).nc-home-root .scrim,
  html:where(.nc-tablet).nc-home-root #sideScrim,
  :where(html.nc-tablet) .side.open + .scrim,
  :where(html.nc-tablet) #sideScrim{display:none!important}
  html:where(.nc-tablet).nc-home-root .view.on .mtop,
  :where(html.nc-tablet) .view.on .mtop,
  :where(html.nc-tablet) .mtop{display:none!important}
  :where(html.nc-tablet) .top{display:flex!important}
  :where(html.nc-tablet) #v-chat.on .chead{display:flex!important}
  :where(html.nc-tablet) .due-head{display:flex}




/* tablet2-v1, 25 Nov 2026
   iPad Home Screen app: the shell must reach the bottom of the screen.
   tablet1 pinned html, body and .app to 100dvh at >= 701px. On iOS / iPadOS
   26+ Home Screen apps (viewport-fit=cover, black-translucent) WebKit reports
   100dvh and innerHeight short by about the status-bar height, so the app
   stopped above the bottom edge and the dark body color showed as a band
   under the conversation. Desktop emulators do not reproduce this.
   1. >= 701px: back to body fixed at inset 0 (full-height-v1), no 100dvh.
   2. iOS Home Screen app (html.nc-ios-sa, set by app.js): the body is at least
      100lvh tall, so it covers the strip when WebKit exposes it.
   3. Anything WebKit will not let the page lay out is painted to match the
      columns: menu color under the menu, white under the conversation. */
@media (min-width:701px){
  html,body{height:100%}
  body{top:0;right:0;bottom:0;left:0;height:auto}
  body:has(#login.hidden) .app{height:auto;flex:1;min-height:0}
  html.nc-ios-sa body{bottom:auto;height:100%;height:max(100%, 100lvh)}
  html:has(#login.hidden){
    background:linear-gradient(to right,
      var(--side) 0, var(--side) var(--nc-side-paint, 268px),
      var(--bg) var(--nc-side-paint, 268px), var(--bg) 100%);
  }
}
/* tablet2b-v1: same rules for an iPad window of 600-700px (html.nc-tablet) */
html:where(.nc-tablet),:where(html.nc-tablet) body{height:100%}
  :where(html.nc-tablet) body{top:0;right:0;bottom:0;left:0;height:auto}
  :where(html.nc-tablet) body:has(#login.hidden) .app{height:auto;flex:1;min-height:0}
  html:where(.nc-tablet).nc-ios-sa body{bottom:auto;height:100%;height:max(100%, 100lvh)}
  html:where(.nc-tablet):has(#login.hidden){
    background:linear-gradient(to right,
      var(--side) 0, var(--side) var(--nc-side-paint, 268px),
      var(--bg) var(--nc-side-paint, 268px), var(--bg) 100%);
  }


/* tablet2b-v1, 25 Nov 2026
   An iPad (iPad UA, or a Mac UA with touch) whose window is 600px or wider
   gets html.nc-tablet from index.html / app.js and keeps the split layout
   even when the CSS width is 700px or less (Display Zoom, iPad mini, Stage
   Manager, Split View). Every max-width:700px phone rule is scoped to
   html:not(.nc-tablet) and every min-width:701px rule is repeated for
   html.nc-tablet (build step, same cascade position, :where() so
   specificity is unchanged). Phones never get nc-tablet. */
html.nc-tablet .act-tabs,
html.nc-tablet #actTabs{display:none!important}
html.nc-tablet #ncBackPill{display:none!important}


/* menubtn1-v1, 25 Nov 2026: on a phone channel or DM page, show a menu
   icon (not a back arrow) that opens a partial-width drawer with a
   draggable right edge. The Home / Activity / Approvals bar stays
   visible on those pages. Tablet split layout is unchanged. */
#tBack{display:none}
@media (max-width:700px){
  html:where(:not(.nc-tablet)):not(.nc-home-root):not(.nc-thread-on) #v-chat.on .mtop-back{display:none !important}
  html:where(:not(.nc-tablet)):not(.nc-home-root):not(.nc-thread-on) #v-chat.on .mtop .menu{
    display:flex !important;
    align-items:center;
    justify-content:center;
    flex:0 0 44px;
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
    box-sizing:border-box;
    border:0;
    background:transparent;
    color:#fff;
    font-size:22px;
    line-height:1;
    padding:0;
    margin:0;
    cursor:pointer;
  }
  html:where(:not(.nc-tablet)):not(.nc-home-root) #side.open{
    width:var(--nc-phone-side-w, 280px) !important;
    max-width:calc(100vw - 60px) !important;
    box-sizing:border-box;
  }
  /* sSplit sits between #side and #sideScrim, so the old adjacent-sibling
     rule never showed the dimmed area. Use the general sibling instead. */
  html:where(:not(.nc-tablet)):not(.nc-home-root) #side.open ~ #sideScrim{
    display:block !important;
    position:fixed;
    top:0;
    right:0;
    bottom:calc(var(--nc-vv-bottom, 0px) + var(--nc-tab-h, 0px));
    left:0;
    z-index:69;
    background:rgba(3,8,16,.5);
    -webkit-tap-highlight-color:transparent;
    width:auto;
    max-width:100vw;
    touch-action:none;
    pointer-events:auto;
  }
  html:where(:not(.nc-tablet)):not(.nc-home-root) #side.open + #sSplit{
    display:block !important;
    position:fixed;
    top:0;
    bottom:calc(var(--nc-vv-bottom, 0px) + var(--nc-tab-h, 0px));
    left:var(--nc-phone-side-w, 280px);
    width:28px;
    margin:0 0 0 -14px;
    z-index:71;
    pointer-events:auto;
  }
  html:where(:not(.nc-tablet)).nc-thread-on #thread.on #tBack{
    display:flex !important;
    align-items:center;
    justify-content:center;
    flex:0 0 44px;
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
    box-sizing:border-box;
    border:0;
    background:transparent;
    color:#0b1522;
    font-size:28px;
    line-height:1;
    padding:0;
    margin:0 4px 0 0;
    cursor:pointer;
  }
}

/* dm1-v1: Slack-style New message sheet */
html.nc-dm-open,html.nc-dm-open body{overflow:hidden}
.nc-dm-ov{position:fixed;inset:0;bottom:var(--nc-vv-bottom,0px);z-index:1100;background:rgba(10,17,24,.45);display:flex;align-items:flex-end;justify-content:center;padding:max(8px,env(safe-area-inset-top,0px)) 0 0;opacity:0;transition:opacity .2s ease;-webkit-tap-highlight-color:transparent}
.nc-dm-ov.is-in{opacity:1}
.nc-dm-ov.is-out{opacity:0}
.nc-dm-ov.is-out .nc-dm-sheet{transform:translateY(100%)}
.nc-dm-ov.is-drag{transition:none}
.nc-dm-ov.is-drag .nc-dm-sheet{transition:none}
.nc-dm-sheet{width:100%;height:calc(100% - 8px);max-height:100%;background:#fff;color:var(--txt);border-radius:16px 16px 0 0;box-shadow:0 -8px 40px rgba(15,23,32,.28);display:flex;flex-direction:column;min-height:0;padding-bottom:max(10px,env(safe-area-inset-bottom,0px));padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);transform:translateY(100%);transition:transform .28s ease;overflow:hidden}
.nc-dm-ov.is-in .nc-dm-sheet{transform:translateY(0)}
.nc-dm-grab{flex:0 0 auto;display:flex;align-items:center;justify-content:center;height:18px;cursor:grab;touch-action:none}
.nc-dm-grab span{display:block;width:36px;height:5px;border-radius:999px;background:#c5cdd6}
.nc-dm-head{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:2px 8px 8px 16px;min-height:44px}
.nc-dm-head h3{margin:0;flex:1;font-size:17px;font-weight:700;line-height:1.2;color:var(--txt)}
.nc-dm-x{flex:0 0 44px;width:44px;height:44px;border:0;background:transparent;color:var(--mut);font-size:22px;line-height:1;border-radius:8px;cursor:pointer;padding:0}
.nc-dm-x:hover{background:#f1f5f9;color:var(--txt)}
.nc-dm-to{flex:0 0 auto;display:flex;align-items:flex-start;gap:8px;padding:4px 16px 10px;border-bottom:1px solid var(--line)}
.nc-dm-to-lab{flex:0 0 auto;font-size:15px;font-weight:600;color:var(--mut);padding-top:8px;line-height:1.2}
.nc-dm-to-box{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px;background:#f4f6f8;border:1px solid #e2e8f0;border-radius:10px;padding:4px 8px;min-height:40px}
.nc-dm-chips{display:contents}
.nc-dm-chip{display:inline-flex;align-items:center;gap:4px;background:var(--blue-l,#e8f3fb);color:#1e4d8c;border-radius:999px;padding:4px 4px 4px 10px;font-size:13px;font-weight:600;line-height:1.2;max-width:100%}
.nc-dm-chip-x{appearance:none;border:0;background:transparent;color:#1e4d8c;width:22px;height:22px;border-radius:50%;font-size:13px;line-height:1;padding:0;cursor:pointer}
.nc-dm-chip-x:hover{background:#d7e8f7}
.nc-dm-to-box #ncDmFind{flex:1 1 8rem;min-width:6rem;border:0;background:transparent;outline:0;font:inherit;font-size:16px;padding:6px 4px;color:var(--txt);width:auto;-webkit-appearance:none;appearance:none}
.nc-dm-to-box #ncDmFind::-webkit-search-cancel-button{display:none}
.nc-dm-list{flex:1 1 auto;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:6px 0 8px}
.nc-dm-sec{padding:12px 16px 6px;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mut)}
.nc-dm-row{appearance:none;display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;text-align:left;padding:8px 16px;min-height:52px;font:inherit;color:var(--txt);cursor:pointer}
.nc-dm-row:hover,.nc-dm-row:focus{background:#f4f6f8;outline:0}
.nc-dm-row:active{background:#eef2f6}
.nc-dm-av{position:relative;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;font-size:13px;flex-shrink:0;letter-spacing:.02em}
.nc-dm-dot{position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;background:#2bac76;border:2px solid #fff;display:block}
.nc-dm-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.nc-dm-name{font-size:15px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nc-dm-role{font-size:12.5px;color:var(--mut);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nc-dm-check{position:relative;flex:0 0 22px;width:22px;height:22px;border-radius:50%;border:2px solid #d0d7de;box-sizing:border-box;background:#fff}
.nc-dm-row.is-on .nc-dm-check{border-color:var(--blue);background:var(--blue)}
.nc-dm-row.is-on .nc-dm-check::after{content:"";position:absolute;left:6px;top:2px;width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.nc-dm-empty{margin:20px 16px;color:var(--mut);font-size:14px}
.nc-dm-err{margin:0 16px 8px;border-radius:8px}
.nc-dm-foot{flex:0 0 auto;padding:8px 16px 4px;border-top:1px solid var(--line)}
.nc-dm-start{display:block;width:100%;text-align:center;padding:12px 14px;font-size:15px;border-radius:10px}
.nc-dm-start:disabled,.sx-primary.nc-dm-start:disabled{opacity:.45;cursor:default}

/* iPad / desktop: centered ~480px panel */
@media (min-width:701px){
  .nc-dm-ov{align-items:center;padding:max(24px,env(safe-area-inset-top,0px)) 16px max(24px,env(safe-area-inset-bottom,0px));bottom:0}
  .nc-dm-sheet{width:min(480px,100%);height:auto;max-height:min(720px,100%);border-radius:16px;padding-bottom:12px;box-shadow:0 20px 50px rgba(15,23,32,.3);transform:translateY(12px) scale(.98)}
  .nc-dm-ov.is-in .nc-dm-sheet{transform:none}
  .nc-dm-ov.is-out .nc-dm-sheet{transform:translateY(12px) scale(.98)}
  .nc-dm-grab{display:none}
  .nc-dm-head{padding-top:12px}
}
html.nc-tablet .nc-dm-ov{align-items:center;padding:max(24px,env(safe-area-inset-top,0px)) 16px max(24px,env(safe-area-inset-bottom,0px));bottom:0}
html.nc-tablet .nc-dm-sheet{width:min(480px,100%);height:auto;max-height:min(720px,100%);border-radius:16px;padding-bottom:12px;box-shadow:0 20px 50px rgba(15,23,32,.3);transform:translateY(12px) scale(.98)}
html.nc-tablet .nc-dm-ov.is-in .nc-dm-sheet{transform:none}
html.nc-tablet .nc-dm-ov.is-out .nc-dm-sheet{transform:translateY(12px) scale(.98)}
html.nc-tablet .nc-dm-grab{display:none}
html.nc-tablet .nc-dm-head{padding-top:12px}

/* notes1-v1: Notepad row at the top of Direct messages */
.nc-notes{font-weight:600;color:#fff}
.nc-notes .h{opacity:1}


/* ptr1-v1 + ptr2-v1: in-flow pull indicator, never overlaps the filter bar; hide is display:none */
.nc-ptr{
  position:relative;z-index:4;display:none;align-items:center;justify-content:center;
  overflow:hidden;pointer-events:none;box-sizing:border-box;flex-shrink:0;
  height:0;opacity:0;visibility:hidden;transform:translateY(-8px);
  color:#526274;font-size:13px;font-weight:600;letter-spacing:.01em;
  background:transparent;margin:0;
}
.nc-ptr.on{
  display:flex !important;height:40px;opacity:1;visibility:visible;transform:none;
  pointer-events:none;
}
.nc-ptr-inner{
  display:flex;align-items:center;justify-content:center;gap:8px;
  height:32px;padding:0 12px;margin:0;
  border-radius:16px;background:rgba(255,255,255,.96);
  border:1px solid #e3e8ee;box-shadow:0 2px 8px rgba(15,23,32,.10);
}
.nc-ptr.is-done .nc-ptr-inner{background:#f3faf6;border-color:#c9e8d4}
.nc-ptr-spin{
  width:14px;height:14px;border-radius:50%;
  border:2px solid #c5ced7;border-top-color:#3d6d99;
  opacity:0;flex:0 0 auto;
}
.nc-ptr.is-refresh .nc-ptr-spin,.nc-ptr.is-done .nc-ptr-spin{opacity:1}
.nc-ptr.is-refresh .nc-ptr-spin{animation:nc-ptr-spin .7s linear infinite}
.nc-ptr.is-done .nc-ptr-spin{border-color:#2f9d63;border-top-color:#2f9d63;animation:none}
.nc-ptr.is-done .nc-ptr-label{color:#2f6b48}
@keyframes nc-ptr-spin{to{transform:rotate(360deg)}}
.nc-ptr-btn{
  display:none;align-items:center;justify-content:center;
  width:28px;height:28px;margin-left:4px;padding:0;border:0;border-radius:8px;
  background:transparent;color:#6b7c8d;opacity:.42;cursor:pointer;flex:0 0 auto;
}
.nc-ptr-btn:hover,.nc-ptr-btn:focus{opacity:1;background:#eef1f4;color:#1f2d3a;outline:none}
@media (hover:hover) and (min-width:720px){
  .chead .nc-ptr-btn,.act-head .nc-ptr-btn,.ahead .nc-ptr-btn{display:inline-flex}
}
html.nc-tablet .chead .nc-ptr-btn,
html.nc-tablet .act-head .nc-ptr-btn,
html.nc-tablet .ahead .nc-ptr-btn{display:inline-flex}

/* company-v1 theme: ShopXpert Command */
:root{--blue:#1f6fe0;--blue-d:#1757b3;--blue-l:#e8f0fc;--side:#0d1626;--side2:#142036}


/* bots-avatars2-v1: Bots sidebar section, circular avatars */
#sec-bots.is-collapsed + #botList > .it:not(.bold){display:none !important}
#botList .it{display:flex;align-items:center;gap:8px}
#botList .it .bav,
#botList .it .pav,
#botList .it .botav{
  width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  font-size:8.5px;font-weight:700;color:#fff;flex-shrink:0;overflow:hidden;position:relative;padding:0;
}
#botList .it .bav img,
#botList .it .pav img,
#botList .it .botav img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;
  display:block;padding:0;margin:0;border:0;border-radius:50%;background:transparent;
}
#botList .it .bav.has-img,
#botList .it .pav.has-img{color:transparent;background:transparent}
#addBot[hidden]{display:none !important}
.av,.wav,.pav,.botav,.act-av,.mebar-av{overflow:hidden;position:relative}
.av,.wav,.pav,.act-av,.mebar-av,.botav{border-radius:50%}
