/* ---- base reset ---- */
*,*::before,*::after{box-sizing:border-box}
html{color-scheme:light;-webkit-text-size-adjust:100%}
:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);
  background:linear-gradient(var(--edge-top,var(--paper)) 0 0) top/100% calc(env(safe-area-inset-top,0px) + 1px) no-repeat,linear-gradient(var(--edge-bot,var(--paper)) 0 0) bottom/100% calc(env(safe-area-inset-bottom,0px) + 1px) no-repeat,var(--paper)}
body{margin:0;font:14px/1.42 -apple-system,BlinkMacSystemFont,"Roboto Flex",Roboto,system-ui,sans-serif}
img{max-width:100%}
[hidden]{display:none!important}
/* ---- sign-in screens ---- */
.obacts.end{justify-content:flex-end}
.obsub{margin:-8px 0 0;color:var(--muted);font-size:15px;letter-spacing:.02em}
.obnum.otp{flex:none;width:100%;text-align:center;font-size:28px;letter-spacing:.5em;padding-left:.5em}
#onboard .obnum,#profsetup .obnum{width:100%}
#profsetup,#findc{background:var(--paper);color:var(--ink);z-index:90}
.srow.signout{width:100%;justify-content:center;text-align:center;color:var(--bad);border:0;background:none;cursor:pointer}
.srow.signout b{color:var(--bad);font-weight:600}
.oblink:disabled{opacity:.5}

/* Layout: iOS-style grouped surfaces with Material-style tonal controls. Sidebar | chat list | conversation | task sheet. Frosted headers, blue bubbles, quiet cards. */
:root{
  --paper:#F2F2F7; --surface:#FFFFFF; --raised:#FFFFFF; --ink:#111114; --muted:#6E6E76; --rule:#E3E3E8; --fill:#EEEEF2;
  --cobalt:#0A6CFF; --cobalt-soft:#E6F0FF; --knot:#0A6CFF; --knot-soft:#E6F0FF; --bubble:#E9E9EE;
  --c-todo:#8E8E93; --c-doing:#0A6CFF; --c-review:#F4A100; --c-done:#1FA855;
  --ok:#1FA855; --warn:#C98100; --bad:#E5383B; --on-accent:#FFFFFF;
  --glass:rgba(255,255,255,.78);
  --f-display:-apple-system,BlinkMacSystemFont,"SF Pro Display","Roboto Flex",Roboto,system-ui,sans-serif;
  --f-body:-apple-system,BlinkMacSystemFont,"SF Pro Text","Roboto Flex",Roboto,system-ui,sans-serif;
  --f-mono:ui-monospace,"SF Mono","Roboto Mono",Menlo,monospace;
  --shadow:0 1px 2px rgba(17,17,20,.06),0 4px 14px rgba(17,17,20,.06); --shadow-lg:0 12px 40px rgba(17,17,20,.14);
  --ease:cubic-bezier(.2,.8,.2,1);
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --paper:#000000; --surface:#1C1C1E; --raised:#2C2C2E; --ink:#F5F5F7; --muted:#9A9AA2; --rule:#2E2E32; --fill:#2C2C2E;
  --cobalt:#3D8BFF; --cobalt-soft:#14274A; --knot:#3D8BFF; --knot-soft:#14274A; --bubble:#2C2C2E;
  --c-todo:#8E8E93; --c-doing:#3D8BFF; --c-review:#FFB31F; --c-done:#32D16B;
  --ok:#32D16B; --warn:#FFB31F; --bad:#FF5A5F; --glass:rgba(28,28,30,.78);
  --shadow:0 1px 2px rgba(0,0,0,.4),0 4px 14px rgba(0,0,0,.3); --shadow-lg:0 12px 40px rgba(0,0,0,.55); color-scheme:dark}}
:root[data-theme="dark"]{
  --paper:#000000; --surface:#1C1C1E; --raised:#2C2C2E; --ink:#F5F5F7; --muted:#9A9AA2; --rule:#2E2E32; --fill:#2C2C2E;
  --cobalt:#3D8BFF; --cobalt-soft:#14274A; --knot:#3D8BFF; --knot-soft:#14274A; --bubble:#2C2C2E;
  --c-todo:#8E8E93; --c-doing:#3D8BFF; --c-review:#FFB31F; --c-done:#32D16B;
  --ok:#32D16B; --warn:#FFB31F; --bad:#FF5A5F; --glass:rgba(28,28,30,.78);
  --shadow:0 1px 2px rgba(0,0,0,.4),0 4px 14px rgba(0,0,0,.3); --shadow-lg:0 12px 40px rgba(0,0,0,.55); color-scheme:dark}

html,body{height:100%}
body{background:var(--paper);color:var(--ink);font:15px/1.42 var(--f-body);-webkit-font-smoothing:antialiased;overflow:hidden;letter-spacing:-.005em}
*{box-sizing:border-box}
button,input,textarea,select{font:inherit;color:inherit;letter-spacing:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
:focus-visible{outline:2px solid var(--cobalt);outline-offset:2px;border-radius:8px}
.mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
svg.i{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}

.app{height:100%;display:grid;grid-template-columns:76px 340px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
.app.with-drawer{grid-template-columns:76px 340px minmax(0,1fr) 400px}
.app.wide-main{grid-template-columns:76px minmax(0,1fr)}
.app.wide-main.with-drawer{grid-template-columns:76px minmax(0,1fr) 400px}
.banner{grid-column:1/-1;background:var(--cobalt-soft);color:var(--ink);font-size:13px;padding-block:8px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));display:flex;gap:10px;align-items:center}
.banner>span:first-child{background:var(--cobalt)!important;transform:none!important;border-radius:50%}

