@font-face{font-family:Pretendard;src:url('/font.woff2') format('woff2');font-weight:100 900;font-display:swap}*{box-sizing:border-box}[hidden]{display:none!important}:root{font-family:Pretendard,'Malgun Gothic',sans-serif;color:#27384e;background:#f6f8fb;font-size:15px}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:6px;padding:10px 15px;color:#385573;background:#edf2f8}button:disabled{opacity:.5;cursor:not-allowed}input,textarea{border:1px solid #dce4ee;border-radius:7px;padding:12px;color:#27384e;background:#fff}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid #7199bf;outline-offset:2px}header{height:64px;background:#fff;border-top:4px solid #91a7bf;border-bottom:1px solid #e1e7ef;padding:0 24px;display:flex;align-items:center;justify-content:space-between}.identity{display:flex;gap:14px;align-items:center}.logo{display:block;width:40px;height:40px;position:relative;overflow:hidden;background:white}.logo img{position:absolute;width:249px;height:auto;left:-104px;top:-26px}small{font-size:12px;color:#7b8ba0}.identity small{border-left:1px solid #e0e6ee;padding-left:15px}.login-card{width:min(440px,calc(100% - 40px));margin:9vh auto;background:white;padding:32px;border:1px solid #e1e7ef;border-radius:14px;box-shadow:0 8px 40px #26394d05}.eyebrow{font-size:11px;letter-spacing:2px;color:#9b835b}h1{font-size:23px;margin:15px 0}p{color:#728298;font-size:14px;line-height:1.8}#loginForm label{display:block;margin:20px 0 8px;font-size:13px}#loginForm input{width:100%}.primary{background:#294969;color:#fff}#loginButton{width:100%;margin-top:24px}.note{font-size:12px}#serverStatus{padding:13px;border-radius:7px;background:#f1f5f9;color:#637d96;font-size:13px;line-height:1.8}#serverStatus.error,#messageError:not(:empty){color:#986140;background:#fcf6ec}#messenger{height:calc(100dvh - 64px);display:grid;grid-template-columns:264px minmax(0,1fr)}aside{display:flex;flex-direction:column;border-right:1px solid #e0e6ee;background:#fff;padding:20px 14px;overflow:auto}aside h2{font-size:13px;color:#71829a;margin:16px 10px}aside a{margin-top:auto;padding:25px 10px 18px;color:#355574;font-size:13px;text-decoration:none}aside>small{padding:10px;font-size:11px}aside button{width:100%;background:none;text-align:left;margin:3px 0;font-size:14px}aside button.selected{background:#eaf1f8}.conversation{min-height:0;display:flex;flex-direction:column;background:#fff}.room-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4eaf1;padding:15px 25px}.room-head h1{font-size:18px}.room-head span{font-size:12px;color:#8492a4}#messages{overflow:auto;flex:1;padding:24px}#messageError{font-size:13px;padding:0 24px}#messageError:not(:empty){padding:12px 24px}.message{margin:0 0 25px;display:flex;gap:12px}.avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#edf2f8;font-size:13px;color:#567493;flex-shrink:0}.message b{font-size:14px;font-weight:600}.message time{font-size:12px;color:#8291a2;margin-left:10px}.message p{white-space:pre-wrap;overflow-wrap:anywhere;color:#26384d;margin:7px 0;font-size:15px;line-height:1.7}#sendForm{margin:0 24px 18px;border:1px solid #dce4ed;border-radius:10px;padding:12px}#sendForm textarea{width:100%;height:70px;resize:vertical;border:0}#sendForm>div{display:flex;align-items:center;justify-content:space-between}#older{align-self:center;margin-top:10px;font-size:12px}#account{display:flex;align-items:center;gap:15px;font-size:13px}.empty{padding:40px 20px;text-align:center;color:#8493a5;font-size:14px}@media(max-width:700px){#messenger{grid-template-columns:180px minmax(0,1fr)}header{padding:0 12px}.identity{gap:7px}.identity strong{font-size:13px}.identity small{display:none}aside{padding:10px}.room-head{padding:12px}#messages{padding:15px}#sendForm{margin:0 12px 12px}#sendForm small{display:none}}

#messenger{position:relative}#messenger.has-side{grid-template-columns:264px minmax(0,1fr) 360px}.room-tools{display:flex;align-items:center;gap:12px}.history-tools{display:flex;justify-content:center;gap:8px}.history-tools button{font-size:12px;margin:8px 0}.message-body{min-width:0;flex:1}.message-actions{display:flex;gap:6px;flex-wrap:wrap}.message-actions button{font-size:12px;background:#fff;border:1px solid #e0e7ee;padding:5px 9px;color:#647e97}.mention{background:#eaf2fc;color:#315f8c;border-radius:4px;padding:1px 3px}.side{display:flex;flex-direction:column;min-height:0;border-left:1px solid #dfe6ee;background:#fbfcfe}.side-head{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #e4eaf1}.side-head h2{font-size:17px}.side-head button{font-size:22px;background:none;padding:5px 9px}#sideBody{padding:17px;flex:1;overflow:auto;min-height:0}#sideBody label{display:block;font-size:13px;margin-bottom:8px}#sideBody form{display:flex;gap:7px;flex-wrap:wrap}#sideBody form label{width:100%}#sideBody form input,#sideBody form select{width:100%;min-width:0}#sideBody form select{font:inherit;border:1px solid #dce4ee;border-radius:7px;padding:10px;color:#27384e;background:#fff}#sideBody form button{margin-left:auto}#sideError:not(:empty),#actionError:not(:empty){color:#986140;background:#fcf6ec;font-size:13px;line-height:1.8;padding:12px 17px}#replyForm{position:relative;margin:12px;border:1px solid #dce4ee;border-radius:8px;padding:10px}#replyDraft{width:100%;resize:vertical;border:0;height:75px}#replyButton{display:block;margin-left:auto}.thread-divider{font-size:12px;color:#8190a2;border-top:1px solid #e1e8f0;padding-top:17px;margin:20px 0}.search-note{font-size:12px;color:#7e8fa3;line-height:1.7}.search-result{display:block;text-align:left;width:100%;padding:14px;margin:12px 0;background:white;border:1px solid #e1e8ef}.search-result b,.search-result small,.search-result span{display:block}.search-result b{font-size:13px}.search-result span{font-size:14px;line-height:1.7;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.search-original{border-top:1px solid #dfe7ef;margin-top:20px;padding-top:15px}.search-original h3{font-size:14px}dialog{width:min(530px,calc(100vw - 35px));padding:25px;border:1px solid #dce5ef;border-radius:12px;color:#27384e}dialog::backdrop{background:#20324e66}dialog h2{font-size:19px}#editText{width:100%;min-height:140px;resize:vertical}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}#sendForm{position:relative}.mention-picker{position:absolute;left:0;bottom:calc(100% + 6px);width:min(320px,100%);max-height:280px;overflow:auto;background:white;border:1px solid #dce5ee;border-radius:9px;box-shadow:0 8px 32px #15244825;padding:7px;z-index:6}.mention-picker>.search-note{padding:5px 8px}.mention-option{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:10px;background:white;text-align:left}.mention-option b{font-size:14px}.mention-option small{margin-top:5px}.mention-option[aria-selected=true]{background:#edf3fa}
@media(max-width:1100px){#messenger.has-side{grid-template-columns:264px minmax(0,1fr)}.side{position:absolute;width:min(380px,calc(100% - 264px));top:0;bottom:0;right:0;box-shadow:-10px 0 30px #15244816;z-index:4}}@media(max-width:700px){#messenger.has-side{grid-template-columns:180px minmax(0,1fr)}.side{width:calc(100% - 180px)}.room-tools{gap:5px}.room-tools span{display:none}.room-head h1{font-size:16px}.side-head{padding:12px}.side-head h2{font-size:15px}#sideBody{padding:12px}}

.section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 5px}.section-heading h2{margin:16px 5px}.section-heading button{width:32px;height:32px;padding:0;text-align:center;font-size:21px;background:#f0f3f7;color:#567493}.person-choice{display:flex;flex-direction:column;align-items:flex-start;width:100%;background:#fff;border-bottom:1px solid #edf0f4;text-align:left;padding:13px 9px}.person-choice b{font-size:14px}.person-choice small{margin-top:4px}#peopleDialog{width:min(460px,calc(100vw - 28px));max-height:min(680px,calc(100dvh - 30px));padding:22px;border:1px solid #dce5ef;border-radius:12px;color:#27384e}#peopleDialog::backdrop{background:#20324e66}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-size:19px;margin:0}.dialog-heading button{font-size:20px;background:transparent;padding:4px 8px}#peopleDialog label{display:block;font-size:13px;margin:18px 0 7px}#peopleQuery{width:100%}#peopleStatus{font-size:13px;color:#8b7252;margin:8px 0}#peopleList{max-height:360px;overflow:auto;margin-top:10px}
.person-check{display:flex!important;align-items:center;gap:12px;padding:10px 8px!important;border-bottom:1px solid #edf0f4;cursor:pointer}.person-check input{width:17px;height:17px;accent-color:#294969}.person-check span{display:flex;flex-direction:column;gap:4px}.person-check b{font-size:14px}.person-check small{font-size:12px}#roomNameWrap{margin-top:15px}#roomNameWrap input,#conversationType{width:100%}#roomNameWrap small{display:block;margin-top:5px}#createRoomButton{display:block;margin:14px 0 0 auto}.compose-tools{display:flex;align-items:center;gap:10px}.compose-tools small{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-button{padding:7px 10px;border:1px solid #e0e7ee;border-radius:6px;font-size:12px;color:#647e97;cursor:pointer}.message-files{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:10px 0}.message-file{max-width:100%;overflow-wrap:anywhere;border:1px solid #e1e8ef;border-radius:6px;padding:8px 10px;color:#365d84;background:#f8fafc;font-size:13px;text-decoration:none}.message-file:hover{text-decoration:underline}

.room-tools{display:flex;align-items:center;gap:10px}.room-tools button{white-space:nowrap;font-size:12px}.notification-item{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:6px;padding:14px 12px;margin:0;background:#fff;border-bottom:1px solid #e7edf3;text-align:left}.notification-item:hover{background:#f5f8fb}.notification-item b{font-size:14px;color:#314b65}.notification-item small{font-size:12px;color:#77899b}

.notification-heading{margin:18px 0 8px;font-size:13px;color:#667b92}.notification-latest{margin:12px 0}

@media(max-width:700px){.room-tools button{padding:7px 8px;font-size:11px}}

.install-button{padding:8px 12px;background:#edf2f8;color:#294969;font-size:13px;font-weight:650;white-space:nowrap}#installDialog{max-width:420px}#installDialog p{white-space:pre-line}

.mobile-rooms-button{display:flex;align-items:center;gap:6px;flex:none;white-space:nowrap}
@media(min-width:601px){#messenger.rooms-collapsed{grid-template-columns:minmax(0,1fr)}#messenger.rooms-collapsed .rooms-sidebar{display:none}}
@media(max-width:600px){
 #messenger{grid-template-columns:minmax(0,1fr)}
 .rooms-sidebar{display:none;min-width:0}
 #messenger.show-rooms .rooms-sidebar{display:flex;grid-column:1;grid-row:1}
 #messenger.show-rooms .conversation{display:none}
 .mobile-rooms-button:not([hidden]){display:flex;flex:none;padding:7px 9px;background:#f0f4f8;color:#385573;font-size:12px}
 .room-head{align-items:flex-start;flex-wrap:wrap;gap:8px;padding:10px 12px}
 .room-head h1{flex:1;min-width:0;margin:3px 0;font-size:16px}
 .room-tools{width:100%;justify-content:flex-end;gap:5px;overflow-x:auto}
 .room-tools button{flex:none;padding:7px 9px;font-size:11px}
 .room-tools span,.room-tools #desktopNotificationsButton{display:none}
 #messages{padding:14px 12px}
 #sendForm{margin:0 8px 8px;padding:8px}
 #sendForm textarea{height:64px}
 .compose-tools{gap:6px}
 .compose-tools .file-button{padding:7px}
 .side{position:absolute;inset:0;width:100%;max-width:none;z-index:8;box-shadow:0 0 24px #15244820}
 .side-head{padding:12px 16px}
 #replyForm{margin:8px}
 #peopleDialog{max-height:calc(100dvh - 20px);padding:18px}
 #peopleList{max-height:min(42dvh,320px)}
}
@media(max-width:600px){#messenger.has-side{grid-template-columns:minmax(0,1fr)}}

/* TioTalk work palette: stronger contrast across web and packaged desktop views. */
:root{--page-bg:#f7f8fa;--surface:#fff;--sidebar-bg:#f1f3f6;--ink:#1f2937;--muted:#6b7280;--border:#e5e7eb;--primary:#1e2a3a;--accent:#3b82f6;--accent-soft:#eef4fc;color:var(--ink);background:var(--page-bg)}
body,.conversation{background:var(--page-bg);color:var(--ink)}
header,.login-card,dialog,.side{background:#fff;color:var(--ink);border-color:var(--border)}
header{border-top-color:var(--primary)}
aside{background:var(--sidebar-bg);border-right-color:var(--border)}
aside h2,aside button,.identity strong,.account-identity-name{color:var(--ink)}
aside button.selected{background:#fff;box-shadow:inset 3px 0 var(--accent);color:var(--primary)}
button{background:#fff;border:1px solid #d1d5db;color:#374151}
button:hover{background:#f3f4f6}
button.primary,.primary,#sendButton,#loginButton{background:var(--primary);border-color:var(--primary);color:#fff}
button.primary:hover,.primary:hover,#sendButton:hover,#loginButton:hover{background:#2b3a4d;color:#fff}
input,textarea,#conversationType,.room-edit-form select{border-color:#d1d5db;color:var(--ink)}
.message time,.message small,.search-note,.person-check small,.person-choice small{color:var(--muted)}
.room-type-badge{display:inline-flex;align-items:center;margin-left:8px;padding:4px 9px;border:1px solid #d1d5db;border-radius:5px;background:#f8f9fb;color:#374151;font-size:12px;font-weight:600;white-space:nowrap}
.room-type-badge[hidden]{display:none}
.message-day-divider{display:flex;align-items:center;gap:12px;margin:18px 0 24px;color:#4b5563;font-size:12px;font-weight:650}
.message-day-divider:before,.message-day-divider:after{content:"";height:1px;background:#d1d5db;flex:1}
.message .author-meta{margin-left:8px;color:#6b7280;font-size:12px;font-weight:400}
.message time{margin-left:10px}
.system-notice{padding:10px 14px;border:1px solid #d1d5db;border-radius:7px;background:#f8f9fb}
.system-notice-label{display:block;color:#6b7280;font-size:11px;font-weight:650}
.room-materials-button,.room-edit-button{background:#fff;border-color:#d1d5db;color:#374151}
.topic-side-file{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--border)}
.topic-side-file a{min-width:0;overflow-wrap:anywhere;color:#1e2a3a;text-decoration:none}
.topic-side-file button{flex:none;padding:6px 9px}
.sidebar-install-button{display:block!important;margin:6px 0 0!important;padding:10px 11px!important;border:1px solid #d1d5db!important;border-radius:6px;color:#1e2a3a!important;background:#fff!important;text-align:center!important}
.avatar-grid h3{grid-column:1/-1;margin:10px 0 2px;text-align:left;font-size:14px;color:#1e2a3a}
.avatar-choice-name{display:block;margin:2px 0 6px;color:#374151;font-size:11px}
.avatar-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:94px}
/* Profile colors, compact picker, and stable message controls. */
.avatar-dialog{width:min(520px,calc(100vw - 24px))!important;max-width:520px!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;padding:20px!important}
.avatar-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;width:100%;overflow:hidden}
.avatar-grid button{min-width:0!important;width:100%!important;padding:5px 2px!important;overflow:hidden}
.avatar-grid .avatar-sprite{width:clamp(42px,12vw,64px)!important;height:clamp(42px,12vw,64px)!important;max-width:100%;border:0!important;border-radius:50%!important}
.avatar-sprite[data-background]{border:0!important;background-color:var(--avatar-bg,#f5eecf)!important}
.avatar-sprite[data-background="white"]{--avatar-bg:#fff}.avatar-sprite[data-background="gray"]{--avatar-bg:#c8c8c8}.avatar-sprite[data-background="brown"]{--avatar-bg:#b47a58}.avatar-sprite[data-background="pink"]{--avatar-bg:#f3a9bf}.avatar-sprite[data-background="yellow"]{--avatar-bg:#f5c400}.avatar-sprite[data-background="beige"]{--avatar-bg:#f1e5b6}.avatar-sprite[data-background="lime"]{--avatar-bg:#a5cf36}.avatar-sprite[data-background="mint"]{--avatar-bg:#7fc8b1}.avatar-sprite[data-background="blue"]{--avatar-bg:#75a7ce}.avatar-sprite[data-background="purple"]{--avatar-bg:#b4a3d4}
.avatar-background-picker{display:grid!important;grid-template-columns:repeat(10,minmax(22px,1fr));gap:7px!important;width:100%;margin:6px 0 12px}
.avatar-background-picker button{width:100%;aspect-ratio:1;padding:0!important;border:1px solid #c5c9ce!important;border-radius:50%!important;background:var(--swatch)!important;box-shadow:inset 0 0 0 1px #00000012!important}
.avatar-background-picker button[aria-pressed="true"]{outline:2px solid #26374c!important;outline-offset:2px}
/* Apply the selected palette behind transparent character artwork and initials. */
.avatar-sprite[data-background="white"]{background-color:#fff!important}.avatar-sprite[data-background="gray"]{background-color:#c8c8c8!important}.avatar-sprite[data-background="brown"]{background-color:#b47a58!important}.avatar-sprite[data-background="pink"]{background-color:#f3a9bf!important}.avatar-sprite[data-background="yellow"]{background-color:#f5c400!important}.avatar-sprite[data-background="beige"]{background-color:#f1e5b6!important}.avatar-sprite[data-background="lime"]{background-color:#a5cf36!important}.avatar-sprite[data-background="mint"]{background-color:#7fc8b1!important}.avatar-sprite[data-background="blue"]{background-color:#75a7ce!important}.avatar-sprite[data-background="purple"]{background-color:#b4a3d4!important}
.avatar-background-picker button[data-color="white"]{--swatch:#fff}.avatar-background-picker button[data-color="gray"]{--swatch:#c8c8c8}.avatar-background-picker button[data-color="brown"]{--swatch:#b47a58}.avatar-background-picker button[data-color="pink"]{--swatch:#f3a9bf}.avatar-background-picker button[data-color="yellow"]{--swatch:#f5c400}.avatar-background-picker button[data-color="beige"]{--swatch:#f1e5b6}.avatar-background-picker button[data-color="lime"]{--swatch:#a5cf36}.avatar-background-picker button[data-color="mint"]{--swatch:#7fc8b1}.avatar-background-picker button[data-color="blue"]{--swatch:#75a7ce}.avatar-background-picker button[data-color="purple"]{--swatch:#b4a3d4}
.mention-picker{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:2px;max-width:min(360px,calc(100vw - 32px));padding:6px!important}
.mention-option{min-width:0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-content:start!important;padding:9px 11px!important;border:0!important;border-radius:5px!important;text-align:left;white-space:normal!important}
.mention-option b,.mention-option small{display:block!important;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-actions{align-items:center}.compact-actions button{background:transparent!important;color:#445366!important}.message-state-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:4px;background:#edf0f3;color:#334155;font-size:11px;font-weight:600}
.reaction-panel{display:flex!important;position:relative!important;z-index:1;flex-wrap:wrap;align-items:center;gap:5px;margin:5px 0 2px!important;padding:3px 0!important;border:0!important;background:transparent!important}
.reaction-panel button{min-width:34px;min-height:30px;border:1px solid #d4d9df!important;border-radius:16px;background:#fff!important;color:#334155!important}.reaction-panel button[aria-pressed="true"]{background:#e8edf2!important;border-color:#8492a2!important;color:#1e2a3a!important}
.pinned-sticky{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;margin:0 0 10px;background:#f1f3f6;border-bottom:1px solid #d9dee4;color:#263241}
.pinned-sticky strong{font-size:12px;white-space:nowrap}.pinned-sticky button{max-width:min(320px,100%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 9px!important;border:0!important;background:#fff!important;font-size:12px}
.my-settings-dialog[open]{position:fixed!important;inset:64px 0 0!important;margin:0!important;width:100vw!important;height:calc(100dvh - 64px)!important;max-height:none!important;padding:24px max(20px,calc((100vw - 640px)/2))!important;border:0!important;border-radius:0!important;overflow:auto!important}
.my-settings-form{width:min(640px,100%);margin:0 auto 72px;gap:12px!important}.my-settings-form h2{padding:8px 0 14px;border-bottom:2px solid #26374c;color:#1f2937}.my-settings-form input{min-height:44px}.my-settings-form button.primary,.my-settings-form>.primary{min-height:44px;background:#26374c!important;color:#fff!important}
.my-settings-dialog>button{position:fixed;right:max(20px,calc((100vw - 640px)/2));bottom:18px;min-width:100px;background:#fff!important;border:1px solid #cbd2da!important;color:#27384e!important;box-shadow:0 3px 12px #17212b1a}
.feedback-create-button{position:sticky;top:0;z-index:2;width:100%;margin:0 0 12px!important;background:#26374c!important;color:#fff!important;text-align:left!important;font-weight:650}
.admin-org-group{max-height:55vh;overflow:auto;overscroll-behavior:contain;border-bottom:1px solid #dfe4e9}.admin-org-group h3{position:sticky;top:0;z-index:1;padding:10px;background:#f1f3f6}
@media(max-width:600px){.avatar-dialog{padding:14px!important}.avatar-grid{gap:4px!important}.avatar-grid button{font-size:10px!important}.avatar-grid .avatar-sprite{width:clamp(38px,14vw,54px)!important;height:clamp(38px,14vw,54px)!important}.avatar-background-picker{grid-template-columns:repeat(10,minmax(18px,1fr));gap:5px!important}.avatar-choice-name{font-size:10px}.my-settings-dialog[open]{inset:56px 0 0!important;height:calc(100dvh - 56px)!important;padding:18px 16px 72px!important}.my-settings-dialog>button{right:16px;bottom:12px}.pinned-sticky{gap:5px}.pinned-sticky button{max-width:60vw}}

/* Reference based polish: quiet room list, white top bar, no card outlines. */
header{background:#fff!important;border-top:0!important;border-bottom:1px solid #e2e5e9!important}
.rooms-sidebar{background:#f4f5f6!important;padding:18px 12px!important}
.rooms-sidebar>h2,.rooms-sidebar .section-heading h2{display:flex;align-items:center;justify-content:space-between;color:#20252b!important;margin:12px 6px!important;font-size:14px}
.room-list-toggle{width:28px!important;height:28px!important;flex:none;padding:0!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#59616b!important;font-size:19px!important}
.room-list-toggle:hover{background:#e8eaed!important}
.room-entry{gap:2px!important;margin:2px 0}
.room-entry .room-link{display:flex;align-items:center;gap:9px;min-height:38px;padding:8px 10px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#30363d!important;font-weight:450}
.room-entry .room-link:hover{background:#e9ecef!important}
.room-entry .room-link.selected{background:#e2e6ea!important;color:#17212b!important;box-shadow:none!important;font-weight:650}
.room-entry .room-more{border:0!important;background:transparent!important;color:#68717b!important}
.room-type-indicator{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:21px;padding:0 5px;border:1px solid #cbd0d6;border-radius:4px;color:#515a64;font-size:10px;font-weight:600;line-height:1;white-space:nowrap}
.room-topic-symbol{width:18px;flex:none;color:#4b5662;font-size:15px;text-align:center}
.room-display-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.room-context-menu button{border:0!important;border-radius:4px!important}
button,.room-tools button,.toolbar-menu button,.message-actions button{border:0!important}
button.primary,.primary,#sendButton,#loginButton{background:#1e2a3a!important;color:#fff!important;border:0!important}
button.primary:hover,.primary:hover,#sendButton:hover,#loginButton:hover{background:#30425a!important}
.install-button.sidebar-install-button{border:0!important;background:#e7eaee!important;color:#1e2a3a!important}
#sendForm{background:#fff;border:1px solid #cfd4da!important;border-radius:8px!important;box-shadow:none!important}
#sendForm textarea{background:#fff;color:#1f2937}
.file-button{border:0!important;background:transparent!important;color:#4c5968!important;padding:8px!important}
.file-button::before{content:'📎';margin-right:6px}
.topic-private-label{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;min-height:44px;padding:10px 12px!important;margin:10px 0!important;border:0!important;border-radius:5px!important;background:#f1f3f5!important;color:#26313d!important;text-align:left!important}
.topic-private-label input{display:inline-block!important;flex:none!important;width:16px!important;height:16px!important;margin:0!important;accent-color:#1e2a3a}
.topic-private-label span{display:inline-block!important;flex:none!important;white-space:nowrap!important}
.avatar-grid button{border:0!important;border-radius:7px!important;background:#f3f4f5!important}
.avatar-grid button[aria-pressed="true"]{outline:2px solid #1e2a3a!important;outline-offset:1px}
.avatar-sprite[data-avatar^="m"],.avatar-sprite[data-avatar^="f"]{border:4px solid transparent;border-radius:50%;background-color:transparent!important}
.avatar-sprite[data-background="navy"]{border-color:#21344e!important}.avatar-sprite[data-background="blue"]{border-color:#426d9b!important}.avatar-sprite[data-background="teal"]{border-color:#347c79!important}.avatar-sprite[data-background="green"]{border-color:#587b5d!important}.avatar-sprite[data-background="plum"]{border-color:#6b5a82!important}.avatar-sprite[data-background="rose"]{border-color:#a15d70!important}.avatar-sprite[data-background="slate"]{border-color:#626d7b!important}.avatar-sprite[data-background="amber"]{border-color:#b6813e!important}
.room-rename-form{display:grid;gap:12px}.room-rename-form input{width:100%}
.room-rename-form .dialog-actions{margin-top:5px}
.room-rename-dialog{width:min(420px,calc(100% - 28px));border:1px solid #d8dde3;border-radius:10px;padding:22px}
.room-rename-dialog::backdrop{background:#17212b66}
@media(max-width:600px){.rooms-sidebar{padding:12px 9px!important}.room-entry .room-link{min-height:36px;padding:7px 8px!important}}
@media(max-width:600px){.room-type-badge{margin-left:auto}.message-day-divider{margin:12px 0 17px}}

/* Compact, readable employee picker and privacy control. */
.topic-private-label{display:flex!important;align-items:center;gap:10px;margin:10px 0!important;padding:12px 14px;border:1px solid #d8dee8;border-radius:9px;background:#f1f3f6;color:#1e2a3a;font-weight:550}
.topic-private-label input{flex:none;width:17px;height:17px;margin:0;accent-color:#3b82f6}
.person-check,.person-choice{min-width:0;min-height:56px;padding:11px 12px!important}
.person-check span,.person-choice{gap:3px}
.person-check small,.person-choice small{color:#718096;font-size:12px;font-weight:400;line-height:1.45;overflow-wrap:anywhere}
.person-check b,.person-choice b{color:#1e2a3a;font-size:14px;font-weight:600;line-height:1.4}
#peopleList{overscroll-behavior:contain;scrollbar-gutter:stable}

/* Responsive desktop header: keep controls readable instead of compressing labels. */
@media(min-width:601px) and (max-width:1050px){
 #messenger{grid-template-columns:220px minmax(0,1fr)}
 .room-head{flex-wrap:wrap;gap:8px;padding:12px 16px}
 .room-head h1{flex:1;min-width:0;margin:4px 0;overflow-wrap:anywhere}
 .room-tools{width:100%;flex-wrap:wrap;justify-content:flex-start;gap:6px}
 .room-tools button{flex:0 0 auto;font-size:12px;padding:7px 9px}
}
@media(min-width:601px) and (max-width:760px){
 #messenger{grid-template-columns:190px minmax(0,1fr)}
 header{padding:0 12px}
 .room-head{padding:10px}
 #messages{padding:14px}
 #sendForm{margin:0 10px 10px}
}

/* TioTalk shared work-focused light palette. Semantic status colors stay intact. */
:root{--page-bg:#f7f8fa;--surface:#fff;--sidebar-bg:#f1f3f6;--ink:#1e2a3a;--muted:#718096;--border:#d8dee8;--primary:#1e2a3a;--accent:#3b82f6;--accent-soft:#eff6ff;--hover:#e9edf2;color:var(--ink);background:var(--page-bg)}
.eyebrow{color:var(--muted)}
body{color:var(--ink);background:var(--page-bg)}
header{background:var(--surface);border-bottom-color:var(--border)}
.conversation,.login-card,.side,.search-result,.notification-item,.person-choice,.message-actions button{background:var(--surface)}
aside{background:var(--sidebar-bg);border-right-color:var(--border)}
aside button{color:var(--ink)}
aside button:hover,.person-choice:hover,.notification-item:hover{background:var(--hover)}
aside button.selected{background:var(--accent-soft);box-shadow:inset 3px 0 var(--accent);color:var(--primary)}
button{color:var(--ink);background:#eef1f5}
button.primary,.primary{background:var(--primary);color:#fff}
button.primary:hover,.primary:hover{background:#29384b}
input,textarea,select,#sideBody form select{border-color:var(--border);color:var(--ink);background:var(--surface)}
input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline-color:var(--accent)}
.room-head,.side-head{border-color:var(--border)}
.side{background:#fafbfc;border-left-color:var(--border)}
.avatar{background:#e9edf2;color:#43556b}
.mention{background:var(--accent-soft);color:#245eb5}
.mobile-rooms-button,.install-button{background:#eef1f5;color:var(--primary)}
.file-button{background:var(--surface);border-color:var(--border);color:var(--ink)}
.file-drag-active{outline-color:var(--accent);background:var(--accent-soft)!important}
.person-check input{accent-color:var(--accent)}
.feedback-pending{border-color:#d1a45f!important;color:#71521f!important;background:#fff8ec!important}
.feedback-inline-status{border-color:#c8d6e4!important;background:#f3f7fb!important;color:#3b5c7c!important}
.message-actions button:last-child{color:#466b8d}
.feedback-source{padding:10px 12px;border-left:3px solid #b9c9d8;background:#f4f7fa;color:#586c81;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.reaction-panel{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px;padding:8px 10px;border:1px solid #e5eaf0;border-radius:9px;background:#fafbfd}
.reaction-panel button{min-height:30px;border:1px solid #dce4ec;border-radius:999px;background:#fff;padding:3px 9px;color:#35485d;font:inherit;cursor:pointer}
.reaction-panel button[aria-pressed=true]{border-color:#8eb7df;background:#eaf4ff;color:#244f78}
.reaction-panel .reaction-choice{width:32px;padding:2px}
.reaction-label{margin-left:3px;color:#76869a;font-size:12px}
.saved-card{display:grid;gap:8px;padding:12px;margin:0 0 10px;border:1px solid #e1e8ef;border-radius:9px;background:#fff}
.saved-message-link{display:grid;gap:5px;text-align:left;white-space:pre-wrap;line-height:1.5}
.saved-remove{justify-self:start;color:#60748a;font-size:12px}
.image-preview{display:block;width:min(360px,100%);margin:5px 0 7px;overflow:hidden;border:1px solid #e0e7ee;border-radius:8px;background:#f7f9fb}
.image-preview img{display:block;max-width:100%;max-height:320px;object-fit:contain}
.group-member-list{display:grid;gap:7px}
.group-member-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid #e4eaf0;border-radius:8px;background:#fff;font-size:13px}
.group-member-add{display:flex;gap:8px;margin-top:12px}
.group-member-add select{min-width:0;flex:1;padding:8px;border:1px solid #dce3eb;border-radius:7px;background:#fff;color:inherit;font:inherit}
#feedbackForm{display:grid;gap:9px;min-width:min(480px,calc(100vw - 48px))}
#feedbackForm label,.feedback-update label{margin:5px 0 0;font-size:13px;font-weight:600}
#feedbackForm input,#feedbackForm select,#feedbackForm textarea,.feedback-update select,.feedback-update textarea{width:100%;padding:10px 11px;border:1px solid #dce3eb;border-radius:7px;background:#fff;color:#26384d;font:inherit;font-size:14px}
#feedbackForm textarea,.feedback-update textarea{min-height:90px;resize:vertical;line-height:1.55}
.feedback-card{padding:16px 14px;margin:0 0 13px;border:1px solid #e0e6ed;border-radius:10px;background:#fff}
.feedback-card-title{display:flex;align-items:flex-start;gap:8px;margin-bottom:7px}
.feedback-card-title strong{font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.feedback-category{flex:none;border-radius:5px;background:#edf3f8;color:#365775;padding:3px 7px;font-size:11px}
.feedback-card>small,.feedback-history small{display:block;color:#7f8da0;font-size:11px;line-height:1.6}
.feedback-source-link{margin:10px 0;padding:7px 10px;background:#f5f7f9;color:#48627c;font-size:12px}
.feedback-detail{white-space:pre-wrap;overflow-wrap:anywhere;color:#46586d;font-size:13px;line-height:1.65}
.feedback-status{display:inline-block;margin:5px 0 7px;padding:4px 8px;border-radius:5px;background:#eef2f6;color:#53677c;font-size:12px}
.status-in_progress{background:#fff5df;color:#815e1e}.status-answered,.status-done{background:#eaf6ef;color:#286b47}.status-deferred{background:#f1eff5;color:#6e647e}
.feedback-history{margin:4px 0 12px;padding-left:20px;color:#536477;font-size:12px}
.feedback-history li{padding:3px 0 6px}.feedback-history li span{display:block;padding:2px 0}
.feedback-update{display:grid;gap:7px;padding-top:12px;border-top:1px solid #edf0f3}
.feedback-update .primary{justify-self:start}
@media(max-width:600px){#feedbackForm{min-width:0}.message-actions{gap:4px}.message-actions button{font-size:11px;padding:5px 7px}}

.notification-settings{display:grid;gap:10px}.notification-settings label{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #e5e9ef;border-radius:8px}.notification-settings input{width:16px;height:16px}.notification-settings h3{margin:14px 0 2px}
.admin-launch,.org-launch{padding:8px 11px;background:#eaf1f8;color:#294969;font-size:12px;font-weight:650;white-space:nowrap}
#sideBody .admin-company-form,#sideBody .admin-add-form,#sideBody .admin-edit-form{display:grid;gap:7px;margin:12px 0 18px;padding:14px;border:1px solid #e1e7ef;border-radius:9px;background:white}
#sideBody .admin-company-form h3,#sideBody .admin-add-form h3{margin:0 0 4px;font-size:15px}
#sideBody .admin-company-form label,#sideBody .admin-add-form label,#sideBody .admin-edit-form label{margin:3px 0 0;font-size:12px;color:#687a8f}
#sideBody .admin-company-form input,#sideBody .admin-company-form textarea,#sideBody .admin-add-form input,#sideBody .admin-edit-form input{width:100%;min-width:0;padding:9px 10px;font-size:13px}
#sideBody .admin-company-form textarea{resize:vertical;border:1px solid #dce4ee;border-radius:7px;font:inherit;font-size:13px}
#sideBody .admin-company-form button,#sideBody .admin-add-form button,#sideBody .admin-edit-form button{justify-self:start;margin:5px 0 0}
#sideBody>h3{margin:22px 2px 10px;font-size:15px}
.admin-employee{margin:9px 0;padding:13px;border:1px solid #e1e7ef;border-radius:9px;background:white}.admin-employee.inactive{background:#f7f8fa;opacity:.82}
.admin-employee-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.admin-employee-head>div{display:grid;gap:4px;min-width:0}.admin-employee-head b{font-size:14px}.admin-employee-head small{overflow-wrap:anywhere;font-size:11px}.admin-status{flex:none;padding:4px 7px;border-radius:20px;background:#eaf6ef;color:#286b47;font-size:10px}.inactive .admin-status{background:#eef0f3;color:#657185}
.admin-employee-meta{margin:7px 0;color:#6f7e90;font-size:12px}.admin-employee details{margin:10px 0}.admin-employee summary{cursor:pointer;color:#476986;font-size:12px}.admin-employee .admin-edit-form{padding:10px}.admin-deactivate{margin:5px 0;background:#fff1ef;color:#9e443c;font-size:12px}
.admin-org-group{margin:9px 0;padding:12px;border-left:2px solid #9bb1c8;background:#fff}.admin-org-group h4{margin:0 0 7px;font-size:13px;color:#3b5c7d}.admin-org-person{padding:5px 2px;color:#53677d;font-size:12px}
.admin-org-group h3{margin:0 0 8px;font-size:14px}.org-directory-person{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid #edf0f3}.org-directory-person>div{display:grid;gap:4px}.org-directory-person b{font-size:13px}.org-directory-person small{font-size:11px}.org-chat{padding:5px 8px;font-size:11px}
.admin-created-credential{margin:8px 0;padding:14px;border:1px solid #b7d5c1;border-radius:9px;background:#f0f9f3;color:#315f40}.admin-created-credential b{font-size:14px}.admin-created-credential p{margin:6px 0;color:#355a41;font-size:12px;overflow-wrap:anywhere}.admin-created-credential button{margin:5px 5px 0 0;font-size:11px}
@media(max-width:600px){.admin-launch{padding:7px 8px;font-size:11px}#sideBody .admin-company-form,#sideBody .admin-add-form{padding:11px}.admin-employee{padding:11px}}


.forgot-box{margin:18px 0 8px;padding:12px 14px;border:1px solid #e2e8ef;border-radius:9px;background:#fbfcfe}.forgot-box summary{cursor:pointer;color:#395d7e;font-size:13px;font-weight:600}.forgot-box form{display:grid;gap:8px;margin-top:13px}.forgot-box label,#passwordChangeForm label,#resetCompleteForm label{margin:8px 0 0;font-size:13px;color:#52677d}.forgot-box input,#passwordChangeForm input,#resetCompleteForm input{width:100%;padding:11px 12px;border:1px solid #dce4ed;border-radius:7px;font:inherit;font-size:14px}.forgot-box button,#passwordChangeForm button,#resetCompleteForm button{justify-self:stretch;margin-top:8px;padding:11px 14px}.forgot-box p,#forgotStatus,#passwordChangeStatus,#resetCompleteStatus{margin:3px 0;color:#728298;font-size:12px;line-height:1.6}.login-card[hidden]{display:none}

.admin-status.password-change-pending{background:#fff3db;color:#835d15}

/* Interaction refinements */
.compact-actions{margin-top:8px;gap:4px!important}.compact-actions button{min-width:34px;padding:5px 9px;font-size:12px}.message-more{font-size:19px!important;line-height:1}.message-context-menu{position:fixed;z-index:1000;display:grid;min-width:170px;padding:5px;background:#fff;border:1px solid #dfe6ef;border-radius:10px;box-shadow:0 12px 36px #182c441f}.message-context-menu button{padding:9px 12px;text-align:left;background:#fff;color:#40566d;font-size:13px}.message-context-menu button:hover{background:#f1f5f9}.deleted-message{display:block;padding:5px 0;color:#8995a3;font-style:italic}.avatar-sprite{display:inline-block;flex:none;width:42px;height:42px;border-radius:50%;background-color:#fff4d1;background-image:url('/profile-avatars.png');background-size:500% 200%;background-repeat:no-repeat;background-position:0 0;overflow:hidden}.avatar-sprite[data-avatar=""]{background:#edf1f5}.topic-private-label{display:flex;align-items:center;gap:9px;margin:11px 0;padding:10px 12px;border:1px solid #e1e8f0;border-radius:8px;background:#fafbfd}.topic-private-label input{width:auto}.room-edit-button{white-space:nowrap}.room-edit-dialog,.avatar-dialog{width:min(520px,calc(100% - 28px));border:1px solid #e0e7ef;border-radius:14px;padding:24px;box-shadow:0 18px 60px #1d2c3f35}.room-edit-dialog::backdrop,.avatar-dialog::backdrop{background:#18253666}.room-edit-form{display:grid;gap:10px}.room-edit-form input,.room-edit-form textarea{width:100%}.room-edit-form textarea{min-height:90px}.admin-page-open #messenger{grid-template-columns:0 minmax(0,1fr)}.admin-page-open .rooms-sidebar,.admin-page-open .conversation{display:none!important}.admin-page-open #side{position:fixed!important;z-index:500;inset:64px 0 0!important;width:100%!important;height:calc(100dvh - 64px)!important;background:#f7f9fc!important;border:0!important;display:flex!important;flex-direction:column!important}.admin-page-open #sideBody{width:min(1100px,100%);margin:0 auto;padding:20px 28px!important;overflow:auto!important}.admin-page-open .side-head{position:sticky;top:0;z-index:2;padding:15px max(24px,calc((100vw - 1100px)/2));background:#fff;border-bottom:1px solid #e2e8f0}.admin-page-open .admin-employee-meta{font-size:12px;font-weight:400;color:#8491a1}.admin-page-open .admin-employee-head b{font-size:16px}.admin-page-open .admin-employee-head small{font-size:12px;font-weight:400}.compact-notifications{display:grid;gap:12px}.compact-notifications>label{padding:12px;border:1px solid #e3e9f0;border-radius:8px}.compact-notifications details{border:1px solid #e3e9f0;border-radius:8px;padding:12px}.compact-notifications summary{cursor:pointer;font-weight:600}.notification-room-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:2px;max-height:300px;overflow:auto;margin-top:8px}.notification-room-list label{padding:7px 4px;font-size:13px}.file-drag-active{outline:3px dashed #789abc;outline-offset:-8px;background:#f4f8fc!important}.avatar-dialog{text-align:center}.avatar-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:16px 0}.avatar-grid button{padding:5px;border:1px solid #e3e9ef;background:#fff}.avatar-grid .avatar-sprite{width:min(68px,15vw);height:min(68px,15vw);border-radius:50%}.avatar-upload{margin:8px}.profile-avatar-button{padding:7px 10px!important;font-size:12px!important}

/* Focused usability refinements */
.topic-private-label{box-sizing:border-box;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%;min-height:44px;white-space:nowrap;writing-mode:horizontal-tb!important;word-break:keep-all!important}.topic-private-label input{flex:0 0 auto;width:16px;height:16px;margin:0}.topic-private-label span{display:block;flex:1;writing-mode:horizontal-tb!important;white-space:nowrap;line-height:1.4}
.room-entry{display:flex;align-items:center;gap:2px;width:100%;min-width:0}.room-entry .room-link{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.room-entry .room-more{flex:0 0 34px;width:34px;height:34px;padding:0;background:transparent;color:#667487;font-size:20px;line-height:1}.room-entry .room-more:hover{background:#e9edf2;color:#1f2937}.room-context-menu{position:fixed;z-index:1000;display:grid;min-width:210px;padding:5px;background:#fff;border:1px solid #d9e0e8;border-radius:8px;box-shadow:0 12px 32px #17283a20}.room-context-menu button{padding:10px 12px;text-align:left;background:#fff;color:#344256;font-size:13px}.room-context-menu button:hover{background:#f1f4f7}.room-privacy-note{display:block;color:#68778a;line-height:1.55}.topic-visibility-field{display:grid;gap:7px}.topic-visibility-field select{font:inherit;padding:9px;border:1px solid #d4dbe4;border-radius:6px;background:#fff}
.room-head{gap:10px;align-items:center;min-width:0}.room-head h1{flex:1;min-width:80px}.room-tools{position:relative;display:flex;align-items:center;gap:6px;flex:0 0 auto}.room-tools>button,.toolbar-more>summary{min-height:36px;padding:7px 11px;border:1px solid #dce2e9;border-radius:7px;background:#fff;color:#334155;font-size:12px;white-space:nowrap}.room-tools>button:hover,.toolbar-more>summary:hover{background:#f3f5f7}.toolbar-more{position:relative}.toolbar-more>summary{display:flex;align-items:center;cursor:pointer;list-style:none}.toolbar-more>summary::-webkit-details-marker{display:none}.toolbar-more>summary::after{content:'⌄';margin-left:7px;color:#69778a}.toolbar-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:25;min-width:210px;display:grid;gap:3px;padding:6px;background:#fff;border:1px solid #dce2e9;border-radius:9px;box-shadow:0 12px 32px #17283a20}.toolbar-menu button{min-height:38px;text-align:left;padding:8px 10px;background:#fff;color:#344256;font-size:12px}.toolbar-menu button:hover{background:#f3f5f7}.toolbar-menu button[hidden]{display:none!important}
.avatar-sprite.avatar-initials{display:inline-grid;place-items:center;overflow:hidden;background:#e9edf2!important;background-image:none!important;color:#364152;font-weight:600;font-size:17px;line-height:1}.message .avatar-sprite.avatar-initials{width:38px;height:38px}.author-meta{color:#8792a0;font-size:11px!important;font-weight:400}.account-identity{display:grid;gap:2px;min-width:0}.account-identity-name{font-size:13px}.account-identity small{font-size:11px;color:#738094}.my-settings-button{white-space:nowrap}.my-settings-dialog{width:min(520px,calc(100% - 28px));border:1px solid #dce2e9;border-radius:12px;padding:22px}.my-settings-form{display:grid;gap:9px}.my-settings-form h2,.my-settings-form h3{margin:4px 0 8px}.my-settings-form h3{padding-top:13px;border-top:1px solid #e5e9ee}.my-settings-form input{width:100%;min-width:0;box-sizing:border-box}.my-settings-form input:disabled{background:#f4f6f8;color:#697586}.my-settings-form .settings-secondary{justify-self:start}.settings-status{min-height:18px;color:#53677e;font-size:13px}.avatar-dialog{display:grid;gap:10px;max-width:420px}.avatar-dialog input[type=file]{position:absolute;width:1px;height:1px;opacity:0}.avatar-dialog .avatar-upload{justify-self:start}
@media(max-width:900px){.room-head{flex-wrap:wrap}.room-head h1{order:1;flex-basis:calc(100% - 120px)}.room-tools{order:3;width:100%;justify-content:flex-end}.room-head #manageMembersButton{order:2}.room-head .room-edit-button{order:2}}
@media(max-width:600px){.room-tools{width:auto;margin-left:auto}.room-tools>button,.toolbar-more>summary{min-height:34px;padding:6px 9px;font-size:11px}.toolbar-menu{right:0}.room-head{gap:7px}.room-head h1{font-size:15px}.room-entry .room-more{flex-basis:32px}}

.file-preview-dialog{width:min(1000px,calc(100vw - 28px));height:min(88dvh,900px);display:none;flex-direction:column;padding:18px}.file-preview-dialog[open]{display:flex}.file-preview-stage{flex:1;min-height:0;display:grid;place-items:center;background:#f3f5f7;border-radius:8px;margin:12px 0;overflow:hidden}.file-preview-stage iframe{width:100%;height:100%;border:0;background:#fff}.file-preview-stage img{max-width:100%;max-height:100%;object-fit:contain}.file-preview-download,.file-preview-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7e0e8;border-radius:6px;padding:8px 12px;background:#fff;color:#294969;text-decoration:none;font:inherit;cursor:pointer}.image-preview{display:block;border:1px solid #e0e7ee;border-radius:8px;background:#f6f8fa;padding:4px;cursor:zoom-in;max-width:min(360px,100%)}.image-preview img{display:block;max-width:100%;max-height:240px;object-fit:contain}.image-preview.preview-unavailable{display:none}

.logo{padding:0;border:0;flex:none;cursor:pointer}.home-welcome{width:min(520px,calc(100% - 40px));margin:auto;text-align:center;padding:32px}.home-welcome h2{font-size:24px;font-weight:650;color:#27384e;margin:0 0 8px}.home-welcome p{font-size:15px;color:#728298;line-height:1.8}

.logo{text-decoration:none}.my-settings-button{white-space:nowrap}
@media(max-width:700px){#account{gap:6px;flex-wrap:wrap;justify-content:flex-end}#account>button{padding:7px 9px;font-size:11px}}
/* Keep the private-topic toggle readable inside the narrower new-chat dialog. */
#peopleDialog .topic-private-label{box-sizing:border-box!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;width:100%!important;min-width:0!important;min-height:52px;padding:12px 14px!important;margin:12px 0!important;white-space:normal!important;writing-mode:horizontal-tb!important;word-break:normal!important;overflow:visible!important}
#peopleDialog .topic-private-label input{display:block!important;position:static!important;flex:0 0 18px!important;width:18px!important;height:18px!important;margin:0!important;accent-color:#294969}
#peopleDialog .topic-private-label span{display:block!important;flex:1 1 auto!important;min-width:0!important;white-space:normal!important;writing-mode:horizontal-tb!important;overflow:visible!important}
.notification-tabs{display:flex;gap:6px;position:sticky;top:-17px;z-index:2;padding:8px 0 12px;background:#fbfcfe;border-bottom:1px solid #e5e9ee;margin-bottom:12px}
.notification-tabs button{flex:1;padding:8px 5px;font-size:12px;background:#f0f2f5;color:#435166;white-space:nowrap}
.notification-tabs button[aria-selected="true"]{background:#294969;color:white}
.avatar-background-picker{display:flex;gap:8px;flex-wrap:wrap}
.avatar-background-picker button{width:30px;height:30px;padding:0;border:2px solid #fff;outline:1px solid #cbd5e1;border-radius:50%}
.avatar-background-picker button[aria-pressed="true"]{outline:2px solid #294969}
.avatar-sprite[data-background="navy"]{background-color:#21344e}.avatar-sprite[data-background="blue"]{background-color:#426d9b}.avatar-sprite[data-background="teal"]{background-color:#347c79}.avatar-sprite[data-background="green"]{background-color:#587b5d}.avatar-sprite[data-background="plum"]{background-color:#6b5a82}.avatar-sprite[data-background="rose"]{background-color:#a15d70}.avatar-sprite[data-background="slate"]{background-color:#626d7b}.avatar-sprite[data-background="amber"]{background-color:#b6813e}
.avatar-sprite[data-avatar^="m"],.avatar-sprite[data-avatar^="f"]{background-color:var(--avatar-bg,#fff)!important;background-image:url('/profile-avatars.png');background-size:500% 200%;background-repeat:no-repeat}
.avatar-sprite[data-avatar="custom"]{background-color:transparent!important}
.topic-link-preview{display:block;width:min(420px,100%);margin:8px 0;padding:10px 12px;border:1px solid #dfe5ec;border-left:3px solid #294969;border-radius:6px;background:#f8fafc;color:#294969;text-decoration:none}
.topic-link-preview small{display:block;margin-top:4px;color:#68778a}
.avatar-background-picker button[data-color="navy"]{background:#21344e}.avatar-background-picker button[data-color="blue"]{background:#426d9b}.avatar-background-picker button[data-color="teal"]{background:#347c79}.avatar-background-picker button[data-color="green"]{background:#587b5d}.avatar-background-picker button[data-color="plum"]{background:#6b5a82}.avatar-background-picker button[data-color="rose"]{background:#a15d70}.avatar-background-picker button[data-color="slate"]{background:#626d7b}.avatar-background-picker button[data-color="amber"]{background:#b6813e}
.avatar-sprite.avatar-initials[data-avatar^="m"],.avatar-sprite.avatar-initials[data-avatar^="f"]{color:transparent!important;background-image:url('/profile-avatars.png')!important;background-size:500% 200%!important;background-repeat:no-repeat!important;background-color:var(--avatar-bg,#fff)!important}
.avatar-sprite[data-avatar="m0"]{background-position:0 0}.avatar-sprite[data-avatar="m1"]{background-position:25% 0}.avatar-sprite[data-avatar="m2"]{background-position:50% 0}.avatar-sprite[data-avatar="m3"]{background-position:75% 0}.avatar-sprite[data-avatar="m4"]{background-position:100% 0}.avatar-sprite[data-avatar="f0"]{background-position:0 100%}.avatar-sprite[data-avatar="f1"]{background-position:25% 100%}.avatar-sprite[data-avatar="f2"]{background-position:50% 100%}.avatar-sprite[data-avatar="f3"]{background-position:75% 100%}.avatar-sprite[data-avatar="f4"]{background-position:100% 100%}
.topic-link-preview iframe{display:block;width:min(400px,100%);aspect-ratio:16/9;border:0;border-radius:5px;margin-top:8px}
.archived-room{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e5e9ee}.archived-room button{white-space:nowrap}
aside button.selected{background:#fff!important;color:#1e2a3a!important;box-shadow:inset 3px 0 #3b82f6!important;border-radius:6px}
.avatar-sprite.avatar-initials[data-avatar=""]{background-color:var(--avatar-bg,#21344e)!important;color:#fff!important}
.topic-files-current{display:grid;gap:5px;padding:10px 0;border-top:1px solid #e4e8ed}.topic-files-current h3{margin:3px 0;font-size:13px}.topic-file-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #edf0f3;font-size:13px}.topic-file-row span{min-width:0;overflow-wrap:anywhere}.topic-file-row button{flex:none;padding:5px 9px;color:#7f3b3b;background:#f8eeee;font-size:12px}
.avatar-dialog{width:min(560px,calc(100vw - 28px));max-height:min(92dvh,820px);overflow:auto;padding:22px}.avatar-dialog>p{margin:3px 0 12px}.avatar-preview{display:flex;align-items:center;justify-content:center;gap:14px;margin:10px auto 18px}.avatar-preview .avatar{width:84px;height:84px;border-radius:50%;background-color:var(--avatar-bg,#fff)!important}.avatar-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:10px 0 16px}.avatar-grid h3{grid-column:1/-1;margin:5px 0;font-size:13px;text-align:left}.avatar-grid button{display:grid;justify-items:center;gap:5px;min-width:0;padding:7px 3px;border:1px solid #e2e7ed;background:#f5f6f8}.avatar-grid button[aria-pressed="true"]{outline:2px solid #294969;background:#fff}.avatar-grid .avatar-sprite{width:min(66px,14vw);height:min(66px,14vw);border-radius:50%;background-color:var(--avatar-bg,#fff)!important}.avatar-choice-name{font-size:11px}.avatar-dialog>h3{margin:14px 0 8px;font-size:13px}.avatar-background-picker{display:grid;grid-template-columns:repeat(10,minmax(24px,1fr));gap:10px;margin:10px 0 14px}.avatar-background-picker button.avatar-color-swatch{width:100%;height:auto;aspect-ratio:1;padding:0;border:1px solid #aeb8c4;outline:1px solid #d9dfe7;border-radius:50%;background:var(--swatch)!important}.avatar-background-picker button.avatar-color-swatch[aria-pressed="true"]{outline:3px solid #294969;outline-offset:2px}.avatar-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin:12px 0 4px}.avatar-upload-note{display:block;margin-top:6px}@media(max-width:480px){.avatar-dialog{padding:16px}.avatar-background-picker{gap:7px}.avatar-grid .avatar-sprite{width:58px;height:58px}}

/* Final shared tokens and interactive states for the current UI revision. */
:root{--page-bg:#f7f8fa;--surface:#fff;--sidebar-bg:#f1f3f6;--ink:#1f2937;--muted:#6b7280;--border:#e5e7eb;--primary:#1e2a3a;--accent:#3b82f6;--accent-soft:#eef4fc;color:var(--ink);background:var(--page-bg)}
body,.conversation{background:var(--page-bg);color:var(--ink)}header,.login-card,dialog,.side{background:#fff;color:var(--ink);border-color:var(--border)}header{border-top-color:var(--primary)}aside{background:var(--sidebar-bg);border-right-color:var(--border)}aside h2,aside button,.identity strong,.account-identity-name{color:var(--ink)}aside button.selected{background:#fff!important;color:#1e2a3a!important;box-shadow:inset 3px 0 #3b82f6!important}button{background:#fff;border-color:#d1d5db;color:#374151}button:hover{background:#f3f4f6}button.primary,.primary,#sendButton,#loginButton{background:#1e2a3a;border-color:#1e2a3a;color:#fff}button.primary:hover,.primary:hover,#sendButton:hover,#loginButton:hover{background:#2b3a4d;color:#fff}input,textarea,#conversationType,.room-edit-form select{border-color:#d1d5db;color:#1f2937}.notification-tabs button[aria-selected="true"]{background:#1e2a3a;color:#fff}.room-tools button,.toolbar-menu button,.message-actions button{border:1px solid #d1d5db;color:#374151}.room-type-badge{display:inline-flex;align-items:center;margin-left:8px;padding:4px 9px;border:1px solid #d1d5db;border-radius:5px;background:#f8f9fb;color:#374151;font-size:12px;font-weight:600;white-space:nowrap}.room-type-badge[hidden]{display:none}.message-day-divider{display:flex;align-items:center;gap:12px;margin:18px 0 24px;color:#4b5563;font-size:12px;font-weight:650}.message-day-divider:before,.message-day-divider:after{content:"";height:1px;background:#d1d5db;flex:1}.message .author-meta{margin-left:8px;color:#6b7280;font-size:12px;font-weight:400}.system-notice{padding:10px 14px;border:1px solid #d1d5db;border-radius:7px;background:#f8f9fb}.system-notice-label{display:block;color:#6b7280;font-size:11px;font-weight:650}.topic-side-file{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #e5e7eb}.topic-side-file a{min-width:0;overflow-wrap:anywhere;color:#1e2a3a;text-decoration:none}.sidebar-install-button{display:block!important;margin:6px 0 0!important;padding:10px 11px!important;border:1px solid #d1d5db!important;border-radius:6px;color:#1e2a3a!important;background:#fff!important;text-align:center!important}.avatar-grid h3{grid-column:1/-1;margin:10px 0 2px;text-align:left;font-size:14px;color:#1e2a3a}.avatar-choice-name{display:block;margin:2px 0 6px;color:#374151;font-size:11px}.avatar-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:94px}

/* Tabbed settings and administration pages */
.settings-page-heading{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0 14px;background:#fff;border-bottom:1px solid #e5e7eb}.settings-page-heading h2{margin:0}.settings-close{min-width:80px;background:#fff!important;border:1px solid #d1d5db!important;color:#374151!important}.settings-tabs,.admin-tabs{position:sticky;top:55px;z-index:3;display:flex;gap:6px;padding:10px 0;background:#fff;border-bottom:1px solid #e5e7eb}.settings-tab,.admin-tab{min-height:38px;padding:8px 15px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#4b5563!important}.settings-tab[aria-selected="true"],.admin-tab[aria-selected="true"]{background:#eef1f4!important;color:#1e2a3a!important;font-weight:700;box-shadow:inset 0 -2px #1e2a3a!important}.settings-panels,.admin-tab-panels{padding:18px 0 80px}.settings-panel{display:grid;gap:12px;max-width:720px}.settings-panel[hidden],.admin-tab-panel[hidden]{display:none!important}.settings-panel h3{margin:4px 0 8px}.settings-panel>input{width:100%;box-sizing:border-box}.admin-tab-panel{display:grid;gap:14px}.admin-employee-search{position:sticky;top:108px;z-index:2;background:#fff}.admin-org-fold{margin:8px 0;padding:10px 12px;border:1px solid #e2e6eb;border-radius:7px;background:#fff}.admin-org-fold summary{cursor:pointer;font-weight:650;color:#253244}.admin-employee[hidden]{display:none!important}

.thread-feed-hint{margin:12px;padding:12px;background:#f1f3f6;color:#596578;border-radius:6px;font-size:13px}.thread-feed-link{display:block;width:calc(100% - 24px);margin:6px 12px;text-align:left;color:#1e2a3a}

.reaction-summary{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}.reaction-summary .reaction-chip{min-height:26px;padding:2px 8px}

/* Compact Electron window: keep the brand and account actions on one legible row. */
@media(min-width:601px) and (max-width:850px){
 header{gap:10px;padding:0 10px!important;min-width:0}
 .identity{flex:1 1 auto;min-width:0;gap:8px}
 .identity .logo{width:40px;height:40px;flex:0 0 40px}
 .identity strong{max-width:118px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
 .identity small{display:none!important}
 #account{flex:0 0 auto;flex-wrap:nowrap!important;justify-content:flex-end;gap:4px;min-width:0;white-space:nowrap}
 #account .account-identity{display:block;flex:0 1 68px;min-width:0;max-width:68px}
 #account .account-identity-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #account .account-identity small{display:none}
 #account>button{flex:0 0 auto;min-width:0;padding:7px 7px!important;font-size:11px!important;white-space:nowrap;word-break:keep-all}
}
.mention-picker[hidden]{display:none!important}
.profile-clickable{cursor:pointer}.profile-clickable:hover{text-decoration:underline;text-decoration-color:#9aa6b2;text-underline-offset:3px}
.message .avatar.profile-clickable{cursor:pointer}
.user-profile-dialog{width:min(360px,calc(100vw - 28px));padding:22px;border:1px solid #d7dde5;border-radius:10px;background:#fff;color:#1e2a3a}
.user-profile-dialog h2{margin:0 0 16px;font-size:17px}
.user-profile-head{display:flex;align-items:center;gap:12px;padding:4px 0 16px;border-bottom:1px solid #e5e7eb}
.user-profile-head .avatar{width:52px;height:52px;border-radius:50%;flex:none}
.user-profile-head>div{display:grid;gap:5px;min-width:0}.user-profile-head strong{font-size:15px}.user-profile-head small{line-height:1.45}
.user-profile-field{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #eef0f2;font-size:13px}.user-profile-field span{color:#6b7280}.user-profile-field strong{text-align:right;font-weight:550}
.user-profile-dialog>button{display:block;margin:16px 0 0 auto;min-width:72px}
.bizmeka-launch{padding:8px 11px;background:#fff;color:#294969;font-size:12px;font-weight:650;white-space:nowrap}
@media(min-width:601px) and (max-width:850px){#account>.bizmeka-launch{padding-inline:6px!important}}

/* Room list unread counts and accessible desktop sidebar resizing. */
.room-link.has-unread .room-display-name{font-weight:650}.room-unread-badge{flex:none;min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px;border-radius:999px;background:#dce3ea;color:#263445;font-size:11px;font-weight:700;line-height:1}.room-unread-badge.mention-unread-badge{background:#1e2a3a;color:#fff}.room-unread-badge.mention-unread-badge:before{content:"@";font-size:9px;margin-right:2px}
#messenger{--rooms-sidebar-width:264px;grid-template-columns:minmax(190px,var(--rooms-sidebar-width)) minmax(0,1fr)}#messenger.has-side{grid-template-columns:minmax(190px,var(--rooms-sidebar-width)) minmax(0,1fr) 360px}.sidebar-resize-handle{position:absolute;z-index:5;top:0;bottom:0;left:calc(var(--rooms-sidebar-width,264px) - 4px);width:8px;padding:0;border:0;background:transparent;cursor:col-resize;touch-action:none}.sidebar-resize-handle:after{content:"";position:absolute;top:0;bottom:0;left:3px;width:2px;background:#dfe3e8;transition:background .12s}.sidebar-resize-handle:hover:after,.sidebar-resize-handle:focus-visible:after{background:#3b82f6}.sidebar-resize-handle:focus-visible{outline:2px solid #3b82f6;outline-offset:-2px}
@media(min-width:601px) and (max-width:1100px){#messenger.has-side{grid-template-columns:minmax(190px,var(--rooms-sidebar-width)) minmax(0,1fr)}#messenger.has-side .side{width:min(380px,calc(100% - var(--rooms-sidebar-width,264px)))}}
@media(max-width:600px){.sidebar-resize-handle{display:none!important}#messenger{grid-template-columns:minmax(0,1fr)}#messenger.has-side{grid-template-columns:minmax(0,1fr)}}
#messenger.rooms-collapsed .sidebar-resize-handle{display:none}

.side-head #closeSide{font-size:13px;font-weight:600;min-width:48px;padding:7px 10px}.room-edit-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}

/* Admin console: stable navigation with an independently scrolling content pane. */
.admin-page-open #side{overflow:hidden!important}.admin-page-open .side-head{position:relative!important;top:auto!important;flex:none!important}.admin-page-open #sideError{flex:none}.admin-page-open #sideBody{flex:1;min-height:0;overflow-y:auto!important;overscroll-behavior:contain;padding:0 28px 24px!important}.admin-page-open .admin-tabs{position:sticky;top:0;z-index:15;margin:0 -28px;padding:10px 28px;background:#f7f9fc;border-bottom:1px solid #d9e0e8}.admin-page-open .admin-employee-search{position:sticky;top:58px;z-index:12;padding:10px;background:#f7f9fc}.admin-add-fold{margin:4px 0 14px}.admin-add-fold>summary{cursor:pointer;list-style:none;padding:12px 15px;border:1px solid #d6dde6;border-radius:7px;background:white;color:#26384c;font-weight:650}.admin-add-fold>summary::-webkit-details-marker{display:none}.admin-add-fold[open]>summary{border-radius:7px 7px 0 0}.admin-org-layout{display:grid;grid-template-columns:minmax(190px,280px) minmax(0,1fr);min-height:210px;border:1px solid #dce2e9;border-radius:8px;background:white;overflow:hidden}.admin-org-tree{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:10px;border-right:1px solid #e2e6eb;background:#f7f8fa}.admin-org-tree button{width:100%;text-align:left;padding:9px 11px;background:transparent;color:#36485c}.admin-org-tree .admin-org-root{font-weight:700}.admin-org-tree .admin-org-department{padding-left:25px}.admin-org-tree button:hover,.admin-org-tree button.selected{background:#e9edf2}.admin-org-roster{padding:12px 16px}.admin-org-roster h4{margin:0 0 9px}.admin-org-roster .admin-org-person{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #edf0f3;padding:9px 2px}.admin-org-person small{color:#6b7280}.admin-employee-head{cursor:pointer}.admin-employee-head:focus-visible{outline:2px solid #3b82f6;outline-offset:3px;border-radius:5px}.admin-employee-head small{color:#687789}.admin-employee{cursor:default}.admin-employee details>summary{padding:9px 0;cursor:pointer}.admin-employee-meta{overflow-wrap:anywhere}.admin-employee .admin-status{margin-left:auto}@media(max-width:650px){.admin-page-open #sideBody{padding:0 14px 20px!important}.admin-page-open .admin-tabs{margin:0 -14px;padding:8px 14px}.admin-org-layout{grid-template-columns:1fr}.admin-org-tree{border-right:0;border-bottom:1px solid #e2e6eb}.admin-org-tree{max-height:190px;overflow:auto}}

.system-event{justify-content:center;margin:10px 0 18px}.system-event-content{display:flex;align-items:baseline;justify-content:center;gap:9px;max-width:min(92%,760px);padding:8px 14px;border-radius:7px;background:#f1f3f6;color:#596579;text-align:center}.system-event-label{flex:none;font-size:11px;font-weight:700;color:#455267}.system-event-text{margin:0!important;color:#596579!important;font-size:13px!important;line-height:1.5!important}.system-event time{flex:none;font-size:11px;color:#8b95a3}

.youtube-thumbnail{position:relative;display:block;width:min(400px,100%);margin-top:8px;overflow:hidden;border-radius:6px;background:#e8edf2;aspect-ratio:16/9}.youtube-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}.youtube-thumbnail .youtube-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:54px;height:38px;border-radius:11px;background:rgba(20,28,38,.82);color:#fff;font-size:22px}.reaction-panel .reaction-close{min-width:48px;padding:4px 9px;border-radius:6px;font-size:12px}

.remember-login{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:16px 0 -8px}.remember-login label{display:flex!important;align-items:center;gap:8px;margin:0!important;font-size:13px!important;cursor:pointer}.remember-login input{width:16px!important;height:16px;margin:0;accent-color:#1e2a3a}.remember-login small{line-height:1.5}

.login-card .eyebrow{display:block;margin-bottom:8px;font-weight:650;letter-spacing:.08em}.login-card h1{margin:4px 0 8px;font-size:27px;letter-spacing:.09em}.login-card>p{margin:0 0 20px}#serverStatus:empty{display:none}
