:root{--sat:env(safe-area-inset-top,0px);--satr:var(--sat)}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;background:#e9f2f8;color:#16303f}
.hidden{display:none!important}
button,input{font:inherit}
button{cursor:pointer}
.icon{background:none;border:0;color:inherit;font-size:20px;padding:6px 10px}
#auth{height:100%;display:flex;align-items:center;justify-content:center;background:#2878a8}
#authForm{background:#fff;padding:28px;border-radius:12px;width:min(92vw,360px);display:flex;flex-direction:column;gap:10px}
#authForm h1{margin:0 0 6px;color:#16303f;font-size:22px}
#authForm .logo{width:84px;height:84px;align-self:center;border-radius:8px}
#authForm input{padding:11px;border:1px solid #ccc;border-radius:8px}
#authForm button{padding:11px;border:0;border-radius:8px;background:#2878a8;color:#fff;font-weight:600}
#authForm a{font-size:14px;color:#1f6f9f;text-align:center}
.err{color:#c0392b;margin:0;min-height:1em;font-size:14px}
#app{height:100%;display:flex;flex-direction:column}
#chatView{flex:1;display:flex;min-height:0}
#side{width:340px;max-width:100%;background:#fff;border-right:1px solid #ddd;display:flex;flex-direction:column}
#side header,#chatHead{background:#2878a8;color:#fff;padding:calc(10px + var(--sat)) 12px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:56px}
#chatHead{justify-content:flex-start}
#chatSub{font-size:12px;opacity:.8;min-height:1em}
#back{display:none;font-size:28px;line-height:1}
#search{margin:8px;padding:9px 12px;border:1px solid #ddd;border-radius:20px;background:#f0f2f5}
#list{flex:1;overflow-y:auto}
.item{padding:12px 14px;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;gap:10px;cursor:pointer}
.item:hover,.item.active{background:#f0f2f5}
.avatar{width:40px;height:40px;border-radius:50%;background:#3398cc;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;flex:none;position:relative}
.avatar.on::after{content:"";position:absolute;right:0;bottom:0;width:11px;height:11px;border-radius:50%;background:#25d366;border:2px solid #fff}
.item{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.imain{flex:1;min-width:0}
.itop,.ibot{display:flex;align-items:center;gap:8px}
.item .name{flex:1;min-width:0;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.itime{flex:none;font-size:12px;color:#5b6f7d}
.item.unread .itime{color:#2878a8;font-weight:600}
.ibot{margin-top:2px}
.iprev{flex:1;min-width:0;font-size:14px;color:#5b6f7d;font-weight:400;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3}
.iprev .tick{display:inline-block;margin-right:4px;vertical-align:-1px}
.iright{flex:none;display:flex;align-items:center;gap:6px}
.badge.dot{min-width:12px;height:12px;padding:0;border-radius:50%}
.badge{background:#2878a8;color:#fff;border-radius:11px;min-width:22px;padding:2px 7px;font-size:12px;text-align:center}
.side-actions{display:flex;gap:8px;padding:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom));border-top:1px solid #eee}
.side-actions button{flex:1;padding:9px;border:1px solid #2878a8;color:#2878a8;background:#fff;border-radius:8px}
#main{flex:1;display:flex;flex-direction:column;min-width:0;background:#e9f2f8}
#msgs{flex:1;overflow-y:auto;padding:12px 8%;display:flex;flex-direction:column;gap:3px}
.msg{max-width:75%;padding:6px 9px;border-radius:8px;background:#fff;align-self:flex-start;box-shadow:0 1px 1px rgba(0,0,0,.12);word-wrap:break-word;overflow-wrap:anywhere;white-space:pre-wrap}
.msg.me{align-self:flex-end;background:#d3eaf7}
.msg .who{font-size:12px;font-weight:600;color:#1f6f9f}
.msg .time{font-size:11px;color:#5b6f7d;text-align:right;margin-top:2px}
.msg img{max-width:100%;max-height:300px;border-radius:6px;display:block;margin:2px 0}
.msg a.file{display:block;padding:8px;background:rgba(0,0,0,.05);border-radius:6px;color:#1f6f9f;text-decoration:none}
.day{align-self:center;background:#e1f2fb;color:#555;font-size:12px;padding:3px 10px;border-radius:8px;margin:8px 0}
#typing{height:18px;padding:0 8%;font-size:12px;color:#5b6f7d}
#composer{display:flex;flex-direction:column;gap:6px;padding:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom));background:#f0f2f5}
#text{flex:1;padding:11px 14px;border:0;border-radius:22px}
.send{border:0;background:#3398cc;color:#fff;border-radius:50%;width:42px;height:42px}
.attach{cursor:pointer}
#modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:10}
#modalBox{background:#fff;border-radius:12px;padding:18px;width:min(92vw,420px);max-height:80vh;overflow:auto}
#modalBox h3{margin-top:0}
#modalBox input{width:100%;padding:10px;border:1px solid #ccc;border-radius:8px;margin:6px 0}
#modalBox button{padding:9px 14px;margin:4px 4px 0 0;border:0;border-radius:8px;background:#3398cc;color:#fff}
#modalBox button.sec{background:#eee;color:#333}
#modalBox .row{padding:10px;border-bottom:1px solid #eee;cursor:pointer}
#modalBox .row:hover{background:#f5f5f5}
@media (max-width:899px),(max-height:500px){
  #side{width:100%}
  #main{position:fixed;inset:0;transform:translateX(100%);transition:transform .2s;z-index:5}
  body.chat-open #main{transform:none}
  #back{display:block}
  #msgs{padding:10px 10px}
  .msg{max-width:88%}
}

#modalBox.wide{width:min(94vw,640px)}
.tabs{display:flex;gap:6px;margin-bottom:10px}
#modalBox .tabs button{background:#e9f2f8;color:#16303f}
#modalBox .tabs button.active{background:#2878a8;color:#fff}
.muted{color:#5b6f7d;font-size:13px}
.note{background:#eef6fb;border-left:3px solid #3398cc;padding:8px 10px;font-size:13px;word-break:break-word;margin:8px 0}
.invite{background:#f4f8fb;border-radius:8px;padding:10px;margin-bottom:8px}
.invite code{background:#fff;border:1px solid #cfe3f0;border-radius:4px;padding:2px 6px;user-select:all;word-break:break-all}
.urow{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #eee}
.urow.off .uinfo{opacity:.55}
.uact{display:flex;gap:4px;flex-wrap:wrap}
#modalBox button.small{padding:6px 10px;font-size:13px;margin:0;background:#2878a8}
#modalBox button.small.sec{background:#eee;color:#333}

.muted.center{text-align:center;margin:0}
#modalBox .invite input{margin:6px 0}

/* bottom menu */
#tabbar{display:flex;background:#fff;border-top:1px solid #d9e6ee;padding-bottom:env(safe-area-inset-bottom);z-index:4;flex:none}
#tabbar button{flex:1;background:none;border:0;padding:8px 0 6px;display:flex;flex-direction:column;align-items:center;gap:2px;color:#5b6f7d;font-size:11px;position:relative}
#tabbar button.active{color:#2878a8;font-weight:600}
#tabbar svg{width:26px;height:26px}
#tabbar button.active svg path:first-child,#tabbar button.active svg rect{fill:rgba(51,152,204,.18)}
.tbadge{position:absolute;top:3px;left:calc(50% + 8px);background:#2878a8;color:#fff;border-radius:9px;min-width:18px;font-size:11px;padding:1px 5px;text-align:center;font-weight:600}
/* calendar */
#calView{flex:1;display:flex;flex-direction:column;min-height:0;background:#e9f2f8}
.calhead{background:#2878a8;color:#fff;padding:calc(10px + var(--sat)) 14px 10px;display:flex;justify-content:space-between;align-items:center;min-height:56px}
.calhead .sub{font-size:12px;opacity:.85}
.calhead button{border:1px solid rgba(255,255,255,.75);background:transparent;color:#fff;border-radius:16px;padding:5px 14px}
.legend{display:flex;gap:6px 14px;flex-wrap:wrap;padding:8px 14px;background:#fff;border-bottom:1px solid #d9e6ee;font-size:12px;color:#16303f}
.sw{display:inline-block;width:14px;height:14px;border-radius:3px;vertical-align:-3px;margin-right:5px}
.sw.hol{border:2px solid #d63a2f;background:#fdecea}
.sw.end{background:#2878a8}
.sw.today{border:2px solid #3398cc;background:#fff}
#calScroll{flex:1;overflow-y:auto;padding:12px;position:relative;-webkit-overflow-scrolling:touch}
.month{background:#fff;border-radius:12px;padding:12px;box-shadow:0 1px 2px rgba(0,0,0,.08);max-width:640px;margin:0 auto 14px}
.month h3{margin:0 0 8px;color:#16303f;font-size:17px}
.grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center}
.dow{font-size:11px;color:#5b6f7d;font-weight:600;padding:2px 0}
.cd{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;border-radius:8px;font-size:14px;color:#16303f;border:2px solid transparent}
.cd.empty{visibility:hidden}
.cd.we{color:#5b6f7d;background:#f3f7fa}
.cd.hol{border-color:#d63a2f;background:#fdecea;color:#8a1f17;font-weight:600}
.cd.end{background:#2878a8;color:#fff;font-weight:700}
.cd.after{opacity:.4}
.cd.today{border-color:#3398cc;font-weight:700;box-shadow:0 0 0 1px #3398cc}
.cd.today.hol{border-color:#d63a2f}
.mevents{margin-top:8px;border-top:1px solid #eef3f7;padding-top:6px;font-size:13px;color:#16303f}
.mevents div{padding:2px 0}
.mevents .dot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:7px;vertical-align:-1px}
.mevents .dot.holiday{border:2px solid #d63a2f;background:#fdecea}
.mevents .dot.end{background:#2878a8}

.sw.tiel{border:2px solid #e07a1f;background:#fff1e3}
.cd.tiel{border-color:#e07a1f;background:#fff1e3;color:#8a4a0a;font-weight:600}
.mevents .dot.tielmes{border:2px solid #e07a1f;background:#fff1e3}

#offlineBar{background:#f5a623;color:#16303f;text-align:center;padding:6px 10px;font-size:13px}
#offlineBar:not(.hidden)~#chatView{display:none}

/* timetable */
#ttView,#hrView{flex:1;display:flex;flex-direction:column;min-height:0;background:#e9f2f8}
.seg{display:flex;border:1px solid rgba(255,255,255,.8);border-radius:8px;overflow:hidden}
.calhead .seg button{background:transparent;color:#fff;border:0;border-radius:0;padding:6px 12px;font-size:13px}
.calhead .seg button.active{background:#fff;color:#2878a8;font-weight:600}
#ttDays{display:flex;gap:6px;padding:8px 12px;overflow-x:auto;flex:none}
#ttDays button{flex:1;min-width:48px;background:#fff;border:1px solid #cfe0ea;border-radius:10px;padding:8px 0;color:#16303f;font-size:14px}
#ttDays button.active{background:#2878a8;border-color:#2878a8;color:#fff;font-weight:600}
#ttList{flex:1;overflow-y:auto;padding:4px 12px 16px;-webkit-overflow-scrolling:touch}
.ttgroup{display:flex;gap:10px;margin-top:10px}
.tttime{width:46px;flex:none;font-weight:600;color:#2878a8;padding-top:8px;font-size:14px}
.ttcards{flex:1;display:flex;flex-direction:column;gap:6px}
.ttcard{background:#fff;border-radius:10px;border-left:6px solid #b9c9d3;padding:8px 10px;box-shadow:0 1px 2px rgba(22,48,63,.08)}
.tttext{color:#16303f;font-weight:600;font-size:15px}
.ttmeta{display:flex;gap:8px;color:#5b6f7d;font-size:12px;margin-top:2px;align-items:center}
.ttroom{background:#e9f2f8;color:#2878a8;border-radius:6px;padding:1px 7px;font-weight:600}
.ttempty{color:#5b6f7d;text-align:center;margin-top:40px}

.avatar{overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.avatar.big{width:84px;height:84px;font-size:34px;margin:0 auto 6px}
#chatAva{display:flex;flex:none}#chatAva .avatar{width:36px;height:36px}
#chatHead.tappable .chat-titles,#chatHead.tappable #chatAva{cursor:pointer}
.chat-titles{flex:1;min-width:0}
.ginfo-top{text-align:center;margin-bottom:8px}.ginfo-top h3{margin:4px 0}
#modalBox button.small.danger{background:#c0392b}

.crow{display:flex;align-items:center;gap:6px}
#plus{font-size:26px;line-height:1;padding:4px 10px;transition:transform .15s}
#plus.open{transform:rotate(45deg)}
#tools{display:flex;gap:8px;padding:2px 2px 4px}
.tool{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:68px;padding:8px 6px;border:0;border-radius:12px;background:#fff;color:#16303f;font-size:12px;cursor:pointer;box-shadow:0 1px 1px rgba(0,0,0,.12);font-family:inherit}
.tool span{font-size:22px;line-height:1}
.poll{min-width:230px}
.poll .q{font-weight:600;margin-bottom:6px}
.poll .opt{position:relative;display:block;width:100%;text-align:left;border:1px solid #cfe3f0;background:#fff;border-radius:8px;margin:4px 0;padding:7px 9px;overflow:hidden;cursor:pointer;font:inherit;color:inherit}
.poll .opt .bar{position:absolute;left:0;top:0;bottom:0;background:#d3eaf7;z-index:0}
.poll .opt.mine{border-color:#2878a8}
.poll .opt .row1{position:relative;z-index:1;display:flex;justify-content:space-between;gap:8px}
.poll .opt .who2{position:relative;z-index:1;font-size:11px;color:#5b6f7d;margin-top:2px}
.poll .hint{font-size:11px;color:#5b6f7d}
#modalBox textarea{width:100%;min-height:80px;padding:10px;border:1px solid #ccc;border-radius:8px;margin:6px 0;font:inherit;box-sizing:border-box}
#modalBox .chips button{background:#e9f2f8;color:#16303f;padding:6px 10px;font-size:13px}
#modalBox label.chk{display:flex;align-items:center;gap:8px;margin:8px 0}
#modalBox label.chk input{width:auto;margin:0}

#plus{padding:6px 8px;color:#2878a8}
#plus svg{width:26px;height:26px;display:block}
#plus{font-size:inherit;transition:transform .15s}
.tool svg{width:24px;height:24px;color:#2878a8}

#muteBtn svg{width:22px;height:22px;display:block}
.mutedico{flex:none;color:#8a9aa6;display:flex}.mutedico svg{width:16px;height:16px}
.msg{-webkit-touch-callout:none}
@media (hover:none){.msg{-webkit-user-select:none;user-select:none}}
.msg.gone{color:#6b7c88;font-style:italic;background:#f4f6f8}
.msg .edited{font-size:11px;color:#5b6f7d;margin-right:4px}
#modalBox .menu button{display:block;width:100%;text-align:left;background:#f4f8fb;color:#16303f;margin:4px 0;padding:12px}
#modalBox .menu button.danger{color:#c0392b}
#modalBox img.preview{max-width:100%;max-height:45vh;display:block;margin:0 auto 8px;border-radius:8px}
.srow{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #eee}
.rep{background:#fff7f0;border-left:3px solid #e07a5f;border-radius:6px;padding:8px 10px;margin:8px 0;font-size:14px}
.rep .txt{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0}
#modalBox .srow input{width:auto;margin:0}

.tick{display:inline-flex;vertical-align:middle;margin-left:4px;color:#8a9aa6}.tick svg{width:17px;height:11px}.tick.read{color:#34a7e0}
.infomsg{background:#e9f2f8;border-radius:8px;padding:8px 10px;margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:90px;overflow:auto}

#hrBody{flex:1;overflow-y:auto;padding:10px 12px 18px;-webkit-overflow-scrolling:touch}
.hrnav{display:flex;align-items:center;justify-content:space-between;margin:2px 0 10px}
.hrnav button{border:0;background:#fff;border-radius:10px;width:42px;height:38px;font-size:22px;color:#2878a8;box-shadow:0 1px 1px rgba(0,0,0,.12)}
.hrnav button:disabled{opacity:.35}
.hradmin select{width:100%;padding:10px;border-radius:10px;border:1px solid #cfe3f0;background:#fff;margin-bottom:10px;font:inherit}
.hrsum{display:flex;justify-content:space-between;align-items:center;background:#2878a8;color:#fff;border-radius:12px;padding:12px 14px;margin-bottom:10px}
.hrsum strong{font-size:20px}
.hradd{width:100%;margin:0 0 10px;padding:12px;border:0;border-radius:12px;background:#fff;color:#2878a8;font-weight:600;box-shadow:0 1px 1px rgba(0,0,0,.12)}
.hrcard{background:#fff;border-radius:12px;padding:6px 12px;margin-bottom:10px;box-shadow:0 1px 1px rgba(0,0,0,.1);display:block}
.hrcard.click{display:flex;justify-content:space-between;padding:14px;cursor:pointer}
.hrhead{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #e3edf3}
.hrtot{color:#2878a8;font-weight:600}
.hrrow{display:flex;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #f0f4f7}
.hrrow:last-child{border-bottom:0}.hrrow.click{cursor:pointer}.hrrow.grp{color:#5b6f7d}
#modalBox label.muted{display:block;margin-top:8px;font-size:13px}

.danger-text{color:#c0392b}
#modalBox textarea{width:100%;box-sizing:border-box;font:inherit;border:1px solid #cfe3f0;border-radius:10px;padding:8px}

/* ---- splash while the app loads ---- */
#splash{position:fixed;inset:0;z-index:100;background:#2878a8;display:flex;align-items:center;justify-content:center;transition:opacity .35s}
#splash img{width:84%;max-width:380px;height:auto}
#splash.out{opacity:0;pointer-events:none}

/* ---- chat list header with the small + menu ---- */
#side header.sidehead{position:relative;justify-content:space-between}
.sidehead h2{margin:0;font-size:22px;font-weight:700}
.newbtn{width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.22);color:#fff;display:flex;align-items:center;justify-content:center;padding:0}
.newbtn svg{width:22px;height:22px}
.newmenu{position:absolute;right:12px;top:calc(100% - 4px);width:190px;background:#fff;color:#16303f;border-radius:14px;box-shadow:0 8px 28px rgba(0,0,0,.22);overflow:hidden;z-index:20}
.newmenu button{width:100%;display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border:0;background:#fff;font-size:16px;color:#16303f}
.newmenu button+button{border-top:1px solid #e3e9ee}
.newmenu svg{width:20px;height:20px;color:#2878a8}

/* ---- floating, frosted bottom bar ---- */
#tabbar{position:fixed;left:14px;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));max-width:520px;margin:0 auto;height:66px;padding:0 6px;gap:2px;align-items:center;
  border:0;border-radius:33px;background:rgba(255,255,255,.62);-webkit-backdrop-filter:blur(22px) saturate(1.6);backdrop-filter:blur(22px) saturate(1.6);
  box-shadow:0 6px 24px rgba(20,40,60,.22),inset 0 0 0 1px rgba(255,255,255,.7);z-index:4}
#tabbar button{padding:0;height:54px;border-radius:27px;justify-content:center;color:#2878a8;min-width:0}
#tabbar button.active{background:rgba(40,120,168,.16);font-weight:600}
#tabbar svg{width:24px;height:24px}
#tabbar button.active svg path:first-child,#tabbar button.active svg rect{fill:none}
.tbadge{background:#e53935;top:2px;left:auto;right:10px}
#list,#calScroll,#ttList,#hrBody{padding-bottom:104px}
@media (min-width:900px) and (min-height:501px){#app{padding-bottom:84px}#list,#calScroll,#ttList,#hrBody{padding-bottom:16px}#tabbar{bottom:10px}}

/* ---- editable calendar ---- */
.calbtns{display:flex;gap:8px}
button.cd{padding:0;font:inherit;background:transparent;cursor:pointer}
.cd.we{background:#f3f7fa}
.cd.ev{color:#16303f}
.mevents>div{padding:4px 0;cursor:pointer}
.mevents .dot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:7px;vertical-align:-1px}
.mevents .mdesc{margin-left:17px;color:#5b6f7d}
.evcard{border-left:6px solid #2878a8;background:#f4f8fb;border-radius:8px;padding:10px 12px;margin:8px 0}
.evdesc{margin-top:4px;white-space:pre-wrap}
.swatches{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:6px 0 10px}
#modalBox .swatches button{width:32px;height:32px;border-radius:50%;margin:0;padding:0;border:3px solid #fff;box-shadow:0 0 0 1px #cfdbe3}
#modalBox .swatches button.sel{border-color:#16303f}
.swatches input[type=color]{width:36px;height:36px;padding:0;border:0;background:none;margin:0}
#modalBox .two{display:flex;gap:8px}#modalBox .two label{flex:1}
#modalBox textarea{width:100%;padding:10px;border:1px solid #ccc;border-radius:8px;margin:6px 0;font:inherit;resize:vertical}
.hrrow.grp.click{cursor:pointer}
.chkrow{display:flex;align-items:center;gap:12px;padding:9px 4px;border-bottom:1px solid #eee;cursor:pointer}
#modalBox .chkrow input{width:auto;flex:none;margin:0}
#text{min-width:0}.send{flex:none}

/* TEMP STOPGAP (remove in big native update): lift the tab bar above the Android tablet taskbar */
@media (max-width:899px),(max-height:500px){.android-tablet #app{padding-bottom:84px}.android-tablet #tabbar{bottom:98px}.android-tablet #main{bottom:calc(var(--kb,0px) + 84px)}}

/* ---- wide screens (desktop / big tablet): WhatsApp-Web-style side rail, settings cog at the bottom ---- */
@media (min-width:900px) and (min-height:501px){
  #app{padding-left:76px;padding-bottom:0}
  #tabbar{left:0;right:auto;top:0;bottom:0;width:76px;max-width:none;height:auto;margin:0;padding:14px 0 calc(14px + env(safe-area-inset-bottom));
    flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;border-radius:0;
    background:#f4f8fb;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;border:0;border-right:1px solid #d9e6ee}
  #tabbar::before{content:"";flex:none;width:40px;height:40px;margin-bottom:10px;background:url(/logo.png) center/contain no-repeat;border-radius:8px}
  #tabbar button{flex:none;width:62px;height:58px;border-radius:14px;gap:3px;font-size:11px}
  #tabbar button:hover{background:rgba(40,120,168,.09)}
  #tabbar button.active{background:rgba(40,120,168,.18)}
  #tabbar #setTab{margin-top:auto}
  #tabbar{padding-top:calc(14px + var(--sat))}
  #tabbar .tbadge{top:3px;right:8px;left:auto}
  #list,#calScroll,#ttList,#hrBody{padding-bottom:16px}
  .android-tablet #app{padding-bottom:84px}
  .android-tablet #tabbar{bottom:84px}
}

/* keyboard: lift the chat above the on-screen keyboard (only does anything when the window itself is not resized by the keyboard) */
@media (max-width:899px),(max-height:500px){
  #main{bottom:var(--kb,0px)}
  body.kb-open #tabbar{display:none}
  body.kb-open #composer{padding-bottom:8px}
  /* the strip behind iOS's translucent keyboard bar must be plain, not the chat list showing through */
  html.kb-open,html.kb-open body{background:#f0f2f5}
  body.kb-open.chat-open #side{visibility:hidden}
}

/* multi-line message box */
#text{resize:none;display:block;font:inherit;line-height:20px;padding:11px 14px;height:42px;max-height:116px;overflow-y:hidden;white-space:pre-wrap;word-wrap:break-word;-webkit-appearance:none;appearance:none}
.crow{align-items:flex-end}
#text:focus{outline:2px solid #7ab8e8;outline-offset:0}

/* warning centre */
#alView{flex:1;display:flex;flex-direction:column;min-height:0;background:#e9f2f8}
#alBody{flex:1;overflow-y:auto;padding:10px 12px 118px;-webkit-overflow-scrolling:touch;width:100%;max-width:640px;margin:0 auto}
.alcard{background:#fff;border-radius:12px;padding:13px 14px;margin-bottom:10px;border-left:5px solid #e53935;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.alhead{display:flex;justify-content:space-between;font-size:12px;color:#6a7c88;margin-bottom:4px}
.altitle{font-weight:600;color:#16303f;margin-bottom:4px}.aldetail{color:#34505f;font-size:14px;line-height:1.4;margin-bottom:10px}
.alold{border-left-color:#b9c7d0;opacity:.75}.alold .altitle{font-weight:500;margin:0}.alwhen{font-size:12px;color:#6a7c88}

.pscheck{flex-wrap:wrap}.psbtn2{margin-top:12px;padding:10px 14px;border-radius:10px;background:#e3eef6;color:#2878a8;text-decoration:none}.pscheck .psbtn,.pscheck .psbtn2{margin-top:6px}.psbtn:disabled{opacity:.5}

.pslabel{display:block;margin:6px 4px 4px;color:#6a7c88;font-size:13px}
.psmonth{width:100%;padding:13px 12px;font-size:16px;border:1px solid #cfdbe3;border-radius:12px;background:#fff;color:#16303f}
.pscard{background:#fff;border-radius:12px;padding:18px 14px;margin-top:12px;text-align:center;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.pscard .psico{font-size:34px}.pstitle{font-weight:600;color:#16303f;margin:6px 0 10px}
.pscard .psbtn,.pscard .psbtn2{display:inline-block;margin:6px 4px 0;text-decoration:none}
.pscard .psbtn{color:#fff}

.psbtn3{margin-top:6px;padding:10px 14px;border:0;border-radius:10px;background:#f1e3e3;color:#a33}.psign{margin:12px 0}.psign summary{color:#6a7c88;padding:8px 4px}

/* payslip viewer */
.pdfov{position:fixed;inset:0;z-index:9999;background:#3b4a54;display:flex;flex-direction:column}
.pdfbar{display:flex;align-items:center;gap:10px;padding:calc(var(--sat) + 10px) 12px 10px;background:#0f3347;color:#fff}
.pdfx{width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:20px}
.pdftitle{flex:1;text-align:center;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pdfshare{border:0;border-radius:10px;background:#2878a8;color:#fff;padding:10px 12px;font-size:14px}
.pdfbody{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;padding:8px;text-align:center}
.pdfpage{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.4);margin:0 auto 8px;display:block;max-width:none}
.pdfmsg{color:#fff;padding:30px 12px}
.pdfzoom{position:absolute;right:14px;bottom:calc(env(safe-area-inset-bottom,0px) + 18px);display:flex;gap:8px}
.pdfz{width:46px;height:46px;border:0;border-radius:50%;background:#0f3347;color:#fff;font-size:24px;box-shadow:0 2px 6px rgba(0,0,0,.4)}

/* iPhone app: page stretched to the full screen height (set by script only when it is safe) */
@media (max-width:899px){
  html.fullh,html.fullh body{height:var(--fullh)}
  html.fullh #app{height:var(--fullh);position:relative}
  html.fullh #tabbar{position:absolute}
}

/* payslips */
#psView{flex:1;display:flex;flex-direction:column;min-height:0;background:#e9f2f8}
#psBody{flex:1;overflow-y:auto;padding:10px 12px 118px;-webkit-overflow-scrolling:touch;width:100%;max-width:640px;margin:0 auto}
.psyear{font-weight:600;color:#2878a8;margin:14px 4px 6px;font-size:14px}
.psrow{display:flex;align-items:center;gap:12px;background:#fff;border-radius:12px;padding:13px 14px;margin-bottom:8px;color:#16303f;text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.psico{font-size:20px}.psname{flex:1;font-size:16px}.pschev{color:#8a9aa6;font-size:22px}
.psadmin{margin-top:26px;padding-top:6px;border-top:2px solid #d3e3ee}
.psadmin h3{margin:12px 4px 4px;color:#16303f}
.pslink{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border-radius:10px;padding:10px 12px;margin-bottom:6px;flex-wrap:wrap}
.pslname{display:flex;flex-direction:column;min-width:0}
.pslink select{padding:8px;border:1px solid #cfdbe3;border-radius:8px;background:#fff;max-width:100%}
.psbtn{margin-top:12px;padding:10px 16px;border:0;border-radius:10px;background:#2878a8;color:#fff}
@media (min-width:900px) and (min-height:501px){#psBody{padding-bottom:18px}}




@keyframes slideL{from{transform:translateX(36px);opacity:.4}to{transform:none;opacity:1}}
@keyframes slideR{from{transform:translateX(-36px);opacity:.4}to{transform:none;opacity:1}}
.slideL{animation:slideL .18s ease-out}.slideR{animation:slideR .18s ease-out}
#setView{flex:1;display:flex;flex-direction:column;min-height:0;background:#e9f2f8}
#setBody{flex:1;overflow-y:auto;padding:12px;max-width:640px;width:100%;margin:0 auto}
#setBody .row{padding:13px 12px;background:#fff;border-radius:12px;margin-bottom:8px;cursor:pointer}
#setBody .srow{padding:13px 12px;background:#fff;border-radius:12px;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center;gap:10px}
#setBody .danger-text{color:#c0392b}
#setBody .note{margin:8px 0}
.seg2{display:flex;border:1px solid #2878a8;border-radius:8px;overflow:hidden}
.seg2 button{border:0;background:none;color:#2878a8;padding:6px 11px;font-size:13px}
.seg2 button.on{background:#2878a8;color:#fff}
@media (min-width:900px) and (min-height:501px){#setBody{padding-bottom:18px}}


#setBody button.small{padding:9px 16px;border:0;border-radius:8px;background:#2878a8;color:#fff;font-size:14px}
#setBody button.small.danger{background:#c0392b}
#setBody .muted{padding:0 4px}



/* ---- build B: message extras ---- */
.msg a.lnk{color:inherit;text-decoration:underline;word-break:break-all}
.msg .mention{font-weight:600;color:#1d6fa5}.msg .mention.me{background:#fff3c4;border-radius:4px;padding:0 2px}
.msg .fwd{font-size:12px;color:#5b6f7d;font-style:italic;margin-bottom:2px}
.msg .quote{border-left:3px solid #2878a8;background:rgba(40,120,168,.1);border-radius:6px;padding:4px 8px;margin-bottom:4px;cursor:pointer;font-size:13px}
.msg .quote b{display:block;color:#1d6fa5;font-size:12px}.msg .quote.gone{color:#5b6f7d;font-style:italic;cursor:default}
.qt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5b6f7d}
.msg .lcard{display:block;margin-top:6px;border-radius:8px;overflow:hidden;background:rgba(0,0,0,.05);text-decoration:none;color:inherit}
.msg .lcard img{display:block;width:100%;max-height:170px;object-fit:cover}
.msg .lcard .lt{padding:6px 8px}.msg .lcard .ls{font-size:11px;color:#5b6f7d;text-transform:uppercase}
.msg .lcard .ltt{font-weight:600;font-size:14px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.msg .lcard .ld{font-size:12px;color:#5b6f7d;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.msg .reacts{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.msg .rp{border:1px solid #d5dde3;background:#fff;border-radius:12px;padding:1px 7px;font-size:13px;cursor:pointer;color:inherit}
.msg .rp.mine{border-color:#2878a8;background:#e3f1fa}
.msg.pending{opacity:.7}.tick.wait svg{width:13px;height:13px}
.msg.flash{animation:flashmsg 1.3s}@keyframes flashmsg{0%,60%{box-shadow:0 0 0 3px rgba(40,120,168,.45)}100%{box-shadow:none}}
.msg{touch-action:pan-y}
.emorow{display:flex;justify-content:space-between;margin-bottom:8px}
.emorow button{font-size:28px;background:none;border:0;padding:6px;border-radius:50%;width:auto;margin:0}
.emorow button.on{background:#e3f1fa}
#replyBar,#pinBar{display:flex;align-items:center;gap:8px;padding:6px 12px;border-left:3px solid #2878a8;background:#f0f5f8;font-size:13px}
#replyBar.hidden,#pinBar.hidden,#mentionBox.hidden{display:none}
#replyBar .rtxt,#pinBar .ptxt{flex:1;min-width:0}
#replyBar b,#pinBar b{display:block;color:#1d6fa5;font-size:12px}
#replyBar .rx{width:auto;margin:0;background:none;border:0;font-size:18px;color:#5b6f7d;padding:4px 8px}
#pinBar{cursor:pointer;border-left:0;border-bottom:1px solid #d5dde3}
#mentionBox{background:#fff;border-top:1px solid #d5dde3}
#mentionBox .mrow{display:block;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #eef1f3;padding:10px 14px;margin:0;color:inherit;font-size:15px;border-radius:0}
.fwdlist{max-height:50vh;overflow:auto}.fwdlist .row{display:flex;justify-content:space-between}
.pinrow{display:flex;gap:8px;align-items:center}.pinrow>div{flex:1;min-width:0}

/* ---- build B: screens follow the finger ---- */
#app.paging{position:relative;overflow:hidden}
#app.paging .pgv{display:flex!important;position:absolute;top:0;left:0;right:0;bottom:var(--pgb,0px);will-change:transform;background:#e9f2f8}
#chatView,#calView,#ttView,#hrView,#psView,#alView,#setView{touch-action:pan-y}

#modal .emorow{display:flex;gap:2px;margin:0 0 10px}
#modal .emorow button{flex:1;width:auto;min-width:0;margin:0;padding:6px 0;font-size:26px;line-height:1.2;background:transparent!important;border:0;border-radius:12px;box-shadow:none}
#modal .emorow button.on{background:#d3eaf7!important}


/* ---- build C: every screen's top bar has the same height, padding and title size ---- */
#side header.sidehead,.calhead{box-sizing:border-box;height:calc(64px + var(--sat));min-height:0;padding:var(--sat) 14px 0;align-items:center;flex:none}
.sidehead h2,.calhead>div:first-child>strong{font-size:20px;line-height:24px;font-weight:700;margin:0}
.calhead .sub{font-size:12px;line-height:15px}

.sidehead h2,.calhead>div:first-child{align-self:flex-start;margin-top:13px}
.calhead>div:first-child>strong{display:block}

@media (max-width:899px){#side{border-right:0}}
#app.paging #side{border-right:0}

#emojiBtn{font-size:22px;background:none;border:0;padding:4px 8px;cursor:pointer}
#emojiPanel{display:flex;flex-direction:column;height:320px;background:#fff;border-top:1px solid #d5dde3}
#emojiPanel.hidden{display:none}
#emojiPanel .etabs{display:flex;justify-content:space-around;padding:4px 6px;border-bottom:1px solid #eef1f3}
#emojiPanel .etabs button{font-size:20px;background:none;border:0;border-radius:8px;padding:3px 8px;cursor:pointer;width:auto;margin:0;opacity:.75}
#emojiPanel .etabs button:hover{opacity:1;background:#e3f1fa}
#emojiPanel .esearch{margin:8px 10px 4px;padding:8px 14px;border:1px solid #d5dde3;border-radius:20px;font-size:14px;background:#f4f7f9;color:inherit}
#emojiPanel .ebody{flex:1;overflow:auto;padding:0 10px 8px;position:relative}
#emojiPanel .ehead{font-size:13px;font-weight:600;color:#5b6f7d;padding:8px 2px 2px}
#emojiPanel .egrid{display:flex;flex-wrap:wrap}
#emojiPanel .egrid button{font-size:24px;line-height:1;background:none;border:0;border-radius:8px;padding:5px;cursor:pointer;width:auto;margin:0}
#emojiPanel .egrid button:hover{background:#e3f1fa}


/* ---- build D: message text sized and shaped like WhatsApp ---- */
.msg{font-size:17px;line-height:1.3;color:#0b1a24;padding:7px 11px 6px;border-radius:12px;max-width:80%}
.msg .who{font-size:14px;margin-bottom:1px}
.msg .time{font-size:11px;color:#6b7c88;margin-top:1px}
.msg .quote{font-size:15px;border-radius:8px}
.msg .quote b{font-size:14px}
.msg .reacts .rp{font-size:14px}
.msg .lcard .ltt{font-size:15px}
.msg .fwd{font-size:13px}


/* ---- build E: one employee's payslips ---- */
.psopen{cursor:pointer}
.psmonths{max-height:55vh;overflow:auto;margin:6px 0}
.psmrow{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #eef1f3}
.psmrow.gone{opacity:.6}
.psmrow .psmn{flex:1;min-width:0;display:flex;flex-direction:column}
.psmrow button{width:auto;margin:0;flex:none}



/* ===== Build 1.1: voice, camera, video ===== */
#micBtn{display:none;color:#2878a8;padding:6px 8px;background:none;border:0;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#micBtn svg{width:26px;height:26px;display:block}
.crow:not(.hastext):not(.recording) #micBtn{display:block}
.crow:not(.hastext) .send{display:none}
.crow.recording>*:not(#recBar){visibility:hidden}
.crow{position:relative}
#recBar{z-index:5;position:absolute;left:0;right:0;top:0;bottom:0;display:flex;align-items:center;gap:8px;background:#fff;padding:0 8px;border-radius:22px;touch-action:none}
#recBar .rdot{width:10px;height:10px;border-radius:50%;background:#d93a3a;animation:rblink 1s infinite}
@keyframes rblink{50%{opacity:.25}}
#recBar .rtime{font-variant-numeric:tabular-nums;min-width:38px}
#recBar .rwave{flex:none;width:120px;height:28px}
#recBar .rhint{flex:1;text-align:center;color:#6b7c88;transform:translateX(calc(var(--slide,0px)*.5))}
#recBar.near-cancel .rhint{color:#d93a3a}
#recBar .rlock{position:absolute;right:6px;bottom:52px;background:#fff;border-radius:18px;padding:8px 6px;box-shadow:0 2px 8px rgba(0,0,0,.25);font-size:16px}
#recBar.near-lock .rlock{transform:scale(1.2)}
#recBar.locked .rhint{display:none}
#recBar button{border:0;background:none;font-size:22px;padding:8px 14px;min-width:44px;min-height:44px;touch-action:manipulation}
#recBar .rsend{background:#3398cc;color:#fff;border-radius:50%;width:42px;height:42px;margin-left:auto;padding:0}
#recBar .rtrash{margin-left:auto}
.mtoast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:rgba(20,30,38,.92);color:#fff;padding:8px 14px;border-radius:16px;z-index:3000;font-size:14px}
.voice{display:flex;align-items:center;gap:8px;min-width:210px;padding:2px 0}
.voice .vplay{flex:none;width:36px;height:36px;border-radius:50%;border:0;background:#3398cc;color:#fff;font-size:14px;padding:0}
.voice .vmid{flex:1;min-width:0}
.voice .vbars{display:flex;align-items:center;gap:2px;height:28px;cursor:pointer}
.voice .vbars i{flex:1;min-width:2px;background:#aebbc4;border-radius:2px}
.voice .vbars i.on{background:#3398cc}
.voice .vrow{display:flex;align-items:center;gap:6px;font-size:12px;color:#6b7c88}
.voice .vdot{width:8px;height:8px;border-radius:50%;background:#3398cc}
.voice .vspd{flex:none;border:0;border-radius:12px;background:rgba(0,0,0,.08);padding:3px 8px;font-size:12px;color:inherit}
.vthumb{position:relative;display:block;border:0;padding:0;background:#000;border-radius:8px;overflow:hidden;max-width:240px;width:100%}
.vthumb video{display:block;width:100%;max-height:300px;object-fit:cover;pointer-events:none}
.vthumb .vplayico{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px}
body.vw-open{overflow:hidden}
.vwov{position:fixed;inset:0;z-index:4000;background:#000;display:flex;align-items:center;justify-content:center}
.vwov video{max-width:100%;max-height:100%;width:100%;touch-action:none}
.vwx,.camx{position:absolute;top:calc(12px + var(--sat));left:12px;z-index:2;width:40px;height:40px;border-radius:50%;border:0;background:rgba(0,0,0,.55);color:#fff;font-size:20px;padding:0}
.camov{position:fixed;inset:0;z-index:4000;background:#000;display:flex;flex-direction:column}
.camov video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.camflip{position:absolute;top:calc(12px + var(--sat));right:12px;z-index:2;width:40px;height:40px;border-radius:50%;border:0;background:rgba(0,0,0,.55);color:#fff;font-size:22px;padding:0}
.camtime{position:absolute;top:calc(20px + var(--sat));left:50%;transform:translateX(-50%);background:#d93a3a;color:#fff;padding:3px 10px;border-radius:12px;z-index:2;font-variant-numeric:tabular-nums}
.camhint{position:absolute;bottom:calc(150px + env(safe-area-inset-bottom));left:0;right:0;text-align:center;color:#fff;font-size:13px;text-shadow:0 1px 3px #000;z-index:2}
.cambar{position:absolute;left:0;right:0;bottom:0;padding:12px 0 calc(22px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:14px;z-index:2;background:linear-gradient(transparent,rgba(0,0,0,.5))}
.cammodes{display:flex;gap:6px}
.cammodes .cm{border:0;background:none;color:#ddd;font-size:15px;padding:4px 12px;border-radius:14px}
.cammodes .cm.on{background:rgba(255,255,255,.2);color:#fff}
.camshut{width:72px;height:72px;border-radius:50%;border:4px solid #fff;background:transparent;padding:0;display:flex;align-items:center;justify-content:center}
.camshut span{width:56px;height:56px;border-radius:50%;background:#fff;transition:all .15s}
.camshut.vid span{background:#d93a3a}
.camshut.rec span{width:28px;height:28px;border-radius:6px;background:#d93a3a}
#modal img.preview,#modal video.preview{max-width:100%;max-height:50vh;border-radius:8px;display:block;margin:0 auto 10px}


.imgwrap{display:block;position:relative}
.imgwrap.loading{width:220px;height:160px;border-radius:6px;background:#dfe8ee;overflow:hidden}
.imgwrap.loading img{opacity:0;position:absolute;left:0;top:0;width:100%;height:100%}


/* ===== v52: in-app viewers, PDF card, expired media ===== */
.vwr{position:fixed;inset:0;z-index:4000;background:#000;display:flex;flex-direction:column;animation:vwrin .16s ease-out;-webkit-user-select:none;user-select:none}
.vwr.closing{opacity:0;transition:opacity .15s}
@keyframes vwrin{from{opacity:0}to{opacity:1}}
.vwr-bar{position:absolute;top:0;left:0;right:0;z-index:3;display:flex;align-items:center;gap:10px;padding:calc(10px + var(--sat)) 12px 10px;background:linear-gradient(rgba(0,0,0,.6),transparent)}
.vwr-x,.vwr-share{flex:none;width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:19px;display:flex;align-items:center;justify-content:center;padding:0}
.vwr-share svg{width:20px;height:20px}
.vwr-title{flex:1;min-width:0;color:#fff;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.vwr-body{flex:1;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none}
.vwr-img{max-width:100%;max-height:100%;object-fit:contain;will-change:transform;-webkit-user-drag:none}
.vwr-pdf{background:#2b2f33}
.vwr-pdf .vwr-body{display:block;touch-action:pan-x pan-y}
.vwr-pages{position:absolute;inset:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:calc(64px + var(--sat)) 8px calc(24px + env(safe-area-inset-bottom));touch-action:pan-x pan-y}
.vwr-page{background:#fff;margin:0 auto 10px;box-shadow:0 2px 10px rgba(0,0,0,.4);position:relative}
.vwr-page canvas{display:block;width:100%;height:100%}
.vwr-count{position:absolute;left:50%;bottom:calc(28px + env(safe-area-inset-bottom));transform:translateX(-50%);background:rgba(0,0,0,.65);color:#fff;font-size:13px;padding:5px 12px;border-radius:14px;z-index:3;font-variant-numeric:tabular-nums;pointer-events:none}
.vwr-msg{color:#dfe5ea;text-align:center;margin-top:30vh}
body.vw-open{overflow:hidden}
.imgwrap{display:block;position:relative;border:0;padding:0;background:none;cursor:zoom-in;max-width:100%}
.imgwrap img{display:block;max-width:100%;border-radius:6px}
.pdfc{display:block;width:250px;max-width:100%;border:0;padding:0;background:rgba(0,0,0,.05);border-radius:8px;overflow:hidden;text-align:left;cursor:pointer;color:inherit;margin-bottom:2px}
.pdfc-pic{height:120px;background:#e9eef1 center top/cover no-repeat}
.pdfc-pic.none{display:none}
.pdfc-row{display:flex;align-items:center;gap:10px;padding:8px 10px}
.pdfc-ico{flex:none;background:#d6372b;color:#fff;font-size:10px;font-weight:800;border-radius:4px;padding:5px 4px;letter-spacing:.03em}
.pdfc-txt{min-width:0}
.pdfc-name{font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pdfc-meta{font-size:12px;color:#6b7c88;margin-top:1px}
.expired{font-size:14px;color:#6b7c88;font-style:italic;padding:2px 0}



.iprev .draft{color:#1f9d55;font-weight:600}
.unreadline{text-align:center;margin:10px 0}
.unreadline span{display:inline-block;background:#e3eef5;color:#2878a8;font-size:12.5px;font-weight:600;padding:4px 14px;border-radius:12px}
@media (min-width:900px) and (min-height:501px){#main{position:relative}}
#jumpBtn{position:absolute;right:14px;z-index:20;width:42px;height:42px;border-radius:50%;border:0;background:#fff;color:#2878a8;box-shadow:0 2px 10px rgba(0,0,0,.2);display:flex;align-items:center;justify-content:center;padding:0}
#jumpBtn svg{width:24px;height:24px}
#jumpBtn.hidden{display:none}
#jumpBtn .jcount{position:absolute;top:-6px;right:-4px;min-width:20px;height:20px;border-radius:10px;background:#1f9d55;color:#fff;font-size:11.5px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 5px}
#jumpBtn .jcount.hidden{display:none}


#dropCover{position:absolute;inset:0;z-index:50;background:rgba(40,120,168,.12);display:flex;align-items:center;justify-content:center;pointer-events:none;border:3px dashed #2878a8;border-radius:12px;margin:8px}
#dropCover.hidden{display:none}
#dropCover div{background:#2878a8;color:#fff;font-weight:700;font-size:18px;padding:14px 26px;border-radius:14px}
#modal .dropnames{margin:4px 0 10px;padding-left:4px;list-style:none;font-size:14px;max-height:200px;overflow:auto}
#modal .dropnames li{padding:3px 0}

/* v52: tidy list rows + bottom action sheets */
.lrow{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #e6edf2;padding:11px 4px;color:inherit;font:inherit;border-radius:0}
.lrow.tap{cursor:pointer}
.lrow.tap:active{background:rgba(0,0,0,.04)}
.lrow .lava{width:40px;height:40px;font-size:16px;flex:none}
.lrow .lmain{flex:1;min-width:0}
.lrow .ltitle{font-size:16px;font-weight:600;color:#14232d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lrow .lsub,.lrow .lsub2{font-size:13px;color:#6b7c88;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lrow.quote .lsub2{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#33434e}
.lrow .lchev{flex:none;color:#a5b3bd;font-size:24px;line-height:1;padding-left:4px}
.lrow.off{opacity:.55}
.lrow.warn .lsub2{color:#c0602a}
.sheetov{position:fixed;inset:0;z-index:5000;background:rgba(0,0,0,.4);display:flex;align-items:flex-end;justify-content:center;animation:shin .18s ease-out}
.sheetov.out{opacity:0;transition:opacity .18s}
@keyframes shin{from{background:rgba(0,0,0,0)}}
.sheetp{width:100%;max-width:520px;background:#f2f5f7;border-radius:18px 18px 0 0;padding:8px 12px calc(14px + env(safe-area-inset-bottom));box-shadow:0 -8px 30px rgba(0,0,0,.2);animation:shup .22s cubic-bezier(.2,.8,.2,1);max-height:85vh;overflow:auto;transition:transform .2s}
.sheetp.out{transform:translateY(100%)}
@keyframes shup{from{transform:translateY(100%)}}
.sheetgrab{width:38px;height:5px;border-radius:3px;background:#c7d1d8;margin:2px auto 10px}
.sheethead{text-align:center;padding:0 10px 10px}
.sheett{font-size:15px;font-weight:700;color:#14232d}
.sheets{font-size:13px;color:#6b7c88;margin-top:2px}
.sheetgrp{background:#fff;border-radius:14px;overflow:hidden;margin-bottom:10px}
.sheetbtn{display:block;width:100%;border:0;border-bottom:1px solid #e6edf2;background:none;padding:15px 12px;font-size:16.5px;color:#2878a8;text-align:center;border-radius:0;margin:0}
.sheetgrp .sheetbtn:last-child{border-bottom:0}
.sheetbtn.danger{color:#d0342c}
.sheetbtn.cancel{background:#fff;border-radius:14px;border:0;font-weight:700;color:#14232d}
@media (min-width:900px){.sheetov{align-items:center}.sheetp{border-radius:18px}}
/* v52: buttons, menus, tabs and lists are not selectable text (no highlight on long press) */
button,.tab,#tabbar,#tabbar *,.item,.lrow,.sheetp,.chatmenu,.msgmenu,.ctx,header,.tabs,.tabs *,label,.chip,.day,.unreadline,.psyear,.srow,.row,select,.icon,#modal h3{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.msg .txt,.msg p,input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text}
/* v52: iPhone date fields never run off the form */
input[type=date],input[type=time],input[type=datetime-local]{-webkit-appearance:none;appearance:none;display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;text-align:left;min-height:44px}
input[type=date]::-webkit-date-and-time-value{text-align:left}
#modalBox{max-width:min(520px,calc(100vw - 24px));box-sizing:border-box}
#modalBox *{max-width:100%;box-sizing:border-box}



#modalBox .lrow,#modalBox button.lrow{background:none;color:inherit;margin:0;padding:11px 4px;border-radius:0;border-bottom:1px solid #e6edf2;width:100%}
#modalBox .lrow.tap:active{background:rgba(0,0,0,.04)}

/* ===== v53 ===== */
.fchips{display:flex;gap:8px;padding:2px 10px 8px;overflow-x:auto;scrollbar-width:none}
.fchips::-webkit-scrollbar{display:none}
.fchip{flex:none;border:0;border-radius:16px;padding:6px 14px;font-size:14px;font-weight:600;background:#e9f2f8;color:#33434e}
.fchip.on{background:#2878a8;color:#fff}
.fback{border:0;background:none;color:#2878a8;font-size:15px;font-weight:600;padding:6px 4px}
.archnote{color:#6b7c88;font-size:13px;text-align:center;padding:14px 20px;margin:0}
.archrow .archava{background:#e9f2f8;color:#2878a8;display:flex;align-items:center;justify-content:center}
.archrow .archava svg{width:22px;height:22px}
.pinico{display:inline-flex;color:#8a99a4;margin-left:4px}
.pinico svg{width:15px;height:15px;transform:rotate(45deg)}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.msg strong{font-weight:700}
.fcode{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88em;background:rgba(0,0,0,.07);border-radius:4px;padding:1px 4px}
.flist{margin:2px 0 2px 1.3em;padding:0}
.flist li{margin:1px 0}
.fquote{display:block;border-left:3px solid #9bb4c4;padding-left:8px;color:#4f6370;margin:2px 0}
.mention.all{background:rgba(31,157,85,.14);color:#167a41;border-radius:4px;padding:0 2px}
.mrow.mall small{color:#6b7c88;font-weight:400}
.album{display:grid;gap:3px;border-radius:8px;overflow:hidden;width:260px;max-width:100%}
.album.a2{grid-template-columns:1fr 1fr}
.album.a3{grid-template-columns:1fr 1fr}
.album.a3 .atile:first-child{grid-column:1/3}
.album.a4{grid-template-columns:1fr 1fr}
.atile{position:relative;border:0;padding:0;background:#dfe8ee;aspect-ratio:1;overflow:hidden;cursor:zoom-in;margin:0;border-radius:0}
.album.a3 .atile:first-child{aspect-ratio:2/1}
.atile img,.atile video{width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .15s;max-height:none;border-radius:0;margin:0}
.atile.ok img,.atile video{opacity:1}
.atile .vplayico{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px}
.amore{position:absolute;inset:0;background:rgba(0,0,0,.45);color:#fff;font-size:26px;font-weight:700;display:flex;align-items:center;justify-content:center}
.pickgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-bottom:10px;max-height:46vh;overflow:auto}
.pickgrid .pv{position:relative;aspect-ratio:1;background:#dfe8ee;border-radius:6px;overflow:hidden}
.pickgrid img,.pickgrid video{width:100%;height:100%;object-fit:cover;display:block}
.pickgrid .pv span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#fff;text-shadow:0 1px 4px #000}
.vwr-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:28px;line-height:1;padding:0;display:none}
.vwr-nav.prev{left:12px}.vwr-nav.next{right:12px}
@media (hover:hover){.vwr-nav{display:block}}
.gtabs{display:flex;gap:6px;margin:4px 0 10px}
#modalBox .gtabs button{flex:1;background:#e9f2f8;color:#33434e;margin:0;font-weight:600}
#modalBox .gtabs button.on{background:#2878a8;color:#fff}
.gmonth{font-size:12.5px;font-weight:700;color:#6b7c88;text-transform:uppercase;letter-spacing:.04em;margin:12px 2px 6px}
.ggrid{display:grid;grid-template-columns:repeat(4,1fr);gap:3px}
#modalBox .gtile{position:relative;aspect-ratio:1;border:0;padding:0;margin:0;background:#dfe8ee;border-radius:0;overflow:hidden}
.gtile img,.gtile video{width:100%;height:100%;object-fit:cover;display:block;max-height:none;margin:0;border-radius:0}
.gtile .vplayico{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:30px;height:30px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px}
.gempty{text-align:center;padding:30px 0}
.ginfo-top .avatar.big{width:96px;height:96px;font-size:38px;margin:0 auto 8px}
.lrow.danger .ltitle{color:#d0342c}
.chk{display:flex;align-items:center;gap:8px;font-size:14px;margin:6px 0;color:#33434e}
#modalBox .chk input{width:auto;margin:0}
.muted.small{font-size:12.5px;margin:4px 0 8px}
.rbanner{position:fixed;left:10px;right:10px;top:calc(10px + var(--sat));z-index:6000;background:#fff;border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.25);display:flex;align-items:center;gap:10px;padding:12px 12px;max-width:520px;margin:0 auto;animation:shup .25s}
.rbanner .rbt{flex:1;min-width:0;font-size:14px}
.rbanner .rbt div{color:#4f6370;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rbanner .rbo{border:0;background:#2878a8;color:#fff;border-radius:10px;padding:8px 14px;font-weight:600}
.rbanner .rbx{border:0;background:none;color:#8a99a4;font-size:18px;padding:4px 6px}

/* v53: text size */
.msg{font-size:calc(17px * var(--ts,1))}
.item .name{font-size:calc(16px * var(--ts,1))}
.iprev{font-size:calc(14px * var(--ts,1))}
/* v53: wallpaper */
#msgs.walled{background-attachment:local}
html.dark #msgs.walled:not(.wall-darkbg){background-blend-mode:multiply}
html.dark #msgs.walled{box-shadow:inset 0 0 0 100vmax rgba(10,18,24,.55)}
#msgs.wall-darkbg .day,#msgs.wall-darkbg .unreadline span{background:rgba(255,255,255,.85);color:#33434e}
.tapload{display:flex;align-items:center;gap:8px;border:0;background:rgba(0,0,0,.06);border-radius:8px;padding:14px 16px;font-size:14px;color:#2878a8;font-weight:600;margin:2px 0}
.tapload svg{width:20px;height:20px}
/* v53: Settings */
#setBody.setv2{padding:12px 12px 120px;max-width:640px;margin:0 auto}
.pcard{display:flex;align-items:center;gap:16px;background:#fff;border-radius:16px;padding:16px;margin-bottom:18px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.pava{position:relative;border:0;background:none;padding:0;flex:none;cursor:pointer}
.avatar.xl{width:72px;height:72px;font-size:30px}
.pcam{position:absolute;right:-2px;bottom:-2px;width:26px;height:26px;border-radius:50%;background:#2878a8;color:#fff;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.pcam svg{width:14px;height:14px}
.pmeta{min-width:0}
.pname{font-size:20px;font-weight:700;color:#14232d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pmail{font-size:14px;color:#6b7c88;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prole{font-size:12.5px;color:#2878a8;font-weight:600;margin-top:2px}
.sgrp{margin-bottom:18px}
.sgtitle{font-size:12.5px;font-weight:700;color:#6b7c88;text-transform:uppercase;letter-spacing:.05em;margin:0 6px 6px}
.sgbox{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.sitem{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:8px 14px;border:0;border-bottom:1px solid #edf1f4;background:none;text-align:left;font:inherit;color:#14232d;border-radius:0;margin:0}
.sgbox .sitem:last-child{border-bottom:0}
button.sitem:active{background:rgba(0,0,0,.04)}
.sico{flex:none;width:30px;height:30px;border-radius:8px;color:#fff;display:flex;align-items:center;justify-content:center}
.sico svg{width:18px;height:18px}
.stitle{flex:1;min-width:0;font-size:16px}
.sitem.danger .stitle{color:#d0342c}
.sval{flex:none;color:#8a99a4;font-size:14.5px;max-width:45%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sitem .seg2{flex:none}
.sitem .seg2 button{padding:5px 9px;font-size:13px}
input.switch{appearance:none;-webkit-appearance:none;flex:none;width:50px;height:30px;border-radius:15px;background:#d4dce2;position:relative;cursor:pointer;transition:background .2s;margin:0}
input.switch::after{content:"";position:absolute;left:2px;top:2px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .2s}
input.switch:checked{background:#34c759}
input.switch:checked::after{left:22px}
.wgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:6px 0 12px}
#modalBox .wsw{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;color:#33434e;padding:0;margin:0;border-radius:12px}
.wsw .wprev{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:3/4;border-radius:12px;border:2px solid #dfe6eb;font-size:28px;color:#8a99a4}
.wsw.on .wprev{border-color:#2878a8;box-shadow:0 0 0 2px #2878a8}
.wsw .wname{font-size:13px}
.wnhead{display:flex;align-items:center;gap:10px}
.wnhead span{font-size:28px}
.wnhead h3{margin:0}
.wnver{font-size:12.5px;font-weight:700;color:#6b7c88;text-transform:uppercase;letter-spacing:.04em;margin:12px 0 4px}
.wnlist{margin:0 0 6px;padding-left:20px;line-height:1.45}
.wnlist li{margin:4px 0}


/* formatting bar (v53.1) */
#fmtBar{display:flex;gap:6px;padding:0 2px}
#fmtBar.hidden{display:none}
#fmtBar .fmtb{flex:1;min-width:0;height:38px;border:0;border-radius:10px;background:#fff;color:#1f6f9f;font-size:17px;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;box-shadow:0 1px 2px rgba(0,0,0,.08)}
#fmtBar .fmtb:active{background:#dbe9f3}
#fmtBar .fmtb b,#fmtBar .fmtb i,#fmtBar .fmtb s{font-family:Georgia,'Times New Roman',serif;font-size:19px}
#fmtBar .fmtb code{font-size:14px;font-weight:600}
#fmtBar .fmtb svg{width:20px;height:20px}
@media (min-width:900px){#fmtBar .fmtb{flex:0 0 48px}}


/* ===== v54 calendar ===== */
.calviews{display:flex;gap:4px;background:#e4edf3;border-radius:11px;padding:3px;margin:10px 12px 0;max-width:640px;align-self:center;width:calc(100% - 24px);box-sizing:border-box}
#calView{display:flex;flex-direction:column}
#calView.hidden{display:none}
.calviews button{flex:1;border:0;background:transparent;color:#34505f;font-size:14px;font-weight:600;padding:7px 0;border-radius:8px;cursor:pointer}
.calviews button.active{background:#fff;color:#1f6f9f;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.calhead .calicon{padding:5px 9px;display:flex;align-items:center}
.calhead .calicon svg{width:19px;height:19px}
.month{content-visibility:auto;contain-intrinsic-size:auto 420px}
.cgrid{gap:4px 0}
.cgrid .dow{font-size:12px;color:#7a8c98;font-weight:600;padding-bottom:4px}
.cgrid .cd{aspect-ratio:auto;height:48px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:5px 0 0;border:0;border-radius:0;background:transparent;position:relative;font-weight:400;box-shadow:none}
.cgrid .cd.we{background:transparent}
.cgrid .cd.we .num{color:#8a9aa5}
.cgrid .cd .num{width:28px;height:28px;line-height:28px;border-radius:50%;font-size:15px;color:#16303f;display:block}
.cgrid .cd.ev .num{font-weight:700}
.cgrid .cd.today .num{background:#2878a8;color:#fff;font-weight:700}
.cgrid .cd.past .num{opacity:.38}
.cgrid .cd.past .band,.cgrid .cd.past .dt{opacity:.4}
.cgrid .cd.past.tinted{background:none}
.cgrid .cd.tinted{background:var(--tint)}
.cgrid .cd.tinted.ts{border-top-left-radius:10px;border-bottom-left-radius:10px}
.cgrid .cd.tinted.te{border-top-right-radius:10px;border-bottom-right-radius:10px}
.cgrid .cd:focus-visible{outline:2px solid #2878a8;outline-offset:-2px}
.cgrid .bands{position:absolute;left:0;right:0;bottom:5px;display:flex;flex-direction:column;gap:2px}
.cgrid .band{height:4px;display:block}
.cgrid .band.s{margin-left:6px;border-top-left-radius:3px;border-bottom-left-radius:3px}
.cgrid .band.e{margin-right:6px;border-top-right-radius:3px;border-bottom-right-radius:3px}
.cgrid .dots{position:absolute;left:0;right:0;bottom:6px;display:flex;justify-content:center;gap:3px}
.cgrid .cd.tinted .dots{bottom:13px}
.cgrid .dt{width:6px;height:6px;border-radius:50%;display:block}
@media (hover:hover){.cgrid .cd:hover .num{background:#e8f1f7}.cgrid .cd.today:hover .num{background:#1f6f9f}}
.calkey{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:10px;padding-top:9px;border-top:1px solid #eef3f7;font-size:13px;color:#34505f}
.calkey .kitem{display:inline-flex;align-items:center;gap:6px}
.ksw{width:11px;height:11px;border-radius:50%;display:inline-block;flex:none}
.calkey .khow{flex-basis:100%;font-size:12px;color:#7a8c98}
.mevents{border-top:1px solid #eef3f7;margin-top:9px}
.mevents .mev{display:flex;gap:9px;align-items:flex-start;padding:6px 0;cursor:pointer}
.mevents .mev.past{opacity:.5}
.mevents .dot{flex:none;width:9px;height:9px;border-radius:50%;margin:5px 0 0}
.mevents .dot.bar{width:14px;height:5px;border-radius:3px;margin-top:7px}
.mevents .mtxt{flex:1;min-width:0;line-height:1.35}
.mevents .mplace{color:#5b6f7d}
.mevents .mdesc{margin:2px 0 0;color:#5b6f7d;font-size:13px}
.calnav{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.calnav .navb{width:40px;height:40px;border-radius:50%;border:0;background:#eef4f8;color:#1f6f9f;font-size:24px;line-height:1;cursor:pointer;flex:none}
.calnav .navb:disabled{opacity:.35;cursor:default}
.calnav .navt{flex:1;text-align:center;font-weight:700;font-size:16px;color:#16303f}
.calnav .navs{font-size:12px;font-weight:500;color:#7a8c98;margin-top:1px}
.calnav .navlink{border:0;background:none;color:#2878a8;font-size:12px;font-weight:600;padding:2px 0;cursor:pointer}
.weekv{padding:12px 10px}
.wrow{display:flex;gap:10px;width:100%;text-align:left;background:none;border:0;border-top:1px solid #eef3f7;padding:9px 4px;cursor:pointer;font:inherit;color:inherit;align-items:flex-start}
.wrow.past{opacity:.5}
.wday{width:42px;flex:none;text-align:center}
.wwd{font-size:12px;color:#7a8c98;font-weight:600}
.wnum{width:32px;height:32px;line-height:32px;border-radius:50%;margin:2px auto 0;font-size:17px;font-weight:600;color:#16303f}
.wrow.today .wnum{background:#2878a8;color:#fff}
.wrow.we .wnum{color:#8a9aa5}
.wevs{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;padding-top:3px}
.wnone{color:#9aabb6;font-size:14px;padding-top:9px}
.wev{border-left:4px solid;border-radius:7px;padding:6px 9px}
.wname{font-weight:600;color:#16303f;font-size:14px}
.wmeta{font-size:12px;color:#5b6f7d;margin-top:1px}
.yearv{max-width:900px;margin:0 auto}
.ygrid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
@media (min-width:600px){.ygrid{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1100px){.ygrid{grid-template-columns:repeat(4,1fr)}}
.ymon{background:#fff;border:0;border-radius:12px;padding:9px 8px 10px;box-shadow:0 1px 2px rgba(0,0,0,.08);cursor:pointer;font:inherit;text-align:left}
.ymon.cur{box-shadow:0 0 0 2px #2878a8}
.ymon.none{opacity:.45;cursor:default}
.ymon .yt{font-weight:700;font-size:14px;color:#16303f;margin:0 0 5px 3px}
.ymon .yg{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;text-align:center}
.ymon .yd{font-size:10px;line-height:17px;height:17px;border-radius:4px;color:#34505f}
.ymon .yd.we{color:#9aabb6}
.ymon .yd.on{color:#fff;font-weight:700}
.ymon .yd.past{opacity:.45}
.ymon .yd.today{background:#16303f;color:#fff;border-radius:50%;font-weight:700}
.ymon .ynone{grid-column:1/-1;font-size:12px;color:#7a8c98;padding:20px 0;text-align:center}
.yearv .calkey{border:0;background:#fff;border-radius:12px;padding:10px 12px;margin-top:12px}
.upv{max-width:640px;margin:0 auto}
.uprow{display:flex;align-items:center;gap:11px;width:100%;background:#fff;border:0;border-radius:12px;padding:10px 12px 10px 0;margin-bottom:7px;box-shadow:0 1px 2px rgba(0,0,0,.07);text-align:left;font:inherit;color:inherit;cursor:pointer;overflow:hidden}
.upbar{width:5px;align-self:stretch;flex:none}
.update{width:40px;flex:none;text-align:center}
.upwd{font-size:11px;font-weight:700;color:#7a8c98;text-transform:uppercase}
.upd{font-size:20px;font-weight:700;color:#16303f;line-height:1.1}
.uptxt{flex:1;min-width:0}
.upname{font-weight:600;color:#16303f}
.upmeta{font-size:12.5px;color:#5b6f7d;margin-top:1px}
.uprel{flex:none;font-size:12px;font-weight:600;color:#2878a8;background:#e6f0f7;border-radius:10px;padding:3px 8px}
.uprel.now{background:#2878a8;color:#fff}
.calsheet{max-width:560px}
.calsheet .evcard{background:#fff;border-left:6px solid;border-radius:12px;padding:11px 13px;margin:0 0 10px}
.evcat{display:inline-block;font-size:11.5px;font-weight:700;border-radius:8px;padding:2px 8px;margin-bottom:5px}
.evname{display:block;font-size:16.5px;color:#14232d}
.evwhen{color:#34505f;font-size:14px;margin-top:2px}
.evplace{color:#34505f;font-size:14px;margin-top:3px}
.calsheet .evdesc{color:#5b6f7d;font-size:14px;margin-top:6px;white-space:pre-wrap}
.evacts{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.evbtn{border:0;background:#e9f1f7;color:#1f6f9f;font-weight:600;font-size:13.5px;border-radius:9px;padding:8px 12px;cursor:pointer}
.evbtn.danger{background:#fdecea;color:#c0362c}
.calnone{text-align:center;color:#5b6f7d;margin:4px 0 14px}
.calhelp{font-size:13px;color:#34505f;background:#fff;border-radius:12px;padding:11px 13px;margin:0 0 10px;line-height:1.45}
.catpick{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0 10px}
#modalBox .catpick .catb{display:inline-flex;align-items:center;gap:7px;margin:0;width:auto;padding:7px 12px;border-radius:18px;background:#eef4f8;color:#16303f;border:2px solid transparent;font-size:14px;font-weight:500}
#modalBox .catpick .catb.sel{border-color:#2878a8;background:#e1eef7;font-weight:700}
.flabel{font-size:13px;color:#5b6f7d;margin-top:8px}
.swatches.hidden,.two.hidden{display:none}
/* timetable: what the calendar says about the day shown */
.ttcal{display:block;width:100%;text-align:left;font:inherit;color:inherit;background:#fff;border:0;border-left:5px solid #d63a2f;border-radius:12px;padding:10px 13px;margin:0 0 12px;box-shadow:0 1px 2px rgba(0,0,0,.08);cursor:pointer}
.ttcalhead{font-weight:700;color:#16303f;margin-bottom:3px}
.ttcalev{font-size:14px;color:#34505f;display:flex;align-items:center;gap:7px;margin-top:2px}
.ttcaldot{width:9px;height:9px;border-radius:50%;flex:none}
.ttcallink{font-size:13px;font-weight:600;color:#2878a8;margin-top:5px}
/* notifications */
.ntlist{max-width:640px;margin:0 auto;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.ntrow{display:flex;gap:11px;padding:12px 12px 12px 13px;border-bottom:1px solid #eef3f7;cursor:pointer;align-items:flex-start}
.ntrow:last-child{border-bottom:0}
.ntrow.unread{background:#f2f8fc}
.ntico{font-size:20px;width:28px;text-align:center;flex:none;line-height:26px}
.ntmain{flex:1;min-width:0}
.nttitle{color:#16303f;font-size:15px}
.ntrow.unread .nttitle{font-weight:700}
.ntbody{color:#4a6170;font-size:13.5px;margin-top:2px;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.ntwhen{color:#8a9aa5;font-size:12px;margin-top:3px}
.ntread{flex:none;width:34px;height:34px;border:0;background:none;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%}
.ntread:hover{background:#e3eef6}
.ntdot{width:10px;height:10px;border-radius:50%;background:#2878a8;display:block}
.ntok{max-width:640px;margin:0 auto 8px}
.alrecent{max-width:640px;margin:4px auto 10px;font-size:14px;color:#5b6f7d}
.alrecent summary{cursor:pointer;padding:6px 2px}
#alBody .psyear,#alBody .alcard,#alBody>.psbtn{max-width:640px;margin-left:auto;margin-right:auto}
#alBody>.psbtn{display:block}
#tabbar .tlong{font-size:10px;letter-spacing:-.2px;white-space:nowrap}


/* ===== v55 timetable ===== */
#ttBar{flex:none;padding:10px 12px 0}
.ttseg{display:flex;gap:4px;background:#d9e7f0;border-radius:11px;padding:3px}
.ttseg.hidden{display:none}
.ttseg button{flex:1;border:0;background:transparent;color:#34505f;font-size:14px;font-weight:600;padding:7px 0;border-radius:8px;cursor:pointer}
.ttseg button.active{background:#fff;color:#1f6f9f;box-shadow:0 1px 3px rgba(0,0,0,.12)}
#ttSearch{display:flex;gap:8px;align-items:center;margin-top:8px}
#ttSearch.hidden{display:none}
#ttSearch input{flex:1;min-width:0;border:1px solid #cfe0ea;border-radius:10px;padding:9px 12px;font-size:16px;background:#fff;margin:0}
#ttSearch button{border:0;background:none;color:#2878a8;font-weight:600;font-size:15px;padding:6px 2px;cursor:pointer}
#ttDays.hidden{display:none}
#ttDays button.istoday:not(.active){border-color:#2878a8;color:#2878a8;font-weight:700}
.ttday{position:relative;padding-bottom:6px}
.ttgroup{transition:opacity .4s}
.ttgroup.done{opacity:.42}
.ttgroup.now .ttcard{box-shadow:0 0 0 2px #2878a8,0 2px 8px rgba(40,120,168,.18)}
.ttstate{font-size:11px;font-weight:700;border-radius:8px;padding:1px 5px;margin-top:4px;display:inline-block;white-space:nowrap}
.ttstate.now{background:#2878a8;color:#fff}
.ttstate.next{background:#e3eef6;color:#1f6f9f}
.ttuntil{margin-left:auto;font-weight:600;color:#2878a8}
.ttnow{position:absolute;left:0;right:0;height:0;border-top:2px solid #e53935;z-index:1;pointer-events:none;transition:top 1s linear}
.ttday .ttcards{position:relative;z-index:2}
.ttnowt{z-index:3}
.ttnow::before{content:'';position:absolute;left:48px;top:-6px;width:10px;height:10px;border-radius:50%;background:#e53935}
.ttnowt{position:absolute;left:0;top:-10px;background:#e53935;color:#fff;font-size:11px;font-weight:700;border-radius:8px;padding:2px 6px;line-height:14px}
.tttz{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;font-size:13px;color:#34505f;background:#fff7e0;border-radius:10px;padding:8px 11px;margin:0 0 10px}
.linkbtn{border:0;background:none;color:#2878a8;font-weight:700;font-size:13px;padding:0;cursor:pointer}
.ttfree{background:#fff;border-radius:12px;padding:10px 12px;margin:0 0 6px;box-shadow:0 1px 2px rgba(0,0,0,.07)}
.ttfreeh{font-weight:700;color:#16303f;font-size:14px}
.ttchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.ttchip{background:#e7f5ec;color:#21703a;border-radius:9px;padding:4px 9px;font-size:13px;font-weight:600}
.ttchip small{font-weight:500;color:#4c7d5c;font-size:12px}
.twsum{font-size:13px;color:#5b6f7d;margin:2px 2px 8px}
.ttweek{display:grid;gap:3px;background:transparent}
.twh{text-align:center;font-size:12px;font-weight:700;color:#5b6f7d;padding:4px 0;border-radius:8px}
.twh.today{background:#2878a8;color:#fff}
.twt{font-size:12px;font-weight:600;color:#2878a8;padding-top:6px}
.twc{background:#fff;border:0;border-radius:8px;padding:3px;min-height:46px;display:flex;flex-direction:column;gap:3px;text-align:left;font:inherit;cursor:pointer;min-width:0}
.twc.empty{background:rgba(255,255,255,.45);cursor:default}
.twc.today{box-shadow:inset 0 0 0 1.5px #9cc6e2}
.twc.done{opacity:.45}
.twc.now{box-shadow:inset 0 0 0 2px #2878a8}
.twcls{border-left:3px solid;border-radius:5px;padding:3px 4px;min-width:0}
.twx{font-size:11px;font-weight:700;color:#16303f;line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;word-break:break-word}
.twr{font-size:10px;color:#5b6f7d;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width:700px){.twx{font-size:12.5px}.twr{font-size:11.5px}.twc{min-height:56px;padding:5px}}
#ttList .psyear{margin-top:12px}


/* ===== v56: labels that do not fit ===== */
#tabbar.icons-only button>span{display:none}
#tabbar.icons-only button svg{width:26px;height:26px}
#tabbar.icons-only .tbadge{top:6px}
.tight>button{font-size:12.5px!important;letter-spacing:-.2px;padding-left:2px!important;padding-right:2px!important}
#calViews button,#ttMode button,.hrsort button{white-space:nowrap;overflow:hidden;text-overflow:clip;min-width:0}
/* ===== v56 hours ===== */
.hrback{border:0;background:none;color:#2878a8;font-weight:700;font-size:15px;padding:2px 0 10px;cursor:pointer}
.hrsum2{background:linear-gradient(135deg,#2878a8,#1f6390);color:#fff;border-radius:14px;padding:14px 14px 10px;margin-bottom:10px;box-shadow:0 2px 8px rgba(31,99,144,.25)}
.hrsumtop{display:flex;justify-content:space-between;align-items:flex-end;gap:10px}
.hrsuml{font-size:13px;opacity:.85}
.hrsumn{font-size:30px;font-weight:800;line-height:1.1;letter-spacing:-.5px}
.hrsplit{text-align:right;font-size:13px;opacity:.92;line-height:1.45}
.hrsplit b{font-weight:700}
.hrbars{display:flex;gap:8px;align-items:flex-end;margin-top:12px;height:96px}
.hrbar{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;height:100%}
.hrbv{font-size:11px;font-weight:700;height:14px;line-height:14px}
.hrbt{flex:1;width:100%;max-width:38px;display:flex;align-items:flex-end;background:rgba(255,255,255,.12);border-radius:6px;overflow:hidden}
.hrbf{width:100%;background:rgba(255,255,255,.9);border-radius:6px 6px 0 0}
.hrbar.past .hrbf{background:rgba(255,255,255,.6)}
.hrbar.cur .hrbf{background:#ffd54f}
.hrbar.future .hrbf{background:rgba(255,255,255,.35)}
.hrbl{font-size:11px;margin-top:4px;opacity:.85;white-space:nowrap}
.hrbar.cur .hrbl{font-weight:700;opacity:1}
.hradd.sec2{background:transparent;box-shadow:none;border:1px dashed #9cc0d8;font-weight:600}
.hrclosed{text-align:center}
.hrcard.wk{padding:0 12px}
.hrcard.wk .hrhead{width:100%;display:flex;align-items:center;gap:8px;border:0;background:none;padding:12px 0;font:inherit;color:inherit;cursor:pointer;text-align:left;border-bottom:0}
.hrcard.wk.open .hrhead{border-bottom:1px solid #e3edf3}
.hrwk{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.hrwk strong{color:#16303f}
.hrnow{font-size:11px;font-weight:700;background:#ffd54f;color:#5a4300;border-radius:8px;padding:1px 7px}
.hrcnt{font-size:12px;color:#5b6f7d}
.hrchev{color:#8a9aa5;font-size:20px;transform:rotate(90deg);transition:transform .2s;width:14px;text-align:center}
.hrchev.up{transform:rotate(-90deg)}
.hrcard.wk.past:not(.open){background:#f7fafc}
.hrcard.wk .hrrow{align-items:center;gap:10px}
.hrday{flex:none;min-width:50px;text-align:center;font-size:12px;font-weight:700;color:#1f6f9f;background:#e6f0f7;border-radius:8px;padding:3px 6px}
.hrday.g{background:#eef2f4;color:#5b6f7d}
.hrname{flex:1;min-width:0;color:#16303f;overflow:hidden;text-overflow:ellipsis}
.hrrow.grp .hrname{color:#5b6f7d}
.hrh{flex:none;font-weight:600;color:#16303f}
.hrmore{text-align:center;font-size:13px}
.hrsort{display:flex;align-items:center;gap:6px;margin:0 0 8px;font-size:13px;color:#5b6f7d}
.hrsort button{border:1px solid #cfe0ea;background:#fff;color:#34505f;border-radius:16px;padding:5px 11px;font-size:13px;cursor:pointer}
.hrsort button.active{background:#2878a8;border-color:#2878a8;color:#fff;font-weight:600}
.hrover{display:flex;flex-direction:column;gap:7px}
.hrorow{display:block;width:100%;text-align:left;background:#fff;border:0;border-radius:12px;padding:11px 13px;box-shadow:0 1px 2px rgba(0,0,0,.08);font:inherit;color:inherit;cursor:pointer}
.hrorow.empty{box-shadow:inset 4px 0 0 #f0a020,0 1px 2px rgba(0,0,0,.08)}
.hrotop{display:flex;justify-content:space-between;gap:8px}
.hrotop strong{color:#16303f}
.hrotrack{display:flex;height:8px;background:#eef3f7;border-radius:5px;overflow:hidden;margin:7px 0 5px}
.hrofill.g{background:#8fb8d3}.hrofill.x{background:#2878a8}
.hrosub{font-size:12px;color:#5b6f7d}
.hrorow.empty .hrosub{color:#a5630a}
.hrkey{display:flex;align-items:center;gap:6px;font-size:12px;color:#5b6f7d;margin:9px 2px}
.hrk{width:12px;height:8px;border-radius:3px;display:inline-block;margin-left:6px}.hrk.g{background:#8fb8d3;margin-left:0}.hrk.x{background:#2878a8}
.hrform .hrchips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 8px}
.hrchiph{flex-basis:100%;font-size:12px;color:#7a8c98;font-weight:600;margin-top:2px}
#modalBox .hrchip{margin:0;width:auto;padding:6px 11px;border-radius:16px;background:#eef4f8;color:#16303f;font-size:13.5px;font-weight:500;border:1.5px solid transparent}
#modalBox .hrchip.t{background:#f3f0fb}
#modalBox .hrchip.sel{border-color:#2878a8;background:#e1eef7}
.hrstep{display:flex;gap:8px;align-items:center;margin-bottom:6px}
#modalBox .hrstep button{width:44px;height:44px;margin:0;padding:0;border-radius:12px;font-size:22px;background:#eef4f8;color:#1f6f9f;flex:none}
.hrstep input{flex:1;text-align:center;font-size:18px;font-weight:700;margin:0}
.hrpickh{display:flex;justify-content:space-between;align-items:baseline;margin-top:6px}
.hrcount{font-size:13px;color:#2878a8;font-weight:600}
.hrpick{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin:6px 0}
.hrpdow{font-size:11px;text-align:center;color:#7a8c98;font-weight:600}
#modalBox .hrpd{margin:0;padding:0;height:38px;border-radius:10px;background:#f2f6f9;color:#16303f;font-size:15px;font-weight:500;border:1.5px solid transparent;width:auto}
#modalBox .hrpd.we{color:#8a9aa5;background:#f7f9fb}
#modalBox .hrpd.today{border-color:#2878a8}
#modalBox .hrpd.sel{background:#2878a8;color:#fff;font-weight:700;border-color:#2878a8}
/* ===== v56 payslips by year ===== */
.psrow{display:flex;align-items:center;gap:11px;width:100%;background:#fff;border:0;border-radius:12px;padding:13px 14px;margin-bottom:7px;box-shadow:0 1px 2px rgba(0,0,0,.08);font:inherit;color:inherit;text-align:left;cursor:pointer}
.psico2{font-size:20px}
.psm{flex:1;font-weight:600;color:#16303f;font-size:16px}
.psnew{font-size:11.5px;font-weight:700;background:#e3eef6;color:#1f6f9f;border-radius:8px;padding:2px 8px}
.pschev{color:#8a9aa5;font-size:22px}

#hrBody>*,#psBody>*{max-width:720px;margin-left:auto;margin-right:auto}
#hrBody>.hrback{display:block}

.vwr-title b{display:block;font-size:15px;line-height:1.2;overflow:hidden;text-overflow:ellipsis}
.vwr-title .vwr-when{display:block;font-size:12px;font-weight:400;opacity:.8;margin-top:1px}
.vwtitle{position:absolute;top:calc(12px + var(--sat));left:64px;right:64px;z-index:2;color:#fff;text-align:center;pointer-events:none;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.vwtitle b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vwtitle span{display:block;font-size:12px;opacity:.85}
/* ===== v57: bell, registro ===== */
.bellbtn{position:relative;width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none;padding:0}
.bellbtn svg{width:21px;height:21px}
.bellbtn .bellbadge{position:absolute;top:-2px;right:-3px;min-width:17px;height:17px;border-radius:9px;background:#e53935;color:#fff;font-size:10.5px;font-weight:700;line-height:17px;padding:0 4px;box-sizing:border-box;text-align:center}
.bellbtn .bellbadge.hidden{display:none}
.sidehead .bellbtn{background:transparent;color:inherit;margin-left:auto;margin-right:6px}
.alback{border:0;background:none;color:#fff;font-size:30px;line-height:1;padding:0 10px 0 0;cursor:pointer}
#alView .calhead{justify-content:flex-start;gap:4px}
#alView .calhead>div:not(.calbtns){flex:1}
#hrSegWrap{padding:10px 12px 0;flex:none}
#hrSegWrap.hidden,#rgBody.hidden,#hrBody.hidden{display:none}
#rgBody{flex:1;overflow-y:auto;padding:12px 12px 104px}
#rgBody>*{max-width:720px;margin-left:auto;margin-right:auto}
.rgst{display:inline-block;font-size:12px;font-weight:700;border-radius:9px;padding:2px 9px;margin-bottom:3px;background:rgba(255,255,255,.2);color:#fff}
.rgst.ok{background:#e7f5ec;color:#21703a}.rgst.wait{background:#ffd54f;color:#5a4300}
.hrorow .rgst.open{background:#eef2f4;color:#5b6f7d}
.rgwarn{margin-top:10px;background:rgba(255,213,79,.2);border-radius:8px;padding:7px 9px;font-size:13px}
.rgnote{text-align:center;font-size:13.5px}
.rgadmin{display:flex;gap:8px}.rgadmin>button{flex:1}
.hradd:disabled{opacity:.55}
.rggrid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;background:#fff;border-radius:12px;padding:10px 8px;box-shadow:0 1px 2px rgba(0,0,0,.08);margin-bottom:8px}
.rgdow{font-size:11px;color:#7a8c98;text-align:center;font-weight:600}
.rgd{border:0;border-radius:9px;background:#f4f7f9;min-height:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;cursor:pointer;font:inherit;padding:2px 0;color:#16303f}
.rgd .n{font-size:14px;font-weight:600}
.rgd .s{font-size:10px;font-weight:600;min-height:12px;line-height:12px}
.rgd.k-work{background:#2878a8;color:#fff}
.rgd.k-holiday{background:#e7f5ec;color:#21703a}
.rgd.k-sick{background:#fdeedd;color:#a85b08}
.rgd.k-off{background:#eef2f4;color:#8a9aa5}
.rgd.todo{background:#fff;box-shadow:inset 0 0 0 2px #e57373;color:#c62828}
.rgd.later{background:#fff;box-shadow:inset 0 0 0 1.5px #cfdbe3}
.rgd.future{opacity:.55}
.rgd.today{outline:2px solid #16303f;outline-offset:1px}
.rgd.hol:not(.k-work){background:#fbeaea}
.rgkey{display:flex;flex-wrap:wrap;gap:5px 12px;font-size:12px;color:#5b6f7d;margin:0 2px 10px}
.rgkey span{display:inline-flex;align-items:center;gap:5px}
.rgkey .k{width:12px;height:12px;border-radius:4px;display:inline-block}
.rgkey .k.work{background:#2878a8}.rgkey .k.todo{box-shadow:inset 0 0 0 2px #e57373}.rgkey .k.holiday{background:#bfe5cc}.rgkey .k.sick{background:#f6cf9f}.rgkey .k.off{background:#dfe6eb}
.rglist{padding:0 12px}
.rglist .hrrow.rgpending .hrname{color:#c62828}
.rglist .hrrow.rgfut{opacity:.55}
.rglist .hrrow .hrname{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.rgkind{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0 10px}
#modalBox .rgkind button{margin:0;padding:9px 6px;border-radius:10px;background:#eef4f8;color:#16303f;font-size:14px;font-weight:500;border:2px solid transparent}
#modalBox .rgkind button.sel{border-color:#2878a8;background:#e1eef7;font-weight:700}
.rgbr{display:flex;align-items:center;gap:6px;margin:4px 0}
.rgbr input{flex:1;min-width:0;margin:0}
#modalBox .rgx,#modalBox .rgaddbr{width:auto;margin:0;background:none;color:#2878a8;padding:4px 6px}
#modalBox .rgaddbr{display:block;margin:2px 0 8px;font-weight:700}
.rgform select{width:100%;padding:9px;border-radius:10px;border:1px solid #cfe0ea;font-size:16px;background:#fff;margin:2px 0 8px}
.rgmrow{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #eef3f7}
.rgmrow input[type=checkbox]{width:20px;height:20px;flex:none;margin:0}
.rgmt{flex:1;min-width:0;font-size:14px;color:#16303f}
.rgmt small{display:block;color:#5b6f7d;font-size:12px}
.rgform .rgother{width:auto;margin:0;flex:none;font-size:14px;padding:6px}
.rgother.hidden{display:none}
.psreg{font-size:11.5px;font-weight:700;background:#e7f5ec;color:#21703a;border-radius:8px;padding:2px 8px}

.calhead .bellbtn{padding:0;border:0;border-radius:50%;width:38px;height:38px}
.bellbtn svg{width:22px!important;height:22px!important;flex:none;display:block}
#modalBox .rgmrow input[type=checkbox]{width:22px;height:22px;flex:none;margin:0;padding:0}
.rgmrow{cursor:pointer}
#modalBox .rgmrow .rgother{width:auto;margin:0}

#hrSegWrap>.hrseg{max-width:720px;margin:0 auto}

/* v58 in-app message banner (WhatsApp-style) */
#msgBanner{position:fixed;left:8px;right:8px;top:calc(var(--sat) + 6px);z-index:3000;display:none;align-items:center;gap:10px;padding:10px 12px;background:rgba(255,255,255,.97);border-radius:16px;box-shadow:0 6px 24px rgba(0,0,0,.18);cursor:pointer;max-width:520px;margin:0 auto;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
#msgBanner.show{display:flex;animation:bnIn .22s ease-out}
#msgBanner.out{animation:bnOut .22s ease-in forwards}
@keyframes bnIn{from{transform:translateY(-120%);opacity:0}to{transform:none;opacity:1}}
@keyframes bnOut{to{transform:translateY(-120%);opacity:0}}
#msgBanner .bnava{flex:0 0 38px;width:38px;height:38px;font-size:15px}
#msgBanner .bntxt{min-width:0;flex:1}
#msgBanner .bntitle{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#111}
#msgBanner .bnbody{font-size:14px;color:#444;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}

/* v59 reactions pill, typing bubble, emoji panel */
.msg.hasr{position:relative;margin-bottom:17px}
.msg .rpill{position:absolute;bottom:-17px;left:10px;display:inline-flex;align-items:center;gap:3px;height:26px;padding:0 7px;margin:0;width:auto;border-radius:13px;background:#fff;border:1.5px solid #e8edf1;box-shadow:0 1px 2px rgba(0,0,0,.14);font-size:15px;line-height:1;cursor:pointer;color:#54656f;white-space:nowrap;z-index:1}
.msg.me .rpill{left:auto;right:10px}
.msg .rpill.mine{border-color:#cfe3f1}
.msg .rpill .rpe{letter-spacing:1px}
.msg .rpill .rpn{font-size:13px;font-weight:600}
#typing{display:none!important}
.iprev.typing{position:relative}
.iprev.typing .ipunder{visibility:hidden}
.iprev.typing .iptyping{position:absolute;left:0;top:0;right:0;color:#1a9e55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#chatSub.typing{font-style:italic}
.msg.typing-bubble{display:inline-flex;flex-direction:column;align-self:flex-start;width:auto;min-width:0;padding:9px 14px}
.typing-bubble .who{margin-bottom:2px}
.typing-bubble .tbrec{display:inline-block;width:16px;height:16px;color:#1a9e55;vertical-align:middle;margin-right:4px}
.typing-bubble .tbdots{display:inline-flex;gap:4px;align-items:center;height:12px}
.typing-bubble .tbdots i{width:7px;height:7px;border-radius:50%;background:#8696a0;animation:tbdot 1.2s infinite ease-in-out}
.typing-bubble .tbdots i:nth-child(2){animation-delay:.15s}.typing-bubble .tbdots i:nth-child(3){animation-delay:.3s}
@keyframes tbdot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
.typing-bubble .tbrow{display:flex;align-items:center;height:18px}
#modal .emorow .emoplus{display:flex;align-items:center;justify-content:center;color:#54656f}
#modal .emorow .emoplus svg{width:26px;height:26px;background:#eef2f5;border-radius:50%;padding:4px;box-sizing:content-box}
#modalBox.rsheet h3{margin:0 0 8px}
.rsrow{display:flex;align-items:center;gap:12px;padding:8px 2px;border-bottom:1px solid #eef1f3}
.rsrow.me{cursor:pointer}
.rsrow .rsava{flex:0 0 40px;width:40px;height:40px}
.rsrow .rsname{flex:1;min-width:0;font-weight:500;overflow:hidden;text-overflow:ellipsis}
.rsrow .rshint{font-size:13px;font-weight:400;color:#667781}
.rsrow .rsemo{font-size:24px}
#emoBack{position:fixed;inset:0;background:rgba(0,0,0,.3);z-index:2500;opacity:0;transition:opacity .2s}
#emoBack.show{opacity:1}
#emoPick{position:fixed;left:0;right:0;bottom:0;height:min(70vh,520px);max-width:560px;margin:0 auto;background:#fff;border-radius:16px 16px 0 0;z-index:2501;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .2s ease-out;padding-bottom:env(safe-area-inset-bottom,0px);box-shadow:0 -4px 20px rgba(0,0,0,.15)}
#emoPick.show{transform:none}
#emoPick .ephead{display:flex;gap:8px;align-items:center;padding:12px 12px 6px}
#emoPick .epsearch{flex:1;min-width:0;margin:0;height:38px;border-radius:19px;border:1px solid #dde3e8;background:#f3f6f8;padding:0 14px;font-size:16px;color:inherit}
#emoPick .epclose{width:36px;height:36px;margin:0;padding:0;border:0;border-radius:50%;background:#eef2f5;color:#54656f;font-size:16px}
#emoPick .eptabs{display:flex;justify-content:space-between;padding:2px 8px 4px;border-bottom:1px solid #eef1f3}
#emoPick .eptab{flex:1;min-width:0;width:auto;margin:0;padding:6px 0;border:0;background:none;font-size:20px;line-height:1;border-radius:8px}
#emoPick .epbody{position:relative;flex:1;overflow-y:auto;padding:0 8px 12px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
#emoPick .epsec{position:sticky;top:0;background:inherit;background:#fff;font-size:13px;font-weight:600;color:#667781;padding:10px 4px 4px;z-index:1}
#emoPick .epgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr))}
#emoPick .epe{width:auto;height:44px;margin:0;padding:0;border:0;background:none;font-size:28px;line-height:44px;border-radius:10px;cursor:pointer}
#emoPick .epe:active,#emoPick .epe:hover{background:#eef2f5}
#emoPick .epnone,#emoPick .epload{padding:30px;text-align:center;color:#667781}
@media (max-width:360px){#emoPick .eptab{font-size:17px}#emoPick .epgrid{grid-template-columns:repeat(auto-fill,minmax(40px,1fr))}#emoPick .epe{height:40px;line-height:40px;font-size:25px}}



/* v60 */
.addteacher{display:block;width:100%;margin:0 0 10px;padding:12px;border:1.5px dashed #9cc6e0;border-radius:10px;background:#f4f8fb;color:#2878a8;font-weight:600;font-size:15px;cursor:pointer}
.addteacher.open{border-style:solid;background:#fff;color:#5b6f7d}

/* v60 shared files (Windows-Explorer style, North Star blue) */
#flView{flex:1;display:flex;flex-direction:column;min-height:0;background:#fff}
#flView.hidden{display:none}
.fx{flex:1;display:flex;flex-direction:column;min-height:0;position:relative;font-size:14px;color:#16303f}
.fxtop{display:flex;align-items:center;gap:4px;padding:calc(8px + var(--sat)) 10px 8px;background:#2878a8;color:#fff}
.fxnav{width:34px;height:34px;flex:0 0 34px;margin:0;padding:6px;border:0;border-radius:6px;background:transparent;color:#fff;cursor:pointer}
.fxnav svg{width:20px;height:20px;display:block}
.fxnav:hover:not(:disabled){background:rgba(255,255,255,.16)}
.fxnav:disabled{opacity:.4;cursor:default}
.fxaddr{flex:1;min-width:0;display:flex;align-items:center;gap:2px;height:34px;padding:0 6px;margin:0 6px;background:rgba(255,255,255,.16);border-radius:6px;overflow:hidden;white-space:nowrap}
.fxcrumb{margin:0;padding:3px 6px;width:auto;border:0;border-radius:4px;background:transparent;color:#fff;font-size:14px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
.fxcrumb:hover{background:rgba(255,255,255,.18)}
.fxcrumb.cur{cursor:default;background:none}
.fxsep{opacity:.7;padding:0 1px}
.fxsearch{width:240px;flex:0 1 240px;min-width:120px;height:34px;margin:0;padding:0 12px;border:0;border-radius:6px;background:#fff;color:#16303f;font-size:14px}
.fxtools{display:flex;align-items:center;gap:2px;padding:6px 10px;border-bottom:1px solid #dde6ec;background:#f7fafc;min-height:46px;box-sizing:border-box}
.fxtool{display:inline-flex;align-items:center;gap:6px;width:auto;margin:0;padding:6px 10px;border:0;border-radius:6px;background:transparent;color:#16303f;font-size:14px;cursor:pointer;white-space:nowrap}
.fxtool svg{width:18px;height:18px;display:block;color:#2878a8}
.fxtool:hover{background:#e3eef6}
.fxtool.danger svg{color:#c0392b}
.fxcaret{font-size:11px;color:#5b6f7d}
.fxgrow{flex:1}
.fxview{width:34px;height:34px;margin:0;padding:7px;border:0;border-radius:6px;background:transparent;color:#5b6f7d;cursor:pointer}
.fxview svg{width:20px;height:20px;display:block}
.fxview.on{background:#d3eaf7;color:#1f6f9f}
.fxmain{flex:1;display:flex;min-height:0}
.fxtree{width:230px;flex:0 0 230px;overflow:auto;border-right:1px solid #dde6ec;padding:6px 4px;background:#fbfdfe}
.fxtn{display:flex;align-items:center;gap:5px;width:100%;margin:0;padding:5px 6px;border:0;border-radius:6px;background:transparent;color:#16303f;font-size:14px;text-align:left;cursor:pointer;white-space:nowrap;box-sizing:border-box}
.fxtn:hover{background:#eef5fa}
.fxtn.cur{background:#d3eaf7;color:#0f3347;font-weight:600}
.fxtn.drop,.fxrow.drop,.fxtile.drop{outline:2px solid #2878a8;outline-offset:-2px;background:#e1f2fb}
.fxtn .fxtl{overflow:hidden;text-overflow:ellipsis}
.fxtog{width:14px;flex:0 0 14px;text-align:center;color:#5b6f7d;font-size:11px}
.fxtog.none{visibility:hidden}
.fxtn.special svg{width:18px;height:18px;display:block;color:#5b6f7d}
.fxtreesep{height:1px;background:#dde6ec;margin:8px 4px}
.fxi{display:inline-flex;flex:0 0 auto}
.fxlist{flex:1;overflow:auto;outline:none;position:relative;padding-bottom:70px}
.fxlist.drop{background:#f0f8fd;box-shadow:inset 0 0 0 2px #2878a8}
.fxhead,.fxrow{display:grid;grid-template-columns:minmax(220px,1fr) 150px 140px 90px;align-items:center;column-gap:12px;padding:0 14px}
.fxhead.withloc,.fxrow.withloc{grid-template-columns:minmax(200px,1fr) minmax(140px,.7fr) 150px 120px 80px}
.fxhead.trash,.fxrow.trash{grid-template-columns:minmax(200px,1fr) minmax(140px,.7fr) 130px 140px 170px}
.fxhead.log,.fxrow.log{grid-template-columns:140px 140px 130px minmax(200px,1fr)}
.fxhead{position:sticky;top:0;z-index:1;background:#fff;border-bottom:1px solid #dde6ec;height:34px}
.fxh{width:auto;margin:0;padding:0;border:0;background:none;text-align:left;color:#5b6f7d;font-size:13px;cursor:pointer;white-space:nowrap}
.fxh.on{color:#1f6f9f;font-weight:600}
.fxh.fx-size,.fxc.fx-size{text-align:right}
.fxrow{height:34px;cursor:default;user-select:none;-webkit-user-select:none;border-radius:4px}
.fxrow:hover{background:#f0f6fa}
.fxrow.sel,.fxtile.sel{background:#d3eaf7}
.fxc{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#5b6f7d;font-size:13px}
.fxc.fx-name{display:flex;align-items:center;gap:8px;color:#16303f;font-size:14px}
.fxc .fxn{overflow:hidden;text-overflow:ellipsis}
.fxlock{flex:0 0 auto;font-size:12px;color:#8a4a0a;background:#fff1e3;border-radius:10px;padding:1px 8px;margin-left:4px}
.fxacts{display:flex;gap:6px;justify-content:flex-end}
.fxacts button{width:auto;margin:0}
.fxlist.icons{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:6px;padding:12px;align-content:start}
.fxtile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px;border-radius:8px;cursor:default;user-select:none;-webkit-user-select:none;text-align:center}
.fxtile:hover{background:#f0f6fa}
.fxtile .fxn{font-size:13px;line-height:1.25;max-height:2.5em;overflow:hidden;word-break:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.fxthumb{width:96px;height:72px;object-fit:cover;border-radius:6px;background:#eef3f7}
.fxlist.icons .fxempty{grid-column:1/-1}
.fxempty,.fxhint{padding:28px 16px;color:#5b6f7d;text-align:center}
.fxhint{padding:10px 16px;text-align:left;font-size:13px}
.fxstatus{padding:4px 14px;border-top:1px solid #dde6ec;background:#f7fafc;color:#5b6f7d;font-size:12px;min-height:24px;box-sizing:border-box}
.fxmenu{position:fixed;z-index:4000;min-width:200px;padding:5px;background:#fff;border-radius:8px;box-shadow:0 8px 28px rgba(0,0,0,.2);border:1px solid #dde6ec}
.fxmenu button{display:block;width:100%;margin:0;padding:8px 12px;border:0;border-radius:5px;background:none;color:#16303f;font-size:14px;text-align:left;cursor:pointer}
.fxmenu button:hover{background:#e3eef6}
.fxmenu button.b{font-weight:600}
.fxmenu button.danger{color:#c0392b}
.fxmsep{height:1px;background:#e3e9ee;margin:4px 6px}
.fxplayer{position:absolute;left:250px;right:20px;bottom:34px;display:flex;align-items:center;gap:10px;padding:8px 12px;background:#fff;border:1px solid #dde6ec;border-radius:12px;box-shadow:0 6px 24px rgba(0,0,0,.14);z-index:3}
.fxplayer.hidden{display:none}
.fxplayer audio{flex:1;min-width:160px;height:36px}
.fxpn{max-width:30%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.fxspeed{width:auto;margin:0;padding:4px 6px;border-radius:6px}
.fxups{position:absolute;right:20px;bottom:34px;width:340px;padding:12px;background:#fff;border:1px solid #dde6ec;border-radius:12px;box-shadow:0 6px 24px rgba(0,0,0,.16);z-index:4}
.fxups.hidden{display:none}
.fxuph{font-weight:600;margin-bottom:8px}
.fxupbar{height:6px;border-radius:3px;background:#e3eef6;overflow:hidden}
.fxupbar i{display:block;height:100%;width:0;background:#2878a8;transition:width .2s}
.fxupl{margin-top:8px;font-size:13px;color:#c0392b;display:flex;flex-direction:column;gap:4px}
.fxupl button{align-self:flex-end;width:auto;margin:4px 0 0}
.fxviewer{position:fixed;inset:0;z-index:5000;background:rgba(10,12,14,.96);display:flex;flex-direction:column;outline:none}
.fxvbar{display:flex;align-items:center;gap:6px;padding:10px 14px;color:#fff}
.fxvt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.fxvb{width:40px;height:40px;margin:0;padding:8px;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;cursor:pointer}
.fxvb svg{width:22px;height:22px;display:block}
.fxvb.small{width:32px;height:32px;padding:6px;background:#eef3f7;color:#5b6f7d}
.fxvb.prev,.fxvb.next{position:absolute;top:50%;width:52px;height:52px;margin-top:-26px}
.fxvb.prev{left:16px}.fxvb.next{right:16px}
.fxstage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:0 80px 20px}
.fxstage img{max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in}
.fxstage img.zoom{max-width:none;max-height:none;cursor:zoom-out}
.fxstage video{max-width:100%;max-height:100%}
.fxtoast{position:fixed;left:50%;bottom:30px;transform:translate(-50%,20px);z-index:6000;max-width:560px;padding:10px 16px;border-radius:10px;background:#16303f;color:#fff;font-size:14px;opacity:0;pointer-events:none;transition:all .2s}
.fxtoast.show{opacity:1;transform:translate(-50%,0)}
#modalBox.fxpick{max-width:520px}
.fxpicktree{max-height:50vh;overflow:auto;border:1px solid #dde6ec;border-radius:8px;padding:4px;margin:8px 0}
.fxwhere{font-size:13px;color:#5b6f7d;margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fxall{display:flex;align-items:center;gap:6px;margin:6px 0}
@media (max-width:1100px){.fxhead,.fxrow{grid-template-columns:minmax(180px,1fr) 140px 90px}.fx-type{display:none}.fxhead.withloc,.fxrow.withloc{grid-template-columns:minmax(160px,1fr) minmax(110px,.6fr) 140px 80px}.fxtree{width:200px;flex-basis:200px}.fxplayer{left:220px}.fxtool .fxtl{display:none}.fxtool .fxcaret{display:none}.fxsearch{flex-basis:170px;width:170px}}



/* v63 */
.fxtn.dragging{opacity:.45}
.fxtn.before{box-shadow:inset 0 3px 0 #2878a8}
.fxtn.after{box-shadow:inset 0 -3px 0 #2878a8}
.fxrow{position:relative}
.fxprog{position:absolute;top:4px;bottom:4px;right:10px;left:calc(min(55%, 100% - 520px));display:flex;align-items:center;gap:10px;padding:0 6px 0 10px;background:#fff;border-radius:6px}
.fxrow.sel .fxprog,.fxrow:hover .fxprog{background:transparent}
.fxrow.busy .fx-loc,.fxrow.busy .fx-mtime,.fxrow.busy .fx-type,.fxrow.busy .fx-size{visibility:hidden}
.fxpb{flex:1;min-width:80px;height:8px;border-radius:4px;background:#e3eef6;overflow:hidden}
.fxpb i{display:block;height:100%;width:0;background:#2878a8;border-radius:4px;transition:width .15s}
.fxpt{flex:0 0 auto;font-size:13px;color:#1f6f9f;white-space:nowrap;font-variant-numeric:tabular-nums}
.fxpx{width:26px;height:26px;flex:0 0 26px;margin:0;padding:4px;border:0;border-radius:50%;background:transparent;color:#5b6f7d;cursor:pointer}
.fxpx svg{width:16px;height:16px;display:block}
.fxpx:hover{background:#e3eef6}
.fxtile{position:relative}
.fxtile .fxprog{left:6px;right:6px;top:auto;bottom:4px;flex-direction:column;gap:2px;padding:4px;background:rgba(255,255,255,.95)}
.fxtile .fxpb{width:100%;min-width:0;flex:0 0 6px}
.fxtile .fxpt{font-size:11px;white-space:normal;text-align:center}
.fxtile .fxpx{position:absolute;top:-24px;right:0}

/* v64: "Confirm the month" and the registro page on computer screens */
#rgBody>*{max-width:720px;margin-left:auto;margin-right:auto}
#rgBody>.hradd{display:block}
#modalBox.rgmonth{display:flex;flex-direction:column;max-height:min(86vh,760px);overflow:hidden;width:min(560px,94vw);box-sizing:border-box}
#modalBox.rgmonth .rgmlist{flex:1;min-height:0;overflow-y:auto;margin:0 -4px;padding:0 4px;border-top:1px solid #eef3f7;border-bottom:1px solid #eef3f7}
#modalBox.rgmonth .rgmrow{display:grid;grid-template-columns:22px 74px minmax(0,1fr) auto;column-gap:12px}
#modalBox.rgmonth .rgmrow .hrday{justify-self:start}
#modalBox.rgmonth .rgmrow .rgmt{min-width:0}
#modalBox.rgmonth .rgmfoot{flex:none;padding-top:8px}
#modalBox.rgmonth .rgmbtns{display:flex;gap:8px;flex-wrap:wrap}
#modalBox.rgmonth .rgmbtns button{flex:1 1 auto;margin:0}

/* v64 teacher settings + invoices */
#modalBox.tset{max-width:560px}
.tssec{margin:16px 0 4px;font-size:13px;font-weight:600;color:#5b6f7d;text-transform:none}
.tstype{display:flex;margin:4px 0}
.tstype button{flex:1}
.tsrow{display:flex;align-items:center;gap:12px;padding:9px 2px;border-bottom:1px solid #eef3f7;cursor:pointer}
.tsrow.dis{cursor:default;opacity:.6}
.tstx{flex:1;min-width:0;display:flex;flex-direction:column}
.tstx small{color:#5b6f7d;font-size:12px}
.tssw{position:relative;flex:0 0 44px;width:44px;height:26px}
.tssw input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.tssw i{position:absolute;inset:0;border-radius:13px;background:#cfd8de;transition:background .15s;pointer-events:none}
.tssw i::after{content:'';position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .15s}
.tssw input:checked+i{background:#2878a8}
.tssw input:checked+i::after{transform:translateX(18px)}
.tsrow.dis .tssw input:checked+i{background:#8fb8d2}
#invView{flex:1;display:flex;flex-direction:column;min-height:0;background:#e9f2f8}
#invView.hidden{display:none}
#invBody{flex:1;overflow-y:auto;padding:12px 12px 104px}
#invBody>*{max-width:620px;margin-left:auto;margin-right:auto}
.invdrop{display:flex;flex-direction:column;align-items:center;gap:8px;padding:26px 18px;background:#fff;border:2px dashed #9cc6e0;border-radius:16px;text-align:center}
.invdrop.over{background:#e1f2fb;border-color:#2878a8}
.invconfirm{border-style:solid;align-items:stretch;text-align:left}
.invicon{width:44px;height:44px;color:#2878a8}
.invicon svg{width:44px;height:44px}
.invt{font-weight:600;font-size:16px;word-break:break-word}
.invbtn{width:auto;min-width:180px;margin:6px auto 0;padding:12px 18px;border-radius:12px;border:0;background:#2878a8;color:#fff;font-weight:600;font-size:15px;cursor:pointer}
.invbtn:disabled{opacity:.6}
.invacts .sec{border:0;border-radius:12px;background:#e3eef6;color:#16303f;font-size:15px;padding:12px}
.invconfirm .invbtn{margin:0}
.invbar{width:100%;max-width:320px;height:8px;border-radius:4px;background:#e3eef6;overflow:hidden}
.invbar i{display:block;height:100%;width:0;background:#2878a8;transition:width .15s}
.invlab{display:flex;flex-direction:column;gap:6px;font-size:14px;color:#16303f}
.invsel{width:100%;margin:0;padding:10px;font-size:16px;border-radius:10px}
.invacts{display:flex;gap:8px}
.invacts button{flex:1;margin:0}
.invsec{margin-top:20px;font-weight:600;color:#5b6f7d;font-size:13px}
.invlist{background:#fff;border-radius:12px;margin-top:6px;overflow:hidden}
.invrow{display:flex;gap:12px;padding:11px 14px;border-bottom:1px solid #eef3f7}
.invrow:last-child{border-bottom:0}
.invm{flex:0 0 120px;font-weight:600}
.invn{flex:1;min-width:0;word-break:break-word;display:flex;flex-direction:column}
.invn small{color:#5b6f7d}
.invnone{margin:6px 2px}
.note.ok{background:#e6f6ec;color:#1b6b3a}


.invfilter{max-width:320px;margin-bottom:4px}
.invmissing{margin:6px 0 4px;padding:8px 12px;border-radius:10px;background:#fff1e3;color:#8a4a0a;font-size:13px}
.invadm{align-items:center}
.invadm .invn{cursor:pointer}
.invwho{font-weight:600}
.invadm.gone{opacity:.55}
.invbtns{display:flex;gap:4px;flex:none}
.invsm{width:38px;height:38px;margin:0;padding:8px;border:0;border-radius:50%;background:#eef4f8;color:#1f6f9f;cursor:pointer}
.invsm svg{width:20px;height:20px;display:block}
.invsm.danger{color:#c0392b}

.invfilterwrap .invfilter{max-width:320px}
#modalBox .actions button.danger{background:#c0392b;color:#fff}

/* v66 own invoices: swipe / hold / right-click to delete */
.invrow.mine{position:relative;padding:0;overflow:hidden;display:block}
.invslide{position:relative;z-index:1;display:flex;gap:12px;align-items:center;padding:11px 14px;background:#fff;transition:transform .2s ease;touch-action:pan-y}
.invswdel{position:absolute;right:0;top:0;bottom:0;width:88px;margin:0;border:0;border-radius:0;background:#e0473a;color:#fff;font-weight:600;font-size:15px}
.invbin{flex:none;width:34px;height:34px;margin:0;padding:7px;border:0;border-radius:50%;background:transparent;color:#c0392b;cursor:pointer;opacity:0;transition:opacity .15s}
.invbin svg{width:20px;height:20px;display:block}
@media (hover:hover) and (pointer:fine){.invrow.mine:hover .invbin{opacity:1}.invswdel{display:none}}
@media (hover:none),(pointer:coarse){.invbin{display:none}}
.invrow.flash{animation:invflash 2.4s ease}
@keyframes invflash{0%,30%{background:#fff3c4}100%{background:#fff}}

/* v67 paid labels, salaries, notification hours */
.paidtag{display:inline-flex;align-items:center;flex:none;width:auto;margin:0;padding:3px 9px;border:0;border-radius:10px;background:#e3f6ea;color:#1b6b3a;font-size:12px;font-weight:600;white-space:nowrap}
button.paidtag{cursor:pointer}
.invpaid{width:auto;margin:0 4px 0 0;padding:7px 14px;border:1.5px solid #1b8a4c;border-radius:18px;background:#fff;color:#1b8a4c;font-weight:600;font-size:14px;cursor:pointer}
.invunpaid{display:inline-flex;align-items:center;gap:6px;margin:8px 0 0;font-size:14px}
.invundo{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:5000;display:flex;align-items:center;gap:14px;padding:10px 16px;border-radius:12px;background:#16303f;color:#fff;font-size:14px;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.invundo button{width:auto;margin:0;padding:4px 10px;border:0;border-radius:8px;background:transparent;color:#8fd0ff;font-weight:700}
.pssal .salhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 6px}
.pssal .salhead small{display:block;color:#5b6f7d}
.salall{width:auto;margin:0;padding:8px 14px;border:0;border-radius:18px;background:#1b8a4c;color:#fff;font-weight:600;font-size:14px}
.salrow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 4px;border-bottom:1px solid #eef3f7}
.salone{width:auto;margin:0;padding:5px 12px;border:1.5px solid #1b8a4c;border-radius:16px;background:transparent;color:#1b8a4c;font-weight:600;font-size:13px}
.quietpill{display:inline-flex;align-items:center;gap:4px;width:auto;margin:0 0 0 8px;padding:3px 9px;border:0;border-radius:12px;background:rgba(255,255,255,.18);color:#fff;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.quietpill svg{width:13px;height:13px}
#modalBox.nset{max-width:480px}
.nset .nopt,#modalBox .nopt{display:flex;align-items:flex-start;gap:12px;width:100%;margin:0 0 8px;padding:12px;border:1.5px solid #dde6ec;border-radius:12px;background:#fff;color:#16303f;text-align:left;cursor:pointer}
#modalBox .nopt.on{border-color:#2878a8;background:#f0f7fc}
.nopt strong{display:block;font-size:15px}
.nopt small{display:block;color:#5b6f7d;font-size:13px;margin-top:2px}
.nradio{flex:none;width:18px;height:18px;margin-top:2px;border:2px solid #9fb3c0;border-radius:50%;box-sizing:border-box}
.nopt.on .nradio{border:5px solid #2878a8}
.nhours{display:flex;gap:12px;margin:8px 0}
.nhours label{flex:1;display:flex;flex-direction:column;gap:4px;font-size:13px;color:#5b6f7d}
.nhours input{margin:0;font-size:17px;padding:8px}
.nlab{font-size:13px;color:#5b6f7d;margin:6px 0 4px}
.ndays{display:flex;gap:6px;margin-bottom:6px}
#modalBox .nday{flex:1;min-width:0;width:auto;height:40px;margin:0;padding:0;border:1.5px solid #cfd8de;border-radius:50%;background:#fff;color:#5b6f7d;font-weight:700;aspect-ratio:1;max-width:44px}
#modalBox .nday.on{background:#2878a8;border-color:#2878a8;color:#fff}


/* v68: contracted hours */
#hrBody>.hradd{display:block}
.hrofill.u{background:repeating-linear-gradient(135deg,#f6d9a8 0 4px,#fbeeda 4px 8px);box-shadow:inset 0 0 0 1px #e6b25e;border-radius:0 5px 5px 0}
.hrk.u{background:repeating-linear-gradient(135deg,#f6d9a8 0 3px,#fbeeda 3px 6px);box-shadow:inset 0 0 0 1px #e6b25e}
.hrunder{color:#a5630a}
.hrorow .hrunder,.hrorow.under .hrtot{color:#b86e08;font-weight:600}
.hrkey{flex-wrap:wrap}
.hrsum2 .hrunder{color:#ffd27a}
.hrsum2 .hrunder b{color:#ffd27a}
.hrsmall{font-size:11.5px;opacity:.8}
.hrotrack.onblue{background:rgba(255,255,255,.16);margin:10px 0 2px}
.hrotrack.onblue .hrofill.g{background:rgba(255,255,255,.55)}
.hrotrack.onblue .hrofill.x{background:#fff}
.hrotrack.onblue .hrofill.u{background:rgba(255,210,122,.35);box-shadow:inset 0 0 0 1px #ffd27a}
#modalBox .tsnum{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:10px 2px;margin:0;border-bottom:1px solid #eef3f7}
#modalBox .tsnum input{flex:none;width:90px;margin:0;padding:8px 10px;border:1px solid #cfe3f0;border-radius:10px;font:inherit;text-align:right}
html.dark .hrorow .hrunder,html.dark .hrorow.under .hrtot,html.dark .hrunder{color:#f0b860!important}
html.dark .hrsum2 .hrunder,html.dark .hrsum2 .hrunder b{color:#ffd27a!important}
html.dark #modalBox .tsnum{border-color:#2a2a2e!important}
html.dark #modalBox .tsnum input{background:#1f1f22!important;color:#ececef!important;border-color:#3a3a40!important}

.fxtext{max-height:60vh;overflow:auto;white-space:pre-wrap;word-break:break-word;font:13px/1.5 ui-monospace,Menlo,Consolas,monospace;background:#f6f8fa;border:1px solid #e3e8ee;border-radius:10px;padding:12px;margin:0 0 12px}
html.dark .fxtext{background:#1f1f22!important;border-color:#3a3a40!important;color:#ececef!important}

/* v70: calls */
#chatHead #callA,#chatHead #callV,#chatHead #muteBtn{flex:none;display:flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0}
#chatHead #callA.hidden,#chatHead #callV.hidden,#chatHead #muteBtn.hidden{display:none}
#chatHead #callA svg,#chatHead #callV svg{width:22px;height:22px;display:block}
.cs{position:fixed;inset:0;z-index:7000;background:#0b141b radial-gradient(circle at 50% 30%,#1d3a4f,#0b141b 70%);color:#fff;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none}
.cs.hidden{display:none}
.cs-top{display:flex;align-items:center;gap:10px;padding:calc(10px + var(--sat)) 14px 8px;flex:none;z-index:2}
.cs-min{width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;padding:0;display:grid;place-items:center;flex:none}
.cs-min svg{width:24px;height:24px}
.cs-head{min-width:0;flex:1}
.cs-title{font-size:19px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-sub{font-size:14px;opacity:.8;font-variant-numeric:tabular-nums;margin-top:2px}
.cs-grid{flex:1;min-height:0;display:grid;gap:8px;padding:6px 10px;grid-template-columns:1fr;grid-auto-rows:1fr}
.cs-grid[data-n="2"]{grid-template-columns:1fr}
.cs-grid[data-n="3"]{grid-template-columns:1fr 1fr}
@media (min-width:700px){.cs-grid[data-n="2"]{grid-template-columns:1fr 1fr}}
.cs-tile{position:relative;border-radius:18px;overflow:hidden;background:rgba(255,255,255,.05);display:grid;place-items:center;min-height:0}
.cs-tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.cs-tile.vid video{opacity:1}
.cs-tile.screen video{object-fit:contain;background:#000}
.cs-tile.vid .cs-ava{display:none}
.cs-ava{width:min(34vw,140px);height:min(34vw,140px);border-radius:50%;background:#3398cc;display:grid;place-items:center;font-size:min(14vw,56px);font-weight:600;overflow:hidden;color:#fff}
.cs-ava img{width:100%;height:100%;object-fit:cover}
.cs-name{position:absolute;left:10px;bottom:10px;display:flex;align-items:center;gap:4px;background:rgba(0,0,0,.45);padding:4px 10px;border-radius:12px;font-size:14px;max-width:calc(100% - 20px)}
.cs-nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-mic svg{width:16px;height:16px;color:#ff8a80;display:block}
.cs-mic:empty{display:none}
.cs-flag{position:absolute;top:10px;left:50%;transform:translateX(-50%);background:rgba(0,0,0,.45);padding:4px 12px;border-radius:12px;font-size:13px;white-space:nowrap}
.cs-flag:empty{display:none}
.cs-me{position:absolute;right:14px;bottom:calc(120px + env(safe-area-inset-bottom));width:min(28vw,180px);aspect-ratio:3/4;object-fit:cover;border-radius:14px;box-shadow:0 4px 18px rgba(0,0,0,.5);background:#000;z-index:3}
@media (min-width:700px){.cs-me{aspect-ratio:4/3;width:220px}}
.cs-me.mirror{transform:scaleX(-1)}
.cs-me.hidden{display:none}
.cs-note{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(122px + env(safe-area-inset-bottom));background:rgba(0,0,0,.6);padding:8px 14px;border-radius:14px;font-size:14px;max-width:90%;text-align:center;z-index:4}
.cs-note.hidden{display:none}
.cs-ctl{flex:none;display:flex;justify-content:center;gap:14px;padding:14px 10px calc(20px + env(safe-area-inset-bottom));z-index:2;flex-wrap:wrap}
.cs-b{width:64px;display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:none;color:#fff;padding:0;font-size:12px;cursor:pointer}
.cs-b svg{width:58px;height:58px;padding:16px;border-radius:50%;background:rgba(255,255,255,.16);box-sizing:border-box}
.cs-b.on svg{background:#fff;color:#0b141b}
.cs-b.end svg{background:#e53935;color:#fff}
.cs-b.ok svg{background:#2eaa5c;color:#fff}
.cs-b span{white-space:nowrap;opacity:.9}
.cs.incoming{justify-content:space-between}
.cs-in{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:calc(40px + var(--sat)) 20px 20px;text-align:center}
.cs-in .cs-ava{animation:cspulse 1.6s infinite}
@keyframes cspulse{0%{box-shadow:0 0 0 0 rgba(51,152,204,.6)}70%{box-shadow:0 0 0 26px rgba(51,152,204,0)}100%{box-shadow:0 0 0 0 rgba(51,152,204,0)}}
.cs.incoming .cs-ctl{gap:34px;padding-bottom:calc(46px + env(safe-area-inset-bottom))}
.cs.incoming .cs-b{width:76px}
.cs.incoming .cs-b svg{width:70px;height:70px;padding:19px}
#callBar{position:fixed;left:0;right:0;top:0;z-index:6500;border:0;background:#2eaa5c;color:#fff;font-weight:600;font-size:14px;line-height:16px;height:calc(34px + var(--satr));padding:calc(9px + var(--satr)) 12px 9px;text-align:center;cursor:pointer;font-variant-numeric:tabular-nums}
#callBar.hidden{display:none}
body.callbar{--sat:0px}
body.callbar #app{box-sizing:border-box;padding-top:calc(34px + var(--satr))}
@media (min-width:900px) and (min-height:501px){body.callbar #tabbar{top:calc(34px + var(--satr))}}
.callrow{display:flex;align-items:center;gap:10px;min-width:180px}
.callico{width:36px;height:36px;border-radius:50%;background:rgba(40,120,168,.14);color:#2878a8;display:grid;place-items:center;flex:none}
.callico svg{width:20px;height:20px}
.callrow.missed .callico{background:rgba(229,57,53,.12);color:#e53935}
.calltx{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.calltx span{font-size:13px;opacity:.7}
.callagain{border:0;background:none;color:#2878a8;padding:6px;border-radius:50%;flex:none}
.callagain svg{width:22px;height:22px}
html.dark .callico{background:rgba(107,182,224,.16)!important;color:#6bb6e0!important}
html.dark .callrow.missed .callico{background:rgba(255,120,110,.14)!important;color:#ff8a80!important}
html.dark .callagain{color:#6bb6e0!important}

/* v71: parent meetings (staff side) */
#meetWait{position:fixed;left:8px;right:8px;top:calc(var(--sat) + 8px);z-index:6800;display:flex;flex-direction:column;gap:8px;max-width:520px;margin:0 auto;pointer-events:none}
#meetWait.hidden{display:none}
.mwcard{pointer-events:auto;display:flex;align-items:center;gap:10px;background:#fff;border-radius:16px;box-shadow:0 8px 28px rgba(0,0,0,.22);padding:10px 10px 10px 12px;animation:shup .25s}
.mwava{width:40px;height:40px;border-radius:50%;background:#8e44ad;color:#fff;display:grid;place-items:center;flex:none}
.mwava svg{width:22px;height:22px}
.mwtx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mwtx strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.mwtx span{font-size:12.5px;color:#5b6b76}
.mwlate,.mwin{flex:none;border:0;border-radius:12px;padding:9px 12px;font-weight:600;font-size:14px}
.mwlate{background:#eef3f7;color:#2878a8}
.mwin{background:#2eaa5c;color:#fff}
.meetmsg textarea{width:100%;box-sizing:border-box;font:14px/1.45 inherit;border:1px solid #d6e3ec;border-radius:12px;padding:10px;resize:vertical;margin:6px 0 4px;background:#f8fbfd}
.meetlink{font:14px/1.4 ui-monospace,Menlo,Consolas,monospace;word-break:break-all;background:#f3f7fa;border:1px solid #d6e3ec;border-radius:12px;padding:12px;margin:8px 0}
a.btnlink{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:10px;padding:10px 16px;font-weight:600}
a.btnlink.sec{background:#eef3f7;color:#2878a8}
.meetform .mf{display:flex;flex-direction:column;gap:4px;margin:10px 0 0;font-size:13px;color:#5b6b76}
.meetform .mf input,.meetform .mf select,.meetform .mf textarea{font:15px inherit;color:#14232d;padding:9px 10px;border:1px solid #d6e3ec;border-radius:10px;background:#fff;width:100%;box-sizing:border-box}
.meetform .mfrow{display:grid;grid-template-columns:1.4fr 1fr .8fr;gap:8px}
.meetform .seg2{margin-top:2px}
.evbtn.go{background:#2eaa5c!important;color:#fff!important}
.calmeetf{display:block;margin:6px auto 0;max-width:520px;width:calc(100% - 28px);font:14px inherit;padding:8px 10px;border:1px solid #d6e3ec;border-radius:10px;background:#fff;color:#14232d}
html.dark .mwcard{background:#1f1f22!important;color:#ececef!important}
html.dark .mwtx span{color:#9aa4ab!important}
html.dark .mwlate{background:#2a2a2e!important;color:#6bb6e0!important}
html.dark .meetmsg textarea,html.dark .meetlink,html.dark .meetform .mf input,html.dark .meetform .mf select,html.dark .meetform .mf textarea,html.dark .calmeetf{background:#1f1f22!important;color:#ececef!important;border-color:#3a3a40!important}
html.dark a.btnlink.sec{background:#2a2a2e!important;color:#6bb6e0!important}

#calMeet .cmi{display:none}
#calMeet .cmi svg{width:22px;height:22px;display:block}
@media (max-width:560px){#calMeet{padding:6px 8px}#calMeet .cmi{display:block}#calMeet .cmt{display:none}#calView .calbtns button{white-space:nowrap}}
@media (max-width:430px){#calView .calhead .sub{display:none}#calView .calhead strong{font-size:20px}#calView .calbtns{gap:5px}#calAdd{padding-left:10px;padding-right:10px}}

/* v72 */
@media (max-width:430px){#calAdd .cal-lbl{display:none}#calAdd{padding:5px 11px;font-size:17px;line-height:1}}
.visseg{display:flex!important;width:100%}
.visseg button{flex:1 1 auto;white-space:nowrap}

.evonly{font-size:13px;color:#5d6e7a;margin-top:4px}
.audpick{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px;max-height:180px;overflow:auto;padding:6px 2px;margin-bottom:6px}
.audpick label.chk{font-size:14px;margin:0}
.visseg{margin-bottom:6px}

#modalBox .seg2 button,#modalBox .tstype button{background:none;color:#2878a8;margin:0;border-radius:0}
#modalBox .seg2 button.on,#modalBox .tstype button.on{background:#2878a8;color:#fff}
.temppw{font:600 26px/1.3 ui-monospace,Menlo,Consolas,monospace;letter-spacing:1px;text-align:center;background:#f3f7fa;border:1px solid #d6e3ec;border-radius:14px;padding:16px 10px;margin:10px 0;word-break:break-all;user-select:all;-webkit-user-select:all}
html.dark #modalBox .seg2 button,html.dark #modalBox .tstype button{background:none!important;color:#6bb6e0!important}
html.dark #modalBox .seg2 button.on,html.dark #modalBox .tstype button.on{background:#2878a8!important;color:#fff!important}
html.dark .temppw{background:#1f1f22!important;border-color:#3a3a40!important;color:#ececef!important}


/* Meetings tab (admins): parent-meeting bookings */
#mtView{flex:1;display:flex;flex-direction:column;min-height:0;background:#e9f2f8;touch-action:pan-y}
#mtView.hidden{display:none}
#mtBody{flex:1;overflow-y:auto;padding:12px 12px 104px}
#mtBody>*{max-width:680px;margin-left:auto;margin-right:auto}
.bkmail{display:flex;gap:10px;align-items:center;justify-content:space-between;background:#fff;border-radius:14px;padding:12px 14px;margin-bottom:10px;font-size:14px}
.bkmail.off{background:#fff6e0}
.bkmail button{flex:none;border:0;border-radius:16px;padding:7px 12px;background:#eef3f7;color:#2878a8;font-weight:600}
.bkerr{color:#c0392b;margin-top:3px}
.bkempty{background:#fff;border-radius:14px;padding:16px;text-align:center}
.bkround{display:block;width:100%;text-align:left;background:#fff;border:0;border-radius:14px;padding:12px 14px;margin:0 auto 8px;color:inherit;font:inherit;cursor:pointer}
.bkrt{display:flex;align-items:center;gap:8px;justify-content:space-between}
.bkrt strong{font-size:16px}
.bkrs{font-size:13px;color:#5d6e7a;margin-top:3px}
.bktag{flex:none;font-size:12px;font-weight:600;border-radius:10px;padding:2px 9px;background:#eee;color:#666}
.bktag.on{background:#e6f6ec;color:#1b6b3a}
.bkback{display:block;border:0;background:none;color:#2878a8;font-weight:600;padding:4px 0 10px;font-size:14px;cursor:pointer}
.bkhead{background:#fff;border-radius:14px;padding:12px 14px;margin-bottom:10px}
.bkbtns{display:flex;flex-wrap:wrap;gap:6px}
.bkbtns button{border:0;border-radius:16px;padding:7px 12px;background:#2878a8;color:#fff;font-weight:600;font-size:13px}
.bkbtns button.sec{background:#eef3f7;color:#2878a8}
.bkbtns button.danger{background:#fdecea;color:#a8281d}
.bkadd{display:block;width:100%;border:2px dashed #9fc6de;background:none;color:#2878a8;border-radius:14px;padding:10px;font-weight:600;margin:0 auto 12px;cursor:pointer}
.bkdate{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#5d6e7a;margin:14px auto 6px}
.bkdate.past{opacity:.6}
.bkday{background:#fff;border-radius:14px;padding:10px 12px;margin-bottom:8px}
.bkdh{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;padding-bottom:6px;border-bottom:1px solid #edf1f4}
.bkmore{border:0;background:#eef3f7;color:#2878a8;border-radius:50%;width:32px;height:32px;font-size:18px;line-height:1;flex:none;cursor:pointer}
.bknone{padding:8px 0 2px}
.bkrow{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid #f1f4f6}
.bkrow:last-child{border-bottom:0}
.bkrow.cancelled{background:#fff;border-radius:10px;padding:8px 12px;margin-bottom:4px;opacity:.75}
.bkt{flex:none;width:46px;font-weight:700;font-variant-numeric:tabular-nums;color:#2878a8;padding-top:1px}
.bkrow.cancelled .bkt{width:auto;color:#5d6e7a;font-weight:600;font-size:13px}
.bkw{flex:1;min-width:0;font-size:15px}
.bkc{color:#5d6e7a;margin-top:2px;word-break:break-all}
.bkc a{color:#2878a8;text-decoration:none}
.bknote{color:#5d6e7a;font-style:italic;margin-top:2px}
.bklang{font-size:11px;font-weight:700;background:#eef3f7;color:#2878a8;border-radius:6px;padding:1px 5px;margin-left:6px}
.bkacts{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.bkacts button{border:0;border-radius:14px;padding:5px 10px;font-size:13px;background:#eef3f7;color:#2878a8;font-weight:600;cursor:pointer}
.bkacts button.wa{background:#e3f7ea;color:#128c4a}
.bkacts button.danger{background:#fdecea;color:#a8281d}
.bkpick{max-height:50vh;overflow:auto;margin:6px 0}
.bkpd{font-size:13px;font-weight:600;margin:8px 0 4px;color:#5d6e7a}
.bkslots{display:flex;flex-wrap:wrap;gap:5px}
#modalBox .bkslots button.bks{width:62px;padding:7px 0;margin:0;border-radius:8px;background:#fff;color:#14232d;border:1px solid #cfe0ea;font-size:14px}
#modalBox .bkslots button.bks.on{background:#2878a8;color:#fff;border-color:#2878a8}
#modalBox .bkslots button.bks.mine{background:#eef6fb;color:#1e6a96}
#modalBox .bkslots button.bks:disabled{opacity:.35}
#modalBox .actions.col{flex-direction:column;align-items:stretch}
html.dark #mtView{background:#0c0c0e!important}
html.dark .bkmail,html.dark .bkempty,html.dark .bkround,html.dark .bkhead,html.dark .bkday,html.dark .bkrow.cancelled{background:#1a1a1d!important;color:#ececef!important}
html.dark .bkmail.off{background:#2a2414!important}
html.dark .bkdh,html.dark .bkrow{border-color:#2c2c31!important}
html.dark .bkacts button,html.dark .bkmore,html.dark .bkbtns button.sec,html.dark .bklang,html.dark .bkmail button{background:#26262b!important;color:#8fc6ea!important}
html.dark .bkacts button.wa{background:#14301f!important;color:#5fd08f!important}
html.dark .bkacts button.danger,html.dark .bkbtns button.danger{background:#3a1d1b!important;color:#ff8a80!important}
html.dark .evonly{color:#a5a5ad}
html.dark #modalBox .bkslots button.bks{background:#1f1f22!important;color:#ececef!important;border-color:#3a3a40!important}
html.dark #modalBox .bkslots button.bks.on{background:#2878a8!important;color:#fff!important}
.bktl{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid #edf1f4}
.bktl:first-of-type{margin-top:8px}
.bktn{min-width:0}
.bktl .bkbtns{flex:none}
.bkmode{margin-right:5px}
html.dark .bktl{border-color:#2c2c31!important}
.bkform select{display:block;width:100%;font:inherit;font-size:15px;padding:10px 12px;border:1px solid #cfdbe4;border-radius:10px;background:#fff;color:inherit;margin:4px 0 10px}
.bkform label.muted{display:block}
html.dark .bkform select{background:#1f1f22!important;color:#ececef!important;border-color:#3a3a40!important}
/* ===== dark theme (generated) ===== */
html.dark{color-scheme:dark}
html.dark .paidtag{background:#173a25!important;color:#7fe0a5!important}
html.dark .invpaid,html.dark .salone{background:transparent!important;color:#5fd08f!important;border-color:#5fd08f!important}
html.dark #modalBox .nopt,html.dark #modalBox .nday{background:#1f1f22!important;color:#ececef!important;border-color:#36363b!important}
html.dark #modalBox .nopt.on{background:#14283a!important;border-color:#3398cc!important}
html.dark #modalBox .nday.on{background:#3398cc!important;border-color:#3398cc!important}
html.dark .salrow{border-color:#2e2e33!important}
html.dark .invslide{background:#1f1f22!important}
html.dark .invmissing{background:#3a2a17!important;color:#ffc58a!important}
html.dark .invsm{background:#26262a!important;color:#6bb6e0!important}
html.dark #invView{background:#0c0c0e!important}
html.dark .invdrop,html.dark .invlist{background:#1f1f22!important;border-color:#2e4a5e!important}
html.dark .invlab,html.dark .invt{color:#ececef!important}
html.dark .tssw i{background:#3a3a40!important}
html.dark .tssw input:checked+i{background:#3398cc!important}
html.dark .tsrow,html.dark .invrow{border-color:#2e2e33!important}
html.dark #flView,html.dark .fxhead{background:#161618!important}
html.dark .fx{color:#ececef!important}
html.dark .fxtop{background:#1f1f22!important}
html.dark .fxsearch{background:#2e2e33!important;color:#ececef!important}
html.dark .fxtools,html.dark .fxstatus{background:#1a1a1d!important;border-color:#2e2e33!important}
html.dark .fxtool,html.dark .fxtn,html.dark .fxc.fx-name,html.dark .fxmenu button{color:#ececef!important}
html.dark .fxtool svg{color:#6bb6e0!important}
html.dark .fxtool:hover,html.dark .fxtn:hover,html.dark .fxrow:hover,html.dark .fxtile:hover,html.dark .fxmenu button:hover{background:#26262a!important}
html.dark .fxtree{background:#161618!important;border-color:#2e2e33!important}
html.dark .fxtn.cur,html.dark .fxrow.sel,html.dark .fxtile.sel,html.dark .fxview.on{background:#1d4b66!important;color:#fff!important}
html.dark .fxhead,html.dark .fxtreesep,html.dark .fxmsep{border-color:#2e2e33!important}
html.dark .fxtreesep,html.dark .fxmsep{background:#2e2e33!important}
html.dark .fxmenu,html.dark .fxplayer,html.dark .fxups{background:#1f1f22!important;border-color:#2e2e33!important}
html.dark .fxlock{background:#3a2a17!important;color:#ffc58a!important}
html.dark .fxlist.drop{background:#10202c!important}
html.dark .fxtn.drop,html.dark .fxrow.drop,html.dark .fxtile.drop{background:#173447!important}
html.dark .fxthumb{background:#26262a!important}
html.dark .fxpicktree{border-color:#2e2e33!important}
html.dark .fxupbar{background:#2e2e33!important}
html.dark .fxtoast{background:#2e2e33!important}
html.dark #msgs:not(.walled){background-color:#000!important;background-image:none!important}
html.dark #side header,html.dark #chatHead,html.dark .calhead,html.dark #tabbar{background:#161618!important}
html.dark #composer{background:#161618!important}
html.dark .msg{background:#26262a!important;color:#ececef!important;box-shadow:none!important}
html.dark .msg.me{background:#1d5a8c!important;color:#fff!important}
html.dark .msg.me .time,html.dark .msg.me .meta,html.dark .msg.me .tick{color:#a9cdee!important}
html.dark .msg:not(.me) .time,html.dark .msg:not(.me) .meta{color:#9a9aa1!important}
html.dark .msg.me a{color:#fff!important}
html.dark .msg.me .quote,html.dark .msg.me .lcard,html.dark .msg.me .reply{background:#174a74!important}
html.dark .msg.me .tick.read{color:#5fd0ff!important}
html.dark .msg.me .lcard *{color:#e3efff!important}
html.dark .msg:not(.me) .quote,html.dark .msg:not(.me) .lcard,html.dark .msg:not(.me) .reply{background:#1d1d20!important}
html.dark .msg.tail{position:relative}
html.dark .msg.tail:not(.me){border-bottom-left-radius:3px!important}
html.dark .msg.tail.me{border-bottom-right-radius:3px!important}
html.dark .msg.tail::after{content:'';position:absolute;bottom:0;width:10px;height:12px;background:inherit}
html.dark .msg.tail:not(.me)::after{left:-7px;clip-path:polygon(100% 0,100% 100%,0 100%)}
html.dark .msg.tail.me::after{right:-7px;clip-path:polygon(0 0,100% 100%,0 100%)}
html.dark .day,html.dark .unreadline span{background:#1f1f22!important;color:#b0b0b6!important}
html.dark .msg .rpill{background:#26262a!important;border-color:#0c0c0e!important}
html.dark .msg.typing-bubble{background:#26262a!important}
html.dark .msg .rpill{background:#1f1f22!important;border-color:#0c0c0e!important;color:#b0b0b6!important}
html.dark .msg .rpill.mine{border-color:#1d4b66!important}
html.dark .typing-bubble .tbdots i{background:#8b8b92!important}
html.dark .iprev.typing .iptyping{color:#3fcf7f!important}
html.dark .addteacher{border-color:#3a5f78!important;color:#6bb6e0!important}
html.dark #modal .emorow .emoplus svg{background:#2e2e33!important}
html.dark .rsrow{border-color:#2e2e33!important}
html.dark #emoPick{background:#1f1f22!important;color:#ececef!important}
html.dark #emoPick .epsec{background:#1f1f22!important;color:#8b8b92!important}
html.dark #emoPick .epsearch{background:#2e2e33!important;border-color:#2e2e33!important;color:#ececef!important}
html.dark #emoPick .epclose{background:#2e2e33!important;color:#b0b0b6!important}
html.dark #emoPick .eptabs{border-color:#2e2e33!important}
html.dark #emoPick .epe:active,html.dark #emoPick .epe:hover{background:#2e2e33!important}
html.dark #msgBanner{background:rgba(32,44,51,.97)!important;box-shadow:0 6px 24px rgba(0,0,0,.5)!important}
html.dark #msgBanner .bntitle{color:#ececef!important}
html.dark #msgBanner .bnbody{color:#b0b0b6!important}
html.dark .rggrid{background:#1f1f22!important;box-shadow:none!important}
html.dark .rgd{background:#26262a!important;color:#ececef!important}
html.dark .rgd.k-work{background:#3398cc!important;color:#fff!important}
html.dark .rgd.k-holiday{background:#1e3a2a!important;color:#8fd6a6!important}
html.dark .rgd.k-sick{background:#3a2a17!important;color:#f0b860!important}
html.dark .rgd.k-off{background:#1a1a1d!important;color:#86868d!important}
html.dark .rgd.todo{background:#1f1f22!important;color:#ff8a80!important}
html.dark .rgd.later{background:#1f1f22!important}
html.dark .rgd.today{outline-color:#ececef!important}
html.dark .rgd.hol:not(.k-work){background:#3a2226!important}
html.dark #modalBox .rgkind button{background:#2a2a2e!important;color:#ececef!important}
html.dark #modalBox .rgkind button.sel{background:#1d4058!important;border-color:#3398cc!important}
html.dark .rgform select{background:#1f1f22!important;border-color:#2a3a46!important;color:#ececef!important}
html.dark .rgmrow{border-color:#2a3a46!important}
html.dark .rgmt{color:#ececef!important}
html.dark .psreg{background:#1e3a2a!important;color:#8fd6a6!important}
html.dark .hrorow .rgst.open{background:#2a2a2e!important;color:#a3a3aa!important}
html.dark .hrwk strong,html.dark .hrname,html.dark .hrh,html.dark .hrotop strong,html.dark .psm{color:#ececef!important}
html.dark .hrcard.wk.past:not(.open){background:#18232b!important}
html.dark .hrcard.wk.open .hrhead{border-color:#2a3a46!important}
html.dark .hrday{background:#2a2a2e!important;color:#8fc6ea!important}
html.dark .hrday.g{background:#26262a!important;color:#a3a3aa!important}
html.dark .hrsort button{background:#1f1f22!important;border-color:#2a3a46!important;color:#b8c7d1!important}
html.dark .hrsort button.active{background:#3398cc!important;border-color:#3398cc!important;color:#fff!important}
html.dark .hrorow,html.dark .psrow{background:#1f1f22!important;box-shadow:none!important}
html.dark .hrorow.empty{box-shadow:inset 4px 0 0 #f0a020!important}
html.dark .hrotrack{background:#2a3a46!important}
html.dark .hrorow.empty .hrosub{color:#f0b860!important}
html.dark .psnew{background:#2a2a2e!important;color:#8fc6ea!important}
html.dark #modalBox .hrchip{background:#2a2a2e!important;color:#ececef!important}
html.dark #modalBox .hrchip.t{background:#2b2640!important}
html.dark #modalBox .hrchip.sel{border-color:#3398cc!important;background:#1d4058!important}
html.dark #modalBox .hrstep button{background:#2a2a2e!important;color:#8fc6ea!important}
html.dark #modalBox .hrpd{background:#26262a!important;color:#ececef!important}
html.dark #modalBox .hrpd.we{color:#86868d!important;background:#1a1a1d!important}
html.dark #modalBox .hrpd.today{border-color:#3398cc!important}
html.dark #modalBox .hrpd.sel{background:#3398cc!important;color:#fff!important;border-color:#3398cc!important}
html.dark .hradd.sec2{background:transparent!important;border-color:#3a5568!important}
html.dark .hrback{color:#8fc6ea!important}
html.dark #ttDays button.active{background:#3398cc!important;border-color:#3398cc!important;color:#fff!important}
html.dark .ttseg{background:#1f1f22!important}
html.dark .ttseg button{color:#b8c7d1!important}
html.dark .ttseg button.active{background:#2c3e4b!important;color:#fff!important;box-shadow:none!important}
html.dark #ttSearch input{background:#1f1f22!important;border-color:#2a3a46!important;color:#ececef!important}
html.dark .ttstate.next{background:#2a2a2e!important;color:#8fc6ea!important}
html.dark .ttuntil{color:#8fc6ea!important}
html.dark .tttz{background:#2e2a1a!important;color:#e6dcc0!important}
html.dark .linkbtn{color:#8fc6ea!important}
html.dark .ttfree,html.dark .twc{background:#1f1f22!important;box-shadow:none!important}
html.dark .twc.empty{background:rgba(28,40,49,.45)!important}
html.dark .twc.now{box-shadow:inset 0 0 0 2px #3398cc!important}
html.dark .ttfreeh,html.dark .twx{color:#ececef!important}
html.dark .ttchip{background:#1e3a2a!important;color:#8fd6a6!important}
html.dark .ttchip small{color:#7fb592!important}
html.dark .twr,html.dark .twsum,html.dark .twh{color:#a3a3aa!important}
html.dark .twh.today{background:#3398cc!important;color:#fff!important}
html.dark #ttDays button.istoday:not(.active){border-color:#3398cc!important;color:#8fc6ea!important}
html.dark .cgrid .cd.we{background:transparent!important}
html.dark .calform .chk,html.dark #modalBox .chk{color:#c9d6de!important}
html.dark .calviews{background:#1f1f22!important}
html.dark .calviews button{color:#b8c7d1!important}
html.dark .calviews button.active{background:#2c3e4b!important;color:#fff!important;box-shadow:none!important}
html.dark .cgrid .cd .num,html.dark .wnum,html.dark .upd,html.dark .wname,html.dark .upname,html.dark .calnav .navt,html.dark .ymon .yt,html.dark .ttcalhead,html.dark .nttitle,html.dark .evname{color:#ececef!important}
html.dark .cgrid .cd.today .num,html.dark .wrow.today .wnum{background:#3398cc!important;color:#fff!important}
html.dark .cgrid .cd.we .num,html.dark .wrow.we .wnum{color:#86868d!important}
html.dark .calkey,html.dark .mevents,html.dark .wrow{border-color:#2a3a46!important}
html.dark .calkey,html.dark .mevents .mtxt,html.dark .evwhen,html.dark .evplace,html.dark .ttcalev,html.dark .calhelp{color:#b8c7d1!important}
html.dark .calnav .navb{background:#2a2a2e!important;color:#8fc6ea!important}
html.dark .ymon,html.dark .uprow,html.dark .yearv .calkey,html.dark .calsheet .evcard,html.dark .calhelp,html.dark .ttcal,html.dark .ntlist{background:#1f1f22!important;box-shadow:none!important}
html.dark .ymon .yd{color:#b8c7d1!important}
html.dark .ymon .yd.on{color:#fff!important}
html.dark .ymon .yd.today{background:#ececef!important;color:#14232d!important}
html.dark .uprel{background:#2a2a2e!important;color:#8fc6ea!important}
html.dark .uprel.now{background:#3398cc!important;color:#fff!important}
html.dark .evbtn{background:#2a2a2e!important;color:#8fc6ea!important}
html.dark .evbtn.danger{background:#3a2226!important;color:#ff8a80!important}
html.dark #modalBox .catpick .catb{background:#2a2a2e!important;color:#ececef!important}
html.dark #modalBox .catpick .catb.sel{background:#1d4058!important;border-color:#3398cc!important}
html.dark .ntrow{border-color:#2a3a46!important}
html.dark .ntrow.unread{background:#1f3341!important}
html.dark .ntbody{color:#a9bac5!important}
html.dark .ntdot{background:#3398cc!important}
html.dark .wev{background-blend-mode:normal}
html.dark .cgrid .cd.tinted{background:var(--tint)!important}
html.dark #fmtBar .fmtb{background:#22313d!important;color:#8fc6ea!important;box-shadow:none!important}
html.dark #fmtBar .fmtb:active{background:#2d4252!important}
html.dark .msg{color:#ececef}
html.dark .vwr-page{background:#fff!important}
html.dark .pcard,html.dark .sgbox{background:#1f1f22!important}
html.dark .pname,html.dark .sitem{color:#ececef!important}
html.dark .sitem{border-bottom-color:#263540!important}
html.dark .pcam{border-color:#1f1f22!important}
html.dark input.switch{background:#3a4a55!important}
html.dark input.switch:checked{background:#30b350!important}
html.dark .sitem.danger .stitle{color:#ff6b62!important}
html.dark .rbanner{background:#1f1f22!important;color:#ececef}
html.dark .rbanner .rbt div{color:#b9c7d1!important}
html.dark .fcode{background:rgba(255,255,255,.1)!important}
html.dark .fquote{color:#b9c7d1!important}
html.dark .wsw .wprev{border-color:#36363b}
html.dark #modalBox .wsw{color:#c3ced6}
html.dark .tapload{background:rgba(255,255,255,.07)!important;color:#6bb6e0!important}
html.dark .fchip{background:#1f3443!important;color:#c3ced6!important}
html.dark .fchip.on{background:#2878a8!important;color:#fff!important}
html.dark #modalBox .gtabs button{background:#1f3443!important;color:#c3ced6!important}
html.dark #modalBox .gtabs button.on{background:#2878a8!important;color:#fff!important}
html.dark .sheetp{background:#121b22!important}
html.dark .lrow .ltitle,html.dark .sheett{color:#ececef!important}
html.dark .lrow,html.dark #modalBox .lrow{border-bottom-color:#263540!important}
html.dark .sheetbtn{border-bottom-color:#263540!important}
html.dark .sheetbtn.danger{color:#ff6b62!important}
html.dark .sheetbtn.cancel{color:#ececef!important}
html.dark .lrow.quote .lsub2{color:#c3ced6!important}
html.dark .lrow.tap:active{background:rgba(255,255,255,.05)!important}
html.dark .unreadline span{background:#1f3443!important}
html.dark .iprev .draft{color:#4cc483}
html.dark .pdfc{background:rgba(255,255,255,.06)}
html.dark .pdfc-pic{background-color:#2a3640}
html.dark .msg .qt,html.dark #replyBar .qt{color:#a3a3aa}
html.dark #tabbar{background:rgba(28,40,49,.78);box-shadow:0 6px 24px rgba(0,0,0,.5),inset 0 0 0 1px rgba(255,255,255,.08)}
html.dark input,html.dark textarea,html.dark select{background:#26262a;color:#ececef;border-color:#36363b}
html.dark #side header,html.dark #chatHead,html.dark .calhead{background:#1d5578}
html.dark ::placeholder{color:#7f919d}
html.dark #authForm input{background:#26262a}
html.dark #modal{background:rgba(0,0,0,.65)}
html.dark .cd.end,html.dark .badge,html.dark .tbadge{color:#fff}
html.dark,html.dark body{background:#0c0c0e;color:#ececef}
html.dark #authForm{background:#1f1f22}
html.dark #authForm h1{color:#ececef}
html.dark #authForm input{border:1px solid #36363b}
html.dark #authForm a{color:#6bb6e0}
html.dark .err{color:#ff7a6e}
html.dark #side{background:#1f1f22;border-right:1px solid #36363b}
html.dark #search{border:1px solid #36363b;background:#161618}
html.dark .item{border-bottom:1px solid #26262a}
html.dark .item:hover,html.dark .item.active{background:#161618}
html.dark .avatar.on::after{border:2px solid #36363b}
html.dark .itime{color:#a3a3aa}
html.dark .item.unread .itime{color:#6bb6e0}
html.dark .iprev{color:#a3a3aa}
html.dark .side-actions{border-top:1px solid #2e2e33}
html.dark .side-actions button{color:#6bb6e0;background:#1f1f22}
html.dark #main{background:#0c0c0e}
html.dark .msg{background:#1f1f22}
html.dark .msg.me{background:#1d4b66}
html.dark .msg .who{color:#6bb6e0}
html.dark .msg .time{color:#a3a3aa}
html.dark .msg a.file{color:#6bb6e0}
html.dark .day{background:#26262a;color:#babac0}
html.dark #typing{color:#a3a3aa}
html.dark #composer{background:#161618}
html.dark #modalBox{background:#1f1f22}
html.dark #modalBox input{border:1px solid #36363b}
html.dark #modalBox button.sec{background:#2e2e33;color:#dcdce0}
html.dark #modalBox .row{border-bottom:1px solid #2e2e33}
html.dark #modalBox .row:hover{background:#26262a}
html.dark #modalBox .tabs button{background:#0c0c0e;color:#ececef}
html.dark .muted{color:#a3a3aa}
html.dark .note{background:#26262a}
html.dark .invite{background:#26262a}
html.dark .invite code{background:#1f1f22;border:1px solid #36363b}
html.dark .urow{border-bottom:1px solid #2e2e33}
html.dark #modalBox button.small.sec{background:#2e2e33;color:#dcdce0}
html.dark #tabbar{background:#1f1f22;border-top:1px solid #2e2e33}
html.dark #tabbar button{color:#a3a3aa}
html.dark #tabbar button.active{color:#6bb6e0}
html.dark #calView{background:#0c0c0e}
html.dark .legend{background:#1f1f22;border-bottom:1px solid #2e2e33;color:#ececef}
html.dark .sw.hol{background:#3a1f1c}
html.dark .sw.today{background:#1f1f22}
html.dark .month{background:#1f1f22}
html.dark .month h3{color:#ececef}
html.dark .dow{color:#a3a3aa}
html.dark .cd{color:#ececef}
html.dark .cd.we{color:#a3a3aa;background:#26262a}
html.dark .cd.hol{background:#3a1f1c;color:#ff9a90}
html.dark .mevents{border-top:1px solid #26262a;color:#ececef}
html.dark .mevents .dot.holiday{background:#3a1f1c}
html.dark .sw.tiel{background:#3a2a17}
html.dark .cd.tiel{background:#3a2a17;color:#ffc58a}
html.dark .mevents .dot.tielmes{background:#3a2a17}
html.dark #offlineBar{color:#ececef}
html.dark #ttView,html.dark #hrView{background:#0c0c0e}
html.dark .calhead .seg button.active{background:#1f1f22;color:#6bb6e0}
html.dark #ttDays button{background:#1f1f22;color:#ececef}
html.dark .tttime{color:#6bb6e0}
html.dark .ttcard{background:#1f1f22}
html.dark .tttext{color:#ececef}
html.dark .ttmeta{color:#a3a3aa}
html.dark .ttroom{background:#0c0c0e;color:#6bb6e0}
html.dark .ttempty{color:#a3a3aa}
html.dark .tool{background:#1f1f22;color:#ececef}
html.dark .poll .opt{border:1px solid #36363b;background:#1f1f22}
html.dark .poll .opt .bar{background:#1d4b66}
html.dark .poll .opt .who2{color:#a3a3aa}
html.dark .poll .hint{color:#a3a3aa}
html.dark #modalBox textarea{border:1px solid #36363b}
html.dark #modalBox .chips button{background:#0c0c0e;color:#ececef}
html.dark #plus{color:#6bb6e0}
html.dark .tool svg{color:#6bb6e0}
html.dark .mutedico{color:#8b8b92}
html.dark .msg.gone{background:#26262a}
html.dark .msg .edited{color:#a3a3aa}
html.dark #modalBox .menu button{background:#26262a;color:#ececef}
html.dark #modalBox .menu button.danger{color:#ff7a6e}
html.dark .srow{border-bottom:1px solid #2e2e33}
html.dark .rep{background:#3a2a17}
html.dark .tick{color:#8b8b92}
html.dark .infomsg{background:#0c0c0e}
html.dark .hrnav button{background:#1f1f22;color:#6bb6e0}
html.dark .hradmin select{border:1px solid #36363b;background:#1f1f22}
html.dark .hradd{background:#1f1f22;color:#6bb6e0}
html.dark .hrcard{background:#1f1f22}
html.dark .hrhead{border-bottom:1px solid #2e2e33}
html.dark .hrtot{color:#6bb6e0}
html.dark .hrrow{border-bottom:1px solid #26262a}
html.dark .hrrow.grp{color:#a3a3aa}
html.dark .danger-text{color:#ff7a6e}
html.dark #modalBox textarea{border:1px solid #36363b}
html.dark .newmenu{background:#1f1f22;color:#ececef}
html.dark .newmenu button{background:#1f1f22;color:#ececef}
html.dark .newmenu button+button{border-top:1px solid #2e2e33}
html.dark .newmenu svg{color:#6bb6e0}
html.dark #tabbar button{color:#6bb6e0}
html.dark .cd.we{background:#26262a}
html.dark .cd.ev{color:#ececef}
html.dark .mevents .mdesc{color:#a3a3aa}
html.dark .evcard{background:#26262a}
html.dark #modalBox .swatches button{border:3px solid #36363b;box-shadow:0 0 0 1px #36363b}
html.dark #modalBox textarea{border:1px solid #36363b}
html.dark .chkrow{border-bottom:1px solid #2e2e33}
@media (min-width:900px) and (min-height:501px){html.dark #tabbar{background:#26262a;border-right:1px solid #2e2e33}}
@media (max-width:899px),(max-height:500px){html.dark html.kb-open,html.dark html.kb-open body{background:#161618}}
html.dark #alView{background:#0c0c0e}
html.dark .alcard{background:#1f1f22}
html.dark .alhead{color:#a3a3aa}
html.dark .altitle{color:#ececef}
html.dark .alwhen{color:#a3a3aa}
html.dark .psbtn2{background:#2e2e33;color:#6bb6e0}
html.dark .pslabel{color:#a3a3aa}
html.dark .psmonth{border:1px solid #36363b;background:#1f1f22;color:#ececef}
html.dark .pscard{background:#1f1f22}
html.dark .pstitle{color:#ececef}
html.dark .psbtn3{background:#3a1f1c}
html.dark .psign summary{color:#a3a3aa}
html.dark .pdfpage{background:#1f1f22}
html.dark #psView{background:#0c0c0e}
html.dark .psyear{color:#6bb6e0}
html.dark .psrow{background:#1f1f22;color:#ececef}
html.dark .pschev{color:#8b8b92}
html.dark .psadmin h3{color:#ececef}
html.dark .pslink{background:#1f1f22}
html.dark .pslink select{border:1px solid #36363b;background:#1f1f22}
html.dark #setView{background:#0c0c0e}
html.dark #setBody .row{background:#1f1f22}
html.dark #setBody .srow{background:#1f1f22}
html.dark #setBody .danger-text{color:#ff7a6e}
html.dark .seg2 button{color:#6bb6e0}
html.dark .msg .fwd{color:#a3a3aa}
html.dark .msg .quote.gone{color:#a3a3aa}
html.dark .qt{color:#a3a3aa}
html.dark .msg .lcard .ls{color:#a3a3aa}
html.dark .msg .lcard .ld{color:#a3a3aa}
html.dark .msg .rp{background:#1f1f22}
html.dark #replyBar .rx{color:#a3a3aa}
html.dark #mentionBox{background:#1f1f22}
html.dark #app.paging .pgv{background:#0c0c0e}
html.dark #modal .emorow button.on{background:#1d4b66!important}
html.dark #emojiPanel{background:#1f1f22}
html.dark #emojiPanel .ehead{color:#a3a3aa}
html.dark #micBtn{color:#6bb6e0}
html.dark #recBar{background:#1f1f22}
html.dark #recBar .rlock{background:#1f1f22}
html.dark .camshut{border:4px solid #36363b}
html.dark .camshut span{background:#1f1f22}
html.dark .vwr-page{background:#1f1f22}
html.dark .unreadline span{color:#6bb6e0}
html.dark #jumpBtn{background:#1f1f22;color:#6bb6e0}
html.dark .sheetgrp{background:#1f1f22}
html.dark .sheetbtn{color:#6bb6e0}
html.dark .sheetbtn.cancel{background:#1f1f22}
html.dark .fchip{background:#0c0c0e}
html.dark .fback{color:#6bb6e0}
html.dark .archrow .archava{background:#0c0c0e;color:#6bb6e0}
html.dark #modalBox .gtabs button{background:#0c0c0e}
html.dark .rbanner{background:#1f1f22}
html.dark .tapload{color:#6bb6e0}
html.dark .pcard{background:#1f1f22}
html.dark .pcam{border:2px solid #36363b}
html.dark .prole{color:#6bb6e0}
html.dark .sgbox{background:#1f1f22}
html.dark input.switch::after{background:#1f1f22}
html.dark #fmtBar .fmtb{background:#1f1f22;color:#6bb6e0}
html.dark .calviews button.active{background:#1f1f22;color:#6bb6e0}
html.dark .cgrid .cd .num{color:#ececef}
html.dark .calkey{border-top:1px solid #26262a}
html.dark .mevents{border-top:1px solid #26262a}
html.dark .mevents .mplace{color:#a3a3aa}
html.dark .mevents .mdesc{color:#a3a3aa}
html.dark .calnav .navb{color:#6bb6e0}
html.dark .calnav .navt{color:#ececef}
html.dark .calnav .navlink{color:#6bb6e0}
html.dark .wrow{border-top:1px solid #26262a}
html.dark .wnum{color:#ececef}
html.dark .wname{color:#ececef}
html.dark .wmeta{color:#a3a3aa}
html.dark .ymon{background:#1f1f22}
html.dark .ymon .yt{color:#ececef}
html.dark .yearv .calkey{background:#1f1f22}
html.dark .uprow{background:#1f1f22}
html.dark .upd{color:#ececef}
html.dark .upname{color:#ececef}
html.dark .upmeta{color:#a3a3aa}
html.dark .uprel{color:#6bb6e0}
html.dark .calsheet .evcard{background:#1f1f22}
html.dark .calsheet .evdesc{color:#a3a3aa}
html.dark .evbtn{color:#6bb6e0}
html.dark .evbtn.danger{background:#3a1f1c}
html.dark .calnone{color:#a3a3aa}
html.dark .calhelp{background:#1f1f22}
html.dark #modalBox .catpick .catb{color:#ececef}
html.dark .flabel{color:#a3a3aa}
html.dark .ttcal{background:#1f1f22}
html.dark .ttcalhead{color:#ececef}
html.dark .ttcallink{color:#6bb6e0}
html.dark .ntlist{background:#1f1f22}
html.dark .ntrow{border-bottom:1px solid #26262a}
html.dark .nttitle{color:#ececef}
html.dark .ntread:hover{background:#2e2e33}
html.dark .alrecent{color:#a3a3aa}
html.dark .ttseg button.active{background:#1f1f22;color:#6bb6e0}
html.dark #ttSearch input{background:#1f1f22}
html.dark #ttSearch button{color:#6bb6e0}
html.dark #ttDays button.istoday:not(.active){color:#6bb6e0}
html.dark .ttstate.next{background:#2e2e33;color:#6bb6e0}
html.dark .ttuntil{color:#6bb6e0}
html.dark .linkbtn{color:#6bb6e0}
html.dark .ttfree{background:#1f1f22}
html.dark .ttfreeh{color:#ececef}
html.dark .twsum{color:#a3a3aa}
html.dark .twh{color:#a3a3aa}
html.dark .twt{color:#6bb6e0}
html.dark .twc{background:#1f1f22}
html.dark .twx{color:#ececef}
html.dark .twr{color:#a3a3aa}
html.dark .hrback{color:#6bb6e0}
html.dark .hrcard.wk.open .hrhead{border-bottom:1px solid #2e2e33}
html.dark .hrwk strong{color:#ececef}
html.dark .hrcnt{color:#a3a3aa}
html.dark .hrday{color:#6bb6e0}
html.dark .hrday.g{color:#a3a3aa}
html.dark .hrname{color:#ececef}
html.dark .hrrow.grp .hrname{color:#a3a3aa}
html.dark .hrh{color:#ececef}
html.dark .hrsort{color:#a3a3aa}
html.dark .hrsort button{background:#1f1f22}
html.dark .hrorow{background:#1f1f22}
html.dark .hrotop strong{color:#ececef}
html.dark .hrotrack{background:#26262a}
html.dark .hrosub{color:#a3a3aa}
html.dark .hrkey{color:#a3a3aa}
html.dark #modalBox .hrchip{color:#ececef}
html.dark #modalBox .hrstep button{color:#6bb6e0}
html.dark .hrcount{color:#6bb6e0}
html.dark #modalBox .hrpd{color:#ececef}
html.dark .psrow{background:#1f1f22}
html.dark .psm{color:#ececef}
html.dark .psnew{background:#2e2e33;color:#6bb6e0}
html.dark .hrorow .rgst.open{color:#a3a3aa}
html.dark .rggrid{background:#1f1f22}
html.dark .rgd{color:#ececef}
html.dark .rgd.todo{background:#1f1f22}
html.dark .rgd.later{background:#1f1f22;box-shadow:inset 0 0 0 1.5px #36363b}
html.dark .rgkey{color:#a3a3aa}
html.dark #modalBox .rgkind button{color:#ececef}
html.dark #modalBox .rgx,html.dark #modalBox .rgaddbr{color:#6bb6e0}
html.dark .rgform select{background:#1f1f22}
html.dark .rgmrow{border-bottom:1px solid #26262a}
html.dark .rgmt{color:#ececef}
html.dark .rgmt small{color:#a3a3aa}
html.dark .msg .rpill{background:#1f1f22}
html.dark #emoPick{background:#1f1f22}
html.dark #emoPick .epsec{background:#1f1f22}
html.dark .addteacher{background:#26262a;color:#6bb6e0}
html.dark .addteacher.open{background:#1f1f22;color:#a3a3aa}
html.dark #flView{background:#1f1f22}
html.dark .fx{color:#ececef}
html.dark .fxsearch{background:#1f1f22;color:#ececef}
html.dark .fxtool{color:#ececef}
html.dark .fxtool svg{color:#6bb6e0}
html.dark .fxtool:hover{background:#2e2e33}
html.dark .fxtool.danger svg{color:#ff7a6e}
html.dark .fxcaret{color:#a3a3aa}
html.dark .fxview{color:#a3a3aa}
html.dark .fxview.on{background:#1d4b66;color:#6bb6e0}
html.dark .fxtn{color:#ececef}
html.dark .fxtn.cur{background:#1d4b66;color:#bfe3f5}
html.dark .fxtn.drop,html.dark .fxrow.drop,html.dark .fxtile.drop{background:#26262a}
html.dark .fxtog{color:#a3a3aa}
html.dark .fxtn.special svg{color:#a3a3aa}
html.dark .fxhead{background:#1f1f22}
html.dark .fxh{color:#a3a3aa}
html.dark .fxh.on{color:#6bb6e0}
html.dark .fxrow.sel,html.dark .fxtile.sel{background:#1d4b66}
html.dark .fxc{color:#a3a3aa}
html.dark .fxc.fx-name{color:#ececef}
html.dark .fxlock{color:#ffc58a;background:#3a2a17}
html.dark .fxthumb{background:#26262a}
html.dark .fxempty,html.dark .fxhint{color:#a3a3aa}
html.dark .fxstatus{color:#a3a3aa}
html.dark .fxmenu{background:#1f1f22}
html.dark .fxmenu button{color:#ececef}
html.dark .fxmenu button:hover{background:#2e2e33}
html.dark .fxmenu button.danger{color:#ff7a6e}
html.dark .fxmsep{background:#2e2e33}
html.dark .fxplayer{background:#1f1f22}
html.dark .fxups{background:#1f1f22}
html.dark .fxupbar{background:#2e2e33}
html.dark .fxupl{color:#ff7a6e}
html.dark .fxvb.small{background:#26262a;color:#a3a3aa}
html.dark .fxwhere{color:#a3a3aa}
html.dark .fxprog{background:#1f1f22}
html.dark .fxpb{background:#2e2e33}
html.dark .fxpt{color:#6bb6e0}
html.dark .fxpx{color:#a3a3aa}
html.dark .fxpx:hover{background:#2e2e33}
html.dark #modalBox.rgmonth .rgmlist{border-top:1px solid #26262a;border-bottom:1px solid #26262a}
html.dark .tssec{color:#a3a3aa}
html.dark .tsrow{border-bottom:1px solid #26262a}
html.dark .tstx small{color:#a3a3aa}
html.dark .tssw i::after{background:#1f1f22}
html.dark #invView{background:#0c0c0e}
html.dark .invdrop{background:#1f1f22}
html.dark .invdrop.over{background:#26262a}
html.dark .invicon{color:#6bb6e0}
html.dark .invacts .sec{background:#2e2e33;color:#ececef}
html.dark .invbar{background:#2e2e33}
html.dark .invlab{color:#ececef}
html.dark .invsec{color:#a3a3aa}
html.dark .invlist{background:#1f1f22}
html.dark .invrow{border-bottom:1px solid #26262a}
html.dark .invn small{color:#a3a3aa}
html.dark .invmissing{background:#3a2a17;color:#ffc58a}
html.dark .invsm{color:#6bb6e0}
html.dark .invsm.danger{color:#ff7a6e}
html.dark .invslide{background:#1f1f22}
html.dark .invbin{color:#ff7a6e}
html.dark .invpaid{background:#1f1f22}
html.dark .pssal .salhead small{color:#a3a3aa}
html.dark .salrow{border-bottom:1px solid #26262a}
html.dark .nset .nopt,html.dark #modalBox .nopt{background:#1f1f22;color:#ececef}
html.dark .nopt small{color:#a3a3aa}
html.dark .nhours label{color:#a3a3aa}
html.dark .nlab{color:#a3a3aa}
html.dark #modalBox .nday{background:#1f1f22;color:#a3a3aa}