/* rail */
.rail{grid-row:2;background:var(--surface);display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 0 16px max(0px,env(safe-area-inset-left,0px));border-right:1px solid var(--rule)}
.mark{width:42px;height:42px;display:grid;place-items:center;margin-bottom:14px;border-radius:12px;background:linear-gradient(145deg,#3D8BFF,#0A55E0);color:#fff;box-shadow:0 4px 12px rgba(10,108,255,.35)}
.navb{width:64px;padding:6px 0;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;font-weight:500;color:var(--muted);position:relative}
.navb .pill{width:56px;height:32px;display:grid;place-items:center;border-radius:16px;transition:background .2s var(--ease)}
.navb:hover .pill{background:var(--fill)}
.navb[aria-current="true"]{color:var(--ink);font-weight:600}
.navb[aria-current="true"] .pill{background:var(--cobalt-soft);color:var(--cobalt)}
.navb .dot{position:absolute;top:2px;right:6px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--bad);color:#fff;font:600 11px/18px var(--f-body);text-align:center}
.rail .me{margin-top:auto}
.rail .me .av{width:36px;height:36px}

/* chat list */
.lines{grid-row:2;background:var(--surface);border-right:1px solid var(--rule);display:flex;flex-direction:column;min-height:0}
.lines-head{padding:20px 16px 10px;display:flex;align-items:center;gap:10px}
.h1{font:700 30px/1.1 var(--f-display);letter-spacing:-.025em;margin:0}
.iconbtn{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;color:var(--cobalt);transition:background .15s}
.iconbtn:hover{background:var(--fill)}
.lines-head .iconbtn{background:var(--cobalt-soft)}
.search{margin:0 16px 8px;display:flex;align-items:center;gap:8px;background:var(--fill);border-radius:10px;padding:0 10px;color:var(--muted)}
.search input{border:0;background:none;outline:none;padding:8px 0;width:100%;color:var(--ink)}
.seg-label{padding:14px 16px 6px;font-size:13px;font-weight:600;color:var(--muted)}
.list{overflow:auto;flex:1;min-height:0;padding:0 8px 16px}
.lineitem{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;text-align:left;padding:8px 10px;border-radius:14px;transition:background .15s}
.lineitem:hover{background:var(--fill)}
.lineitem[aria-current="true"]{background:var(--cobalt-soft)}
.lineitem .nm{font-weight:600;font-size:15.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lineitem .pv{color:var(--muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lineitem .meta{display:flex;flex-direction:column;align-items:flex-end;gap:5px;font-size:12px;color:var(--muted)}
.lineitem .meta .mono{font-family:var(--f-body)}
.badge{min-width:20px;height:20px;padding:0 7px;border-radius:10px;background:var(--cobalt);color:var(--on-accent);font:600 11.5px/20px var(--f-body);text-align:center}
.glyph{width:48px;height:48px;display:grid;place-items:center;font:600 19px var(--f-display);color:#fff;border-radius:50%}
.av{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font:600 12.5px var(--f-body);color:#fff;overflow:hidden;flex:none;background:var(--muted)}
.av img{width:100%;height:100%;object-fit:cover}
.av.lg{width:48px;height:48px;font-size:18px}
.av.sm{width:22px;height:22px;font-size:10px}

/* conversation */
.main{grid-row:2;display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--paper);position:relative}
.thead{display:flex;align-items:center;gap:12px;padding:10px 20px;border-bottom:1px solid var(--rule);background:var(--glass);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);position:relative;z-index:2}
.thead .glyph,.thead .av.lg{width:38px;height:38px;font-size:15px}
.thead .t{min-width:0}
.thead .t b{display:block;font:600 16.5px var(--f-display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thead .t span{font-size:12.5px;color:var(--muted)}
.thead .grow{flex:1}
.back{display:none}
.stream{flex:1;overflow:auto;min-height:0;padding:12px 20px 8px}
.spine{max-width:760px;margin:0 auto}
.day{display:block;width:max-content;margin:16px auto 10px;font-size:12px;font-weight:600;color:var(--muted);background:var(--fill);padding:4px 10px;border-radius:999px}
.msg{position:relative;margin:0 0 3px;display:flex;flex-direction:column;align-items:flex-start;animation:in .22s var(--ease) both}
@keyframes in{from{transform:translateY(6px);opacity:0}to{transform:none;opacity:1}}
.msg.mine{align-items:flex-end}
.msg:not(.cont){margin-top:10px}
.who{font-size:12px;font-weight:600;margin:0 0 3px 12px;display:flex;gap:6px;align-items:baseline;color:color-mix(in srgb,var(--tint,var(--muted)) 75%,var(--ink))}
.mine .who{margin:0 12px 3px 0}
.who time{font-weight:400;font-size:11px;color:var(--muted)}
.strip{position:relative;max-width:min(520px,82%);background:var(--bubble);padding:8px 13px;border-radius:20px;cursor:pointer;transition:filter .15s}
.strip:hover{filter:brightness(.97)}
.mine .strip{background:var(--cobalt);color:var(--on-accent)}
.msg.cont .strip{border-top-left-radius:8px}
.msg.mine.cont .strip{border-top-left-radius:20px;border-top-right-radius:8px}
.strip .tx{white-space:pre-wrap;overflow-wrap:anywhere}
.strip .edited{font-size:11px;opacity:.65;margin-left:6px}
.quote{border-left:3px solid currentColor;border-radius:4px;padding:3px 9px;margin:2px 0 6px;font-size:13px;background:rgba(0,0,0,.06);cursor:pointer;opacity:.9}
.mine .quote{background:rgba(255,255,255,.18)}
.quote b{font-weight:600;display:block;font-size:12px}
.reacts{display:flex;flex-wrap:wrap;gap:4px;margin-top:-6px;padding:0 8px;position:relative;z-index:1}
.react{background:var(--surface);border-radius:999px;padding:1px 8px;font-size:13px;display:flex;gap:4px;align-items:center;box-shadow:var(--shadow);border:1px solid var(--rule)}
.react.on{background:var(--cobalt-soft);border-color:var(--cobalt)}
.react .mono{font:600 11px var(--f-body)}
.tasktag{display:flex;align-items:center;gap:8px;margin-top:5px;padding:6px 12px 6px 8px;background:var(--surface);border:1px solid var(--rule);border-radius:12px;font-size:13px;cursor:pointer;max-width:min(520px,82%);box-shadow:var(--shadow);transition:transform .15s var(--ease)}
.tasktag:hover{transform:translateY(-1px)}
.tasktag::before{content:"";width:16px;height:16px;flex:none;border-radius:50%;border:2px solid var(--st,var(--cobalt))}
.tasktag .mono{font:600 11.5px var(--f-body);color:var(--muted)}
.tasktag .st{color:var(--muted)}
.acts{display:flex;gap:2px;margin-top:6px;background:var(--glass);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:4px;border-radius:14px;box-shadow:var(--shadow-lg);border:1px solid var(--rule);animation:in .18s var(--ease) both}
.acts button{display:flex;align-items:center;gap:6px;padding:7px 10px;font-size:13.5px;font-weight:500;border-radius:10px}
.acts button:hover{background:var(--fill)}
.acts .tie{background:var(--cobalt);color:var(--on-accent);font-weight:600}
.acts .tie:hover{background:var(--cobalt);filter:brightness(1.08)}
.emojis{display:flex;gap:2px;margin-top:6px;background:var(--surface);padding:4px 6px;border-radius:999px;box-shadow:var(--shadow-lg);border:1px solid var(--rule);animation:in .18s var(--ease) both}
.emojis button{font-size:21px;width:38px;height:38px;border-radius:50%;transition:transform .15s var(--ease)}
.emojis button:hover{transform:scale(1.2);background:var(--fill)}
.empty{max-width:420px;margin:12vh auto 0;text-align:center;color:var(--muted);padding:0 16px}
.empty h2{font:700 22px/1.2 var(--f-display);letter-spacing:-.02em;color:var(--ink);margin:16px 0 6px;text-wrap:balance}
.compose{background:var(--glass);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-top:1px solid var(--rule);padding:10px 20px calc(10px + env(safe-area-inset-bottom,0px))}
.compose .inner{max-width:760px;margin:0 auto}
.replybar{display:flex;align-items:center;gap:8px;font-size:13px;padding:6px 6px 6px 12px;border-left:3px solid var(--cobalt);border-radius:8px;background:var(--fill);margin-bottom:8px}
.replybar span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
.crow{display:flex;gap:8px;align-items:flex-end}
.crow textarea{flex:1;min-width:0;resize:none;border:1px solid var(--rule);background:var(--surface);padding:9px 16px;max-height:160px;outline:none;border-radius:20px}
.crow textarea:focus{border-color:var(--cobalt)}
.sendbtn{width:40px;height:40px;display:grid;place-items:center;background:var(--cobalt);color:var(--on-accent);border-radius:50%;transition:transform .15s var(--ease)}
.sendbtn svg.i{transform:rotate(-90deg)}
.sendbtn:active{transform:scale(.92)}
.knotbtn{height:40px;padding:0 14px;display:flex;align-items:center;gap:6px;border-radius:20px;background:var(--fill);color:var(--ink);font-size:13.5px;font-weight:600;transition:background .15s}
.knotbtn svg{color:var(--cobalt)}
.knotbtn[aria-pressed="true"]{background:var(--cobalt-soft);color:var(--cobalt)}
.hint{font-size:12px;color:var(--muted);margin-top:6px;text-align:center}

/* tasks board */
.boardwrap{grid-row:2;grid-column:2/3;display:flex;flex-direction:column;min-height:0;min-width:0}
.bhead{padding:20px 28px 14px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;background:var(--paper)}
.bhead .grow{flex:1}
.chips{display:flex;gap:8px;flex-wrap:wrap;order:3;width:100%}
.chip{height:32px;padding:0 12px;border:1px solid var(--rule);border-radius:8px;font-size:13.5px;font-weight:500;display:flex;gap:6px;align-items:center;background:var(--surface);transition:background .15s}
.chip:hover{background:var(--fill)}
.chip[aria-pressed="true"]{background:var(--cobalt-soft);border-color:transparent;color:var(--cobalt);font-weight:600}
.chip[aria-pressed="true"]::before{content:"✓";font-weight:700}
.primary{height:40px;padding:0 18px;background:var(--cobalt);color:var(--on-accent);font-weight:600;font-size:14.5px;display:flex;align-items:center;gap:6px;border-radius:20px;box-shadow:0 2px 8px rgba(10,108,255,.3);transition:filter .15s,transform .15s var(--ease)}
.primary:hover{filter:brightness(1.07)}
.primary:active{transform:scale(.97)}
.board{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(4,minmax(250px,1fr));gap:16px;padding:6px 28px 28px;align-items:start}
.col{display:flex;flex-direction:column;background:var(--fill);border-radius:18px;transition:box-shadow .15s}
.col.over{box-shadow:inset 0 0 0 2px var(--c)}
.colh{display:flex;align-items:center;gap:8px;padding:14px 16px 8px}
.colh b{font-weight:600;font-size:15px}
.colh .tension{width:10px;height:10px;border-radius:50%;background:var(--c);font-size:0}
.colh .mono{margin-left:auto;color:var(--muted);font:500 13px var(--f-body)}
.cards{display:flex;flex-direction:column;gap:8px;padding:2px 10px 12px;min-height:80px}
.card{background:var(--surface);border-radius:14px;padding:12px 13px;cursor:grab;text-align:left;width:100%;display:flex;flex-direction:column;gap:8px;box-shadow:var(--shadow);transition:transform .15s var(--ease),box-shadow .15s}
.card:hover{transform:translateY(-1px);box-shadow:var(--shadow-lg)}
.card.dragging{opacity:.5}
.card .top{display:flex;align-items:center;gap:8px;font-size:12px}
.card .top .mono{color:var(--muted);font:500 12px var(--f-body)}
.card .ttl{font-weight:600;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.card .from{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card .bot{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
.card .bot .grow{flex:1}
.due{font:500 12px var(--f-body)}
.due.late{color:var(--bad);font-weight:600}
.pri{font:600 11px var(--f-body);padding:2px 8px;border-radius:6px}
.pri.high{background:color-mix(in srgb,var(--bad) 14%,transparent);color:var(--bad)} .pri.low{background:var(--fill);color:var(--muted)}
.colempty{font-size:13px;color:var(--muted);padding:18px 10px;text-align:center}

/* team */
.teamwrap{grid-row:2;grid-column:2/3;overflow:auto;min-height:0;padding:20px max(28px,env(safe-area-inset-right,0px)) 40px 28px}
.teamgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;max-width:1000px;margin-top:20px}
.person{background:var(--surface);border-radius:18px;box-shadow:var(--shadow);padding:16px;display:flex;flex-direction:column;gap:14px}
.person .r{display:flex;gap:12px;align-items:center}
.person .n{font-weight:600;font-size:16px}
.person .s{font-size:13px;color:var(--muted)}
.load{display:flex;gap:3px;height:6px;border-radius:3px;overflow:hidden;background:var(--fill)}
.load i{flex:1;background:var(--fill)}
.load i.d{background:var(--ok)} .load i.o{background:var(--cobalt)}
.ghost{height:34px;padding:0 14px;border-radius:17px;font-size:13.5px;font-weight:600;display:inline-flex;align-items:center;gap:6px;background:var(--cobalt-soft);color:var(--cobalt)}
.ghost:hover{filter:brightness(.97)}
.note{max-width:640px;color:var(--muted);font-size:14.5px;margin:8px 0 0}

/* task sheet */
.drawer{grid-row:2;background:var(--paper);border-left:1px solid var(--rule);display:flex;flex-direction:column;min-height:0;animation:slide .28s var(--ease) both}
@keyframes slide{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
.dhead{display:flex;align-items:center;gap:10px;padding:14px 16px;background:var(--glass);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-bottom:1px solid var(--rule)}
.dhead .knotmark{width:10px;height:10px;border-radius:50%;background:var(--cobalt);margin:0 2px}
.dhead b{font-weight:600;font-size:16px}
.dhead .grow{flex:1}
.dbody{flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:18px;min-height:0}
.field{display:flex;flex-direction:column;gap:6px}
.field>label,.field>.lb{font-size:12.5px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;padding-left:4px}
.inp{border:1px solid transparent;background:var(--surface);padding:11px 14px;outline:none;width:100%;border-radius:12px}
.inp:focus{border-color:var(--cobalt);box-shadow:0 0 0 3px var(--cobalt-soft)}
textarea.inp{resize:vertical;min-height:96px}
.ttlinp{font-weight:600;font-size:18px}
.segs{display:grid;grid-template-columns:repeat(4,1fr);background:var(--fill);padding:3px;border-radius:10px;gap:2px}
.segs.three{grid-template-columns:repeat(3,1fr)}
.segs button{padding:7px 4px;font-size:13px;font-weight:500;border-radius:8px;transition:background .15s}
.segs button[aria-pressed="true"]{background:var(--surface);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.12);color:var(--c,var(--ink))}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.source{background:var(--surface);padding:12px 14px;font-size:14px;border-radius:14px}
.source .lb{font-size:12.5px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;display:flex;gap:6px;align-items:center}
.source .lb svg{color:var(--cobalt);width:16px;height:16px}
.source p{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere;padding:8px 12px;background:var(--bubble);border-radius:16px}
.link{color:var(--cobalt);font-weight:600;font-size:13.5px}
.history{font-size:13px;color:var(--muted);display:flex;flex-direction:column;gap:6px;background:var(--surface);border-radius:14px;padding:12px 14px}
.history .mono{font-family:var(--f-body)}
.dfoot{display:flex;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--rule);background:var(--glass);align-items:center}
.dfoot .grow{flex:1}
.danger{color:var(--bad);font-size:14.5px;font-weight:500;padding:0 10px;height:40px}
.confirm{display:flex;gap:8px;align-items:center;font-size:14px}

/* modal + toast */
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.32);display:grid;place-items:center;z-index:50;padding:16px;animation:fade .2s both}
@keyframes fade{from{opacity:0}}
.modal{background:var(--surface);width:min(420px,100%);padding:22px;display:flex;flex-direction:column;gap:16px;border-radius:24px;box-shadow:var(--shadow-lg);animation:in .25s var(--ease) both}
.modal h3{margin:0;font:700 20px var(--f-display);letter-spacing:-.02em}
.modal .segs button[aria-pressed="true"]{color:var(--ink)}
.picklist{display:flex;flex-direction:column;gap:2px;max-height:260px;overflow:auto;background:var(--fill);border-radius:14px;padding:4px}
.pick{display:flex;gap:12px;align-items:center;padding:8px 10px;border-radius:10px;text-align:left;font-weight:500}
.pick[aria-pressed="true"]{background:var(--surface);color:var(--cobalt);font-weight:600}
.pick[aria-pressed="true"]::after{content:"✓";margin-left:auto;font-weight:700}
.toast{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:#2B2B2F;color:#fff;padding:12px 18px;font-size:14px;font-weight:500;z-index:60;display:flex;gap:10px;align-items:center;border-radius:12px;box-shadow:var(--shadow-lg);animation:toastin .25s var(--ease) both}
@keyframes toastin{from{transform:translate(-50%,12px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
.toast i{width:8px;height:8px;background:#4C9AFF;border-radius:50%}
#confetti{display:none}

/* voice notes */
.micbtn{width:52px;height:52px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--cobalt);color:var(--on-accent);box-shadow:0 4px 14px rgba(10,108,255,.38);transition:transform .15s var(--ease)}
.micbtn svg.i{width:26px;height:26px}
.micbtn:hover{transform:scale(1.05)}
.micbtn:active{transform:scale(.93)}
.micbtn.sending svg.i{transform:rotate(-90deg)}
.crow{align-items:center}
.crow .sendbtn{display:none}
.crow.has-text .sendbtn{display:grid}
.crow textarea{min-height:44px}
.recbar{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--rule);border-radius:28px;padding:4px 4px 4px 8px}
.rectrash{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;color:var(--bad)}
.rectrash:hover{background:var(--fill)}
.recdot{width:10px;height:10px;border-radius:50%;background:var(--bad);animation:blink 1s ease-in-out infinite}
@keyframes blink{50%{opacity:.25}}
.rectime{font:600 15px var(--f-body);font-variant-numeric:tabular-nums;min-width:42px}
.recbars{flex:1;min-width:0;height:32px;display:flex;align-items:center;gap:2px;overflow:hidden}
.recbars i{flex:1;max-width:4px;min-width:2px;height:100%;border-radius:2px;background:var(--cobalt);transform:scaleY(.12);transition:transform .08s linear}
.strip.vstrip{padding:8px 12px 8px 8px;min-width:240px}
.voice{display:flex;align-items:center;gap:10px}
.vplay{width:40px;height:40px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--cobalt);color:var(--on-accent)}
.mine .vplay{background:var(--on-accent);color:var(--cobalt)}
.vplay.loading{animation:blink .8s infinite}
.vmid{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.vbars{height:28px;display:flex;align-items:center;gap:2px;cursor:pointer}
.vbars i{flex:1;min-width:2px;max-width:4px;border-radius:2px;background:currentColor;opacity:.32}
.vbars i.on{opacity:1}
.vmeta{display:flex;justify-content:space-between;align-items:center;font-size:11.5px;opacity:.8;font-variant-numeric:tabular-nums}
.vspeed{font:600 11px var(--f-body);padding:1px 7px;border-radius:8px;background:rgba(127,127,127,.18)}
.bigmic{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--cobalt-soft);color:var(--cobalt)}
.bigmic svg.i{width:28px;height:28px}
/* task conversations */
.threadbtn{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--surface);border-radius:14px;text-align:left;box-shadow:var(--shadow);color:var(--cobalt);transition:transform .15s var(--ease)}
.threadbtn:hover{transform:translateY(-1px)}
.threadbtn:disabled{opacity:.5;cursor:default}
.tbi{width:40px;height:40px;border-radius:12px;background:var(--cobalt-soft);display:grid;place-items:center;flex:none}
.tbt{flex:1;min-width:0;display:flex;flex-direction:column}
.tbt b{color:var(--ink);font-weight:600;font-size:15px}
.tbt span{color:var(--muted);font-size:13px}
.tglyph{background:color-mix(in srgb,var(--st) 18%,var(--surface))!important;color:var(--st)}
.tglyph svg.i{width:24px;height:24px}
.cchat{color:var(--cobalt);display:grid}
.cchat svg.i{width:16px;height:16px}
@media (max-width:860px){ .micbtn{width:54px;height:54px} .strip.vstrip{min-width:220px} }

/* WhatsApp-style new chat flow */
.lines{position:relative}
.fab{position:absolute;right:max(18px,env(safe-area-inset-right,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));width:56px;height:56px;border-radius:18px;background:var(--cobalt);color:var(--on-accent);display:grid;place-items:center;box-shadow:0 6px 18px rgba(10,108,255,.4);z-index:3;transition:transform .15s var(--ease),opacity .15s}
.fab svg.i{width:26px;height:26px}
.fab:hover{transform:scale(1.05)} .fab:active{transform:scale(.94)}
.fab:disabled{opacity:.35;cursor:default;transform:none}
.flow{animation:slide .25s var(--ease) both}
.flow .list,.lines .list{padding-bottom:96px}
.flowhead{display:flex;align-items:center;gap:8px;padding:16px 12px 12px}
.flowhead .iconbtn{color:var(--ink)}
.fht{display:flex;flex-direction:column;min-width:0}
.fht b{font:600 19px var(--f-display);letter-spacing:-.01em}
.fht span{font-size:13px;color:var(--muted)}
.action{display:flex;align-items:center;gap:14px;width:100%;padding:9px 10px;border-radius:14px;text-align:left;font-size:16px}
.action:hover{background:var(--fill)}
.action b{font-weight:600}
.actic{width:48px;height:48px;border-radius:50%;background:var(--cobalt);color:var(--on-accent);display:grid;place-items:center;flex:none}
.actic svg.i{width:24px;height:24px}
.contact{display:flex;align-items:center;gap:14px;width:100%;padding:8px 10px;border-radius:14px;text-align:left}
.contact:hover{background:var(--fill)}
.cav{position:relative;flex:none;display:grid}
.tick{position:absolute;right:-2px;bottom:-2px;width:22px;height:22px;border-radius:50%;background:var(--ok);color:#fff;display:grid;place-items:center;border:2px solid var(--surface);animation:in .18s var(--ease)}
.tick svg.i{width:13px;height:13px;stroke-width:3}
.ctx{display:flex;flex-direction:column;min-width:0}
.ctx b{font-weight:600;font-size:15.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctx span{font-size:13.5px;color:var(--muted)}
.selrow{display:flex;gap:12px;overflow-x:auto;padding:4px 16px 12px;scrollbar-width:none;border-bottom:1px solid var(--rule);margin-bottom:10px}
.selchip{display:flex;flex-direction:column;align-items:center;gap:4px;flex:none;width:58px;animation:in .2s var(--ease)}
.xbadge{position:absolute;right:-3px;bottom:-3px;width:20px;height:20px;border-radius:50%;background:var(--muted);color:var(--surface);display:grid;place-items:center;border:2px solid var(--surface)}
.xbadge svg.i{width:11px;height:11px;stroke-width:3}
.sn{font-size:12px;max-width:58px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.flowempty{padding:24px 16px;text-align:center;color:var(--muted)}
.flowempty .small{font-size:13px}
.namestep{flex:1;overflow:auto;padding:8px 20px 90px;display:flex;flex-direction:column;align-items:center;gap:16px}
.gicon{width:104px;height:104px;border-radius:50%;display:grid;place-items:center;color:#fff;font:600 42px var(--f-display)}
.gicon svg.i{width:44px;height:44px}
.iconpick{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;max-width:300px}
.iconpick button{width:40px;height:40px;border-radius:50%;font-size:20px;background:var(--fill)}
.iconpick button[aria-pressed="true"]{box-shadow:0 0 0 2px var(--cobalt);background:var(--cobalt-soft)}
.gname{width:100%;display:flex;align-items:center;gap:8px;border-bottom:2px solid var(--cobalt);padding:6px 2px}
.gname input{flex:1;min-width:0;border:0;background:none;outline:none;font-size:17px;padding:4px 0}
.gname .count{font-size:12px;color:var(--muted)}
.memgrid{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:12px}
.mem{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;text-align:center}
.eglyph{background:var(--fill)!important;font-size:24px}
/* ---- compact pass ---- */
:root{--ringseen:#C7C7CC}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--ringseen:#48484A}}
:root[data-theme="dark"]{--ringseen:#48484A}
body{font-size:14.5px}
.h1{font-size:24px}
.lines-head{padding:14px 14px 8px}
.lineitem{grid-template-columns:44px minmax(0,1fr) auto;gap:10px;padding:6px 8px}
.glyph{width:44px;height:44px;font-size:17px}
.av.lg{width:44px;height:44px;font-size:16px}
.av.xl{width:120px;height:120px;font-size:46px}
.lineitem .nm{font-size:15px}
.lineitem .pv{font-size:13.5px}
.seg-label{padding:10px 14px 4px;font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.thead{padding:8px 14px;gap:8px}
.thead .t b{font-size:15.5px}
.stream{padding:8px 16px 6px}
.msg:not(.cont){margin-top:7px}
.strip{padding:7px 12px}
.compose{padding:8px 14px calc(8px + env(safe-area-inset-bottom,0px))}
.hint:empty{display:none}
.knotbtn{width:40px;padding:0;justify-content:center}
.iconbtn{width:36px;height:36px}
.hcall{color:var(--cobalt)}
.acts button{padding:7px 9px}

/* ---- floating buttons ---- */
.vfab{position:fixed!important;right:max(20px,env(safe-area-inset-right,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:30}
.app.with-drawer .vfab{display:none}
.fabstack{display:flex;flex-direction:column;align-items:center;gap:12px}
.fabstack .fab{position:static}
.fab.mini{width:42px;height:42px;border-radius:14px;background:var(--surface);color:var(--cobalt);box-shadow:var(--shadow-lg)}
.fab.mini svg.i{width:20px;height:20px}
.roundgo{width:46px;height:46px;border-radius:50%;background:var(--cobalt);color:var(--on-accent);display:grid;place-items:center;box-shadow:0 4px 12px rgba(10,108,255,.35);transition:transform .15s var(--ease)}
.roundgo:active{transform:scale(.93)}
.roundgo svg.i{width:22px;height:22px;stroke-width:2.6}
.dangerbtn{color:var(--bad)}
.modalacts{display:flex;justify-content:space-between;align-items:center}

/* ---- tasks: colorful + compact ---- */
.bhead{padding:14px 20px 10px;gap:10px;flex-wrap:wrap}
.bhead.flat{background:none;padding:0 0 4px}
.bt{display:flex;flex-direction:column;min-width:0}
.teamname{font-size:12.5px;color:var(--muted);font-weight:500}
.chips{order:0;width:auto;gap:4px}
.ichip{width:34px;height:34px;padding:0;justify-content:center;border-radius:50%;border:2px solid transparent;background:var(--fill)}
.ichip svg.i{width:18px;height:18px}
.ichip .av.sm{width:26px;height:26px;border:0}
.ichip[aria-pressed="true"]{border-color:var(--cobalt);background:var(--cobalt-soft)}
.ichip[aria-pressed="true"]::before{content:none}
.board{gap:12px;padding:4px 20px 96px}
.col{background:color-mix(in srgb,var(--c) 10%,var(--paper));border-radius:16px}
.colh{padding:10px 10px 6px}
.colpill{display:inline-flex;align-items:center;gap:8px;background:var(--c);color:#fff;font-weight:700;font-size:12.5px;padding:4px 6px 4px 11px;border-radius:999px;letter-spacing:.01em}
.colpill i{font-style:normal;background:rgba(255,255,255,.28);border-radius:999px;min-width:22px;text-align:center;padding:0 6px;font-size:12px}
.cards{gap:6px;padding:2px 8px 10px;min-height:56px}
.card{padding:9px 10px 8px 12px;gap:6px;border-radius:12px;position:relative;overflow:hidden;background:var(--surface)}
.card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--cc,var(--c))}
.card.pri-high{--cc:var(--bad);background:color-mix(in srgb,var(--bad) 6%,var(--surface))}
.card .ttl{font-size:14.5px;font-weight:600}
.card .bot{gap:6px;font-size:12px}
.tid{font:600 11px var(--f-body);color:#fff;background:var(--c);padding:1px 7px;border-radius:6px}
.flag{color:var(--bad);display:grid}
.flag svg.i,.due svg.i,.cchat svg.i{width:14px;height:14px}
.due{display:inline-flex;align-items:center;gap:3px;font:600 11.5px var(--f-body);color:var(--cobalt);background:var(--cobalt-soft);padding:1px 6px;border-radius:6px}
.due.late{color:#fff;background:var(--bad)}
.noav{color:var(--muted);display:grid}
.noav svg.i{width:22px;height:22px}
.colempty{padding:8px;font-size:16px;opacity:.5}

/* ---- task sheet ---- */
.drawer{background:var(--surface)}
.dhead{padding:10px 10px 10px 16px;gap:4px;background:color-mix(in srgb,var(--c) 14%,var(--surface));border-bottom:0}
.tidbig{font-weight:700;font-size:13px;color:#fff;background:var(--c);padding:3px 10px;border-radius:999px}
.dbody{gap:14px;padding:14px 16px}
.ttlinp{font-size:19px;font-weight:700;border:0;padding:4px 0;background:none;resize:none;overflow:hidden;line-height:1.3;min-height:0!important}
.ttlinp:focus{box-shadow:none}
.statusrow{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.stbtn{padding:7px 2px;font-size:12.5px;font-weight:600;border-radius:999px;background:color-mix(in srgb,var(--c) 12%,var(--surface));color:color-mix(in srgb,var(--c) 70%,var(--ink));transition:transform .15s var(--ease)}
.stbtn[aria-pressed="true"]{background:var(--c);color:#fff;box-shadow:0 3px 10px color-mix(in srgb,var(--c) 40%,transparent)}
.lbl{display:none}
.assignrow{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.apick{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;border:2px solid transparent;background:var(--fill);color:var(--muted);padding:2px;transition:transform .15s var(--ease)}
.apick .av{width:32px;height:32px;border:0}
.apick.on{border-color:var(--cobalt);transform:scale(1.06)}
.apick:not(.on) .av{opacity:.55}
.metarow{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.metabox{display:flex;align-items:center;gap:6px;background:var(--fill);border-radius:10px;padding:0 10px;height:38px;color:var(--cobalt)}
.metabox input{border:0;background:none;outline:none;color:var(--ink);font-size:14px;min-width:0}
.prirow{display:flex;gap:4px;margin-left:auto}
.pbtn{height:38px;min-width:42px;padding:0 9px;border-radius:10px;display:flex;align-items:center;gap:2px;background:var(--fill);color:var(--muted);font-weight:800;font-size:12px}
.pbtn svg.i{width:16px;height:16px}
.pbtn[aria-pressed="true"]{background:var(--c);color:#fff}
.notes{background:var(--fill);border:0;min-height:80px}
.source{background:var(--fill);padding:10px 12px;border-radius:12px;font-size:13px}
.source .lb{text-transform:none;letter-spacing:0;font-size:12.5px}
.source p{background:var(--surface);margin:6px 0 0}
.history{background:none;padding:0;font-size:12px;gap:3px}
.history b{color:var(--ink);font-weight:600}
.dfoot{padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:var(--surface)}
.confirm{font-weight:600;color:var(--bad);margin-right:4px}

/* ---- team ---- */
.teamwrap{padding:16px max(20px,env(safe-area-inset-right,0px)) 100px 20px}
.teamgrid{gap:10px;margin-top:12px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.person{padding:12px;gap:10px;border-radius:16px}
.person .n{font-size:15px;display:flex;align-items:center;gap:6px}
.ownerb{font-size:10.5px;font-weight:700;color:var(--cobalt);background:var(--cobalt-soft);padding:1px 6px;border-radius:6px}
.iconrow{display:flex;gap:6px;flex-wrap:wrap}
.ib{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--cobalt-soft);color:var(--cobalt);transition:transform .15s var(--ease)}
.ib:hover{transform:scale(1.07)}
.ib svg.i{width:18px;height:18px}
.ib.danger{background:color-mix(in srgb,var(--bad) 12%,transparent);color:var(--bad);margin-left:auto}
.phonefield,.phoneline{display:flex;align-items:center;gap:8px;background:var(--fill);border-radius:10px;padding:0 10px;height:36px;font-size:13.5px;color:var(--muted)}
.phonefield input{border:0;background:none;outline:none;flex:1;min-width:0;color:var(--ink)}
.phonefield svg.i,.phoneline svg.i{width:16px;height:16px;color:var(--cobalt)}
.phoneline span{color:var(--ink)}
.selectable{user-select:text}
.teamsel{width:auto;height:36px;padding:0 10px}
.visopt{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:var(--fill);text-align:left;color:var(--cobalt);border:2px solid transparent}
.visopt[aria-pressed="true"]{border-color:var(--cobalt);background:var(--cobalt-soft)}
.visopt .tbt b{font-size:14.5px}
.picklist .pick.contact{padding:6px 8px}

/* ---- updates (status) ---- */
.ulist{background:var(--surface);border-radius:16px;padding:4px;box-shadow:var(--shadow)}
.urow{display:flex;align-items:center;gap:12px;width:100%;padding:7px 8px;border-radius:12px;text-align:left}
button.urow:hover{background:var(--fill)}
.ring{position:relative;display:grid;place-items:center;width:52px;height:52px}
.ring .av{width:44px;height:44px}
.ringsvg{position:absolute;inset:0;width:52px;height:52px;fill:none;stroke-width:2.6;stroke-linecap:round}
.plusbadge{position:absolute;right:-1px;bottom:-1px;width:20px;height:20px;border-radius:50%;background:var(--cobalt);color:#fff;display:grid;place-items:center;border:2px solid var(--surface)}
.plusbadge svg.i{width:12px;height:12px;stroke-width:3}
.updates .seg-label,.calls .seg-label{padding-left:4px}
.sdot{min-width:10px!important;width:10px;height:10px!important;padding:0!important;top:6px!important;right:14px!important}
.overlay{position:fixed;inset:0;z-index:80;display:flex;flex-direction:column;color:#fff;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);animation:fade .2s both}
.compose-status{transition:background .3s}
.sc-top{display:flex;align-items:center;gap:6px;padding:12px}
.sc-top .grow,.sc-bot .grow{flex:1}
.sc-ic{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#fff;background:rgba(0,0,0,.18)}
.sc-ic.on{background:rgba(255,255,255,.28)}
.sc-mid{flex:1;min-height:0;display:grid;place-items:center;padding:16px}
.sc-mid textarea{width:min(640px,100%);background:none;border:0;outline:none;color:#fff;text-align:center;font:700 34px/1.25 var(--f-display);resize:none;overflow:hidden}
.sc-mid textarea::placeholder{color:rgba(255,255,255,.6)}
.sc-photo{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}
.sc-pick{display:flex;flex-direction:column;align-items:center;gap:10px;color:#fff;font-weight:600;padding:30px;border:2px dashed rgba(255,255,255,.4);border-radius:20px}
.sc-pick svg.i{width:44px;height:44px}
.sc-bot{display:flex;align-items:center;gap:10px;padding:12px 14px 16px}
.sc-cap{flex:1;min-width:0;background:rgba(255,255,255,.14);border:0;border-radius:22px;padding:11px 16px;color:#fff;outline:none}
.sc-cap::placeholder{color:rgba(255,255,255,.65)}
.sc-send{width:52px;height:52px;border-radius:50%;background:#1FA855;color:#fff;display:grid;place-items:center;flex:none}
.sc-send svg.i{transform:rotate(-90deg)}
.story{background:#000}
.st-bars{display:flex;gap:4px;padding:10px 12px 0}
.st-bars span{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.35);overflow:hidden}
.st-bars i{display:block;height:100%;background:#fff}
.st-head{display:flex;align-items:center;gap:10px;padding:10px 12px;position:relative;z-index:2}
.st-who{display:flex;flex-direction:column}
.st-who span{font-size:12px;opacity:.75}
.st-head .grow{flex:1}
.st-body{flex:1;min-height:0;display:grid;place-items:center;position:relative}
.st-body.text p{max-width:640px;padding:24px;text-align:center;font-weight:700;line-height:1.3;white-space:pre-wrap;overflow-wrap:anywhere}
.st-body.photo img{max-width:100%;max-height:100%;object-fit:contain}
.st-cap{position:absolute;left:0;right:0;bottom:0;padding:16px;text-align:center;background:linear-gradient(transparent,rgba(0,0,0,.7));font-size:15px}
.st-nav{position:absolute;top:80px;bottom:80px;width:35%;z-index:1}
.st-nav.left{left:0} .st-nav.right{right:0}
.st-foot{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 12px 18px;font-size:13.5px;opacity:.9;position:relative;z-index:2}
.st-reply{display:flex;align-items:center;gap:8px;color:#fff;padding:9px 18px;border-radius:999px;background:rgba(255,255,255,.16);font-weight:600}

/* ---- calls ---- */
.favs{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:none}
.fav{flex:none;width:96px;display:flex;flex-direction:column;align-items:center;gap:5px;background:var(--surface);border-radius:16px;padding:12px 6px 8px;box-shadow:var(--shadow)}
.fn{font-size:13px;font-weight:600;max-width:84px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.favacts{display:flex;gap:6px}
.favacts button{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--cobalt-soft);color:var(--cobalt)}
.favacts svg.i{width:16px;height:16px}
.callrow{padding:7px 4px 7px 8px}
.callrow .ctx{flex:1}
.callrow b.missed{color:var(--bad)}
.cdir{display:flex;align-items:center;gap:4px}
.cdir svg.i{width:14px;height:14px}
.callback{color:var(--cobalt)}
.callscreen{background:radial-gradient(120% 80% at 50% 0%,#24324F 0%,#0E1220 70%);align-items:center;justify-content:space-between;padding-block:calc(28px + env(safe-area-inset-top,0px)) calc(28px + env(safe-area-inset-bottom,0px))}
.cs-kind{display:flex;align-items:center;gap:8px;font-size:14px;opacity:.8}
.cs-kind svg.i{width:16px;height:16px}
.cs-mid{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.cs-av{border-radius:50%;padding:6px}
.cs-av .av.xl{border:0}
.cs-av.pulse{animation:pulse 1.6s ease-out infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(76,154,255,.55)}100%{box-shadow:0 0 0 30px rgba(76,154,255,0)}}
.cs-name{font:600 28px var(--f-display);letter-spacing:-.02em}
.cs-st{opacity:.75;font-size:15px}
.cs-phone{font-size:14px;opacity:.85}
.cs-phone a{color:#9CC4FF;font-weight:600}
.cs-acts{display:flex;gap:72px}
.cs-btn{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;opacity:.95}
.round{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;color:#fff}
.round svg.i{width:30px;height:30px}
.round.end{background:#E5383B}
.round.end svg.i{transform:rotate(135deg)}
.round.go{background:#1FA855}
.incoming .round.go{animation:wiggle 1.2s ease-in-out infinite}
@keyframes wiggle{0%,60%,100%{transform:rotate(0)}70%{transform:rotate(-12deg)}80%{transform:rotate(12deg)}90%{transform:rotate(-6deg)}}
.cs-note{font-size:12.5px;opacity:.6;margin:0;text-align:center;padding:0 24px}

@media (max-width:860px){
  .navb{width:auto;flex:1;font-size:10.5px;gap:2px}
  .navb .pill{width:48px;height:30px}
  .vfab{bottom:calc(78px + env(safe-area-inset-bottom,0px))}
  .lines .fab{bottom:16px}
  .bhead{padding:10px max(14px,env(safe-area-inset-right,0px)) 8px max(14px,env(safe-area-inset-left,0px))}
  .chips{width:100%;overflow-x:auto;flex-wrap:nowrap}
  .ichip{flex:none}
  .board{grid-template-columns:repeat(4,minmax(84vw,1fr));padding:4px max(14px,env(safe-area-inset-right,0px)) 150px max(14px,env(safe-area-inset-left,0px))}
  .teamwrap{padding:14px max(14px,env(safe-area-inset-right,0px)) 150px max(14px,env(safe-area-inset-left,0px))}
  .cs-acts{gap:56px}
}
/* ---- frosted blue glass floating buttons ---- */
.fab{background:linear-gradient(150deg,color-mix(in srgb,var(--cobalt) 55%,rgba(255,255,255,.55)) 0%,color-mix(in srgb,var(--cobalt) 72%,transparent) 55%,color-mix(in srgb,var(--cobalt) 88%,transparent) 100%);-webkit-backdrop-filter:blur(18px) saturate(190%);backdrop-filter:blur(18px) saturate(190%);border:1px solid rgba(255,255,255,.55);color:#fff;border-radius:20px;box-shadow:inset 0 1px 1px rgba(255,255,255,.75),inset 0 -10px 18px color-mix(in srgb,var(--cobalt) 35%,transparent),0 10px 28px color-mix(in srgb,var(--cobalt) 38%,transparent),0 2px 6px rgba(0,0,0,.12)}
.fab::after{content:"";position:absolute;inset:1px 1px 50% 1px;border-radius:19px 19px 40% 40%;background:linear-gradient(rgba(255,255,255,.38),rgba(255,255,255,0));pointer-events:none}
.fab svg.i{position:relative;z-index:1;filter:drop-shadow(0 1px 1px rgba(0,0,0,.18))}
.fab.mini{width:44px;height:44px;border-radius:15px;color:#fff;background:linear-gradient(150deg,color-mix(in srgb,var(--cobalt) 35%,rgba(255,255,255,.6)),color-mix(in srgb,var(--cobalt) 55%,transparent))}
.fab.mini::after{border-radius:14px 14px 40% 40%}
.fabstack .fab{position:relative}
.lines .fab{position:absolute}

/* ---- aligned top rows ---- */
.toprow{display:flex;align-items:center;gap:6px;min-height:44px}
.toprow .grow{flex:1}
.toprow .h1{margin:0;line-height:1.1}
.lines-head.toprow{padding:12px 14px 6px}
.teamwrap>.toprow{margin-bottom:4px}
.bhead{flex-direction:column;align-items:stretch;gap:8px}
.bhead .toprow{width:100%}
.bhead .chips{width:100%}
.profbtn{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex:none;padding:0;transition:transform .15s var(--ease)}
.profbtn .av{width:34px;height:34px;border:0}
.profbtn:hover{transform:scale(1.06)}
.rail .me{background:none;border:0;padding:0;cursor:pointer;border-radius:50%}
.vtoggle{display:flex;background:var(--fill);border-radius:10px;padding:3px;gap:2px}
.vtoggle button{width:34px;height:30px;border-radius:8px;display:grid;place-items:center;color:var(--muted)}
.vtoggle button svg.i{width:18px;height:18px}
.vtoggle button[aria-pressed="true"]{background:var(--surface);color:var(--cobalt);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.segmini{display:inline-flex;background:var(--fill);border-radius:10px;padding:3px;gap:2px}
.segmini button{height:30px;padding:0 12px;border-radius:8px;font-size:13px;font-weight:600;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;gap:6px}
.segmini button svg.i{width:16px;height:16px}
.segmini button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.segmini.wide{display:flex}
.segmini.wide button{flex:1}
.modesw{margin:0 14px 8px}
.iconbtn.pinned{color:var(--cobalt);background:var(--cobalt-soft)}

/* ---- chat list rows ---- */
.metaicons{display:flex;align-items:center;gap:4px;min-height:20px}
.pinmark{color:var(--muted);display:grid}
.pinmark svg.i{width:14px;height:14px;transform:rotate(30deg)}
.lineitem.faded{opacity:.6}
.tidmini{font:700 10.5px var(--f-body);color:#fff;background:var(--c);padding:1px 6px;border-radius:5px;vertical-align:1px}
.scrim.clear{background:transparent;display:block;padding:0}
.popmenu{position:fixed;min-width:200px;background:var(--glass);-webkit-backdrop-filter:blur(24px) saturate(180%);backdrop-filter:blur(24px) saturate(180%);border:1px solid var(--rule);border-radius:14px;box-shadow:var(--shadow-lg);padding:5px;animation:in .15s var(--ease) both}
.popmenu>button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border-radius:9px;font-size:14px;font-weight:500;text-align:left}
.popmenu>button:hover{background:var(--fill)}
.popmenu{background:var(--surface)!important}
.stagemenu .sw{padding:0;flex:none;width:20px;height:20px}
.stagemenu .swatches{gap:5px;flex-wrap:nowrap}
.popmenu svg.i{width:18px;height:18px;color:var(--cobalt)}

/* ---- settings ---- */
.settings{max-width:720px}
.profcard{display:flex;align-items:center;gap:16px;background:var(--surface);border-radius:18px;padding:16px;box-shadow:var(--shadow);margin:8px 0 6px}
.profcard .av.xl{width:72px;height:72px;font-size:28px}
.pcx{display:flex;flex-direction:column;min-width:0}
.pcx b{font-size:19px;font-weight:700}
.pcx span{font-size:13px;color:var(--muted)}
.sgroup{padding:2px 0}
.srow{display:flex;align-items:center;gap:12px;padding:10px 12px;min-height:52px}
.srow+.srow{border-top:1px solid var(--rule)}
.sic{width:30px;height:30px;border-radius:8px;background:var(--cobalt);color:#fff;display:grid;place-items:center;flex:none}
.sic svg.i{width:17px;height:17px}
.stx{flex:1;min-width:0;display:flex;flex-direction:column}
.stx b{font-weight:600;font-size:14.5px}
.stx span{font-size:12.5px;color:var(--muted)}
.sinp{width:min(220px,48%);border:0;background:var(--fill);border-radius:9px;padding:8px 10px;outline:none;text-align:right;font-size:14px}
.sinp:focus{box-shadow:0 0 0 2px var(--cobalt-soft)}
.sval{color:var(--muted);font-size:14px}
.switch{width:50px;height:30px;border-radius:15px;background:var(--rule);position:relative;flex:none;transition:background .2s}
.switch i{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s var(--ease)}
.switch.on{background:var(--ok)}
.switch.on i{transform:translateX(20px)}
.swatches{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
textarea.inp.ttlinp{resize:none;min-height:0}
.sw{width:22px;height:22px;border-radius:50%;background:var(--sw);box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)}
.sw.on{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--sw)}
.note.center{text-align:center;margin:18px auto}

/* ---- subtasks ---- */
.subs{background:var(--fill);border-radius:14px;padding:8px 10px;display:flex;flex-direction:column;gap:2px}
.subhead{display:flex;align-items:center;gap:8px;padding:2px 2px 6px;color:var(--cobalt)}
.subhead svg.i{width:18px;height:18px}
.subhead b{color:var(--ink);font-size:14px;font-weight:600}
.subcount{font-size:12.5px;color:var(--muted);font-weight:600}
.subbar{width:72px;height:6px;border-radius:3px;background:var(--rule);overflow:hidden}
.subbar i{display:block;height:100%;background:var(--ok);border-radius:3px;transition:width .25s var(--ease)}
.subrow{display:flex;align-items:center;gap:10px;min-height:38px;padding:0 2px}
.subchk{width:22px;height:22px;border-radius:50%;border:2px solid var(--muted);display:grid;place-items:center;flex:none;color:#fff;transition:background .15s}
.subchk svg.i{width:13px;height:13px;stroke-width:3}
.subrow.done .subchk{background:var(--ok);border-color:var(--ok)}
.subrow.done .subtx{text-decoration:line-through;color:var(--muted)}
.ghostchk{border-style:dashed;color:var(--muted)}
.ghostchk svg.i{width:12px;height:12px;stroke-width:2.6}
.subtx{flex:1;min-width:0;border:0;background:none;outline:none;font-size:14px;padding:8px 0}
.subdel{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:var(--muted);opacity:.6}
.subdel:hover{opacity:1;background:var(--surface)}
.subdel svg.i{width:15px;height:15px}
.subchip{display:inline-flex;align-items:center;gap:3px;font:600 11.5px var(--f-body);color:var(--ok);background:color-mix(in srgb,var(--ok) 13%,transparent);padding:1px 6px;border-radius:6px}
.subchip svg.i{width:13px;height:13px}

/* ---- list view ---- */
.tlist{flex:1;min-height:0;overflow:auto;padding:4px 20px 110px;display:flex;flex-direction:column;gap:14px}
.tlgroup{display:flex;flex-direction:column;gap:6px}
.tlhead{padding:0 2px}
.tlrows{background:var(--surface);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.trow{display:flex;align-items:center;gap:12px;padding:9px 12px;cursor:pointer;position:relative}
.trow+.trow{border-top:1px solid var(--rule)}
.trow::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--c)}
.trow:hover{background:var(--fill)}
.trow.done .ttl{text-decoration:line-through;color:var(--muted)}
.tcheck{width:24px;height:24px;border-radius:50%;border:2px solid var(--c);display:grid;place-items:center;flex:none;color:#fff}
.tcheck.on{background:var(--ok);border-color:var(--ok)}
.tcheck svg.i{width:14px;height:14px;stroke-width:3}
.tmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.tmain .ttl{font-weight:600;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tmeta{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.trow .tid{background:var(--c)}

/* ---- status video ---- */
.sc-pick small{font-weight:500;opacity:.75}
.sc-mid{position:relative}
.sc-prog{position:absolute;left:16px;right:16px;bottom:12px;height:30px;border-radius:15px;background:rgba(0,0,0,.55);overflow:hidden;display:grid;place-items:center}
.sc-prog i{position:absolute;left:0;top:0;bottom:0;background:color-mix(in srgb,var(--cobalt) 70%,transparent);transition:width .3s}
.sc-prog span{position:relative;font-size:13px;font-weight:600}
.st-body.photo video{max-width:100%;max-height:100%}

/* ---- keypad ---- */
.callsheet{padding:16px;gap:12px}
.sheethead{display:flex;align-items:center;gap:8px}
.sheethead .segmini{flex:1}
.keypad{display:flex;flex-direction:column;align-items:center;gap:12px}
.kpdisplay{width:100%;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:62px}
.kpdisplay input{width:100%;border:0;background:none;outline:none;text-align:center;font:500 30px var(--f-display);letter-spacing:.04em;font-variant-numeric:tabular-nums}
.kpwho{font-size:13px;color:var(--cobalt);font-weight:600;min-height:18px}
.kpgrid{display:grid;grid-template-columns:repeat(3,72px);gap:14px 22px}
.kpkey{width:72px;height:72px;border-radius:50%;background:var(--fill);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;transition:background .1s}
.kpkey:active{background:var(--rule)}
.kpkey b{font:400 28px var(--f-display)}
.kpkey span{font-size:9.5px;font-weight:700;letter-spacing:.12em;color:var(--muted);margin-top:3px}
.kpbar{display:grid;grid-template-columns:72px 72px 72px;gap:22px;align-items:center;justify-items:center}
.kpcall{width:68px;height:68px}
.kpcall.off{opacity:.45}
.picklist.tall{max-height:min(60vh,440px)}
.pick .ctx b{font-size:14.5px}
.pick .ctx span{font-size:12.5px}
.ib.cell{background:color-mix(in srgb,var(--ok) 14%,transparent);color:var(--ok)}
.callrow a.iconbtn{display:grid}
@media (max-width:860px){
  .lines .fab{bottom:16px;right:16px}
  .tlist{padding:4px max(14px,env(safe-area-inset-right,0px)) 160px max(14px,env(safe-area-inset-left,0px))}
  .kpgrid{gap:12px 20px}
}
/* ===== sharp & compact pass ===== */
body{font-size:14px}
.h1{font-size:22px;font-weight:700;letter-spacing:-.02em}
svg.i{width:19px;height:19px;stroke-width:1.9}
.iconbtn{width:34px;height:34px;border-radius:10px}
.iconbtn.sm{width:28px;height:28px;border-radius:8px}
.iconbtn.sm svg.i{width:16px;height:16px}
.iconbtn.accent{color:var(--cobalt)}
.iconbtn:disabled{opacity:.35}
/* floating buttons: crisp, solid, frosted edge */
.fab{width:50px;height:50px;border-radius:15px;background:color-mix(in srgb,var(--cobalt) 94%,transparent);-webkit-backdrop-filter:blur(12px) saturate(160%);backdrop-filter:blur(12px) saturate(160%);border:0;box-shadow:0 0 0 .5px rgba(255,255,255,.35) inset,0 1px 2px rgba(0,0,0,.18),0 6px 16px color-mix(in srgb,var(--cobalt) 30%,transparent);color:#fff;transition:transform .12s var(--ease),filter .12s}
.fab::after{display:none}
.fab svg.i{width:22px;height:22px;stroke-width:2;filter:none}
.fab:hover{filter:brightness(1.06);transform:none}
.fab:active{transform:scale(.95)}
.fab.mini{width:40px;height:40px;border-radius:12px;background:var(--surface);color:var(--cobalt);box-shadow:0 0 0 .5px var(--rule) inset,0 1px 2px rgba(0,0,0,.1),0 4px 12px rgba(0,0,0,.08)}
.fab.mini svg.i{width:18px;height:18px}
.fabstack{gap:10px}
.roundgo{width:40px;height:40px;box-shadow:0 1px 2px rgba(0,0,0,.15),0 4px 10px color-mix(in srgb,var(--cobalt) 28%,transparent)}
.roundgo svg.i{width:19px;height:19px}
/* nav */
.app{grid-template-columns:68px 340px minmax(0,1fr)}
.app.with-drawer{grid-template-columns:68px 340px minmax(0,1fr) 380px}
.app.wide-main{grid-template-columns:68px minmax(0,1fr)}
.app.wide-main.with-drawer{grid-template-columns:68px minmax(0,1fr) 380px}
.rail{padding-top:12px;gap:4px}
.mark{width:36px;height:36px;border-radius:10px;margin-bottom:10px;box-shadow:none}
.mark svg{width:20px;height:20px}
.navb{width:58px;padding:4px 0;font-size:10.5px;gap:2px}
.navb .pill{width:46px;height:28px;border-radius:14px}
.navb svg.i{width:20px;height:20px}
.navb .dot{min-width:16px;height:16px;line-height:16px;font-size:10px;top:0;right:4px;padding:0 4px}
/* headers */
.toprow{min-height:40px;gap:4px}
.lines-head.toprow{padding:10px 12px 6px}
.profbtn{width:32px;height:32px}
.profbtn .av{width:30px;height:30px;font-size:12px}
.search{margin:0 12px 6px;border-radius:9px}
.search input{padding:7px 0;font-size:14px}
.thead{padding:6px 10px;min-height:52px}
.thead .glyph,.thead .av.lg{width:36px;height:36px;font-size:14px}
.thead .t b{font-size:15px;font-weight:600}
.thead .t span{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.selhead{gap:8px}
.selcount{font-size:16px;font-weight:600}
/* chat list (WhatsApp style) */
.list{padding:0 6px 90px}
.lineitem{grid-template-columns:46px minmax(0,1fr) auto;gap:11px;padding:7px 8px;border-radius:12px;align-items:center}
.lineitem .glyph,.lineitem .av.lg{width:46px;height:46px;font-size:17px}
.lineitem .nm{font-size:15px;font-weight:600}
.lineitem .pv{font-size:13.5px}
.lineitem .meta{font-size:11.5px;gap:4px;align-self:stretch;justify-content:center}
.badge{min-width:18px;height:18px;line-height:18px;padding:0 5px;border-radius:9px;font-size:11px;background:var(--ok);color:#fff}
.lineitem .badge{font-size:0;min-width:10px;width:10px;height:10px;padding:0;background:var(--cobalt)}
.tglyph{border-radius:50%}
/* bubbles: time inside, sharper */
.stream{padding:6px 14px 4px}
.spine{max-width:720px}
.day{font-size:11.5px;padding:3px 9px;margin:12px auto 8px;background:var(--surface);box-shadow:0 1px 1px rgba(0,0,0,.06)}
.msg{margin:0 0 2px}
.msg:not(.cont){margin-top:6px}
.who{margin:0 0 2px 10px;font-size:12px}
.strip{padding:6px 10px 5px 11px;border-radius:16px;max-width:min(520px,80%);font-size:14.5px;line-height:1.35;box-shadow:0 1px .5px rgba(0,0,0,.08)}
.msg:not(.mine) .strip{background:var(--surface)}
.msg.cont .strip{border-top-left-radius:6px}
.msg.mine.cont .strip{border-top-left-radius:16px;border-top-right-radius:6px}
.mt{float:right;font-size:10.5px;opacity:.6;margin:6px 0 -4px 10px;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.strip.vstrip .mt{float:none;display:block;text-align:right;margin:2px 2px -2px}
.main{background-color:var(--paper)}
.tasktag{margin-top:3px;padding:3px 9px 3px 6px;font-size:12px;border-radius:9px;gap:6px;box-shadow:none;border:1px solid var(--rule)}
.tasktag::before{width:12px;height:12px}
.acts{padding:3px;border-radius:12px;gap:1px}
.acts button{padding:6px 8px;border-radius:8px}
.acts button svg.i{width:18px;height:18px}
.selmode{padding-left:34px;cursor:pointer}
.selck{position:absolute;left:0;top:50%;transform:translateY(-50%);width:22px;height:22px;border-radius:50%;border:2px solid var(--muted);display:grid;place-items:center;color:#fff;background:var(--surface)}
.msg.mine .selck{left:0}
.selected .selck{background:var(--cobalt);border-color:var(--cobalt)}
.selck svg.i{width:13px;height:13px;stroke-width:3}
.selected .strip{outline:2px solid color-mix(in srgb,var(--cobalt) 45%,transparent);outline-offset:1px}
/* composer */
.compose{padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px))}
.crow{gap:6px}
.crow textarea{min-height:40px;padding:9px 14px;border-radius:20px;font-size:14.5px}
.micbtn,.sendbtn{width:40px;height:40px;box-shadow:none}
.micbtn svg.i{width:21px;height:21px}
.knotbtn{width:36px;height:36px;border-radius:50%;background:none;color:var(--muted)}
.knotbtn svg{color:currentColor}
.knotbtn[aria-pressed="true"]{background:var(--cobalt-soft);color:var(--cobalt)}
/* toast */
.toast{padding:9px 10px 9px 16px;font-size:13.5px;border-radius:10px;gap:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px))}
.toast i{display:none}
.toastbtn{color:#7DB5FF;font-weight:700;font-size:13.5px;padding:4px 6px}
/* tasks */
.bhead{padding:10px 16px 6px;gap:6px}
.ichip{width:30px;height:30px}
.ichip .av.sm{width:24px;height:24px}
.ichip svg.i{width:16px;height:16px}
.vtoggle{padding:2px;border-radius:9px}
.vtoggle button{width:30px;height:26px;border-radius:7px}
.vtoggle button svg.i{width:16px;height:16px}
.board{gap:10px;padding:4px 16px 96px;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(240px,1fr);align-items:start}
.col{border-radius:14px}
.colh{padding:8px 6px 4px 8px;display:flex;align-items:center}
.colpill{font-size:12px;padding:3px 5px 3px 10px}
.cards{padding:2px 6px 8px;gap:5px}
.card{padding:8px 9px 7px 11px;border-radius:10px;gap:5px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.card .ttl{font-size:14px}
.addcol{width:44px;min-width:44px;height:44px;display:grid;place-items:center;background:var(--fill);border:1.5px dashed var(--rule);color:var(--muted);border-radius:12px;box-shadow:none;cursor:pointer}
.addcol.open{width:220px;padding:8px;height:auto}
.addcol:hover{color:var(--cobalt);border-color:var(--cobalt)}
.board .addcol{grid-column:auto}
.sinp.full{width:100%;text-align:left}
.stagemenu{width:240px;display:flex;flex-direction:column;gap:8px;padding:10px}
.swatches.left{justify-content:flex-start}
.menuicons{display:flex;align-items:center;gap:2px}
.menuicons .grow{flex:1}
.sdot2{width:10px;height:10px;border-radius:50%;background:var(--c);flex:none}
.popmenu button .grow{flex:1}
.stpill{font-size:11.5px;font-weight:600;color:color-mix(in srgb,var(--c) 75%,var(--ink));background:color-mix(in srgb,var(--c) 14%,transparent);padding:3px 9px;border-radius:999px;white-space:nowrap;flex:none}
.stpill:hover{background:color-mix(in srgb,var(--c) 22%,transparent)}
.tlist{padding:4px 16px 100px;gap:10px}
.trow{padding:8px 10px;gap:10px}
.tcheck{width:22px;height:22px}
.tmain .ttl{font-size:14px}
.statusrow{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none}
.stbtn{flex:none;padding:6px 12px;font-size:12.5px}
.dbody{gap:12px;padding:12px 14px}
.ttlinp{font-size:17px}
.apick{width:34px;height:34px}
.apick .av{width:28px;height:28px}
.metabox,.pbtn{height:34px}
.subs{padding:6px 8px}
.subrow{min-height:34px}
/* settings, lists */
.teamwrap{padding:12px max(16px,env(safe-area-inset-right,0px)) 100px 16px}
.ulist{border-radius:12px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.urow{padding:6px 8px;gap:11px}
.ring,.ringsvg{width:48px;height:48px}
.ring .av{width:40px;height:40px}
.seg-label{padding:12px 6px 4px;font-size:11.5px}
.profcard{padding:12px;gap:12px;border-radius:14px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.profcard .av.xl{width:56px;height:56px;font-size:22px}
.pcx b{font-size:17px}
.srow{min-height:44px;padding:7px 12px;gap:11px}
.sic{width:28px;height:28px;border-radius:7px}
.sic svg.i{width:16px;height:16px}
.stx b{font-size:14px;font-weight:500}
.switch{width:46px;height:28px;border-radius:14px}
.switch i{width:22px;height:22px}
.switch.on i{transform:translateX(18px)}
.segmini button{height:28px;padding:0 10px;font-size:12.5px}
.sinp{padding:6px 9px;font-size:13.5px}
.favs .fav{width:84px;padding:10px 4px 7px;border-radius:12px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.favacts button{width:28px;height:28px}
.person{padding:10px;border-radius:12px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.ib{width:32px;height:32px}
.ib svg.i{width:16px;height:16px}
.contact .ib{margin-left:auto;flex:none}
.contact{cursor:pointer}
.modal{border-radius:18px;padding:18px}
.kpkey{width:66px;height:66px}
.kpgrid{grid-template-columns:repeat(3,66px)}
.kpbar{grid-template-columns:66px 66px 66px}
.kpcall{width:62px;height:62px}
.banner{font-size:12.5px;padding-block:6px}
@media (max-width:860px){
  .navb{width:auto}
  .navb .pill{width:52px;height:28px}
  .rail{padding-top:5px}
  .vfab{bottom:calc(74px + env(safe-area-inset-bottom,0px))}
  .lines .fab{right:14px;bottom:14px}
  .board{grid-auto-columns:82vw;padding:4px max(14px,env(safe-area-inset-right,0px)) 150px max(14px,env(safe-area-inset-left,0px))}
  .bhead{padding:8px max(14px,env(safe-area-inset-right,0px)) 6px max(14px,env(safe-area-inset-left,0px))}
  .toast{bottom:calc(132px + env(safe-area-inset-bottom,0px))}
}
/* ===== encryption, onboarding, contacts ===== */
.e2enote{display:flex;align-items:center;justify-content:center;gap:5px;width:max-content;max-width:100%;margin:8px auto 4px;padding:4px 10px;border-radius:8px;background:color-mix(in srgb,var(--c-review) 16%,var(--surface));color:color-mix(in srgb,var(--c-review) 55%,var(--ink));font-size:11.5px;font-weight:500}
.e2enote svg.i{width:13px;height:13px}
.tx.locked{font-style:italic;color:var(--muted)}
.onbadge{width:18px;height:18px;border-radius:50%;background:var(--ok);color:#fff;display:grid;place-items:center;flex:none;margin-left:auto}
.onbadge svg.i{width:11px;height:11px;stroke-width:3}
.contact .onbadge+.ib{margin-left:6px}
.invbtn{margin-left:auto;flex:none;font-size:12.5px;font-weight:600;color:var(--cobalt);background:var(--cobalt-soft);padding:5px 11px;border-radius:999px;text-decoration:none}
#onboard{background:var(--paper);color:var(--ink);z-index:90}
.ob{margin:auto;width:min(380px,100%);padding:24px 20px;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.oblogo{width:56px;height:56px;border-radius:16px;background:var(--cobalt);color:#fff;display:grid;place-items:center}
.oblogo svg.i{width:28px;height:28px}
.ob h2{margin:0;font:700 22px var(--f-display);letter-spacing:-.02em}
.obrow{display:flex;gap:8px;width:100%}
.obcc{flex:none;width:112px;border:0;background:var(--surface);border-radius:12px;padding:0 10px;height:46px;font-size:15px;box-shadow:0 0 0 .5px var(--rule) inset}
.obnum{flex:1;min-width:0;border:0;background:var(--surface);border-radius:12px;padding:0 14px;height:46px;font-size:17px;letter-spacing:.02em;outline:none;box-shadow:0 0 0 .5px var(--rule) inset}
.obnum:focus{box-shadow:0 0 0 2px var(--cobalt) inset}
.obacts{display:flex;align-items:center;justify-content:space-between;width:100%}
.oblink{color:var(--muted);font-weight:600;font-size:14px;padding:8px}
.fab.obgo{position:static}

/* ===== desktop rail: compact capsules ===== */
.navb{border-radius:14px}
.fabstack{align-items:flex-end}
.fabstack .fab.mini{margin-right:5px}

/* ===== phone: floating capsule dock, FAB on the same row ===== */
@media (max-width:860px){
  .app,.app.with-drawer,.app.wide-main,.app.wide-main.with-drawer{grid-template-rows:auto minmax(0,1fr)!important}
  .rail{position:fixed;grid-row:auto;left:max(12px,env(safe-area-inset-left,0px));right:auto;top:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px));flex-direction:row;gap:8px;padding:0;background:none!important;border:0!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;z-index:35;width:auto}
  .navb{width:56px!important;height:46px;flex:none;padding:0;border-radius:17px;font-size:0;gap:0;display:grid;place-items:center;background:var(--glass);-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);box-shadow:0 0 0 .5px var(--rule) inset,0 1px 2px rgba(0,0,0,.08),0 6px 18px rgba(0,0,0,.10);color:var(--ink)}
  .navb .pill{width:auto!important;height:auto!important;background:none!important;color:inherit!important}
  .navb svg.i{width:22px;height:22px}
  .navb[aria-current="true"]{background:var(--cobalt);color:#fff;box-shadow:0 1px 2px rgba(0,0,0,.12),0 6px 16px color-mix(in srgb,var(--cobalt) 32%,transparent)}
  .navb[aria-current="true"]::before{display:none}
  .navb .dot{top:-5px;right:-5px;border:2px solid var(--paper);min-width:18px;height:18px;line-height:14px}
  .navb .sdot{top:-3px!important;right:-3px!important;width:12px;height:12px!important;min-width:12px!important}
  .vfab,.lines .fab{position:fixed!important;right:max(12px,env(safe-area-inset-right,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px));width:56px;height:46px;border-radius:17px;z-index:36}
  .fabstack.vfab{width:auto;height:auto;display:flex;flex-direction:column;align-items:center;gap:8px}
  .fabstack .fab{width:56px;height:46px;border-radius:17px;position:static!important}
  .fabstack .fab.mini{width:46px;height:40px;border-radius:14px;margin:0}
  .app.in-thread .rail,.app.in-thread:not(.wide-main) .lines .fab{display:none}
  .app.with-drawer .rail{display:none}
  .list,.teamwrap,.tlist{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}
  .board{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}
  .toast{bottom:calc(70px + env(safe-area-inset-bottom,0px))!important}
  .compose{padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:860px){
  .rail{left:max(12px,env(safe-area-inset-left,0px))!important;right:max(12px,env(safe-area-inset-right,0px))!important;width:auto!important;display:flex;gap:8px!important}
  .navb{flex:1 1 0!important;width:auto!important;min-width:0;height:50px!important;border-radius:999px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:0!important;line-height:0;position:relative}
  .navb .pill{display:flex!important;align-items:center;justify-content:center;width:24px!important;height:24px!important;margin:0!important;padding:0!important}
  .navb .pill svg.i{width:23px;height:23px;display:block;margin:0}
  .navb .dot{position:absolute;top:2px!important;right:calc(50% - 26px)!important;font-size:10px!important;line-height:14px!important}
  .navb .sdot{top:7px!important;right:calc(50% - 20px)!important}
  .vfab,.lines .fab{bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;right:max(14px,env(safe-area-inset-right,0px))!important;width:54px!important;height:54px!important;border-radius:18px!important}
  .fabstack.vfab{width:auto!important;height:auto!important}
  .fabstack .fab{width:54px!important;height:54px!important;border-radius:18px!important}
  .fabstack .fab.mini{width:44px!important;height:44px!important;border-radius:15px!important}
  .list,.teamwrap,.tlist,.board{padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))!important}
  .toast{bottom:calc(140px + env(safe-area-inset-bottom,0px))!important}
}

/* inline dial pad */
.dialing{display:flex;flex-direction:column;align-items:stretch}
.dialsearch{margin:6px 0 4px!important;height:42px;padding:0 6px 0 12px!important}
.dialsearch input{font-size:16px;letter-spacing:.01em}
.dialsearch input::-webkit-search-cancel-button{display:none}
.dialres{display:flex;flex-direction:column;gap:2px;min-height:0;max-height:34vh;overflow:auto;margin-bottom:6px}
.drow{display:flex;align-items:center;gap:10px;padding:6px 6px;border-radius:12px;background:var(--surface)}
.drow .av{width:32px;height:32px;font-size:13px}
.drow .ctx{flex:1;min-width:0}
.drow .ctx b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drow .ctx span{font-size:12px;color:var(--muted)}
.drow .ib{width:30px;height:30px}
.dialpad{margin-top:auto;display:flex;flex-direction:column;align-items:center;gap:12px;padding-top:4px}
.dialing .kpgrid{grid-template-columns:repeat(3,64px);gap:12px 24px}
.dialing .kpkey{width:64px;height:64px;background:var(--surface);box-shadow:0 0 0 .5px var(--rule) inset}
.dialing .kpkey b{font-size:26px}
.dialing .kpbar{grid-template-columns:64px 64px 64px;gap:24px}
.dialing .kpcall{width:64px;height:64px}
@media (max-width:860px){
  .vfab,.lines .fab{bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}
  .teamwrap.dialing{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))!important;overflow:auto}
  .dialing .kpgrid{gap:10px 22px}
}
/* ===== message gestures, hold menu, forward ===== */
.msg{position:relative}
.brow{display:flex;align-items:center;gap:6px;max-width:100%}
.mine .brow{flex-direction:row-reverse}
.brow .strip{transform:translateX(var(--sx,0px));transition:transform .22s var(--ease);touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.msg.swiping .strip{transition:none}
.swi{position:absolute;top:50%;width:30px;height:30px;margin-top:-15px;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--muted);box-shadow:0 1px 3px rgba(0,0,0,.12);opacity:0;transform:scale(.6);transition:opacity .15s,transform .15s,background .15s,color .15s;pointer-events:none}
.swi svg.i{width:16px;height:16px}
.swi-r{left:-2px}
.swi-l{right:-2px}
.msg.swiping .swi-r{opacity:calc(var(--o,0))}
.msg.swr .swi-r{opacity:1;transform:scale(1);background:var(--cobalt);color:#fff}
.msg.swl .swi-l{opacity:1;transform:scale(1);background:var(--ok);color:#fff}
.fwdbtn,.mchev{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:var(--muted);background:color-mix(in srgb,var(--surface) 70%,transparent);opacity:.75;transition:opacity .15s,background .15s}
.fwdbtn svg.i,.mchev svg.i{width:15px;height:15px}
.fwdbtn:hover,.mchev:hover{opacity:1;background:var(--surface)}
.mchev{display:none}
@media (hover:hover){ .mchev{display:grid;opacity:0} .msg:hover .mchev{opacity:.8} }
.fwdlabel{display:flex;align-items:center;gap:4px;font-size:11.5px;font-style:italic;opacity:.65;margin-bottom:2px}
.fwdlabel svg.i{width:12px;height:12px}
.holdmenu{display:flex;flex-direction:column;gap:6px;margin-top:6px;animation:in .16s var(--ease) both;z-index:5;position:relative}
.mine .holdmenu{align-items:flex-end}
.holdmenu .emojis{margin:0;padding:4px 6px;border-radius:999px;background:var(--surface);box-shadow:0 0 0 .5px var(--rule) inset,0 6px 20px rgba(0,0,0,.14);display:flex;gap:2px;flex-wrap:wrap;max-width:min(330px,92vw)}
.holdmenu .emojis.more{border-radius:16px;padding:6px}
.holdmenu .emojis button{width:36px;height:36px;font-size:21px;border-radius:50%;display:grid;place-items:center}
.holdmenu .emojis button.on{background:var(--cobalt-soft)}
.holdmenu .emojis .emore{color:var(--muted);background:var(--fill)}
.holdmenu .emojis .emore svg.i{width:16px;height:16px}
.holdmenu .acts{margin:0;background:var(--surface);border:0;box-shadow:0 0 0 .5px var(--rule) inset,0 6px 20px rgba(0,0,0,.14)}
.holdmenu .acts .tie{background:var(--ok);color:#fff}
.mention{color:var(--cobalt);font-weight:600}
.mine .mention{color:#fff;text-decoration:underline;text-underline-offset:2px}
.mentionbox{display:flex;flex-direction:column;gap:2px;background:var(--surface);border-radius:12px;box-shadow:0 0 0 .5px var(--rule) inset,0 6px 20px rgba(0,0,0,.12);padding:4px;margin-bottom:6px;max-width:320px}
.mentionbox[hidden]{display:none!important}
.mopt{display:flex;align-items:center;gap:9px;padding:6px 8px;border-radius:8px;font-size:14px;font-weight:500;text-align:left}
.mopt:hover{background:var(--fill)}
.badge.at{font-size:11px!important;width:18px!important;height:18px!important;min-width:18px!important;background:var(--cobalt)!important;color:#fff;display:grid;place-items:center}
.fwdsheet{gap:10px}
.sheettitle{font-size:16px;font-weight:600}
.fwdsheet .roundgo:disabled{opacity:.35}
.fwdsheet .roundgo svg.i{transform:rotate(-90deg)}
/* chat menu */
.chatmenu{width:min(300px,calc(100vw - 16px));padding:6px;max-height:70vh;overflow:auto}
.pmlabel{display:flex;align-items:center;gap:7px;padding:6px 8px 4px;font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.pmlabel svg.i{width:14px;height:14px}
.pmcount{margin-left:auto;font-weight:600}
.pmlist{display:flex;flex-direction:column}
.pmtask{display:flex;align-items:center;gap:10px;width:100%;padding:8px;border-radius:9px;text-align:left}
.pmtask:hover{background:var(--fill)}
.pmtask svg.i{width:16px;height:16px;color:var(--cobalt);flex:none}
.pmt{flex:1;min-width:0;display:flex;flex-direction:column}
.pmt b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pmt span{font-size:11.5px;color:var(--muted)}
.pmempty{padding:4px 10px 8px;color:var(--muted)}
.pmsep{height:1px;background:var(--rule);margin:4px 2px}
/* task attachments */
.tfiles{background:var(--fill);border-radius:14px;padding:6px 8px 8px;display:flex;flex-direction:column;gap:6px}
.tthumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:6px}
.tthumb{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--surface);max-width:100%}
.tthumb img{width:100%;height:100%;object-fit:cover;cursor:zoom-in;display:block}
.tdel{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;display:grid;place-items:center}
.tdel svg.i{width:12px;height:12px;stroke-width:2.6}
.tvoice{display:flex;align-items:center;gap:6px;background:var(--surface);border-radius:12px;padding:6px 6px 6px 8px}
.tvoice .voice{flex:1;min-width:0;color:var(--ink)}
.tvoice .vplay{width:34px;height:34px}
.recbar.small{padding:3px 3px 3px 6px;gap:8px}
.recbar.small .micbtn{width:34px;height:34px}
.photoview{background:rgba(0,0,0,.92);display:grid!important;place-items:center}
.photoview img{max-width:100%;max-height:100%;object-fit:contain}
.pvclose{position:absolute;top:calc(12px + env(safe-area-inset-top,0px));right:12px;z-index:2}
/* ===== dock lower, floating button higher (no overlap) ===== */
@media (max-width:860px){
  .rail{bottom:calc(6px + env(safe-area-inset-bottom,0px))!important}
  .vfab,.lines .fab{bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
  .toast{bottom:calc(146px + env(safe-area-inset-bottom,0px))!important}
}

/* WhatsApp-style forward screen */
.fwdview{background:var(--paper);color:var(--ink);z-index:85;animation:fwdin .22s var(--ease) both}
@keyframes fwdin{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.fhead{display:flex;align-items:center;gap:6px;padding:8px 10px;min-height:56px;background:var(--surface);border-bottom:.5px solid var(--rule)}
.ftitle{flex:1;min-width:0;display:flex;flex-direction:column}
.ftitle b{font-size:17px;font-weight:600}
.ftitle span{font-size:12.5px;color:var(--muted)}
.fsearch{flex:1;min-width:0;border:0;background:var(--fill);border-radius:10px;padding:9px 12px;font-size:15px;outline:none}
.flist{flex:1;min-height:0;overflow:auto;padding:4px 8px 96px}
.flist .seg-label{padding:14px 10px 6px}
.frow{display:flex;align-items:center;gap:12px;width:100%;padding:8px 10px;border-radius:12px;text-align:left}
.frow:hover{background:var(--fill)}
.frow .glyph,.frow .av.lg{width:44px;height:44px;font-size:16px}
.frow .ctx{flex:1;min-width:0}
.frow .ctx b{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.frow .ctx span{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fck{width:22px;height:22px;border-radius:50%;border:2px solid var(--rule);display:grid;place-items:center;flex:none;color:#fff;transition:background .12s,border-color .12s}
.frow.on .fck{background:var(--ok);border-color:var(--ok)}
.fck svg.i{width:13px;height:13px;stroke-width:3}
.fbar{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:12px;padding:10px max(14px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));background:var(--surface);border-top:.5px solid var(--rule);animation:in .18s var(--ease) both}
.fnames{flex:1;min-width:0;font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
.fsend{width:50px;height:50px;border-radius:50%;background:var(--ok);color:#fff;display:grid;place-items:center;flex:none;box-shadow:0 4px 12px color-mix(in srgb,var(--ok) 35%,transparent)}
.fsend svg.i{width:22px;height:22px;transform:rotate(-90deg)}
@media (min-width:861px){ .fwdview{inset:auto;left:50%;top:50%;width:440px;height:min(640px,86vh);transform:translate(-50%,-50%);border-radius:18px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.25);animation:none} }

/* dock + floating button: one shared geometry so they never touch */
@media (max-width:860px){
  :root{--dock-h:50px;--dock-b:calc(8px + env(safe-area-inset-bottom,0px));--fab-gap:26px}
  .rail{bottom:var(--dock-b)!important;height:var(--dock-h)!important;padding:0!important;align-items:center!important;overflow:visible}
  .navb{height:var(--dock-h)!important;margin:0!important}
  .vfab,.lines .fab{bottom:calc(var(--dock-b) + var(--dock-h) + var(--fab-gap))!important}
  .list,.teamwrap,.tlist,.board,.flist{padding-bottom:calc(var(--dock-h) + var(--fab-gap) + 90px + env(safe-area-inset-bottom,0px))!important}
  .toast{bottom:calc(var(--dock-b) + var(--dock-h) + var(--fab-gap) + 66px)!important}
}

.tgwrap{position:relative;display:inline-grid;flex:none}
.tgpar{position:absolute;right:-3px;bottom:-3px;width:44%;height:44%;border-radius:50%;box-shadow:0 0 0 2px var(--surface);overflow:hidden;display:grid}
.tgpar .glyph,.tgpar .av{width:100%!important;height:100%!important;font-size:9px!important;border:0!important;border-radius:50%!important;box-shadow:none!important;transform:none!important}
.tgpar .tgwrap{display:none}
.thead .tgpar{box-shadow:0 0 0 2px var(--glass)}

/* chat wallpaper: tools doodle (original drawings) or the user's own photo */
:root{--chatbg:#E7ECF2;--wp-tools:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22190%22 height=%22190%22 viewBox=%220 0 190 190%22%3E%3Cg fill=%22none%22 stroke=%22%231B2433%22 stroke-opacity=%220.12%22 stroke-width=%221.45%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cg transform=%22translate%2810.4 10.3%29 rotate%2850 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M15.5 4.5a4.2 4.2 0 0 0-5.2 5.4L4 16.2 7.8 20l6.3-6.3a4.2 4.2 0 0 0 5.4-5.2l-2.6 2.6-2.6-.7-.7-2.6z%22/%3E%3C/g%3E%3Cg transform=%22translate%2845.9 10.3%29 rotate%28-20 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M4 7.5h11v5H4z%22/%3E%3Cpath d=%22M15 9h4.5M19.5 9l1.5.5-1.5.5%22/%3E%3Cpath d=%22M7 12.5l-1.5 7h4l1-7%22/%3E%3C/g%3E%3Cg transform=%22translate%2887.0 9.0%29 rotate%2822 9.8 9.8%29 scale%280.82%29%22%3E%3Crect x=%223%22 y=%229%22 width=%2218%22 height=%2210%22 rx=%221.5%22/%3E%3Cpath d=%22M9 9V6.5h6V9M3 13h18M10.5 13v2h3v-2%22/%3E%3C/g%3E%3Cg transform=%22translate%28120.7 8.0%29 rotate%28-35 9.8 9.8%29 scale%280.82%29%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3Cpath d=%22M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%226.2%22/%3E%3C/g%3E%3Cg transform=%22translate%28161.1 8.4%29 rotate%28-35 11.8 11.8%29 scale%280.98%29%22%3E%3Crect x=%224%22 y=%223.5%22 width=%2213%22 height=%225%22 rx=%221.5%22/%3E%3Cpath d=%22M17 6h2.5v4.5H11v3%22/%3E%3Crect x=%229.5%22 y=%2213.5%22 width=%223%22 height=%227%22 rx=%221%22/%3E%3C/g%3E%3Cg transform=%22translate%2829.1 48.0%29 rotate%2835 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M5 4h10v4M5 4v16h10v-4%22/%3E%3Cpath d=%22M15 8h4v8h-4M17 8v-3M17 16v3%22/%3E%3C/g%3E%3Cg transform=%22translate%2864.9 43.2%29 rotate%28-35 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M9 3.5l2.5 7M15 3.5l-2.5 7%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%221.6%22/%3E%3Cpath d=%22M11 13.3L8 20.5M13 13.3l3 7.2%22/%3E%3C/g%3E%3Cg transform=%22translate%2899.6 42.5%29 rotate%28-20 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M5 19l1-4.5L16 4.5 19.5 8 9.5 18z%22/%3E%3Cpath d=%22M14 6.5l3.5 3.5%22/%3E%3C/g%3E%3Cg transform=%22translate%28137.4 45.0%29 rotate%2810 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M4 20l4.5-4.5%22/%3E%3Cpath d=%22M8.5 15.5l2-2 8-8 1.5 1.5-8 8-2 2z%22/%3E%3Cpath d=%22M7 14l3 3%22/%3E%3C/g%3E%3Cg transform=%22translate%28180.3 45.4%29 rotate%2835 11.8 11.8%29 scale%280.98%29%22%3E%3Crect x=%222.5%22 y=%229%22 width=%2219%22 height=%226%22 rx=%221.5%22/%3E%3Crect x=%229.5%22 y=%2210.5%22 width=%225%22 height=%223%22 rx=%221.5%22/%3E%3Cpath d=%22M12 10.5v3%22/%3E%3C/g%3E%3Cg transform=%22translate%28-9.7 45.4%29 rotate%2835 11.8 11.8%29 scale%280.98%29%22%3E%3Crect x=%222.5%22 y=%229%22 width=%2219%22 height=%226%22 rx=%221.5%22/%3E%3Crect x=%229.5%22 y=%2210.5%22 width=%225%22 height=%223%22 rx=%221.5%22/%3E%3Cpath d=%22M12 10.5v3%22/%3E%3C/g%3E%3Cg transform=%22translate%288.2 85.2%29 rotate%2810 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M14.5 3.5l6 6-7 7-6-6z%22/%3E%3Cpath d=%22M7.5 10.5L3.5 20.5l10-4%22/%3E%3C/g%3E%3Cg transform=%22translate%2843.9 86.2%29 rotate%2850 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M3 15.5h13.5l4-5H8z%22/%3E%3Cpath d=%22M5 15.5l1 2 1-2 1 2 1-2 1 2 1-2 1 2 1-2 1 2 1-2%22/%3E%3Cpath d=%22M16.5 10.5v-3h4v3%22/%3E%3C/g%3E%3Cg transform=%22translate%2886.4 84.1%29 rotate%28-20 9.8 9.8%29 scale%280.82%29%22%3E%3Cpath d=%22M8 3.5h8l1.5 3h-11z%22/%3E%3Cpath d=%22M10 6.5v14h4v-14%22/%3E%3Cpath d=%22M10 10l4-1M10 13l4-1M10 16l4-1%22/%3E%3C/g%3E%3Cg transform=%22translate%28120.0 80.7%29 rotate%2850 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M5 20l8.5-8.5%22/%3E%3Cpath d=%22M11.5 6.5l3-3 6 6-3 3-1.5-1.5-2 2-3.5-3.5 2-2z%22/%3E%3C/g%3E%3Cg transform=%22translate%28160.6 87.2%29 rotate%2810 9.8 9.8%29 scale%280.82%29%22%3E%3Ccircle cx=%2210%22 cy=%2211%22 r=%226%22/%3E%3Ccircle cx=%2210%22 cy=%2211%22 r=%222%22/%3E%3Cpath d=%22M16 15.5h5.5v2H14%22/%3E%3C/g%3E%3Cg transform=%22translate%2830.9 125.2%29 rotate%28-35 9.8 9.8%29 scale%280.82%29%22%3E%3Cpath d=%22M6 18l9.5-9.5%22/%3E%3Cpath d=%22M15 4.5a3.5 3.5 0 0 1 4.5 4.5l-2-.3-1.5 1.5%22/%3E%3Cpath d=%22M4 16.5a2.5 2.5 0 0 0 3.5 3.5%22/%3E%3C/g%3E%3Cg transform=%22translate%2864.4 125.6%29 rotate%2810 9.8 9.8%29 scale%280.82%29%22%3E%3Crect x=%222.5%22 y=%228.5%22 width=%2219%22 height=%227%22 rx=%221%22/%3E%3Cpath d=%22M6 8.5v3M9.5 8.5v2M13 8.5v3M16.5 8.5v2M20 8.5v3%22/%3E%3C/g%3E%3Cg transform=%22translate%28106.1 121.6%29 rotate%28-35 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M12 3.5l7.4 4.25v8.5L12 20.5l-7.4-4.25v-8.5z%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3C/g%3E%3Cg transform=%22translate%28141.0 122.9%29 rotate%28-8 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M15.5 4.5a4.2 4.2 0 0 0-5.2 5.4L4 16.2 7.8 20l6.3-6.3a4.2 4.2 0 0 0 5.4-5.2l-2.6 2.6-2.6-.7-.7-2.6z%22/%3E%3C/g%3E%3Cg transform=%22translate%28176.7 121.2%29 rotate%2810 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M4 7.5h11v5H4z%22/%3E%3Cpath d=%22M15 9h4.5M19.5 9l1.5.5-1.5.5%22/%3E%3Cpath d=%22M7 12.5l-1.5 7h4l1-7%22/%3E%3C/g%3E%3Cg transform=%22translate%28-13.3 121.2%29 rotate%2810 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M4 7.5h11v5H4z%22/%3E%3Cpath d=%22M15 9h4.5M19.5 9l1.5.5-1.5.5%22/%3E%3Cpath d=%22M7 12.5l-1.5 7h4l1-7%22/%3E%3C/g%3E%3Cg transform=%22translate%287.0 162.4%29 rotate%28-35 9.8 9.8%29 scale%280.82%29%22%3E%3Crect x=%223%22 y=%229%22 width=%2218%22 height=%2210%22 rx=%221.5%22/%3E%3Cpath d=%22M9 9V6.5h6V9M3 13h18M10.5 13v2h3v-2%22/%3E%3C/g%3E%3Cg transform=%22translate%2846.9 161.1%29 rotate%2835 9.8 9.8%29 scale%280.82%29%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3Cpath d=%22M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%226.2%22/%3E%3C/g%3E%3Cg transform=%22translate%2881.4 159.3%29 rotate%2835 11.8 11.8%29 scale%280.98%29%22%3E%3Crect x=%224%22 y=%223.5%22 width=%2213%22 height=%225%22 rx=%221.5%22/%3E%3Cpath d=%22M17 6h2.5v4.5H11v3%22/%3E%3Crect x=%229.5%22 y=%2213.5%22 width=%223%22 height=%227%22 rx=%221%22/%3E%3C/g%3E%3Cg transform=%22translate%28122.7 160.5%29 rotate%2810 9.8 9.8%29 scale%280.82%29%22%3E%3Cpath d=%22M5 4h10v4M5 4v16h10v-4%22/%3E%3Cpath d=%22M15 8h4v8h-4M17 8v-3M17 16v3%22/%3E%3C/g%3E%3Cg transform=%22translate%28163.1 157.2%29 rotate%2850 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M9 3.5l2.5 7M15 3.5l-2.5 7%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%221.6%22/%3E%3Cpath d=%22M11 13.3L8 20.5M13 13.3l3 7.2%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--chatbg:#0E1218;--wp-tools:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22190%22 height=%22190%22 viewBox=%220 0 190 190%22%3E%3Cg fill=%22none%22 stroke=%22%23FFFFFF%22 stroke-opacity=%220.085%22 stroke-width=%221.45%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cg transform=%22translate%2810.4 10.3%29 rotate%2850 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M15.5 4.5a4.2 4.2 0 0 0-5.2 5.4L4 16.2 7.8 20l6.3-6.3a4.2 4.2 0 0 0 5.4-5.2l-2.6 2.6-2.6-.7-.7-2.6z%22/%3E%3C/g%3E%3Cg transform=%22translate%2845.9 10.3%29 rotate%28-20 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M4 7.5h11v5H4z%22/%3E%3Cpath d=%22M15 9h4.5M19.5 9l1.5.5-1.5.5%22/%3E%3Cpath d=%22M7 12.5l-1.5 7h4l1-7%22/%3E%3C/g%3E%3Cg transform=%22translate%2887.0 9.0%29 rotate%2822 9.8 9.8%29 scale%280.82%29%22%3E%3Crect x=%223%22 y=%229%22 width=%2218%22 height=%2210%22 rx=%221.5%22/%3E%3Cpath d=%22M9 9V6.5h6V9M3 13h18M10.5 13v2h3v-2%22/%3E%3C/g%3E%3Cg transform=%22translate%28120.7 8.0%29 rotate%28-35 9.8 9.8%29 scale%280.82%29%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3Cpath d=%22M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%226.2%22/%3E%3C/g%3E%3Cg transform=%22translate%28161.1 8.4%29 rotate%28-35 11.8 11.8%29 scale%280.98%29%22%3E%3Crect x=%224%22 y=%223.5%22 width=%2213%22 height=%225%22 rx=%221.5%22/%3E%3Cpath d=%22M17 6h2.5v4.5H11v3%22/%3E%3Crect x=%229.5%22 y=%2213.5%22 width=%223%22 height=%227%22 rx=%221%22/%3E%3C/g%3E%3Cg transform=%22translate%2829.1 48.0%29 rotate%2835 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M5 4h10v4M5 4v16h10v-4%22/%3E%3Cpath d=%22M15 8h4v8h-4M17 8v-3M17 16v3%22/%3E%3C/g%3E%3Cg transform=%22translate%2864.9 43.2%29 rotate%28-35 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M9 3.5l2.5 7M15 3.5l-2.5 7%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%221.6%22/%3E%3Cpath d=%22M11 13.3L8 20.5M13 13.3l3 7.2%22/%3E%3C/g%3E%3Cg transform=%22translate%2899.6 42.5%29 rotate%28-20 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M5 19l1-4.5L16 4.5 19.5 8 9.5 18z%22/%3E%3Cpath d=%22M14 6.5l3.5 3.5%22/%3E%3C/g%3E%3Cg transform=%22translate%28137.4 45.0%29 rotate%2810 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M4 20l4.5-4.5%22/%3E%3Cpath d=%22M8.5 15.5l2-2 8-8 1.5 1.5-8 8-2 2z%22/%3E%3Cpath d=%22M7 14l3 3%22/%3E%3C/g%3E%3Cg transform=%22translate%28180.3 45.4%29 rotate%2835 11.8 11.8%29 scale%280.98%29%22%3E%3Crect x=%222.5%22 y=%229%22 width=%2219%22 height=%226%22 rx=%221.5%22/%3E%3Crect x=%229.5%22 y=%2210.5%22 width=%225%22 height=%223%22 rx=%221.5%22/%3E%3Cpath d=%22M12 10.5v3%22/%3E%3C/g%3E%3Cg transform=%22translate%28-9.7 45.4%29 rotate%2835 11.8 11.8%29 scale%280.98%29%22%3E%3Crect x=%222.5%22 y=%229%22 width=%2219%22 height=%226%22 rx=%221.5%22/%3E%3Crect x=%229.5%22 y=%2210.5%22 width=%225%22 height=%223%22 rx=%221.5%22/%3E%3Cpath d=%22M12 10.5v3%22/%3E%3C/g%3E%3Cg transform=%22translate%288.2 85.2%29 rotate%2810 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M14.5 3.5l6 6-7 7-6-6z%22/%3E%3Cpath d=%22M7.5 10.5L3.5 20.5l10-4%22/%3E%3C/g%3E%3Cg transform=%22translate%2843.9 86.2%29 rotate%2850 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M3 15.5h13.5l4-5H8z%22/%3E%3Cpath d=%22M5 15.5l1 2 1-2 1 2 1-2 1 2 1-2 1 2 1-2 1 2 1-2%22/%3E%3Cpath d=%22M16.5 10.5v-3h4v3%22/%3E%3C/g%3E%3Cg transform=%22translate%2886.4 84.1%29 rotate%28-20 9.8 9.8%29 scale%280.82%29%22%3E%3Cpath d=%22M8 3.5h8l1.5 3h-11z%22/%3E%3Cpath d=%22M10 6.5v14h4v-14%22/%3E%3Cpath d=%22M10 10l4-1M10 13l4-1M10 16l4-1%22/%3E%3C/g%3E%3Cg transform=%22translate%28120.0 80.7%29 rotate%2850 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M5 20l8.5-8.5%22/%3E%3Cpath d=%22M11.5 6.5l3-3 6 6-3 3-1.5-1.5-2 2-3.5-3.5 2-2z%22/%3E%3C/g%3E%3Cg transform=%22translate%28160.6 87.2%29 rotate%2810 9.8 9.8%29 scale%280.82%29%22%3E%3Ccircle cx=%2210%22 cy=%2211%22 r=%226%22/%3E%3Ccircle cx=%2210%22 cy=%2211%22 r=%222%22/%3E%3Cpath d=%22M16 15.5h5.5v2H14%22/%3E%3C/g%3E%3Cg transform=%22translate%2830.9 125.2%29 rotate%28-35 9.8 9.8%29 scale%280.82%29%22%3E%3Cpath d=%22M6 18l9.5-9.5%22/%3E%3Cpath d=%22M15 4.5a3.5 3.5 0 0 1 4.5 4.5l-2-.3-1.5 1.5%22/%3E%3Cpath d=%22M4 16.5a2.5 2.5 0 0 0 3.5 3.5%22/%3E%3C/g%3E%3Cg transform=%22translate%2864.4 125.6%29 rotate%2810 9.8 9.8%29 scale%280.82%29%22%3E%3Crect x=%222.5%22 y=%228.5%22 width=%2219%22 height=%227%22 rx=%221%22/%3E%3Cpath d=%22M6 8.5v3M9.5 8.5v2M13 8.5v3M16.5 8.5v2M20 8.5v3%22/%3E%3C/g%3E%3Cg transform=%22translate%28106.1 121.6%29 rotate%28-35 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M12 3.5l7.4 4.25v8.5L12 20.5l-7.4-4.25v-8.5z%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3C/g%3E%3Cg transform=%22translate%28141.0 122.9%29 rotate%28-8 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M15.5 4.5a4.2 4.2 0 0 0-5.2 5.4L4 16.2 7.8 20l6.3-6.3a4.2 4.2 0 0 0 5.4-5.2l-2.6 2.6-2.6-.7-.7-2.6z%22/%3E%3C/g%3E%3Cg transform=%22translate%28176.7 121.2%29 rotate%2810 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M4 7.5h11v5H4z%22/%3E%3Cpath d=%22M15 9h4.5M19.5 9l1.5.5-1.5.5%22/%3E%3Cpath d=%22M7 12.5l-1.5 7h4l1-7%22/%3E%3C/g%3E%3Cg transform=%22translate%28-13.3 121.2%29 rotate%2810 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M4 7.5h11v5H4z%22/%3E%3Cpath d=%22M15 9h4.5M19.5 9l1.5.5-1.5.5%22/%3E%3Cpath d=%22M7 12.5l-1.5 7h4l1-7%22/%3E%3C/g%3E%3Cg transform=%22translate%287.0 162.4%29 rotate%28-35 9.8 9.8%29 scale%280.82%29%22%3E%3Crect x=%223%22 y=%229%22 width=%2218%22 height=%2210%22 rx=%221.5%22/%3E%3Cpath d=%22M9 9V6.5h6V9M3 13h18M10.5 13v2h3v-2%22/%3E%3C/g%3E%3Cg transform=%22translate%2846.9 161.1%29 rotate%2835 9.8 9.8%29 scale%280.82%29%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3Cpath d=%22M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%226.2%22/%3E%3C/g%3E%3Cg transform=%22translate%2881.4 159.3%29 rotate%2835 11.8 11.8%29 scale%280.98%29%22%3E%3Crect x=%224%22 y=%223.5%22 width=%2213%22 height=%225%22 rx=%221.5%22/%3E%3Cpath d=%22M17 6h2.5v4.5H11v3%22/%3E%3Crect x=%229.5%22 y=%2213.5%22 width=%223%22 height=%227%22 rx=%221%22/%3E%3C/g%3E%3Cg transform=%22translate%28122.7 160.5%29 rotate%2810 9.8 9.8%29 scale%280.82%29%22%3E%3Cpath d=%22M5 4h10v4M5 4v16h10v-4%22/%3E%3Cpath d=%22M15 8h4v8h-4M17 8v-3M17 16v3%22/%3E%3C/g%3E%3Cg transform=%22translate%28163.1 157.2%29 rotate%2850 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M9 3.5l2.5 7M15 3.5l-2.5 7%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%221.6%22/%3E%3Cpath d=%22M11 13.3L8 20.5M13 13.3l3 7.2%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}}
:root[data-theme="dark"]{--chatbg:#0E1218;--wp-tools:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22190%22 height=%22190%22 viewBox=%220 0 190 190%22%3E%3Cg fill=%22none%22 stroke=%22%23FFFFFF%22 stroke-opacity=%220.085%22 stroke-width=%221.45%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cg transform=%22translate%2810.4 10.3%29 rotate%2850 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M15.5 4.5a4.2 4.2 0 0 0-5.2 5.4L4 16.2 7.8 20l6.3-6.3a4.2 4.2 0 0 0 5.4-5.2l-2.6 2.6-2.6-.7-.7-2.6z%22/%3E%3C/g%3E%3Cg transform=%22translate%2845.9 10.3%29 rotate%28-20 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M4 7.5h11v5H4z%22/%3E%3Cpath d=%22M15 9h4.5M19.5 9l1.5.5-1.5.5%22/%3E%3Cpath d=%22M7 12.5l-1.5 7h4l1-7%22/%3E%3C/g%3E%3Cg transform=%22translate%2887.0 9.0%29 rotate%2822 9.8 9.8%29 scale%280.82%29%22%3E%3Crect x=%223%22 y=%229%22 width=%2218%22 height=%2210%22 rx=%221.5%22/%3E%3Cpath d=%22M9 9V6.5h6V9M3 13h18M10.5 13v2h3v-2%22/%3E%3C/g%3E%3Cg transform=%22translate%28120.7 8.0%29 rotate%28-35 9.8 9.8%29 scale%280.82%29%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3Cpath d=%22M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%226.2%22/%3E%3C/g%3E%3Cg transform=%22translate%28161.1 8.4%29 rotate%28-35 11.8 11.8%29 scale%280.98%29%22%3E%3Crect x=%224%22 y=%223.5%22 width=%2213%22 height=%225%22 rx=%221.5%22/%3E%3Cpath d=%22M17 6h2.5v4.5H11v3%22/%3E%3Crect x=%229.5%22 y=%2213.5%22 width=%223%22 height=%227%22 rx=%221%22/%3E%3C/g%3E%3Cg transform=%22translate%2829.1 48.0%29 rotate%2835 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M5 4h10v4M5 4v16h10v-4%22/%3E%3Cpath d=%22M15 8h4v8h-4M17 8v-3M17 16v3%22/%3E%3C/g%3E%3Cg transform=%22translate%2864.9 43.2%29 rotate%28-35 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M9 3.5l2.5 7M15 3.5l-2.5 7%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%221.6%22/%3E%3Cpath d=%22M11 13.3L8 20.5M13 13.3l3 7.2%22/%3E%3C/g%3E%3Cg transform=%22translate%2899.6 42.5%29 rotate%28-20 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M5 19l1-4.5L16 4.5 19.5 8 9.5 18z%22/%3E%3Cpath d=%22M14 6.5l3.5 3.5%22/%3E%3C/g%3E%3Cg transform=%22translate%28137.4 45.0%29 rotate%2810 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M4 20l4.5-4.5%22/%3E%3Cpath d=%22M8.5 15.5l2-2 8-8 1.5 1.5-8 8-2 2z%22/%3E%3Cpath d=%22M7 14l3 3%22/%3E%3C/g%3E%3Cg transform=%22translate%28180.3 45.4%29 rotate%2835 11.8 11.8%29 scale%280.98%29%22%3E%3Crect x=%222.5%22 y=%229%22 width=%2219%22 height=%226%22 rx=%221.5%22/%3E%3Crect x=%229.5%22 y=%2210.5%22 width=%225%22 height=%223%22 rx=%221.5%22/%3E%3Cpath d=%22M12 10.5v3%22/%3E%3C/g%3E%3Cg transform=%22translate%28-9.7 45.4%29 rotate%2835 11.8 11.8%29 scale%280.98%29%22%3E%3Crect x=%222.5%22 y=%229%22 width=%2219%22 height=%226%22 rx=%221.5%22/%3E%3Crect x=%229.5%22 y=%2210.5%22 width=%225%22 height=%223%22 rx=%221.5%22/%3E%3Cpath d=%22M12 10.5v3%22/%3E%3C/g%3E%3Cg transform=%22translate%288.2 85.2%29 rotate%2810 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M14.5 3.5l6 6-7 7-6-6z%22/%3E%3Cpath d=%22M7.5 10.5L3.5 20.5l10-4%22/%3E%3C/g%3E%3Cg transform=%22translate%2843.9 86.2%29 rotate%2850 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M3 15.5h13.5l4-5H8z%22/%3E%3Cpath d=%22M5 15.5l1 2 1-2 1 2 1-2 1 2 1-2 1 2 1-2 1 2 1-2%22/%3E%3Cpath d=%22M16.5 10.5v-3h4v3%22/%3E%3C/g%3E%3Cg transform=%22translate%2886.4 84.1%29 rotate%28-20 9.8 9.8%29 scale%280.82%29%22%3E%3Cpath d=%22M8 3.5h8l1.5 3h-11z%22/%3E%3Cpath d=%22M10 6.5v14h4v-14%22/%3E%3Cpath d=%22M10 10l4-1M10 13l4-1M10 16l4-1%22/%3E%3C/g%3E%3Cg transform=%22translate%28120.0 80.7%29 rotate%2850 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M5 20l8.5-8.5%22/%3E%3Cpath d=%22M11.5 6.5l3-3 6 6-3 3-1.5-1.5-2 2-3.5-3.5 2-2z%22/%3E%3C/g%3E%3Cg transform=%22translate%28160.6 87.2%29 rotate%2810 9.8 9.8%29 scale%280.82%29%22%3E%3Ccircle cx=%2210%22 cy=%2211%22 r=%226%22/%3E%3Ccircle cx=%2210%22 cy=%2211%22 r=%222%22/%3E%3Cpath d=%22M16 15.5h5.5v2H14%22/%3E%3C/g%3E%3Cg transform=%22translate%2830.9 125.2%29 rotate%28-35 9.8 9.8%29 scale%280.82%29%22%3E%3Cpath d=%22M6 18l9.5-9.5%22/%3E%3Cpath d=%22M15 4.5a3.5 3.5 0 0 1 4.5 4.5l-2-.3-1.5 1.5%22/%3E%3Cpath d=%22M4 16.5a2.5 2.5 0 0 0 3.5 3.5%22/%3E%3C/g%3E%3Cg transform=%22translate%2864.4 125.6%29 rotate%2810 9.8 9.8%29 scale%280.82%29%22%3E%3Crect x=%222.5%22 y=%228.5%22 width=%2219%22 height=%227%22 rx=%221%22/%3E%3Cpath d=%22M6 8.5v3M9.5 8.5v2M13 8.5v3M16.5 8.5v2M20 8.5v3%22/%3E%3C/g%3E%3Cg transform=%22translate%28106.1 121.6%29 rotate%28-35 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M12 3.5l7.4 4.25v8.5L12 20.5l-7.4-4.25v-8.5z%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3C/g%3E%3Cg transform=%22translate%28141.0 122.9%29 rotate%28-8 11.8 11.8%29 scale%280.98%29%22%3E%3Cpath d=%22M15.5 4.5a4.2 4.2 0 0 0-5.2 5.4L4 16.2 7.8 20l6.3-6.3a4.2 4.2 0 0 0 5.4-5.2l-2.6 2.6-2.6-.7-.7-2.6z%22/%3E%3C/g%3E%3Cg transform=%22translate%28176.7 121.2%29 rotate%2810 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M4 7.5h11v5H4z%22/%3E%3Cpath d=%22M15 9h4.5M19.5 9l1.5.5-1.5.5%22/%3E%3Cpath d=%22M7 12.5l-1.5 7h4l1-7%22/%3E%3C/g%3E%3Cg transform=%22translate%28-13.3 121.2%29 rotate%2810 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M4 7.5h11v5H4z%22/%3E%3Cpath d=%22M15 9h4.5M19.5 9l1.5.5-1.5.5%22/%3E%3Cpath d=%22M7 12.5l-1.5 7h4l1-7%22/%3E%3C/g%3E%3Cg transform=%22translate%287.0 162.4%29 rotate%28-35 9.8 9.8%29 scale%280.82%29%22%3E%3Crect x=%223%22 y=%229%22 width=%2218%22 height=%2210%22 rx=%221.5%22/%3E%3Cpath d=%22M9 9V6.5h6V9M3 13h18M10.5 13v2h3v-2%22/%3E%3C/g%3E%3Cg transform=%22translate%2846.9 161.1%29 rotate%2835 9.8 9.8%29 scale%280.82%29%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3Cpath d=%22M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%226.2%22/%3E%3C/g%3E%3Cg transform=%22translate%2881.4 159.3%29 rotate%2835 11.8 11.8%29 scale%280.98%29%22%3E%3Crect x=%224%22 y=%223.5%22 width=%2213%22 height=%225%22 rx=%221.5%22/%3E%3Cpath d=%22M17 6h2.5v4.5H11v3%22/%3E%3Crect x=%229.5%22 y=%2213.5%22 width=%223%22 height=%227%22 rx=%221%22/%3E%3C/g%3E%3Cg transform=%22translate%28122.7 160.5%29 rotate%2810 9.8 9.8%29 scale%280.82%29%22%3E%3Cpath d=%22M5 4h10v4M5 4v16h10v-4%22/%3E%3Cpath d=%22M15 8h4v8h-4M17 8v-3M17 16v3%22/%3E%3C/g%3E%3Cg transform=%22translate%28163.1 157.2%29 rotate%2850 10.8 10.8%29 scale%280.9%29%22%3E%3Cpath d=%22M9 3.5l2.5 7M15 3.5l-2.5 7%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%221.6%22/%3E%3Cpath d=%22M11 13.3L8 20.5M13 13.3l3 7.2%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
.main.chatmain{position:relative;isolation:isolate;background:var(--chatbg)}
.main.chatmain.wp-tools{background-image:var(--wp-tools);background-size:190px 190px;background-repeat:repeat}
.main.chatmain.wp-plain{background-image:none}
.wplayer{position:absolute;inset:0;z-index:-1;background-size:cover;background-position:center;pointer-events:none}
.wplayer::after{content:"";position:absolute;inset:0;background:var(--chatbg);opacity:var(--wpdim,.25)}
.wplayer.fade{animation:wpfade 1.1s cubic-bezier(.2,.7,.2,1) both}
@keyframes wpfade{from{opacity:0;transform:scale(1.04);filter:blur(10px)}to{opacity:1;transform:none;filter:none}}
.main.chatmain .thead,.main.chatmain .compose{position:relative;z-index:1}
.main.chatmain .stream{background:none}
.wpsheet{gap:14px}
.wpopts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.wpopt{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--muted)}
.wpopt .wpv{width:100%;aspect-ratio:3/4;border-radius:12px;background:var(--chatbg);background-size:120px 120px;box-shadow:0 0 0 .5px var(--rule) inset;display:grid;place-items:center;color:var(--muted);overflow:hidden;background-position:center}
.wpopt .wpv.tools{background-image:var(--wp-tools)}
.wpopt .wpv.photo{background-size:cover}
.wpopt .wpv svg.i{width:26px;height:26px}
.wpopt[aria-pressed="true"]{color:var(--cobalt)}
.wpopt[aria-pressed="true"] .wpv{box-shadow:0 0 0 2.5px var(--cobalt)}
.wpdimrow{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.wpdimrow input{flex:1;accent-color:var(--cobalt)}
.wpdimrow svg.i{width:18px;height:18px}
@media (prefers-reduced-motion:reduce){*,*::before{animation:none!important;transition:none!important}}

/* phone */
@media (max-width:860px){
  .app,.app.with-drawer,.app.wide-main,.app.wide-main.with-drawer{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}
  .rail{grid-row:3;flex-direction:row;justify-content:space-around;padding:6px max(8px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));gap:0;border-right:0;border-top:1px solid var(--rule);background:var(--glass);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}
  .rail .mark,.rail .me{display:none}
  .navb{width:84px}
  .lines,.main,.boardwrap,.teamwrap,.drawer{grid-column:1;grid-row:2}
  .lines{border-right:0}
  .app.in-thread .lines{display:none}
  .app:not(.in-thread) .main.chatmain{display:none}
  .back{display:grid}
  .drawer{position:fixed;inset:0;z-index:40;padding-top:env(safe-area-inset-top,0px);border:0}
  .lines-head,.seg-label{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
  .list{padding-left:max(8px,env(safe-area-inset-left,0px));padding-right:max(8px,env(safe-area-inset-right,0px))}
  .search{margin-left:max(16px,env(safe-area-inset-left,0px));margin-right:max(16px,env(safe-area-inset-right,0px))}
  .thead,.compose,.stream{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
  .compose{padding-bottom:8px}
  .knotbtn span{display:none}
  .knotbtn{width:40px;padding:0;justify-content:center}
  .hint{display:none}
  .bhead{padding:16px max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px))}
  .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .chip{flex:none}
  .board{grid-template-columns:repeat(4,minmax(82vw,1fr));scroll-snap-type:x mandatory;padding:6px max(16px,env(safe-area-inset-right,0px)) 20px max(16px,env(safe-area-inset-left,0px))}
  .col{scroll-snap-align:center}
  .teamwrap{padding:18px max(16px,env(safe-area-inset-right,0px)) 24px max(16px,env(safe-area-inset-left,0px))}
}

/* sign-in: visible errors + busy state */
.toast{z-index:200!important}
.oberr{margin:0;width:100%;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--bad) 12%,var(--surface));color:var(--bad);font-size:14px;line-height:1.35;text-align:left}
.fab.obgo.busy{opacity:.85}
.spin{width:20px;height:20px;border-radius:50%;border:2.5px solid rgba(255,255,255,.45);border-top-color:#fff;animation:spin .8s linear infinite}

/* ===================== round 7: composer, media, indicators, ticks ===================== */
/* composer: emoji + attach inside the input pill */
.crow{gap:6px;align-items:flex-end}
.inbox{flex:1;min-width:0;display:flex;align-items:flex-end;background:var(--surface);border:1px solid var(--rule);border-radius:22px;padding:0 4px;transition:border-color .15s}
.inbox:focus-within{border-color:var(--cobalt)}
.inbox textarea,.crow .inbox textarea{flex:1;min-width:0;border:0!important;background:none!important;border-radius:0!important;padding:10px 4px!important;box-shadow:none!important;outline:none;min-height:40px}
.inbtn{width:36px;height:40px;flex:none;display:grid;place-items:center;color:var(--muted);border-radius:50%}
.inbtn:hover{color:var(--cobalt)}
.inbtn svg.i{width:21px;height:21px}
.crow .knotbtn{align-self:flex-end;margin-bottom:2px}
.crow .sendbtn,.crow .micbtn{align-self:flex-end}
.crow.has-text .micbtn{display:none}
/* emoji keyboard */
.emojipanel{margin-top:8px;background:var(--surface);border-radius:16px;border:1px solid var(--rule);overflow:hidden;display:flex;flex-direction:column;height:min(260px,38vh)}
.epgrid{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(40px,1fr));padding:6px;overscroll-behavior:contain}
.ep{height:40px;font-size:26px;border-radius:10px;line-height:1}
.ep:hover,.ep:active{background:var(--fill)}
.eptabs{display:flex;align-items:center;gap:2px;padding:4px 6px;border-top:1px solid var(--rule);overflow-x:auto;scrollbar-width:none}
.ept{flex:none;width:36px;height:32px;border-radius:9px;font-size:19px;display:grid;place-items:center;opacity:.55;color:var(--muted)}
.ept svg.i{width:18px;height:18px}
.ept.on{opacity:1;background:var(--fill)}
.ept.del{margin-left:auto;opacity:1}
/* voice draft + recording keep */
.vdraft{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--rule);border-radius:18px;padding:5px 6px 5px 6px;margin-bottom:6px}
.vdplay{width:34px;height:34px;border-radius:50%;background:var(--cobalt);color:#fff;display:grid;place-items:center;flex:none}
.vdplay svg.i{width:16px;height:16px}
.vdbars{flex:1;min-width:0;height:24px;display:flex;align-items:center;gap:2px;overflow:hidden}
.vdbars i{flex:1;min-width:2px;max-width:4px;border-radius:2px;background:var(--cobalt);opacity:.55}
.vddur{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.reckeep{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:var(--cobalt);background:var(--cobalt-soft);flex:none}
.reckeep svg.i{width:18px;height:18px}
.tx.vcap{display:block;margin-top:4px}
/* attach menu */
.attachmenu{width:224px;padding:6px}
.attachmenu>button{gap:12px;padding:7px 8px;font-size:15px}
.aic{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:#fff;flex:none}
.aic svg.i{width:17px;height:17px;color:#fff!important}
.a-photo{background:#7B61FF}.a-cam{background:#FF3B6B}.a-doc{background:#2D8CFF}.a-loc{background:#1FA855}.a-con{background:#F59E0B}
/* media bubbles */
.msg.rich .strip{padding:4px 4px 5px}
.msg.rich .strip .tx.mcap{display:block;padding:5px 7px 0}
.msg.rich .strip .mt{margin-right:6px}
.mbox{position:relative;display:grid;gap:3px;width:min(260px,68vw);border-radius:13px;overflow:hidden}
.mbox.n2{grid-template-columns:1fr 1fr}
.mbox.n3{grid-template-columns:1fr 1fr}
.mbox.n3 .mcell:first-child{grid-column:1/-1}
.mbox.n4{grid-template-columns:1fr 1fr}
.mcell{position:relative;background:var(--fill);aspect-ratio:1;overflow:hidden;cursor:pointer;max-width:100%}
.mbox.n1 .mcell{aspect-ratio:4/3}
.mcell img,.mcell video{width:100%;height:100%;object-fit:cover;display:block}
.mcell img.blur{filter:blur(10px);transform:scale(1.08)}
.playo{position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;display:grid;place-items:center;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.playo svg.i{width:20px;height:20px;margin-left:3px}
.vdurb{position:absolute;left:6px;bottom:6px;font-size:11px;font-weight:600;color:#fff;background:rgba(0,0,0,.45);padding:1px 6px;border-radius:6px}
.moreo{position:absolute;inset:0;display:grid;place-items:center;background:rgba(0,0,0,.45);color:#fff;font-size:24px;font-weight:600}
.upo{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:rgba(0,0,0,.28);color:#fff;font-size:12px;font-weight:600}
.spin{width:20px;height:20px;border-radius:50%;border:2.5px solid rgba(255,255,255,.45);border-top-color:#fff;animation:spin .8s linear infinite;display:inline-block;flex:none}
.spin.dark{border-color:color-mix(in srgb,var(--muted) 35%,transparent);border-top-color:var(--cobalt)}
.spin.big{width:34px;height:34px;border-width:3px}
@keyframes spin{to{transform:rotate(360deg)}}
.fcard{display:flex;align-items:center;gap:10px;width:min(260px,68vw);padding:8px;border-radius:12px;background:color-mix(in srgb,var(--fill) 70%,transparent);text-align:left;color:inherit}
.mine .fcard{background:rgba(255,255,255,.16)}
.fic{width:40px;height:46px;border-radius:7px;background:var(--cobalt);color:#fff;display:grid;place-items:center;font-size:10.5px;font-weight:800;letter-spacing:.02em;flex:none}
.fic svg.i{width:20px;height:20px}
.fnm{flex:1;min-width:0;display:flex;flex-direction:column}
.fnm b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fnm span{font-size:12px;opacity:.7}
.fcard>svg.i{width:16px;height:16px;transform:rotate(90deg);opacity:.6}
/* contact card */
.ccard{width:min(250px,66vw);display:flex;flex-direction:column}
.cchead{display:flex;align-items:center;gap:10px;padding:6px 6px 8px}
.ccx{display:flex;flex-direction:column;min-width:0}
.ccx b{font-size:15px;font-weight:600}
.ccx span{font-size:12.5px;opacity:.75}
.ccacts{display:flex;border-top:1px solid color-mix(in srgb,currentColor 18%,transparent)}
.ccacts>*{flex:1;text-align:center;padding:8px 4px 4px;font-size:14px;font-weight:600;color:var(--cobalt);text-decoration:none}
.mine .ccacts>*{color:#fff}
.ccacts>*+*{border-left:1px solid color-mix(in srgb,currentColor 18%,transparent)}
/* location */
.lcard{display:flex;flex-direction:column;width:min(260px,68vw);border-radius:12px;overflow:hidden;color:inherit;text-decoration:none}
.lmap{position:relative;height:140px;background-color:#E5E3DF;max-width:100%}
.lmap.big{height:180px;border-radius:14px}
.lpin{position:absolute;left:50%;top:50%;width:34px;height:34px;margin:-34px 0 0 -17px;color:#E5383B;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}
.lpin svg.i{width:34px;height:34px;fill:#E5383B;stroke:#fff;stroke-width:1.4}
.lmeta{display:flex;flex-direction:column;padding:6px 8px 2px}
.lmeta b{font-size:14px;font-weight:600}
.lmeta span{font-size:12px;opacity:.75;font-variant-numeric:tabular-nums}
.lmeta i{font-size:9.5px;opacity:.5;font-style:normal}
.locsheet{gap:12px}
.locwait{display:flex;align-items:center;gap:10px;color:var(--muted);padding:20px 0}
.locprev{display:flex;flex-direction:column;gap:10px}
.primary.wide{width:100%;justify-content:center}
/* media preview + viewer */
.mprev,.viewer{background:#000;color:#fff;z-index:95}
.mp-top,.vw-top{display:flex;align-items:center;gap:8px;padding:10px 12px;position:relative;z-index:2}
.mp-top .grow,.vw-top .grow{flex:1}
.mp-main,.vw-main{flex:1;min-height:0;display:grid;place-items:center;padding:6px}
.mp-main img,.mp-main video,.vw-main img,.vw-main video{max-width:100%;max-height:100%;object-fit:contain;border-radius:6px}
.mp-strip{display:flex;gap:6px;padding:6px 12px;overflow-x:auto;scrollbar-width:none}
.mp-th{flex:none;width:52px;height:52px;border-radius:9px;overflow:hidden;border:2px solid transparent;background:#222;display:grid;place-items:center;color:#fff;padding:0}
.mp-th.on{border-color:#1FA855}
.mp-th img,.mp-th video{width:100%;height:100%;object-fit:cover}
.mp-th.add{border:1.5px dashed rgba(255,255,255,.4)}
.mp-bot{display:flex;align-items:center;gap:10px;padding:8px 12px calc(12px + env(safe-area-inset-bottom,0px))}
.vw-count{font-size:13px;opacity:.8;font-variant-numeric:tabular-nums}
.vw-nav{position:absolute;top:50%;width:40px;height:40px;margin-top:-20px;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;display:grid;place-items:center;z-index:2}
.vw-nav.l{left:10px}.vw-nav.r{right:10px}
.vw-cap{padding:10px 16px calc(14px + env(safe-area-inset-bottom,0px));text-align:center;font-size:15px}
/* ticks */
.tk{display:inline-flex;vertical-align:-3px;margin-left:3px;color:currentColor;opacity:.8}
.tk svg.i{width:16px;height:16px;stroke-width:2}
.mine .tk.read{color:#9EE7FF;opacity:1}
.tk.read{color:#34B7F1;opacity:1}
.tk.pend svg.i{width:13px;height:13px}
.lineitem .pv{display:flex;align-items:center;gap:2px}
.lineitem .pv .tk{color:var(--muted);margin:0 2px 0 0;flex:none}
.lineitem .pv .tk.read{color:#34B7F1}
.pvt{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pvt.typing,#thead-sub.typing{color:var(--ok);font-weight:600}
.msg.pending .strip{opacity:.92}
/* typing bubble */
.typingrow[hidden]{display:none!important}
.typingrow .tyname:empty{display:none}
.tybub{display:flex;align-items:center;gap:6px;padding:11px 14px!important;background:var(--surface)!important}
.dots{display:flex;gap:4px}
.dots i{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:tyb 1.2s infinite ease-in-out}
.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}
@keyframes tyb{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
.tymic{display:none;color:var(--ok)}
.tymic svg.i{width:16px;height:16px}
.typingrow.rec .tymic{display:grid}
.typingrow.rec .dots i{background:var(--ok)}
.loadmore{display:block;margin:6px auto 10px;padding:6px 12px;border-radius:999px;background:var(--surface);color:var(--cobalt);font-size:13px;font-weight:600;box-shadow:0 1px 1px rgba(0,0,0,.06)}
/* three-button dock */
@media (max-width:860px){ .rail{gap:10px!important} }
@media (prefers-reduced-motion:reduce){ .dots i,.spin{animation:none} }
.lineitem .pv:has(.pvt.typing) .tk{display:none}

/* =====================================================================
   iOS pass — Apple system colors, hairlines, large titles, glass bars
   ===================================================================== */
:root{
  --paper:#F2F2F7; --surface:#FFFFFF; --raised:#FFFFFF; --ink:#000000; --muted:#8A8A8E; --fill:rgba(118,118,128,.12);
  --rule:rgba(60,60,67,.18); --sep:rgba(60,60,67,.29); --hair:.5px;
  --cobalt:#007AFF; --cobalt-soft:rgba(0,122,255,.12); --knot:#007AFF; --knot-soft:rgba(0,122,255,.12);
  --bubble:#E9E9EB; --ok:#34C759; --bad:#FF3B30; --warn:#FF9500; --on-accent:#FFFFFF;
  --c-todo:#8E8E93; --c-doing:#007AFF; --c-review:#FF9500; --c-done:#34C759;
  --glass:rgba(249,249,249,.94); --bar:rgba(249,249,249,.9); --glass-solid:#F9F9F9;
  --chatbg:#EFEFF4;
  --f-display:-apple-system,BlinkMacSystemFont,"SF Pro Display",system-ui,Roboto,"Segoe UI",sans-serif;
  --f-body:-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,Roboto,"Segoe UI",sans-serif;
  --shadow:0 0 0 var(--hair) var(--rule); --shadow-lg:0 10px 30px rgba(0,0,0,.12),0 0 0 var(--hair) rgba(0,0,0,.06);
  --ease:cubic-bezier(.25,.1,.25,1);
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --paper:#000000; --surface:#1C1C1E; --raised:#2C2C2E; --ink:#FFFFFF; --muted:#8D8D93; --fill:rgba(118,118,128,.24);
  --rule:rgba(84,84,88,.45); --sep:rgba(84,84,88,.65);
  --cobalt:#0A84FF; --cobalt-soft:rgba(10,132,255,.18); --knot:#0A84FF; --knot-soft:rgba(10,132,255,.18);
  --bubble:#262628; --ok:#30D158; --bad:#FF453A; --warn:#FF9F0A;
  --c-todo:#8E8E93; --c-doing:#0A84FF; --c-review:#FF9F0A; --c-done:#30D158;
  --glass:rgba(28,28,30,.94); --bar:rgba(22,22,24,.9); --glass-solid:#1C1C1E; --chatbg:#0B0B0D; color-scheme:dark}}
:root[data-theme="dark"]{
  --paper:#000000; --surface:#1C1C1E; --raised:#2C2C2E; --ink:#FFFFFF; --muted:#8D8D93; --fill:rgba(118,118,128,.24);
  --rule:rgba(84,84,88,.45); --sep:rgba(84,84,88,.65);
  --cobalt:#0A84FF; --cobalt-soft:rgba(10,132,255,.18); --knot:#0A84FF; --knot-soft:rgba(10,132,255,.18);
  --bubble:#262628; --ok:#30D158; --bad:#FF453A; --warn:#FF9F0A;
  --c-todo:#8E8E93; --c-doing:#0A84FF; --c-review:#FF9F0A; --c-done:#30D158;
  --glass:rgba(28,28,30,.94); --bar:rgba(22,22,24,.9); --glass-solid:#1C1C1E; --chatbg:#0B0B0D; color-scheme:dark}

body{font-family:var(--f-body);font-size:15px;letter-spacing:-.01em;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
svg.i{stroke-width:1.75}
button{-webkit-tap-highlight-color:transparent}
button:active{opacity:.6}
.fab:active,.roundgo:active,.sendbtn:active,.micbtn:active{opacity:1}

/* ---- large titles + glass navigation bars ---- */
.h1{font:700 32px/1.1 var(--f-display);letter-spacing:.012em}
.toprow{min-height:44px}
.lines-head.toprow{padding:10px 16px 4px}
.thead,.dhead,.fhead,.compose{background:var(--bar)!important;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}
.thead{border-bottom:var(--hair) solid var(--sep)!important;min-height:50px;padding:5px 8px!important}
.thead .t b{font:600 16px var(--f-body);letter-spacing:-.02em}
.thead .t span{font-size:12.5px;color:var(--muted)}
.thead .glyph,.thead .av.lg{width:36px!important;height:36px!important}
.compose{border-top:var(--hair) solid var(--sep)!important}
.iconbtn{color:var(--cobalt);border-radius:50%}
.iconbtn:hover{background:var(--fill)}
.thead .iconbtn svg.i{width:22px;height:22px}
.back svg.i{width:24px;height:24px;stroke-width:2.2}

/* ---- search field (iOS) ---- */
.search{background:var(--fill)!important;border:0!important;border-radius:10px!important;height:36px;margin:2px 16px 8px!important;padding:0 8px!important;color:var(--muted)}
.search input{font-size:16px;padding:0!important}
.search svg.i{width:17px;height:17px}

/* ---- chat list: edge-to-edge rows, inset hairline separators ---- */
.lines{background:var(--surface)}
.list{padding:0 0 110px!important}
.lineitem{position:relative;border-radius:0!important;padding:9px 16px!important;grid-template-columns:52px minmax(0,1fr) auto!important;gap:12px!important;box-shadow:none!important;border:0!important;transform:none!important}
.lineitem::after{content:"";position:absolute;left:80px;right:0;bottom:0;height:var(--hair);background:var(--sep)}
.lineitem:last-child::after{display:none}
.lineitem:hover{background:var(--fill)}
.lineitem[aria-current="true"]{background:color-mix(in srgb,var(--fill) 80%,transparent)!important}
.lineitem .glyph,.lineitem .av.lg,.lineitem .tgwrap>.glyph{width:52px!important;height:52px!important;font-size:20px!important}
.lineitem .nm{font:600 16px var(--f-body);letter-spacing:-.02em}
.lineitem .pv{font-size:14.5px;color:var(--muted);margin-top:1px}
.lineitem .meta{font-size:13px;color:var(--muted)}
.lineitem .meta .mono{font-family:var(--f-body);font-variant-numeric:tabular-nums}
.lineitem .badge{width:auto!important;min-width:20px!important;height:20px!important;padding:0 6px!important;font:600 12.5px/20px var(--f-body)!important;background:var(--cobalt)!important;color:#fff!important;border-radius:10px!important}
.lineitem .badge:not(.at){font-size:0!important;min-width:11px!important;width:11px!important;height:11px!important;padding:0!important}
.seg-label{font:400 13px var(--f-body)!important;color:var(--muted);text-transform:uppercase;letter-spacing:.02em;padding:18px 16px 6px!important}

/* ---- grouped lists (settings, updates, calls) ---- */
.teamwrap{background:var(--paper)}
.ulist,.sgroup,.profcard,.tlrows{background:var(--surface)!important;border-radius:12px!important;box-shadow:none!important;border:0!important;overflow:hidden}
.srow{min-height:44px;padding:6px 16px!important;position:relative}
.srow+.srow{border-top:0!important}
.srow+.srow::before{content:"";position:absolute;top:0;left:58px;right:0;height:var(--hair);background:var(--sep)}
.sic{width:29px!important;height:29px!important;border-radius:7px!important}
.stx b{font-weight:400!important;font-size:16px!important}
.stx span{font-size:13px}
.sinp{background:transparent!important;color:var(--muted);font-size:16px!important;padding:6px 0!important}
.sinp:focus{box-shadow:none!important;color:var(--ink)}
.switch{width:51px!important;height:31px!important;border-radius:16px!important;background:rgba(120,120,128,.16)}
.switch i{width:27px!important;height:27px!important;top:2px!important;left:2px!important;box-shadow:0 3px 8px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.16)!important}
.switch.on{background:var(--ok)!important}
.switch.on i{transform:translateX(20px)!important}
.urow{padding:8px 16px!important;border-radius:0!important;position:relative}
.urow+.urow::before{content:"";position:absolute;top:0;left:72px;right:0;height:var(--hair);background:var(--sep)}
.profcard{padding:14px 16px!important}

/* ---- segmented controls ---- */
.segmini,.vtoggle,.segs{background:var(--fill)!important;border-radius:9px!important;padding:2px!important}
.segmini button,.vtoggle button,.segs button{border-radius:7px!important;font-weight:500!important;font-size:13px!important;color:var(--ink)!important;border:0!important;background:transparent!important}
.segmini button[aria-pressed="true"],.vtoggle button[aria-pressed="true"],.segs button[aria-pressed="true"]{background:var(--raised)!important;box-shadow:0 3px 8px rgba(0,0,0,.12),0 3px 1px rgba(0,0,0,.04)!important;font-weight:600!important;transform:none!important}
.vtoggle button[aria-pressed="true"]{color:var(--cobalt)!important}

/* ---- chat bubbles: iMessage style with tails ---- */
.main.chatmain{background-color:var(--chatbg)}
.strip{border-radius:18px!important;padding:7px 12px 6px!important;box-shadow:none!important;font-size:16px;line-height:1.32;letter-spacing:-.015em}
.msg:not(.mine) .strip{background:var(--surface)!important;color:var(--ink)}
.mine .strip{background:var(--cobalt)!important;color:#fff!important}
.msg.cont .strip,.msg.mine.cont .strip{border-radius:18px!important}
.msg:not(.cont):not(.mine) .strip{border-top-left-radius:5px!important}
.msg.mine:not(.cont) .strip{border-top-right-radius:5px!important}
.msg:not(.cont):not(.mine):not(.rich) .strip::before,.msg.mine:not(.cont):not(.rich) .strip::before{content:"";position:absolute;top:0;width:9px;height:12px;background:inherit}
.msg:not(.cont):not(.mine):not(.rich) .strip::before{left:-6px;clip-path:polygon(100% 0,0 0,100% 100%)}
.msg.mine:not(.cont):not(.rich) .strip::before{right:-6px;clip-path:polygon(0 0,100% 0,0 100%)}
.msg{margin-bottom:2px!important}
.msg:not(.cont){margin-top:8px!important}
.who{font-size:13px!important;font-weight:600;margin-left:12px!important}
.mt{font-size:11px!important;opacity:.55!important;letter-spacing:0}
.mine .mt{opacity:.75!important}
.day{background:color-mix(in srgb,var(--surface) 88%,transparent)!important;color:var(--muted)!important;font:600 12px var(--f-body)!important;padding:4px 10px!important;border-radius:8px!important;box-shadow:none!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.e2enote{border-radius:8px!important;font-size:12px!important}
.quote{border-radius:6px!important}
.react{border:var(--hair) solid var(--rule)!important;box-shadow:0 1px 2px rgba(0,0,0,.08)!important}
.tasktag{border:var(--hair) solid var(--rule)!important;box-shadow:none!important;border-radius:10px!important;background:var(--surface)!important}
.fwdbtn{background:color-mix(in srgb,var(--surface) 75%,transparent)!important;opacity:.85}
.tybub{background:var(--surface)!important}

/* ---- composer (iMessage bar) ---- */
.compose{padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px))!important}
.inbox{border:var(--hair) solid var(--sep)!important;border-radius:20px!important;background:var(--surface)!important;min-height:36px}
.inbox:focus-within{border-color:var(--sep)!important}
.inbox textarea{font-size:16px!important;padding:8px 4px!important;min-height:36px!important}
.inbtn{height:36px;width:34px;color:var(--muted)}
.inbtn svg.i{width:22px;height:22px}
.sendbtn,.micbtn{width:36px!important;height:36px!important;box-shadow:none!important;margin-bottom:0}
.sendbtn svg.i,.micbtn svg.i{width:20px!important;height:20px!important;stroke-width:2.2}
.knotbtn{width:34px!important;height:36px!important;color:var(--muted)}
.recbar{border:var(--hair) solid var(--sep)!important;border-radius:20px!important;box-shadow:none!important}

/* ---- menus (iOS context menus) ---- */
.popmenu{background:color-mix(in srgb,var(--surface) 86%,transparent)!important;-webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px);border:0!important;border-radius:14px!important;box-shadow:0 12px 40px rgba(0,0,0,.18),0 0 0 var(--hair) rgba(0,0,0,.08)!important;padding:0!important;overflow:hidden;min-width:230px}
.popmenu>button{flex-direction:row-reverse;justify-content:space-between;border-radius:0!important;padding:11px 16px!important;font-size:16px!important;font-weight:400!important;min-height:44px}
.popmenu>button+button{box-shadow:0 calc(-1 * var(--hair)) 0 var(--sep)}
.popmenu>button svg.i{color:var(--ink)!important;width:20px;height:20px}
.attachmenu>button{flex-direction:row;justify-content:flex-start;gap:14px}
.holdmenu .acts{border-radius:14px!important;box-shadow:0 12px 40px rgba(0,0,0,.18),0 0 0 var(--hair) rgba(0,0,0,.08)!important;background:color-mix(in srgb,var(--surface) 90%,transparent)!important;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px)}
.holdmenu .emojis{box-shadow:0 12px 40px rgba(0,0,0,.16),0 0 0 var(--hair) rgba(0,0,0,.08)!important;background:color-mix(in srgb,var(--surface) 92%,transparent)!important;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px)}
.chatmenu .pmtask{border-radius:0!important;padding:10px 16px!important}
.pmlabel{padding:10px 16px 6px!important}
.pmsep{margin:0!important;height:8px!important;background:var(--fill)!important}

/* ---- sheets & modals ---- */
.modal{border-radius:14px!important;box-shadow:0 20px 60px rgba(0,0,0,.25)!important}
.scrim{background:rgba(0,0,0,.4)!important}
.scrim.clear{background:transparent!important}

/* ---- buttons ---- */
.primary{border-radius:12px!important;box-shadow:none!important;font-weight:600;font-size:16px;height:44px}
.ghost{background:var(--fill)!important;color:var(--cobalt)!important;border:0!important;box-shadow:none!important;border-radius:10px!important;font-weight:600}
.roundgo{box-shadow:none!important}
.ib{background:var(--fill)!important;color:var(--cobalt)!important}
.toast{background:rgba(30,30,32,.92)!important;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:14px!important;font-size:14px!important}

/* ---- floating buttons (crisp, solid iOS blue) ---- */
.fab{background:var(--cobalt)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:0!important;border-radius:16px!important;box-shadow:0 4px 14px color-mix(in srgb,var(--cobalt) 35%,transparent),0 1px 3px rgba(0,0,0,.12)!important}
.fab svg.i{stroke-width:2}
.fab.mini{background:var(--surface)!important;color:var(--cobalt)!important;box-shadow:0 2px 10px rgba(0,0,0,.12),0 0 0 var(--hair) var(--rule)!important}

/* ---- bottom buttons: iOS glass ---- */
@media (max-width:860px){
  .navb{background:var(--glass)!important;-webkit-backdrop-filter:saturate(180%) blur(24px)!important;backdrop-filter:saturate(180%) blur(24px)!important;box-shadow:0 0 0 var(--hair) var(--rule),0 6px 20px rgba(0,0,0,.08)!important;color:var(--ink)!important}
  .navb[aria-current="true"]{background:var(--glass)!important;color:var(--cobalt)!important}
  .navb[aria-current="true"] .pill svg.i{stroke-width:2.2}
  .navb[aria-current="true"]::after{content:"";position:absolute;inset:4px;border-radius:999px;background:var(--cobalt-soft);z-index:-1}
  .navb{isolation:isolate}
  .navb .dot{border-color:var(--paper)!important;background:var(--bad)!important}
}
@media (min-width:861px){
  .rail{background:var(--surface)!important;border-right:var(--hair) solid var(--sep)!important}
  .lines{border-right:var(--hair) solid var(--sep)!important}
  .mark{background:var(--cobalt)!important;box-shadow:none!important;border-radius:10px!important}
  .navb[aria-current="true"] .pill{background:var(--cobalt-soft)!important;color:var(--cobalt)!important}
}

/* ---- tasks: flatter, sharper ---- */
.bhead{background:var(--paper)!important;border:0!important}
.col{border-radius:14px!important;box-shadow:none!important;background:color-mix(in srgb,var(--c) 7%,var(--fill))!important}
.card{border-radius:12px!important;box-shadow:0 0 0 var(--hair) var(--rule)!important;border:0!important}
.card:hover{box-shadow:0 0 0 var(--hair) var(--rule),0 4px 14px rgba(0,0,0,.08)!important;transform:none!important}
.colpill{font-weight:600!important;border-radius:8px!important}
.trow+.trow{border-top:0!important;box-shadow:0 calc(-1 * var(--hair)) 0 var(--sep) inset}
.drawer{background:var(--paper)!important}
.dhead{border-bottom:var(--hair) solid var(--sep)!important;background:var(--bar)!important}
.subs,.tfiles,.notes,.metabox,.source{background:var(--surface)!important;border-radius:12px!important}
.stbtn{border-radius:8px!important}
.ichip{background:var(--fill)!important}
.person{border-radius:12px!important;box-shadow:none!important}

/* ---- forward / pickers (full-screen lists) ---- */
.fwdview{background:var(--paper)!important}
.fhead{border-bottom:var(--hair) solid var(--sep)!important}
.flist{padding:0 0 100px!important}
.frow{border-radius:0!important;padding:8px 16px!important;position:relative;background:var(--surface)}
.frow+.frow::before{content:"";position:absolute;top:0;left:72px;right:0;height:var(--hair);background:var(--sep)}
.contact{border-radius:0!important}
#onboard,#profsetup,#findc{background:var(--paper)!important}
.obnum,.obcc{box-shadow:none!important;border:var(--hair) solid var(--sep)!important;border-radius:12px!important;background:var(--surface)!important}
.obnum:focus{border-color:var(--cobalt)!important}
.oblogo{border-radius:14px!important}

/* ---- task conversations nested under groups ---- */
.subtoggle{display:inline-flex;align-items:center;gap:3px;height:24px;padding:0 6px 0 7px;border-radius:12px;background:var(--fill);color:var(--muted);font:600 12px var(--f-body);position:relative}
.subtoggle svg.i{width:14px;height:14px}
.subtoggle svg.i:last-child{width:13px;height:13px;transition:transform .2s var(--ease)}
.subtoggle.open{background:var(--cobalt-soft);color:var(--cobalt)}
.subtoggle.open svg.i:last-child{transform:rotate(180deg)}
.subtoggle.has{color:var(--cobalt)}
.tdot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--cobalt);flex:none}
.subtoggle .tdot{position:absolute;top:-2px;right:-2px;box-shadow:0 0 0 2px var(--surface)}
.lineitem .metaicons{gap:6px}
.subgroup{position:relative;background:color-mix(in srgb,var(--fill) 45%,var(--surface));animation:subin .18s var(--ease) both}
@keyframes subin{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.subgroup::before{content:"";position:absolute;left:41px;top:0;bottom:22px;width:1.5px;background:var(--sep);border-radius:1px}
.lineitem.subitem{grid-template-columns:34px minmax(0,1fr) auto!important;padding:7px 16px 7px 58px!important;gap:10px!important}
.lineitem.subitem::before{content:"";position:absolute;left:41px;top:50%;width:12px;height:1.5px;background:var(--sep)}
.lineitem.subitem::after{left:102px!important}
.lineitem.subitem .glyph.tglyph.sm{width:34px!important;height:34px!important}
.lineitem.subitem .glyph svg.i{width:17px;height:17px}
.lineitem.subitem .nm{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lineitem.subitem .pv{font-size:13.5px}
.tglyph.sm{border-radius:50%}
/* header button + back to group */
.subsbtn{width:auto!important;padding:0 8px!important;border-radius:16px!important;gap:4px;display:inline-flex!important;align-items:center;position:relative}
.subsbtn b{font:600 13px var(--f-body)}
.subsbtn .tdot{position:absolute;top:3px;right:3px}
.glyph.mini{width:28px!important;height:28px!important;font-size:12px!important}
.tgwrap .glyph.mini{width:28px!important;height:28px!important}
/* task tag + conversation button under a message */
.tagrow{display:flex;align-items:center;gap:6px;margin-top:3px}
.mine .tagrow{justify-content:flex-end}
.tagrow .tasktag{margin-top:0}
.tagthread{height:26px;padding:0 9px;border-radius:13px;display:inline-flex;align-items:center;gap:4px;background:var(--surface);color:var(--cobalt);box-shadow:0 0 0 var(--hair) var(--rule);position:relative}
.tagthread svg.i{width:15px;height:15px}
.tagthread.on{background:var(--cobalt-soft)}
.tagthread .tdot{position:absolute;top:-2px;right:-2px}
.mlink{color:inherit;text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
.msg:not(.mine) .mlink{color:var(--cobalt);text-decoration:none}
a.iconbtn.hcall{display:grid;place-items:center}

/* =====================================================================
   Message bar — iMessage-style, every control on one 36px baseline
   ===================================================================== */
.compose{padding:7px max(8px,env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px))!important}
.compose .inner{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:6px}
.crow{display:flex!important;align-items:flex-end!important;gap:8px!important;margin:0!important}
.plusbtn{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--fill);color:var(--ink);padding:0}
.plusbtn svg.i{width:20px;height:20px;stroke-width:2.1}
.plusbtn:active{opacity:.6}
.inbox{flex:1;min-width:0;display:flex!important;align-items:flex-end!important;gap:0!important;min-height:36px!important;padding:0 2px 0 0!important;background:var(--surface)!important;border:var(--hair) solid var(--sep)!important;border-radius:18px!important;box-shadow:none!important}
.inbox textarea,.crow .inbox textarea,#composer{flex:1;min-width:0;display:block;margin:0!important;border:0!important;outline:none!important;background:transparent!important;box-shadow:none!important;resize:none;font:400 16px/20px var(--f-body)!important;letter-spacing:-.01em;padding:8px 6px 8px 14px!important;min-height:36px!important;max-height:132px;color:var(--ink)}
#composer::placeholder{color:var(--muted)}
.inbtn{flex:none;width:32px!important;height:36px!important;border-radius:16px!important;display:grid!important;place-items:center;color:var(--muted)!important;padding:0!important;margin:0!important;background:none!important}
.inbtn svg.i{width:21px!important;height:21px!important}
.inbtn.knotbtn[aria-pressed="true"]{color:var(--cobalt)!important}
.inbtn.emobtn{margin-right:-2px!important}
.knotbtn:not(.inbtn){display:none!important}
.sendbtn,.micbtn{flex:none;width:36px!important;height:36px!important;border-radius:50%!important;display:grid!important;place-items:center;background:var(--cobalt)!important;color:#fff!important;padding:0!important;margin:0!important;box-shadow:none!important;transition:transform .12s var(--ease)}
.sendbtn svg.i,.micbtn svg.i{width:19px!important;height:19px!important;stroke-width:2.2!important}
.sendbtn svg.i{transform:rotate(-90deg)}
.crow .sendbtn{display:none!important}
.crow.has-text .sendbtn,.crow.editing .sendbtn{display:grid!important}
.crow.has-text .micbtn,.crow.editing .micbtn{display:none!important}
.micbtn{background:transparent!important;color:var(--cobalt)!important}
.micbtn svg.i{width:22px!important;height:22px!important;stroke-width:1.9!important}
.micbtn.sending{background:var(--cobalt)!important;color:#fff!important}
.micbtn.sending svg.i{width:19px!important;height:19px!important;transform:rotate(-90deg)}
/* bars that sit above the input share the same width and radius */
.replybar,.vdraft{margin:0!important;border-radius:14px!important;border:0!important;background:var(--fill)!important;padding:6px 6px 6px 12px!important;min-height:44px;display:flex;align-items:center;gap:10px}
.replybar{border-left:3px solid var(--cobalt)!important;border-radius:10px!important}
.recbar{display:flex!important;align-items:center!important;gap:10px!important;min-height:36px!important;padding:0 0 0 4px!important;border:0!important;background:transparent!important;margin:0!important}
.recbar .rectrash{width:36px;height:36px}
.recbar .recbars{height:24px}
.recbar .reckeep{width:36px!important;height:36px!important}
.mentionbox{margin:0!important}
.emojipanel{margin:0!important}
.hint:empty{display:none}
/* the bar never covers the last message */
.stream{padding-bottom:10px!important}

/* ---- store-required UI: report, block, delete, consent ---- */
.obterms{margin:0;font-size:12.5px;line-height:1.45;color:var(--muted);text-align:center;max-width:320px}
.obterms a{color:var(--cobalt);text-decoration:none;font-weight:500}
.reportsheet{gap:12px}
.srow.pick1{width:100%;text-align:left;background:none;border:0;color:var(--ink)}
.srow.pick1 svg.i{color:var(--cobalt);width:20px;height:20px}
.srow.chk{gap:12px;cursor:pointer}
.srow.chk input{width:20px;height:20px;accent-color:var(--cobalt)}
.danger-bg{background:var(--bad)!important;color:#fff!important}
.danger-bg:disabled{opacity:.4}
.popmenu>button.dangerrow,.popmenu>button.dangerrow svg.i{color:var(--bad)!important}
.blockedbar{width:100%;min-height:44px;border-radius:12px;background:var(--fill);color:var(--muted);font-size:14.5px}
.blockedbar b{color:var(--cobalt);font-weight:600}
a.srow{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:12px}
a.srow>svg.i{color:var(--muted);width:16px;height:16px}
.modalacts .primary{height:40px;padding:0 18px}

/* ===== notifications: swipe actions, mute, tones, in-app banner ===== */
.swrow{position:relative;overflow:hidden;touch-action:pan-y;-webkit-user-select:none;user-select:none}
.swrow > .lineitem{position:relative;z-index:1;background:var(--surface);will-change:transform;transform:translate3d(var(--swx,0px),0,0)!important}
.swrow > .lineitem[aria-current="true"]{background:var(--cobalt-soft)}
.swrow.anim > .lineitem{transition:transform .28s cubic-bezier(.2,.9,.25,1)}
.swacts{position:absolute;top:0;bottom:0;display:flex;visibility:hidden}
.swrow.sl .swacts.l,.swrow.sr .swacts.r{visibility:visible}
.swacts.l{left:0}.swacts.r{right:0}
.swbtn{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#fff;font:600 11.5px/1 var(--f-body);border:0;padding:0;transition:flex .2s ease}
.swbtn svg.i{width:22px;height:22px;color:#fff}
.sw-blue{background:#007AFF}.sw-gray{background:#8E8E93}.sw-orange{background:#FF9500}.sw-red{background:#FF3B30}
.subgroup .swrow > .lineitem{background:transparent}
.subgroup .swrow{background:var(--surface)}
.subgroup .swrow > .lineitem.subitem{background:var(--surface)}
.mutemark{display:inline-grid;place-items:center;color:var(--muted)}
.mutemark svg.i{width:14px;height:14px}
.lineitem .badge.muted{background:#AEAEB2!important}
.popmenu .pmval{margin-left:auto;color:var(--muted);font-weight:400;font-size:13px;padding-left:10px}
.popmenu button.dangerrow,.popmenu button.dangerrow svg.i{color:#FF3B30}
.srow.pick{width:100%;text-align:left;background:none;border:0;color:var(--ink);cursor:pointer}
.srow.pick .sval{margin-left:auto}
.srow.pick > svg.i:last-child{color:var(--muted);width:16px;height:16px;flex:none}
.ntsheet{gap:12px;max-height:min(86vh,720px);overflow:auto}
.ntsheet .seg-label{margin:2px 4px -4px}
.ntsheet .ulist{max-height:none}
.segmini.wide{display:flex;width:100%}
.segmini.wide button{flex:1;padding:0 6px}
.segmini button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.inbanner{position:fixed;z-index:80;left:50%;top:calc(8px + env(safe-area-inset-top,0px));transform:translateX(-50%);width:min(420px,calc(100% - 16px));display:flex;align-items:center;gap:10px;padding:10px 12px;border:0;text-align:left;color:var(--ink);background:var(--glass,rgba(249,249,249,.94));-webkit-backdrop-filter:blur(20px) saturate(1.8);backdrop-filter:blur(20px) saturate(1.8);border-radius:18px;box-shadow:0 10px 34px rgba(0,0,0,.18),0 0 0 .5px rgba(0,0,0,.08);animation:bannerin .32s cubic-bezier(.2,.9,.25,1) both;cursor:pointer}
.inbanner.out{animation:bannerout .2s ease both}
.inbanner .glyph,.inbanner .av{width:38px!important;height:38px!important;flex:none;font-size:15px}
.inbanner .ibx{min-width:0;display:flex;flex-direction:column;gap:1px}
.inbanner b{font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inbanner span span,.inbanner .ibx > span{font-size:13.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@keyframes bannerin{from{transform:translate(-50%,-130%)}to{transform:translate(-50%,0)}}
@keyframes bannerout{to{transform:translate(-50%,-130%);opacity:0}}

/* ===== team invites ===== */
.invrow{display:flex;gap:8px;align-items:center}
.invrow .obcc{flex:none;height:40px;border-radius:10px;border:var(--hair,1px) solid var(--sep,var(--rule));background:var(--fill);color:var(--ink);padding:0 8px;font-size:15px}
.invrow .inp{flex:1;min-width:0;height:40px;font-size:16px}
.invrow .roundgo{flex:none}
.invrow .roundgo:disabled{opacity:.35}
.invtag{margin-left:auto;font-size:13px;font-weight:600;color:var(--cobalt)}
.sic.gray{background:#8E8E93!important}
.invpending{margin-top:14px}
.invcards{display:flex;flex-direction:column;gap:8px;padding:2px 12px 8px}
.invcard{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 12px;border-radius:14px;background:var(--cobalt-soft)}
.invcard .glyph{width:40px;height:40px;flex:none;color:#fff;display:grid;place-items:center;border-radius:50%}
.invcard .glyph svg.i{width:22px;height:22px}
.invcard .ivx{flex:1;min-width:0;display:flex;flex-direction:column}
.invcard .ivx b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.invcard .ivx span{font-size:13px;color:var(--muted)}
.invcard .ivno{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;padding:0;flex:none}
.invcard .ivyes{height:34px;padding:0 16px;border-radius:17px;flex:none;font-weight:600}
/* team page header: one tidy row of icons, team switcher underneath */
.teamwrap > .bhead.toprow{flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:6px!important}
.teamwrap > .bhead.toprow > .bt{flex:1 1 0;min-width:0;order:1}
.teamwrap > .bhead.toprow > .iconbtn:first-child{order:0}
.teamwrap > .bhead.toprow > .grow{display:none}
.teamwrap > .bhead.toprow > .iconbtn:not(:first-child),.teamwrap > .bhead.toprow > .profbtn{order:2;flex:none}
.teamwrap > .bhead.toprow > .teamsel{order:3;flex:1 0 100%;width:100%}
.ntsheet .sheethead .grow,.sheethead .grow{flex:1}
/* status picker: dot + name on the left, check on the right */
.popmenu>button.stpick{flex-direction:row!important;justify-content:flex-start;gap:12px}
.popmenu>button.stpick .stn{flex:1;text-align:left}
.popmenu>button.stpick svg.i{color:var(--cobalt)!important}
.popmenu>button.stpick.on .stn{font-weight:600}
/* attachments inside the subtasks box: symbols only */
.subs .subhead .attbtns{display:inline-flex;gap:2px;margin-left:6px}
.subs .subhead .attb{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:var(--cobalt);background:transparent;border:0;padding:0}
.subs .subhead .attb:active{background:var(--fill)}
.subs .subhead .attb svg.i{width:20px;height:20px;color:var(--cobalt)}
.subs.withfiles .tthumbs{margin-top:8px}
.subs.withfiles .tvoice{margin-top:8px}
.subs.withfiles .recbar{margin-top:8px}
.popmenu{background:color-mix(in srgb,var(--surface) 97%,transparent)!important}

/* ===== voice button: hold to record (WhatsApp style) ===== */
.micbtn{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.crow .micbtn{transition:transform .16s cubic-bezier(.2,.9,.25,1),background .16s}
.crow .micbtn.pressed{transform:scale(1.55);background:var(--cobalt)!important;color:#fff!important;box-shadow:0 6px 18px rgba(0,122,255,.35)}
.crow .micbtn.pressed svg.i{color:#fff!important}
.crow.holding > :not(.holdbar):not(.micbtn):not(.inbox){display:none!important}
/* the message box stays in place (just invisible) while holding the mic, so the keyboard doesn't drop */
.crow.holding > .inbox{display:flex!important;position:absolute!important;left:0;top:0;width:1px!important;height:1px!important;min-width:0!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important;padding:0!important;margin:0!important;border:0!important}
.holdbar{flex:1;min-width:0;height:36px;display:flex;align-items:center;gap:8px;padding:0 8px 0 12px;position:relative}
.holdbar .recdot{width:10px;height:10px;border-radius:50%;background:#FF3B30;animation:recblink 1s ease-in-out infinite;flex:none}
.holdbar .rectime{font-size:16px;font-variant-numeric:tabular-nums;color:var(--ink);min-width:38px}
.holdbar .slidecancel{margin-left:auto;margin-right:18px;display:inline-flex;align-items:center;gap:2px;color:var(--muted);font-size:15px;white-space:nowrap;transition:opacity .1s}
.holdbar .slidecancel svg.i{width:16px;height:16px}
.holdbar .lockhint{position:absolute;right:-38px;bottom:52px;width:34px;padding:8px 0 6px;border-radius:17px;background:var(--surface);box-shadow:0 4px 14px rgba(0,0,0,.15);display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--muted)}
.holdbar .lockhint svg.i{width:16px;height:16px}
@keyframes recblink{50%{opacity:.25}}

/* location message: the card fits inside the bubble */
.msg.k-location .strip{padding:4px!important;width:250px;max-width:calc(100% - 50px);overflow:hidden;box-sizing:border-box}
.msg.k-location .lcard{width:100%;max-width:100%;border-radius:13px}
.msg.k-location .lmap{width:100%;height:140px;border-radius:12px;overflow:hidden}
.msg.k-location .lmeta{padding:7px 8px 2px}
.msg.k-location .lmeta b{font-size:15px}
.msg.k-location .lmeta span{font-size:13px}
.msg.k-location .mcap{display:block;padding:4px 8px 0}

/* photos, videos, documents and contact cards: always inside the bubble, never past the screen */
.msg.rich .strip{padding:4px!important;max-width:calc(100% - 50px)!important;overflow:hidden;box-sizing:border-box}
.msg.rich .mbox,.msg.rich .fcard,.msg.rich .ccard{width:250px;max-width:100%}
.msg.rich .mbox{border-radius:13px}
.msg.rich .mbox.n1 .mcell{max-height:min(420px,60vh)}
.msg.rich .mcell img,.msg.rich .mcell video{max-width:100%}
.sc-send{background:var(--cobalt)!important}.mp-th.on{border-color:var(--cobalt)!important}

/* ===== chat header opens info ===== */
.thead .tinfo{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto;background:none;border:0;padding:0;text-align:left;color:inherit;cursor:pointer}
.thead .tinfo .t{min-width:0}
.thead .tinfo + .grow{flex:0 0 0}

/* ===== group / contact info ===== */
.infoview{position:fixed;inset:0;z-index:85;background:var(--paper);color:var(--ink);display:flex;flex-direction:column;animation:slide .22s var(--ease,ease) both}
.ihead{display:flex;align-items:center;gap:6px;padding:calc(6px + env(safe-area-inset-top,0px)) 8px 6px;background:var(--glass);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:var(--hair,.5px) solid var(--sep,var(--rule))}
.ihead b{font-size:17px;font-weight:600;position:absolute;left:50%;transform:translateX(-50%)}
.ibody{flex:1;overflow:auto;padding:0 16px calc(28px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px}
.ihero{display:flex;flex-direction:column;align-items:center;gap:4px;padding:22px 0 4px;text-align:center}
.ihero .ibig{width:96px!important;height:96px!important;font-size:38px!important;border-radius:50%;margin-bottom:8px}
.ihero .ibig svg.i{width:44px;height:44px}
.iname{font:600 22px/1.2 var(--f-body,inherit);margin:0;text-align:center;border:0;background:transparent;color:var(--ink);width:100%;max-width:320px;padding:2px 6px;border-radius:8px}
input.iname:focus{outline:none;background:var(--surface)}
.isub{font-size:15px;color:var(--muted)}
.iabout{font-size:14px;color:var(--ink);opacity:.8}
.iacts{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}
.iact{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px 8px;border-radius:12px;background:var(--surface);color:var(--cobalt);font-size:12.5px;font-weight:500;text-decoration:none;border:0}
.iact svg.i{width:22px;height:22px;color:var(--cobalt)}
.infoview .seg-label{margin:6px 4px -6px}
.imembers .srow{width:100%;text-align:left;background:none;border:0;color:var(--ink);gap:12px}
.imembers .av{width:40px;height:40px;flex:none}
.iadd .sic{background:var(--cobalt)!important}
.iadmin{margin-left:auto;font-size:12px;font-weight:600;color:#1FA855;background:color-mix(in srgb,#1FA855 14%,transparent);padding:2px 8px;border-radius:8px;flex:none}
.idanger .srow,.idanger .srow b{color:#FF3B30}
.idanger .sic{background:#FF3B30!important}
.ibody > *{flex-shrink:0}
.infoview ~ .scrim{z-index:90}
.toast{z-index:95}
.infoview .ulist{overflow:visible}
.srow.col{flex-wrap:wrap}
.srow.col .segmini{flex:1 0 100%;margin-top:8px}
.bkbusy{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px;color:var(--muted);font-size:14px}

/* sheets scroll when the list is long (invite people, tones, backup…) */
.ntsheet{max-height:min(86vh,720px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.ntsheet > *{flex-shrink:0}
.ntsheet .picklist{max-height:none!important;overflow:visible!important}
.scrim{overscroll-behavior:contain}
.modal .picklist{max-height:min(52vh,460px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.scrim{z-index:70!important}.infoview ~ .scrim{z-index:90!important}

/* no blinking: entrance animations only play for things that are actually new */
.msg{animation:none!important}
.msg.fresh{animation:in .22s var(--ease) both!important}
.drawer{animation:none!important}
.drawer.enter{animation:slide .25s var(--ease) both!important}
.flow{animation:none!important}
.flow.enter{animation:slide .25s var(--ease) both!important}
.subgroup{animation:none!important}
.subgroup.enter{animation:subin .18s var(--ease) both!important}
.teamwrap{padding-bottom:calc(120px + env(safe-area-inset-bottom,0px))!important}

/* ===== sign-in screens (welcome, code, name, contacts) ===== */
#onboard,#profsetup,#findc{background:var(--paper)!important;color:var(--ink)!important}
.ob2{min-height:100%;width:100%;max-width:440px;margin:0 auto;display:flex;flex-direction:column;padding:0 24px calc(16px + env(safe-area-inset-bottom,0px));box-sizing:border-box}
.ob2top{height:52px;display:flex;align-items:center;margin-left:-10px}
.ob2top .obback svg.i{width:24px;height:24px;color:var(--cobalt)}
.ob2main{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:4vh}
.ob2icon{width:84px;height:84px;border-radius:20px;box-shadow:0 10px 28px rgba(10,85,224,.28),0 2px 6px rgba(0,0,0,.08);margin-bottom:22px}
.ob2title{font:700 28px/1.15 var(--f-body,-apple-system,system-ui);letter-spacing:-.02em;margin:0 0 10px;color:var(--ink)}
.ob2sub{font-size:16px;line-height:1.4;color:var(--muted);margin:0 0 26px;max-width:340px}
.ob2sub b{color:var(--ink);font-weight:600}
.ob2body{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
.obfield{width:100%;display:flex;align-items:center;height:56px;background:var(--surface);border-radius:14px;box-shadow:0 1px 2px rgba(0,0,0,.06),0 0 0 .5px var(--sep,rgba(0,0,0,.1));overflow:hidden}
.obfield .obnum{flex:1;min-width:0;height:100%;border:0!important;background:transparent!important;box-shadow:none!important;font:500 18px/1 var(--f-body,inherit)!important;color:var(--ink);padding:0 16px!important;outline:none;text-align:left;letter-spacing:.01em;width:auto!important}
.obccwrap{position:relative;display:flex;align-items:center;gap:4px;height:100%;padding:0 10px 0 16px;color:var(--ink);font:600 17px/1 var(--f-body,inherit);flex:none;cursor:pointer}
.obccwrap svg.i{width:16px;height:16px;color:var(--muted)}
.obccwrap .obcc{position:absolute;inset:0;opacity:0;width:100%;height:100%;font-size:16px;cursor:pointer}
.obsep{width:.5px;height:28px;background:var(--sep,rgba(0,0,0,.15));flex:none}
.obhint{margin:2px 0 0;font-size:13.5px;color:var(--muted)}
.obotp{width:100%;max-width:300px;height:64px;border:0;border-radius:14px;background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.06),0 0 0 .5px var(--sep,rgba(0,0,0,.1));text-align:center;font:600 32px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.45em;padding-left:.45em;color:var(--ink);outline:none;caret-color:var(--cobalt)}
.obotp::placeholder{color:color-mix(in srgb,var(--muted) 45%,transparent)}
.obotp:focus,.obfield:focus-within{box-shadow:0 0 0 2px var(--cobalt),0 4px 14px rgba(0,122,255,.15)}
.ob2 .oblink{background:none;border:0;color:var(--cobalt);font:500 15px/1 var(--f-body,inherit);padding:10px;cursor:pointer}
.ob2 .oblink:disabled{color:var(--muted)}
.ob2 .oblink.center{display:block;margin:4px auto 0}
.ob2 .oberr{margin:14px 0 0;width:100%;box-sizing:border-box;padding:11px 14px;border-radius:12px;background:color-mix(in srgb,#FF3B30 10%,transparent);color:#D70015;font-size:14px;line-height:1.35;text-align:left;word-break:break-word}
.ob2foot{padding-top:16px}
.ob2btn{width:100%;height:54px;border:0;border-radius:14px;background:var(--cobalt);color:#fff;font:600 17px/1 var(--f-body,inherit);display:grid;place-items:center;box-shadow:0 6px 18px rgba(0,122,255,.28);cursor:pointer;transition:transform .12s,opacity .12s}
.ob2btn:active{transform:scale(.98)}
.ob2btn.busy{opacity:.85}
.ob2 .obterms{margin:14px 6px 0;font-size:12.5px;line-height:1.45;color:var(--muted);text-align:center}
.ob2 .obterms a{color:var(--cobalt);text-decoration:none}
.obperks{width:100%;display:flex;flex-direction:column;gap:10px;text-align:left}
.obperks > div{display:flex;align-items:center;gap:14px;background:var(--surface);border-radius:14px;padding:12px 14px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.obperks .obpk{width:38px;height:38px;border-radius:10px;background:var(--cobalt);display:grid;place-items:center;flex:none}
.obperks .obpk svg.i{width:20px;height:20px;color:#fff}
.obperks > div > span:last-child{display:flex;flex-direction:column;gap:2px}
.obperks b{font-size:15px;color:var(--ink)}
.obperks span span{font-size:13px;color:var(--muted)}

/* ---- task screen fits the phone exactly ---- */
html,body{overflow-x:hidden;max-width:100%}
.drawer{max-width:100vw;overflow-x:hidden}
.drawer .dbody{overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.drawer .dbody > *{min-width:0;max-width:100%}
.drawer textarea{resize:none;max-width:100%}
.drawer input[type=date]{-webkit-appearance:none;appearance:none;min-width:0;width:100%;max-width:100%;background:none}
.drawer input[type=date]::-webkit-date-and-time-value{text-align:left}
@media (max-width:640px){
  .drawer .dhead{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(10px,env(safe-area-inset-right,0px))}
}
/* iPhone zooms the whole page in when a text box has small text: keep typing text at 16px on phones */
@media (pointer:coarse){
  input:not([type=range]):not([type=checkbox]):not([type=radio]),textarea,select{font-size:max(16px,1em)!important}
  .search input,.metabox input{font-size:16px!important}
}

/* ---- iPhone-style monogram avatars (gray gradient, two initials) ---- */
.av.mgav:not(:has(img)),.glyph.mgav{background:linear-gradient(180deg,#A6ABB8 0%,#868A96 100%)!important;color:#fff;font-family:-apple-system,"SF Pro Rounded","SF Pro Text",system-ui,sans-serif;font-weight:600;letter-spacing:.2px;text-shadow:0 .5px 0 rgba(0,0,0,.08)}
.av.mgav svg.i,.glyph.mgav svg.i{width:72%;height:72%;fill:rgba(255,255,255,.95);stroke:none;margin-top:18%}
.av.mgav:has(svg),.glyph.mgav:has(svg){overflow:hidden;place-items:end center}
.glyph.g44{width:44px!important;height:44px!important;font-size:16px!important}
.glyph.g32{width:32px!important;height:32px!important;font-size:12.5px!important}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .av.mgav:not(:has(img)),:root:not([data-theme="light"]) .glyph.mgav{background:linear-gradient(180deg,#76797F 0%,#56585E 100%)!important}
}
:root[data-theme="dark"] .av.mgav:not(:has(img)),:root[data-theme="dark"] .glyph.mgav{background:linear-gradient(180deg,#76797F 0%,#56585E 100%)!important}

/* ---- voice notes (WhatsApp / iMessage feel) ---- */
.msg .voice{display:flex;align-items:center;gap:8px;width:min(270px,70vw);padding:2px 0}
.msg .vplay{width:34px;height:34px;background:none!important;color:var(--muted)!important;border-radius:50%}
.msg.mine .vplay,.mine .vplay{color:#fff!important}
.msg .vplay svg.i{width:26px;height:26px}
.msg .vplay svg.i path{fill:currentColor;stroke:currentColor;stroke-linejoin:round;stroke-width:1.2}
.msg .vmid{gap:2px}
.msg .vbars{position:relative;height:30px;gap:2px;color:var(--muted)}
.msg .vbars i{flex:1;min-width:2px;max-width:3px;border-radius:3px;background:currentColor;opacity:.4;transition:opacity .15s,background .15s}
.msg .vbars i.on{opacity:1;background:var(--cobalt)}
.mine .vbars{color:rgba(255,255,255,.55)!important}
.mine .vbars i.on{background:#fff}
.vknob{position:absolute;top:50%;left:calc(var(--p,0) * (100% - 12px));width:12px;height:12px;margin-top:-6px;border-radius:50%;background:var(--cobalt);box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .12s linear}
.mine .vknob{background:#fff}
.msg .vmeta{font-size:11.5px;opacity:.75}
.vside{position:relative;width:44px;height:44px;flex:none;display:grid;place-items:center}
.vwho{position:relative;display:block}
.vwho .vav{width:44px;height:44px;font-size:15px}
.vmic{position:absolute;left:-5px;bottom:-2px;width:19px;height:19px;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--cobalt)}
.mine .vmic{background:var(--cobalt);color:#fff}
.vmic svg.i{width:13px;height:13px;stroke-width:2.2}
.vside .vspeed{display:none;min-width:40px;height:26px;border-radius:13px;font:700 12.5px var(--f-body);background:rgba(120,120,128,.18)!important;color:inherit;padding:0 8px}
.mine .vside .vspeed{background:rgba(255,255,255,.25)!important}
.voice.playing .vwho{display:none}
.voice.playing .vside .vspeed{display:block}
.tvoice .vside{display:none}
.tvoice .vknob{display:none}

/* ---- location card (iMessage feel) ---- */
.msg.k-location .strip{padding:3px!important;width:262px}
.msg.k-location .lmap{height:150px;border-radius:15px 15px 4px 4px;background-color:#ECE9E2}
.lmap{position:relative}
.lpin2{position:absolute;left:50%;top:50%;width:40px;height:40px;margin:-38px 0 0 -20px;display:block}
.lpin2 svg.i{width:40px;height:40px;fill:#FF3B30;stroke:#fff;stroke-width:1.6;filter:drop-shadow(0 3px 4px rgba(0,0,0,.3));position:relative}
.lpin2 i{position:absolute;left:50%;bottom:-3px;width:14px;height:5px;margin-left:-7px;border-radius:50%;background:rgba(0,0,0,.22);filter:blur(1px)}
.losm{position:absolute;right:6px;bottom:4px;font-size:9px;color:rgba(0,0,0,.55);background:rgba(255,255,255,.7);padding:0 4px;border-radius:4px}
.lmeta2{display:flex;align-items:center;gap:10px;padding:9px 8px 5px 6px}
.lmeta2 > svg.i{width:16px;height:16px;opacity:.45;flex:none}
.lic{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#FF3B30;color:#fff;flex:none}
.lic svg.i{width:18px;height:18px;fill:#fff;stroke:none}
.lic svg.i circle{fill:#FF3B30}
.ltx{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.ltx b{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ltx span{font-size:13px;opacity:.65}
.mine .lic{background:#fff}
.mine .lic svg.i{fill:var(--cobalt)}
.mine .lic svg.i circle{fill:#fff}
/* initials scale with the circle, whatever its size */
.mgav .mgi{line-height:1;white-space:nowrap}
.mgav.mg2 .mgi{font-size:.88em;letter-spacing:.3px}

/* ---- Settings → Storage and data ---- */
.stwait{display:flex;align-items:center;gap:10px;padding:24px 8px;color:var(--muted)}
.stsum{background:var(--surface);border-radius:14px;padding:14px 14px 12px;display:flex;flex-direction:column;gap:10px}
.sttop{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.sttop b{font-size:26px;font-weight:700;letter-spacing:-.4px}
.sttop span{color:var(--muted);font-size:13px}
.stbar{display:flex;gap:2px;height:12px;border-radius:6px;overflow:hidden;background:var(--fill)}
.stbar i{display:block;min-width:4px}
.stlegend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;color:var(--muted)}
.stlegend span{display:inline-flex;align-items:center;gap:6px}
.stlegend i{width:9px;height:9px;border-radius:50%;display:inline-block}
.stlegend em{font-style:normal;color:var(--ink);font-weight:600}
.stchat .cav .glyph,.stchat .cav .av{width:36px!important;height:36px!important}
.stchat .stx span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.srow b.red{color:#FF3B30;font-weight:500}
.srow b.blue{color:var(--cobalt);font-weight:500}
.srow[disabled]{opacity:.45}
.primary.danger{background:#FF3B30!important;color:#fff!important}
.ghost.wide,.primary.wide{width:100%;justify-content:center}
.contactsnote{margin:10px 16px 18px;font-size:12.5px}
.lazymore{height:1px}
.av.mgav:not(:has(svg)),.glyph.mgav:not(:has(svg)){display:grid!important;place-items:center!important;padding:0!important}
.mgav .mgi{display:block}

/* ---- bubble tails: joined smoothly to the bubble (WhatsApp style) ---- */
.msg:not(.cont):not(.mine):not(.rich) .strip{border-top-left-radius:0!important}
.msg.mine:not(.cont):not(.rich) .strip{border-top-right-radius:0!important}
.msg:not(.cont):not(.mine):not(.rich) .strip::before,.msg.mine:not(.cont):not(.rich) .strip::before{width:8px!important;height:13px!important;top:0!important}
.msg:not(.cont):not(.mine):not(.rich) .strip::before{left:-7.5px!important;clip-path:path("M0 0 H8 V13 C6.5 7.5 3.8 3 0.6 1.1 C0.2 0.8 0 0.4 0 0 Z")!important}
.msg.mine:not(.cont):not(.rich) .strip::before{right:-7.5px!important;left:auto!important;clip-path:path("M8 0 H0 V13 C1.5 7.5 4.2 3 7.4 1.1 C7.8 0.8 8 0.4 8 0 Z")!important}

/* reactions sit neatly on the bubble's bottom edge, under its corner */
.reacts{margin-top:-9px!important;padding:0 10px!important}
.mine .reacts{justify-content:flex-end}
.react{border:2px solid var(--chatbg,var(--paper))!important;padding:1px 7px!important;line-height:1.3}

/* ---- swipe a message left: Forward / Task buttons ---- */
.msg{position:relative}
.macts{position:absolute;right:10px;top:50%;display:flex;gap:8px;transform:translateY(-50%) scale(calc(.85 + .15 * var(--mp,0)));opacity:var(--mp,0);pointer-events:none;z-index:2;transition:opacity .18s,transform .18s}
.msg.swiping .macts{transition:none}
.msg.mopen .macts{pointer-events:auto;opacity:1}
.mact{display:flex;flex-direction:column;align-items:center;gap:3px;font:600 11px var(--f-body);color:var(--ink);background:none;border:0;padding:0;min-width:56px}
.maci{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--cobalt);color:#fff;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.mact.task .maci{background:#34C759}
.maci svg.i{width:21px;height:21px}
.msg.swiping .fwdbtn,.msg.mopen .fwdbtn,.msg.swl .fwdbtn{opacity:0!important;pointer-events:none}
.msg:not(.swiping) .brow .strip{transition:transform .26s cubic-bezier(.2,.8,.2,1)}
.brow{position:relative;width:100%}
.mine .brow{justify-content:flex-start}
.macts{right:6px}
.msg .vbars{gap:1.6px!important;height:32px!important}
.msg .vbars i{max-width:3px!important;min-width:2px!important}

/* =================== Task screen (iOS grouped style) =================== */
.drawer.td2{background:var(--paper)!important}
.td2head{display:flex;align-items:center;gap:6px;padding:10px 12px!important;background:var(--bar)!important}
.td2x,.td2ic{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--fill);color:var(--ink);border:0;flex:none}
.td2ic{color:var(--cobalt);background:color-mix(in srgb,var(--cobalt) 12%,transparent)}
.td2x svg.i,.td2ic svg.i{width:18px;height:18px}
.td2num{font:600 13px var(--f-body);letter-spacing:.3px;color:var(--muted);background:var(--fill);padding:5px 10px;border-radius:999px;margin-left:4px}
.td2save{height:36px;padding:0 18px;border-radius:999px;border:0;background:var(--cobalt);color:#fff;font:600 15px var(--f-body);margin-left:4px;box-shadow:0 2px 8px color-mix(in srgb,var(--cobalt) 35%,transparent)}
.td2save:active{transform:scale(.97)}
.td2body{padding:14px 16px calc(28px + env(safe-area-inset-bottom,0px))!important;gap:14px!important}
.td2title{width:100%;border:0;background:none;resize:none;font:700 24px/1.22 var(--f-display);letter-spacing:-.4px;color:var(--ink);padding:2px 2px;outline:none;overflow:hidden}
.td2title::placeholder{color:var(--muted)}
.td2seg{display:flex;background:var(--fill);border-radius:12px;padding:3px;gap:2px}
.td2segb{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:6px;height:34px;border:0;border-radius:9px;background:none;color:var(--muted);font:600 13.5px var(--f-body);white-space:nowrap;padding:0 4px;transition:background .18s,color .18s,box-shadow .18s}
.td2segb i{width:8px;height:8px;border-radius:50%;background:var(--c);flex:none;opacity:.55}
.td2segb[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.12)}
.td2segb[aria-pressed="true"] i{opacity:1;box-shadow:0 0 0 3px color-mix(in srgb,var(--c) 22%,transparent)}
.td2card{background:var(--surface);border-radius:14px;overflow:hidden;display:block;width:100%;border:0;text-align:left}
.td2row{position:relative;display:flex;align-items:center;gap:12px;min-height:50px;padding:8px 14px;width:100%;border:0;background:none;color:var(--ink);font:400 16px var(--f-body);text-align:left;cursor:pointer}
.td2row+.td2row{box-shadow:inset 54px 0 0 var(--surface),inset 0 .5px 0 var(--sep,var(--rule))}
.td2ri{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:#fff;flex:none}
.td2ri svg.i{width:17px;height:17px;stroke:#fff}
.td2rl{flex:1;min-width:0}
.td2rv{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:15.5px}
.td2rv.late{color:#FF3B30;font-weight:600}
.td2rv .muted{color:var(--muted)}
.td2row > svg.i{width:15px;height:15px;color:var(--muted);opacity:.6;flex:none}
.av.td2av{width:26px!important;height:26px!important;font-size:10.5px!important}
.av.td2av.sm{width:22px!important;height:22px!important;font-size:9px!important}
.td2date{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;-webkit-appearance:none;appearance:none}
.td2clr{position:relative;z-index:2;width:24px;height:24px;border-radius:50%;border:0;background:var(--fill);display:grid;place-items:center;color:var(--muted)}
.td2clr svg.i{width:12px;height:12px}
.td2pri{display:flex;background:var(--fill);border-radius:9px;padding:2px;gap:2px}
.td2pri button{height:30px;padding:0 10px;border:0;border-radius:7px;background:none;color:var(--muted);font:600 13px var(--f-body)}
.td2pri button[aria-pressed="true"].p-low{background:var(--surface);color:#34C759;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.td2pri button[aria-pressed="true"].p-normal{background:var(--surface);color:#FF9500;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.td2pri button[aria-pressed="true"].p-high{background:#FF3B30;color:#fff}
.td2subs .subs{background:none!important;border:0!important;box-shadow:none!important;margin:0!important;border-radius:0!important}
.td2notes{width:100%;min-height:88px;border:0;background:none;resize:none;padding:14px;font:400 16px/1.4 var(--f-body);color:var(--ink);outline:none;display:block}
.td2src{padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.td2srch{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted)}
.td2srch b{color:var(--ink);font-weight:600}
.td2link{border:0;background:none;color:var(--cobalt);font:600 13.5px var(--f-body);padding:0}
.td2src p{margin:0;font-size:15.5px;line-height:1.4;color:var(--ink);background:var(--fill);padding:10px 12px;border-radius:12px;white-space:pre-wrap}
.td2voice{background:var(--fill);border-radius:14px;padding:6px 8px}
.td2voice .voice{width:100%}
.td2voice .vside{display:none}
.td2voice .vplay{width:40px!important;height:40px!important;background:var(--cobalt)!important;color:#fff!important}
.td2voice .vplay svg.i{width:18px!important;height:18px!important}
.td2voice .vplay svg.i path{fill:#fff;stroke:#fff}
.td2voice .vbars{color:var(--muted)}
.td2voice .vbars i.on{background:var(--cobalt);opacity:1}
.td2voice .vknob{background:var(--cobalt)}
.td2label{font:600 12.5px var(--f-body);text-transform:uppercase;letter-spacing:.4px;color:var(--muted);margin:4px 4px -8px}
.td2log{padding:4px 0}
.td2logr{display:flex;align-items:center;gap:9px;padding:7px 14px;font-size:14px;color:var(--ink)}
.td2logr span{flex:1;min-width:0}
.td2logr em{font-style:normal;color:var(--muted);font-size:12.5px}
.td2delrow{display:flex!important;align-items:center;justify-content:center;gap:8px;min-height:50px;color:#FF3B30;font:600 16px var(--f-body);cursor:pointer}
.td2delrow svg.i{width:18px;height:18px}
.td2del{padding:14px}
.td2del p{margin:0 0 12px;text-align:center;color:var(--ink)}
.td2delb{display:flex;gap:10px}.td2delb button{flex:1;justify-content:center}
.av.td2none{background:var(--fill)!important;color:var(--muted)}
.drawer.td2 .dfoot{display:none}
.td2title{font-size:24px!important;font-weight:700!important;line-height:1.22!important}
.vbars{position:relative}
.vknob{pointer-events:none}
.td2logr > span:not(.av){flex:1;min-width:0}
.td2logr span{flex:initial}
.td2logr > .av{flex:none}

/* ---- task cards on the board ---- */
.card{border-radius:14px!important;padding:11px 12px 10px 14px!important;gap:8px!important;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 10px rgba(0,0,0,.04)!important;border:0!important}
.card .ttl{font:600 15px/1.32 var(--f-body)!important;letter-spacing:-.1px;color:var(--ink)}
.card .bot{gap:6px!important;flex-wrap:wrap}
.card .tid{font:600 11px var(--f-body)!important;letter-spacing:.3px;color:var(--muted)!important;background:var(--fill)!important;padding:3px 7px!important;border-radius:6px!important}
.card .due,.card .subchip,.card .cchip{display:inline-flex;align-items:center;gap:4px;font:600 11.5px var(--f-body);padding:3px 7px;border-radius:6px;background:var(--fill);color:var(--muted)}
.card .due.late{background:color-mix(in srgb,#FF3B30 14%,transparent);color:#FF3B30}
.card .vchip{background:color-mix(in srgb,var(--cobalt) 12%,transparent);color:var(--cobalt)}
.card .due svg.i,.card .subchip svg.i,.card .cchip svg.i{width:12px;height:12px}
.card .flag{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:color-mix(in srgb,#FF3B30 14%,transparent);color:#FF3B30}
.card .flag svg.i{width:12px;height:12px}
.card .av.sm{width:24px;height:24px;font-size:10px}
.card:active{transform:scale(.985)}
.colpill{font-weight:700!important}

/* ---- task screen v3: symbols, compact ---- */
.td2save{width:40px;height:40px;padding:0!important;border-radius:50%!important;display:grid;place-items:center}
.td2save svg.i{width:20px;height:20px;stroke:#fff;stroke-width:2.6}
.td2ic.del{color:#FF3B30;background:color-mix(in srgb,#FF3B30 11%,transparent)}
.td2seg{border-radius:10px;padding:2px}
.td2segb{height:30px;font-size:12.5px;border-radius:8px}
.td2chips{display:flex;flex-wrap:wrap;gap:8px}
.td2chip{position:relative;display:inline-flex;align-items:center;gap:6px;height:38px;min-width:38px;padding:0 11px;border-radius:12px;border:1px solid var(--sep,var(--rule));background:var(--surface);color:var(--muted);font:600 13.5px var(--f-body);justify-content:center;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.td2chip svg.i{width:18px;height:18px}
.td2chip.set{color:var(--ink)}
.td2chip.set > svg.i{color:var(--cobalt)}
.td2chip.late{color:#FF3B30;border-color:color-mix(in srgb,#FF3B30 40%,transparent);background:color-mix(in srgb,#FF3B30 8%,var(--surface))}
.td2chip.late > svg.i{color:#FF3B30}
.td2chip .av.td2av{width:24px!important;height:24px!important;margin-left:-5px}
.td2chip.pri b{font-weight:800;letter-spacing:-.5px}
.td2chip.pri.p-low{color:#34C759}
.td2chip.pri.p-normal{color:#FF9500;border-color:color-mix(in srgb,#FF9500 35%,transparent);background:color-mix(in srgb,#FF9500 8%,var(--surface))}
.td2chip.pri.p-high{color:#fff;background:#FF3B30;border-color:#FF3B30}
.td2chx{position:relative;z-index:2;width:20px;height:20px;border-radius:50%;border:0;background:var(--fill);display:grid;place-items:center;color:var(--muted);margin-right:-4px}
.td2chx svg.i{width:11px!important;height:11px!important}
/* attachments box: three framed tools, framed items */
.td2subs{padding:12px!important}
.td2subs .subs{padding:0!important;display:flex;flex-direction:column;gap:10px}
.td2subs .subhead{display:flex;align-items:center;gap:8px;padding:0!important;min-height:0!important}
.td2subs .subhead > svg.i:first-child,.td2subs .subhead > b{display:none}
.td2subs .subhead .attbtns{order:-1;display:flex;gap:8px;margin:0!important}
.td2subs .attb{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;border:1px solid var(--sep,var(--rule));background:var(--fill);color:var(--cobalt);padding:0}
.td2subs .attb svg.i{width:21px;height:21px}
.td2subs .attb:active{transform:scale(.95)}
.td2subs .subcount{font:600 12px var(--f-body);color:var(--muted);background:var(--fill);padding:3px 8px;border-radius:999px}
.td2subs .subbar{max-width:70px}
.td2subs .subrow{border:1px solid var(--sep,var(--rule));border-radius:12px;padding:6px 8px!important;background:var(--surface);margin:0!important;min-height:44px}
.td2subs .subrow+.subrow{border-top:1px solid var(--sep,var(--rule))!important}
.td2subs .subrow.add:not(.show){display:none}
.td2subs .subs:has(.subrow:not(.add)) .subrow.add{display:flex}
.td2subs .subrow.add{border-style:dashed}
.td2subs .tthumbs{display:flex;flex-wrap:wrap;gap:8px;margin:0!important}
.td2subs .tthumb{width:72px;height:72px;border-radius:12px;overflow:hidden;border:1px solid var(--sep,var(--rule))}
.td2subs .tvoice{display:flex;align-items:center;gap:8px;border:1px solid var(--sep,var(--rule));border-radius:14px;padding:6px 8px;background:var(--fill);margin:0!important}
.td2subs .tvoice .vside,.td2subs .tvoice .vknob{display:none}
.td2subs .tvoice .vplay{background:var(--cobalt)!important;color:#fff!important;width:36px!important;height:36px!important}
.td2subs .tvoice .vplay svg.i path{fill:#fff;stroke:#fff}
.td2subs .recbar.small{border:1px solid color-mix(in srgb,#FF3B30 35%,transparent);border-radius:14px;padding:6px 8px;margin:0!important}
.td2notes{min-height:64px;padding:12px 14px;font-size:15.5px}
.td2title{font-size:22px!important}
.td2subs .subhead .attbtns .attb{width:46px!important;height:46px!important;border-radius:14px!important;border:1px solid var(--sep,var(--rule))!important;background:var(--fill)!important;color:var(--cobalt)!important;display:grid!important;place-items:center!important;opacity:1!important}
.td2subs .subhead .attbtns .attb svg.i{width:22px!important;height:22px!important}
.td2subs .subhead .attbtns .attb:nth-child(2){color:#34C759!important}
.td2subs .subhead .attbtns .attb:nth-child(3){color:#FF3B30!important}
.td2subs .subhead .attbtns .attb svg.i{color:inherit!important}
.td2subs .subhead .attbtns .attb{border:0!important;background:color-mix(in srgb,currentColor 11%,transparent)!important}
.td2subs .subrow{min-height:40px!important;padding:3px 8px!important;border-radius:11px}
.td2subs .subrow .subtx{font-size:15px}
.td2subs .subs{gap:8px}

/* ---- task screen v4: round icons, smaller ---- */
.td2head{padding:8px 12px!important;gap:6px!important}
.td2x,.td2ic{width:32px!important;height:32px!important}
.td2x svg.i,.td2ic svg.i{width:16px!important;height:16px!important}
.td2save{width:34px!important;height:34px!important}
.td2save svg.i{width:17px!important;height:17px!important}
.td2num{font-size:12px;padding:4px 9px}
.td2body{padding:12px 14px calc(24px + env(safe-area-inset-bottom,0px))!important;gap:11px!important}
.td2title{font-size:19px!important;line-height:1.25!important}
.td2seg{border-radius:999px!important;padding:2px!important}
.td2segb{height:28px!important;font-size:12px!important;border-radius:999px!important;gap:5px!important}
.td2segb i{width:7px!important;height:7px!important}
.td2chips{gap:8px!important;align-items:center}
.td2chip{width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;border-radius:50%!important;gap:0!important}
.td2chip svg.i{width:16px!important;height:16px!important}
.td2chip.set{background:color-mix(in srgb,var(--cobalt) 12%,var(--surface))!important;border-color:transparent!important}
.td2chip .av.td2av{width:34px!important;height:34px!important;margin:0!important;font-size:12px!important}
.td2chip:has(.av){border:0!important;padding:0!important;overflow:hidden}
.td2chip.pri.p-normal{background:color-mix(in srgb,#FF9500 14%,var(--surface))!important}
.td2due{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 4px 0 9px;border-radius:999px;background:var(--fill);font:600 12px var(--f-body);color:var(--ink);margin-left:-4px}
.td2due.late{background:color-mix(in srgb,#FF3B30 13%,transparent);color:#FF3B30}
.td2due .td2chx{width:18px;height:18px;margin:0}
.td2card{border-radius:12px!important}
.td2subs{padding:10px!important}
.td2subs .subs{gap:7px!important}
.td2subs .subhead .attbtns{gap:7px!important}
.td2subs .subhead .attbtns .attb{width:36px!important;height:36px!important;border-radius:50%!important}
.td2subs .subhead .attbtns .attb svg.i{width:17px!important;height:17px!important}
.td2subs .subcount{font-size:11px;padding:2px 7px}
.td2subs .subrow{min-height:34px!important;padding:2px 8px!important;border-radius:999px!important}
.td2subs .subrow .subtx{font-size:14px!important}
.td2subs .subrow .subchk{width:20px!important;height:20px!important}
.td2subs .tthumb{width:58px!important;height:58px!important;border-radius:10px!important}
.td2subs .tvoice{border-radius:999px!important;padding:3px 8px 3px 4px!important}
.td2subs .tvoice .vplay{width:30px!important;height:30px!important}
.td2notes{min-height:52px!important;padding:10px 12px!important;font-size:14.5px!important}
.td2src{padding:10px 12px!important;gap:8px!important}
.td2srch{font-size:12.5px!important}
.td2src p{font-size:14px!important;padding:8px 10px!important;border-radius:10px!important}
.td2voice{border-radius:999px!important;padding:3px 10px 3px 4px!important}
.td2voice .vplay{width:32px!important;height:32px!important}
.td2voice .vplay svg.i{width:15px!important;height:15px!important}
.td2voice .vbars{height:26px!important}
.td2voice .vmeta{font-size:11px}
.td2label{font-size:11px!important;margin:2px 4px -6px!important}
.td2logr{padding:5px 12px!important;font-size:12.5px!important}
.td2logr em{font-size:11.5px!important}
@media (pointer:coarse){ .td2subs .subrow input.subtx{font-size:14px!important} .td2notes{font-size:14.5px!important} }
.td2subs .subrow{min-height:32px!important}
.td2subs .subrow .subtx{padding:4px 0!important}
.td2notes{min-height:44px!important}

/* ---- profile ---- */
.profcard{width:100%;border:0;text-align:left;cursor:pointer;display:flex;align-items:center;gap:14px;position:relative}
.pcedit{margin-left:auto;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--fill);color:var(--cobalt);flex:none}
.pcedit svg.i{width:16px;height:16px}
.profcard .pcx{min-width:0}
.profcard .pcx span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.epav{display:flex;flex-direction:column;align-items:center;gap:8px;padding:4px 0 6px}
.epphoto,.obphoto{position:relative;width:96px;height:96px;border-radius:50%;border:0;padding:0;background:var(--fill);display:grid;place-items:center;color:var(--muted);cursor:pointer;flex:none}
.obphoto{margin:0 auto 14px}
.obphoto > svg.i{width:34px;height:34px}
.epphoto .av.xl,.obphoto .av.xl{width:96px!important;height:96px!important;font-size:34px!important}
.epcam{position:absolute;right:0;bottom:2px;width:30px;height:30px;border-radius:50%;background:var(--cobalt);color:#fff;display:grid;place-items:center;border:3px solid var(--surface)}
.epcam svg.i{width:14px;height:14px;stroke:#fff}
.eplbl{font:600 12px var(--f-body);text-transform:uppercase;letter-spacing:.4px;color:var(--muted);margin:2px 4px -4px}

/* ---- launch: a short, clean logo screen that fades into the app ---- */
#boot{position:fixed;inset:0;z-index:999;display:grid;place-items:center;background:var(--paper);transition:opacity .28s ease,visibility .28s}
#boot img{width:88px;height:88px;border-radius:22px;box-shadow:0 10px 30px rgba(10,85,224,.28);animation:bootpop .5s cubic-bezier(.2,.8,.2,1) both}
@keyframes bootpop{from{transform:scale(.86);opacity:0}to{transform:none;opacity:1}}
html.ready #boot{opacity:0;visibility:hidden;pointer-events:none}

/* ---- screen transitions (phone): slide like iPhone apps ---- */
::view-transition-group(root){animation-duration:.34s}
html[data-nav="fwd"]::view-transition-old(root){animation:vtOutL .34s cubic-bezier(.2,.8,.2,1) both}
html[data-nav="fwd"]::view-transition-new(root){animation:vtInR .34s cubic-bezier(.2,.8,.2,1) both;box-shadow:-8px 0 24px rgba(0,0,0,.12)}
html[data-nav="back"]::view-transition-old(root){animation:vtOutR .3s cubic-bezier(.3,.7,.3,1) both;z-index:2;box-shadow:-8px 0 24px rgba(0,0,0,.12)}
html[data-nav="back"]::view-transition-new(root){animation:vtInL .3s cubic-bezier(.3,.7,.3,1) both}
@keyframes vtInR{from{transform:translateX(100%)}to{transform:none}}
@keyframes vtOutL{from{transform:none;opacity:1}to{transform:translateX(-28%);opacity:.75}}
@keyframes vtOutR{from{transform:none}to{transform:translateX(100%)}}
@keyframes vtInL{from{transform:translateX(-28%);opacity:.75}to{transform:none;opacity:1}}
/* task screen closes by sliding down */
.drawer.leaving{animation:drawerOut .24s cubic-bezier(.4,0,1,1) both!important}
@keyframes drawerOut{to{transform:translateY(24px);opacity:0}}
@media (max-width:860px){
  .app.in-thread.peek .lines{display:flex!important;position:relative;z-index:0}
  .app.peek .main.chatmain{position:relative;z-index:1;background:var(--chatbg,var(--paper))}
  .drawer.enter{animation:drawerIn .3s cubic-bezier(.2,.8,.2,1) both!important}
}
@keyframes drawerIn{from{transform:translateY(36px);opacity:0}to{transform:none;opacity:1}}
.ntsheet .inp{width:100%;min-height:46px;border:1px solid var(--sep,var(--rule));border-radius:12px;padding:10px 12px;background:var(--fill);color:var(--ink);font-size:16px;box-sizing:border-box}
.ntsheet .invrow{display:flex;gap:8px;align-items:center}
.ntsheet .invrow .inp{flex:1;min-width:0}
.ncnote{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:12px;background:color-mix(in srgb,var(--cobalt) 8%,var(--surface))}
.ncnote span{color:var(--muted);font-size:14px;line-height:1.35}
.ncnote .primary{margin-top:6px}

/* ---- New Contact (iPhone Contacts style) ---- */
.ncwrap{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.28);display:flex;align-items:flex-end;justify-content:center;animation:ncfade .22s ease both}
.ncwrap.out{animation:ncfadeout .2s ease both}
.ncwrap.out .ncsheet{animation:ncdown .2s ease-in both}
.ncsheet{width:100%;max-width:520px;height:calc(100% - max(44px, env(safe-area-inset-top,0px) + 10px));background:var(--paper);border-radius:12px 12px 0 0;display:flex;flex-direction:column;overflow:hidden;animation:ncup .32s cubic-bezier(.2,.8,.2,1) both;box-shadow:0 -1px 0 rgba(0,0,0,.04)}
.nchead{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:14px 16px 10px;font-size:17px}
.nchead b{font-weight:600;font-size:17px;color:var(--ink)}
.nctxt{border:0;background:none;color:var(--cobalt);font:400 17px var(--f-body);padding:4px 0;justify-self:start}
.nctxt.strong{font-weight:600;justify-self:end}
.nctxt:disabled{color:var(--muted);opacity:.5}
.ncbody{flex:1;overflow:auto;padding:6px 16px 30px}
.ncav{width:96px;height:96px;margin:6px auto 22px;border-radius:50%;background:linear-gradient(180deg,#A6ABB8,#868A96);display:grid;place-items:end center;overflow:hidden}
.ncav svg.i{width:78%;height:78%;fill:rgba(255,255,255,.95);stroke:none;margin-bottom:-6%}
.ncgroup{background:var(--surface);border-radius:10px;overflow:hidden;margin-bottom:22px}
.ncin{display:block;width:100%;border:0;background:none;padding:12px 16px;font:400 17px var(--f-body)!important;color:var(--ink);outline:none;min-height:44px;box-sizing:border-box}
.ncin+.ncin{box-shadow:inset 16px 0 0 var(--surface),inset 0 .5px 0 var(--sep,var(--rule))}
.ncphone{display:flex;align-items:center}
.nccc{position:relative;display:flex;align-items:center;gap:5px;padding:0 10px 0 16px;height:44px;color:var(--cobalt);font-size:17px;border-right:.5px solid var(--sep,var(--rule));flex:none}
.nccc span{display:none}
.nccc b{font-weight:400}
.nccc svg.i{width:13px;height:13px;transform:rotate(90deg);opacity:.7}
.nccc select{position:absolute;inset:0;opacity:0;width:100%;-webkit-appearance:none;appearance:none}
.ncphone .ncin{flex:1;min-width:0;padding-left:12px}
.ncfoot{margin:-14px 16px 22px;font-size:13px;color:var(--muted);line-height:1.35}
.ncrow{display:block;width:100%;text-align:left;border:0;background:none;padding:12px 16px;min-height:44px;color:var(--cobalt);font:400 17px var(--f-body)}
@keyframes ncup{from{transform:translateY(100%)}to{transform:none}}
@keyframes ncdown{to{transform:translateY(100%)}}
@keyframes ncfade{from{background:rgba(0,0,0,0)}}
@keyframes ncfadeout{to{background:rgba(0,0,0,0)}}
/* Opening a chat: it slides in from the right over the list, like WhatsApp and every iPhone app.
   Going back: it slides away to the right and the list comes back from the left. */
::view-transition-group(root){animation-duration:.38s}
::view-transition-old(root),::view-transition-new(root){mix-blend-mode:normal}
html[data-nav="fwd"]::view-transition-old(root){animation:vtOutL .38s cubic-bezier(.32,.72,0,1) both!important;z-index:1}
html[data-nav="fwd"]::view-transition-new(root){animation:vtInR .38s cubic-bezier(.32,.72,0,1) both!important;z-index:2;box-shadow:-10px 0 28px rgba(0,0,0,.14)!important}
html[data-nav="back"]::view-transition-old(root){animation:vtOutR .34s cubic-bezier(.32,.72,0,1) both!important;z-index:2;box-shadow:-10px 0 28px rgba(0,0,0,.14)!important}
html[data-nav="back"]::view-transition-new(root){animation:vtInL .34s cubic-bezier(.32,.72,0,1) both!important;z-index:1}
@keyframes vtInR{from{transform:translateX(100%)}to{transform:none}}
@keyframes vtOutL{from{transform:none;filter:none}to{transform:translateX(-30%);filter:brightness(.9)}}
@keyframes vtOutR{from{transform:none}to{transform:translateX(100%)}}
@keyframes vtInL{from{transform:translateX(-30%);filter:brightness(.9)}to{transform:none;filter:none}}
/* a sent message drops in softly from the composer; received ones fade up */
.msg.mine.fresh .brow{animation:sendDrop .18s cubic-bezier(.2,.9,.3,1) both}
.msg.mine.fresh{animation:none!important}
.msg.fresh:not(.mine) .brow{animation:recvDrop .26s cubic-bezier(.2,.8,.2,1) both}
.msg.fresh:not(.mine){animation:none!important}
@keyframes sendDrop{from{transform:translateY(8px) scale(.98);opacity:.35;transform-origin:100% 100%}to{transform:none;opacity:1}}
@keyframes recvDrop{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.msg.fresh .brow{animation:none!important}}

/* ---- press feedback on every button ---- */
button,a,[role=button],label.td2chip,.lineitem,.card,.contact,.srow.pick,.srow.pick1,.apick{transition:scale .3s cubic-bezier(.3,1.5,.5,1),background-color .15s,opacity .15s}
.tap{scale:.92;transition:scale .09s ease-out,background-color .1s!important}
.tapped{scale:1}
.lineitem.tap,.card.tap,.contact.tap,.srow.tap,.srow.pick.tap,.srow.pick1.tap,.td2card.tap,.ncrow.tap,.mact.tap{scale:.975}
.lineitem.tap,.contact.tap,.srow.pick.tap,.srow.pick1.tap,.ncrow.tap{box-shadow:inset 0 0 0 100vmax color-mix(in srgb,var(--ink) 5%,transparent)}
.mlink.tap,.oblink.tap,.nctxt.tap,.td2link.tap{scale:1;opacity:.5}
@media (prefers-reduced-motion:reduce){.tap{scale:1}}
.micbtn.sending.savecheck svg.i{transform:none!important;stroke-width:2.6}

/* ---- Gmail-style chat swipe ---- */
.swrow.gm .gmbg{position:absolute;inset:0;display:flex;align-items:center;gap:10px;padding:0 24px;color:#fff;font:600 14px var(--f-body);visibility:hidden}
.swrow.gm .gmbg.l{justify-content:flex-start;background:#1A73E8}
.swrow.gm .gmbg.r{justify-content:flex-end;background:#D93025}
.swrow.gm.sl .gmbg.l,.swrow.gm.sr .gmbg.r{visibility:visible}
.swrow.gm .gmbg b{opacity:0;transform:translateX(-6px);transition:opacity .15s,transform .15s}
.swrow.gm .gmbg.r b{transform:translateX(6px)}
.gmic{display:grid;place-items:center;width:30px;height:30px;transform:scale(.8);opacity:.75;transition:transform .2s cubic-bezier(.3,1.6,.5,1),opacity .15s}
.gmic svg.i{width:24px;height:24px;color:#fff;stroke:#fff}
.swrow.gm.armed .gmic{transform:scale(1.12);opacity:1}
.swrow.gm.armed .gmbg b{opacity:1;transform:none}
.swrow.gm:not(.armed) .gmbg{filter:saturate(.55) brightness(1.05)}
.swrow.gm > .lineitem{box-shadow:none}
.swrow.gm.sl > .lineitem,.swrow.gm.sr > .lineitem{box-shadow:0 1px 6px rgba(0,0,0,.12)}
.swrow.gm.anim > .lineitem{transition:transform .26s cubic-bezier(.2,.9,.25,1)}

.swrow.gm > .lineitem{background:var(--surface)!important}
.swrow.gm > .lineitem[aria-current="true"]{background:color-mix(in srgb,var(--cobalt) 10%,var(--surface))!important}
button:active{opacity:1}

/* ---- smoothness: let the browser scroll on its own thread and skip drawing off-screen items ---- */
.brow .strip{touch-action:pan-y}
.main.chatmain{touch-action:pan-y}
.swrow{touch-action:pan-y}
.stream,#list,.td2body,.dbody{overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.swrow > .lineitem,.brow .strip,.macts{backface-visibility:hidden}

/* With a photo wallpaper the chat bars are solid, so the strips under the clock and the home bar match them exactly */
.main.wp-photo .thead,.main.wp-photo .compose{background:var(--glass-solid,#F9F9F9)}

/* ===== Chat screen on phones: WhatsApp-style frosted top, iMessage-style floating bottom ===== */
:root{--g-fill:rgba(255,255,255,.62);--g-line:rgba(255,255,255,.75);--g-edge:rgba(0,0,0,.07);--g-top:rgba(247,247,250,.58);--g-shadow:0 2px 10px rgba(0,0,0,.08)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--g-fill:rgba(44,44,48,.62);--g-line:rgba(255,255,255,.14);--g-edge:rgba(255,255,255,.08);--g-top:rgba(22,22,26,.55);--g-shadow:0 2px 10px rgba(0,0,0,.35)}}
:root[data-theme="dark"]{--g-fill:rgba(44,44,48,.62);--g-line:rgba(255,255,255,.14);--g-edge:rgba(255,255,255,.08);--g-top:rgba(22,22,26,.55);--g-shadow:0 2px 10px rgba(0,0,0,.35)}
@media (max-width:860px){
  /* the chat runs edge to edge, under the clock and the home bar */
  .app.in-thread .main.chatmain{margin-top:calc(-1 * env(safe-area-inset-top,0px));margin-bottom:calc(-1 * env(safe-area-inset-bottom,0px));position:relative;overflow:hidden}
  .main.chatmain > .stream{position:absolute!important;inset:0!important;padding-top:calc(var(--th,60px) + 8px)!important;padding-bottom:calc(var(--ch,60px) + 8px)!important;scroll-padding-top:var(--th,60px);scroll-padding-bottom:var(--ch,60px)}

  /* top: frosted glass bar that the messages slide under */
  .main.chatmain > .thead{position:absolute!important;top:0;left:0;right:0;z-index:6;padding-top:calc(env(safe-area-inset-top,0px) + 6px)!important;padding-bottom:8px!important;
    background:var(--g-top)!important;-webkit-backdrop-filter:blur(24px) saturate(190%)!important;backdrop-filter:blur(24px) saturate(190%)!important;border-bottom:.5px solid var(--g-edge)!important;box-shadow:none!important}
  .main.chatmain > .thead .iconbtn{width:40px;height:40px;border-radius:999px;background:var(--g-fill);border:.5px solid var(--g-line);box-shadow:var(--g-shadow);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
  .main.chatmain > .thead .tinfo{background:transparent}

  /* bottom: no bar — a round + and a floating message pill, like iMessage */
  .main.chatmain > .compose{position:absolute!important;left:0;right:0;bottom:0;z-index:6;background:transparent!important;border-top:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
    padding-top:10px!important;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important}
  /* soft blur that fades out upward, so messages melt away behind the pill */
  .main.chatmain > .compose::before{content:"";position:absolute;left:0;right:0;top:-18px;bottom:0;z-index:-1;pointer-events:none;
    -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
    -webkit-mask-image:linear-gradient(to top,#000 55%,transparent);mask-image:linear-gradient(to top,#000 55%,transparent)}
  .main.chatmain .crow .plusbtn{width:42px!important;height:42px!important;background:var(--g-fill)!important;border:.5px solid var(--g-line);box-shadow:var(--g-shadow);-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%)}
  .main.chatmain .crow .inbox{min-height:42px!important;border-radius:21px!important;background:var(--g-fill)!important;border:.5px solid var(--g-line)!important;box-shadow:var(--g-shadow);-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%)}
  .main.chatmain .crow .inbox textarea{min-height:42px!important;padding-top:10px!important;padding-bottom:10px!important;padding-left:10px!important}
  .main.chatmain .crow .micbtn{width:42px!important;height:42px!important;background:var(--g-fill)!important;border:.5px solid var(--g-line);box-shadow:var(--g-shadow);-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%)}
  .main.chatmain .crow .sendbtn{width:42px!important;height:42px!important;box-shadow:var(--g-shadow)!important}
  .main.chatmain .compose .replybar,.main.chatmain .compose .recbar,.main.chatmain .compose .vdraft,.main.chatmain .compose .blockedbar,.main.chatmain .compose .hint,.main.chatmain .compose .emojipanel{
    background:var(--g-fill)!important;border:.5px solid var(--g-line)!important;border-radius:20px!important;box-shadow:var(--g-shadow);-webkit-backdrop-filter:blur(18px) saturate(180%);backdrop-filter:blur(18px) saturate(180%)}
}

/* Swipe left on a message = make a task. The icon fills in as you swipe, turns green and pops when letting go will do it. */
.brow .swi-l{right:auto;top:50%;margin-top:-17px;width:34px;height:34px;z-index:0;opacity:var(--p,0);transform:scale(calc(.55 + .45 * var(--p,0)));transition:opacity .2s,transform .2s cubic-bezier(.2,.9,.3,1.4),background .15s,color .15s;background:var(--surface);color:var(--ok,#34C759);box-shadow:0 1px 4px rgba(0,0,0,.14)}
.brow .swi-l svg.i{width:18px;height:18px}
.msg.swiping .brow .swi-l{transition:transform .14s cubic-bezier(.2,.9,.3,1.4),background .12s,color .12s}
.msg.swl .brow .swi-l{opacity:1;transform:scale(1.12);background:#34C759;color:#fff}
.msg.swiping .swi-r{transform:scale(calc(.55 + .45 * var(--o,0)))}
.msg.swr .swi-r{transform:scale(1.12)!important}
.brow .strip{position:relative;z-index:1}
.msg.swiping .fwdbtn,.msg.swiping .mchev{opacity:0!important;transition:opacity .1s}
.msg.tasked .brow .strip{animation:taskedPop .45s cubic-bezier(.2,.9,.3,1)}
@keyframes taskedPop{0%{filter:none}30%{filter:drop-shadow(0 0 0 rgba(52,199,89,0)) brightness(1.04)}100%{filter:none}}
.msg{touch-action:pan-y}

/* iPhone Safari (iOS 26+) tints its status bar and bottom bar from full-width fixed strips touching the edges.
   These strips are invisible (visibility:hidden is still sampled) and carry the colour of the bar next to each edge. */
#tint-top,#tint-bot{position:fixed;left:0;right:0;width:100%;height:12px;visibility:hidden;pointer-events:none;z-index:2147483000}
#tint-top{top:0;background-color:var(--edge-top,var(--paper))}
#tint-bot{bottom:0;background-color:var(--edge-bot,var(--paper))}

/* ===== Keyboard open (iPhone): nothing jumps; the app ends just above the keyboard ===== */
:root.kb-open{padding-bottom:0!important}
:root.kb-open .app{height:calc(100% - var(--kb,0px))!important}
:root.kb-open .scrim{bottom:var(--kb,0px)!important}
@media (max-width:860px){
  :root.kb-open .drawer{bottom:var(--kb,0px)!important}
  /* in a chat the wallpaper and messages carry on behind the keyboard's rounded corners; only the message box rides up */
  :root.kb-open .app.in-thread .main.chatmain{margin-bottom:calc(-1 * var(--kb,0px))!important}
  :root.kb-open .main.chatmain > .compose{bottom:var(--kb,0px)!important;padding-bottom:8px!important}
  :root.kb-open .main.chatmain > .stream{padding-bottom:calc(var(--ch,60px) + var(--kb,0px) + 8px)!important}
  :root.kb-open .main.chatmain > .compose::before{bottom:calc(-1 * var(--kb,0px))}
  /* in the app the keyboard tells us before it moves, so the message box glides up with it */
  :root.kb-anim .main.chatmain > .compose{transition:bottom .32s cubic-bezier(.2,.85,.25,1),padding-bottom .32s cubic-bezier(.2,.85,.25,1)}
}
/* whatever peeks out around the keyboard's rounded corners is the colour of the screen right above it */
:root.kb-open body{background:var(--edge-bot,var(--paper))}

/* ===== Task board on phones: one stage fills the screen, tabs on top, swipe between stages ===== */
.stagetabs{display:none}
@media (max-width:860px){
  .boardwrap{display:flex!important;flex-direction:column!important;min-height:0;overflow:hidden}
  .boardwrap > .bhead{flex:none}
  .stagetabs{display:flex;flex:none;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 16px 10px;-webkit-overflow-scrolling:touch}
  .stagetabs::-webkit-scrollbar{display:none}
  .stab{flex:none;display:flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:999px;border:0;background:var(--fill);color:var(--ink);font:600 14px var(--f-body);white-space:nowrap}
  .stab i{width:8px;height:8px;border-radius:50%;background:var(--c)}
  .stab b{font:600 12px var(--f-body);min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:grid;place-items:center;background:color-mix(in srgb,var(--ink) 9%,transparent);color:var(--muted)}
  .stab[aria-selected="true"]{background:var(--ink);color:var(--paper)}
  .stab[aria-selected="true"] b{background:color-mix(in srgb,var(--paper) 22%,transparent);color:var(--paper)}
  .board{flex:1 1 auto!important;min-height:0!important;display:grid!important;grid-auto-flow:column!important;grid-template-columns:none!important;grid-auto-columns:calc(100vw - 32px)!important;gap:12px!important;
    overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scroll-padding:0 16px;padding:0 16px!important;align-items:stretch!important;scrollbar-width:none;overscroll-behavior-x:contain}
  .board::-webkit-scrollbar{display:none}
  .board .col{scroll-snap-align:start!important;scroll-snap-stop:always;display:flex!important;flex-direction:column!important;min-height:0!important;height:auto!important;border-radius:20px!important;
    background:color-mix(in srgb,var(--c) 6%,var(--fill))!important;overflow:hidden}
  .board .colh{flex:none;padding:12px 8px 6px 14px!important;gap:2px}
  .board .colpill{background:none!important;color:var(--ink)!important;padding:0!important;font:700 17px var(--f-body)!important;display:flex;align-items:center;gap:8px}
  .board .colpill::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--c)}
  .board .colpill i{font:600 13px var(--f-body)!important;font-style:normal;color:var(--muted);background:none!important;padding:0!important}
  .board .colh .iconbtn{width:34px;height:34px;color:var(--muted)}
  .board .cards{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex!important;flex-direction:column;gap:8px!important;padding:4px 10px calc(110px + env(safe-area-inset-bottom,0px))!important}
  .board .card{flex:none;width:100%;text-align:left;border-radius:14px!important;padding:12px 14px!important;background:var(--surface)!important;box-shadow:0 1px 2px rgba(0,0,0,.06)!important;border:0!important}
  .board .card .ttl{font:600 15px/1.3 var(--f-body)!important;margin-bottom:8px}
  .board .colempty{flex:none;display:grid;place-items:center;padding:36px 12px!important;opacity:1!important;font:500 14px var(--f-body)!important;color:var(--muted)}
}
@media (max-width:860px){
  .board .colh{display:flex!important;align-items:center!important;width:100%}
  .board .colh > .grow{flex:1 1 auto}
  /* the board ends just above the floating tab bar */
  .board{margin-bottom:calc(var(--dock-b,8px) + var(--dock-h,58px) + 10px)!important}
  .board .cards{padding-bottom:14px!important}

  /* ===== Bottom tab bar: one floating glass capsule with icon + label, like iOS ===== */
  :root{--dock-h:60px}
  html .app .rail{left:50%!important;right:auto!important;transform:translateX(-50%);width:min(300px,calc(100% - 32px))!important;height:var(--dock-h)!important;padding:4px!important;gap:0!important;border-radius:999px!important;
    background:var(--g-fill,rgba(255,255,255,.7))!important;-webkit-backdrop-filter:blur(24px) saturate(190%)!important;backdrop-filter:blur(24px) saturate(190%)!important;
    border:.5px solid var(--g-line,rgba(255,255,255,.75))!important;box-shadow:0 6px 24px rgba(0,0,0,.12)!important;display:flex!important}
  html .app .navb{flex:1 1 0!important;height:100%!important;border-radius:999px!important;background:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:0!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;font:600 10.5px var(--f-body)!important;letter-spacing:0!important;color:var(--muted)!important}
  html .app .navb .pill{width:26px!important;height:24px!important;background:none!important}
  html .app .navb .pill svg.i{width:24px;height:24px}
  html .app .navb[aria-current="true"]{color:var(--cobalt)!important}
  html .app .navb[aria-current="true"]::after{inset:0!important;background:color-mix(in srgb,var(--ink) 8%,transparent)!important}
  html .app .navb .dot{top:5px!important;right:calc(50% - 22px)!important}
}
@media (max-width:860px){ html .app.in-thread .rail,html .app.with-drawer .rail{display:none!important} }
@media (max-width:860px){
  /* task screen: its own top bar reaches up under the clock, so the top of the screen is one colour */
  .drawer.td2{padding-top:0!important}
  .drawer.td2 > .td2head{padding-top:calc(env(safe-area-inset-top,0px) + 8px)!important}
}
/* a settings row whose control sits on its own line under the label (e.g. Backup reminder) */
.srow.swrap{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;row-gap:10px!important}
.srow.swrap > .stx{flex:1 1 0;min-width:0;text-align:left}
.srow.swrap > .segmini,.srow.swrap > .segmini.wide{flex:1 0 100%;width:100%}
/* Edit stage sheet */
.stgsw{display:flex;flex-wrap:wrap;gap:12px;padding:4px 2px 6px}
.stgsw .sw{width:36px;height:36px;border-radius:50%;border:0;background:var(--sw);padding:0;box-shadow:inset 0 0 0 2px color-mix(in srgb,#000 8%,transparent)}
.stgsw .sw.on{box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--sw)}
.stgmove{display:flex;gap:8px}
.stgmove .ghost{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;height:44px;border-radius:12px}
.stgmove .ghost:disabled{opacity:.35}
.dangertxt{color:var(--bad,#FF3B30)!important}
@media (max-width:860px){
  /* emoji + task icons sit exactly in the middle of the 42px message pill (and stay at the bottom when the text grows) */
  .main.chatmain .crow .inbox{align-items:flex-end!important}
  .main.chatmain .crow .inbox .inbtn{height:36px!important;margin:0 0 2.25px!important;align-self:flex-end!important}
  .main.chatmain .crow .inbox textarea{margin-bottom:1.5px!important;padding-top:9px!important;padding-bottom:9px!important;min-height:38px!important}
}

/* ===== Phones: settings-style screens are whole pages sliding in from the right ===== */
@keyframes pageIn{from{transform:translate3d(100%,0,0)}to{transform:none}}
@keyframes pageOut{from{transform:none}to{transform:translate3d(100%,0,0)}}
@media (max-width:860px){
  .scrim.page{background:var(--paper)!important;padding:0!important;display:block!important;place-items:initial!important;z-index:80!important;animation:pageIn .32s cubic-bezier(.2,.85,.25,1) both!important;box-shadow:-8px 0 24px rgba(0,0,0,.08)}
  .scrim.page.out{animation:pageOut .23s cubic-bezier(.4,0,.7,1) both!important;pointer-events:none}
  .scrim.page > .modal{position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;max-height:none!important;min-height:0!important;border-radius:0!important;box-shadow:none!important;border:0!important;
    background:var(--paper)!important;animation:none!important;padding:0 16px calc(28px + env(safe-area-inset-bottom,0px))!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;display:flex!important;flex-direction:column!important;gap:14px!important}
  .scrim.page > .modal > *{flex-shrink:0}
  .scrim.page .pagehead{position:sticky!important;top:0;z-index:5;margin:0 -16px!important;padding:calc(env(safe-area-inset-top,0px) + 6px) 10px 8px!important;display:grid!important;grid-template-columns:44px 1fr 44px!important;align-items:center!important;gap:0!important;
    background:var(--g-top,rgba(247,247,250,.8))!important;-webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);border-bottom:.5px solid var(--g-edge,rgba(0,0,0,.08))}
  .scrim.page .pagehead > .grow{display:none!important}
  .scrim.page .pagehead > .sheettitle{grid-column:2;grid-row:1;text-align:center;font:600 17px var(--f-body)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}
  .scrim.page .pagehead > .pageback{grid-column:1;grid-row:1;justify-self:start;width:40px;height:40px;border-radius:999px;color:var(--cobalt)!important;background:var(--g-fill,rgba(255,255,255,.6))!important;border:.5px solid var(--g-line,rgba(255,255,255,.7))}
  .scrim.page .pagehead > :not(.sheettitle):not(.pageback):not(.grow){grid-column:3;grid-row:1;justify-self:end}
}
.bkhero{display:flex;gap:12px;align-items:flex-start;padding:4px 2px}
.bkhero .bkic{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--cobalt);color:#fff}
.bkhero .bkic svg.i{width:22px;height:22px}
@media (max-width:860px){
  .scrim.page .pagedup{display:none!important}
  .scrim.page .modalacts > .iconbtn[aria-label="Cancel"],.scrim.page .modalacts > .ghost:only-child{display:none!important}
  .scrim.page .modalacts{justify-content:stretch}
  .scrim.page .modalacts > .round,.scrim.page .modalacts > .primary{flex:1;width:100%;border-radius:14px!important;height:50px}
}
@media (max-width:860px){ .scrim.page .modalacts{display:flex!important;width:100%} .scrim.page .modalacts > .round{flex:1 1 auto!important;width:100%!important;height:50px!important;border-radius:14px!important} }
/* anything opened from a page (a question, a menu, another page) appears on top of it */
.scrim.page ~ .scrim:not(.page){z-index:90!important}
.scrim.page ~ .scrim.page{z-index:85!important}
.scrim.page ~ .scrim.page ~ .scrim:not(.page){z-index:95!important}
@media (max-width:860px){ .scrim.page .modalacts > .pagesave{flex:1 1 auto!important;width:100%!important;height:50px!important;border-radius:14px!important;display:flex!important;align-items:center;justify-content:center;font:600 16px var(--f-body)!important} }
@media (max-width:860px){
  /* the stage column runs to the bottom edge of the screen; the floating Chats/Tasks bar sits on top of it */
  .boardwrap{margin-bottom:calc(-1 * env(safe-area-inset-bottom,0px))!important}
  .board{margin-bottom:-28px!important}
  .board .cards{padding-bottom:calc(var(--dock-b,8px) + var(--dock-h,60px) + 52px)!important}
}
/* the page itself never scrolls; letting the body paint into the screen edges lets the chat and the task board run
   all the way to the bottom of the screen (under the home bar) instead of stopping short of it */
html{overflow:hidden!important}
body{overflow:visible!important}

/* ===== Photo viewer, like iMessage ===== */
.imv{position:fixed;inset:0;z-index:120;background:color-mix(in srgb,var(--imv-bg) calc(var(--fade,1)*100%),transparent);color:var(--ink);--imv-bg:var(--surface,#fff);
  opacity:0;transition:opacity .22s;outline:none;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none}
.imv.in{opacity:1}
.imv.out{opacity:0;transition:opacity .26s .04s}
.imv.bare{--imv-bg:#000}
.imv-stage{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden}
.imv-media{grid-area:1/1;max-width:100%;max-height:100%;object-fit:contain;transform-origin:50% 50%;will-change:transform;-webkit-user-drag:none}
video.imv-media{width:100%;background:#000}
.imv-err{color:var(--muted)}
.imv-top{position:absolute;top:0;left:0;right:0;z-index:2;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;
  padding:calc(env(safe-area-inset-top,0px) + 6px) 12px 10px;background:var(--g-top,rgba(247,247,250,.8));-webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);
  border-bottom:.5px solid var(--g-edge,rgba(0,0,0,.08));transition:opacity .2s,transform .2s}
.imv-title{text-align:center;display:flex;flex-direction:column;line-height:1.2;min-width:0}
.imv-title b{font:600 16px var(--f-body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.imv-title span{font:400 12.5px var(--f-body);color:var(--muted)}
.imv-btn{width:42px;height:42px;border-radius:999px;border:0;display:grid;place-items:center;color:var(--cobalt);background:var(--g-fill,rgba(255,255,255,.6));box-shadow:inset 0 0 0 .5px var(--g-line,rgba(0,0,0,.06))}
.imv-btn svg.i,.imv-btn svg{width:22px;height:22px}
.imv-btn[hidden]{display:none}
.imv-bot{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;align-items:center;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));
  background:var(--g-top,rgba(247,247,250,.8));-webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);border-top:.5px solid var(--g-edge,rgba(0,0,0,.08));transition:opacity .2s,transform .2s}
.imv-count{flex:1;text-align:center;font:500 13px var(--f-body);color:var(--muted);font-variant-numeric:tabular-nums}
.imv-cap{position:absolute;left:0;right:0;bottom:calc(64px + env(safe-area-inset-bottom,0px));z-index:2;padding:10px 18px;text-align:center;font:400 15px/1.35 var(--f-body);
  background:color-mix(in srgb,var(--imv-bg) 80%,transparent);transition:opacity .2s}
.imv-cap[hidden]{display:none}
.imv.bare .imv-top{opacity:0;transform:translateY(-8px);pointer-events:none}
.imv.bare .imv-bot,.imv.bare .imv-cap,.imv.bare .imv-nav{opacity:0;pointer-events:none}
.imv.bare .imv-cap{transform:translateY(8px)}
.imv[style*="--fade"] .imv-top,.imv[style*="--fade"] .imv-bot,.imv[style*="--fade"] .imv-cap{opacity:0}
.imv-nav{position:absolute;top:50%;z-index:3;width:44px;height:44px;margin-top:-22px;border-radius:50%;border:0;display:grid;place-items:center;color:var(--ink);background:var(--g-fill,rgba(255,255,255,.7));box-shadow:0 2px 10px rgba(0,0,0,.12)}
.imv-nav.l{left:14px}.imv-nav.r{right:14px}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .imv{--imv-bg:#000}}
:root[data-theme="dark"] .imv{--imv-bg:#000}
/* Sign-in screens: keep the Continue / Verify button above the keyboard */
html.kb-open .ob2{min-height:0;height:100%;overflow-y:auto;padding-bottom:calc(var(--kb,0px) + 12px)}
html.kb-open .ob2main{padding-top:8px}
html.kb-open .ob2icon{width:56px;height:56px;margin-bottom:6px}
html.kb-anim .ob2{transition:padding-bottom .25s ease}

/* ===== Notes (a private place for important things, like Google Keep) ===== */
@media (max-width:860px){ html .app .rail{width:min(360px,calc(100% - 32px))!important} }
.noteswrap{--n-yellow:#fff3b0;--n-green:#d9f5d0;--n-blue:#d6ecff;--n-pink:#ffdbe6;--n-purple:#e9defc;--n-sand:#f3e6d3;--n-gray:#e8eaed}
@media (prefers-color-scheme:dark){ .noteswrap,.scrim{--n-yellow:#4a4223;--n-green:#26402a;--n-blue:#1f3550;--n-pink:#4a2633;--n-purple:#36294d;--n-sand:#44392b;--n-gray:#3a3c40} }
:root:not([data-theme="dark"]) .scrim{--n-yellow:#fff3b0;--n-green:#d9f5d0;--n-blue:#d6ecff;--n-pink:#ffdbe6;--n-purple:#e9defc;--n-sand:#f3e6d3;--n-gray:#e8eaed}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .scrim,:root:not([data-theme="light"]) .noteswrap{--n-yellow:#4a4223;--n-green:#26402a;--n-blue:#1f3550;--n-pink:#4a2633;--n-purple:#36294d;--n-sand:#44392b;--n-gray:#3a3c40} }
:root[data-theme="dark"] .scrim,:root[data-theme="dark"] .noteswrap{--n-yellow:#4a4223;--n-green:#26402a;--n-blue:#1f3550;--n-pink:#4a2633;--n-purple:#36294d;--n-sand:#44392b;--n-gray:#3a3c40}
.noteswrap .nsearch{margin:6px 0 10px}
.noteswrap .nsearch input{flex:1;min-width:0;height:40px;border:0;background:transparent;font:inherit;font-size:16px;color:var(--ink);outline:none}
.nchips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -2px 12px;padding:0 2px}
.nchips::-webkit-scrollbar{display:none}
.nchip{flex:none;height:34px;padding:0 14px;border-radius:17px;background:var(--fill);color:var(--ink);font:500 14px var(--f-body);display:flex;align-items:center;gap:6px;border:0}
.nchip svg.i{width:16px;height:16px;color:var(--muted)}
.nchip[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
.nchip[aria-pressed="true"] svg.i{color:inherit}
.nsec{font:600 12px var(--f-body);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:6px 4px 8px}
.ngrid{columns:2 170px;column-gap:10px;margin-bottom:14px}
@media (min-width:861px){ .ngrid{columns:4 220px;column-gap:14px} }
.ncard{display:block;width:100%;break-inside:avoid;margin:0 0 10px;text-align:left;background:var(--surface);color:var(--ink);border:.5px solid var(--rule);border-radius:14px;padding:12px 14px;position:relative;font:inherit;cursor:pointer;transition:transform .12s var(--ease),box-shadow .15s}
.ncard:active{transform:scale(.98)}
.ncard:hover{box-shadow:0 2px 10px rgba(0,0,0,.08)}
.ncard .ntitle{display:block;font:600 15.5px/1.3 var(--f-body);margin:0 18px 4px 0;word-break:break-word}
.ncard .ntext{font:400 14.5px/1.4 var(--f-body);white-space:pre-wrap;word-break:break-word;display:-webkit-box;-webkit-line-clamp:12;-webkit-box-orient:vertical;overflow:hidden;color:var(--ink)}
.ncard .npin{position:absolute;top:10px;right:10px;color:var(--muted)}
.ncard .npin svg.i{width:15px;height:15px}
.nlabels{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.nlab{font:500 12px var(--f-body);padding:3px 8px;border-radius:7px;background:color-mix(in srgb,var(--ink) 8%,transparent);color:var(--ink);border:0}
.nc-yellow{background:var(--n-yellow)!important}.nc-green{background:var(--n-green)!important}.nc-blue{background:var(--n-blue)!important}.nc-pink{background:var(--n-pink)!important}.nc-purple{background:var(--n-purple)!important}.nc-sand{background:var(--n-sand)!important}.nc-gray{background:var(--n-gray)!important}
.ncard[class*="nc-"]{border-color:transparent}
.nempty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:56px 24px;color:var(--muted)}
.nempty svg.i{width:44px;height:44px;opacity:.6}
.nempty b{color:var(--ink);font:600 17px var(--f-body)}
.nempty p{margin:0;max-width:320px;font-size:14.5px;line-height:1.45}
/* the note editor */
.modal .ned-title{width:100%;border:0;background:transparent;font:600 20px/1.3 var(--f-body);color:var(--ink);padding:6px 4px;outline:none}
.modal .ned-text{width:100%;min-height:160px;border:0;background:transparent;font:400 16px/1.5 var(--f-body);color:var(--ink);padding:4px;resize:none;outline:none}
.modal .ned-title::placeholder,.modal .ned-text::placeholder{color:var(--muted)}
.modal .nlabels{margin:2px 4px 6px}
.modal .nlab{cursor:pointer}
.ncolors{display:flex;gap:10px;flex-wrap:wrap;padding:10px 4px 4px}
.ncol{width:30px;height:30px;border-radius:50%;border:1.5px solid var(--rule);padding:0;background:var(--surface)}
.ncol.on{box-shadow:0 0 0 2px var(--paper),0 0 0 4px var(--cobalt)}
.ncol.nc-none{background:linear-gradient(135deg,var(--surface) 46%,var(--rule) 46%,var(--rule) 54%,var(--surface) 54%)}
.ntools{display:flex;align-items:center;gap:4px;padding:8px 0 2px;border-top:.5px solid var(--rule);margin-top:8px}
.ntools .iconbtn.on{color:var(--cobalt)}
.nedited{margin:4px 6px 0;font-size:12.5px;color:var(--muted);text-align:right}
.nnewlab{display:flex;gap:8px;padding:6px 4px 10px}
.nnewlab input,.ninput{flex:1;min-width:0;height:42px;border:1px solid var(--rule);border-radius:10px;padding:0 12px;background:var(--surface);color:var(--ink);font:inherit;font-size:16px}
.ninput{width:100%;margin:4px 0 12px}
.modal[class*="nc-"] .sheethead{background:transparent!important}
.noteswrap .search.nsearch{margin:6px 0 10px!important}
.modal[class*="nc-"]{transition:background .2s}

html body .scrim .modal.nc-yellow,html body .scrim.page .modal.nc-yellow{background:var(--n-yellow)!important}
html body .scrim .modal.nc-green,html body .scrim.page .modal.nc-green{background:var(--n-green)!important}
html body .scrim .modal.nc-blue,html body .scrim.page .modal.nc-blue{background:var(--n-blue)!important}
html body .scrim .modal.nc-pink,html body .scrim.page .modal.nc-pink{background:var(--n-pink)!important}
html body .scrim .modal.nc-purple,html body .scrim.page .modal.nc-purple{background:var(--n-purple)!important}
html body .scrim .modal.nc-sand,html body .scrim.page .modal.nc-sand{background:var(--n-sand)!important}
html body .scrim .modal.nc-gray,html body .scrim.page .modal.nc-gray{background:var(--n-gray)!important}
html body .scrim .modal[class*="nc-"] .sheethead,html body .scrim .modal[class*="nc-"] .pagehead{background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* iPhone zooms the page into any text box smaller than 16px and leaves it stuck there; keep every typing field at 16px on touch screens */
@media (pointer:coarse){
  html body .td2notes,html body .metabox input{font-size:16px!important}
  html body .td2subs .subrow input.subtx{font-size:16px!important}
}
/* board cards: the message under the chat-name title, so tasks from the same chat are easy to tell apart */
.card .tnote{font:400 13.5px/1.35 var(--f-body);color:var(--muted);margin:2px 0 6px;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}

/* ===== Press-and-hold like iOS / WhatsApp ===== */
.lineitem,.swrow{transition:transform .33s cubic-bezier(.3,0,.4,1),filter .33s}
.lineitem.pressing,.swrow:has(.lineitem.pressing){transform:scale(.965);filter:brightness(.93)}
.lpm{position:fixed;inset:0;z-index:9000}
.lpmback{position:absolute;inset:0;background:rgba(0,0,0,.18);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);opacity:0;transition:opacity .22s ease}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .lpmback{background:rgba(0,0,0,.42)}}
:root[data-theme="dark"] .lpmback{background:rgba(0,0,0,.42)}
.lpm.in .lpmback{opacity:1}
.lpmlift{z-index:1;background:var(--surface)!important;border-radius:14px!important;overflow:hidden;box-shadow:0 0 0 rgba(0,0,0,0);transform:translateY(0) scale(1);transition:transform .38s cubic-bezier(.2,.9,.25,1.12),box-shadow .3s;pointer-events:auto;list-style:none}
.lpmlift .swacts,.lpmlift .gmbg{display:none!important}
.lpmlift > .lineitem{transform:none!important}
.lpm.in .lpmlift{transform:translateY(var(--dy,0)) scale(1.02);box-shadow:0 12px 40px rgba(0,0,0,.22)}
.lpmmenu{position:fixed;z-index:2;background:var(--glass,var(--surface));-webkit-backdrop-filter:blur(30px) saturate(180%);backdrop-filter:blur(30px) saturate(180%);background:color-mix(in srgb,var(--surface) 86%,transparent);border-radius:14px;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.2);opacity:0;transform:scale(.6);transition:transform .34s cubic-bezier(.2,.9,.25,1.12),opacity .18s ease}
.lpm.in .lpmmenu{opacity:1;transform:scale(1)}
.lpm.out .lpmback{opacity:0;transition-duration:.18s}
.lpm.out .lpmmenu{opacity:0;transform:scale(.7);transition:transform .18s ease-in,opacity .15s}
.lpm.out .lpmlift{transform:translateY(0) scale(1);box-shadow:none;transition:transform .2s ease-in,box-shadow .2s}
.lpmmenu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:46px;padding:0 16px;border:0;background:transparent;color:var(--ink);font:400 16.5px var(--f-body);text-align:left;border-top:.5px solid var(--rule)}
.lpmmenu button:first-child{border-top:0}
.lpmmenu button:active,.lpmmenu button:focus-visible{background:var(--fill);outline:none}
.lpmmenu button svg.i{width:20px;height:20px;color:var(--ink);flex:none}
.lpmmenu button.danger,.lpmmenu button.danger svg.i{color:#ff3b30}
.lpmmenu .lpmsep{height:8px;background:color-mix(in srgb,var(--ink) 6%,transparent)}
.lpmmenu .lpmsep + button{border-top:0}
@media (prefers-reduced-motion:reduce){.lpmmenu,.lpmlift,.lpmback,.lineitem,.swrow{transition:none!important}}
html body .lpmmenu button{color:var(--ink)!important}
html body .lpmmenu button.danger{color:#ff3b30!important}
.lpmlift,.lpmlift *{filter:none!important;opacity:1!important}
.lpmlift .lineitem{background:var(--surface)!important}

/* ===== Holding a message: WhatsApp / iMessage style ===== */
.strip{transition:transform .3s cubic-bezier(.3,0,.4,1)}
.strip.pressing{transform:scale(.96)}
.lpm.msgmenu .lpmlift{background:transparent!important;border-radius:0!important;box-shadow:none!important;overflow:visible}
.lpm.msgmenu .lpmlift.lpmrow{display:block!important;padding:0!important;margin:0!important;max-width:none!important;min-height:0!important}
.lpm.msgmenu .lpmlift .strip{box-shadow:0 10px 34px rgba(0,0,0,.22);margin:0!important;max-width:100%!important;transform:none!important}
.lpm.msgmenu .lpmlift.clip .strip{max-height:100%;overflow:hidden}
.lpm.msgmenu .lpmlift .fwdbtn,.lpm.msgmenu .lpmlift .mchev,.lpm.msgmenu .lpmlift .swi,.lpm.msgmenu .lpmlift .who,.lpm.msgmenu .lpmlift .selck{display:none!important}
.lpm.msgmenu.in .lpmlift{transform:translateY(var(--dy,0)) scale(1)}
.lpmreact{display:flex;align-items:center;gap:2px;padding:5px 6px;border-radius:28px;background:var(--surface);box-shadow:0 8px 30px rgba(0,0,0,.18);opacity:0;transform:scale(.5);transition:transform .34s cubic-bezier(.2,.9,.25,1.15),opacity .16s;z-index:3;max-width:calc(100vw - 24px)}
.lpm.in .lpmreact{opacity:1;transform:scale(1)}
.lpm.out .lpmreact{opacity:0;transform:scale(.6);transition-duration:.16s}
.lpmreact button{width:42px;height:42px;border-radius:50%;border:0;background:transparent;font-size:27px;line-height:1;display:flex;align-items:center;justify-content:center;transition:transform .15s}
.lpmreact button:active{transform:scale(1.25)}
.lpmreact button.on{background:color-mix(in srgb,var(--cobalt) 18%,transparent)}
.lpmreact .emore{background:var(--fill);font-size:0;width:36px;height:36px;margin-left:2px}
.lpmreact .emore svg.i{width:20px;height:20px;color:var(--muted)}
.lpmreact.more{flex-wrap:wrap;width:min(330px,calc(100vw - 24px));border-radius:22px;justify-content:center}
/* the old buttons beside every bubble: only on photos, videos and files (like WhatsApp) */
.msg:not(.rich) > .fwdbtn,.msg:not(.rich) .fwdbtn{display:none!important}
.lpm.msgmenu .lpmlift .strip{white-space:normal}
.lpm.msgmenu .lpmlift .strip .time,.lpm.msgmenu .lpmlift .strip .meta{float:none}
.lpm.msgmenu .lpmlift .brow{display:flex;margin:0!important;padding:0!important;transform:none!important}
.lpm.msgmenu .lpmlift.mine .brow,.lpm.msgmenu .lpmlift.lpmrow.mine .brow{justify-content:flex-end}
/* chat header: frosted like WhatsApp, but messages scrolling under it must not be readable */
:root{--g-top:rgba(247,247,250,.86)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--g-top:rgba(22,22,26,.84)}}
:root[data-theme="dark"]{--g-top:rgba(22,22,26,.84)}
/* a full-screen page (new chat, settings pages...) covers the floating tab bar */
body:has(.scrim.page) .app .rail{display:none!important}
/* unread chats stand out like in Messages / WhatsApp: darker preview and a blue time */
.lineitem.unread .pv,.lineitem.unread .pvt{color:var(--ink)!important}
.lineitem.unread .meta .mono{color:var(--cobalt)!important;font-weight:600}

/* Settings is its own tab on phones (like WhatsApp); on a computer the avatar at the bottom of the rail opens it */
.navb.navset{display:none}
@media (max-width:860px){
  .navb.navset{display:flex}
  html .app .rail{width:min(420px,calc(100% - 24px))!important}
  body:has(section.flow) .app .rail{display:none!important}
}
.tobottom{position:absolute;right:14px;bottom:calc(var(--ch,60px) + var(--kb,0px) + 12px);z-index:6;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:var(--surface);color:var(--muted);border:0;box-shadow:0 2px 10px rgba(0,0,0,.18);opacity:0;transform:scale(.6);pointer-events:none;transition:opacity .18s var(--ease),transform .22s var(--ease)}
.tobottom.on{opacity:1;transform:scale(1);pointer-events:auto}
.tobottom svg{width:22px;height:22px}

/* ===== Chat row swipe, like iOS Mail / WhatsApp ===== */
/* the row sticks to your finger (no lag); it only animates when it snaps open/closed */
html body .swrow > .lineitem{transition:none!important}
html body .swrow.anim > .lineitem{transition:transform .34s cubic-bezier(.2,.9,.25,1)!important}
.swrow{background:var(--surface)}
.swacts{width:0;overflow:hidden;visibility:visible!important;z-index:0}
.swrow.anim .swacts{transition:width .34s cubic-bezier(.2,.9,.25,1)}
.swacts.l{flex-direction:row}
.swbtn{flex:1 1 0;min-width:0;overflow:hidden;white-space:nowrap;font:500 13px/1 var(--f-body);gap:5px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.swbtn span{opacity:.98}
.swbtn svg.i{width:24px;height:24px;stroke:#fff}
.swbtn:active{filter:brightness(.88)}
/* full swipe: the outer button takes the whole width; its icon rides along with the edge of the row */
.swrow .swbtn{transition:flex .22s cubic-bezier(.2,.9,.25,1)}
.swrow.full.sl .swacts.l .swbtn:first-child{flex:1 0 100%;justify-content:center;align-items:flex-end;padding-right:28px}
.swrow.full.sr .swacts.r .swbtn:last-child{flex:1 0 100%;justify-content:center;align-items:flex-start;padding-left:28px}
.swrow.full.sl .swacts.l .swbtn:not(:first-child),.swrow.full.sr .swacts.r .swbtn:not(:last-child){flex:0 0 0}
.sw-gray{background:#8E8E93}.sw-blue{background:#007AFF}.sw-red{background:#FF3B30}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .sw-gray{background:#636366}:root:not([data-theme="light"]) .sw-blue{background:#0A84FF}:root:not([data-theme="light"]) .sw-red{background:#FF453A}}
:root[data-theme="dark"] .sw-gray{background:#636366}
/* deleted row folds away */
.swrow.fold{transition:height .26s cubic-bezier(.3,0,.3,1),opacity .2s;opacity:0;overflow:hidden}
/* no sink-in effect once you're swiping */
.swrow.sl,.swrow.sr{transform:none!important;filter:none!important}

/* ===== Default profile pictures, exactly like WhatsApp ===== */
:root{--wa-av-bg:#DFE5E7;--wa-av-fg:#FFFFFF}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--wa-av-bg:#6A7175;--wa-av-fg:#CFD4D6}}
:root[data-theme="dark"]{--wa-av-bg:#6A7175;--wa-av-fg:#CFD4D6}
html:root body .av.wa-av.mgav:not(:has(img)),html:root body .glyph.wa-av.mgav{background:var(--wa-av-bg)!important;background-image:none!important;display:grid!important;place-items:end center!important;overflow:hidden;padding:0!important;box-shadow:none!important;border:0!important}
html body .wa-av svg.i{width:100%!important;height:100%!important;margin:0!important;fill:var(--wa-av-fg)!important;stroke:none;color:var(--wa-av-fg)}
html body .wa-av.wa-grp svg.i{width:104%!important;height:104%!important;margin:0 0 -6% 4%!important}
html body .wa-av .mgi{display:none}

/* invisible stand-in for the message box during a locked recording (keeps the keyboard open) */
textarea.kbkeep{position:absolute!important;left:0;bottom:0;width:1px!important;height:1px!important;min-height:0!important;opacity:0!important;padding:0!important;border:0!important;resize:none;pointer-events:none;font-size:16px;caret-color:transparent;background:transparent;color:transparent}
.compose .inner{position:relative}

/* ===== WhatsApp parity pack ===== */
/* unread count in the badge */
html body .lineitem .badge.num{font:600 12.5px/20px var(--f-body)!important;min-width:20px!important;width:auto!important;height:20px!important;padding:0 6px!important;border-radius:10px!important;color:#fff!important;text-align:center}
/* filter chips under the search box */
.chatchips{margin:2px 16px 8px;padding:0}
.chatchips .nchip{height:32px;padding:0 13px;font-size:14px}
.chatchips .chipn{font-weight:600;opacity:.6;margin-left:2px}
/* "3 unread messages" line */
.unreaddiv{display:flex;justify-content:center;margin:12px -12px 10px;padding:5px 0;background:color-mix(in srgb,var(--surface) 62%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.unreaddiv span{font:600 12.5px var(--f-body);color:var(--muted);background:var(--surface);padding:4px 12px;border-radius:999px;box-shadow:0 1px 1px rgba(0,0,0,.05)}
/* star next to the time */
.mt .mstar{display:inline-flex;vertical-align:-1px;margin-right:3px}
.mt .mstar svg.i{width:11px;height:11px;fill:currentColor;stroke:none}
/* starred list */
.starrow{align-items:flex-start!important;text-align:left}
.starrow .startx{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;color:var(--ink);opacity:.85}
.starrow .iconbtn svg.i{fill:#FFCC00;stroke:#FFCC00}
.starrow .sval{flex:none;font-size:12px}
/* message info */
.infobub{background:var(--bubble-me,var(--cobalt));color:#fff;border-radius:16px;padding:10px 13px;margin:2px 0 14px;max-width:88%;margin-left:auto}
.infobub .infotx{white-space:pre-wrap;word-break:break-word;font-size:15.5px;line-height:1.35}
.infobub .infowhen{font-size:11.5px;opacity:.8;text-align:right;margin-top:4px}
.infolab{display:flex;align-items:center;gap:6px}
.infolab .tk svg.i{width:17px;height:17px}
.infolab.read,.infolab .tk.read{color:#34B7F1}
/* delete options */
.delopts .srow{justify-content:center;text-align:center}
.delopts .srow b{color:#FF3B30;font-weight:500}
/* repeat chip in a task */
.td2chip.rep.set{color:var(--cobalt)}
.td2rep{color:var(--cobalt);padding:0 9px}

/* Full-screen screens with a text box (photo preview, status, forward): everything stays above the keyboard,
   so the Send button is never hidden behind it */
:root.kb-open .overlay.mprev,:root.kb-open .overlay.compose-status,:root.kb-open .overlay.story,:root.kb-open .overlay.fwdview{bottom:var(--kb,0px)!important;padding-bottom:0!important}
:root.kb-open .mp-bot{padding-bottom:8px!important}
:root.kb-open .mprev .mp-strip{display:none}
.sc-cap{font-size:16px}

/* ===== Keyboard sweep: every text box and its buttons stay above the keyboard ===== */
/* New Contact: the sheet ends above the keyboard, the big picture shrinks, and the form scrolls */
:root.kb-open .ncwrap{bottom:var(--kb,0px)}
.ncbody{overflow-y:auto;-webkit-overflow-scrolling:touch;min-height:0;flex:1}
:root.kb-open .ncbody .ncav{width:56px!important;height:56px!important;margin-top:4px!important;margin-bottom:10px!important}
:root.kb-open .ncbody{padding-bottom:24px}
/* small pop-up boxes (delete account, passwords…): never taller than the space above the keyboard */
:root.kb-open .scrim:not(.page) > .modal{max-height:calc(100% - 12px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch}
:root.kb-open .scrim:not(.page){align-items:flex-start!important;padding-top:max(8px, env(safe-area-inset-top,0px))!important}
/* task notes: room to scroll the box you're typing in well clear of the keyboard */
:root.kb-open .td2body{padding-bottom:160px!important}
:root.kb-open .scrim.page > .modal{padding-bottom:120px}

/* ===== Voice note recording, laid out like WhatsApp ===== */
/* holding: blinking red mic, timer, "Slide to cancel ‹" */
.holdbar .recmic{display:grid;place-items:center;color:#FF3B30;animation:recblink 1s ease-in-out infinite;flex:none}
.holdbar .recmic svg.i{width:22px;height:22px;stroke:#FF3B30}
.holdbar .rectime{font-size:17px!important;font-weight:400!important}
.holdbar .slidecancel{margin-left:auto!important;margin-right:auto!important;gap:4px!important}
.holdbar .slidecancel svg.i{width:15px!important;height:15px!important}
/* locked: two rows */
.vrec{display:flex;flex-direction:column;gap:8px;padding:8px 6px 4px;border-radius:22px}
@media (max-width:860px){ .main.chatmain .compose .vrec{background:var(--g-fill);border:.5px solid var(--g-line);box-shadow:var(--g-shadow);-webkit-backdrop-filter:blur(18px) saturate(180%);backdrop-filter:blur(18px) saturate(180%)} }
.vrtop{display:flex;align-items:center;gap:12px;min-height:40px;padding:0 10px}
.vrtop .rectime{font:400 17px var(--f-body);font-variant-numeric:tabular-nums;min-width:42px;color:var(--ink)}
.vrwave{flex:1;min-width:0;height:30px;color:var(--ink);opacity:.7;display:block}
.vrplayer{flex:1;min-width:0;display:flex;align-items:center;gap:10px;height:40px;padding:0 14px 0 6px;border-radius:20px;background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.vrplay{width:32px;height:32px;display:grid;place-items:center;color:var(--ink);flex:none;border-radius:50%}
.vrplay svg.i{width:22px;height:22px}
.vrtrack{flex:1;min-width:0;height:32px;position:relative;cursor:pointer;touch-action:none}
.vrline{position:absolute;left:0;right:0;top:50%;border-top:2px dotted color-mix(in srgb,var(--ink) 38%,transparent);transform:translateY(-1px)}
.vrdot{position:absolute;left:0;top:50%;width:11px;height:11px;border-radius:50%;background:var(--cobalt);transform:translate(-50%,-50%)}
.vrdur{font:400 15px var(--f-body);font-variant-numeric:tabular-nums;color:var(--ink);flex:none}
.vrbot{display:flex;align-items:center;justify-content:space-between;padding:0 4px}
.vrbtn{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;color:var(--ink);background:none;border:0;-webkit-tap-highlight-color:transparent;transition:transform .12s}
.vrbtn:active{transform:scale(.9)}
.vrbtn svg.i{width:24px;height:24px}
.vrbtn.vrmid{color:#FF3B30}
.vrbtn.vrmid svg.i{width:30px;height:30px;stroke:#FF3B30;stroke-width:1.9}
.vrbtn.vrsend{width:38px;height:38px;background:var(--cobalt);color:#fff;margin-right:3px}
.vrbtn.vrsend svg.i{width:19px;height:19px;stroke:#fff;stroke-width:2.2;transform:rotate(-90deg)}
/* the mic under your finger while holding: soft blue circle with a white mic, as in WhatsApp */
html body .main.chatmain .crow .micbtn.pressed{background:color-mix(in srgb,var(--cobalt) 62%,#fff)!important;border-color:transparent!important;color:#fff!important}
html body .main.chatmain .crow .micbtn.pressed svg.i{stroke:#fff!important;color:#fff!important}

/* ===== Group chats: each person's profile photo next to their messages, like WhatsApp ===== */
.stream .msg.ingrp{padding-left:36px}
.stream .msg.ingrp > .mav{position:absolute;left:0;top:0;width:30px;height:30px;padding:0;border:0;background:none;border-radius:50%;z-index:1;-webkit-tap-highlight-color:transparent}
.stream .msg.ingrp > .mav .av{width:30px!important;height:30px!important;font-size:12px}
.stream .msg.ingrp > .who{margin-left:12px}
.stream .msg.ingrp.selmode{padding-left:72px}
.stream .msg.ingrp.selmode > .mav{left:36px}

/* ===== Chat wallpaper screen, like WhatsApp ===== */
/* solid colors: each has a light and a dark version */
:root{--wpc0:#DCEFE3;--wpc1:#D8E6F5;--wpc2:#EADCF2;--wpc3:#F6DDE3;--wpc4:#F7E6CF;--wpc5:#F2EFC9;--wpc6:#D5EEEC;--wpc7:#E2E4E8}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--wpc0:#13261C;--wpc1:#14202F;--wpc2:#221A2C;--wpc3:#2B1A1F;--wpc4:#2C2216;--wpc5:#272515;--wpc6:#132826;--wpc7:#1C1E22}}
:root[data-theme="dark"]{--wpc0:#13261C;--wpc1:#14202F;--wpc2:#221A2C;--wpc3:#2B1A1F;--wpc4:#2C2216;--wpc5:#272515;--wpc6:#132826;--wpc7:#1C1E22}
.wpc-0{--wpcol:var(--wpc0)}.wpc-1{--wpcol:var(--wpc1)}.wpc-2{--wpcol:var(--wpc2)}.wpc-3{--wpcol:var(--wpc3)}.wpc-4{--wpcol:var(--wpc4)}.wpc-5{--wpcol:var(--wpc5)}.wpc-6{--wpcol:var(--wpc6)}.wpc-7{--wpcol:var(--wpc7)}
html body .main.chatmain.wp-color{background-image:none!important;background-color:var(--wpcol)!important}
/* live preview */
.wpprev{position:relative;height:250px;border-radius:18px;overflow:hidden;margin:2px 0 6px;box-shadow:0 0 0 .5px var(--rule),0 6px 20px rgba(0,0,0,.08);flex:none}
.wppbg{position:absolute;inset:0;background-color:var(--chatbg);transition:background-color .25s}
.wppbg.tools{background-image:var(--wp-tools);background-size:190px 190px}
.wppbg.plain{background-image:none}
.wppbg[class*="wpc-"]{background-color:var(--wpcol)}
.wppbg.photo{background-size:cover;background-position:center}
.wppbg.photo::after{content:"";position:absolute;inset:0;background:var(--chatbg);opacity:var(--wpdim,0)}
.wppchat{position:relative;display:flex;flex-direction:column;gap:6px;padding:16px 14px;height:100%;justify-content:flex-end}
.wppday{align-self:center;font:600 11.5px var(--f-body);color:var(--muted);background:var(--surface);padding:3px 10px;border-radius:8px;margin-bottom:4px;box-shadow:0 1px 1px rgba(0,0,0,.05)}
.wppb{max-width:74%;padding:7px 11px 6px;border-radius:16px;font-size:15px;line-height:1.3;display:flex;align-items:flex-end;gap:8px;box-shadow:0 1px 1px rgba(0,0,0,.06)}
.wppb.them{align-self:flex-start;background:var(--surface);color:var(--ink);border-bottom-left-radius:5px}
.wppb.me{align-self:flex-end;background:var(--cobalt);color:#fff;border-bottom-right-radius:5px}
.wppt{font-size:10.5px;opacity:.6;white-space:nowrap;flex:none}
/* choices */
.wpgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.wpgrid.colors{grid-template-columns:repeat(4,1fr)}
.wptile{position:relative;padding:0;border:0;background:none;border-radius:14px;-webkit-tap-highlight-color:transparent;transition:transform .15s cubic-bezier(.2,.9,.25,1)}
.wptile:active{transform:scale(.95)}
.wpsw{display:grid;place-items:center;align-content:center;gap:4px;width:100%;aspect-ratio:3/4;border-radius:14px;background-color:var(--chatbg);box-shadow:0 0 0 .5px var(--rule) inset;overflow:hidden;color:var(--muted)}
.wpgrid.colors .wpsw{aspect-ratio:1}
.wpsw.tools{background-image:var(--wp-tools);background-size:110px 110px}
.wpsw[class*="wpc-"]{background-color:var(--wpcol)}
.wpsw.add{background:var(--fill)}
.wpsw.add svg.i{width:26px;height:26px;color:var(--cobalt)}
.wpsw.add small{font:600 12px var(--f-body);color:var(--cobalt)}
.wptile[aria-pressed="true"] .wpsw{box-shadow:0 0 0 2.5px var(--cobalt)}
.wpcheck{position:absolute;right:6px;bottom:6px;width:22px;height:22px;border-radius:50%;background:var(--cobalt);display:grid;place-items:center;box-shadow:0 0 0 2px var(--surface);animation:wpck .22s cubic-bezier(.2,.9,.25,1.3) both}
.wpcheck svg.i{width:13px;height:13px;stroke:#fff;stroke-width:3}
@keyframes wpck{from{transform:scale(.3);opacity:0}}
.wpopts2{margin-top:14px}
.wpdim{display:flex;flex-direction:column;align-items:stretch!important;gap:8px;padding-top:12px!important;padding-bottom:12px!important}
.wpdimctl{display:flex;align-items:center;gap:10px;color:var(--muted)}
.wpdimctl svg.i{width:18px;height:18px;flex:none}
.wpdimctl input{flex:1;accent-color:var(--cobalt)}
b.blue{color:var(--cobalt);font-weight:400}
.wpnote{text-align:center;margin:14px 0 4px}

/* ===== Hold-to-record: smooth like WhatsApp ===== */
.main.chatmain .crow{position:relative}
html body .main.chatmain .crow .micbtn{transition:scale .26s cubic-bezier(.3,1.45,.5,1),background-color .18s,transform .3s cubic-bezier(.3,1.35,.5,1);will-change:transform}
html body .main.chatmain .crow .micbtn.pressed{transform:none;scale:1.6;position:relative;z-index:6;transition:scale .26s cubic-bezier(.3,1.45,.5,1),background-color .18s;box-shadow:0 6px 18px rgba(0,122,255,.3)}
/* the bar slides in from the right */
.holdbar:not(.ghost){animation:holdIn .24s cubic-bezier(.2,.9,.25,1) both}
@keyframes holdIn{from{opacity:0;transform:translate3d(24px,0,0)}}
.holdbar .slidecancel{will-change:transform,opacity;transition:none!important}
.holdbar .slidecancel svg.i{animation:nudgeL 1.3s ease-in-out infinite}
@keyframes nudgeL{0%,100%{transform:none}50%{transform:translateX(-4px)}}
/* lock pill: rises in, and the lock closes as your finger slides up */
.holdbar .lockhint{right:-36px!important;bottom:84px!important;width:36px!important;padding:0!important;height:calc(78px - var(--lk,0)*30px);justify-content:space-between;gap:0!important;
  border-radius:18px;background:var(--surface)!important;box-shadow:0 4px 16px rgba(0,0,0,.16)!important;animation:lockIn .3s cubic-bezier(.2,.9,.3,1.2) .08s both;overflow:hidden}
@keyframes lockIn{from{opacity:0;transform:translate3d(0,22px,0) scale(.8)}}
.lockhint .lkbody{display:grid;place-items:center;height:36px;flex:none;color:var(--muted);transition:color .15s}
.lockhint .lkbody svg.i{width:19px;height:19px}
.lockhint .lkshackle{transform:translateY(calc((1 - var(--lk,0))*-2.6px));transition:transform .08s}
.lockhint .lkarrow{display:grid;place-items:center;height:26px;opacity:calc(1 - var(--lk,0)*1.4);color:var(--muted)}
.lockhint .lkarrow svg.i{width:15px;height:15px;animation:nudgeU 1.2s ease-in-out infinite}
@keyframes nudgeU{0%,100%{transform:none}50%{transform:translateY(-4px)}}
.lockhint.near .lkbody{color:var(--cobalt)}
.crow.locking .lockhint{transition:transform .12s,opacity .12s;transform:translateY(-14px);opacity:0}
/* leaving: slides away when sent; the mic turns into a bin when cancelled */
.holdbar.ghost{pointer-events:none;z-index:60;display:flex}
.holdbar.ghost .lockhint{display:none}
.holdbar.ghost.send{animation:ghostSend .26s cubic-bezier(.4,0,.6,1) both}
@keyframes ghostSend{to{opacity:0;transform:translate3d(0,-6px,0)}}
.holdbar.ghost.cancel > :not(.recbin){animation:ghostFade .18s ease both}
@keyframes ghostFade{to{opacity:0}}
.holdbar.ghost .recbin{display:grid;place-items:center;color:#FF3B30;animation:binDrop .6s cubic-bezier(.3,.7,.3,1) both}
.holdbar.ghost .recbin svg.i{width:22px;height:22px;stroke:#FF3B30}
@keyframes binDrop{0%{transform:translateY(-8px) scale(.6);opacity:0}25%{transform:none;opacity:1}45%{transform:rotate(-12deg)}60%{transform:rotate(10deg)}75%{transform:none;opacity:1}100%{transform:translateY(10px) scale(.7);opacity:0}}
@media (prefers-reduced-motion:reduce){.holdbar:not(.ghost),.lockhint,.holdbar .slidecancel svg.i,.lkarrow svg.i{animation:none!important}}

/* ===== Linked devices ===== */
/* computer: QR sign-in, like WhatsApp Web */
.ob2.lqpage{display:grid;place-items:center;min-height:100%;padding:24px}
.lqwrap{display:flex;align-items:center;gap:56px;max-width:880px;width:100%;background:var(--surface);border-radius:24px;padding:44px 48px;box-shadow:0 10px 40px rgba(0,0,0,.08),0 0 0 .5px var(--rule)}
.lqtext{flex:1;min-width:0}
.lqtitle{font:600 28px/1.2 var(--f-display,var(--f-body));letter-spacing:-.01em;margin:0 0 24px;color:var(--ink)}
.lqsteps{margin:0;padding:0;list-style:none;counter-reset:s;display:grid;gap:16px}
.lqsteps li{counter-increment:s;display:flex;gap:14px;align-items:baseline;font-size:17px;line-height:1.45;color:var(--ink)}
.lqsteps li::before{content:counter(s);flex:none;width:26px;height:26px;border-radius:50%;background:var(--fill);color:var(--ink);font:600 14px/26px var(--f-body);text-align:center;transform:translateY(1px)}
.lqalt{margin-top:28px;font-size:15px}
.lqcode{position:relative;flex:none;width:264px;height:264px;display:grid;place-items:center;border-radius:16px;background:#fff;box-shadow:0 0 0 .5px var(--rule)}
.lqsvg,.lqsvg svg{width:248px;height:248px;display:block}
.lqlogo{position:absolute;left:50%;top:50%;width:46px;height:46px;transform:translate(-50%,-50%);border-radius:12px;box-shadow:0 0 0 5px #fff}
.lqreload{display:grid;place-items:center;gap:10px;width:150px;height:150px;border-radius:50%;background:var(--cobalt);color:#fff;border:0;font:500 14px var(--f-body);padding:20px;cursor:pointer}
.lqreload svg.i{width:30px;height:30px;stroke:#fff}
.lqdone{display:grid;place-items:center;gap:10px;color:#111;font-size:15px}
@media (max-width:760px){.lqwrap{flex-direction:column-reverse;gap:28px;padding:28px 22px}.lqtitle{font-size:22px}}
/* phone: Linked devices page */
.ldhero{display:flex;flex-direction:column;align-items:center;text-align:center;padding:10px 6px 18px}
.ldart{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,#34C759 16%,transparent);color:#28A745;margin-bottom:14px}
.ldart svg.i{width:46px;height:46px;stroke-width:1.4}
.ldsub{margin:0 0 16px;color:var(--muted);font-size:14.5px;line-height:1.4;max-width:300px}
.ldbtn{width:100%;max-width:320px;height:48px;border-radius:24px;border:0;background:var(--cobalt);color:#fff;font:600 16px var(--f-body);cursor:pointer;transition:transform .12s}
.ldbtn:active{transform:scale(.97)}
.lditem small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.ldic{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--fill);flex:none;color:var(--ink)}
.ldic svg.i{width:20px;height:20px}
.ldnote{display:flex;align-items:center;justify-content:center;gap:6px;text-align:center;margin-top:16px}
.ldnote svg.i{width:13px;height:13px;flex:none}
/* phone: the camera screen */
.overlay.lscan{position:fixed;inset:0;z-index:300;background:#000;color:#fff;animation:lsIn .22s ease both}
.overlay.lscan.out{animation:lsOut .2s ease both}
@keyframes lsIn{from{opacity:0}} @keyframes lsOut{to{opacity:0}}
.lsvid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lsshade{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.lsframe{position:relative;width:min(72vw,300px);aspect-ratio:1;border-radius:22px;box-shadow:0 0 0 100vmax rgba(0,0,0,.5);transition:transform .2s}
.lsframe i{position:absolute;width:40px;height:40px;border:4px solid #fff;transition:border-color .2s}
.lsframe i:nth-child(1){left:-2px;top:-2px;border-right:0;border-bottom:0;border-top-left-radius:22px}
.lsframe i:nth-child(2){right:-2px;top:-2px;border-left:0;border-bottom:0;border-top-right-radius:22px}
.lsframe i:nth-child(3){left:-2px;bottom:-2px;border-right:0;border-top:0;border-bottom-left-radius:22px}
.lsframe i:nth-child(4){right:-2px;bottom:-2px;border-left:0;border-top:0;border-bottom-right-radius:22px}
.lscan.got .lsframe{transform:scale(.94)} .lscan.got .lsframe i{border-color:#34C759}
.lstop{position:absolute;left:0;right:0;top:0;padding:calc(env(safe-area-inset-top,0px) + 8px) 12px 8px;display:flex;align-items:center;gap:8px}
.lstop b{font:600 17px var(--f-body);flex:1;text-align:center;margin-right:44px}
.lsx{width:44px;height:44px;color:#fff!important;background:rgba(255,255,255,.14)!important;border-radius:50%}
.lsx svg.i{stroke:#fff}
.lsbot{position:absolute;left:0;right:0;bottom:0;padding:18px 26px calc(env(safe-area-inset-bottom,0px) + 30px);text-align:center}
.lsmsg{font:600 16px/1.35 var(--f-body);margin:0 0 8px} .lsmsg.err{color:#FF9F0A}
.lshint{font-size:14px;opacity:.75;margin:0}
html body .ob2.lqpage{max-width:none!important;width:100%!important}
html body .lqpage .lqwrap{width:min(880px,92vw)}
.lqsteps li{display:block!important;position:relative;padding-left:40px}
.lqsteps li::before{position:absolute;left:0;top:0;transform:none!important}
.ldnote{display:block!important;text-align:center}
.ldnote svg.i{display:inline-block;vertical-align:-1px;margin-right:4px}

/* New chat on a phone: slides in from the right like opening a chat, and back out to the right when closed */
@media (max-width:860px){
  html body section.flow.enter{animation:flowUp .38s cubic-bezier(.32,.72,0,1) both!important}
  html body section.flow.leave{animation:flowDown .34s cubic-bezier(.32,.72,0,1) both!important;pointer-events:none}
}
@keyframes flowUp{from{transform:translate3d(100%,0,0)}to{transform:none}}
@keyframes flowDown{from{transform:none}to{transform:translate3d(100%,0,0)}}
@media (max-width:860px){
  .lines.hasflow{position:relative;overflow:hidden}
  .lines.hasflow > section.flow.onlist{position:absolute;inset:0;z-index:40;background:var(--surface);box-shadow:-10px 0 28px rgba(0,0,0,.14)}
  .lines.hasflow > .flowdim{position:absolute;inset:0;z-index:39;background:rgba(0,0,0,.14);animation:fdIn .38s ease both;pointer-events:none}
  .lines.hasflow > .flowdim.leave{animation:fdOut .34s ease both}
  .lines.hasflow > section.flow.onlist:not(.enter):not(.leave) ~ .flowdim, .lines.hasflow > .flowdim:not(.leave){}
}
@keyframes fdIn{from{opacity:0}} @keyframes fdOut{to{opacity:0}}

/* Tasks people filter: WhatsApp picture + first name */
.chips .ichip.pchip{width:auto!important;padding:0 12px 0 3px!important;gap:6px;display:inline-flex;align-items:center;border-radius:999px}
.chips .ichip.pchip .pcname{font:500 14px var(--f-body);white-space:nowrap}
.chips .ichip.pchip .av{width:26px!important;height:26px!important;flex:none}

/* ===== Phone: the "new" button (New chat / New task / New note) sits right next to the tab bar,
   in the same frosted glass and the same height, like Apple's own apps ===== */
@media (max-width:860px){
  :root{--dock-h:56px}
  html body .app:has(.vfab:not(.fabstack), .chatfab) .rail{left:max(12px,env(safe-area-inset-left,0px))!important;right:auto!important;transform:none!important;
    width:min(400px, calc(100% - 24px - var(--dock-h) - 10px))!important}
  html body .app .fab.vfab:not(.fabstack):not(.mini), html body .app .lines .fab.chatfab{
    position:fixed!important;left:auto!important;right:max(12px,env(safe-area-inset-right,0px))!important;bottom:var(--dock-b)!important;
    width:var(--dock-h)!important;height:var(--dock-h)!important;border-radius:50%!important;padding:0!important;
    background:var(--g-fill)!important;-webkit-backdrop-filter:blur(24px) saturate(1.9)!important;backdrop-filter:blur(24px) saturate(1.9)!important;
    border:1px solid var(--g-line)!important;box-shadow:0 6px 24px rgba(0,0,0,.12)!important;color:var(--cobalt)!important;z-index:36;
    transition:transform .18s cubic-bezier(.2,.9,.25,1.3)}
  html body .app .fab.vfab:not(.fabstack):not(.mini)::before, html body .app .lines .fab.chatfab::before,
  html body .app .fab.vfab:not(.fabstack):not(.mini)::after, html body .app .lines .fab.chatfab::after{display:none!important}
  html body .app .fab.vfab:not(.fabstack):not(.mini) svg.i, html body .app .lines .fab.chatfab svg.i{width:25px!important;height:25px!important;stroke:var(--cobalt)!important;stroke-width:2.1!important;filter:none!important}
  html body .app .fab.vfab:not(.fabstack):not(.mini):active, html body .app .lines .fab.chatfab:active{transform:scale(.92)}
}
/* Settings (no "new" button): the bar spans the whole width */
@media (max-width:860px){
  html body .app:not(:has(.vfab:not(.fabstack), .chatfab)) .rail{left:max(12px,env(safe-area-inset-left,0px))!important;right:max(12px,env(safe-area-inset-right,0px))!important;transform:none!important;width:auto!important}
}

/* ===================== Files ===================== */
.st-fileswrap .toprow{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.st-fileswrap .st-fview{width:38px;height:38px;border-radius:50%;background:var(--fill)!important;color:var(--ink)}
.st-fileswrap .st-fview svg.i{width:19px;height:19px}
.st-fhead.sub{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;margin:0 -4px 10px;gap:4px}
.st-fhead.sub .pageback{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:var(--cobalt);background:var(--fill)}
.st-fhtitle{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}
.st-fhtitle h1{font:700 20px var(--f-body);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-fhfold svg.i{width:24px;height:24px}
.st-fmore{width:40px;height:40px;border-radius:50%;background:var(--fill)!important}
.st-fsearch{margin:0 0 10px!important;position:relative}
.st-fsearch .st-clearq{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:26px;height:26px;border-radius:50%;border:0;background:var(--muted);color:var(--surface);display:grid;place-items:center;opacity:.6}
.st-fsearch .st-clearq svg.i{width:13px;height:13px;stroke-width:3}
.st-fchips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px 6px!important;padding:0 16px 4px!important}
.st-fchips::-webkit-scrollbar{display:none}
.st-fchips .nchip{flex:none;height:32px;padding:0 14px;font-size:14px}
.st-fbody .seg-label{margin-top:14px}
/* folders */
.st-fgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
.st-fcard{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 12px 11px;border:0;border-radius:16px;background:var(--surface);box-shadow:0 0 0 .5px var(--rule),0 1px 2px rgba(0,0,0,.04);text-align:left;cursor:pointer;min-width:0;transition:transform .15s}
.st-fcard:active{transform:scale(.96)}
.st-fcard .st-fcico svg.i{width:38px;height:38px;margin:0 0 4px -2px}
.st-fcard b{font:600 15px var(--f-body);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.st-fcard small{color:var(--muted);font-size:12.5px}
.st-fcard.st-fadd{background:none;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--muted) 40%,transparent);border-radius:16px}
.st-fcard.st-fadd .st-fcico{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--cobalt-soft,var(--fill));color:var(--cobalt);margin:0 0 4px}
.st-fcard.st-fadd .st-fcico svg.i{width:22px;height:22px;margin:0}
.st-fcard.st-fadd b{color:var(--cobalt);font-weight:500}
/* rows */
.st-flist{background:var(--surface);border-radius:16px;overflow:hidden;box-shadow:0 0 0 .5px var(--rule)}
.st-frow{display:flex;align-items:center;gap:12px;padding:10px 6px 10px 12px;cursor:pointer;position:relative}
.st-frow + .st-frow::before{content:"";position:absolute;left:66px;right:0;top:0;border-top:.5px solid var(--sep,var(--rule))}
.st-frow:active{background:var(--fill)}
.st-fthumb{width:42px;height:42px;border-radius:10px;flex:none;overflow:hidden;display:grid;place-items:center}
.st-fthumb img{width:100%;height:100%;object-fit:cover}
.st-fthumb.ic{background:color-mix(in srgb,var(--t) 15%,transparent);color:var(--t)}
.st-fthumb.ic svg.i{width:22px;height:22px}
.st-ftx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.st-ftx b{font:600 15.5px var(--f-body);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-ftx .st-fsnip{font-size:14px;color:var(--ink);opacity:.72;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-ftx .st-fsnip.link{color:var(--cobalt);opacity:1}
.st-ftx small{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-fdots{width:34px;height:34px;color:var(--muted);flex:none}
.st-fdots svg.i{width:18px;height:18px}
/* photo grid */
.st-fphotos{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;border-radius:14px;overflow:hidden}
.st-fph{position:relative;aspect-ratio:1;border:0;padding:0;background:var(--fill);cursor:pointer;overflow:hidden}
.st-fph img{width:100%;height:100%;object-fit:cover;display:block}
.st-fphic{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px}
.st-fphic svg.i{width:28px;height:28px}
.st-fphic small{font-size:11.5px;color:var(--ink);opacity:.75;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-fvid{position:absolute;left:6px;bottom:6px;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.45);display:grid;place-items:center}
.st-fvid svg.i{width:12px;height:12px;color:#fff}
/* empty, intro, storage line */
.st-fempty{margin-top:40px;text-align:center}
.st-fempic{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:var(--fill);color:var(--muted)}
.st-fempic svg.i{width:34px;height:34px}
.st-fintro{text-align:center;padding:30px 20px 10px;color:var(--muted)}
.st-fintro .st-fempic{color:var(--cobalt);background:var(--cobalt-soft,var(--fill))}
.st-fintro b{display:block;font:700 19px var(--f-body);color:var(--ink);margin-bottom:6px}
.st-fintro p{margin:0;font-size:14.5px;line-height:1.45}
.st-fstore{text-align:center;margin:18px 0 0}
.st-fstore svg.i{width:12px;height:12px;vertical-align:-1px}
/* sheets */
.st-fpick .st-fpic svg.i,.st-fpick .st-fpic{width:26px;height:26px;flex:none}
.st-fpick .srow{gap:12px}
.st-fnewpreview{display:grid;place-items:center;margin:4px 0 2px}
.st-fnewpreview svg.i{width:76px;height:76px}
.st-fnamein{width:100%;font-size:17px;padding:12px 14px;border-radius:12px;border:0;background:var(--fill);color:var(--ink);outline:none;font-family:inherit}
.st-ftext{resize:none;line-height:1.4}
.st-fcolors{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:4px 0}
.st-fcolor{width:30px;height:30px;border-radius:50%;border:0;background:var(--c);cursor:pointer;box-shadow:0 0 0 2px var(--surface),0 0 0 2px transparent;transition:box-shadow .15s,transform .15s}
.st-fcolor[aria-checked="true"]{box-shadow:0 0 0 2.5px var(--surface),0 0 0 5px var(--c);transform:scale(1.05)}
.st-fcolors.big .st-fcolor{width:40px;height:40px}
.st-faddrow .sic{width:34px;height:34px;border-radius:10px}
.st-faddrow small{display:block;color:var(--muted);font-size:13px;margin-top:1px}
.st-faudio{width:100%;margin:6px 0 4px}
.st-ftxt{white-space:normal;word-break:break-word;font-size:16px;line-height:1.45;margin:4px 2px;color:var(--ink);user-select:text;-webkit-user-select:text}
.st-ftxt a{color:var(--cobalt)}
.st-ffrom{margin:8px 2px 0}
.st-fopenacts{justify-content:flex-start!important;flex-wrap:wrap}
.st-ffilecard{display:flex;align-items:center;gap:14px;padding:14px;border-radius:14px;background:var(--fill);margin-bottom:6px}
.st-ffilecard b{display:block;font-weight:600;word-break:break-all}
.st-ffilecard small{color:var(--muted)}
.st-ffileic{position:relative;width:46px;height:56px;flex:none;color:var(--cobalt);display:grid;place-items:center}
.st-ffileic svg.i{width:46px;height:56px;stroke-width:1.3}
.st-ffileic b{position:absolute;bottom:10px;font:700 9px var(--f-body);color:var(--cobalt)}

/* Task screen: its parts keep their size and the screen scrolls (it used to squeeze them when the keyboard came up) */
html body .drawer.td2 .td2body > *{flex-shrink:0!important}
html body .drawer.td2 .td2body{overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;min-height:0}
@media (max-width:860px){ :root.kb-open .drawer.td2{bottom:var(--kb,0px)!important;height:auto!important} }
html body .drawer.td2 .td2notes{overflow:hidden;resize:none}

/* ===== Task lists ===== */
.tlists{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:2px -16px 10px;padding:2px 16px 4px}
.tlists::-webkit-scrollbar{display:none}
.tlpill{--lc:var(--ink);flex:none;display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 12px 0 11px;border-radius:12px;border:0;cursor:pointer;
  background:var(--surface);box-shadow:0 0 0 .5px var(--rule),0 1px 2px rgba(0,0,0,.04);color:var(--ink);font:600 14.5px var(--f-body);transition:background .15s,color .15s,transform .12s}
.tlpill:active{transform:scale(.95)}
.tlpill svg.i{width:16px;height:16px;color:var(--muted)}
.tlpill b{font:600 12.5px var(--f-body);color:var(--muted);min-width:14px;text-align:center}
.tlpill.on{background:var(--lc);color:#fff;box-shadow:none}
.tlpill.on b,.tlpill.on svg.i{color:rgba(255,255,255,.85)}
.tlpill.on:not([style*="--lc"]){background:var(--ink);color:var(--surface)}
.tlpill.on:not([style*="--lc"]) b,.tlpill.on:not([style*="--lc"]) svg.i{color:color-mix(in srgb,var(--surface) 75%,transparent)}
.tldot{width:10px;height:10px;border-radius:50%;background:var(--lc);flex:none;display:inline-block}
.tlpill.on .tldot{background:#fff}
.tldot.big{width:14px;height:14px;margin:0 6px}
.tlnew{color:var(--cobalt);padding:0 12px;background:none;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--muted) 35%,transparent)}
.tlnew svg.i{color:var(--cobalt);width:17px;height:17px}
.tlnew span:empty{display:none}
.tlpreview{display:grid;place-items:center;margin:4px 0 2px}
.tlpreview span{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:var(--lc);color:#fff;box-shadow:0 6px 16px color-mix(in srgb,var(--lc) 35%,transparent)}
.tlpreview svg.i{width:32px;height:32px;stroke:#fff}
.td2chip.tlchip{width:auto!important;padding:0 12px!important;gap:7px;display:inline-flex;align-items:center;border-radius:999px}
.td2chip.tlchip.set{background:color-mix(in srgb,var(--lc) 14%,transparent)!important;color:var(--ink)}
.td2chip.tlchip span{font:600 14px var(--f-body);max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tltag{display:inline-flex;align-items:center;gap:5px;font:600 11.5px var(--f-body);color:var(--muted);max-width:110px;overflow:hidden;white-space:nowrap}
.tltag .tldot{width:8px;height:8px}

/* ===== Scheduled messages ===== */
.schbar{display:flex;align-items:center;gap:8px;width:100%;margin:0 0 6px;padding:8px 12px;border:0;border-radius:14px;cursor:pointer;
  background:var(--g-fill);-webkit-backdrop-filter:blur(18px) saturate(180%);backdrop-filter:blur(18px) saturate(180%);box-shadow:0 0 0 .5px var(--g-line);color:var(--ink);font:500 14px var(--f-body);text-align:left}
.schbar svg.i{width:18px;height:18px;color:var(--cobalt);flex:none}
.schbar svg.i:last-child{width:14px;height:14px;color:var(--muted);margin-left:auto}
.schbar span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.schprev{display:flex;justify-content:flex-end;margin:2px 0 4px}
.schbub{max-width:85%;padding:9px 13px;border-radius:18px;border-bottom-right-radius:6px;background:var(--cobalt);color:#fff;font-size:15.5px;line-height:1.35;white-space:pre-wrap;word-break:break-word;margin-left:auto}
.schopts .srow .sval{font-size:13.5px;color:var(--muted)}
.schcustom{display:flex;flex-direction:column;gap:10px}
.schdt{font-size:16px}
.schnote{display:block;text-align:center;margin:12px 0 0}
.schnote svg.i{width:12px;height:12px;vertical-align:-1px}
.schlist{display:flex;flex-direction:column;gap:12px}
.schitem{background:var(--surface);border-radius:16px;padding:12px;box-shadow:0 0 0 .5px var(--rule);display:flex;flex-direction:column;gap:8px}
.schwhen{display:flex;align-items:center;gap:6px;color:var(--muted);font:600 13px var(--f-body)}
.schwhen svg.i{width:15px;height:15px;color:var(--cobalt)}
.schacts{display:flex;gap:6px;flex-wrap:wrap}
.schacts .ghost{font-size:14px;padding:6px 12px}
.schacts .ghost.danger{color:#FF3B30}
/* the send button lifted above its menu keeps its look */
.lpm .sendbtn{background:var(--cobalt)!important;color:#fff!important;border-radius:50%!important;display:grid!important;place-items:center!important;border:0!important;box-shadow:0 4px 14px rgba(0,122,255,.35)!important}
.lpm .sendbtn svg.i{stroke:#fff!important;color:#fff!important}
/* ===== Website = a computer linked to your phone (like WhatsApp Web) ===== */
html body .ob2.lqpage{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:22px;min-height:100%;padding:28px 24px 32px;background:var(--bg);box-sizing:border-box;overflow:auto}
.lqbrand{align-self:stretch;max-width:880px;width:min(880px,92vw);margin:0 auto 6px;display:flex;align-items:center;gap:10px;color:var(--ink);font:600 17px/1 var(--f-body)}
.lqbrand img{width:34px;height:34px;border-radius:9px}
html body .lqpage .lqwrap{margin:0 auto}
.lqget{width:min(880px,92vw);box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;background:var(--surface);border-radius:18px;padding:18px 24px;box-shadow:0 0 0 .5px var(--rule);color:var(--ink-2,var(--muted));font-size:15px}
.lqfoot{display:flex;align-items:center;justify-content:center;gap:6px;margin:4px 0 0;color:var(--muted);font-size:13.5px}
.lqfoot svg.i{width:14px;height:14px}
.gabtns{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.gabtn{display:inline-flex;align-items:center;gap:9px;min-width:150px;height:48px;padding:0 16px 0 13px;border-radius:12px;background:#111;color:#fff!important;text-decoration:none;box-sizing:border-box;transition:transform .15s,opacity .15s}
.gabtn:active{transform:scale(.97);opacity:.85}
.gabtn svg.i{width:24px;height:24px;flex:none;color:#fff}
.gabtn span{display:flex;flex-direction:column;line-height:1.05;text-align:left}
.gabtn small{font-size:10.5px;opacity:.85;letter-spacing:.02em}
.gabtn b{font-size:17px;font-weight:600;letter-spacing:-.01em}
:root[data-theme="dark"] .gabtn{background:#fff;color:#111!important}:root[data-theme="dark"] .gabtn svg.i{color:#111}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .gabtn{background:#fff;color:#111!important}:root:not([data-theme="light"]) .gabtn svg.i{color:#111}}
html body .ob2.gapage{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:100%;padding:calc(env(safe-area-inset-top) + 24px) 18px calc(env(safe-area-inset-bottom) + 24px);background:var(--bg);box-sizing:border-box;max-width:none;width:100%}
.gacard{width:100%;max-width:420px;box-sizing:border-box;background:var(--surface);border-radius:24px;padding:34px 22px 24px;text-align:center;box-shadow:0 10px 40px rgba(0,0,0,.07),0 0 0 .5px var(--rule)}
.gaicon{width:84px;height:84px;border-radius:20px;box-shadow:0 6px 18px rgba(0,0,0,.12);margin-bottom:18px}
.gatitle{font:700 26px/1.2 var(--f-display,var(--f-body));letter-spacing:-.015em;margin:0 0 10px;color:var(--ink)}
.gasub{margin:0 0 22px;color:var(--muted);font-size:16px;line-height:1.45}
.ganote{display:flex;gap:12px;align-items:flex-start;text-align:left;margin-top:24px;padding:16px;border-radius:16px;background:var(--fill)}
.ganote svg.i{width:26px;height:26px;flex:none;color:var(--cobalt)}
.ganote p{margin:0;font-size:14.5px;line-height:1.45;color:var(--ink)}
.syncbar{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:9999;display:flex;align-items:center;gap:10px;padding:11px 18px;border-radius:999px;background:var(--ink);color:var(--bg);font-size:14.5px;font-weight:500;box-shadow:0 8px 28px rgba(0,0,0,.2)}
.syncbar .spin{width:16px;height:16px;border-width:2px}
