/* Trulya Mail */
@font-face{font-family:"DM Sans";font-weight:400;font-style:normal;font-display:swap;src:url(/fonts/dm-sans-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"DM Sans";font-weight:500;font-style:normal;font-display:swap;src:url(/fonts/dm-sans-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"DM Sans";font-weight:600;font-style:normal;font-display:swap;src:url(/fonts/dm-sans-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"DM Sans";font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/dm-sans-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Roboto Slab";font-weight:600;font-style:normal;font-display:swap;src:url(/fonts/roboto-slab-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Roboto Slab";font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/roboto-slab-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"TwemojiFlags";font-display:swap;src:url(/fonts/twemoji-flags.woff2) format("woff2");unicode-range:U+1F1E6-1F1FF,U+1F3F4,U+E0062-E007F}
@font-face{font-family:"Hanuman";font-weight:400;font-style:normal;font-display:swap;src:url(/fonts/hanuman-khmer-400-normal.woff2) format("woff2")}
@font-face{font-family:"Hanuman";font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/hanuman-khmer-700-normal.woff2) format("woff2")}

:root{
  --navy:#123D4F; --teal:#1C5F78; --gold:#C9952A; --gold-soft:#E9C77E;
  --ground:#EEEBE4; --cream:#F9F5EE; --panel:#FFFFFF; --line:#ECE8DF; --line2:#D9D3C7;
  --ink:#1E2A33; --ink2:#33414B; --muted:#5E6B75; --chip:#F1EEE7; --sel:#E3EDF2; --hover:#F3F7F9;
  --danger:#A63A26; --danger-soft:#FBEDEA; --warn-bg:#FBF5E8; --warn-ink:#6B4E12;
  --r:14px; --font:"DM Sans","Hanuman",system-ui,-apple-system,"Segoe UI",sans-serif; --slab:"Roboto Slab","Hanuman",Georgia,serif;
}
*{box-sizing:border-box}
html,body,#app{height:100%}
#app{overflow:hidden}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font);font-size:15px;-webkit-font-smoothing:antialiased}
html[lang="km"] body{line-height:1.55}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--teal)}a:hover{color:var(--navy)}
svg.ic{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
[hidden]{display:none!important}

/* ---------- buttons ---------- */
.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;padding:0 13px;border-radius:9px;border:1px solid var(--line2);background:#fff;color:var(--ink2);font-size:14px;font-weight:600;white-space:nowrap}
.btn:hover{background:var(--hover)}
.btn.primary{background:var(--navy);border-color:var(--navy);color:#fff}
.btn.primary:hover{background:#0E3242}
.btn.gold{background:var(--gold);border-color:var(--gold);color:var(--navy);font-weight:700}
.btn.gold:hover{background:#B9871F}
.btn.ghost{border-color:transparent;background:transparent}
.btn.danger{color:var(--danger);border-color:transparent;background:transparent}
.btn.danger:hover{background:var(--danger-soft)}
.btn:disabled{opacity:.55;cursor:default}
.ib{width:38px;height:38px;border:none;border-radius:9px;background:var(--chip);color:var(--ink2);display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.ib:hover{background:#E6E1D6}
.ib.on{color:#8A6417;background:#FBF0D6}

/* ---------- sign in ---------- */
.login{min-height:100%;height:100%;overflow-y:auto;display:flex;flex-wrap:wrap;background:var(--cream)}
.login .brand{flex:1 1 480px;background:var(--navy);color:#fff;padding:56px;display:flex;flex-direction:column;justify-content:space-between;gap:40px}
.login .brand h1{font-family:var(--slab);font-size:clamp(30px,4vw,44px);line-height:1.15;margin:0;max-width:480px}
.login .brand h1 em{color:var(--gold-soft)}
.login .brand p{color:#C9DAE3;font-size:17px;line-height:1.6;max-width:440px;margin:14px 0 0}
.login .brand small{color:#9FB8C5}
.logo{display:flex;align-items:center;gap:10px;font-family:var(--slab);font-weight:700;letter-spacing:1px}
.logo .mark{width:36px;height:36px;border-radius:10px;background:var(--gold);color:var(--navy);display:flex;align-items:center;justify-content:center;font-size:18px}
.logo b{color:var(--gold-soft);font-weight:600}
.login .brand .logo{font-size:24px}
.login .brand .logo .mark{width:46px;height:46px;font-size:23px;border-radius:12px}
.login .side{flex:1 1 440px;display:flex;align-items:center;justify-content:center;padding:40px 20px}
.login form{width:100%;max-width:400px;display:flex;flex-direction:column;gap:16px}
.login h2{font-family:var(--slab);font-size:28px;color:var(--navy);margin:0 0 4px}
.login .lead{color:var(--muted);margin:0}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;color:var(--ink2)}
.field input,.field select,.field textarea{height:46px;border:1px solid #CFC8BA;border-radius:10px;padding:0 13px;font-size:15px;font-weight:400;background:#fff;color:var(--ink)}
.field textarea{height:auto;padding:10px 13px}
.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.check{display:flex;align-items:center;gap:8px;min-height:40px;font-size:14px;color:var(--ink2);font-weight:500}
.check input{width:18px;height:18px;accent-color:var(--navy)}
.err{background:var(--danger-soft);color:var(--danger);border-radius:10px;padding:10px 13px;font-size:14px}
.note{display:flex;gap:10px;padding:12px 14px;border-radius:10px;background:#fff;border:1px solid var(--line);font-size:13px;line-height:1.5;color:var(--muted)}
.langs{display:flex;gap:8px;justify-content:center;font-size:14px}
.langs button{border:none;background:none;color:var(--teal);font-weight:600;padding:6px}
.langs button[aria-pressed="true"]{color:var(--navy);font-weight:700;text-decoration:underline}

/* ---------- shell ---------- */
.shell{height:100%;display:flex;flex-direction:column}
.top{display:flex;align-items:center;gap:14px;padding:9px 16px;background:var(--navy);color:#fff;flex:0 0 auto}
.top .logo{font-size:18px}
.top .search{flex:1 1 300px;max-width:620px;display:flex;align-items:center;gap:8px;background:#fff;border-radius:10px;padding:0 6px 0 13px;height:40px;color:var(--muted)}
.top .search input{flex:1;border:none;outline:none;background:transparent;color:var(--ink);font-size:15px;min-width:0}
.top .search .ib{width:30px;height:30px;background:transparent}
.top .tools{display:flex;align-items:center;gap:4px;margin-left:auto}
.top .tools .ib{background:transparent;color:#D7E3EA;width:42px;height:42px}
.top .tools .ib:hover{background:#1C5F78;color:#fff}
.avatar{width:38px;height:38px;border-radius:50%;background:var(--teal);color:#fff;border:2px solid var(--gold-soft);font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;text-transform:uppercase}
.top .menu-btn{display:none}
.body{flex:1;min-height:0;display:flex;gap:10px;padding:10px}
.pane{background:var(--panel);border-radius:var(--r);min-height:0;display:flex;flex-direction:column;overflow:hidden}

/* folders */
.folders{flex:0 0 240px;padding:12px 8px;overflow-y:auto}
/* rows keep their full height and the list scrolls (otherwise the panel squeezes them and hides the section headings) */
.folders>*{flex-shrink:0}
.folders .new{margin:0 4px 12px;height:44px;font-size:15px}
.folders .acct{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);padding:6px 12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fitem{display:flex;align-items:center;gap:11px;padding:0 6px 0 12px;height:40px;border-radius:10px;color:var(--ink2);text-decoration:none;font-size:15px;cursor:pointer;border:none;background:none;width:100%;text-align:left;position:relative}
.fitem:hover{background:var(--hover)}
.fitem.on{background:var(--sel);color:var(--navy);font-weight:700}
.fitem.drop{background:#FBF0D6;outline:2px dashed var(--gold)}
.fitem .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fitem .ct{font-size:13px;color:var(--muted);font-weight:600;padding:0 4px}
.fitem .ct.unread{background:var(--navy);color:#fff;border-radius:999px;padding:1px 8px;font-size:12px}
.fitem .fm{opacity:0;width:28px;height:28px;background:transparent}
.fitem:hover .fm,.fitem .fm:focus-visible,.fitem.on .fm{opacity:1}
.fhead{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);padding:16px 12px 6px}
.fhead .ib{width:28px;height:28px}
.shead{display:flex;align-items:center;gap:4px;padding:6px 6px 2px 4px}
.stoggle{flex:1;min-width:0;display:flex;align-items:center;gap:8px;border:none;background:none;height:34px;padding:0 8px;border-radius:8px;font-size:14px;font-weight:700;color:var(--navy);text-align:left}
.stoggle:hover{background:var(--hover)}
.stoggle .car{width:12px;color:var(--muted)}
.stoggle .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stoggle .ct{font-size:12px;background:var(--navy);color:#fff;border-radius:999px;padding:1px 8px}
.shead .ib{width:28px;height:28px}
.sgroup{padding-top:16px}
.sgroup .stoggle .nm{font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.sgroup ~ .shead{padding-left:14px}
.sub-acct{display:block;font-family:var(--font);font-size:12px;font-weight:600;color:var(--muted);margin-top:2px}
.fromsel{height:36px;border:1px solid var(--line2);border-radius:8px;padding:0 10px;background:#fff;font-size:14px;max-width:100%}

/* list */
.list{flex:0 1 420px;min-width:300px}
.lhead{padding:14px 16px 8px;display:flex;align-items:center;gap:8px}
.lhead h1{margin:0;flex:1;font-family:var(--slab);font-size:21px;color:var(--navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chips{display:flex;gap:6px;padding:0 16px 10px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.chip{height:30px;padding:0 12px;border:none;border-radius:999px;background:var(--chip);color:var(--ink2);font-size:13px;font-weight:600}
.chip[aria-pressed="true"]{background:var(--navy);color:#fff}
.bulk{display:flex;gap:6px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--line);background:#FBF8F2;flex-wrap:wrap}
.bulk .cnt{font-size:13px;font-weight:700;color:var(--navy);margin-right:auto}
.bulk .ib{width:34px;height:34px;background:#fff;border:1px solid var(--line)}
.msgs{flex:1;overflow-y:auto;position:relative}
.group{font-size:12px;font-weight:700;color:var(--muted);padding:10px 16px 4px;text-transform:uppercase;letter-spacing:.05em;position:sticky;top:0;background:#fff;z-index:1}
.mi{display:flex;gap:10px;padding:10px 14px 10px 12px;cursor:pointer;border-bottom:1px solid #F5F2EC;position:relative;user-select:none}
.mi:hover{background:var(--hover)}
.mi.on{background:var(--sel)}
.mi .sel{width:20px;display:flex;align-items:flex-start;padding-top:10px}
.mi .sel input{width:17px;height:17px;accent-color:var(--navy);margin:0}
.mi .av{width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:var(--sel);color:var(--navy);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;text-transform:uppercase}
.mi .mid{flex:1;min-width:0}
.mi .l1{display:flex;align-items:center;gap:6px}
.mi .who{flex:1;min-width:0;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mi .when{font-size:12px;color:var(--muted);flex:0 0 auto}
.mi .sub{font-size:14px;color:var(--ink2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:1px}
.mi .sub{display:flex;align-items:center;gap:6px}
.mi .sub .subt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mi .tcount{flex:none;font-size:11px;font-weight:600;line-height:1;padding:3px 7px;border-radius:999px;background:var(--line2);color:var(--ink2)}
.mi.unread .tcount{background:#1E4D63;color:#fff}
.mi .pv{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:1px}
.mi.unread .who,.mi.unread .sub{font-weight:700;color:var(--navy)}
.mi.unread .when{color:var(--navy);font-weight:700}
.mi.unread::before{content:"";position:absolute;left:4px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:var(--gold)}
.mi .icons{display:flex;gap:4px;align-items:center;color:var(--muted)}
.mi .icons svg{width:14px;height:14px}
.mi .flag{color:#A87A1C;fill:#C9952A}
.mi .qa{position:absolute;right:10px;bottom:8px;display:none;gap:4px}
.mi:hover .qa{display:flex}
.mi .qa .ib{width:30px;height:30px;background:#fff;border:1px solid var(--line)}
.more{display:flex;justify-content:center;padding:14px}
.empty{padding:40px 24px;text-align:center;color:var(--muted);font-size:14px;line-height:1.6}
.empty svg{width:40px;height:40px;stroke-width:1.5;color:#B9B2A4;margin-bottom:8px}
.loading{padding:30px;text-align:center;color:var(--muted)}

/* reader */
.reader{flex:999 1 480px;min-width:0}
.rtool{display:flex;flex-wrap:wrap;gap:6px;padding:10px 14px;border-bottom:1px solid var(--line);align-items:center}
.rtool .sep{width:1px;height:26px;background:var(--line);margin:0 2px}
.rbody{flex:1;overflow-y:auto;padding:20px 28px 30px}
.rbody h2{margin:0 0 16px;font-family:var(--slab);font-size:22px;line-height:1.3;color:var(--navy);word-wrap:break-word}
.sender{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}
.sender .av{width:44px;height:44px;border-radius:50%;background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;flex:0 0 44px;text-transform:uppercase}
.sender .who{font-weight:700;font-size:15px;word-break:break-word}
.sender .who span{font-weight:400;color:var(--muted)}
.sender .rcp{font-size:13px;color:var(--muted);margin-top:2px;word-break:break-word}
.sender .dt{font-size:13px;color:var(--muted);margin-left:auto;white-space:nowrap;padding-left:8px}
.banner{display:flex;gap:10px;align-items:center;padding:10px 14px;border-radius:10px;background:var(--warn-bg);color:var(--warn-ink);font-size:13px;line-height:1.5;margin-bottom:14px;flex-wrap:wrap}
.banner button{border:none;background:none;color:var(--warn-ink);font-weight:700;text-decoration:underline;padding:4px}
.mframe{width:100%;border:0;display:block;min-height:60px;background:#fff}
.atts{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.att{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 10px;border:1px solid var(--line2);border-radius:10px;max-width:100%;background:#fff}
.att .ty{width:36px;height:36px;border-radius:8px;background:var(--sel);color:var(--navy);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;flex:0 0 36px;text-transform:uppercase}
.att .ty.pdf{background:var(--danger-soft);color:var(--danger)}
.att .nm{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}
.att .sz{font-size:12px;color:var(--muted)}
.att .attname{border:none;background:none;padding:0;text-align:left;min-width:0;cursor:pointer;color:inherit;font:inherit}
.att .attname:hover .nm{text-decoration:underline;color:var(--teal)}
.att .attbtns{display:flex;gap:6px;margin-left:4px}
.abtn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:1px solid var(--line2);border-radius:8px;background:#fff;color:var(--navy);font-size:13px;font-weight:600;text-decoration:none;cursor:pointer;white-space:nowrap}
.abtn:hover{background:var(--hover);color:var(--navy)}
.abtn .ic{width:16px;height:16px}
.vscrim{padding:24px}
.viewer{background:#fff;border-radius:16px;width:min(1100px,100%);height:min(92vh,100%);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.3)}
.viewer header{display:flex;align-items:center;gap:8px;padding:10px 12px 10px 18px;border-bottom:1px solid var(--line)}
.viewer header .btn{text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.viewer .vtitle{flex:1;min-width:0}
.viewer .vtitle .nm{font-weight:700;color:var(--navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.viewer .vtitle .sz{font-size:12px;color:var(--muted)}
.viewer .ib[disabled]{opacity:.35;pointer-events:none}
.vbody{flex:1;min-height:0;overflow:auto;background:#F4F2EE;display:flex;flex-direction:column}
.vmsg{margin:auto;padding:32px;text-align:center;color:var(--ink2);display:flex;flex-direction:column;align-items:center;gap:14px}
.vmsg p{margin:0;max-width:420px;line-height:1.6}
.vmsg .btn{text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.vframe{flex:1;width:100%;border:none;background:#fff;min-height:0}
.vimg{margin:auto;padding:16px}.vimg img{max-width:100%;max-height:calc(92vh - 110px);display:block;box-shadow:0 2px 12px rgba(0,0,0,.15);background:#fff}
.vvideo{margin:auto;max-width:100%;max-height:100%}
.vtext{margin:0;padding:18px 20px;white-space:pre-wrap;word-break:break-word;font:13px/1.55 ui-monospace,Consolas,monospace;background:#fff;flex:1}
.xlwrap{flex:1;display:flex;flex-direction:column;min-height:0}
.xlarea{flex:1;overflow:auto;background:#fff}
.xl{border-collapse:collapse;font-size:13px}
.xl th{position:sticky;top:0;background:#F1EEE7;color:var(--muted);font-weight:600;border:1px solid #E2DDD3;padding:3px 8px;min-width:28px}
.xl tr th:first-child{position:sticky;left:0;z-index:1}
.xl td{border:1px solid #E7E3DA;padding:3px 8px;white-space:nowrap;max-width:360px;overflow:hidden;text-overflow:ellipsis}
.xl td.n{text-align:right}
.xlnote{padding:10px 14px;color:var(--muted);font-size:13px;margin:0}
.xltabs{display:flex;gap:2px;padding:6px 8px;border-top:1px solid var(--line);background:#F9F7F3;overflow-x:auto}
.xltabs button{border:none;background:none;padding:6px 14px;border-radius:6px;font-size:13px;color:var(--ink2);white-space:nowrap;cursor:pointer}
.xltabs button.on{background:#fff;color:var(--navy);font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.12)}
@media (max-width:640px){.vscrim{padding:0}.viewer{border-radius:0;height:100%}.viewer header .btn span{display:none}.att{flex-wrap:wrap}.att .attbtns{margin-left:0;width:100%}.att .attbtns .abtn{flex:1;justify-content:center}}
.placeholder{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:8px;text-align:center;padding:30px}
.placeholder svg{width:56px;height:56px;stroke-width:1.2;color:#C9C2B4}

/* composer */
.compose{flex:999 1 520px;min-width:0}
.chead{display:flex;align-items:center;gap:10px;padding:12px 18px;border-bottom:1px solid var(--line)}
.chead h2{margin:0;flex:1;font-family:var(--slab);font-size:20px;color:var(--navy)}
.chead .saved{font-size:13px;color:var(--muted)}
.cfields{padding:0 18px}
.cf{display:flex;align-items:center;gap:8px;min-height:48px;border-bottom:1px solid var(--line);flex-wrap:wrap;padding:5px 0}
.cf>label,.cf>.lb{width:58px;font-size:14px;font-weight:600;color:var(--muted);flex:0 0 58px}
.cf input.free{flex:1;min-width:140px;border:none;outline:none;font-size:15px;height:34px;background:transparent}
.cf .from{font-size:14px;color:var(--ink)}
.rc{display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 4px 0 11px;border-radius:999px;background:var(--sel);color:var(--navy);font-size:14px;max-width:100%}
.rc.bad{background:var(--danger-soft);color:var(--danger)}
.rc span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rc button{width:24px;height:24px;border:none;border-radius:50%;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;padding:0}
.rc button svg{width:14px;height:14px}
.cf .lnk{border:none;background:none;color:var(--teal);font-weight:600;font-size:14px;height:32px;padding:0 6px}
.ctool{display:flex;flex-wrap:wrap;gap:4px;padding:8px 18px;border-bottom:1px solid var(--line)}
.ctool .ib{width:36px;height:36px;font-weight:700}
.ctool{align-items:center;position:relative}
.ctool .ib .ic{width:18px;height:18px}
.ctsep{width:1px;height:22px;background:var(--line2);margin:0 4px}
.ctsel{height:36px;border:1px solid var(--line2);border-radius:9px;background:#fff;color:var(--ink);padding:0 8px;font-size:13px;max-width:150px}
.ctsel.ctsize{max-width:64px}
.ctsplit{position:relative;display:inline-flex}
.ctsplit>.ib:first-child{border-radius:9px 0 0 9px;width:34px}
.ctsplit>.ctcaret{border-radius:0 9px 9px 0;width:20px;margin-left:1px}
.ctsplit>.ctcaret .ic{width:14px;height:14px}
.cta{display:inline-flex;flex-direction:column;align-items:center;line-height:1;font-size:15px;font-weight:800}
.cta .ic{width:16px;height:16px}
.ctbar{display:block;width:18px;height:4px;border-radius:2px;margin-top:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
.ctpop{position:absolute;top:40px;left:0;z-index:50;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.16);padding:10px;width:226px}
.ctpoph{font-size:12px;font-weight:700;color:var(--ink2);margin:0 2px 8px}
.ctgrid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.ctsw{width:28px;height:28px;border-radius:7px;border:1px solid rgba(0,0,0,.15);cursor:pointer;padding:0}
.ctsw:hover{transform:scale(1.12);box-shadow:0 2px 6px rgba(0,0,0,.2)}
.ctnone{margin-top:10px;width:100%;height:32px;border:1px solid var(--line2);border-radius:8px;background:#fff;font-size:13px;cursor:pointer;color:var(--ink)}
.ctnone:hover{background:var(--chip)}
.ctclear{position:relative;font-weight:800}.ctclear small{font-size:10px;margin-left:1px;color:#C00000}
@media (max-width:700px){.ctool{gap:3px;padding:6px 10px}.ctool .ib{width:32px;height:32px}.ctsel{height:32px;max-width:118px}.ctsplit>.ib:first-child{width:30px}.ctsplit>.ctcaret{width:18px}.ctsep{display:none}.ctpop{position:fixed;top:auto;bottom:16px;left:50%;transform:translateX(-50%)}}
.editor{flex:1 1 0;overflow-y:auto;padding:18px;font-size:15px;line-height:1.6;outline:none;min-height:120px;word-wrap:break-word}
.editor blockquote,.editor .tm-quote{margin:0;padding-left:12px;border-left:3px solid var(--line2);color:var(--ink2)}
.editor img{max-width:100%;height:auto}
.editor:empty::before{content:attr(data-ph);color:#9AA3AA}
.catts{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px 10px}
.cfoot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 18px;border-top:1px solid var(--line)}
.cfoot .grow{flex:1}
.dropzone{position:absolute;inset:0;background:rgba(18,61,79,.08);border:3px dashed var(--teal);border-radius:var(--r);display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--navy);font-size:18px;z-index:5;pointer-events:none}

/* menus, dialogs, toasts */
.menu{position:fixed;z-index:50;background:#fff;border-radius:12px;box-shadow:0 12px 32px rgba(18,61,79,.22);padding:6px;min-width:200px;max-height:70vh;overflow-y:auto}
.menu button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:none;background:none;height:40px;padding:0 10px;border-radius:8px;font-size:14px;color:var(--ink)}
.menu button:hover,.menu button:focus-visible{background:var(--hover)}
.menu button.danger{color:var(--danger)}
.menu hr{border:none;border-top:1px solid var(--line);margin:4px 0}
.menu .mh{font-size:12px;font-weight:700;color:var(--muted);padding:8px 10px 4px;text-transform:uppercase;letter-spacing:.05em}
.scrim{position:fixed;inset:0;background:rgba(18,30,40,.38);z-index:40;display:flex;align-items:center;justify-content:center;padding:16px}
.dlg{background:#fff;border-radius:16px;width:100%;max-width:520px;max-height:90vh;overflow-y:auto;box-shadow:0 24px 60px rgba(0,0,0,.25);display:flex;flex-direction:column}
.dlg header{display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid var(--line)}
.dlg header h3{margin:0;flex:1;font-family:var(--slab);font-size:19px;color:var(--navy)}
.dlg .dbody{padding:16px 18px;display:flex;flex-direction:column;gap:14px}
.dlg footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--line)}
.sigwrap{display:flex;flex-direction:column;gap:6px;font-weight:400}
.sigtabs{display:flex;gap:4px}
.sigtabs button{border:1px solid var(--line2);background:#fff;border-radius:8px;height:30px;padding:0 14px;font-size:13px;font-weight:600;color:var(--ink2);cursor:pointer}
.sigtabs button.on{background:var(--navy);border-color:var(--navy);color:#fff}
.sigtools,.sigimgbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.sigtools[hidden],.sigimgbar[hidden]{display:none}
.sigtools .ib{width:32px;height:32px;font-size:14px}
.sigimgbar{font-size:13px;color:var(--muted);background:var(--hover);border-radius:8px;padding:4px 6px}
.sigsize{height:32px;border:1px solid var(--line2);border-radius:8px;font-size:13px;padding:0 6px;background:#fff}
.sigcolor{width:34px;height:32px;padding:2px;border:1px solid var(--line2);border-radius:8px;background:#fff;cursor:pointer}
.sigbox{border:1px solid #CFC8BA;border-radius:10px;min-height:120px;max-height:320px;overflow:auto;padding:10px 13px;font-size:14px;font-weight:400;outline:none;line-height:1.5;color:var(--ink)}
.sigbox img{max-width:100%;height:auto;cursor:pointer}
.sigbox img.picked{outline:3px solid var(--gold);outline-offset:2px}
.sigcode{border:1px solid #CFC8BA;border-radius:10px;min-height:180px;padding:10px 12px;font:12.5px/1.5 ui-monospace,Consolas,monospace;resize:vertical;color:var(--ink)}
.sigcode[hidden],.sigbox[hidden]{display:none}
.sighint{font-size:12px;color:var(--muted)}
.toasts{position:fixed;left:22px;bottom:22px;display:flex;flex-direction:column;gap:8px;z-index:60;align-items:center;width:max-content;max-width:calc(100vw - 24px)}
.toast{display:flex;align-items:center;gap:14px;padding:11px 12px 11px 16px;border-radius:12px;background:var(--ink);color:#fff;box-shadow:0 12px 32px rgba(0,0,0,.25);font-size:14px}
.toast.bad{background:var(--danger)}
.toast button{border:none;border-radius:8px;background:var(--gold);color:var(--navy);font-weight:700;height:32px;padding:0 12px}
.drag-ghost{position:fixed;top:-100px;left:-100px;padding:6px 12px;border-radius:999px;background:var(--navy);color:#fff;font-size:13px;font-weight:700}

/* ---------- small screens: one pane at a time ---------- */
@media (max-width:1100px){
  .folders{flex-basis:210px}
  .list{flex-basis:340px;min-width:260px}
}
@media (max-width:860px){
  .top{gap:8px;padding:8px 10px}
  .top .search{flex:1 1 auto;min-width:0;padding-left:10px}
  .top .search>svg{display:none}
  .top .tools .hide-sm{display:none}
  .sender{flex-wrap:wrap}
  .sender .dt{margin-left:56px;padding-left:0}
  .toasts{left:50%;transform:translateX(-50%)}
  .top .logo span.txt{display:none}
  .top .menu-btn{display:inline-flex}
  .body{padding:0;gap:0}
  .pane{border-radius:0}
  .folders{position:fixed;inset:0 25% 0 0;max-width:320px;z-index:30;box-shadow:12px 0 40px rgba(0,0,0,.25);transform:translateX(-105%);transition:transform .2s;border-radius:0}
  .shell.navopen .folders{transform:none}
  .shell.navopen::after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.3);z-index:29}
  .list,.reader,.compose{flex:1 1 100%;min-width:0}
  .shell.v-list .reader,.shell.v-list .compose{display:none}
  .shell.v-read .list,.shell.v-compose .list{display:none}
  .rbody{padding:16px}
  .rtool .lbl{display:none}
  .mi .qa{display:none!important}
}
@media (min-width:861px){ .back-only{display:none!important} }
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
.sigwrap input.sigcolor{width:36px;height:32px;min-height:0;padding:2px 3px;border:1px solid var(--line2);border-radius:8px;background:#fff;flex:0 0 36px}
.sigwrap select.sigsize{width:auto;height:32px;min-height:0;padding:0 26px 0 8px;font-size:13px}
.pdfwrap{flex:1;display:flex;flex-direction:column;min-height:0}
.pdfbar{display:flex;align-items:center;gap:6px;padding:6px 12px;border-bottom:1px solid var(--line);background:#F9F7F3;font-size:13px;color:var(--muted)}
.pdfbar .grow{flex:1}.pdfbar .abtn{width:32px;justify-content:center;padding:0;font-size:18px}
.pdfzoom{min-width:44px;text-align:center;font-weight:600;color:var(--ink2)}
.pdfpages{flex:1;overflow:auto;padding:16px;background:#E9E6E0}
.pdfpage{background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.15);margin:0 auto 14px}
.pdfpage canvas{display:block}
.addacct{display:flex;align-items:center;gap:10px;width:100%;margin:10px 0 6px;height:40px;padding:0 12px;border:1px dashed var(--line2);border-radius:10px;background:transparent;color:var(--teal);font-size:14px;font-weight:600;cursor:pointer}
.addacct:hover{background:var(--hover);color:var(--navy)}
.addacct .ic{width:18px;height:18px}
/* install as an app */
.installapp{display:flex;align-items:center;gap:10px;width:100%;margin:2px 0 6px;height:40px;padding:0 12px;border:1px solid var(--gold);border-radius:10px;background:#FBF6EA;color:var(--navy);font-size:14px;font-weight:700;cursor:pointer}
.installapp:hover{background:#F6EDD6}
.installapp .ic{width:18px;height:18px}
.installapp[hidden],.instlink[hidden]{display:none}
.instlink{display:flex;justify-content:center}
.instlead{margin:0;line-height:1.6;color:var(--ink2)}
.inst{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#FCFAF5}
.inst h4{margin:0 0 6px;font-size:15px;color:var(--navy)}
.inst ol{margin:0;padding-left:20px;line-height:1.6;font-size:14px}
.inst li+li{margin-top:4px}
.instmore summary{cursor:pointer;font-weight:600;color:var(--teal);font-size:14px;padding:4px 0}
.instmore .inst{margin-top:10px}
.acctitem .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.setscrim{padding:24px}
.setbox{background:#fff;border-radius:16px;width:min(1180px,100%);height:min(88vh,100%);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.3)}
.setbox>header{display:flex;align-items:center;gap:10px;padding:12px 14px 12px 20px;border-bottom:1px solid var(--line)}
.setbox>header h2{flex:1;margin:0;font-family:var(--slab);font-size:20px;color:var(--navy)}
.setback{display:none}
.setcols{flex:1;min-height:0;display:grid;grid-template-columns:240px 220px 1fr}
.setnav{padding:14px 10px;border-right:1px solid var(--line);background:#FBF9F5;overflow-y:auto}
.setsearchwrap{display:flex;align-items:center;gap:8px;height:40px;padding:0 10px;border:1px solid var(--line2);border-radius:10px;background:#fff;margin-bottom:14px}
.setsearchwrap .ic{width:16px;height:16px;color:var(--muted)}
.setsearchwrap input{border:none;outline:none;flex:1;min-width:0;font-size:14px;background:transparent;height:auto;padding:0}
.setcat{position:relative;display:flex;align-items:center;gap:12px;width:100%;height:42px;padding:0 12px;border:none;background:none;border-radius:8px;font-size:15px;color:var(--ink2);cursor:pointer;text-align:left}
.setcat .ic{width:19px;height:19px}
.setcat:hover{background:var(--hover)}
.setcat.on{font-weight:700;color:var(--navy);background:var(--sel)}
.setcat.on::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:3px;background:var(--gold)}
.setsubs{padding:14px 8px;border-right:1px solid var(--line);overflow-y:auto}
.setsub{position:relative;display:block;width:100%;text-align:left;border:none;background:none;padding:10px 14px;border-radius:8px;font-size:14px;color:var(--ink2);cursor:pointer}
.setsub small{display:block;font-size:12px;color:var(--muted)}
.setsub:hover{background:var(--hover)}
.setsub.on{font-weight:700;color:var(--navy)}
.setsub.on::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:var(--gold)}
.setnone{padding:10px 14px;color:var(--muted);font-size:14px}
.setpage{padding:22px 28px 40px;overflow-y:auto}
.setpage h3{margin:0 0 16px;font-family:var(--slab);font-size:22px;color:var(--navy)}
.setpage h4{margin:18px 0 8px;font-size:15px;color:var(--ink)}
.setbody{display:flex;flex-direction:column;gap:14px;max-width:640px}
.setgroup{display:flex;flex-direction:column;gap:10px}
.setgroup.row,.setbody .row{flex-direction:row;flex-wrap:wrap;gap:10px;display:flex}
.setnote{margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.setnote.warn{color:var(--danger)}
.setstatus{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:10px;background:#E8F4EC;color:#1E6B3A;font-weight:600;font-size:14px}
.setstatus .ic{width:18px;height:18px}
.setarea{border:1px solid #CFC8BA;border-radius:10px;padding:10px 12px;font:inherit;font-size:14px;line-height:1.5;resize:vertical;min-height:140px}
.settimes{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.settimes[hidden]{display:none}
.setradio{display:flex;align-items:flex-start;gap:10px;font-size:14px;cursor:pointer;line-height:1.4}
.setradio input{margin-top:2px;width:18px;height:18px;accent-color:var(--navy)}
.setradio small{display:block;color:var(--muted);font-size:12.5px}
.settoggle{display:flex;align-items:center;gap:12px;font-size:14px;cursor:pointer}
.settoggle input{position:absolute;opacity:0;width:1px;height:1px}
.settoggle .sw{position:relative;width:40px;height:22px;border-radius:22px;background:#CFC8BA;flex:0 0 40px;transition:background .15s}
.settoggle .sw::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .15s}
.settoggle input:checked+.sw{background:var(--navy)}
.settoggle input:checked+.sw::after{left:21px}
.settoggle input:focus-visible+.sw{outline:2px solid var(--gold);outline-offset:2px}
.acard{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line2);border-radius:12px}
.acard.on{border-color:var(--navy);background:var(--hover)}
.aav{width:40px;height:40px;border-radius:50%;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;flex:0 0 40px}
.ainfo{flex:1;min-width:0}.ainfo b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ainfo small{color:var(--muted)}
.aact{display:flex;gap:6px}
.setbody .hint{font-weight:400;font-size:13px;color:var(--muted)}
.setbig b{font-size:28px;font-family:var(--slab);color:var(--navy)}.setbig span{color:var(--muted);font-size:14px}
.storlist{display:flex;flex-direction:column;gap:4px}
.storrow{display:flex;align-items:center;gap:12px;padding:8px 4px;border-bottom:1px solid var(--line)}
.storrow>.ic{width:18px;height:18px;color:var(--muted)}
.storname{flex:1;min-width:0;font-size:14px}.storname small{color:var(--muted)}
.storbar{height:6px;border-radius:6px;background:var(--chip);margin-top:5px;overflow:hidden}.storbar i{display:block;height:100%;background:var(--teal);border-radius:6px}
.storsize{font-size:13px;font-weight:600;color:var(--ink2);min-width:64px;text-align:right}
@media (max-width:820px){
  .setscrim{padding:0}.setbox{border-radius:0;height:100%}
  .setcols{display:block;overflow-y:auto}
  .setnav,.setsubs{border-right:none}
  .setbox.mpage .setnav,.setbox.mpage .setsubs{display:none}
  .setbox:not(.mpage) .setpage{display:none}
  .setbox.mpage .setback{display:inline-flex}
  .setpage{padding:18px 16px 40px}
  .settimes{grid-template-columns:1fr}
}
.banner.safe{background:#E8F4EC;color:#1E6B3A}.banner.safe button{color:#1E6B3A}
.safebox{margin-top:10px;padding-top:14px;border-top:1px solid var(--line)}
.safeadd{display:flex;gap:8px}.safeadd input{flex:1;min-width:0}
.safelist{display:flex;flex-direction:column;border:1px solid var(--line2);border-radius:10px;max-height:300px;overflow-y:auto}
.saferow{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 14px;border-bottom:1px solid var(--line);font-size:14px}
.saferow:last-child{border-bottom:none}.saferow span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.safeadd input{height:40px;border:1px solid #CFC8BA;border-radius:10px;padding:0 12px;font:inherit;font-size:14px}
.linkbtn{display:inline-flex;align-items:center;gap:6px;border:none;background:none;padding:4px 0;color:var(--teal);font-size:14px;font-weight:600;cursor:pointer;text-decoration:underline}
.linkbtn .ic{width:16px;height:16px}
.okmsg{padding:12px 14px;border-radius:10px;background:#E8F4EC;color:#1E6B3A;font-size:14px;line-height:1.5}
.okmsg[hidden]{display:none}
.rules{margin:0;font-size:13px;color:var(--muted);line-height:1.5}
.convbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 14px;font-size:13px;color:var(--muted)}
.convbar .grow{flex:1}
.convcount{font-weight:700;color:var(--ink2)}
.convkey{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-weight:600}
.convkey::before{content:"";width:10px;height:10px;border-radius:3px}
.convkey.theirs{background:#EAF2F6;color:#1C5F78}.convkey.theirs::before{background:#1C5F78}
.convkey.mine{background:#FBF1DC;color:#8A6416}.convkey.mine::before{background:#C9952A}
.conv{display:flex;flex-direction:column;gap:10px}
.ccard{border-radius:12px;border:1px solid var(--line2);border-left-width:5px;overflow:hidden}
.ccard.theirs{background:#F3F8FA;border-left-color:#1C5F78}
.ccard.mine{background:#FCF6EA;border-left-color:#C9952A}
.ccard.current{box-shadow:0 0 0 2px rgba(18,61,79,.18)}
.chead2{display:flex;align-items:center;gap:12px;width:100%;border:none;background:none;padding:12px 14px;text-align:left;cursor:pointer;font:inherit;color:inherit}
.chead2:hover{background:rgba(0,0,0,.025)}
.chead2 .av{width:36px;height:36px;flex:0 0 36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:#fff;background:#1C5F78}
.ccard.mine .chead2 .av{background:#C9952A}
.cwho{flex:1;min-width:0}
.cname{font-weight:700;font-size:14px;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.cname>span:first-child{font-weight:400;color:var(--muted)}
.cfolder{font-size:11px;font-weight:600;color:var(--muted);background:rgba(0,0,0,.06);padding:1px 8px;border-radius:999px}
.cnew{font-size:11px;font-weight:700;color:#fff;background:var(--teal);padding:1px 8px;border-radius:999px}
.csnip,.cto{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.cbody .cto{white-space:normal;margin:0 0 8px}
.cdate{font-size:12px;color:var(--muted);white-space:nowrap;display:flex;align-items:center;gap:4px}
.cdate .ic{width:14px;height:14px}
.chead2 .chev{width:16px;height:16px;color:var(--muted);transition:transform .15s}
.ccard.open .chead2 .chev{transform:rotate(90deg)}
.cbody{padding:4px 16px 14px 62px}
.cbody .mframe{background:transparent}
.qbtn{border:1px solid var(--line2);background:#fff;border-radius:8px;padding:2px 10px;font-size:13px;font-weight:700;color:var(--muted);cursor:pointer;margin:6px 0}
.qbtn[hidden]{display:none}
.cact{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
@media (max-width:640px){.cbody{padding:4px 12px 12px}.cdate{display:none}}

/* notifications settings */
.note.good{border-color:#BFD9C8;background:#F1F8F3;color:#1F5B36}
.note.warn{border-color:#EBC3BC;background:#FBF1EF;color:var(--danger)}
.setcheck{display:flex;align-items:center;gap:10px;padding:8px 2px;font-size:14px;cursor:pointer}
.setcheck input{width:17px;height:17px;accent-color:var(--navy)}
.helpbox ul{margin:6px 0 0;padding-left:18px;font-size:13px;line-height:1.6;color:var(--muted)}
.helpbox li{margin:3px 0}

/* ---------- 2-step code on the sign-in page ---------- */
.codein{font-size:22px!important;letter-spacing:.25em;text-align:center;font-variant-numeric:tabular-nums}

/* ---------- reader: add sender to contacts ---------- */
.addc{display:inline-flex;align-items:center;gap:4px;margin-left:8px;border:1px solid var(--line2);background:#fff;color:var(--teal);border-radius:999px;font-size:12px;font-weight:600;height:24px;padding:0 9px;vertical-align:middle}
.addc .ic{width:13px;height:13px}
.addc:hover{background:var(--hover);color:var(--navy)}
@media (max-width:860px){.addc span{display:none}.addc{padding:0 6px}}

/* ---------- compose: suggestions + reply-to ---------- */
.cf{position:relative}
.sug{position:absolute;left:44px;right:0;top:100%;z-index:40;background:#fff;border:1px solid var(--line2);border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.16);padding:6px;max-height:320px;overflow-y:auto}
.sugi{display:flex;align-items:center;gap:10px;padding:7px 9px;border-radius:9px;cursor:pointer}
.sugi.on,.sugi:hover{background:var(--sel)}
.sav{width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:var(--sel);color:var(--navy);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;text-transform:uppercase}
.sugi.on .sav{background:#fff}
.snm{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.snm b{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.snm small{color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stag{font-size:11px;font-weight:700;color:var(--teal);background:#E7F0F4;border-radius:999px;padding:2px 8px;text-transform:uppercase;letter-spacing:.03em}
.cf-replyto{background:#FBF8F1}
.cf-replyto>label{color:var(--gold);font-weight:700}

/* ---------- settings: devices and sign-ins ---------- */
.sechead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:22px}
.sechead h4{margin:0}
.secbanner{display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:12px;background:#EEF4F7;color:var(--navy);font-size:14px;line-height:1.5}
.secbanner .ic{width:20px;height:20px;flex:0 0 20px}
.secbanner span{flex:1}
.secbanner.warn{background:var(--warn-bg);color:var(--warn-ink)}
.devlist{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.dev{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}
.dev.cur{border-color:#BFD6E0;background:#F6FAFC}
.dev.old{opacity:.6}
.devic{width:40px;height:40px;flex:0 0 40px;border-radius:10px;background:var(--chip);color:var(--navy);display:flex;align-items:center;justify-content:center}
.devic .ic{width:22px;height:22px}
.devinfo{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.devinfo b{font-size:14.5px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.devinfo small{color:var(--muted);font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.devtag{font-size:11px;font-weight:700;color:#1E6B3A;background:#E8F4EC;border-radius:999px;padding:2px 8px}
.devtag.grey{color:var(--muted);background:var(--chip)}
.hist{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-top:10px}
.hrow{display:grid;grid-template-columns:20px minmax(0,1.3fr) minmax(0,1.3fr) auto;gap:10px;align-items:center;padding:9px 12px;font-size:13.5px;border-bottom:1px solid #F3F0EA}
.hrow:last-child{border-bottom:none}
.hrow .ic{width:16px;height:16px;color:#1E6B3A}
.hrow.bad .ic{color:var(--danger)}
.hwhat{font-weight:600;overflow:hidden;text-overflow:ellipsis}
.hwhere{color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.hwhen{color:var(--muted);white-space:nowrap;font-size:12.5px}
@media (max-width:640px){.hrow{grid-template-columns:20px 1fr;row-gap:2px}.hwhere,.hwhen{grid-column:2}}
.geocredit{margin:18px 0 0;font-size:12px;color:var(--muted)}

/* ---------- settings: 2-step verification ---------- */
.qr{width:210px;height:210px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;margin:6px 0}
.qr svg{width:100%;height:100%;display:block}
.tfkey{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;background:var(--chip);border-radius:10px;margin-bottom:6px}
.tfkey small{color:var(--muted);font-weight:600}
.tfkey code{font-size:15px;letter-spacing:.06em;font-weight:700;color:var(--navy);word-break:break-all}
.bcodes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:360px;padding:14px;border:1px dashed var(--line2);border-radius:12px;background:#FCFAF5}
.bcodes code{font-size:16px;font-weight:700;letter-spacing:.08em;color:var(--navy);text-align:center}

/* ---------- contacts ---------- */
.csearchwrap{display:flex;align-items:center;gap:8px;margin:0 14px 8px;padding:0 12px;height:40px;border-radius:10px;background:var(--chip)}
.csearchwrap .ic{color:var(--muted)}
.csearch{flex:1;border:none;background:transparent;outline:none;height:38px;font-size:15px;min-width:0}
.ci{display:flex;align-items:center;gap:11px;padding:9px 14px;cursor:pointer;border-bottom:1px solid #F5F2EC}
.ci:hover{background:var(--hover)}
.ci.on{background:var(--sel)}
.ci .av{width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:var(--sel);color:var(--navy);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;text-transform:uppercase}
.ci.on .av{background:#fff}
.cinfo{flex:1;min-width:0;display:flex;flex-direction:column}
.cinfo b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cinfo small{color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cempty{padding:14px 16px 18px;color:var(--muted);font-size:14px;line-height:1.6}
.cthead{display:flex;align-items:center;gap:16px;margin-bottom:18px}
.cav{width:72px;height:72px;flex:0 0 72px;border-radius:50%;background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:24px;text-transform:uppercase}
.cthead h2{margin:0;font-family:var(--slab);color:var(--navy);font-size:24px;overflow-wrap:anywhere}
.csub{color:var(--muted);font-size:14px;margin-top:3px}
.clines{display:flex;flex-direction:column;gap:2px;border-top:1px solid var(--line)}
.cline{display:flex;align-items:flex-start;gap:12px;padding:12px 2px;border-bottom:1px solid var(--line)}
.cline .ic{margin-top:12px;color:var(--muted)}
.cline small{display:block;color:var(--muted);font-size:12.5px}
.cline a,.cline span{font-size:15px;overflow-wrap:anywhere}
.cform{display:flex;flex-direction:column;gap:12px;max-width:560px}
.cform .rtool{padding:0 0 6px;border:none}

/* ---------- email card header: selectable name / address / To / date, profile card ---------- */
.chead2 .selx{user-select:text;-webkit-user-select:text;cursor:text}
.cnm{cursor:pointer;border-radius:4px}
.cnm:hover{text-decoration:underline;text-underline-offset:3px;color:var(--teal)}
.chead2 .cnm{cursor:pointer}
.pcard{position:fixed;z-index:80;padding:0;overflow:hidden}
.pchead{display:flex;gap:12px;align-items:center;padding:14px 14px 12px;border-bottom:1px solid var(--line);background:#FBF9F4}
.pchead .cav{width:46px;height:46px;flex:0 0 46px;font-size:16px}
.pcinfo{display:flex;flex-direction:column;min-width:0;gap:1px}
.pcinfo b{font-size:15px;color:var(--navy);overflow-wrap:anywhere}
.pcinfo span,.pcinfo small{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.selt{user-select:text;-webkit-user-select:text}
.pcacts{display:flex;flex-direction:column;padding:6px}
.pcacts button{display:flex;align-items:center;gap:10px;border:none;background:none;text-align:left;padding:9px 10px;border-radius:8px;font-size:14px;color:var(--ink2)}
.pcacts button:hover{background:var(--hover)}

/* ---------- calendar ---------- */
.shell.mcal .list{display:none}
.pane.cal{flex:1 1 auto;display:flex;flex-direction:column;overflow:hidden}
.calbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 16px 10px;border-bottom:1px solid var(--line)}
.calbar h2{margin:0;font-family:var(--slab);color:var(--navy);font-size:22px;min-width:180px}
.calnav{display:flex;align-items:center;gap:4px}
.calbar .grow{flex:1}
.seg{display:inline-flex;border:1px solid var(--line2);border-radius:9px;overflow:hidden}
.seg button{border:none;background:#fff;height:36px;padding:0 12px;font-weight:600;font-size:14px;color:var(--ink2)}
.seg button[aria-pressed="true"]{background:var(--navy);color:#fff}
.calf{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line2);background:#fff;border-radius:999px;height:32px;padding:0 11px;font-size:13px;font-weight:600;color:var(--ink2)}
.calf i{width:11px;height:11px;border-radius:50%;display:inline-block}
.calf.mine i{background:var(--teal)}.calf.team i{background:var(--gold)}
.calf[aria-pressed="false"]{opacity:.5;text-decoration:line-through}
.cgrid{flex:1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:auto repeat(6,minmax(0,1fr));overflow:auto;min-height:0}
.cwd{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:8px 8px 6px;border-bottom:1px solid var(--line)}
.cday{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:4px 5px;display:flex;flex-direction:column;gap:2px;min-height:96px;cursor:pointer;overflow:hidden}
.cday:nth-child(7n+7){border-right:none}
.cday:hover{background:#FAFCFD}
.cday.other{background:#FBFAF7}.cday.other .cnum{color:#A9A294}
.cnum{font-size:13px;font-weight:600;width:26px;height:26px;display:flex;align-items:center;justify-content:center;border-radius:50%;flex:0 0 auto}
.cday.today .cnum{background:var(--navy);color:#fff}
.cday.sel{box-shadow:inset 0 0 0 2px var(--gold-soft)}
.evc{display:flex;gap:4px;align-items:center;width:100%;border:none;border-radius:6px;padding:2px 6px;font-size:12.5px;text-align:left;min-height:21px;background:#E3EEF3;color:#0F3B4C}
.evc.team{background:#F6E9CC;color:#5A420E}
.evc.allday.mine{background:var(--teal);color:#fff}.evc.allday.team{background:var(--gold);color:#fff}
.evc .evt{font-weight:700;flex:0 0 auto}
.evc .evn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmore{border:none;background:none;color:var(--teal);font-size:12px;font-weight:700;text-align:left;padding:1px 6px}
.cdots{display:flex;gap:3px;justify-content:center;margin-top:2px}
.cdots i{width:6px;height:6px;border-radius:50%;background:var(--teal)}.cdots i.team{background:var(--gold)}
.cdaylist{border-top:1px solid var(--line);padding:10px 14px 16px;overflow-y:auto;max-height:42%}
.cdlh{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.cnone{color:var(--muted);margin:6px 0}
.agenda{flex:1;overflow-y:auto;padding:6px 16px 20px}
.agday{display:flex;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.agdate{width:54px;flex:0 0 54px;display:flex;flex-direction:column;align-items:center;color:var(--muted)}
.agdate b{font-size:24px;color:var(--navy);line-height:1.1}
.agday.today .agdate b{background:var(--navy);color:#fff;border-radius:50%;width:38px;height:38px;display:flex;align-items:center;justify-content:center;font-size:18px}
.agdate span{font-size:12px;text-transform:uppercase}
.agitems{flex:1;display:flex;flex-direction:column;gap:6px;min-width:0}
.agrow{display:flex;align-items:center;gap:12px;width:100%;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 12px;text-align:left}
.agrow:hover{background:var(--hover)}
.agrow>i{width:10px;height:10px;border-radius:50%;background:var(--teal);flex:0 0 10px}.agrow.team>i{background:var(--gold)}
.agtime{font-size:13px;color:var(--muted);min-width:96px;font-variant-numeric:tabular-nums}
.agtitle{display:flex;flex-direction:column;min-width:0}
.agtitle b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agtitle small{color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dlg.wide{max-width:600px}
.evtimes{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.dt2{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:6px}.dt2 input{min-width:0;width:100%}
.evtimes .field{min-width:0}
.peoplein{border:1px solid var(--line2);border-radius:10px;padding:4px 8px;min-height:44px}
.evcal{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--muted)}
.evcal i{width:11px;height:11px;border-radius:3px;background:var(--teal)}.evcal.team i{background:var(--gold)}
.evrow{display:flex;gap:12px;align-items:flex-start;font-size:14.5px;line-height:1.5}
.evrow>.ic{margin-top:2px;color:var(--muted)}
.evrow small{display:block;color:var(--muted)}
.guests{display:flex;flex-direction:column;gap:4px}
.guest{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px}
.guest small{color:var(--muted)}
.gst{width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;background:var(--chip);color:var(--muted)}
.guest.accepted .gst{background:#E8F4EC;color:#1E6B3A}.guest.declined .gst{background:var(--danger-soft);color:var(--danger)}.guest.tentative .gst{background:var(--warn-bg);color:var(--warn-ink)}
.btn.danger{color:var(--danger)}
/* invitation box on an email */
.invite{display:flex;gap:14px;margin:4px 0 14px;padding:14px 16px;border:1px solid var(--line2);border-left:5px solid var(--gold);border-radius:12px;background:#FFFCF4}
.invite.cancelled{border-left-color:var(--danger);background:#FFF8F6}
.invite.cancelled .invtitle{text-decoration:line-through}
.invic{width:40px;height:40px;flex:0 0 40px;border-radius:10px;background:#F6E9CC;color:#5A420E;display:flex;align-items:center;justify-content:center}
.invbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.invt{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--gold)}
.invtitle{font-size:17px;color:var(--navy)}
.invwhen{font-size:14px;color:var(--ink2)}
.invwhen.warn{color:var(--warn-ink)}
.invacts{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}
.invq,.invst{font-size:14px;font-weight:600;color:var(--ink2);margin-right:4px}
.invst small{font-weight:400;color:var(--muted)}
.invacts .abtn.on{background:var(--navy);color:#fff;border-color:var(--navy)}
@media (max-width:640px){
  .calbar{padding:10px 12px;gap:8px}
  .calbar h2{font-size:18px;min-width:0;flex:1 1 100%}
  .cgrid{grid-template-rows:auto repeat(6,46px);flex:0 0 auto}
  .cday{min-height:46px;align-items:center;padding:3px}
  .evtimes{grid-template-columns:1fr}
  .calf{height:30px;padding:0 9px}
}
.rtrules{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.rtrule{width:100%;border:1px solid var(--line2);border-radius:12px;padding:12px 14px;background:#FCFAF6;display:flex;flex-direction:column;gap:10px}
.rtrule .field{margin:0}
.rthead{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rthead .abtn{display:inline-flex;align-items:center;gap:4px}
.rtrule .peoplein{background:#fff;position:relative}
.rtrule .peoplein .sug{left:0}
.where{display:block}
.where .ic{width:13px;height:13px;vertical-align:-2px;margin-right:3px;color:var(--gold)}
.where.gps{color:var(--ink)}
.approx{color:var(--muted);font-style:italic}
.ipnote{color:var(--muted)}
.maplnk{color:var(--navy);font-weight:600;text-decoration:underline}
.hwhere .ic{width:12px;height:12px;vertical-align:-1px;color:var(--gold)}
.locshare{display:inline-flex;align-items:center;gap:4px;margin:2px 0;padding:0;font-size:13px}
.locshare .ic{width:14px;height:14px}
.locbar{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:300;width:min(560px,calc(100% - 32px));display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line2);border-radius:14px;box-shadow:0 16px 40px rgba(0,0,0,.18);padding:14px 16px}
.locbar>.ic{width:26px;height:26px;flex:none;color:var(--gold)}
.locmsg{flex:1;display:flex;flex-direction:column;gap:2px;font-size:14px;min-width:0}
.locmsg span{color:var(--muted);font-size:13px}
.locbtns{display:flex;gap:8px;flex:none}
@media (max-width:560px){.locbar{flex-wrap:wrap}.locbtns{width:100%;justify-content:flex-end}}
.locgate{position:fixed;inset:0;z-index:500;background:rgba(18,61,79,.55);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}
.lgcard{background:#fff;border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.25);max-width:560px;width:100%;padding:28px 28px 20px;display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - 32px);overflow-y:auto}
.lgicon{width:52px;height:52px;border-radius:50%;background:#FBF3E2;display:flex;align-items:center;justify-content:center;color:var(--gold)}
.lgicon .ic{width:28px;height:28px}
.lgcard h2{margin:0;font-family:var(--font-head,inherit);color:var(--navy);font-size:21px}
.lgtext{display:flex;flex-direction:column;gap:10px;font-size:14px;line-height:1.5;color:var(--ink2)}
.lgtext p{margin:0;font-weight:600;color:var(--ink)}
.lgsec{display:flex;flex-direction:column;gap:2px}
.lgsec b{color:var(--navy);font-size:13.5px}
.lghelp{background:#FDF1EE;border:1px solid #F0C5BA;border-radius:12px;padding:12px 14px;font-size:13.5px;line-height:1.5;color:#7A2E1E}
.lghelp ul{margin:6px 0 0;padding-left:18px}
.lghelp li{margin:3px 0}
.lggo{justify-content:center;height:46px;font-size:15px;gap:8px;margin-top:4px}
.lgout{align-self:center;font-size:13px}
@media (max-width:560px){.lgcard{padding:22px 18px 16px}}
.lggo{white-space:normal;height:auto;min-height:46px;padding:8px 14px}
.lgout{background:none;border:0;padding:4px 8px;color:var(--navy);text-decoration:underline;cursor:pointer;font:inherit;font-size:13px}
/* address requests + admin (Nov 2026) */
.sumsg{font-size:13px;line-height:1.45;min-height:0}
.sumsg.ok{color:#1E6B3A}.sumsg.bad{color:var(--danger)}
.suaddr{display:flex;align-items:center;gap:6px}.suaddr input{flex:1;min-width:0}.suaddr span{font-weight:600;color:var(--navy);white-space:nowrap}
.surow{display:flex;gap:8px}.surow input{flex:1;min-width:0}.surow .btn{white-space:nowrap}
.field .hint{font-size:12.5px;color:var(--muted);font-weight:400;line-height:1.45}
.rqcard{border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:12px 0;display:flex;flex-direction:column;gap:10px;background:#fff}
.rqhead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.rqhead b{display:block;font-size:15px;overflow-wrap:anywhere}.rqhead small{color:var(--muted);font-size:13px}
.rqinfo{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:5px 14px;margin:0;font-size:13.5px}
.rqinfo dt{color:var(--muted)}.rqinfo dd{margin:0;overflow-wrap:anywhere}
.rqreason{white-space:pre-wrap}
.rqreject{display:flex;flex-direction:column;gap:8px}.rqreject textarea{width:100%}
.mbact{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.abtn.danger{color:var(--danger)}
.devtag.red{color:var(--danger);background:var(--danger-soft)}
.roleadd{display:flex;flex-direction:column;gap:10px;margin-top:8px;max-width:560px}.roleadd select{height:42px;border:1px solid var(--line2);border-radius:8px;padding:0 10px;background:#fff;font-size:14px;color:var(--ink)}.roleadd>.btn{align-self:flex-start}.rolelbl{font-size:13.5px;font-weight:600;color:var(--navy);margin-top:4px}
@media (max-width:640px){.rqinfo{grid-template-columns:1fr}.rqinfo dt{margin-top:4px}.dev{flex-wrap:wrap}.dev .mbact{width:100%;justify-content:flex-start}}
.rpwopts{display:flex;flex-direction:column;gap:6px}.rpwopts .btn{justify-content:flex-start;height:auto;min-height:44px;padding:8px 14px;text-align:left}.rpwopts small{color:var(--muted);font-size:12.5px;line-height:1.45;margin:0 0 8px 2px}
.tmppw{font:600 20px/1.3 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.04em;background:var(--chip);border-radius:10px;padding:12px 14px;text-align:center;user-select:all;overflow-wrap:anywhere}
.rolecards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:4px 0 18px}
.rolecard{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff}
.rolehead{display:flex;align-items:center;gap:8px;margin-bottom:6px;color:var(--navy)}.rolehead .ic{width:18px;height:18px}
.rolecard ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px;font-size:13px}
.rolecard li{display:flex;gap:6px;align-items:flex-start}.rolecard li .ic{width:15px;height:15px;flex:0 0 15px;color:#1E6B3A;margin-top:1px}.rolecard li.no{color:var(--muted)}.rolecard li.no .ic{color:var(--danger)}
.roleopts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.roleopt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:1.5px solid var(--line2);border-radius:10px;background:#fff;cursor:pointer;text-align:left;color:var(--ink)}
.roleopt b{font-size:14px;color:var(--navy)}.roleopt small{font-size:12px;color:var(--muted)}
.roleopt.on{border-color:var(--navy);background:#F2F6F8;box-shadow:inset 0 0 0 1px var(--navy)}
@media (max-width:640px){.rolecards,.roleopts{grid-template-columns:1fr}}
.mbsearchwrap{display:flex;align-items:center;gap:8px;border:1px solid var(--line2);border-radius:10px;padding:0 12px;height:42px;background:#fff;margin:0 0 10px}
.mbsearchwrap .ic{width:18px;height:18px;color:var(--muted);flex:0 0 18px}
.mbsearch{flex:1;min-width:0;border:0;outline:0;height:100%;font-size:14px;background:transparent;color:var(--ink)}
.mbcount{color:var(--muted);font-size:12.5px;white-space:nowrap}
.mbsearchwrap:focus-within{border-color:var(--navy);box-shadow:0 0 0 2px rgba(18,59,79,.12)}
.sulogin.bad{border-color:var(--danger)!important;box-shadow:0 0 0 2px rgba(180,40,30,.12)}
.sulogin.good{border-color:#1E6B3A!important}
.suwarn{display:flex;flex-direction:column;gap:4px;background:var(--danger-soft);color:var(--danger);border:1px solid #F0C5BA;border-radius:10px;padding:10px 12px;font-size:13.5px;line-height:1.45;font-weight:400}
.suwarn b{font-size:14px}
.susug{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px;color:var(--ink)}.susug:empty{display:none}.susug span{font-size:12.5px;width:100%}
.suchip{border:1px solid var(--line2);background:#fff;border-radius:999px;padding:5px 11px;font-size:13px;color:var(--navy);font-weight:600;cursor:pointer}.suchip:hover{background:var(--hover)}
.devtag.gold{color:#7A5A12;background:#F6EBCF}
/* Admin > Email security (Nov 2026) */
.banner.danger{background:#FDECEA;color:#8A1C12;flex-wrap:nowrap;align-items:flex-start}.banner.danger .ic{color:#B42318}
.secstats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:6px 0}
.secstat{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff;display:flex;flex-direction:column;gap:2px}
.secstat b{font-size:22px;color:var(--navy)}.secstat span{font-size:12.5px;color:var(--muted)}
.secstat.ok b{color:#1E6B3A}.secstat.warn b{color:#9A6B00}.secstat.bad b{color:var(--danger)}
.seclevels{grid-template-columns:repeat(3,1fr)}
.secatt{display:flex;gap:10px;align-items:flex-start;margin:14px 0 6px}.secatt span{display:flex;flex-direction:column;gap:2px}.secatt small{color:var(--muted);font-size:12.5px;line-height:1.45}
.seclog{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.secrow{padding:9px 12px;border-bottom:1px solid #F3F0EA;display:flex;flex-direction:column;gap:2px;font-size:13px}.secrow:last-child{border-bottom:none}
.secrow1{display:flex;align-items:center;gap:8px;min-width:0}.secrow1 b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.secwhen{color:var(--muted);font-size:12px;white-space:nowrap}.secrow2{color:var(--muted);font-size:12.5px;overflow-wrap:anywhere}.secrow3{color:#8A1C12;font-size:12px}
.qitem{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff}
.qhead{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.qhead b{overflow-wrap:anywhere}.qhead small{color:var(--muted);white-space:nowrap}
.qmeta{font-size:13px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere;line-height:1.5}
.qwhy{display:flex;gap:6px;align-items:flex-start;margin-top:6px;font-size:12.5px;color:#8A1C12}.qwhy .ic{width:15px;height:15px;flex:0 0 15px;margin-top:2px}
.qtext{white-space:pre-wrap;word-break:break-word;background:#F8F7F4;border:1px solid var(--line);border-radius:10px;padding:12px;max-height:45vh;overflow:auto;font:13px/1.5 inherit;margin:10px 0 0}
.secaddrow{display:flex;gap:8px}.secaddrow .seladd{flex:1;min-width:0;height:40px;border:1px solid var(--line2);border-radius:8px;padding:0 10px;font-size:14px}
.seclist{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 6px}
.secchip{display:inline-flex;align-items:center;gap:4px;background:var(--chip);border-radius:999px;padding:4px 6px 4px 12px;font-size:13px}.secchip button{border:none;background:none;cursor:pointer;display:flex;padding:2px;color:var(--muted)}.secchip .ic{width:14px;height:14px}
@media (max-width:640px){.seclevels{grid-template-columns:1fr}}

/* Admin › Shared mailboxes */
.shviews{margin:4px 0 12px}
.shbox{border:1px solid var(--line2);border-radius:12px;padding:12px 14px;margin:0 0 10px;background:#fff}
.shhead{display:flex;align-items:center;gap:10px}.shhead b{display:block;font-size:14px;color:var(--navy);word-break:break-all}.shhead small{color:var(--muted);font-size:12px}
.shbox .seclist{margin:10px 0 0}
.shadd{display:flex;gap:8px;margin-top:10px}.shadd select{flex:1;min-width:0;height:38px;border:1px solid var(--line2);border-radius:8px;padding:0 8px;font-size:14px;background:#fff;color:var(--ink)}
.secchip.warn{background:#FFF4DB}.shwarn{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:#D98E04;color:#fff;font-size:11px;margin-left:2px}
.setbody.busy{opacity:.6;pointer-events:none}
@media (max-width:560px){.shadd{flex-direction:column}.shadd .btn{justify-content:center}}

/* Email security: virus scanning status */
.secvirus{display:flex;gap:10px;align-items:flex-start;margin:12px 0 4px;padding:10px 12px;border-radius:10px;border:1px solid var(--line2)}
.secvirus svg{flex:none;width:20px;height:20px;margin-top:1px}.secvirus span{display:flex;flex-direction:column;gap:2px}.secvirus small{color:var(--muted);font-size:12px}
.secvirus.on{background:#EEF8F1;border-color:#CDE9D6}.secvirus.on svg{color:#1E8A4C}
.secvirus.off{background:#FFF4DB;border-color:#F3DFA8}.secvirus.off svg{color:#B7791F}

/* ---------- chat (Nov 2026) ---------- */
.top .tools .chattop{position:relative}
.cbadge{position:absolute;top:4px;right:3px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--gold);color:var(--navy);font-size:11px;font-weight:800;line-height:18px;text-align:center}
.cav{width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;text-transform:uppercase}
.cav.grp{background:var(--gold);color:var(--navy)}
.cav.big{width:72px;height:72px;flex-basis:72px;font-size:24px}.cav.big .ic{width:32px;height:32px}
.chlist{padding-bottom:10px}
.chi{display:flex;align-items:center;gap:12px;padding:10px 14px;cursor:pointer;border-bottom:1px solid #F5F2EC;position:relative}
.chi:hover{background:var(--hover)}
.chi.on{background:var(--sel)}
.chinfo{flex:1;min-width:0}
.chtop{display:flex;align-items:center;gap:6px}
.chtop b{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;color:var(--ink)}
.chtop small{margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap}
.chtop .muted{color:var(--muted);display:inline-flex}.chtop .muted .ic{width:14px;height:14px}
.chbot{display:flex;align-items:center;gap:8px;margin-top:2px}
.chbot .prev{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:13.5px}
.chi.unread .chtop b{font-weight:800}
.chi.unread .prev{color:var(--ink2);font-weight:600}
.ubadge{background:var(--navy);color:#fff;border-radius:999px;min-width:20px;height:20px;padding:0 6px;font-size:12px;font-weight:700;line-height:20px;text-align:center}
.ubadge.m{background:#9AA5AD}
.chi.person.pick{cursor:pointer}
.chi.person.pick input{width:18px;height:18px;accent-color:var(--navy)}
.chi .pact{display:flex;gap:4px}
.btn.sm{height:30px;padding:0 10px;font-size:13px}
.pplist{max-height:50vh;overflow-y:auto;margin:0 -18px;border-top:1px solid var(--line)}
.dlg .csearchwrap{margin:0}
.fieldlbl{font-size:14px;font-weight:600;color:var(--ink2);margin-bottom:-6px}

.chatpane{position:relative}
.chhead{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line);flex:0 0 auto}
.chhead .cav{width:40px;height:40px;flex-basis:40px}
.chtitle{flex:1;min-width:0;display:flex;flex-direction:column}
.chtitle[role=button]{cursor:pointer}
.chtitle b{font-size:16px;color:var(--navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chsub{color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chmsgs{flex:1;overflow-y:auto;padding:12px 16px 6px;background:#F6F3EC;display:flex;flex-direction:column;gap:2px}
.chday{text-align:center;margin:12px 0 8px}
.chday span{background:#E8E3D8;color:var(--ink2);font-size:12px;font-weight:700;padding:4px 12px;border-radius:999px}
.chsys{align-self:center;text-align:center;color:var(--muted);font-size:12.5px;margin:6px 0;max-width:80%}
.chempty{margin:auto;display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--muted);text-align:center;padding:30px}
.chempty b{color:var(--navy);font-size:17px}
.brow{display:flex;align-items:flex-end;gap:4px;margin-top:8px;max-width:100%}
.brow.joined{margin-top:2px}
.brow.mine{flex-direction:row-reverse}
.brow.flash .bubble{box-shadow:0 0 0 3px var(--gold-soft)}
.bubble{max-width:min(560px,78%);background:#fff;border-radius:16px 16px 16px 4px;padding:7px 11px 5px;box-shadow:0 1px 1.5px rgba(0,0,0,.08);position:relative;min-width:60px}
.brow.mine .bubble{background:#DDEBF1;border-radius:16px 16px 4px 16px}
.brow.joined .bubble{border-radius:16px}
.bubble.pic{padding:4px 4px 3px}
.bubble.uploading{opacity:.7}
.bname{font-size:12.5px;font-weight:700;color:var(--teal);margin-bottom:2px}
.btext{white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;font-size:15px;line-height:1.45;color:var(--ink)}
.btext.big{font-size:34px;line-height:1.2}
.btext.gone{color:var(--muted);font-style:italic;display:flex;align-items:center;gap:6px}
.btext.gone .ic{width:14px;height:14px}
.btext a{word-break:break-all}
.bmeta{display:flex;justify-content:flex-end;align-items:center;gap:5px;font-size:11px;color:var(--muted);margin-top:2px}
.bubble.pic .bmeta{padding:0 6px 2px}
.tick{font-weight:700;letter-spacing:-2px;padding-right:2px}
.tick.seen{color:#1A8FD0}
.breply{border-left:3px solid var(--gold);background:rgba(18,61,79,.06);border-radius:6px;padding:4px 8px;margin:2px 0 5px;cursor:pointer;display:flex;flex-direction:column;max-width:100%}
.breply b{font-size:12.5px;color:var(--teal)}
.breply span{font-size:13px;color:var(--ink2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bimg{display:block;max-width:min(100%,320px);max-height:340px;height:auto;width:auto;border-radius:12px;cursor:zoom-in;background:#EEE}
.bfile{display:flex;align-items:center;gap:10px;padding:6px 4px;text-decoration:none;color:var(--ink);min-width:200px}
.bfile .fic{width:38px;height:38px;border-radius:10px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 38px}
.bfile .fmeta{flex:1;min-width:0;display:flex;flex-direction:column}
.bfile .fmeta b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bfile .fmeta small{color:var(--muted);font-size:12px}
.breacts{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 2px}
.rchip{border:1px solid var(--line2);background:#fff;border-radius:999px;height:24px;padding:0 7px;font-size:13px;display:inline-flex;align-items:center;gap:3px}
.rchip.me{border-color:var(--teal);background:#E7F0F4}
.rchip small{font-size:11px;font-weight:700;color:var(--ink2)}
.bmore{opacity:0;width:30px;height:30px;background:transparent;flex:0 0 30px;align-self:center}
.brow:hover .bmore,.bmore:focus-visible{opacity:1}
.seenby{align-self:flex-end;font-size:11.5px;color:var(--muted);margin:2px 4px 0}
.rpick{display:flex;gap:2px;padding:2px 2px 6px;border-bottom:1px solid var(--line);margin-bottom:4px}
.menu .rpick button.rp{width:38px;height:38px;justify-content:center;padding:0;font-size:22px;border-radius:50%}
.menu .rpick button.rp.on{background:#E7F0F4}
.chtyping{min-height:20px;padding:0 18px;font-size:12.5px;color:var(--teal);font-style:italic;background:#F6F3EC}
.cmp{border-top:1px solid var(--line);padding:8px 10px;background:#fff;flex:0 0 auto;position:relative}
.cmp.drop{outline:2px dashed var(--gold);outline-offset:-4px}
.cmpbar{display:flex;align-items:center;gap:10px;padding:4px 6px 8px;color:var(--teal)}
.cmpbar>div{flex:1;min-width:0;display:flex;flex-direction:column;border-left:3px solid var(--gold);padding-left:8px}
.cmpbar b{font-size:13px}
.cmpbar span{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmprow{display:flex;align-items:flex-end;gap:6px}
.cmprow textarea{flex:1;resize:none;border:1px solid var(--line2);border-radius:20px;padding:9px 14px;font-size:15px;line-height:1.4;max-height:160px;min-height:40px;outline:none;background:#FBFAF7}
.cmprow textarea:focus{border-color:var(--teal);background:#fff}
.cmprow .ib{width:40px;height:40px;flex:0 0 40px}
.cmprow .chin{flex:1;min-width:0;border:1px solid var(--line2);border-radius:20px;padding:9px 14px;font-size:15px;line-height:1.4;max-height:160px;min-height:40px;overflow-y:auto;outline:none;background:#FBFAF7;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;color:var(--ink);cursor:text}
.cmprow .chin:focus{border-color:var(--teal);background:#fff}
.cmprow .chin:empty::before{content:attr(data-ph);color:var(--muted);pointer-events:none}
.chaa-t{font-weight:800;font-size:16px;letter-spacing:-.5px;color:var(--ink2)}.chaa-t small{font-size:12px;font-weight:700}
.cfm{position:fixed;z-index:9000;width:236px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.18);padding:6px;font-size:14px}
.cfm-i{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;border-radius:8px;padding:7px 8px;cursor:pointer;color:var(--ink);text-align:left;font:inherit}
.cfm-i:hover:not(:disabled){background:var(--chip)}
.cfm-i.on{background:#FBF1DC}
.cfm-i:disabled{opacity:.4;cursor:default}
.cfm-ico{width:18px;text-align:center;font-size:15px}
.cfm-l{flex:1}
.cfm-k{font-size:12px;color:var(--muted)}
.cfm-sep{height:1px;background:var(--line);margin:5px 4px}
.cfm-h{font-size:11.5px;font-weight:700;color:var(--ink2);margin:4px 8px 5px}
.cfm-sw{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;padding:0 8px 4px}
.cfm-sw button{width:26px;height:26px;border-radius:6px;border:1px solid rgba(0,0,0,.15);cursor:pointer;padding:0}
.cfm-sw button:hover{transform:scale(1.12);box-shadow:0 2px 6px rgba(0,0,0,.2)}
.cfm-hint{font-size:12px;color:#B45309;background:#FFF7E6;border-radius:8px;padding:6px 8px;margin-bottom:4px}
.sendbtn{width:42px;height:42px;flex:0 0 42px;border-radius:50%;border:none;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center}
.sendbtn:hover{background:var(--teal)}
.newbelow{position:absolute;right:20px;bottom:96px;z-index:5;border:none;border-radius:999px;background:var(--navy);color:#fff;font-weight:700;font-size:13px;padding:8px 14px;box-shadow:0 6px 16px rgba(0,0,0,.2)}
.imgview{flex-direction:column;gap:10px;background:rgba(10,18,24,.88);z-index:60}
.imgview img{max-width:96vw;max-height:84vh;border-radius:8px;cursor:zoom-out}
.imgview .imgbar{display:flex;align-items:center;gap:10px;color:#fff;max-width:96vw}
.imgview .imgbar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.imgview .imgbar .ib{background:rgba(255,255,255,.15);color:#fff}
@media (max-width:860px){
  .chatpane .chhead{padding:8px 10px}
  .chmsgs{padding:10px 10px 4px}
  .bubble{max-width:86%}
  .bmore{display:none}
  .newbelow{bottom:84px}
  .lhead .btn .lbl{display:none}
}
/* chat cards (Nov 2026): poll, to-do, meeting, approval, reminder, contact */
.bubble.card{min-width:min(300px,100%);width:340px;max-width:min(380px,86%)}
.cc{display:flex;flex-direction:column;gap:6px;padding:2px 0 4px}
.cc.off{opacity:.6}
.cc-h{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--ink2);text-transform:uppercase;letter-spacing:.3px}
.cc-t{font-size:15.5px;font-weight:700;color:var(--ink);line-height:1.35;word-wrap:break-word}
.cc-row{font-size:14px;color:var(--ink);line-height:1.4;word-wrap:break-word}
.cc-row a{color:var(--teal)}
.cc-note{font-size:13.5px;color:var(--ink2);background:rgba(0,0,0,.035);border-radius:8px;padding:6px 8px;white-space:pre-wrap;word-wrap:break-word}
.cc-who{font-size:12.5px;color:var(--muted)}
.cc-f{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);margin-top:2px}
.cc-link{border:0;background:none;color:var(--teal);font-weight:700;font-size:12.5px;cursor:pointer;padding:2px 0}
.cc-link:hover{text-decoration:underline}
.cc-opt{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:1px solid var(--line2);background:#fff;border-radius:10px;padding:8px 10px;cursor:pointer;overflow:hidden;text-align:left;font:inherit;color:var(--ink)}
.cc-opt:hover:not(:disabled){border-color:var(--teal)}
.cc-opt:disabled{cursor:default}
.cc-opt.on{border-color:var(--teal)}
.cc-bar{position:absolute;left:0;top:0;bottom:0;background:rgba(31,111,139,.13);transition:width .3s}
.cc-opt.on .cc-bar{background:rgba(31,111,139,.24)}
.cc-ot{position:relative;display:flex;align-items:center;gap:8px;font-size:14px;min-width:0;word-wrap:break-word}
.cc-dot{flex:0 0 18px;width:18px;height:18px;border-radius:50%;border:2px solid var(--line2);display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#fff}
.cc-opt.on .cc-dot{background:var(--teal);border-color:var(--teal)}
.cc-pct{position:relative;font-size:12px;color:var(--ink2);white-space:nowrap;font-weight:600}
.cc-prog{height:5px;border-radius:3px;background:rgba(0,0,0,.08);overflow:hidden}
.cc-prog span{display:block;height:100%;background:#2B8A3E;transition:width .3s}
.cc-task{display:flex;align-items:flex-start;gap:9px;font-size:14px;padding:4px 2px;cursor:pointer;line-height:1.35;word-wrap:break-word}
.cc-task input{margin-top:2px;width:17px;height:17px;flex:0 0 17px;accent-color:#2B8A3E}
.cc-task.done>span{text-decoration:line-through;color:var(--muted)}
.cc-task small{text-decoration:none;display:inline-block;color:#2B8A3E;font-size:11.5px}
.cc-addin{border:1px dashed var(--line2);border-radius:8px;padding:6px 9px;font-size:13.5px;background:transparent;outline:none;width:100%}
.cc-addin:focus{border-style:solid;border-color:var(--teal);background:#fff}
.cc-btns{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px}
.cc-rs{flex:1;min-width:80px;border:1px solid var(--line2);background:#fff;border-radius:999px;padding:7px 10px;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;color:var(--ink)}
.cc-rs:hover{border-color:var(--teal)}
.cc-rs.on{background:var(--teal);border-color:var(--teal);color:#fff}
.cc-rs.ok{background:#2B8A3E;border-color:#2B8A3E;color:#fff}
.cc-rs.no{color:#C92A2A;border-color:#F1AEB5}
.cc-pill{align-self:flex-start;font-size:12.5px;font-weight:700;border-radius:999px;padding:4px 10px;background:#FFF4E0;color:#9A5B00}
.cc-pill.approved{background:#E6F4EA;color:#1E6B32}
.cc-pill.rejected{background:#FDECEC;color:#B02525}
.cc-pill.cancelled{background:#EEE;color:#666}
.cc-contact{display:flex;align-items:center;gap:10px}
.cc-av{width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:var(--navy);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:17px}
.bvid{display:block;width:min(320px,100%);max-height:360px;border-radius:12px;background:#000}
.bvid-dl{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--muted);text-decoration:none;margin-top:4px;word-break:break-all}
.bvid-dl .ic{width:14px;height:14px}
/* card forms */
.ccf{display:flex;flex-direction:column;gap:12px;min-width:min(420px,80vw)}
.ccf .field{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;color:var(--ink2);margin:0}
.ccf input[type=text],.ccf input[type=email],.ccf input[type=tel],.ccf input[type=date],.ccf input[type=time],.ccf select,.ccf textarea{width:100%;border:1px solid var(--line2);border-radius:9px;padding:8px 10px;font:inherit;font-size:14px;font-weight:400;background:#fff;color:var(--ink)}
.ccf textarea{resize:vertical}
.ccf-list{display:flex;flex-direction:column;gap:6px}
.ccf-row{display:flex;gap:6px;align-items:center}
.ccf-row .ib{width:34px;height:34px;flex:0 0 34px}
.ccf-add{align-self:flex-start;margin-top:6px;font-size:13px}
.ccf-check{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ink);cursor:pointer}
.ccf-hint{font-size:12px;font-weight:400;color:var(--muted);line-height:1.45}
.ccf-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ccf-3{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:10px}
.ccf-hits{display:flex;flex-direction:column;gap:4px}
.ccf-hit{display:flex;flex-direction:column;align-items:flex-start;border:1px solid var(--line);border-radius:8px;background:#fff;padding:6px 9px;cursor:pointer;text-align:left;font:inherit}
.ccf-hit:hover{border-color:var(--teal)}
.ccf-hit small{color:var(--muted);font-size:12px;font-weight:400}
@media (max-width:600px){.ccf{min-width:0}.ccf-3{grid-template-columns:1fr 1fr}.ccf-3 .field:first-child{grid-column:1/-1}.bubble.card{width:auto}}

/* phone format bar shown while text is selected in the chat box (Nov 2026) */
.csb{position:absolute;left:8px;right:8px;bottom:calc(100% + 6px);z-index:30;display:flex;flex-direction:column;gap:6px;align-items:center;pointer-events:none}
.csb>*{pointer-events:auto}
.csb-row{display:flex;align-items:center;gap:2px;background:#1F2328;border-radius:14px;padding:4px 6px;box-shadow:0 8px 22px rgba(0,0,0,.25)}
.csb-b{width:40px;height:40px;border:0;background:none;color:#fff;font-size:17px;border-radius:10px;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}
.csb-b.on{background:rgba(255,255,255,.2)}
.csb-b small{font-size:11px;margin-left:1px}
.csb-sep{width:1px;height:22px;background:rgba(255,255,255,.25);margin:0 2px}
.csb-a{display:flex;flex-direction:column;align-items:center;line-height:1;font-weight:800;font-size:16px}
.csb-a i{display:block;width:18px;height:4px;border-radius:2px;margin-top:2px}
.csb-sw{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;background:#fff;border-radius:14px;padding:10px;box-shadow:0 8px 22px rgba(0,0,0,.2);max-width:300px}
.csb-sw button{width:32px;height:32px;border-radius:8px;border:1px solid rgba(0,0,0,.15)}

/* Admin > Mail connector (Nov 2026) */
.cnsw .shhead{align-items:center}.cnsw.on{border-color:#2B8A3E;background:#F3FBF5}
.cndot{width:14px;height:14px;border-radius:50%;background:#C92A2A;flex:0 0 14px;box-shadow:0 0 0 4px rgba(201,42,42,.15)}
.cndot.on{background:#2B8A3E;box-shadow:0 0 0 4px rgba(43,138,62,.18)}
.cnswrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}
.cnswrow select{height:38px;border:1px solid var(--line2);border-radius:9px;padding:0 10px;background:#fff;font:inherit;font-size:14px}
.cnhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 8px}.cnhead h4{margin:0}
.cnlink.off{opacity:.65}
.cntag{display:inline-block;margin-left:8px;font-size:11px;font-weight:700;background:#EEE;color:#666;border-radius:999px;padding:2px 8px;vertical-align:middle}
.cnurl{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:10px 0 0}
.cnurl code{flex:1;min-width:180px;background:var(--chip);border-radius:8px;padding:8px 10px;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cnacts{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.cnboxes{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:4px 12px;margin:6px 0}
.cnbox{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:400;color:var(--ink);cursor:pointer;word-break:break-all}
.cnbox.refused{color:var(--muted)}.cnbox small{color:#B45309}
.cnbox.all{margin-bottom:4px}
.cnlog .hrow{grid-template-columns:20px minmax(0,1fr);align-items:flex-start}
.ccf-hint{display:block;color:var(--muted);font-weight:400;font-size:12.5px}
.ccf-check{display:flex;align-items:center;gap:8px;font-size:14px}.cnsub{color:var(--ink2)}.cnwhen{display:block;color:var(--muted);font-size:12px}
.cnapp{color:var(--muted)}
.cnapps{display:block;color:var(--muted);margin-top:2px}.cnapps.many{color:#B45309;font-weight:600}
.cnlog .cntag{margin:0 6px 0 0}.cntag.gone{background:#FDECEC;color:#B42318}
.cnpager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;font-size:13px;color:var(--muted)}.cnpager:empty{display:none}.cnpager .btn[disabled]{opacity:.45;pointer-events:none}
.mbnewaddr{display:flex;align-items:center;gap:6px}.mbnewaddr input{flex:1;min-width:0}.mbnewaddr span{color:var(--muted);font-weight:500;white-space:nowrap}
/* voice and video calls (Nov 2026) */
.callov{position:fixed;inset:0;z-index:9000;background:#0E2A36;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;padding:env(safe-area-inset-top) 16px env(safe-area-inset-bottom)}
.callov.incoming{background:linear-gradient(180deg,#14394A,#0E2A36)}
.callremote{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000;opacity:0;pointer-events:none}
.callov.peervideo .callremote{opacity:1}
.callov.peerscreen .callremote{object-fit:contain}
.callmid{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;margin-bottom:120px}
.callov.peervideo .callmid{position:absolute;top:calc(14px + env(safe-area-inset-top));left:16px;margin:0;align-items:flex-start;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.callov.peervideo .callav{display:none}
.callav{width:112px;height:112px;border-radius:50%;background:#C99A2E;color:#0E2A36;display:flex;align-items:center;justify-content:center;font-size:40px;font-weight:700;line-height:1;box-shadow:0 0 0 10px rgba(255,255,255,.06),0 0 0 22px rgba(255,255,255,.03)}
.callov.incoming .callav{animation:callpulse 1.6s ease-out infinite}
@keyframes callpulse{0%{box-shadow:0 0 0 0 rgba(201,154,46,.55)}100%{box-shadow:0 0 0 34px rgba(201,154,46,0)}}
.callname{font-size:24px;font-weight:700;max-width:90vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.callstat{font-size:15px;opacity:.85;min-height:20px}
.calllocal{position:absolute;z-index:2;right:16px;top:calc(16px + env(safe-area-inset-top));width:min(28vw,180px);aspect-ratio:3/4;object-fit:cover;border-radius:14px;background:#000;box-shadow:0 4px 18px rgba(0,0,0,.45);display:none}
.callov.mycam .calllocal{display:block}
.calllocal.mirror{transform:scaleX(-1)}
.callbar{position:absolute;z-index:3;left:0;right:0;bottom:calc(26px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:clamp(12px,4vw,28px);flex-wrap:wrap;padding:0 12px}
.callbtnwrap{display:flex;flex-direction:column;align-items:center;gap:6px}
.callbtnwrap small{font-size:12px;opacity:.85;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.callbtn{width:60px;height:60px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.callbtn:hover{background:rgba(255,255,255,.26)}
.callbtn:focus-visible{outline:3px solid #C99A2E;outline-offset:2px}
.callbtn.off{background:#fff;color:#0E2A36}
.callbtn.on{background:#C99A2E;color:#0E2A36}
.callbtn.red{background:#D93025}.callbtn.red:hover{background:#B3261E}
.callbtn.green{background:#1E8E3E}.callbtn.green:hover{background:#177A33}
.callbtn[disabled]{opacity:.4;cursor:default}
.callbtn .callic svg{width:26px;height:26px}
.callov.incoming .callbtn{width:68px;height:68px}
.callov.ended .callstat{font-size:17px;opacity:1}
.ib .callic{display:inline-flex}
.chsys.chcall{display:flex;align-items:center;gap:8px;justify-content:center;flex-wrap:wrap;background:var(--chip);border-radius:999px;padding:5px 12px}
.chsys.chcall .linkbtn{font-size:12.5px;padding:0}
.menu.sheet{left:8px;right:8px;top:auto;bottom:calc(8px + env(safe-area-inset-bottom));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:16px}
.menu.sheet button{height:46px;font-size:15px}
/* phones (Nov 2026): typing boxes at 16px so phones don't zoom in when you tap them; a tidier chat header */
@media (max-width:860px){
  input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select,.chin,[contenteditable="true"]{font-size:16px!important}
  .chhead{gap:6px;padding:8px 10px}
  .chhead .ib{width:38px;height:38px;flex:0 0 38px}
}
@media (max-width:640px){.chhead .chbell{display:none}}
@media (max-width:380px){.chhead .cav{width:34px;height:34px;flex-basis:34px;font-size:14px}.chhead .ib{width:34px;height:34px;flex-basis:34px}.chhead{gap:4px;padding:8px}}
.cmprow .chin:empty::before{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Nov 2026: profile photos, group info, roles */
.cav{position:relative;overflow:hidden}
.cav.ph{background:#dfe7ea}
.cav img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
.avatar{overflow:hidden;padding:0}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.lhead .mybtn{border:0;background:none;padding:0;cursor:pointer;border-radius:50%;flex:0 0 auto}
.lhead .mybtn .cav{width:34px;height:34px;flex-basis:34px;font-size:12px}
.lhead .mybtn:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.stag.role-owner{background:#FFF3D6;color:#8A5A00}
.stag.role-admin{background:#E7F0F4;color:var(--teal)}
.ginfo{display:flex;gap:14px;align-items:flex-start;margin-bottom:12px}
.ginfo>div:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.ginfo .gname{font-size:17px;word-break:break-word}
.ginfo small{color:var(--muted,#64748b)}
.ginfo .gabout{margin:6px 0 2px;white-space:pre-wrap;word-break:break-word;line-height:1.5}
.ginfo .grule{font-style:italic}
.gbtns{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.phfield{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.phfield .btn.sm{margin:2px 0}
.chtitle{cursor:pointer}
.dlg textarea{width:100%;box-sizing:border-box;font:inherit;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;resize:vertical}
@media (max-width:640px){.dlg textarea{font-size:16px}}
.dbody .phfield ~ .field{margin-bottom:10px}
.dbody .field textarea{height:auto;min-height:80px;padding:9px 13px;line-height:1.5}

/* Nov 2026: chat History panel (polls, to-dos, meetings, approvals) */
.chhead .histbtn.on{background:var(--teal);color:#fff}
.chpanel{position:absolute;top:0;right:0;bottom:0;width:min(380px,100%);background:#fff;border-left:1px solid #e5e0d6;box-shadow:-8px 0 24px rgba(15,40,55,.12);z-index:6;display:flex;flex-direction:column;border-radius:0 0 16px 0}
.chp-head{display:flex;align-items:center;gap:6px;padding:8px 10px 8px 14px;border-bottom:1px solid #eee7da;min-height:52px;box-sizing:border-box}
.chp-head b{flex:1;font-size:16px;color:var(--navy,#123)}
.chp-body{flex:1;overflow:auto;padding:10px 12px 16px}
.chp-kind{display:flex;align-items:center;gap:10px;width:100%;border:1px solid #eee7da;background:#fbfaf7;border-radius:12px;padding:12px;margin-bottom:8px;cursor:pointer;font:inherit;text-align:left;color:inherit}
.chp-kind:hover{background:#f3efe6}
.chp-ico{font-size:20px}.chp-kl{flex:1;font-weight:600}
.chp-n{min-width:24px;text-align:center;font-weight:700;font-size:12px;background:#E7F0F4;color:var(--teal);border-radius:999px;padding:2px 8px}
.chp-kind .ic{width:16px;height:16px;opacity:.6}
.chp-note{font-size:13px;color:#64748b;margin:12px 2px}
.chp-filters{display:flex;gap:6px;margin-bottom:10px;flex-wrap:wrap}
.chp-f{border:1px solid #d9d2c3;background:#fff;border-radius:999px;padding:5px 12px;font:inherit;font-size:13px;cursor:pointer;color:inherit}
.chp-f.on{background:var(--navy,#123);border-color:var(--navy,#123);color:#fff}
.chp-item{border:1px solid #eee7da;border-radius:12px;margin-bottom:8px;overflow:hidden;background:#fff}
.chp-item.open{border-color:var(--teal)}
.chp-row{display:block;width:100%;border:0;background:none;text-align:left;padding:10px 12px;cursor:pointer;font:inherit;color:inherit}
.chp-row:hover{background:#fbfaf7}
.chp-rt{display:flex;gap:8px;align-items:flex-start;justify-content:space-between}
.chp-rt b{font-size:14px;word-break:break-word}
.chp-row small{display:block;color:#64748b;margin-top:3px;font-size:12px}
.chp-tag{flex:0 0 auto;font-size:11px;font-weight:700;border-radius:999px;padding:2px 8px;background:#eef2f5;color:#475569;white-space:nowrap}
.chp-tag.open,.chp-tag.pending{background:#FFF3D6;color:#8A5A00}
.chp-tag.done,.chp-tag.approved{background:#E3F4E8;color:#1F7A3D}
.chp-tag.rejected{background:#FDE4E4;color:#B42318}
.chp-card{padding:0 10px 10px}
.chp-card .cc{margin:0 0 6px;max-width:none}
@media (max-width:640px){.chpanel{border-radius:0;width:100%}}
.chatpane.histside>.chmsgs,.chatpane.histside>.chtyping,.chatpane.histside>.cmp{margin-right:min(380px,100%)}
.chp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.chp-ph{border:0;padding:0;background:#eee;border-radius:8px;overflow:hidden;aspect-ratio:1;cursor:zoom-in}
.chp-ph img{width:100%;height:100%;object-fit:cover;display:block}
.chp-rt b{min-width:0;overflow-wrap:anywhere}
.chp-vid{width:100%;max-height:240px;border-radius:8px;background:#000;margin-bottom:8px}
.chp-acts{display:flex;align-items:center;gap:12px;flex-wrap:wrap}

/* to-do: who does each task (16 Nov 2026) */
.cc-task{position:relative}
.cc-task>span{flex:1 1 auto;min-width:0}
.cc-who2{display:block!important;color:var(--teal)!important;font-size:12px!important;margin-top:2px}
.cc-asg{flex:0 0 auto;border:1px solid var(--line2);background:transparent;border-radius:14px;padding:1px 8px;font-size:12px;cursor:pointer;line-height:1.6;color:var(--muted)}
.cc-asg:hover{border-color:var(--teal);color:var(--teal)}
.cc-asgt{margin:0 0 10px;font-weight:600;word-wrap:break-word}
.cc-asgl{display:flex;flex-direction:column;gap:6px;max-height:50vh;overflow:auto}
.cc-logl{display:flex;flex-direction:column;gap:10px;max-height:60vh;overflow:auto}
.cc-logrow{font-size:14px;line-height:1.45;word-wrap:break-word}
.cc-logrow small{display:block;color:var(--muted);font-size:12px}

/* to-do form: choose people per task (16 Nov 2026) */
.ccf-asg{height:34px;max-width:42%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:8px;padding:0 9px}
.ccf-asg.on{border-color:var(--teal);color:var(--teal)}
.ccf-row input{min-width:0;flex:1 1 auto}

/* phone settings: a section's items drop down under it (16 Nov 2026) */
.setdrop,.setcat .setchev{display:none}
@media (max-width:820px){
  .setsubs:not(.q){display:none}
  .setnav{padding-bottom:16px}
  .setcat .setchev{display:block;margin-left:auto;width:16px;height:16px;color:var(--muted);transition:transform .15s}
  .setcat.open .setchev{transform:rotate(90deg)}
  .setdrop{display:block;margin:2px 0 8px 22px;padding-left:10px;border-left:1px solid var(--line)}
  .setdrop .setsub{padding:11px 12px;font-size:15px}
}

/* to-do: All tasks / My tasks switch (16 Nov 2026) */
.cc-view{display:inline-flex;align-self:flex-start;border:1px solid var(--line2);border-radius:16px;overflow:hidden;margin:2px 0}
.cc-vbtn{border:none;background:transparent;padding:4px 11px;font-size:12.5px;cursor:pointer;color:var(--ink2)}
.cc-vbtn.on{background:var(--teal);color:#fff;font-weight:600}
.cc-none{font-size:13.5px;color:var(--muted);padding:4px 2px}
/* Nov 2026: on phones, pressing and holding a chat message opens our own menu (reactions, reply, copy) - not the phone's Copy / Look Up / Translate bubble. "Copy text" is in our menu. */
@media (pointer:coarse){.bubble{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}}

/* Nov 2026: emoji and GIF picker in chat; country flags on Windows */
html.wf{--font:"TwemojiFlags","DM Sans","Hanuman",system-ui,-apple-system,"Segoe UI",sans-serif}
.cmp{position:relative}
.emop{position:absolute;right:8px;bottom:calc(100% + 6px);width:min(372px,calc(100vw - 16px));height:min(420px,60vh);background:#fff;border:1px solid var(--line2);border-radius:14px;box-shadow:0 10px 30px rgba(18,61,79,.22);display:flex;flex-direction:column;overflow:hidden;z-index:60}
.emotabs{display:flex;gap:4px;padding:6px 8px 0;border-bottom:1px solid var(--line)}
.emotab{border:none;background:transparent;padding:8px 14px;font:600 13.5px var(--font);color:var(--muted);border-bottom:2px solid transparent;cursor:pointer}
.emotab.on{color:var(--teal);border-bottom-color:var(--teal)}
.emobody{flex:1;min-height:0;display:flex;flex-direction:column}
.emotop{padding:8px 8px 4px}
.emosearch{width:100%;box-sizing:border-box;border:1px solid var(--line2);border-radius:18px;padding:7px 12px;font:15px var(--font);outline:none;background:#FBFAF7}
.emosearch:focus{border-color:var(--teal);background:#fff}
.emocats{display:flex;gap:2px;padding:2px 6px;overflow-x:auto;border-bottom:1px solid var(--line);flex:0 0 auto}
.emocat{border:none;background:transparent;font-size:19px;line-height:1;padding:6px 7px;border-radius:8px;cursor:pointer;font-family:var(--font),"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.emocat:hover,.emo:hover{background:var(--hover)}
.emogrid{flex:1;min-height:0;overflow-y:auto;padding:0 6px 8px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.emogrid h5{margin:10px 4px 4px;font:700 12px var(--font);color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.emobtns{display:grid;grid-template-columns:repeat(8,1fr)}
.emo{border:none;background:transparent;font-size:24px;line-height:1;aspect-ratio:1;border-radius:8px;cursor:pointer;padding:0;font-family:var(--font),"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.emonone{color:var(--muted);text-align:center;padding:24px 8px;font-size:14px}
.gifcats{display:flex;gap:6px;padding:8px;overflow-x:auto;flex:0 0 auto}
.gifcat{border:1px solid var(--line2);background:#fff;border-radius:16px;padding:5px 12px;font:600 13px var(--font);color:var(--ink2);white-space:nowrap;cursor:pointer}
.gifcat.on{background:var(--teal);border-color:var(--teal);color:#fff}
.gifgrid{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:0 8px 8px;align-content:start;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.gifb{border:none;padding:0;border-radius:10px;overflow:hidden;cursor:pointer;position:relative;height:0;padding-top:100%;background:var(--chip)}
.gfc{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:6px 4px 7px;box-sizing:border-box}
.gfe{font-size:46px;line-height:1.1;margin-top:6px;display:block;animation:1.1s ease-in-out infinite;font-family:var(--font),"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.gfc b{font:700 12px/1.2 var(--font);text-align:center;max-width:100%}
@keyframes gfa-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes gfa-shake{0%,100%{transform:none}25%{transform:translateX(-4px) rotate(-8deg)}75%{transform:translateX(4px) rotate(8deg)}}
@keyframes gfa-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.14)}}
@keyframes gfa-float{0%,100%{transform:translateY(-3px) rotate(-3deg)}50%{transform:translateY(4px) rotate(3deg)}}
@keyframes gfa-spin{to{transform:rotate(360deg)}}
@keyframes gfa-wave{0%,100%{transform:rotate(-18deg)}50%{transform:rotate(18deg)}}
@keyframes gfa-beat{0%,40%,100%{transform:scale(1)}20%,60%{transform:scale(1.2)}}
@keyframes gfa-slide{0%,100%{transform:translateX(-14px)}50%{transform:translateX(14px)}}
@keyframes gfa-swing{0%,100%{transform:rotate(-14deg)}50%{transform:rotate(14deg)}}
.gfa-bounce{animation-name:gfa-bounce}.gfa-shake{animation-name:gfa-shake;animation-duration:.5s}.gfa-pulse{animation-name:gfa-pulse}.gfa-float{animation-name:gfa-float}.gfa-spin{animation-name:gfa-spin;animation-timing-function:linear;animation-duration:2s}.gfa-wave{animation-name:gfa-wave}.gfa-beat{animation-name:gfa-beat}.gfa-slide{animation-name:gfa-slide}.gfa-swing{animation-name:gfa-swing}
@media (prefers-reduced-motion:reduce){.gfe{animation:none}}
@media (max-width:640px){.emop{position:static;width:auto;height:min(320px,42vh);border-radius:14px 14px 0 0;border-width:1px 0 0;box-shadow:none;margin:6px -10px -8px}.emobtns{grid-template-columns:repeat(8,1fr)}.cmp .chemo{display:inline-flex}}

/* Nov 2026: Chat only accounts and contact requests */
.sethead{font-size:15px;margin:18px 0 6px;color:var(--navy)}
.supre{font-weight:600;color:var(--navy);white-space:nowrap}
html.chatonly .top .search{visibility:hidden}
html.chatonly .top .tools .hide-sm{display:none}
.creq{cursor:default;align-items:flex-start}

/* sign-in: "Sign me out" choice (17 Nov 2026) */
.staysel{width:100%;height:44px;border:1px solid var(--line2);border-radius:10px;padding:0 10px;font-size:15px;background:#fff;color:var(--ink)}

.cobar{display:flex;gap:8px;align-items:flex-start}.cobar .mbsearchwrap{flex:1;margin:0}.mbsel{height:36px;border:1px solid var(--line2);border-radius:10px;padding:0 10px;background:#fff;font:inherit;color:var(--ink)}.cobar .mbsel{height:42px}.mbact{flex-wrap:wrap;align-items:center}
.pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}.pager .pginfo{font-size:13px;color:var(--muted)}.pager .abtn[disabled]{opacity:.45;cursor:default}

/* ---- Chat settings: themes (Nov 2026). Personal: only changes how chats look for this person. ---- */
.chset h4{margin:0 0 6px}
.thgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px;margin:10px 0 14px}
.thcard{border:2px solid var(--line2);background:#fff;border-radius:12px;padding:6px;cursor:pointer;display:flex;flex-direction:column;gap:6px;font:600 13px var(--font);color:var(--ink2);text-align:center}
.thcard.on{border-color:var(--teal);box-shadow:0 0 0 2px rgba(28,95,120,.18)}
.thprev{height:72px;border-radius:8px;display:flex;flex-direction:column;justify-content:center;gap:5px;padding:6px 8px;border:1px solid rgba(0,0,0,.06)}
.thprev i{display:block;height:12px;width:62%;border-radius:7px}
.thprev i.me{align-self:flex-end;width:55%}
.thwp{margin-top:4px}
body[data-cht="navy"] .chmsgs{background-color:#0F2F3D}
body[data-cht="navy"] .bubble{background:#1B4456;box-shadow:none}
body[data-cht="navy"] .brow.mine .bubble{background:#1C5F78}
body[data-cht="navy"] .btext,body[data-cht="navy"] .bfile{color:#EEF3F5}
body[data-cht="navy"] .bmeta,body[data-cht="navy"] .bfile .fmeta small,body[data-cht="navy"] .chsys,body[data-cht="navy"] .chempty{color:#A9BFCA}
body[data-cht="navy"] .chempty b{color:#fff}
body[data-cht="navy"] .bname,body[data-cht="navy"] .breply b{color:#E0B85A}
body[data-cht="navy"] .btext a{color:#F0D08A}
body[data-cht="navy"] .chday span{background:#1B4456;color:#D9E3E8}
body[data-cht="navy"] .breply{background:rgba(255,255,255,.08)}
body[data-cht="navy"] .breply span{color:#D2DDE2}
body[data-cht="navy"] .rchip{background:#1B4456;border-color:#2E5B6E;color:#fff}
body[data-cht="navy"] .rchip small{color:#D2DDE2}
body[data-cht="navy"] .tick.seen{color:#7FD0FF}
body[data-cht="gold"] .chmsgs{background-color:#FBF4E4}
body[data-cht="gold"] .brow.mine .bubble{background:#F1DDA8}
body[data-cht="gold"] .chday span{background:#F1E4C4}
body[data-cht="teal"] .chmsgs{background-color:#E6EFF2}
body[data-cht="teal"] .brow.mine .bubble{background:#1C5F78}
body[data-cht="teal"] .chday span{background:#D3E2E8}
body[data-cht="teal"] .brow.mine .btext,body[data-cht="teal"] .brow.mine .bfile{color:#fff}
body[data-cht="teal"] .brow.mine .bmeta,body[data-cht="teal"] .brow.mine .bfile .fmeta small{color:rgba(255,255,255,.78)}
body[data-cht="teal"] .brow.mine .btext a{color:#FFE7A8}
body[data-cht="teal"] .brow.mine .breply{background:rgba(255,255,255,.14)}
body[data-cht="teal"] .brow.mine .breply b{color:#FFE7A8}
body[data-cht="teal"] .brow.mine .breply span{color:#E6F0F4}
body[data-cht="teal"] .brow.mine .tick.seen{color:#BFE9FF}
body[data-cht="white"] .chmsgs{background-color:#fff}
body[data-cht="white"] .bubble{background:#F3F3F1;box-shadow:none}
body[data-cht="white"] .brow.mine .bubble{background:#E9EEF1}
body[data-cht="white"] .chday span{background:#F0F0EE}
/* cards (polls, to-do lists…) always stay white with normal text */
body[data-cht] .brow .bubble.card,body[data-cht] .brow.mine .bubble.card{background:#fff}
body[data-cht] .brow .bubble.card .btext,body[data-cht] .brow.mine .bubble.card .btext{color:var(--ink)}
body[data-cht] .brow .bubble.card .bmeta,body[data-cht] .brow.mine .bubble.card .bmeta{color:var(--muted)}
/* optional faint Trulya "T" pattern */
body[data-chwp="1"] .chmsgs{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg font-family='Georgia,serif' font-weight='700' font-size='30' fill='%23123D4F' fill-opacity='.06'%3E%3Ctext x='14' y='42'%3ET%3C/text%3E%3Ctext x='74' y='102'%3ET%3C/text%3E%3C/g%3E%3C/svg%3E")}
body[data-chwp="1"][data-cht="navy"] .chmsgs,body[data-chwp="1"][data-cht="teal"] .chmsgs{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg font-family='Georgia,serif' font-weight='700' font-size='30' fill='%23C9952A' fill-opacity='.09'%3E%3Ctext x='14' y='42'%3ET%3C/text%3E%3Ctext x='74' y='102'%3ET%3C/text%3E%3C/g%3E%3C/svg%3E")}
/* ---- My GIFs in the GIF panel, and the GIF maker ---- */
.gifb.mine{cursor:default;background:#EEE}
.gifb.mine .gifsend{position:absolute;inset:0;border:none;padding:0;background:transparent;cursor:pointer}
.gifb.mine img{width:100%;height:100%;object-fit:cover;display:block}
.gifdel{position:absolute;top:4px;right:4px;min-width:24px;height:24px;border-radius:12px;border:none;background:rgba(18,61,79,.78);color:#fff;font:700 15px/1 var(--font);cursor:pointer;padding:0 7px}
.gifdel.arm{background:var(--danger);font-size:12px}
.gifmake{background:#fff;border:2px dashed var(--line2)}
.gifmake .gfc{justify-content:center;gap:4px;color:var(--teal)}
.gifmake .gmplus{font:300 40px/1 var(--font)}
.gifmake.full{opacity:.6}
.gifcount{grid-column:1/-1;margin:4px 0 0;font-size:12px;color:var(--muted);text-align:center}
.gmk{display:flex;flex-direction:column;gap:12px;min-width:min(560px,82vw)}
.gmtabs{display:flex;gap:6px;flex-wrap:wrap}
.gmtab{border:1px solid var(--line2);background:#fff;border-radius:16px;padding:6px 12px;font:600 13px var(--font);color:var(--ink2);cursor:pointer}
.gmtab.on{background:var(--teal);border-color:var(--teal);color:#fff}
.gmcols{display:grid;grid-template-columns:1fr 200px;gap:14px;align-items:start}
.gmleft,.gmarea{display:flex;flex-direction:column;gap:10px}
.gmarea>.btn{align-self:flex-start}
.gm2{display:grid;grid-template-columns:1fr 120px;gap:10px}
.gmarea select,.gmleft input[type=text]{height:40px;border:1px solid var(--line2);border-radius:10px;padding:0 10px;font-size:14px;background:#fff}
.gmprev{width:200px;height:200px;border-radius:12px;background:var(--chip);display:flex;align-items:center;justify-content:center;text-align:center;padding:10px;box-sizing:border-box;font-size:13px;color:var(--muted);overflow:hidden}
.gmprev img{width:100%;height:100%;object-fit:contain}
.gmstat{display:block;margin-top:6px;font-size:12.5px;color:var(--ink2);text-align:center}
.gmhint{font-size:12.5px;color:var(--muted);margin:0}
@media (max-width:600px){.gmk{min-width:0}.gmcols{grid-template-columns:1fr}.gmprev{width:100%;height:auto;aspect-ratio:1/1;max-width:260px;margin:0 auto}}

/* chat text size (Nov 2026): personal, set in Chat settings */
body{--chfs:1}
body[data-chfs="s"]{--chfs:.9}
body[data-chfs="l"]{--chfs:1.15}
body[data-chfs="xl"]{--chfs:1.3}
body[data-chfs] .btext{font-size:calc(15px*var(--chfs))}
body[data-chfs] .btext.big{font-size:calc(34px*var(--chfs))}
body[data-chfs] .bname,body[data-chfs] .breply b{font-size:calc(12.5px*var(--chfs))}
body[data-chfs] .breply span{font-size:calc(13px*var(--chfs))}
body[data-chfs] .bmeta{font-size:calc(11px*var(--chfs))}
body[data-chfs] .bfile .fmeta b{font-size:calc(14px*var(--chfs))}
body[data-chfs] .bfile .fmeta small{font-size:calc(12px*var(--chfs))}
body[data-chfs] .chsys{font-size:calc(12.5px*var(--chfs))}
body[data-chfs] .chday span{font-size:calc(12px*var(--chfs))}
body[data-chfs] .chtop b{font-size:calc(15px*var(--chfs))}
body[data-chfs] .chtop small{font-size:calc(12px*var(--chfs))}
body[data-chfs] .chbot .prev{font-size:calc(13.5px*var(--chfs))}
body[data-chfs] .cmprow .chin{font-size:calc(15px*var(--chfs))}
body[data-chfs] .bubble.card .btext{font-size:15px}
@media (max-width:860px){body[data-chfs] .cmprow .chin{font-size:max(16px,calc(15px*var(--chfs)))!important}}
.fsrow{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0 12px}
.fsbtn{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;min-height:72px;padding:8px 4px;border:1.5px solid var(--line2);border-radius:12px;background:#fff;cursor:pointer;color:var(--ink)}
.fsbtn.on{border-color:var(--navy);box-shadow:0 0 0 2px var(--gold-soft)}
.fsbtn small{font-size:12px;color:var(--ink2);text-align:center}
.fsa{font-weight:700;line-height:1;color:var(--navy)}
.fs-s .fsa{font-size:16px}.fs-m .fsa{font-size:20px}.fs-l .fsa{font-size:25px}.fs-xl .fsa{font-size:30px}
.fsprev{background:#F6F3EC;border-radius:12px;padding:12px;display:flex;flex-direction:column}
.fsprev .bubble{max-width:100%}
body[data-cht="navy"] .fsprev{background:#0F2F3D}
body[data-cht="gold"] .fsprev{background:#FBF4E4}
body[data-cht="teal"] .fsprev{background:#E6EFF2}
body[data-cht="white"] .fsprev{background:#FFFFFF;border:1px solid var(--line)}

/* offline bar (Nov 2026) */
.offbar{position:fixed;z-index:9999;bottom:calc(78px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#123D4F;color:#fff;font-size:13px;line-height:1.3;padding:6px 14px;border-radius:999px;box-shadow:0 4px 14px rgba(0,0,0,.25);pointer-events:none;max-width:calc(100% - 24px);text-align:center}
.offbar b{color:#F0D08A}

/* touch screens (Nov 2026): no hover-only buttons, so one tap opens the page (iPhone used the first tap to "hover") */
@media (hover:none),(pointer:coarse){
  .fitem:hover .fm{opacity:0}
  .fitem.on .fm,.fitem .fm:focus-visible{opacity:1}
  .fitem:not(.on):hover{background:transparent}
  .mi:hover .qa{display:none}
  .brow:hover .bmore{opacity:0}
  .bmore:focus-visible{opacity:1}
}

/* nicknames (Nov 2026) */
.ginfo .realnm{color:var(--ink2)}

/* download chat history (Nov 2026) */
.exrow{display:flex;align-items:center;gap:10px;padding:8px 2px;cursor:pointer;flex-wrap:wrap}
.exrow input{width:18px;height:18px;accent-color:var(--navy);flex:0 0 18px}
.exrow small{color:var(--muted);flex-basis:100%;padding-left:28px;margin-top:-4px}
.exrow.exall{border-bottom:1px solid var(--line);margin-bottom:2px}
.exlist .exrow{padding-left:14px}
.exlist .exrow small{padding-left:42px}
.exdates{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.exdates input{width:100%;box-sizing:border-box}

/* phones (Nov 2026): the search box and the "show" dropdown stack, so the Mailboxes page fits the screen */
.cobar{flex-wrap:wrap}.cobar .mbsearchwrap{min-width:0}.cobar .mbsel{max-width:100%;min-width:0}
@media (max-width:640px){.cobar{flex-direction:column;align-items:stretch}.cobar .mbsel{width:100%}}

/* calls (Nov 2026): sound player, "back to chat" while the call goes on, and the bar that brings it back */
.callaudio{display:none}
.callmin{position:absolute;z-index:4;left:12px;top:calc(12px + env(safe-area-inset-top));display:flex;align-items:center;gap:6px;height:40px;padding:0 14px 0 8px;border:0;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.callmin .ic{width:20px;height:20px}
.callov.peervideo .callmid{top:calc(62px + env(safe-area-inset-top))}
.callov.mini{display:none}
.callpill{position:fixed;z-index:8999;left:50%;transform:translateX(-50%);top:calc(6px + env(safe-area-inset-top));display:flex;align-items:center;gap:8px;max-width:calc(100% - 16px);padding:6px 6px 6px 14px;border-radius:999px;background:#1E8E3E;color:#fff;box-shadow:0 6px 20px rgba(0,0,0,.25);cursor:pointer;font-size:14px;white-space:nowrap}
.callpill[hidden]{display:none}
.callpill b{overflow:hidden;text-overflow:ellipsis;max-width:34vw}
.cpdot{width:8px;height:8px;border-radius:50%;background:#fff;flex:0 0 8px;animation:cpblink 1.2s ease-in-out infinite}
@keyframes cpblink{50%{opacity:.3}}
.cpstat{font-variant-numeric:tabular-nums;opacity:.95}
.cpback{opacity:.85;font-size:12.5px}
@media (max-width:420px){.cpback{display:none}}
.cpend{width:34px;height:34px;border-radius:50%;border:0;background:#D93025;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 34px}
.cpend .callic svg{width:18px;height:18px}

/* online status (Nov 2026) */
.cav[data-pres]{overflow:visible}
.cav.online::after{content:'';position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border-radius:50%;background:#22A45D;border:2px solid #fff;box-sizing:border-box}
.cav.big.online::after{width:18px;height:18px;right:2px;bottom:2px;border-width:3px}
.chsub.isonline{color:#1E8E3E;font-weight:600}

/* shared mailbox: who opened it (Nov 2026) */
.seenbar{display:flex;flex-direction:column;gap:4px;padding:8px 12px;border-radius:10px;background:var(--hover,#f3f4f6);font-size:12.5px;line-height:1.5;margin-bottom:14px;color:inherit}
.seenbar .sn{display:flex;gap:8px;align-items:center;flex-wrap:wrap;opacity:.85}
.seenbar .sn svg{width:15px;height:15px;flex:none}
.seenbar .sn.live{color:#1E6B3A;font-weight:600;opacity:1}
.seenbar .dot{width:8px;height:8px;border-radius:50%;background:#2DA44E;display:inline-block;animation:seenpulse 1.6s infinite}
@keyframes seenpulse{50%{opacity:.35}}
.shactwrap{margin-top:26px}.shact-h{font-size:15px;margin:0 0 4px}
.shact .shrow{padding:9px 0;border-bottom:1px solid rgba(128,128,128,.2);font-size:13.5px;line-height:1.45}
.shact .shrow small{display:block;opacity:.65;font-size:12px}

.selall{display:flex;align-items:center;gap:10px;padding:8px 16px;font-size:13px;border-bottom:1px solid rgba(128,128,128,.2);cursor:pointer}.selall small{margin-left:auto;opacity:.65}.selall input{width:16px;height:16px}

/* Nov 2026: search messages in a chat (bar under the chat header) */
.chfind{position:relative;display:flex;align-items:center;gap:4px;padding:6px 10px;border-bottom:1px solid var(--line);flex:0 0 auto;background:var(--panel)}
.chfind .csearchwrap{flex:1;min-width:0;margin:0;height:38px}
.chfind .fcount{border:0;background:none;color:var(--muted);font:inherit;font-size:13px;white-space:nowrap;padding:0 4px;cursor:pointer}
.chfind .ib:disabled{opacity:.35}
.chfind .fup .ic{transform:rotate(-90deg)}
.chfind .fdown .ic{transform:rotate(90deg)}
.chfind .flist{position:absolute;left:0;right:0;top:100%;z-index:30;max-height:min(60vh,440px);overflow:auto;background:var(--panel);border-bottom:1px solid var(--line);box-shadow:0 10px 24px rgba(0,0,0,.16)}
.sritem{display:block;width:100%;text-align:left;padding:9px 14px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink);font:inherit;cursor:pointer}
.sritem.on{background:var(--sel)}
@media (hover:hover){.sritem:hover{background:var(--hover)}}
.sritem .srtop{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.sritem .srtop small{color:var(--muted);flex:0 0 auto}
.sritem .srtext{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;margin-top:2px;word-break:break-word}
.sritem mark,.fres mark,.bubble mark.fhl{background:var(--gold-soft);color:inherit;border-radius:3px;padding:0 1px}
@media (max-width:640px){.chfind{padding:6px 8px}.chfind .ib{width:36px;height:36px;flex:0 0 36px}}
