/* IST v5.2 — one brand colour, white surfaces, no decorative accent edges. */
:root,body.dark{--blue:#006ebe;--navy:#006ebe;--text:#006ebe;--muted:rgba(0,110,190,.9);--bg:#fff;--surface:#fff;--border:rgba(0,110,190,.16);--input:rgba(0,110,190,.3);--hover:rgba(0,110,190,.06);--bubble:#006ebe;--danger:#006ebe;--shadow:0 6px 28px rgba(0,110,190,.08);color-scheme:light}
body,.admin-page,.auth-page{background:#fff;color:var(--text)}button,input,textarea,select{border-radius:10px}button:hover{background:var(--hover)}button.primary,.send-button,.danger{background:#006ebe;border-color:#006ebe;color:#fff}button.primary:hover,.send-button:hover,.danger:hover{background:#006ebe;filter:brightness(.95)}a{color:#006ebe}input::placeholder,textarea::placeholder{color:rgba(0,110,190,.9)}.chat-app{grid-template-columns:64px 350px minmax(0,1fr);background:#fff}.rail{padding:18px 8px;background:#fff!important;box-shadow:1px 0 0 var(--border)}.rail-button{width:44px;height:44px;color:#006ebe!important}.rail-button.active{background:#006ebe!important;color:#fff!important}.rail-button.active .fa-solid{color:#fff}.mini-brand{background:#006ebe!important;color:#fff!important;border-radius:12px;font-size:13px}.rail-bottom{gap:12px}.self-avatar{background:#006ebe;color:white}.chat-sidebar{box-shadow:1px 0 0 var(--border);border:0!important}.sidebar-header{height:112px;padding:18px 20px}.sidebar-header h1{font-size:27px;letter-spacing:-1px;font-weight:650}.sidebar-logo{width:134px}.list-search{height:43px;border:1px solid var(--border);background:#fff;margin:0 16px 12px;border-radius:22px}.list-search input{background:transparent;color:#006ebe}.filters{padding:0 16px 14px;scrollbar-width:none}.filters button{background:white;color:#006ebe;border:1px solid var(--border);font-size:12px;padding:5px 12px}.filters button.selected{background:#006ebe;color:#fff;border-color:#006ebe}.chat-row{min-height:78px;margin:0 8px;padding:13px 12px;border-radius:12px!important}.chat-row.active{background:rgba(0,110,190,.08)!important}.chat-row-copy strong{font-weight:600;color:#006ebe}.chat-row-copy small{color:var(--muted)}.avatar{background:white!important;color:#006ebe!important;border:1px solid var(--border)}.unread{background:#006ebe;color:#fff}.conversation-header{height:76px;background:#fff;border-bottom:1px solid var(--border);padding:12px 24px}.chat-identity strong{font-size:16px;font-weight:600}.chat-identity small{font-size:12px}.icon-button{color:#006ebe}.messages{background:#fff!important;background-image:none!important;padding:30px clamp(18px,5vw,80px)}.bubble{background:#fff;border:1px solid var(--border)!important;box-shadow:none;border-radius:4px 16px 16px 16px!important;padding:10px 14px}.mine .bubble{background:#006ebe!important;color:#fff;border:1px solid #006ebe!important;border-radius:16px 4px 16px 16px!important}.mine .bubble p,.mine .bubble a,.mine .bubble small,.mine .message-meta,.mine .receipt-read{color:#fff!important}.mine .bubble .poll-option{color:#006ebe}.mine .bubble .poll-card h3{color:#fff}.mine .bubble .poll-option span,.mine .bubble .poll-option strong{color:#006ebe}.reply-quote{background:rgba(0,110,190,.05);border:0!important;border-radius:8px}.mine .reply-quote{background:rgba(255,255,255,.15);color:#fff}.mine .reply-quote strong{color:#fff}.message.system .bubble{background:#fff!important;color:var(--muted);border:0!important}.message-meta{font-size:10px}.message-actions{border:1px solid var(--border);background:white}.mine .message-actions button{color:#006ebe}.compose-zone{background:white;padding:16px 24px}.composer{border:1px solid var(--input);border-radius:28px;padding:6px 8px;background:white;box-shadow:0 3px 15px rgba(0,110,190,.04)}.composer textarea{font-size:15px}.composer .send-button{height:42px;width:42px}.welcome{background:white!important}.welcome-logo{width:240px;background:white;border:0;padding:0}.welcome h2{margin-top:36px;color:#006ebe;font-size:30px;font-weight:600}.welcome p{color:var(--muted);font-size:15px}.welcome .primary{border-radius:24px;padding:12px 22px}.welcome>small{font-size:12px}.managed-disclosure,.managed-note{border:0!important;border-left:0!important;background:white}.auth-story,.auth-card,.public-hero,.security-section,.feature-grid article,.public-section,.chat-hero{background:#fff!important;background-image:none!important;box-shadow:none}.auth-card{border:1px solid var(--border);border-radius:20px}.auth-story h1,.public-hero h1{color:#006ebe}.auth-points span:before{color:#006ebe}.public-header,.public-footer{border-color:var(--border)}.feature-grid article{border:1px solid var(--border);border-radius:16px}.feature-grid article:before,.auth-story:before,.chat-hero:before,.chat-hero:after{display:none!important}.badge.success,.badge.pending{background:var(--hover);color:#006ebe}.admin-nav{background:#fff;border:0;box-shadow:1px 0 0 var(--border)}.admin-role{background:#006ebe;color:#fff;border-radius:20px;padding:9px 14px}.admin-nav nav button{border-radius:9px;padding:13px;color:#006ebe}.admin-nav nav button.active{background:#006ebe;color:#fff}.admin-main{padding:0 36px 32px}.admin-top{padding:30px 0 22px;margin-bottom:8px}.admin-top h1{font-size:26px}.admin-hero{padding:20px 0;margin-bottom:20px;background:#fff}.admin-hero .eyebrow{display:none}.admin-hero h2{font-size:28px;font-weight:600}.stat-card{border:1px solid var(--border);box-shadow:none;padding:22px;border-radius:16px}.stat-card strong{color:#006ebe}.admin-panel{border:1px solid var(--border);padding:24px;border-radius:16px}.admin-toolbar{background:#fff;padding:0 0 20px;border-radius:0;border-bottom:1px solid var(--border)}.employee-row{padding:17px 8px}.activity-row{border-color:var(--border)}.admin-hero p,.admin-panel p{color:var(--muted)}.review-message{background:white;border:1px solid var(--border);border-left:0!important;border-radius:12px;padding:16px}.review-message>strong{font-size:12px}.review-message p{font-size:15px;white-space:pre-wrap}.review-members{padding:8px 0 18px}.profile-contact{border-radius:18px}.toast{background:#006ebe;color:white;border-radius:14px;box-shadow:0 6px 25px #006ebe26}#call-dialog{background:#fff;color:#006ebe;border:1px solid var(--border)}#call-dialog h2,#call-dialog p,#call-state,#call-dialog small{color:#006ebe!important}#accept-call,#end-call{background:#006ebe;color:#fff}#dialog,.confirmation{box-shadow:0 22px 100px #006ebe26;border:1px solid var(--border);border-radius:20px}dialog::backdrop{background:rgba(0,110,190,.12);backdrop-filter:blur(2px)}.dialog-header{padding:20px 24px}.dialog-header h2{font-size:20px;font-weight:600}.settings-tabs{gap:6px;scrollbar-width:none}.settings-tabs button[aria-selected=true]{background:#006ebe;color:white}.settings-panel>label{padding:5px 0}.settings-panel .profile-summary .avatar{width:94px;height:94px}.settings-panel .theme-controls{display:grid;grid-template-columns:1fr;gap:10px}.settings-panel .theme-controls button{text-align:left;padding:14px}.profile-summary{margin-bottom:8px}.directory-choice{padding:16px 4px}.directory-choice button{border-radius:20px}.contact-directory-tools button{border-radius:20px}.page-nav button{border-radius:20px}.page-nav{padding-top:8px}.poll-option.voted{border:1px solid #006ebe;color:#006ebe!important}.confirmation p{color:#006ebe}
/* Context menu follows the supplied reference: icon rows and clear grouping. */
.action-popover{position:fixed;inset:auto;margin:0;padding:8px;width:272px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 100px);overflow:auto;background:white;border:1px solid var(--border);border-radius:16px;box-shadow:0 12px 38px #006ebe22;color:#006ebe;z-index:500}.action-popover button{display:flex;align-items:center;gap:15px;border:0;width:100%;background:white;border-radius:8px;text-align:left;min-height:44px;padding:10px 13px;font-size:14px;color:#006ebe}.action-popover button:hover,.action-popover button:focus-visible{background:var(--hover)}.action-popover .fa-solid{font-size:17px;width:22px}.action-popover hr{border:0;border-top:1px solid var(--border);margin:7px 5px}.selection-bar{display:flex;align-items:center;gap:10px;padding:10px 20px;border-bottom:1px solid var(--border);background:white}.selection-bar span{flex:1;font-weight:600}.selection-bar button{font-size:12px}.selection-mode .message[data-id]{cursor:pointer;outline:1px dashed var(--input);outline-offset:4px}.selection-mode .message.selected{outline:2px solid #006ebe}.selection-mode .message-actions{display:none}.jump-latest{position:absolute;right:24px;bottom:104px;z-index:5;border-radius:50%;height:44px;width:44px;padding:8px;color:#006ebe;background:white;box-shadow:0 3px 15px #006ebe22}.conversation{position:relative}.chat-app .chat-workspace{background:white}.message-search-bar{background:white;border-color:var(--border);padding:12px 20px}.message-search-bar input{border-radius:22px}.message-search-bar button{border-radius:22px}
@media(max-width:1100px){.chat-app{grid-template-columns:60px 305px minmax(0,1fr)}.messages{padding:24px}.admin-main{padding:0 24px 24px}}
@media(max-width:768px){.chat-app{grid-template-columns:54px minmax(0,1fr)}.chat-app.chat-open{display:block}.sidebar-header{height:112px;padding:18px}.rail{padding:16px 5px}.rail-button{width:42px}.conversation-header{height:68px;padding:8px}.messages{padding:22px 12px}.compose-zone{padding:10px 7px}.composer{padding:5px;gap:0}.composer textarea{font-size:15px}.composer .send-button{width:38px;height:38px;padding:8px}.header-actions .icon-button{width:32px}.message{max-width:88%}.admin-main{padding:0 14px 24px}.admin-top{padding:18px 0}.admin-top h1{font-size:21px}.admin-panel{padding:18px}.stat-card{padding:18px}.stat-grid{gap:12px}.admin-hero h2{font-size:24px}.admin-nav{box-shadow:6px 0 25px #006ebe16}.selection-bar{padding:9px;gap:6px}.selection-bar button{padding:6px 9px}.selection-bar span{font-size:12px}#dialog{border-radius:20px 20px 0 0;margin:auto 0 0;width:100%;max-width:100%}.action-popover{width:260px}.jump-latest{right:14px;bottom:93px}}
.admin-main{margin:0 auto;align-self:start}.filters{flex-wrap:wrap;overflow:visible;gap:6px}.filters button{font-size:11px;padding:5px 10px}.mine .bubble .message-actions a{color:#006ebe!important}.profile-summary .avatar{border:1px solid var(--border)}
