:root{font-family:"Google Sans","Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;color:#1f1f1f;background:#f5f8fc;font-synthesis:none;--primary:#0b57d0;--primary-container:#d3e3fd;--on-primary-container:#041e49;--surface:#fff;--surface-low:#f5f8fc;--surface-high:#e9eef6;--outline:#c4c7c5;--line:#e3e7ed;--secondary:#5f6368;--radius:24px;--error:#b3261e}
*{box-sizing:border-box}html,body,#app{margin:0;min-height:100%;height:100%}body{overflow:hidden}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button{border:0;background:none;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #0b57d0;outline-offset:3px}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:0}a{color:var(--primary)}h1,h2,h3,p{margin:0}h1{font-size:30px;font-weight:500;letter-spacing:-.5px;line-height:1.3}h2{font-size:22px;font-weight:500;line-height:1.4}h3{font-size:16px;font-weight:600}input,textarea,select{min-width:0}select{appearance:auto;background:none;border:0;color:inherit}input,textarea{background:transparent;color:inherit}textarea{resize:none}fieldset{border:0;margin:0;padding:0;min-width:0}legend{padding:0;margin-bottom:16px;font-weight:600;font-size:15px}svg{flex:none}.icon{width:22px;height:22px;fill:currentColor;display:inline-block;vertical-align:middle;flex-shrink:0}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-60px;left:16px;z-index:9999;background:#fff;padding:12px;border-radius:8px}.skip-link:focus{top:8px}[hidden]{display:none!important}.grow{flex:1;min-width:0}.secondary{color:var(--secondary);font-size:13px;line-height:1.6}.dot{margin:0 6px}.eyebrow{font-size:11px;letter-spacing:1.8px;color:var(--secondary);margin-bottom:8px;font-weight:600}.button{height:42px;min-width:64px;padding:0 22px;border-radius:24px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:600;white-space:nowrap;letter-spacing:.1px}.button .icon{width:19px;height:19px}.button.filled{background:var(--primary);color:white}.button.filled:hover:not(:disabled){background:#084bbb;box-shadow:0 1px 4px #0b57d02e}.button.tonal{background:#e8f0fe;color:var(--primary)}.button.tonal:hover:not(:disabled){background:#d8e7ff}.button.outlined{border:1px solid #b4bbc5;color:var(--primary);background:transparent}.button.text{color:var(--primary);padding:0 16px}.button.text:hover:not(:disabled),.button.outlined:hover:not(:disabled){background:#eef3fa}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#5f6368;flex:none}.icon-button:hover:not(:disabled){background:#e8edf4}.field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:500;min-width:0;margin-bottom:22px}.field>span{color:#444746}.field input,.field select,.field textarea{border:1px solid #b9bfc8;border-radius:12px;padding:14px 15px;width:100%;min-height:52px;font-size:16px;font-weight:400;line-height:1.5;background:#fff}.field textarea{line-height:1.8}.field input:focus,.field select:focus,.field textarea:focus{border:2px solid var(--primary);padding:13px 14px}.field input:disabled{background:#f2f4f7;color:#777}.field input::placeholder,.field textarea::placeholder{color:#8a9099}.brand-mark{width:44px;height:44px;display:inline-flex;justify-content:center;align-items:center;background:var(--primary);border-radius:15px;color:#fff;flex:none}.brand-mark .icon{width:25px;height:25px}.avatar{display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;border-radius:50%;background:#e2ebf9;color:#174ea6;font-weight:600;font-size:17px;flex-shrink:0}.avatar.group{background:#e5ede8;color:#36634c;border-radius:15px}.avatar.group .icon{width:24px;height:24px}.boot{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px}.loader{width:28px;height:28px;border:3px solid #d3e3fd;border-top-color:#0b57d0;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:240px;flex:1;color:#6b7280;padding:36px;gap:12px}.empty-symbol{width:76px;height:76px;background:#e9eff7;border-radius:26px;display:flex;align-items:center;justify-content:center;color:#6b89b5;margin-bottom:8px}.empty-symbol .icon{width:33px;height:33px}.empty h2{font-size:20px;font-weight:400;color:#444b55}.empty p{font-size:14px;line-height:1.7}.login-page{height:100%;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px;background:radial-gradient(ellipse at 15% 0%,#e9f0fd 0,transparent 50%),#f5f8fc}.login-brand{display:flex;align-items:center;gap:13px;font-size:25px;letter-spacing:-.5px;margin-bottom:34px;color:#2b3443}.login-brand strong{font-weight:400;color:var(--primary)}.login-card{width:440px;max-width:100%;padding:42px;background:white;border:1px solid #edf0f5;border-radius:28px;box-shadow:0 16px 60px #17304d08}.login-title{margin-bottom:32px}.login-title h1{font-size:32px;font-weight:500;margin-bottom:10px}.login-title p{color:var(--secondary);font-size:15px}.code-row{display:flex;gap:10px;align-items:flex-end}.code-row>.field{flex:1}.code-button{height:52px;margin-bottom:22px;font-size:13px;padding:0 14px;border-radius:12px}.login-submit{width:100%;height:50px;margin-top:6px;justify-content:space-between;padding:0 24px}.login-note{color:#747a84;font-size:12px;line-height:1.8;text-align:center;margin-top:24px}.login-footer{font-size:11px;color:#9298a1;letter-spacing:1px;margin-top:40px}.form-error{font-size:13px;line-height:1.6;color:var(--error);background:#fff1ef;border-radius:10px;padding:10px 12px;margin-top:16px}.app-shell{display:flex;height:100dvh;overflow:hidden;min-height:0}.rail{width:84px;padding:28px 8px 18px;display:flex;flex-direction:column;align-items:center;flex-shrink:0;background:#f0f4f9}.rail-brand{margin-bottom:40px;text-decoration:none}.rail-items{width:100%;display:flex;flex-direction:column;gap:14px}.rail-item{width:100%;height:67px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#495261;font-size:12px;font-weight:500;border-radius:16px}.rail-icon{display:flex;align-items:center;justify-content:center;width:58px;height:32px;border-radius:18px}.rail-item.selected .rail-icon{background:var(--primary-container);color:var(--on-primary-container)}.rail-item:hover .rail-icon{background:#e0e8f3}.rail-item.selected{color:#192d4b}.rail-bottom{margin-top:auto;display:flex;flex-direction:column;gap:12px;align-items:center}.profile-button{padding:0;border-radius:50%}.profile-button .avatar{width:36px;height:36px;background:#d5e4da;color:#315943;font-size:14px}.workspace{flex:1;min-width:0;min-height:0;overflow:hidden}.chat-layout{display:flex;height:100%;padding:16px 16px 16px 0;gap:0}.conversation-list{width:320px;flex-shrink:0;display:flex;flex-direction:column;padding:7px 16px 8px 8px;min-height:0}.list-heading{padding:9px 12px 20px}.company-name{font-size:12px;color:#6e7480;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin-bottom:21px;font-weight:500}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.list-heading .section-heading{margin-bottom:20px}.list-heading h1{font-size:29px}.search{height:46px;display:flex;align-items:center;gap:10px;padding:0 15px;border-radius:26px;background:#eaf0f7;color:#647184;min-width:0;border:1px solid transparent}.search:focus-within{background:#fff;border-color:#a8c7fa}.search .icon{width:20px;height:20px}.search input{width:100%;border:0;height:100%;font-size:14px;color:#303944}.search input::placeholder{color:#747c89}.rooms{flex:1;overflow:auto;min-height:0;scrollbar-width:thin;padding:0 1px}.room{width:100%;display:flex;align-items:center;gap:13px;padding:15px 12px;min-height:83px;text-align:left;border-radius:18px;margin-bottom:3px}.room:hover{background:#eaf0f7}.room.active{background:#dce8fa}.room.active .avatar{background:#fff9}.room-copy{flex:1;min-width:0}.room-top,.room-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.room-top{margin-bottom:7px}.room-top strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-top time{font-size:10px;color:#6b7788;flex:none}.room-bottom>span:first-child{font-size:12px;color:#6b7380;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.unread{height:20px;min-width:20px;max-width:34px;padding:0 5px;border-radius:12px;background:var(--primary);color:white;font-size:10px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.list-empty{padding:36px;text-align:center;font-size:13px;color:#7a818c}.list-footer{display:flex;align-items:center;gap:6px;color:#87909b;font-size:10px;padding:16px 13px 0}.connection-dot{width:6px;height:6px;border-radius:50%;background:#ba9242}.connection-dot.online{background:#53916c}.list-product{margin-left:auto;letter-spacing:.2px}.conversation{flex:1;display:flex;flex-direction:column;background:#fff;border:1px solid #e6eaf0;border-radius:24px;overflow:hidden;min-height:0;min-width:0}.conversation-header{height:89px;min-height:89px;display:flex;align-items:center;padding:0 28px;gap:14px;border-bottom:1px solid #edf0f4}.conversation-title{display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-align:left;gap:5px;border-radius:4px}.conversation-title h2{font-size:17px;white-space:nowrap;max-width:34vw;overflow:hidden;text-overflow:ellipsis}.conversation-title span{font-size:12px;color:#7d838d}.retention-chip{margin-left:auto;display:inline-flex;align-items:center;gap:6px;border:1px solid #e3e8ef;border-radius:18px;padding:7px 10px;font-size:11px;white-space:nowrap;color:#718094}.retention-chip .icon{width:15px;height:15px}.mobile-back{display:none}.message-list{flex:1;overflow:auto;padding:18px 32px 12px;background:#fcfdff;scrollbar-width:thin;min-height:0;overscroll-behavior:contain}.message-list>.empty{height:100%;min-height:200px}.day-divider{margin:14px 0 24px;text-align:center;color:#8b929e;font-size:11px}.message{display:flex;align-items:flex-start;gap:11px;margin:0 0 24px;max-width:100%}.message>.avatar{width:33px;height:33px;font-size:12px;margin-top:1px}.message.own{justify-content:flex-end}.message-content{display:flex;flex-direction:column;align-items:flex-start;max-width:min(74%,640px)}.message.own .message-content{align-items:flex-end}.sender-name{color:#89909b;font-size:11px;margin:0 0 6px 1px}.bubble{background:#f0f3f8;border-radius:4px 18px 18px 18px;padding:12px 16px;font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;color:#2c3442;max-width:100%}.message.own .bubble{background:#e0ecff;color:#163454;border-radius:18px 4px 18px 18px}.message-meta{font-size:10px;color:#8e96a3;display:flex;align-items:center;gap:6px;margin-top:6px;padding:0 3px;line-height:1.5}.message-meta>.icon{width:12px;height:12px;color:#5f84b1}.image-bubble{padding:4px;overflow:hidden}.image-bubble button{display:block;padding:0;line-height:0;border-radius:inherit}.image-bubble img{max-width:280px;max-height:320px;min-width:60px;min-height:60px;object-fit:contain;border-radius:12px;display:block}.retry-message{color:var(--error);font-size:11px;text-decoration:underline;padding:2px}.composer{display:flex;align-items:flex-end;gap:12px;border-top:1px solid #edf0f4;padding:18px 24px 20px;background:#fff}.composer>.icon-button{height:44px;width:40px;color:#74829a}.composer textarea{flex:1;min-height:45px;max-height:140px;border:0;background:#f3f6fa;border-radius:16px;padding:12px 16px;font-size:14px;line-height:21px;scrollbar-width:thin}.composer textarea:focus{background:#eff4fc}.composer textarea::placeholder{color:#8a94a4}.send-button{height:44px;width:48px;display:flex;align-items:center;justify-content:center;color:white;background:var(--primary);border-radius:16px;flex-shrink:0}.send-button:hover{background:#084bbc}.send-button .icon{width:21px;height:21px}.history-button{display:block;font-size:12px;color:var(--primary);padding:8px 14px;border-radius:20px;margin:0 auto 16px}.history-button:hover{background:#eaf1fb}.admin-page,.contacts-page{height:100%;overflow:auto;padding:42px clamp(24px,4vw,68px);scrollbar-width:thin}.admin-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}.admin-header h1{font-size:30px}.company-switch{display:flex;align-items:center;gap:10px;border-radius:14px;background:white;padding:11px 14px;max-width:360px;border:1px solid #e5e9ef;color:#495262}.company-switch .icon{width:20px;height:20px;color:#75839a}.company-switch select{max-width:280px;font-size:14px}.admin-tabs{display:flex;gap:8px;border-bottom:1px solid #dee4ed;margin-bottom:32px;overflow:auto;white-space:nowrap;scrollbar-width:none}.tab{display:inline-flex;align-items:center;gap:8px;min-height:53px;padding:12px 18px;border-bottom:3px solid transparent;color:#647082;font-size:14px}.tab .icon{width:19px;height:19px}.tab.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}.tab:hover{background:#eaf0f8}.admin-content{max-width:1250px}.admin-content .section-heading h2{font-size:22px;margin-bottom:4px}.actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.company-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:20px}.company-card{padding:24px;border:1px solid #e3e8f0;border-radius:22px;background:white}.company-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.company-symbol{width:48px;height:48px;border-radius:16px;background:#e9f0fc;color:#5f80b4;display:flex;align-items:center;justify-content:center}.company-card h3{font-size:18px;font-weight:500;margin-bottom:10px}.company-card p{color:#7a8595;font-size:13px;margin-bottom:24px}.company-card .button{width:100%;justify-content:space-between}.filter-row{display:flex;align-items:center;gap:16px;margin-bottom:22px}.filter-row .search{max-width:360px;flex:1;background:#fff;border-color:#e0e6ee}.filter-select select{height:46px;max-width:280px;background:white;border:1px solid #e0e6ee;padding:0 14px;border-radius:12px;font-size:13px}.table-surface{background:white;border:1px solid #e4e9f0;border-radius:20px;overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th{font-size:12px;color:#798491;background:#fafbfd;white-space:nowrap;padding:17px 20px;font-weight:500}td{padding:16px 20px;color:#596473;border-top:1px solid #edf0f4;line-height:1.7}td:first-child{color:#293543}td .icon-button{width:34px;height:34px}.person-cell{display:flex;align-items:center;gap:12px;white-space:nowrap}.person-cell strong{font-weight:500}.person-cell .avatar{width:32px;height:32px;font-size:12px}.role-tag{display:inline-flex;border-radius:6px;background:#f2f4f8;font-size:11px;line-height:1.4;padding:5px 9px;color:#6d7788;white-space:nowrap}.role-tag.admin-role{color:#2c609e;background:#eaf2ff}.status-label{font-size:12px;color:#527d61;white-space:nowrap}.status-label:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#68a37b;margin-right:6px;vertical-align:middle}.status-label.disabled{color:#959ba5}.status-label.disabled:before{background:#b3b8c0}.table-empty{text-align:center;padding:50px;color:#8b94a0}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:20px;color:#8b949f;font-size:12px}.pagination>span{margin-right:auto}.department-list{border:1px solid #e4e9f0;border-radius:20px;background:#fff;overflow:hidden}.department-row{display:flex;align-items:center;gap:18px;padding:20px 24px;border-bottom:1px solid #edf0f4}.department-row:last-child{border-bottom:0}.department-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;background:#edf3ef;color:#62876c;flex-shrink:0}.department-row h3{font-size:15px;font-weight:500;margin-bottom:5px}.department-row p{font-size:12px;color:#9098a3}.settings-card{background:#fff;border:1px solid #e4e9f0;padding:28px 32px;border-radius:24px;max-width:710px}.radio-card{display:flex;align-items:flex-start;gap:14px;padding:17px 0}.radio-card input{margin:3px 0 0;accent-color:var(--primary);width:20px;height:20px;flex-shrink:0}.radio-card span{display:flex;flex-direction:column;gap:7px}.radio-card strong{font-size:14px;font-weight:500}.radio-card small{font-size:12px;color:#858e9b;line-height:1.7}.settings-card>.field{margin-top:26px;max-width:350px}.settings-card #retention-days{margin-top:18px;max-width:220px}.settings-footer{border-top:1px solid #ecf0f5;margin-top:28px;padding-top:22px;display:flex;justify-content:flex-end}.settings-note{font-size:12px;color:#738096;line-height:1.8}.contacts-page{max-width:1500px}.contacts-search{max-width:460px;margin:28px 0}.contacts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.contact-card{display:flex;align-items:center;gap:16px;background:white;border:1px solid #e3e9f1;padding:21px;border-radius:20px;text-align:left}.contact-card>.icon{color:#7a91b1;width:19px;height:19px}.contact-card .grow{display:flex;flex-direction:column;gap:7px}.contact-card strong{font-size:14px;font-weight:500}.contact-card .grow>span{font-size:12px;color:#8792a1}.contact-card:hover{border-color:#b8ceee;background:#fbfdff}.contacts-page>.button{margin:24px auto;display:flex}dialog{width:540px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);border:1px solid #e0e5ed;background:#fff;border-radius:26px;box-shadow:0 24px 80px #0b183426;padding:0;color:#243141;overflow:auto}dialog::backdrop{background:#192c4845}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 26px 10px}.dialog-heading h2{font-size:22px}.dialog-body{padding:18px 30px 28px}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding:0 26px 26px}.dialog-body .field:last-child{margin-bottom:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-divider{height:1px;background:#e7edf4;margin:6px 0 22px}.form-subtitle{font-size:14px;margin:0 0 20px}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 10px;margin:4px 0 16px}.permission-grid legend{font-size:13px;margin-bottom:17px}.checkbox{display:flex;align-items:center;gap:10px;font-size:13px;color:#5d6878;line-height:1.7}.checkbox input{width:18px;height:18px;margin:0;accent-color:var(--primary);flex-shrink:0}.segmented{display:flex;padding:4px;border:1px solid #dce3ed;border-radius:24px;margin:0 0 26px}.segmented button{flex:1;padding:10px 6px;font-size:12px;border-radius:20px;white-space:nowrap;color:#6d7a8d}.segmented button.selected{background:#e2edfe;color:#174c93;font-weight:600}.file-drop{display:flex;flex-direction:column;align-items:center;gap:12px;border:1px dashed #aebfd7;padding:30px 16px;border-radius:18px;background:#fafcff;text-align:center}.file-drop>.icon{color:#6f92c4;width:30px;height:30px}.file-drop strong{font-size:15px;font-weight:500}.file-drop span{font-size:12px;color:#8795a7;line-height:1.8}.file-drop input{font-size:12px;max-width:100%;margin-top:8px}.text-link{display:inline-block;font-size:13px;margin-top:16px;text-decoration:none}.switch-row{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin-top:24px}.switch{appearance:none;width:46px;height:28px;border-radius:18px;background:#ced4dd;position:relative;cursor:pointer}.switch:before{content:'';position:absolute;top:4px;left:4px;width:20px;height:20px;background:#fff;border-radius:50%}.switch:checked{background:var(--primary)}.switch:checked:before{left:22px}.switch:focus-visible{outline:3px solid #91b7f1}.profile-summary{display:flex;flex-direction:column;align-items:center;gap:16px}.profile-summary .avatar{width:66px;height:66px;font-size:24px}.profile-summary h3{font-size:21px}.profile-summary p{font-size:14px;color:#768599}.profile-logout{display:flex;justify-content:center;margin-top:30px}.members-list{max-height:420px;overflow:auto}.member-row{display:flex;align-items:center;gap:16px;padding:14px 0;font-size:14px}.member-row .secondary{margin-left:auto}.image-view{display:flex;align-items:center;justify-content:center}.image-view img{max-width:100%;max-height:70dvh;object-fit:contain;border-radius:12px}dialog:has(.image-view){width:900px}#toast{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);z-index:10000;max-width:min(560px,calc(100vw - 32px));padding:13px 20px;border-radius:14px;background:#293442;color:white;box-shadow:0 8px 28px #11273f26;font-size:13px;line-height:1.7;display:none}#toast.show{display:block}
@media(min-width:1500px){.conversation-list{width:360px}.message-list{padding-left:48px;padding-right:48px}.admin-page{padding-top:50px}.chat-layout{padding:20px 24px 20px 0}.conversation-header{height:96px;min-height:96px}}
@media(max-width:1100px){.conversation-list{width:282px;padding-right:10px}.rail{width:76px}.conversation-header{padding:0 20px}.message-list{padding:18px 20px}.admin-page{padding:28px 22px}.admin-tabs{gap:0}.tab{padding:12px 12px}.table-surface td,.table-surface th{padding:14px}.retention-chip{padding:7px}.retention-chip span{max-width:95px;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:780px){h1{font-size:27px}.app-shell{flex-direction:column}.rail{order:2;width:100%;height:calc(70px + env(safe-area-inset-bottom));padding:4px 16px calc(4px + env(safe-area-inset-bottom));flex-direction:row;border-top:1px solid #e0e6ef}.rail-brand{display:none}.rail-items{flex-direction:row;justify-content:center;gap:16px;flex:1}.rail-item{width:85px;height:57px;gap:3px;font-size:11px}.rail-icon{height:30px;width:60px}.rail-bottom{margin-top:0;flex-direction:row;margin-left:10px}.rail-bottom>.icon-button{display:none}.profile-button .avatar{width:30px;height:30px;font-size:12px}.workspace{order:1;flex:1}.chat-layout{padding:0;gap:0}.conversation-list{width:100%;padding:8px 12px 4px}.list-heading{padding:15px 8px 17px}.company-name{margin-bottom:14px;font-size:12px}.list-heading .section-heading{margin-bottom:16px}.list-heading h1{font-size:29px}.search{height:46px}.room{padding:16px 12px;min-height:86px;border-radius:18px}.room .avatar{width:48px;height:48px;font-size:18px}.room-top strong{font-size:15px}.room-top time{font-size:11px}.room-bottom>span:first-child{max-width:70vw;font-size:13px}.list-footer{padding:9px 10px 6px}.conversation{display:none;border:0;border-radius:0}.conversation-open .conversation-list{display:none}.conversation-open .conversation{display:flex}.app-shell:has(.conversation-open)>.rail{display:none}.conversation-header{height:76px;min-height:76px;gap:10px;padding:0 14px 0 5px;padding-top:env(safe-area-inset-top)}.conversation-header>.avatar{width:36px;height:36px;font-size:14px}.conversation-title h2{font-size:16px;max-width:45vw}.conversation-title span{font-size:11px}.mobile-back{display:block}.mobile-back>.icon-button{width:35px}.retention-chip{border:0;padding:5px 0;gap:5px;margin-left:auto}.retention-chip>span{font-size:10px;max-width:65px}.retention-chip .icon{width:14px;height:14px}.message-list{padding:12px 16px}.message{gap:8px;margin-bottom:22px}.message-content{max-width:80%}.bubble{padding:10px 14px;font-size:14px;line-height:1.7}.message>.avatar{width:29px;height:29px;font-size:11px}.image-bubble{padding:4px}.image-bubble img{max-width:220px;max-height:280px}.composer{padding:11px 10px calc(11px + env(safe-area-inset-bottom));gap:7px}.composer>.icon-button{width:33px}.composer textarea{font-size:16px;padding:12px;line-height:22px;border-radius:14px}.send-button{width:44px}.admin-page,.contacts-page{padding:24px 16px}.admin-header{margin-bottom:24px;align-items:flex-start;gap:16px}.admin-header h1{font-size:25px}.admin-header .eyebrow{font-size:9px;letter-spacing:1.1px}.company-switch{max-width:45%;padding:8px;border-radius:12px;margin-top:8px;gap:6px}.company-switch .icon{width:17px}.company-switch select{max-width:100%;font-size:12px}.admin-tabs{margin-bottom:24px;gap:0}.tab{font-size:12px;padding:9px 12px;min-height:47px;gap:6px}.tab .icon{width:16px;height:16px}.admin-content .section-heading h2{font-size:21px}.section-heading{gap:12px;margin-bottom:20px;align-items:flex-start}.section-heading .actions{gap:8px;max-width:64%}.actions .button{height:37px;font-size:12px;padding:0 12px}.actions .button .icon{width:16px;height:16px}.section-heading>.button{height:38px;font-size:12px;padding:0 14px}.filter-row{gap:10px;flex-wrap:wrap}.filter-row .search{max-width:none;flex-basis:190px}.filter-select{max-width:46%;flex:1}.filter-select select{width:100%;font-size:12px}.table-surface{border-radius:16px}.users-table{min-width:690px}.company-grid{grid-template-columns:1fr}.company-card{padding:22px}.department-row{padding:17px 14px;gap:12px}.department-row h3{font-size:14px}.department-row p{font-size:11px}.department-icon{width:36px;height:36px;border-radius:12px}.department-row .icon-button{width:32px;height:36px}.department-row .icon-button .icon{width:18px}.settings-card{padding:22px 20px;border-radius:20px}.radio-card small{font-size:12px}.contacts-grid{grid-template-columns:1fr}.contacts-search{margin:22px 0}.contacts-page .section-heading{margin-top:5px}.contact-card{padding:19px}.login-page{padding:30px 20px;justify-content:center}.login-brand{font-size:23px;margin-bottom:30px}.login-card{padding:30px 26px;border-radius:24px}.login-title h1{font-size:29px}.login-title{margin-bottom:28px}.login-note{font-size:11px}.login-footer{margin-top:28px}.code-button{font-size:12px;padding:0 11px}.login-card .field input{font-size:16px}.dialog-heading{padding:20px 20px 5px}.dialog-heading h2{font-size:21px}.dialog-body{padding:16px 22px 24px}.dialog-footer{padding:0 20px 24px}.form-grid{grid-template-columns:1fr;gap:0}.permission-grid{gap:16px 8px}.checkbox{font-size:12px}.segmented{margin-bottom:22px}.segmented button{font-size:12px;padding:9px 4px}.image-view img{max-height:65dvh}#toast{bottom:90px;font-size:12px;min-width:220px;text-align:center}.app-shell:has(.conversation-open)~#toast{bottom:85px}}
@media(max-width:370px){.login-card{padding:26px 20px}.login-page{padding:20px 14px}.retention-chip>span{display:none}.permission-grid{grid-template-columns:1fr}.rail-items{gap:2px}.rail-bottom{margin-left:0}.admin-header{flex-direction:column;gap:12px}.company-switch{max-width:100%;margin-top:0}.actions .button .icon{display:none}.message-list{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.loader{animation:none}*{scroll-behavior:auto!important}}
@media print{body>*{display:none!important}body:after{content:'AIPECO Chat';display:block;text-align:center;margin:100px;color:#777}}

html.suspended #app{visibility:hidden}
html{overflow-x:clip}body,#app{width:100%;max-width:100vw}.rail-items{min-width:0}.admin-content{min-width:0}
@media(max-width:780px){.rail-items{width:auto;gap:8px}.rail-item{width:auto;min-width:0;flex:1}.rail-bottom{flex-shrink:0}.admin-page,.contacts-page{overflow-x:hidden}}
.sr-only{left:0;top:0;clip-path:inset(50%)}.table-surface{position:relative}

/* Responsive workspaces and accessible interaction states. */
.button{min-height:44px}.icon-button,td .icon-button,.department-row .icon-button,.mobile-back>.icon-button,.composer>.icon-button{width:44px;height:44px;min-width:44px}
.company-switch:focus-within,.filter-select:focus-within{outline:2px solid var(--primary);outline-offset:2px}.search:focus-within{border-color:var(--primary)}
.message-meta,.conversation-title span,.contact-card .grow>span,.sender-name,.file-drop span,.table-empty{color:#5f6b7a}.message-meta{font-size:11px}
.privacy-note{font-size:12px;line-height:1.8;color:#5b6674;margin-top:18px}.profile-summary~.privacy-note{text-align:center}
.image-unavailable{display:block;padding:24px 18px;color:#5f6b7a;font-size:13px;background:#edf1f7;border-radius:12px}
.conversation-title{flex:1;overflow:hidden}.conversation-title h2{max-width:100%;width:100%}.retention-chip{flex:none}
.record-filters{display:grid;grid-template-columns:minmax(160px,2fr) repeat(2,minmax(110px,1fr)) repeat(2,minmax(140px,1fr)) auto;align-items:end;gap:12px;margin-bottom:24px}
.record-filters .field{margin:0;gap:8px}.record-filters input,.record-filters select{font-size:14px;min-height:46px;height:46px;padding:10px 12px}.record-filters input:focus,.record-filters select:focus{padding:9px 11px}
.record-search{background:#fff;border:1px solid #d5dce6;height:46px;border-radius:12px}.record-search input{padding:0;border:0}.record-search input:focus{padding:0}.record-filters .button{height:46px}
.record-list{display:grid;gap:14px}.record-card{background:#fff;border:1px solid #e1e6ee;border-radius:20px;padding:22px 24px;min-width:0}
.record-card header{display:flex;align-items:center;justify-content:space-between;gap:16px}.record-person{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.record-person strong{font-size:15px;font-weight:600}.record-person span,.record-card time{font-size:12px;color:#5d6a7b;white-space:nowrap}
.record-room{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.record-room .text-link{margin:0;padding:8px 0;line-height:1.5;text-align:left;overflow-wrap:anywhere}
.record-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.8;margin-top:14px;color:#273446}.record-card footer{margin-top:14px}
.deletion-badge{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:5px 12px;background:#edf1f7;color:#53647e;border-radius:20px;font-size:12px}.deletion-badge .icon{width:17px;height:17px}.deletion-badge:hover{background:#e1e8f3}
.record-scope{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px;border-radius:14px;background:#e7f0ff;padding:8px 16px;color:#16458a;font-size:14px}
.deletion-row,.deletion-global{display:flex;flex-direction:column;gap:8px;padding:16px 0;border-bottom:1px solid #e4e9f0;font-size:14px;line-height:1.7}.deletion-row span,.deletion-global>span{color:#5f6b7a;font-size:12px}.deletion-row strong span{margin-left:8px;font-weight:400}
@media(max-width:1350px){.record-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.record-search{grid-column:1/-1}}
@media(max-width:780px){
 .admin-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;overflow:visible;border:0;background:#e9eef6;border-radius:18px;padding:5px}
 .admin-tabs .tab{min-height:44px;padding:8px 6px;justify-content:center;border:0;border-radius:13px;font-size:12px}.admin-tabs .tab.active{background:#d3e3fd;color:#123f88}.admin-tabs .tab .icon{width:17px;height:17px}
 .section-heading .actions{flex-wrap:wrap;max-width:62%;justify-content:flex-end}.actions .button,.section-heading>.button{height:44px}.checkbox{min-height:40px}
 .table-surface:has(.users-table),.table-surface:has(.audit-table){overflow:visible;background:transparent;border:0;border-radius:0}
 .users-table,.audit-table{min-width:0;width:100%;display:block}.users-table thead,.audit-table thead{display:none}.users-table tbody,.audit-table tbody{display:grid;gap:12px}
 .users-table tr,.audit-table tr{display:block;position:relative;border:1px solid #e1e7ef;background:#fff;border-radius:18px;overflow:hidden;padding:8px 0}
 .table-surface .users-table td,.table-surface .audit-table td{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:center;border:0;padding:7px 18px;font-size:13px;white-space:normal;overflow-wrap:anywhere}
 .users-table td[data-label]:before,.audit-table td[data-label]:before{content:attr(data-label);font-size:12px;color:#5f6b7a}
 .table-surface .users-table td:first-child{display:block;padding:10px 62px 12px 18px}.users-table .person-cell{gap:10px}.users-table .person-cell strong{overflow-wrap:anywhere}.users-table .person-cell .avatar{width:34px;height:34px;font-size:14px}
 .table-surface .users-table td:last-child:not([colspan]){position:absolute;top:9px;right:8px;display:block;padding:0}.table-surface td[colspan]{display:block!important;position:static!important;padding:26px!important;text-align:center}
 .users-table .role-tag,.users-table .status-label{justify-self:start;width:max-content;max-width:100%}.pagination{flex-wrap:wrap}
 .record-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.record-search{grid-column:1/-1}.record-filters>.button{grid-column:1/-1;justify-self:end;min-width:108px}.record-filters input,.record-filters select{font-size:14px}
 .record-card{padding:18px 16px;border-radius:18px}.record-card header{align-items:flex-start;flex-direction:column;gap:8px}.record-person{gap:10px}.record-body{font-size:14px}.deletion-badge{min-height:44px}
 .department-row{gap:6px}.department-row .department-icon{margin-right:5px}.department-row .icon-button{min-width:40px;width:40px;height:44px}
}
.contact-group{margin:0 0 30px}.contact-group>h2{display:flex;align-items:center;gap:10px;font-size:17px;margin-bottom:14px}.contact-group>h2 span{font-size:11px;font-weight:500;color:#6f7c8e;background:#edf2f8;border-radius:12px;padding:3px 8px}.card-actions{display:flex;gap:8px}.card-actions .button{flex:1}.department-admins{margin-top:5px;color:#60748e!important}.manager-list{display:flex;flex-direction:column;gap:6px}.manager-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #edf0f4}.manager-row .grow{display:flex;flex-direction:column;gap:3px}.manager-row small{color:#7d8998}.manager-row .button{padding:0 8px;min-height:36px}.dialog-body>form+form{border-top:1px solid #e7edf4;margin-top:22px;padding-top:22px}.dialog-body>form>.button{margin-top:12px}.button.danger{color:#a43f3f}.release-notes p{line-height:1.9;margin-top:18px;color:#536174}.release-actions{padding:22px 0 0}.release-form{max-width:820px}.release-form textarea{resize:vertical}
@media(max-width:420px){.conversation-header>.avatar{display:none}.conversation-header{gap:7px}.retention-chip>span{max-width:65px}.record-filters .field input{max-width:100%}}

/* 2.0.0.1 hotfix: compact audit filters and explicit profile actions. */
.profile-edit{margin:24px auto 0;max-width:360px;padding-top:22px;border-top:1px solid #e7edf4}.profile-edit .field{margin-bottom:14px}.profile-edit .button,.contact-profile-action .button{width:100%}.profile-logout{margin-top:14px}.contact-profile-action{margin:24px auto 0;max-width:360px}.contact-profile p{font-variant-numeric:tabular-nums;letter-spacing:.3px}
.record-filters{padding:14px;background:#fff;border:1px solid #e1e6ee;border-radius:18px;grid-template-columns:minmax(240px,2fr) repeat(2,minmax(112px,1fr)) repeat(2,minmax(132px,1fr)) 92px;gap:10px;margin-bottom:16px}.record-filters .field{gap:5px}.record-filters .field>span{font-size:11px;color:#697587}.record-filters input,.record-filters select,.record-search,.record-filters .button{height:42px;min-height:42px}.record-card{padding:16px 20px;border-radius:16px}.record-room{margin-top:6px}.record-room .text-link{padding:5px 0}.record-body{margin-top:8px;line-height:1.65}.record-card footer{margin-top:8px}.record-list{gap:10px}
@media(min-width:781px) and (max-width:1350px){.record-filters{grid-template-columns:minmax(210px,2fr) repeat(2,minmax(105px,1fr)) repeat(2,minmax(122px,1fr)) 82px}.record-search{grid-column:auto}.record-filters>.button{grid-column:auto;min-width:0}}
.release-form{max-width:820px}.release-package-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0}.package-upload{position:relative;display:flex;align-items:flex-start;gap:13px;padding:18px;border:1px dashed #aebfd7;border-radius:16px;background:#fafcff;cursor:pointer;min-width:0}.package-upload:hover{border-color:#7fa5da;background:#f4f8ff}.package-upload>.icon{width:24px;height:24px;color:#5e82b5;flex:none}.package-upload>span{display:flex;flex-direction:column;gap:5px;min-width:0}.package-upload strong{font-size:14px;font-weight:600}.package-upload small{font-size:11px;color:#68778b}.package-upload em{font-size:11px;color:#536681;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.package-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.package-upload:focus-within{outline:3px solid #91b7f1;outline-offset:2px}.release-advanced{border-top:1px solid #e7edf4;border-bottom:1px solid #e7edf4;padding:14px 0;margin-bottom:18px}.release-advanced summary{cursor:pointer;font-size:13px;color:#536681}.release-advanced[open] summary{margin-bottom:18px}.release-advanced .field{margin-bottom:14px}
@media(max-width:780px){.release-package-grid{grid-template-columns:1fr}.package-upload{padding:16px}}

/* Shared AIPECO identity and company footer. */
html{overflow-x:hidden;overflow-y:auto}
body{display:block;height:auto;min-height:100%;overflow-x:hidden;overflow-y:visible}
#app{height:auto;min-height:100dvh}
.app-shell{height:100dvh}
.login-page{height:auto;min-height:100dvh}
.brand-mark{overflow:hidden;background:transparent url('/aipeco-logo.png?v=20260920-2') center/contain no-repeat;border-radius:0}
.brand-mark .icon{display:none}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.rail-brand .brand-mark{width:64px;height:64px}
.login-brand{flex-direction:column;gap:10px}
.login-brand .brand-mark{width:116px;height:116px}
.login-brand strong{color:#174f91;font-size:29px;font-weight:600;letter-spacing:0}
.company-name{color:#385674;font-size:13px;font-weight:700;letter-spacing:.2px}
.site-footer{flex:none;min-height:66px;padding:8px 20px;background:#e9eff7;border-top:1px solid #dbe3ed;color:#596779;text-align:center;font-size:11px;line-height:1.45;letter-spacing:.1px}
.site-footer p{margin:0}
#toast{bottom:32px}
@media(max-width:780px){
 .site-footer{min-height:86px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));font-size:10px;line-height:1.5}
 .site-footer p:first-child span{display:none}.site-footer p:first-child span:after{content:''}
 #toast{bottom:90px}.app-shell:has(.conversation-open)~#toast{bottom:85px}
}
