*{box-sizing:border-box}body{margin:0;background:#f4f6f7;color:#172333;font:14px system-ui,-apple-system,sans-serif}button,input,select{font:inherit}button{background:#087d6b;color:white;border:0;border-radius:8px;padding:11px 16px;cursor:pointer;font-weight:650}button:hover{filter:brightness(.94)}button.secondary{background:#e9efef;color:#31434a}[hidden]{display:none!important}a{color:inherit}#app{display:flex;min-height:100vh}aside{width:248px;background:#112334;color:#c2d2dc;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;align-items:center;gap:10px;color:white;font-size:31px;font-weight:750;letter-spacing:-1.4px;padding:24px 20px}.brand span{color:#27d8b2}nav{overflow:auto;flex:1;padding:0 12px 16px}nav small{display:block;font-size:10px;letter-spacing:1.2px;color:#829aa8;margin:20px 9px 8px}nav button{display:flex;gap:11px;width:100%;background:none;color:#d2dce4;text-align:left;font-weight:450;padding:10px 12px;margin:2px 0}nav button.active{background:#124b4d;color:#fff;border-left:3px solid #29d4a9}.sidebar-footer{font-size:11px;padding:15px 20px;color:#8da6b7;line-height:1.8;border-top:1px solid #304353}main{flex:1;min-width:0;padding:26px 30px}header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:25px}h1,h2,h3,p{margin:0}h1{font-size:29px;letter-spacing:-.8px}header small{font-size:10px;letter-spacing:1.5px;color:#73868e;font-weight:700}.header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pill{border-radius:20px;background:#dcf5ea;color:#087d6b;padding:6px 11px;font-size:12px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.card,.panel{background:#fff;border:1px solid #e1e6e8;border-radius:12px;padding:20px;box-shadow:0 2px 4px #17233306}.card small{color:#63747e}.value{font-size:27px;font-weight:750;letter-spacing:-1px;margin:10px 0}.muted{color:#758790;font-size:12px}.grid{display:grid;grid-template-columns:1.6fr 1fr;gap:16px;margin-top:16px}.panel h2{font-size:18px;margin-bottom:18px}.chart{height:250px;width:100%}.legend{display:flex;gap:12px;font-size:12px;color:#61747a}.row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #edf0f1}.row:last-child{border:0}.bar{height:7px;border-radius:10px;background:#dcefe9;overflow:hidden;margin:7px 0}.bar i{display:block;height:100%;background:#0b9278}.toolbar{display:flex;gap:10px;margin-bottom:15px;flex-wrap:wrap}input,select{background:white;border:1px solid #cfdadd;border-radius:7px;padding:10px;max-width:100%;color:#172333}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{background:#f5f7f8;font-weight:600;color:#63747e;font-size:12px}td,th{padding:13px 12px;border-bottom:1px solid #e9edef}.tablewrap{overflow:auto}.empty{padding:40px;text-align:center;color:#78909a}.badge{background:#e5f5ef;color:#087d6b;border-radius:6px;padding:4px 8px;font-size:12px}footer{margin-top:30px;font-size:12px;color:#82929a;text-align:center}dialog{border:0;border-radius:14px;max-width:560px;width:calc(100% - 30px);box-shadow:0 20px 70px #0003;padding:25px}dialog::backdrop{background:#10233488}.modalhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}label{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;color:#53656e;font-size:12px;font-weight:600}#fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}#error,#loginerror{color:#b42318;margin:12px 0}#login{min-height:100vh;display:grid;place-items:center;background:#112334}.login-card{background:white;padding:36px;border-radius:16px;width:min(420px,90vw)}.login-card .brand{color:#087d6b;padding:0 0 20px}.login-card h1{margin-bottom:8px}.login-card p{color:#6e8088;margin-bottom:24px}.login-card button{width:100%;margin-top:8px}.mobile{display:none}.notice{border-left:4px solid #d9a129;background:#fff8e5;padding:14px;border-radius:8px;margin:15px 0;color:#7e601a}.green{color:#087d6b}.red{color:#c83c42}@media(max-width:1000px){aside{width:200px}main{padding:18px}.cards{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}header{align-items:flex-start;flex-direction:column}}@media(max-width:650px){aside{display:none;position:fixed;z-index:5;left:0;top:0;width:250px}aside.open{display:flex}.mobile{display:block}main{padding:12px}.value{font-size:21px}.card,.panel{padding:14px}h1{font-size:25px}#fields{grid-template-columns:1fr}}

/* Clean edges: scrolling remains available via wheel, touch and keyboard. */
html, body, nav, .tablewrap, dialog { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, nav::-webkit-scrollbar, .tablewrap::-webkit-scrollbar, dialog::-webkit-scrollbar { display: none; width: 0; height: 0; }
html, body { overflow-x: hidden; }
nav { min-height: 0; }

/* Application shell */
main{display:flex;flex-direction:column;min-height:100vh;padding-top:0}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:76px;background:#fff;border-bottom:1px solid #e1e6e8;margin:0 -30px 25px;padding:12px 30px}
.topbar-left,.topbar-right,.profile{display:flex;align-items:center;gap:13px}
.topbar-left strong,.profile strong{display:block;font-size:13px}
.topbar-left small,.profile small{display:block;font-size:11px;color:#78909a;margin-top:3px}
.workspace-logo,.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#e2f4ed;color:#087d6b;font-weight:800;font-size:17px;flex-shrink:0}
.topbar-right{gap:18px}.connection{display:flex;align-items:center;gap:6px;font-size:12px;color:#087d6b;white-space:nowrap}.connection i{height:8px;width:8px;background:#10a781;border-radius:50%}.connection.offline{color:#b56b17}.connection.offline i{background:#e3a01c}
.support-link{text-decoration:none;color:#4e6570;font-size:13px;white-space:nowrap}.support-link:hover{color:#087d6b}.profile{border-left:1px solid #e1e6e8;padding-left:17px;gap:9px}.top-logout{background:#eef2f3;color:#4e6570;font-size:12px;white-space:nowrap;padding:9px 12px}
#content{flex:1}.app-footer{text-align:left;background:#fff;border:1px solid #e1e6e8;border-radius:12px;margin-top:28px;padding:26px 30px 0;color:#71828a}.footer-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:25px;padding-bottom:24px}.footer-brand{font-size:25px;color:#172333;font-weight:750;letter-spacing:-1px;margin-bottom:10px}.footer-brand span,.sidebar-status{color:#0d9488}.app-footer h3{font-size:12px;letter-spacing:.5px;color:#354b54;margin:6px 0 12px}.app-footer p{line-height:1.7}.app-footer a,.app-footer .footer-nav,.app-footer .footer-grid>div>span{display:block;text-decoration:none;padding:4px 0;line-height:1.5}.app-footer .footer-nav{background:none;color:#71828a;font-weight:400;font-size:12px;text-align:left}.app-footer a:hover,.app-footer .footer-nav:hover{color:#087d6b}.footer-bottom{border-top:1px solid #e1e6e8;display:flex;justify-content:space-between;gap:12px;padding:15px 0;font-size:11px;flex-wrap:wrap}.footer-bottom b{margin:0 6px}
@media(max-width:1000px){.topbar{margin:0 -18px 20px;padding:12px 18px}.topbar-right{gap:12px}.support-link{display:none}.footer-grid{gap:16px}}
@media(max-width:650px){.topbar{margin:0 -12px 18px;padding:10px 12px;min-height:62px;flex-wrap:wrap}.topbar-left{gap:8px}.topbar-left .mobile{padding:8px 10px}.workspace-logo{display:none}.topbar-right{gap:8px}.profile{padding-left:0;border:0}.profile>div{display:none}.connection{font-size:10px}.top-logout{padding:8px}.app-footer{padding:20px 16px 0}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:first-child{grid-column:1/-1}}
.footer-grid{grid-template-columns:1.15fr 1fr 1.35fr 1fr}.help-panel{margin-bottom:16px}.help-item{border-bottom:1px solid #e9edef;padding:15px 0}.help-item:last-child{border:0}.help-item h3{font-size:15px;margin:0 0 7px;color:#263e48}.help-item p{line-height:1.65;color:#52656e;white-space:pre-wrap}.journal form{margin:20px 0 26px}.journal-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.journal textarea{font:inherit;padding:10px;border:1px solid #cfdadd;border-radius:7px;resize:vertical}.journal-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#61747a;font-size:12px;margin-bottom:8px}.unlock{max-width:580px}.unlock p{line-height:1.6;margin-bottom:20px}.unlock form{margin-top:20px}#unlockError,#journalError{color:#b42318;margin-top:12px}@media(max-width:860px){.footer-grid{grid-template-columns:1fr 1fr}}@media(max-width:650px){.footer-grid>div:first-child{grid-column:1/-1}.journal-fields{grid-template-columns:1fr}}
.permissions{grid-column:1/-1;padding:15px;background:#f2f7f5;border-radius:10px;border:1px solid #dce9e4}.permissions h3{font-size:14px;margin-bottom:6px}.permissions p{font-size:12px;color:#647b72;margin-bottom:12px}.permissions .check{flex-direction:row;align-items:center;gap:9px;margin:9px 0}.permissions input{accent-color:#087d6b}.security-notice{font-size:12px;color:#647b72;padding:8px 12px;background:#e6f2ed;border-radius:8px;margin-bottom:14px}#securityWatermark{position:fixed;inset:0;z-index:100;pointer-events:none;overflow:hidden;display:flex;align-items:center;text-align:center;color:#526a70;opacity:.095;font-size:26px;font-weight:750;line-height:4;transform:rotate(-23deg);word-spacing:8px;white-space:normal}.no-share #content{-webkit-user-select:none;user-select:none}.no-share #content input,.no-share #content textarea{user-select:text}@media print{body.no-print>*{display:none!important}body.no-print::after{content:"Печать запрещена администратором Clarity";display:block;color:#222;font-size:18px;padding:30px}}

/* Cohesive architecture: full-width header and footer, uninterrupted sidebar. */
:root{--shell:#112334;--shell-line:#2a3e4d;--shell-text:#b9cbd5;--accent:#2bcba7;--surface:#f4f6f7}
#app{display:grid;grid-template-columns:248px minmax(0,1fr);grid-template-rows:auto 1fr auto;grid-template-areas:"top top" "side main" "foot foot";min-height:100vh;background:var(--shell)}
#app>.topbar{grid-area:top;position:relative;background:var(--shell);border-bottom:1px solid var(--shell-line);color:#f1f6f7;min-height:70px;margin:0;padding:12px 28px}
#app>aside{grid-area:side;position:relative;top:auto;align-self:stretch;height:auto;width:auto;min-height:100%;background:var(--shell);border-right:1px solid var(--shell-line);overflow:visible}
#app>main{grid-area:main;background:var(--surface);padding:26px 28px;min-height:0}
#app>.app-footer{grid-area:foot;background:var(--shell);border:0;border-top:1px solid var(--shell-line);border-radius:0;color:var(--shell-text);margin:0;padding:27px 28px 0}
.brand-mark{width:32px;height:32px;color:var(--accent,#0d9488);flex-shrink:0}.brand-word{color:inherit;font-size:27px;font-weight:750;letter-spacing:-1.2px;white-space:nowrap}.brand-word>span{color:var(--accent,#0d9488)}.brand,.footer-brand{display:flex;align-items:center;gap:8px;color:#f1f6f7;padding:0;letter-spacing:normal}.shell-brand{background:none;text-align:left}.login-card .brand{color:#172333;padding-bottom:20px}.login-card .brand-mark{color:#087d6b}.footer-brand{margin-bottom:12px}.footer-brand .brand-mark{height:26px;width:26px}.footer-brand .brand-word{font-size:23px}.topbar-left small,.profile small{color:#95aab8}.topbar-right{gap:20px}.connection{color:#70e0bc}.support-link{color:#c4d3db;display:flex;align-items:center;gap:6px}.support-link:hover{color:white}.profile{border-color:var(--shell-line)}.avatar{background:#24483f;color:#a6e9d7;border-radius:50%}.top-logout{background:#243847;color:#e0e9ed;display:flex;align-items:center;gap:6px}.ui-icon{width:18px;height:18px;flex:none;vertical-align:middle}.side-heading{font-weight:650;font-size:10px;color:#8fa4b3;letter-spacing:1.2px;margin:24px 19px 12px}#app nav{padding:0 12px 18px;overflow:visible;flex:1}nav .nav-group{margin:6px 0}nav .nav-group summary{display:flex;align-items:center;justify-content:space-between;padding:11px 8px;color:#8fa4b3;font-size:10px;letter-spacing:1px;cursor:pointer;list-style:none;font-weight:650}nav .nav-group summary::-webkit-details-marker{display:none}nav .nav-group summary .ui-icon{width:14px;height:14px;transition:transform .15s}nav .nav-group[open] summary .ui-icon{transform:rotate(90deg)}nav button{align-items:center;padding:10px 12px;border-radius:6px;gap:10px;font-size:13px}nav button.active{border-left:0;background:#194842;color:#eafdf6}nav button.active .ui-icon{color:var(--accent)}nav button:hover{background:#263c4c}.sidebar-footer{border-color:var(--shell-line);padding:15px 18px;margin-top:auto}
.app-footer .footer-grid{grid-template-columns:1.15fr 1fr 1.35fr 1fr;gap:26px;padding-bottom:24px}.app-footer h3{color:#edf4f6;font-weight:650}.app-footer .footer-nav,.app-footer a{color:var(--shell-text)}.app-footer .footer-nav:hover,.app-footer a:hover{color:#62dbbb}.app-footer .footer-bottom{border-color:var(--shell-line);color:#8da4b4}.app-footer .ui-icon{width:14px;height:14px;margin-right:3px}.header-actions #new{display:flex;align-items:center;gap:6px}#app header{margin-bottom:24px}.card,.panel{border-radius:9px;box-shadow:none}#app h1{font-size:27px}.topbar .mobile{background:transparent;border:1px solid var(--shell-line);padding:7px}.topbar .mobile .ui-icon{width:21px;height:21px}
@media(max-width:1000px){#app{grid-template-columns:210px minmax(0,1fr)}#app>main{padding:20px}#app>.topbar{padding:11px 20px}#app>.app-footer{padding:25px 20px 0}.app-footer .footer-grid{grid-template-columns:1fr 1fr}.topbar-right{gap:10px}}
@media(max-width:650px){#app{grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "main" "foot"}#app>aside{display:none;position:fixed;top:0;bottom:0;left:0;z-index:20;width:255px;overflow-y:auto;min-height:0;box-shadow:10px 0 40px #0004}#app>aside.open{display:flex}#app>.topbar{padding:10px 12px;min-height:60px;flex-wrap:nowrap;gap:5px}.shell-brand .brand-mark{width:25px;height:25px}.shell-brand .brand-word{font-size:23px}.topbar-left,.topbar-right{gap:8px}.topbar-right .support-link{display:none}.topbar-right .connection{font-size:10px}.topbar-right .top-logout{font-size:0;padding:8px}.topbar-right .top-logout .ui-icon{font-size:14px}#app>main{padding:17px 12px}#app>.app-footer{padding:22px 15px 0}.app-footer .footer-grid{gap:18px}.app-footer .footer-grid>div:first-child{grid-column:1/-1}}

/* Fixed shell, only workspace scrolls. */
html,body{height:100%;overflow:hidden}#app{height:100vh;height:100dvh;min-height:0;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}#app>main{min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}#app>main::-webkit-scrollbar{display:none}#app>aside{min-height:0;height:100%;overflow:hidden}#app nav{overflow-y:auto;min-height:0;scrollbar-width:none}#app>.app-footer{padding-top:16px;max-height:31vh;overflow-y:auto;scrollbar-width:none}.app-footer .footer-grid{padding-bottom:13px}.app-footer h3{margin:2px 0 7px}.app-footer p{line-height:1.45}.app-footer .footer-nav,.app-footer a{padding:2px 0}.app-footer .footer-bottom{padding:9px 0}.footer-brand{margin-bottom:6px}.footer-toggle{display:none}.shell-shortcut{background:transparent;color:#b9cbd5;padding:8px;border:1px solid var(--shell-line)}.shell-shortcut:hover{color:#fff}.expand-workspace{display:flex;align-items:center;gap:7px;white-space:nowrap}.workspace-full{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;grid-template-areas:"main"!important}.workspace-full>.topbar,.workspace-full>aside,.workspace-full>.app-footer{display:none!important}.workspace-full>main{padding:25px!important}.comms{display:grid;grid-template-columns:230px minmax(0,1fr);gap:14px;min-height:380px}.comms-sidebar .peer{background:none;color:#344d58;text-align:left;display:flex;width:100%;gap:10px;align-items:center;padding:10px;margin:5px 0}.comms-sidebar .peer.selected{background:#e3f3ed;color:#087d6b}.comms-sidebar>button:not(.peer){width:100%;margin-bottom:10px}.comms-sidebar p{line-height:1.6;margin-top:14px}.comms-sidebar .avatar{width:30px;height:30px;font-size:13px}.chat-main{display:flex;flex-direction:column;min-height:0}.chat-messages{height:310px;overflow-y:auto;scrollbar-width:none;background:#f4f7f7;border-radius:8px;padding:12px}.bubble{max-width:78%;width:max-content;padding:10px 13px;margin:8px 0;background:white;border:1px solid #dde5e5;border-radius:10px;overflow-wrap:anywhere}.bubble.mine{margin-left:auto;background:#def3e8}.bubble p,.mail-body{white-space:pre-wrap;line-height:1.6}.bubble small{display:block;color:#768892;font-size:10px;margin-top:6px}.chat-form{display:flex;gap:8px;margin-top:12px}.chat-form input{flex:1;min-width:0}.mail-row{width:100%;display:grid;grid-template-columns:1fr 2fr auto;gap:12px;background:white;color:#354b54;border-bottom:1px solid #e5ecec;border-radius:0;text-align:left;font-weight:400}.mail-row.unread{background:#e6f2ed}.mail-row small{color:#71828a}.mail-subject{margin-top:20px!important}.mail-body{margin-top:20px;overflow-wrap:anywhere}.mail-compose-body{grid-column:1/-1}.mail-compose-body textarea{font:inherit;padding:10px;border:1px solid #cfdadd;border-radius:7px;resize:vertical}
@media(max-width:1000px){#app>.app-footer{max-height:25vh}.app-footer .footer-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.app-footer .footer-grid>div:first-child{grid-column:auto}.app-footer .footer-grid>div:first-child p{display:none}}
@media(max-width:650px){#app>aside{height:100%;overflow:hidden}.footer-toggle{display:flex;align-items:center;gap:8px;background:none;color:#d9e6ec;padding:5px 0;font-size:12px}.app-footer:not(.footer-open) .footer-grid{display:none}.app-footer.footer-open .footer-grid{display:grid;grid-template-columns:1fr 1fr}.app-footer .footer-bottom{font-size:10px}.app-footer .footer-bottom span:last-child{display:none}#app>.app-footer{padding:6px 12px 0;max-height:36vh}.shell-shortcut{padding:5px;border:0}.topbar-right .connection{display:none}.topbar-right .profile{display:none}.expand-label{display:none}.comms{grid-template-columns:1fr;gap:10px}.comms-sidebar .peer{display:inline-flex;width:auto}.chat-messages{height:240px}.mail-row{grid-template-columns:1fr 2fr}.mail-row small{grid-column:1/-1}.workspace-full>main{padding:12px!important}}

/* Personal workspaces */
.dashboard-tools{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:16px}.dashboard-tools h2{font-size:16px;margin-bottom:4px}.dashboard-tools button{display:flex;align-items:center;gap:7px}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.dashboard-widget{min-width:0}.widget-summary{grid-column:1/-1;padding:0;border:0;background:transparent}.widget-summary .widget-heading{display:none}.widget-summary .cards{margin:0}.widget-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.dashboard-widget .widget-heading h2{margin:0;display:flex;align-items:center;gap:8px;font-size:16px}.widget-heading h2 .ui-icon{color:#087d6b}.widget-link{background:#eef5f2;color:#087d6b;padding:7px}.dashboard-editor{grid-column:1/-1}.dashboard-editor>p{margin-bottom:14px}.widget-choice{display:flex;align-items:center;gap:7px;padding:7px 0;border-bottom:1px solid #e5eaea}.widget-choice label{margin:0;flex:1;flex-direction:row;align-items:center;gap:8px;font-size:13px;color:#263e48}.widget-choice input{accent-color:#087d6b}.widget-choice .reorder{padding:5px 10px}.dashboard-editor #resetWidgets{margin-top:14px}.dashboard-editor #widgetChoices{max-height:43vh;overflow-y:auto;scrollbar-width:none}@media(max-width:760px){.dashboard-grid{grid-template-columns:minmax(0,1fr)}.dashboard-tools{align-items:flex-start}.dashboard-tools button{font-size:12px;white-space:nowrap}.widget-summary .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Independent collapsible shell panels */
.chrome-toggle{background:#243847;color:#b9cbd5;border:1px solid var(--shell-line);padding:5px 7px;display:inline-flex;align-items:center;gap:5px;border-radius:5px;flex-shrink:0}.chrome-toggle:hover{color:white}.chrome-toggle .ui-icon{width:15px;height:15px}.side-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:15px 13px 8px}.side-heading #toggleSidebar .ui-icon{transform:rotate(180deg)}#toggleHeader .ui-icon{transform:rotate(-90deg)}#app>.app-footer{position:relative}.app-footer .footer-toggle{display:flex;position:absolute;right:18px;top:9px;font-size:10px;padding:3px 6px}.app-footer .footer-toggle .ui-icon{transform:rotate(90deg)}#app.header-collapsed>.topbar{min-height:31px;padding:2px 12px}#app.header-collapsed>.topbar .shell-brand,#app.header-collapsed>.topbar .topbar-right{display:none}#app.header-collapsed #toggleHeader .ui-icon{transform:rotate(90deg)}#app.sidebar-collapsed{grid-template-columns:48px minmax(0,1fr)}#app.sidebar-collapsed>aside .side-heading{margin:12px 8px;justify-content:center}#app.sidebar-collapsed .side-heading>span,#app.sidebar-collapsed #nav,#app.sidebar-collapsed .sidebar-footer{display:none}#app.sidebar-collapsed #toggleSidebar .ui-icon{transform:rotate(0)}#app.footer-collapsed>.app-footer{padding:0 18px;min-height:32px;display:flex;align-items:center;justify-content:flex-end}#app.footer-collapsed>.app-footer .footer-grid,#app.footer-collapsed>.app-footer .footer-bottom{display:none}#app.footer-collapsed>.app-footer .footer-toggle{position:static;font-size:11px;margin-left:auto}#app.footer-collapsed .footer-toggle .ui-icon{transform:rotate(-90deg)}.app-footer:not(.footer-collapsed) .footer-grid{padding-top:10px}
@media(max-width:650px){#app.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}#app.sidebar-collapsed>aside.open .side-heading>span,#app.sidebar-collapsed>aside.open #nav,#app.sidebar-collapsed>aside.open .sidebar-footer{display:initial}#app.header-collapsed>.topbar .mobile{display:block}#app .app-footer .footer-grid{grid-template-columns:1fr 1fr}#app:not(.footer-collapsed) .app-footer .footer-grid{display:grid}#app:not(.footer-collapsed) .app-footer .footer-toggle{position:static;margin-bottom:4px}#app.footer-collapsed .app-footer .footer-toggle{display:flex}#app.workspace-full{grid-template-columns:minmax(0,1fr)!important}}
#app>.app-footer .footer-toggle{left:18px;right:auto}#app:not(.footer-collapsed)>.app-footer .footer-grid{padding-top:25px}#app.footer-collapsed>.app-footer{justify-content:flex-start}#app.footer-collapsed>.app-footer .footer-toggle{margin-left:0;margin-right:auto}.comms-search{width:100%;margin-bottom:12px}.chat-form .attach-button{position:relative;margin:0;padding:8px;display:grid;place-items:center;background:#e8efed;border-radius:7px;cursor:pointer}.attach-button input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.message-file{margin-top:8px;max-width:100%;overflow-wrap:anywhere}.message-file img{max-width:220px;max-height:180px;object-fit:contain;border-radius:6px;display:block;margin-bottom:5px}.message-file a{margin-left:8px;color:#087d6b}.message-file small{display:inline;margin:0}.search-results{max-height:50vh;overflow:auto;scrollbar-width:none}.search-result{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:white;color:#354b54;border-bottom:1px solid #e1e6e8;border-radius:0}.search-result:hover{background:#e6f2ed}.search-result span{min-width:0}.search-result strong,.search-result small{display:block;overflow-wrap:anywhere}.search-result small{color:#71828a;margin-top:4px}.mail-compose-body textarea{font:inherit;border:1px solid #cfdadd;border-radius:7px;padding:10px}.comms-sidebar #mailSettings{margin-bottom:10px}.mail-main #replyMail{margin-top:15px}
@media(max-width:650px){#app:not(.footer-collapsed)>.app-footer .footer-grid{padding-top:0}#app>.app-footer .footer-toggle{position:static}.message-file img{max-width:160px}.chat-form button{padding:8px}.topbar-right{gap:4px}}
/* All workspace actions are in the fixed header. */
#app>.topbar{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:9px 18px;padding:10px 28px 12px}.topbar-right{justify-self:end}.topbar .workspace-toolbar{grid-column:1/-1;width:100%;margin:0!important;padding-top:10px;border-top:1px solid var(--shell-line);display:flex;align-items:center;justify-content:space-between;gap:12px}.workspace-toolbar h1{font-size:21px!important;color:#f1f6f7}.workspace-toolbar small{color:#8fa4b3}.workspace-toolbar .pill{background:#21453f;color:#9ee5cd}.workspace-toolbar select{background:#263b49;border-color:#38515f;color:#e8f0f3}.workspace-toolbar .secondary{background:#263b49;color:#e8f0f3;display:flex;align-items:center;gap:6px}.workspace-toolbar #new{background:#087d6b}.workspace-toolbar .header-actions{gap:7px}#app.header-collapsed>.topbar{display:flex;padding:2px 12px}#app.header-collapsed .workspace-toolbar{display:none}#exitFull{display:none;position:sticky;top:0;z-index:3;margin-left:auto;margin-bottom:10px;width:max-content}#app.workspace-full #exitFull{display:flex;gap:8px;align-items:center}#app>main{padding-top:18px}
@media(max-width:1000px){#app>.topbar{padding:10px 20px}.workspace-toolbar .header-actions{font-size:12px}.workspace-toolbar .header-actions button{padding:8px}.workspace-toolbar h1{font-size:19px!important}}
@media(max-width:650px){#app>.topbar{padding:8px 12px;gap:8px}.topbar .workspace-toolbar{align-items:flex-start;flex-wrap:wrap;padding-top:7px;gap:7px}.workspace-toolbar h1{font-size:18px!important}.workspace-toolbar small{font-size:9px}.workspace-toolbar .header-actions{width:100%;gap:5px}.workspace-toolbar .header-actions select{max-width:125px;padding:7px}.workspace-toolbar .pill{font-size:10px;padding:5px}.workspace-toolbar #dashboardEdit{font-size:11px}.workspace-toolbar #expandWorkspace{font-size:11px}.workspace-toolbar #new{font-size:11px}.workspace-toolbar .header-actions button{padding:7px}.topbar-right .support-link{display:none}}

/* Compact unified header: title and actions in one row. */
#app>.topbar{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:16px;padding:10px 22px;min-height:62px}.topbar .workspace-title{display:flex;align-items:center;gap:8px;min-width:0;border-left:1px solid var(--shell-line);padding-left:16px;flex:1}.workspace-title h1{font-size:17px!important;letter-spacing:-.3px;color:#f1f6f7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mode-dot{display:inline-block;height:7px;width:7px;border-radius:50%;background:#32cda7;flex:none}.mode-dot.demo-mode{background:#d9ad50}.topbar-right{gap:7px;flex-shrink:0}.topbar .header-actions{gap:7px;flex-wrap:nowrap}.topbar .shell-shortcut{height:36px;width:36px;padding:7px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--shell-line);border-radius:7px;background:#233746;color:#d9e7ec;text-decoration:none}.topbar .shell-shortcut:hover{background:#355162;color:white}.topbar .primary-shortcut{background:#087d6b;color:white;border-color:#087d6b}.topbar .primary-shortcut:hover{background:#0d9488}.topbar .company-control{display:flex;align-items:center;gap:4px;border:1px solid var(--shell-line);border-radius:7px;padding:0 7px;color:#a9bdc9;background:#233746}.company-control select{color:#e8f0f3;background:transparent;border:0;padding:8px 4px;max-width:150px;font-size:12px}.company-control select option{background:#233746;color:white}.topbar .profile{padding-left:8px;gap:6px}.topbar .profile small{max-width:95px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .profile strong{max-width:95px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .connection{margin:0 4px}.topbar #new{display:inline-flex}.topbar #dashboardEdit[hidden],.topbar #new[hidden]{display:none!important}#app.header-collapsed>.topbar .workspace-title{display:none}.topbar #toggleHeader{margin-right:2px}
@media(max-width:1150px){.topbar .connection,.topbar .profile>div{display:none}.topbar .profile{border:0;padding-left:0}.topbar .workspace-title{padding-left:9px}.topbar .support-link{display:none}}
@media(max-width:900px){#app>.topbar{gap:9px;padding:8px 12px}.topbar .shell-brand .brand-word{font-size:23px}.topbar .shell-shortcut{height:32px;width:32px;padding:5px}.topbar .workspace-title h1{font-size:14px!important}.topbar .company-control select{max-width:105px}.topbar .topbar-right,.topbar .header-actions{gap:4px}.company-control>.ui-icon{display:none}}
@media(max-width:650px){#app>.topbar{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:6px;padding:8px 10px}.topbar .workspace-title{grid-column:2;justify-self:end;padding:0;border:0}.topbar .topbar-right{grid-column:1/-1;justify-self:stretch;justify-content:flex-end;gap:4px}.topbar .header-actions{margin-right:auto}.topbar .profile{display:none}.topbar .company-control select{max-width:104px}.topbar .shell-shortcut{width:31px;height:31px}.topbar .workspace-title h1{font-size:14px!important}.topbar .shell-brand .brand-word{font-size:22px}.topbar .topbar-left{gap:5px}}
.comms-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:6px;gap:0;border-radius:7px;flex:none}.mail-tools,.media-tools,.mail-heading{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 10px}.mail-heading{justify-content:space-between}.mail-heading h2{margin:0}.mail-source{display:flex;gap:5px;margin:9px 0}.mail-source button{font-size:11px;padding:7px}.comms-sidebar .mail-tools button{width:34px;margin:0}.chat-main h2{display:flex;align-items:center;justify-content:space-between}.chat-form{flex-wrap:wrap}.chat-form .media-tools{flex-basis:100%;margin:0}.media-tools .recording{background:#c83c42;color:white}.file-count{font-size:11px;color:#61747a}.message-file audio{max-width:100%;height:38px;display:block}.mail-tools button:hover,.media-tools button:hover{background:#d4e9e1}.mail-row strong .ui-icon{color:#d3a02b;margin-right:5px}.app-footer .footer-toggle{width:27px;height:25px;justify-content:center}.app-footer .footer-toggle .ui-icon{margin:0}
@media print{body:not(.no-print),html{height:auto;overflow:visible}body:not(.no-print) #app{display:block;height:auto;overflow:visible;background:white}body:not(.no-print) #app>.topbar,body:not(.no-print) #app>aside,body:not(.no-print) #app>.app-footer,body:not(.no-print) #app button,body:not(.no-print) .comms-sidebar,body:not(.no-print) .chat-form{display:none!important}body:not(.no-print) #app>main{height:auto;overflow:visible;padding:0;background:white}body:not(.no-print) .comms{display:block}body:not(.no-print) .chat-messages{height:auto;overflow:visible}body:not(.no-print) .panel{border:0}}
.camera-dialog{width:min(620px,calc(100% - 28px));max-width:none}.camera-view{background:#112334;display:grid;place-items:center;min-height:190px;border-radius:9px;overflow:hidden}.camera-view video,.camera-view img{display:block;width:100%;max-height:55vh;object-fit:contain}.camera-status{font-size:13px;color:#627981;padding:12px 0;line-height:1.55}.camera-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.camera-actions button{display:inline-flex;align-items:center;gap:6px}.camera-actions button:disabled{opacity:.5;cursor:not-allowed}
.camera-head-actions{display:flex;align-items:center;gap:7px}.camera-head-actions button{height:34px}.camera-head-actions button:disabled{opacity:.42;cursor:not-allowed}.camera-dialog.camera-expanded{width:calc(100vw - 18px);height:calc(100dvh - 18px);max-width:none;max-height:none;margin:auto;padding:18px;display:flex;flex-direction:column}.camera-expanded .camera-view{flex:1;min-height:0}.camera-expanded .camera-view video,.camera-expanded .camera-view img{width:100%;height:100%;max-height:none;object-fit:contain}.camera-expanded .camera-status{flex:none}

/* Communications: minimal, continuous workspace surface. */
.comms{gap:0;grid-template-columns:246px minmax(0,1fr);border:1px solid #dfe7e7;background:#fff;border-radius:12px;overflow:hidden;min-height:440px;box-shadow:0 2px 8px #17233305}
.comms>.panel{border:0;border-radius:0;box-shadow:none;padding:0}.comms-sidebar{background:#f8faf9;border-right:1px solid #e1e8e6!important;padding:14px!important;min-width:0}.comms-title{display:flex;align-items:center;gap:8px;margin:4px 2px 14px;color:#087d6b}.comms-title h2{font-size:15px;color:#253f48;margin:0}.comms-title .ui-icon{width:19px;height:19px}.comms-searchbox{display:flex;align-items:center;gap:6px;border:1px solid #dce6e3;background:white;border-radius:8px;padding:0 9px;margin-bottom:12px;color:#7d9297}.comms-searchbox .comms-search{margin:0;padding:9px 0;border:0;background:transparent;outline:none;min-width:0;font-size:12px}.comms-sidebar .peer{border-radius:7px;padding:9px 10px;font-size:13px;gap:9px}.comms-sidebar .peer.selected{background:#dceee8;color:#087d6b;font-weight:650}.comms-sidebar .peer:hover{background:#e9f1ee}.comms-sidebar .peer>span:last-child:not(.avatar){margin-left:auto;color:#087d6b}.comms-sidebar .avatar,.chat-person .avatar,.mail-avatar{display:grid;place-items:center;background:#e1f0eb;color:#087d6b;border-radius:50%;width:34px;height:34px;flex:none;font-weight:700;font-size:13px}.chat-header,.mail-heading{padding:14px 18px;border-bottom:1px solid #e1e8e6;display:flex;justify-content:space-between;align-items:center;margin:0;gap:10px}.chat-person{display:flex;align-items:center;gap:10px;min-width:0}.chat-person h2,.mail-heading h2{font-size:15px;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-header .mail-tools{margin:0;flex-wrap:nowrap}.comms-icon{background:#eef3f1;color:#45635c;border:1px solid transparent;width:33px;height:33px;border-radius:7px}.comms-icon:hover{background:#dbece5;color:#087d6b}.comms-icon.primary-shortcut{background:#087d6b;color:white}.chat-messages{margin:0;border-radius:0;background:#f5f8f7;padding:18px;min-height:300px;height:clamp(250px,40vh,520px);flex:1;scrollbar-width:none}.bubble{margin:10px 0;border:1px solid #e0e9e5;border-radius:12px 12px 12px 2px;box-shadow:0 1px 3px #203b3406;padding:10px 13px;max-width:82%;font-size:13px}.bubble.mine{background:#dff2e9;border-color:#cce7da;border-radius:12px 12px 2px 12px}.bubble small{text-align:right;font-size:10px}.chat-form{display:grid;grid-template-columns:auto minmax(80px,1fr) auto;grid-template-rows:auto auto;gap:8px;padding:12px 16px;margin:0;border-top:1px solid #e1e8e6;background:white}.chat-form input[name=body]{grid-column:2;grid-row:1;min-width:0;border-color:#dce5e2;font-size:13px}.chat-form .attach-button{grid-column:1;grid-row:1;background:#eef3f1;height:36px;width:36px;color:#45635c}.chat-form>button[type=submit]{grid-column:3;grid-row:1;height:38px;width:38px}.chat-form .media-tools{grid-column:1/-1;grid-row:2;margin:0;gap:6px}.chat-form .media-tools .comms-icon{width:30px;height:30px}.media-tools .file-count{margin-left:auto}.mail-layout .mail-tools{margin:0 0 10px}.mail-layout .mail-source{padding:4px;background:#eaf0ed;border-radius:8px;display:flex}.mail-source button{flex:1;padding:7px;border-radius:6px;display:grid;place-items:center}.mail-heading-actions{display:flex;gap:6px}.mail-main>.mail-tools{padding:12px 16px;border-bottom:1px solid #e1e8e6;margin:0!important}.mail-main>.mail-subject,.mail-main>p,.mail-main>.message-file{margin-left:18px;margin-right:18px}.mail-main>.mail-subject{font-size:19px;margin-top:20px}.mail-main>.mail-body{font-size:14px;line-height:1.7;margin-bottom:20px}.mail-list-row{display:flex;align-items:center;border-bottom:1px solid #edf1ef;padding-left:8px;min-width:0}.mail-row{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:13px 12px;border:0;background:#fff;text-align:left;white-space:normal}.mail-row:hover{background:#f5f9f7}.mail-row.unread{background:#eaf5ef}.mail-list-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.mail-list-text>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.mail-from{font-size:11px;color:#7a9094}.mail-row strong{font-size:14px;color:#264149;font-weight:600}.mail-list-text small{font-size:12px;color:#7b8f93}.mail-date{white-space:nowrap;flex:none;font-size:10px}.mail-row>.ui-icon{width:15px;flex:none;color:#718b83}.mail-bulk{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:9px 12px;background:#f0f7f3;border-bottom:1px solid #dde9e3}.message-check{display:flex;align-items:center;flex-direction:row;gap:6px;flex:none;margin:0}.message-check input{accent-color:#087d6b;width:16px;height:16px}.bubble .message-check{float:left;margin:2px 8px 0 0}.mail-list-row .message-check{padding:4px}.mail-row .mail-avatar{width:32px;height:32px}.mail-main .empty{padding:70px 20px}
@media(max-width:850px){.comms{grid-template-columns:190px minmax(0,1fr)}.comms-sidebar{padding:10px!important}.mail-date{max-width:85px;white-space:normal;text-align:right}.chat-header,.mail-heading{padding:10px 12px}}
@media(max-width:650px){.comms{grid-template-columns:minmax(0,1fr);min-height:0}.comms-sidebar{border-right:0!important;border-bottom:1px solid #e1e8e6!important}.comms-sidebar .comms-title{margin:0 0 8px}.comms-sidebar .peer{display:inline-flex;max-width:100%;width:auto;padding:7px 8px;margin:2px}.mail-layout .comms-sidebar .peer{font-size:11px}.comms-sidebar .comms-searchbox{margin-bottom:6px}.chat-messages{height:280px;min-height:190px;padding:10px}.chat-person h2{font-size:13px}.chat-person .avatar{width:29px;height:29px}.chat-form{padding:9px}.mail-row{padding:10px 7px;gap:7px}.mail-row .mail-avatar{width:27px;height:27px}.mail-date{font-size:9px;max-width:64px}.mail-list-text small{font-size:11px}.mail-list-text strong{font-size:12px}.mail-main>.mail-tools{padding:8px}.mail-main>.mail-subject,.mail-main>p{margin-left:12px;margin-right:12px}}

/* Clarity identity: the same approved mark throughout, softly animated. */
.brand-mark{overflow:visible;transform-origin:center;animation:clarity-life 5.5s ease-in-out infinite}.brand-mark path:nth-child(2){transform-origin:50% 50%;animation:clarity-arrow 5.5s ease-in-out infinite}.brand:hover .brand-mark,.comms-brand:hover .brand-mark{filter:drop-shadow(0 0 3px #2bcba77a)}@keyframes clarity-life{0%,65%,100%{transform:scale(1);opacity:1}80%{transform:scale(1.06);opacity:.92}}@keyframes clarity-arrow{0%,65%,100%{transform:translate(0,0)}80%{transform:translate(1px,-1px)}}@media(prefers-reduced-motion:reduce){.brand-mark,.brand-mark path:nth-child(2){animation:none}}
.comms-brand{display:flex;align-items:center;gap:7px;min-width:0;color:#172333}.comms-brand .brand-mark{width:26px;height:26px;color:#087d6b}.comms-brand .brand-word{font-size:21px;letter-spacing:-.8px}.comms-brand .brand-word>span{color:#087d6b}.comms-brand-label{border-left:1px solid #d4e2de;padding-left:8px;margin-left:3px;white-space:nowrap;color:#687f82;font-size:12px;font-weight:600}.company-brand-fields{background:#f4f8f6;border:1px solid #dde9e4;border-radius:9px;padding:14px}.brand-fields-heading{display:flex;align-items:center;gap:7px;color:#087d6b;font-size:13px;font-weight:700;margin-bottom:12px}.company-brand-fields label:last-child{margin-bottom:0}.mail-brand-preview{display:flex;gap:10px;align-items:center;border-top:1px solid #e1e8e6;padding:14px 0;margin:15px 0;color:#405c5a}.mail-main>.mail-brand-preview{margin:15px 18px}.mail-brand-preview img{display:block;max-width:140px;max-height:65px;object-fit:contain}.company-brand-fields .mail-brand-preview{border:0;margin:0 0 10px;padding:0}.company-brand-fields input[type=file]{width:100%}

/* Mail icon rail: navigation labels are available on hover and for assistive technology. */
.mail-layout{grid-template-columns:62px minmax(0,1fr)}.mail-layout>.comms-sidebar{display:flex;flex-direction:column;align-items:center;padding:12px 8px!important;gap:7px}.mail-layout .comms-title{margin:4px 0 8px}.mail-layout .comms-brand .brand-mark{width:29px;height:29px}.mail-layout .comms-brand .brand-word,.mail-layout .comms-brand-label{display:none}.mail-layout .comms-sidebar .mail-tools{display:flex;flex-direction:column;align-items:center;gap:6px;margin:0 0 3px}.mail-layout .comms-sidebar .mail-tools button{width:38px;height:38px}.mail-layout #composeMail{background:#087d6b;color:white}.mail-layout #composeMail:hover{background:#0d9488}.mail-layout .mail-source{flex-direction:column;width:100%;align-items:center;padding:4px 0;margin:3px 0;background:transparent;border-top:1px solid #e0e8e4;border-bottom:1px solid #e0e8e4;border-radius:0;gap:4px}.mail-layout .mail-source button{background:transparent;width:38px;height:34px;padding:6px;color:#647d76}.mail-layout .mail-source button[aria-pressed=true]{background:#e0eee7;color:#087d6b}.mail-layout .comms-sidebar .folder-icon{position:relative;width:39px;height:39px;padding:8px;justify-content:center;align-items:center;margin:0;gap:0}.mail-layout .folder-icon .ui-icon{width:21px;height:21px}.mail-layout .folder-count{position:absolute;right:-4px;top:-4px;background:#087d6b;color:white!important;font-size:9px;min-width:15px;padding:2px 4px;border-radius:10px;margin:0!important;line-height:1.2}.mail-layout .folder-icon.selected{box-shadow:inset 2px 0 0 #087d6b}.mail-heading-actions{align-items:center}.mail-heading-search{margin:0;max-width:170px}.mail-heading-search input{width:115px}.mail-layout .mail-heading{min-height:60px}
@media(max-width:850px){.mail-layout{grid-template-columns:56px minmax(0,1fr)}.mail-layout>.comms-sidebar{padding:10px 5px!important}.mail-heading-search{max-width:125px}.mail-heading-search input{width:82px}}
@media(max-width:650px){.mail-layout{grid-template-columns:48px minmax(0,1fr)}.mail-layout>.comms-sidebar{border-right:1px solid #e1e8e6!important;border-bottom:0!important;padding:8px 4px!important;gap:5px}.mail-layout .comms-sidebar .folder-icon,.mail-layout .comms-sidebar .mail-tools button,.mail-layout .mail-source button{width:34px;height:34px}.mail-layout .folder-icon .ui-icon{width:19px;height:19px}.mail-layout .mail-heading{padding:8px;gap:5px;flex-wrap:wrap}.mail-heading-actions{gap:4px}.mail-heading-search{max-width:111px}.mail-heading-search input{width:65px}.mail-layout .mail-heading h2{font-size:13px}.mail-layout .mail-row .mail-avatar{display:none}.mail-layout .comms-brand .brand-mark{width:25px;height:25px}.mail-layout .mail-date{max-width:45px}}

/* The outline stays still; only the arrow rises inside the Clarity mark. */
.brand-mark{animation:none;overflow:visible}.brand-mark path:nth-child(2){animation:clarity-inner-arrow 3.4s ease-in-out infinite;transform-origin:center;transform-box:fill-box}@keyframes clarity-inner-arrow{0%,100%{transform:translate(-1.5px,1.5px);opacity:.78}38%,58%{transform:translate(2px,-2px);opacity:1}}@media(prefers-reduced-motion:reduce){.brand-mark path:nth-child(2){animation:none}}
/* Rotating compass-like arrow, finishing pointed towards the word Clarity. */
.brand-mark path:nth-child(2){transform:rotate(45deg);animation:clarity-compass 4.8s ease-in-out infinite;transform-origin:50% 50%;transform-box:fill-box;opacity:1}
@keyframes clarity-compass{0%,12%{transform:rotate(45deg)}70%,100%{transform:rotate(405deg)}}
@media(prefers-reduced-motion:reduce){.brand-mark path:nth-child(2){animation:none;transform:rotate(45deg)}}
/* Point towards the word, without rotation: two short directional nudges. */
.brand-mark path:nth-child(2){transform:translateX(-1px) rotate(45deg);animation:clarity-point 3.2s ease-in-out infinite}
@keyframes clarity-point{0%,44%,100%{transform:translateX(-1px) rotate(45deg)}12%,32%{transform:translateX(3.5px) rotate(45deg)}22%{transform:translateX(-1px) rotate(45deg)}}
@media(prefers-reduced-motion:reduce){.brand-mark path:nth-child(2){animation:none;transform:rotate(45deg)}}
/* On hover, the arrow leaves the open right edge and taps the Clarity word. */
.brand-mark{position:relative;z-index:1;overflow:visible}
.brand:hover .brand-mark path:nth-child(2),.comms-brand:hover .brand-mark path:nth-child(2),.brand:focus-visible .brand-mark path:nth-child(2){animation:clarity-hover-tap 1.8s ease-in-out infinite}
@keyframes clarity-hover-tap{0%,100%{transform:translateX(-1px) rotate(45deg)}24%,44%{transform:translateX(23px) rotate(45deg)}34%{transform:translateX(17px) rotate(45deg)}68%{transform:translateX(-1px) rotate(45deg)}}
@media(prefers-reduced-motion:reduce){.brand:hover .brand-mark path:nth-child(2),.comms-brand:hover .brand-mark path:nth-child(2),.brand:focus-visible .brand-mark path:nth-child(2){animation:none;transform:rotate(45deg)}}
/* At rest the arrow is still; on hover its tip reaches the initial C. */
.brand-mark path:nth-child(2){animation:none;transform:translateX(0) rotate(45deg)}
.brand .brand-word,.comms-brand .brand-word{position:relative}
.brand:hover .brand-mark path:nth-child(2),.comms-brand:hover .brand-mark path:nth-child(2),.brand:focus-visible .brand-mark path:nth-child(2){animation:clarity-touch-word 1.7s ease-in-out infinite}
@keyframes clarity-touch-word{0%,100%{transform:translateX(0) rotate(45deg)}24%,46%{transform:translateX(31px) rotate(45deg)}34%{transform:translateX(21px) rotate(45deg)}70%{transform:translateX(0) rotate(45deg)}}
@media(prefers-reduced-motion:reduce){.brand:hover .brand-mark path:nth-child(2),.comms-brand:hover .brand-mark path:nth-child(2),.brand:focus-visible .brand-mark path:nth-child(2){animation:none;transform:rotate(45deg)}}
/* Stop the arrow just short of the word with a visible gap. */
@keyframes clarity-touch-word{0%,100%{transform:translateX(0) rotate(45deg)}24%,46%{transform:translateX(17px) rotate(45deg)}34%{transform:translateX(10px) rotate(45deg)}70%{transform:translateX(0) rotate(45deg)}}

/* Chat rail matches the mail rail; actions remain icon-only. */
.chat-layout.chat-rail{grid-template-columns:62px minmax(0,1fr)}.chat-rail>.comms-sidebar{display:flex;flex-direction:column;align-items:center;padding:12px 8px!important;gap:7px}.chat-rail .comms-title{margin:4px 0 8px}.chat-rail .comms-brand .brand-mark{width:29px;height:29px}.chat-rail .comms-brand .brand-word,.chat-rail .comms-brand-label{display:none}.chat-rail-tools{display:flex;flex-direction:column;align-items:center;gap:6px;padding-bottom:9px;border-bottom:1px solid #e0e8e4;width:100%}.chat-rail-tools .comms-icon{width:38px;height:38px}.comms-icon.is-active{background:#dceee8;color:#087d6b}.chat-rail #chatPeerList{display:flex;flex-direction:column;gap:7px;align-items:center;width:100%}.chat-rail .chat-peer{position:relative;width:40px;height:40px;justify-content:center;padding:3px;margin:0}.chat-peer .avatar{width:31px;height:31px}.chat-peer.selected{box-shadow:inset 2px 0 #087d6b}.chat-peer .folder-count{position:absolute;right:-3px;top:-2px;background:#087d6b;color:white!important;font-size:9px;min-width:15px;text-align:center;border-radius:10px;padding:2px 4px;margin:0!important}.pin-badge{position:absolute;bottom:-3px;right:-3px;color:#087d6b;background:#fff;border-radius:6px;padding:1px!important}.pin-badge .ui-icon{width:12px;height:12px}.chat-header-actions{display:flex;align-items:center;gap:8px;min-width:0}.chat-heading-search{margin:0;width:140px;min-width:70px}.chat-header-actions .mail-tools{gap:5px}.chat-messages .bubble{position:relative;margin:16px 0}.bubble-actions{position:absolute;top:-14px;right:0;display:flex;gap:3px;opacity:0;transition:opacity .15s;background:#fff;border:1px solid #e1e8e6;border-radius:7px;padding:3px;box-shadow:0 2px 6px #22332212;z-index:1}.bubble:hover .bubble-actions,.bubble:focus-within .bubble-actions{opacity:1}.bubble-actions .comms-icon{height:26px;width:26px;padding:4px}.bubble-actions .ui-icon{width:15px;height:15px}.bubble small .ui-icon{width:11px;height:11px}.quoted-message{display:flex;align-items:center;gap:6px;background:#eff5f1;color:#41756a;border-left:3px solid #087d6b;border-radius:4px;text-align:left;padding:6px 8px;margin-bottom:6px;font-size:11px;max-width:100%;overflow-wrap:anywhere}.quoted-message .ui-icon{width:14px;height:14px}.chat-reply{grid-column:1/-1;display:flex;align-items:center;gap:8px;background:#edf6f2;border-left:3px solid #087d6b;border-radius:5px;padding:7px;color:#526d65;font-size:12px;grid-row:1}.chat-reply span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-form:has(.chat-reply:not([hidden])){grid-template-rows:auto auto auto}.chat-form:has(.chat-reply:not([hidden])) .attach-button,.chat-form:has(.chat-reply:not([hidden])) input[name=body],.chat-form:has(.chat-reply:not([hidden]))>button[type=submit]{grid-row:2}.chat-form:has(.chat-reply:not([hidden])) .media-tools{grid-row:3}
@media(max-width:850px){.chat-layout.chat-rail{grid-template-columns:56px minmax(0,1fr)}.chat-heading-search{width:95px}.chat-header-actions{gap:5px}.chat-rail>.comms-sidebar{padding:10px 5px!important}}
@media(max-width:650px){.chat-layout.chat-rail{grid-template-columns:48px minmax(0,1fr)}.chat-rail>.comms-sidebar{border-right:1px solid #e1e8e6!important;border-bottom:0!important;padding:8px 4px!important}.chat-rail .comms-brand .brand-mark{width:25px;height:25px}.chat-rail-tools .comms-icon,.chat-rail .chat-peer{width:34px;height:34px}.chat-header{flex-wrap:wrap;gap:6px}.chat-header-actions{width:100%;justify-content:space-between}.chat-heading-search{width:85px}.chat-header-actions .mail-tools .comms-icon{height:28px;width:28px}.chat-person .avatar{width:26px;height:26px}.chat-messages .bubble{max-width:90%}.bubble-actions{opacity:1;top:-17px}.chat-form .media-tools{gap:3px}.chat-form .media-tools .comms-icon{width:27px;height:27px}.chat-form .attach-button{width:32px;height:32px}.chat-form>button[type=submit]{width:32px;height:32px}}
/* Connection traffic light, with a tooltip and no visible text. */
.topbar .connection{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:6px 7px;margin:0;border:1px solid var(--shell-line);border-radius:10px;background:#172b3b;flex-shrink:0}.topbar .connection i{width:7px;height:7px;border-radius:50%;background:#40515f;box-shadow:none;transition:background .2s,box-shadow .2s}.topbar .connection[data-state=green] i:first-child{background:#36d399;box-shadow:0 0 6px #36d39988}.topbar .connection[data-state=yellow] i:nth-child(2){background:#f0c34d;box-shadow:0 0 6px #f0c34d88}.topbar .connection[data-state=red] i:last-child{background:#f05f64;box-shadow:0 0 6px #f05f6488}
@media(max-width:650px){.topbar .connection{display:inline-flex;padding:4px;gap:3px}.topbar .connection i{width:5px;height:5px}}
/* Vertical traffic light and compact company/profile selectors. */
.topbar .connection{flex-direction:column-reverse;gap:3px;padding:4px 5px;border-radius:8px}.topbar .connection i{width:6px;height:6px}.topbar .company-control{position:relative;width:36px;height:36px;padding:0;display:grid;place-items:center;overflow:hidden;cursor:pointer}.topbar .company-control>.ui-icon,.topbar .company-control>[data-icon]{display:block;color:#d9e7ec}.topbar .company-control>[data-icon] .ui-icon{width:18px;height:18px}.topbar .company-control select{position:absolute;inset:0;width:100%;height:100%;max-width:none;opacity:0;cursor:pointer;padding:0}.topbar .company-control:focus-within{outline:2px solid #2bcba7;outline-offset:2px}.topbar .company-control:hover{background:#355162}.topbar .profile>div{display:none}.topbar .profile{padding-left:6px;cursor:default}
@media(max-width:900px){.topbar .company-control{width:32px;height:32px}}
@media(max-width:650px){.topbar .company-control{width:31px;height:31px}.topbar .connection{padding:3px 4px;gap:2px}.topbar .connection i{width:5px;height:5px}}

/* Chat controls share one vertical rail on the right. */
.chat-layout.chat-rail .chat-main{display:grid;grid-template-columns:minmax(0,1fr) 52px;grid-template-rows:auto minmax(250px,1fr) auto;position:relative;min-height:440px}.chat-rail .chat-header{grid-column:1;grid-row:1}.chat-rail .chat-messages{grid-column:1;grid-row:2;min-height:250px;height:auto;max-height:55vh}.chat-rail .chat-form{grid-column:1;grid-row:3;display:flex;flex-direction:column;gap:6px;padding:12px}.chat-rail .chat-form input[name=body]{width:100%;flex:1;min-height:40px}.chat-rail .chat-reply{width:100%}.chat-action-rail{grid-column:2;grid-row:1/-1;display:flex;flex-direction:column;align-items:center;gap:7px;background:#f8faf9;border-left:1px solid #e1e8e6;padding:12px 6px;min-height:0;overflow-y:auto;scrollbar-width:none}.chat-action-rail .mail-tools,.chat-action-rail .chat-compose-tools,.chat-action-rail .media-tools{display:flex;flex-direction:column;align-items:center;gap:6px;flex-wrap:nowrap;width:100%;margin:0}.chat-action-rail .chat-compose-tools{padding-top:10px;margin-top:auto;border-top:1px solid #e1e8e6}.chat-action-rail .comms-icon,.chat-action-rail .attach-button{width:34px;height:34px;flex-shrink:0}.chat-action-rail .attach-button{background:#eef3f1;color:#45635c}.chat-action-rail .file-count{margin:0;text-align:center;font-size:9px;line-height:1.2;overflow-wrap:anywhere}.chat-action-rail .chat-send-side{width:38px;height:38px;background:#087d6b;color:white}.chat-rail .chat-header-actions{width:auto}.chat-rail .chat-messages .bubble-actions{flex-direction:column;top:0;right:-27px;padding:2px;gap:2px}.chat-rail .chat-messages .bubble.mine .bubble-actions{right:auto;left:-30px}.chat-rail .bubble-actions .comms-icon{width:23px;height:23px}
@media(max-width:650px){.chat-layout.chat-rail .chat-main{grid-template-columns:minmax(0,1fr) 43px;min-height:360px;grid-template-rows:auto minmax(190px,1fr) auto}.chat-action-rail{padding:8px 4px;gap:5px}.chat-action-rail .mail-tools,.chat-action-rail .media-tools,.chat-action-rail .chat-compose-tools{gap:4px}.chat-action-rail .comms-icon,.chat-action-rail .attach-button{width:30px;height:30px}.chat-action-rail .chat-send-side{width:32px;height:32px}.chat-rail .chat-header{flex-wrap:wrap}.chat-rail .chat-header-actions{width:100%}.chat-rail .chat-heading-search{width:100%}.chat-rail .chat-messages{min-height:190px;max-height:48vh;padding:10px 19px}.chat-rail .chat-messages .bubble{max-width:82%}.chat-rail .bubble-actions .comms-icon{width:21px;height:21px}.chat-rail .chat-messages .bubble-actions{right:-25px}.chat-rail .chat-messages .bubble.mine .bubble-actions{left:-25px}}
/* All chat actions are grouped in the left rail, like the mail client. */
.chat-layout.chat-rail .chat-main{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(250px,1fr) auto}
.chat-rail .chat-action-rail{width:100%;border-left:0;border-top:1px solid #e1e8e6;background:transparent;padding:9px 0 0;gap:6px;overflow:visible;grid-column:auto;grid-row:auto}.chat-rail .chat-action-rail .chat-compose-tools{margin-top:4px;padding-top:9px}.chat-rail .chat-action-rail .mail-tools,.chat-rail .chat-action-rail .chat-compose-tools,.chat-rail .chat-action-rail .media-tools{gap:5px}.chat-rail .chat-messages .bubble-actions,.chat-rail .chat-messages .bubble.mine .bubble-actions{right:auto;left:-30px;flex-direction:column}.chat-rail .chat-messages{padding-left:39px}.chat-rail .chat-header-actions{width:auto}
@media(max-width:650px){.chat-layout.chat-rail .chat-main{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(190px,1fr) auto}.chat-rail .chat-action-rail{padding:6px 0 0;gap:4px}.chat-rail .chat-action-rail .chat-compose-tools{padding-top:6px}.chat-rail .chat-action-rail .media-tools,.chat-rail .chat-action-rail .mail-tools{gap:3px}.chat-rail .chat-messages{padding-left:34px}.chat-rail .chat-messages .bubble-actions,.chat-rail .chat-messages .bubble.mine .bubble-actions{left:-25px}}
.chat-action-rail .comms-icon:disabled{opacity:.35;cursor:not-allowed}

/* One right-side chat rail: all global chat actions and contacts vertically. */
.chat-layout.chat-rail{grid-template-columns:minmax(0,1fr) 62px}.chat-layout.chat-rail>.comms-sidebar{grid-column:2;grid-row:1;border-right:0!important;border-left:1px solid #e1e8e6!important}.chat-layout.chat-rail>.chat-main{grid-column:1;grid-row:1}.chat-rail .chat-messages{padding-left:18px;padding-right:39px}.chat-rail .chat-messages .bubble-actions,.chat-rail .chat-messages .bubble.mine .bubble-actions{left:auto;right:-30px;flex-direction:column}.chat-rail .chat-peer.selected{box-shadow:inset -2px 0 #087d6b}
@media(max-width:850px){.chat-layout.chat-rail{grid-template-columns:minmax(0,1fr) 56px}}
@media(max-width:650px){.chat-layout.chat-rail{grid-template-columns:minmax(0,1fr) 48px}.chat-layout.chat-rail>.comms-sidebar{border-left:1px solid #e1e8e6!important;border-right:0!important}.chat-rail .chat-messages{padding-left:10px;padding-right:34px}.chat-rail .chat-messages .bubble-actions,.chat-rail .chat-messages .bubble.mine .bubble-actions{left:auto;right:-25px}}
.chat-action-rail .attach-button{position:relative;display:grid;place-items:center;padding:6px;border-radius:7px;overflow:hidden;cursor:pointer;margin:0}.chat-action-rail .attach-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}

/* Collapsed main sidebar retains all allowed section icons. */
#compactNav{display:none}#app.sidebar-collapsed>aside #compactNav{display:flex;flex-direction:column;gap:8px;align-items:center;padding:3px 4px 8px;overflow-y:auto;scrollbar-width:none}#app.sidebar-collapsed #compactNav .compact-nav-group{display:flex;flex-direction:column;gap:4px;width:100%;padding-bottom:6px;border-bottom:1px solid var(--shell-line)}#app.sidebar-collapsed #compactNav .compact-nav-group:last-child{border-bottom:0}#app.sidebar-collapsed #compactNav button{width:36px;height:36px;padding:8px;margin:0 auto;justify-content:center;align-items:center}#app.sidebar-collapsed #compactNav button .ui-icon{width:19px;height:19px}#app.sidebar-collapsed #compactNav button.active{background:#194842;color:#2bcba7;box-shadow:inset 2px 0 #2bcba7}
.chat-rail .chat-messages{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.chat-rail .chat-messages .bubble{align-self:flex-start;max-width:75%;margin:9px 0;background:#fff;border-color:#e1e8e6;border-radius:12px 12px 12px 3px}.chat-rail .chat-messages .bubble.mine{align-self:flex-end;margin-left:auto;background:#dff2e9;border-color:#c3e4d4;border-radius:12px 12px 3px 12px}.chat-rail .chat-messages .bubble.mine .quoted-message{background:#f2faf5;border-left:3px solid #087d6b}.chat-rail .chat-messages .empty{align-self:center;width:100%}
@media(max-width:650px){#app.sidebar-collapsed>aside.open #compactNav{display:none}#app.sidebar-collapsed>aside.open #nav{display:block}.chat-rail .chat-messages .bubble{max-width:84%}}
/* Compact header keeps every action accessible, matching the collapsed sidebar. */
#app.header-collapsed>.topbar{display:flex;align-items:center;justify-content:space-between;min-height:40px;padding:4px 12px;gap:8px}#app.header-collapsed>.topbar .topbar-right{display:flex;align-items:center;gap:5px;margin-left:auto}#app.header-collapsed>.topbar .topbar-left{gap:5px}#app.header-collapsed>.topbar .shell-shortcut,#app.header-collapsed>.topbar .company-control{width:30px;height:30px;padding:5px}#app.header-collapsed>.topbar .shell-shortcut .ui-icon{width:16px;height:16px}#app.header-collapsed>.topbar .header-actions{gap:5px}#app.header-collapsed>.topbar .profile{border-left:0;padding:0}#app.header-collapsed>.topbar .profile .avatar{width:28px;height:28px;font-size:13px}#app.header-collapsed>.topbar .connection{padding:3px 4px;gap:2px}#app.header-collapsed>.topbar .connection i{width:5px;height:5px}
@media(max-width:650px){#app.header-collapsed>.topbar{padding:4px 7px;gap:5px}#app.header-collapsed>.topbar .topbar-right,#app.header-collapsed>.topbar .header-actions{gap:3px}#app.header-collapsed>.topbar .shell-shortcut,#app.header-collapsed>.topbar .company-control{width:26px;height:28px;padding:4px}#app.header-collapsed>.topbar .support-link,#app.header-collapsed>.topbar .profile{display:none}#app.header-collapsed>.topbar .topbar-left .mobile{padding:4px}#app.header-collapsed>.topbar .chrome-toggle{padding:4px 5px}}

/* Compact masonry dashboard: shorter cards do not leave empty grid-row gaps. */
.dashboard-grid{grid-auto-rows:1px;grid-auto-flow:row dense;row-gap:11px;column-gap:14px;align-items:start}.dashboard-grid>.dashboard-widget,.dashboard-grid>.panel{min-width:0;align-self:start}.dashboard-grid>.widget-summary{grid-column:1/-1}
@media(max-width:760px){.dashboard-grid{grid-template-columns:minmax(0,1fr);row-gap:11px}}

/* Grab a card by its six-dot handle, including touch and keyboard navigation. */
.dashboard-widget{position:relative}.widget-grip{position:absolute;top:12px;right:12px;z-index:2;display:grid;place-items:center;width:29px;height:29px;background:transparent;color:#8ca39b;padding:4px;border-radius:6px;cursor:grab;touch-action:none;user-select:none}.widget-grip:hover,.widget-grip:focus-visible{background:#e6f2ed;color:#087d6b;outline:none}.widget-grip .ui-icon{width:19px;height:19px}.widget-heading{padding-right:31px}.widget-summary>.widget-grip{top:9px;right:9px;background:#f2f7f5}.widget-dragging{opacity:.45;outline:1px dashed #087d6b}.widget-drag-active,.widget-drag-active *{cursor:grabbing!important}.widget-drag-ghost{position:fixed;z-index:200;pointer-events:none;display:flex;align-items:center;gap:7px;background:#112334;color:#fff;padding:12px 15px;border-radius:8px;box-shadow:0 8px 25px #11233433;font-size:13px;font-weight:650}.dashboard-widget.drop-before{outline:2px solid #0d9488;box-shadow:0 -5px 0 #0d9488}.dashboard-widget.drop-after{outline:2px solid #0d9488;box-shadow:0 5px 0 #0d9488}.dashboard-widget.widget-saved{outline:1px solid #52ac97}
.topbar .shell-shortcut.is-active{background:#1d5148;color:#8af0cf}.topbar .shell-shortcut.has-unread{position:relative}.topbar .shell-shortcut.has-unread::after{content:attr(data-unread);position:absolute;right:-4px;top:-4px;background:#2bcba7;color:#112334;border-radius:9px;font-size:9px;font-weight:700;min-width:13px;padding:2px 3px;line-height:1.1}.install-guide img{display:block;width:70px;height:70px;border-radius:13px;margin:0 auto 18px}.install-guide p{line-height:1.7;margin:10px 0;color:#526d65;font-size:13px}
@media(max-width:650px){.topbar .topbar-right,.topbar .header-actions{gap:3px}.topbar .shell-shortcut,.topbar .company-control{width:28px;height:30px}.topbar .shell-shortcut .ui-icon{width:16px;height:16px}}
/* Every dashboard metric is independently movable; larger cards occupy two columns. */
.dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-grid>.dashboard-widget{grid-column:span 2}.dashboard-grid>.widget-kpi{grid-column:span 1;padding:0;border:0;background:transparent}.widget-kpi .widget-heading{display:none}.widget-kpi>.card{padding-right:36px;height:100%;min-height:116px}.widget-kpi>.widget-grip{top:8px;right:7px}.widget-kpi .value{font-size:clamp(19px,2vw,27px)}#backFull{display:none;position:sticky;top:0;z-index:4;width:max-content;margin-bottom:8px}#app.workspace-full #backFull:not([hidden]){display:flex}#app.workspace-full #backFull:not([hidden])+#exitFull{margin-top:-43px}#backOverview .ui-icon{width:19px;height:19px}
@media(max-width:1050px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid>.dashboard-widget{grid-column:span 1}}
@media(max-width:760px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid>.dashboard-widget{grid-column:1/-1}.dashboard-grid>.widget-kpi{grid-column:span 1}.widget-kpi>.card{min-height:108px;padding:12px 28px 12px 12px}.widget-kpi .value{font-size:19px}.widget-kpi .muted{font-size:10px}}

/* Clarity design principles: light typography, quiet controls, subtle separation. */
:root{--quiet-border:#e6ebe9;--quiet-text:#33464d;--quiet-accent:#087d6b;--quiet-hover:#eef4f1}
body{font-weight:400;color:#263941}a,a:hover,a:focus{text-decoration:none}a:hover{color:var(--quiet-accent)}h1,h2,h3,h4{font-weight:550;letter-spacing:-.15px}#app h1{font-weight:550}#app .workspace-title h1{font-weight:550}strong,b{font-weight:550}label{font-weight:450}th{font-weight:500}.value{font-weight:550;letter-spacing:-.6px}.brand-word{font-weight:650}.sidebar-footer,.muted{font-weight:400}.dashboard-widget .widget-heading h2,.chat-person h2,.mail-heading h2,.comms-title h2,.mail-row strong,.app-footer h3{font-weight:500}.brand-fields-heading{font-weight:500}.topbar .profile strong{font-weight:500}
button{font-weight:450;letter-spacing:0;box-shadow:none;transition:background .15s,color .15s}button:hover{filter:none}button.secondary,.comms-icon,.widget-link,.reorder{background:transparent;color:#526d65;border:1px solid transparent}button.secondary:hover,.comms-icon:hover,.widget-link:hover,.reorder:hover{background:var(--quiet-hover);color:#087d6b}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:1px solid #35a58d;outline-offset:2px}.panel,.card,.dashboard-widget,.comms{border-color:var(--quiet-border);box-shadow:none}.panel,.card{border-radius:9px}.bubble,.bubble.mine{box-shadow:none;border-color:#e8eeeb}.bubble.mine{background:#eaf5ef}.comms-sidebar{background:#f8faf9}.mail-row.unread{background:#f1f7f3}.comms-sidebar .peer.selected{background:#edf5f0;color:#087d6b;font-weight:500}.mail-layout .folder-icon.selected,.chat-rail .chat-peer.selected{box-shadow:none}.comms-icon.is-active,.topbar .shell-shortcut.is-active{background:transparent;color:#087d6b}.chat-rail .comms-icon.is-active{background:#edf5f0}.mail-layout .mail-source button[aria-pressed=true]{background:#edf5f0}.mail-layout #composeMail{background:transparent;color:#087d6b}.mail-layout #composeMail:hover{background:#edf5f0;color:#087d6b}.chat-action-rail .chat-send-side,.comms-icon.primary-shortcut{background:#e5f2ec;color:#087d6b}.chat-action-rail .chat-send-side:hover,.comms-icon.primary-shortcut:hover{background:#d6eae0;color:#087d6b}.attach-button,.chat-action-rail .attach-button{background:transparent;color:#526d65}.attach-button:hover,.chat-action-rail .attach-button:hover{background:#edf5f0}.chat-reply,.quoted-message,.chat-rail .chat-messages .bubble.mine .quoted-message{border-left-width:1px;background:#f4f8f6}.message-file a{color:#087d6b;text-decoration:none}.message-check input{accent-color:#087d6b}
.topbar .shell-shortcut,.topbar .company-control,.chrome-toggle,.topbar .top-logout{background:transparent;border-color:transparent;color:#afc2cc}.topbar .shell-shortcut:hover,.topbar .company-control:hover,.chrome-toggle:hover,.topbar .top-logout:hover{background:#203747;color:#edf5f6}.topbar .primary-shortcut{background:transparent;border-color:transparent;color:#5ad5b5}.topbar .primary-shortcut:hover{background:#203d3c;color:#8af0cf}.topbar .shell-shortcut.is-active{color:#70dcb9}.topbar .company-control:focus-within{outline:1px solid #2bcba7}.topbar .connection{border-color:transparent;background:transparent}.topbar .profile .avatar{background:#203e3a;color:#9cdac9;font-weight:500}.nav-group summary,.side-heading{font-weight:500;letter-spacing:.65px}nav button{font-weight:400}nav button.active{background:#173d3b;color:#79ddc4;border-left:0}#app.sidebar-collapsed #compactNav button.active{background:transparent;color:#4bceb0;box-shadow:none}.sidebar-footer{border-top-color:#263a49}.app-footer .footer-bottom{font-weight:400}.widget-grip:hover,.widget-grip:focus-visible{background:#f0f5f2}.widget-summary>.widget-grip{background:transparent}.widget-heading .widget-link{background:transparent}.widget-dragging{outline:1px dashed #087d6b}.dashboard-widget.drop-before,.dashboard-widget.drop-after{outline:1px solid #0d9488;box-shadow:none}.dashboard-widget.widget-saved{outline:1px solid #86b8ac}.notice{border-left:1px solid #d9a129;background:#fffcf2;box-shadow:none}.permissions,.company-brand-fields{border-color:#e6ebe9;background:#f8faf9}.bubble-actions{border-color:#e6ebe9;box-shadow:none}.mail-bulk{background:#f6f9f7}.security-notice{background:#f1f6f3}.search-result:hover{background:#f4f8f6}
.login-card button:not(#demo),#editor>button[type=submit],#editor>button:not([type]),.camera-actions #cameraUse,.camera-actions #cameraSnap{background:#087d6b;color:#fff;font-weight:500}.login-card #demo{background:transparent;color:#087d6b;border:1px solid #dce8e1}.login-card #demo:hover{background:#f1f7f4}.login-card{box-shadow:none}.camera-head-actions button{background:transparent}.camera-actions button:disabled{opacity:.45}
/* Chat actions live on the left, consistent with mail. */
.chat-layout.chat-rail{grid-template-columns:62px minmax(0,1fr)}.chat-layout.chat-rail>.comms-sidebar{grid-column:1;grid-row:1;border-left:0!important;border-right:1px solid #e6ebe9!important}.chat-layout.chat-rail>.chat-main{grid-column:2;grid-row:1}.chat-rail .chat-messages{padding-left:39px;padding-right:18px}.chat-rail .chat-messages .bubble-actions,.chat-rail .chat-messages .bubble.mine .bubble-actions{right:auto;left:-30px}
@media(max-width:850px){.chat-layout.chat-rail{grid-template-columns:56px minmax(0,1fr)}}
@media(max-width:650px){.chat-layout.chat-rail{grid-template-columns:48px minmax(0,1fr)}.chat-layout.chat-rail>.comms-sidebar{border-left:0!important;border-right:1px solid #e6ebe9!important}.chat-rail .chat-messages{padding-left:34px;padding-right:10px}.chat-rail .chat-messages .bubble-actions,.chat-rail .chat-messages .bubble.mine .bubble-actions{right:auto;left:-25px}}
.emoji-dialog{width:min(350px,calc(100% - 24px));padding:17px}.emoji-dialog .modalhead{margin-bottom:10px}.emoji-dialog h2{font-size:16px;font-weight:500}.business-emoji-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.business-emoji-grid button{background:transparent;color:inherit;border:0;padding:7px 2px;font-size:23px;line-height:1.2;border-radius:6px;cursor:pointer}.business-emoji-grid button:hover{background:#edf5f0}
/* Return control belongs to the open block, not the global header. */
#content .block-back{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;padding:5px;color:#728981;background:transparent;border:0;border-radius:6px;vertical-align:middle;margin:0 8px 8px 0}#content .block-back:hover{color:#087d6b;background:#edf5f0}#content .toolbar>.block-back{margin:0 4px 0 0}#content .comms-sidebar>.block-back{width:34px;height:34px;margin:0;color:#607d75}#content .block-back .ui-icon{width:19px;height:19px}#content .panel>.block-back:not([hidden]){display:inline-flex}#content .block-back[hidden]{display:none!important}@media(max-width:650px){#content .comms-sidebar>.block-back{width:30px;height:30px}}

/* Compact overview, full details only after opening a card. */
.dashboard-widget .widget-entry{position:absolute;top:12px;right:43px;width:29px;height:29px;padding:5px;z-index:2;background:transparent;color:#728981}.dashboard-widget .widget-entry:hover{background:#edf5f0;color:#087d6b}.dashboard-widget .widget-heading{padding-right:62px;margin-bottom:10px}.dashboard-widget:not(.widget-kpi){padding:14px 16px}.dashboard-widget .row{padding:9px 0;gap:8px;font-size:13px}.dashboard-widget .bar{height:5px;margin:5px 0}.dashboard-widget .empty{padding:20px}.widget-kpi>.card{height:auto;min-height:104px;padding:13px 55px 13px 14px}.widget-kpi .widget-entry{top:8px;right:36px}.widget-kpi .value{white-space:nowrap;font-size:clamp(18px,1.8vw,26px)}.detail-panel h2{font-size:15px;margin:20px 0 12px}.detail-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:10px 0}.detail-kpis .card{padding:13px}
@media(min-width:1550px){.dashboard-grid{grid-template-columns:repeat(12,minmax(0,1fr))}.dashboard-grid>.dashboard-widget{grid-column:span 4}.dashboard-grid>.widget-kpi{grid-column:span 3}}
@media(max-width:760px){.widget-kpi>.card{padding:12px 12px 11px;min-height:116px}.widget-kpi .card small{display:block;padding-right:42px}.widget-kpi .value{font-size:19px}.widget-kpi .widget-entry{right:32px}.widget-kpi .widget-grip{right:3px}.dashboard-widget:not(.widget-kpi){padding:12px}.dashboard-widget .widget-heading{padding-right:60px}.detail-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Restore the earlier card dimensions while retaining individual handles and detail arrows. */
.dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-grid>.dashboard-widget{grid-column:span 2}.dashboard-grid>.widget-kpi{grid-column:span 1}.dashboard-widget:not(.widget-kpi){padding:20px}.dashboard-widget .widget-heading{margin-bottom:14px}.dashboard-widget .row{padding:14px 0;gap:12px;font-size:14px}.dashboard-widget .bar{height:7px;margin:7px 0}.dashboard-widget .empty{padding:40px}.widget-kpi>.card{min-height:116px;padding:20px 48px 20px 20px}.widget-kpi .value{font-size:clamp(19px,2vw,27px)}
@media(max-width:1050px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid>.dashboard-widget{grid-column:span 1}}
@media(max-width:760px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid>.dashboard-widget{grid-column:1/-1}.dashboard-grid>.widget-kpi{grid-column:span 1}.widget-kpi>.card{min-height:108px;padding:12px}.widget-kpi .value{font-size:19px}.dashboard-widget:not(.widget-kpi){padding:14px}}
/* The Clarity mark remains visible when the header is collapsed. */
#app.header-collapsed>.topbar .shell-brand{display:inline-flex;padding:0;gap:0;flex:none}#app.header-collapsed>.topbar .shell-brand .brand-mark{width:26px;height:26px}#app.header-collapsed>.topbar .shell-brand .brand-word{display:none}#app.header-collapsed>.topbar .shell-brand .brand-mark path:nth-child(2){animation:none;transform:rotate(45deg)}
@media(max-width:650px){#app.header-collapsed>.topbar .shell-brand .brand-mark{width:21px;height:21px}#app.header-collapsed>.topbar .topbar-left{gap:3px}#app.header-collapsed>.topbar .topbar-right,#app.header-collapsed>.topbar .header-actions{gap:2px}#app.header-collapsed>.topbar .shell-shortcut,#app.header-collapsed>.topbar .company-control{width:25px}}
/* Keep the complete compact brand in the collapsed header. */
#app.header-collapsed>.topbar .shell-brand{gap:6px}#app.header-collapsed>.topbar .shell-brand .brand-word{display:inline-block;font-size:19px;letter-spacing:-.6px}#app.header-collapsed>.topbar .shell-brand:hover .brand-mark path:nth-child(2){animation:clarity-touch-word 1.7s ease-in-out infinite}
@media(max-width:650px){#app.header-collapsed>.topbar .shell-brand{gap:3px}#app.header-collapsed>.topbar .shell-brand .brand-word{font-size:15px}}
@media(prefers-reduced-motion:reduce){#app.header-collapsed>.topbar .shell-brand:hover .brand-mark path:nth-child(2){animation:none}}
