.notifications-shell{max-width:1000px;margin:auto}.notification-actions{display:flex;flex-wrap:wrap;gap:10px}.notification-list{display:grid;gap:12px}.notification-card{display:grid;gap:8px;border:1px solid #34465e;border-radius:14px;padding:18px;color:#e9f1ff;background:#101e30;text-decoration:none}.notification-card.unread{border-left:5px solid #ffca35}.notification-card p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.notification-card small{color:#b9c4d3}.notification-message{padding:22px;border:1px solid #34465e;border-radius:14px;background:#101e30;white-space:pre-wrap;overflow-wrap:anywhere;color:#e9f1ff}.notification-compose{display:grid;gap:12px}.notification-compose input:not([type=checkbox]),.notification-compose textarea,.notification-compose select{width:100%;padding:12px;background:#101e30;color:#fff;border:1px solid #45607c;border-radius:10px;font:inherit;box-sizing:border-box}.notification-recipients{max-height:360px;overflow:auto;display:grid;gap:8px;margin-top:10px}.notification-recipient{display:flex;gap:12px;align-items:center;border:1px solid #34465e;border-radius:10px;padding:12px}.notification-recipient input{width:22px;height:22px;flex-shrink:0}.notification-recipient small{display:block;color:#b9c4d3}.notification-recipient[hidden]{display:none}#notificationUsers[hidden],#notificationBranch[hidden]{display:none}#inboxUnreadCount{font-size:.65em;color:#ffca35}.notification-permission-banner{margin:12px;padding:14px;background:#152b42;border:1px solid #526982;border-radius:12px;color:#fff;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.notification-permission-banner[hidden]{display:none}.global-notification-count{background:#ffca35;color:#09131f;border-radius:20px;padding:1px 6px;font-size:12px;font-weight:800}.global-notification-count[hidden]{display:none}.notification-permission-banner button{font:inherit;cursor:pointer;padding:9px;border-radius:8px;border:1px solid #526982;background:#ffca35;color:#09131f}
.notifications-shell .portal-header{flex-wrap:wrap}.notifications-shell .portal-header>div{min-width:0;max-width:100%}.notifications-shell h1,.notifications-shell p,.notification-card strong{overflow-wrap:anywhere}
.notification-device-status{margin:18px 0;padding:16px;border:1px solid #45607c;border-radius:12px;background:#101e30;color:#e9f1ff}.notification-device-status p{margin:8px 0;line-height:1.5}.notification-device-status strong{color:#ffca35}
/* Message-focused inbox; device diagnostics stay behind an explicit disclosure. */
.inbox-shell{max-width:900px}.inbox-header,.inbox-header-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.inbox-header{margin-bottom:20px}.inbox-header h1{margin:4px 0;font-size:28px}.inbox-header .eyebrow{font-size:11px}.inbox-header-actions .main-btn{font-size:14px;padding:12px 16px;white-space:nowrap}.inbox-home,.inbox-back{color:#dce9f3;text-decoration:none;font-size:26px;padding:8px}.inbox-tabs{display:flex;gap:8px;margin-bottom:16px}.inbox-tabs button{border:1px solid #344b60;background:#122438;color:#b9cad9;border-radius:24px;padding:10px 18px;font:inherit;font-size:14px;cursor:pointer}.inbox-tabs button.active{background:#ffca35;border-color:#ffca35;color:#101c28;font-weight:800}.inbox-tabs span{margin-left:6px;font-size:12px;opacity:.8}.inbox-search{display:flex;align-items:center;gap:10px;padding:0 14px;background:#101f30;border:1px solid #344b60;border-radius:12px}.inbox-search span{font-size:26px;color:#a8bed1}.inbox-search input{width:100%;min-width:0;background:transparent;border:0;color:#edf5ff;font:inherit;padding:14px 0;outline:none}.inbox-search:focus-within{outline:2px solid #ffca35;outline-offset:2px}.inbox-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0;color:#a9bdcf;font-size:12px}.inbox-tools button{background:none;border:0;color:#d5e4ee;font:inherit;padding:8px 0;cursor:pointer}.inbox-tools button:disabled{opacity:.4;cursor:default}.inbox-shell .notification-list{gap:0;border:1px solid #2d4257;border-radius:16px;overflow:hidden;background:#0e1c2c}.inbox-shell .notification-card{grid-template-columns:44px minmax(0,1fr) 8px;align-items:center;gap:14px;border:0;border-bottom:1px solid #293c50;border-radius:0;padding:18px 16px;background:transparent}.inbox-shell .notification-card:last-child{border-bottom:0}.inbox-shell .notification-card.unread{border-left:0;background:#14283b}.inbox-shell .notification-card:hover{background:#1b3248}.notification-card[hidden]{display:none!important}.message-avatar{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#294258;color:#ffda63;font-size:20px;font-weight:800;flex-shrink:0}.message-content{min-width:0}.message-meta{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:4px}.message-sender{font-size:13px;color:#adbfce}.message-meta time{font-size:11px;color:#9bb0c2;white-space:nowrap}.message-content strong{display:block;font-size:16px;line-height:1.4;margin-bottom:3px}.inbox-shell .notification-card p{font-size:14px;line-height:1.5;color:#acbed0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}.message-read-state{display:block;font-size:10px;color:#8ca5ba;margin-top:5px}.message-unread-dot{width:8px;height:8px;border-radius:50%;background:#ffca35;visibility:hidden}.unread .message-unread-dot{visibility:visible}.unread .message-read-state{color:#ffda63}.inbox-settings{margin-top:24px;border:1px solid #30465b;border-radius:12px;font-size:14px;color:#b4c5d4}.inbox-settings>summary{padding:16px;cursor:pointer;font-weight:700}.inbox-settings>summary span{display:block;font-size:12px;font-weight:400;margin:5px 0 0 18px;color:#8ea6bb}.inbox-settings-body{padding:0 16px 16px}.inbox-settings .notification-device-status{margin:12px 0 0;font-size:13px}.inbox-settings button{font-size:13px!important;padding:10px 12px!important}.inbox-empty{text-align:center;padding:36px 12px;color:#a9bed0}.inbox-notice{font-size:14px;padding:12px;margin-bottom:16px}.conversation-shell{max-width:900px}.conversation-header{display:flex;align-items:center;gap:12px;padding-bottom:18px;border-bottom:1px solid #344b60}.conversation-header small{display:block;color:#9bb4c8;font-size:12px;margin-top:4px}.conversation-body{padding:26px 0;min-height:45vh}.conversation-body .notification-message{max-width:720px;border-radius:0 18px 18px 18px;background:#1b3448;padding:22px;white-space:normal}.notification-message h1{font-size:22px;margin:0 0 14px}.notification-message .message-body{white-space:pre-wrap;line-height:1.7}.notification-message footer{margin-top:18px;text-align:right;color:#a0b8ca;font-size:12px}.notification-compose{background:#101f30;border:1px solid #344b60;border-radius:16px;padding:22px}.notification-compose label{font-size:14px;color:#bfd0df}.notification-compose textarea{line-height:1.6;resize:vertical}.notification-compose input:focus,.notification-compose textarea:focus,.notification-compose select:focus{outline:2px solid #ffca35;outline-offset:2px}.notification-recipient:has(input:checked){background:#21394a;border-color:#ffca35}.notification-recipient input{accent-color:#ffca35}
@media(max-width:600px){.inbox-shell,.conversation-shell{padding:18px 12px!important}.inbox-header{gap:8px}.inbox-header h1{font-size:24px}.inbox-header-actions{gap:2px}.inbox-header-actions .main-btn{font-size:12px;padding:10px}.inbox-tabs button{padding:9px 14px}.inbox-shell .notification-card{padding:14px 12px;gap:10px;grid-template-columns:38px minmax(0,1fr) 7px}.message-avatar{width:38px;height:38px;font-size:18px}.message-content strong{font-size:15px}.message-meta time{font-size:10px}.message-sender{font-size:12px}.notification-compose{padding:16px}.conversation-body .notification-message{padding:18px}.notification-message h1{font-size:20px}}
.chat-shell{padding-bottom:12px!important}.chat-feed{display:flex;flex-direction:column;gap:10px;height:50dvh;min-height:240px;overflow:auto;overscroll-behavior:contain;padding:22px 10px;background:radial-gradient(ellipse at top,#12283a,#0c1928);border-radius:14px;margin-top:14px}.chat-bubble{max-width:83%;padding:12px 14px 8px;border:1px solid #30475a;overflow-wrap:anywhere;min-width:95px}.chat-bubble.incoming{background:#1c3042;border-radius:0 14px 14px 14px;align-self:flex-start}.chat-bubble.outgoing{background:#244c47;border-color:#32655c;border-radius:14px 0 14px 14px;align-self:flex-end}.chat-text{white-space:pre-wrap;line-height:1.6;font-size:15px}.chat-bubble footer{font-size:10px;color:#b2c7cb;text-align:right;margin-top:6px;display:flex;gap:6px;justify-content:flex-end}.chat-ticks.read{color:#6bd7ff}.chat-file{display:block;margin:4px 0;background:#0002;padding:10px;border-radius:8px;color:#ffda63;text-decoration:none}.chat-file small{display:block;color:#bfd0dc;font-size:11px;margin-top:4px}.chat-composer{position:sticky;bottom:0;padding:12px 0 0;background:#0d1c2c;z-index:2}.chat-compose-row{display:flex;gap:10px;align-items:flex-end}.chat-compose-row textarea{flex:1;min-width:0;min-height:48px;max-height:130px;resize:none;padding:12px 14px;background:#1b3043;border:1px solid #3b5266;border-radius:22px;color:#fff;font:inherit;line-height:1.5}.chat-attach,.chat-send-button{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:27px;flex-shrink:0;cursor:pointer}.chat-attach{background:#20394d;color:#d8e8f3}.chat-send-button{background:#ffca35;color:#122334;border:0;font-size:23px}.chat-send-button:disabled{opacity:.5}.chat-file-preview{display:flex;gap:10px;align-items:center;justify-content:space-between;background:#20384d;border-radius:10px;padding:8px 12px;margin-bottom:10px;font-size:13px;overflow-wrap:anywhere}.chat-file-preview button{border:0;background:none;color:#fff;font-size:24px;cursor:pointer}.chat-file-preview[hidden],.chat-contact[hidden]{display:none}.chat-file-hint{display:block;font-size:10px;color:#8ca6bc;margin:7px 58px}.chat-contact-search{margin:20px 0 14px}.chat-contacts{border:1px solid #30475a;border-radius:14px;overflow:hidden}.chat-contact{display:flex;align-items:center;gap:14px;color:#fff;text-decoration:none;padding:16px;border-bottom:1px solid #30475a}.chat-contact:last-child{border:0}.chat-contact:hover{background:#20384d}.chat-contact small{display:block;color:#a8bed0;font-size:12px;margin-top:5px;overflow-wrap:anywhere}.chat-contact-arrow{margin-left:auto;color:#8ba7bd;font-size:24px}#chatError:not(:empty){color:#ffcd88;font-size:13px;padding:10px}#chatAttachment:focus-visible+.chat-attach{outline:2px solid #ffca35}.chat-attach:focus-within,.chat-compose-row textarea:focus{outline:2px solid #ffca35;outline-offset:2px}@media(max-width:600px){.chat-shell{padding:12px!important}.chat-feed{height:48dvh;padding:16px 8px}.chat-bubble{max-width:90%}.chat-compose-row{gap:7px}.chat-attach,.chat-send-button{width:42px;height:46px}.chat-compose-row textarea{font-size:16px}.chat-file-hint{margin-left:49px}.chat-shell .conversation-header{padding-bottom:12px}.chat-contact{padding:14px 12px}}
.chat-shell{display:flex;flex-direction:column;min-height:320px!important;height:calc(100dvh - var(--chat-top,150px));box-sizing:border-box}.chat-shell .conversation-header{flex-shrink:0}.chat-shell .chat-feed{flex:1;height:auto;min-height:120px}.chat-shell .chat-composer{flex-shrink:0}.chat-shell #chatEmpty{padding:10px;margin:0}.chat-shell #chatError{flex-shrink:0}.chat-shell #chatError:empty{display:none}
.chat-presence{font-size:11px!important;line-height:1.5;color:#9fb4c6!important;overflow-wrap:anywhere}.chat-presence.online{color:#72dfaa!important}.conversation-header>div{min-width:0}.chat-contact>span:nth-child(2){min-width:0}
.app-version-label{text-align:center;padding:10px;color:#8ca2b8;font-size:11px}.app-update-notice{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);width:min(90vw,650px);padding:12px 14px;border:1px solid #ffca35;border-radius:12px;background:#162b3f;color:#eef5ff;z-index:20000;display:flex;align-items:center;gap:12px;font-size:13px;box-shadow:0 8px 25px #0008}.app-update-notice[hidden]{display:none}.app-update-notice button{flex-shrink:0;border:0;border-radius:9px;background:#ffca35;color:#172435;font:inherit;font-weight:700;padding:10px;cursor:pointer}.app-update-notice button:disabled{opacity:.5}
.update-broadcast-form{margin:16px 0;display:grid;gap:6px}.update-broadcast-form small{font-size:11px;color:#9bb3c8}
.contact-tabs{margin-top:18px;gap:7px;flex-wrap:wrap}.contact-tabs button{padding:9px 13px}.contact-tabs+.chat-contact-search{margin-top:0}.contact-tabs span{margin-left:4px}
