:root{font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif;color:#183239;background:#f1f5f3;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.hidden{display:none!important}.muted{color:#71838a}.error{color:#b02735;min-height:1.4em}.hint{font-size:.86rem;color:#71838a}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.primary,.secondary,.danger{border:0;border-radius:10px;padding:10px 17px;font-weight:650}.primary{background:#236a72;color:#fff}.primary:hover{background:#18575e}.secondary{background:#e4eeeb;color:#20545b}.danger{background:#fff0ee;color:#ae382f}.text-button,.icon{background:none;border:0;color:inherit}.text-button{padding:8px 3px;color:#4d686d;text-align:left}.text-button:hover{color:#174f58}.icon{width:34px;height:34px;border-radius:8px;font-size:1.15rem}.icon:hover{background:#e8efed}.full{width:100%}
input,textarea,select{border:1px solid #cad8d4;background:#fff;border-radius:9px;padding:10px 12px;color:#183239;min-width:0}input:focus,textarea:focus,select:focus{outline:2px solid #8ec6bc;outline-offset:1px}label{display:grid;gap:6px;font-size:.9rem;font-weight:600}
.auth-view{min-height:100dvh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 20% 20%,#d7ede3 0,transparent 35%),linear-gradient(130deg,#e9f3ee,#d4e8e5)}.auth-card{width:min(420px,100%);background:#fff;padding:38px;border:1px solid #d6e4df;border-radius:22px;box-shadow:0 20px 60px #174b4030}.auth-card h1{margin:15px 0 0}.auth-card h2{font-size:1.1rem;margin:26px 0 16px}.auth-card p.muted{margin:4px 0 28px}.auth-card form{display:grid;gap:17px}.brand-mark{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#236a72;color:#fff;font-weight:750}.brand-mark.small{width:30px;height:30px;border-radius:9px;font-size:.9rem}
.app-shell{height:100dvh;display:grid;grid-template-columns:275px minmax(0,1fr) auto;background:#fff}.sidebar{grid-column:1;grid-row:1;background:#f4f8f6;border-right:1px solid #dce8e3;display:flex;flex-direction:column;min-height:0}.sidebar-head{padding:20px 18px 14px;display:flex;align-items:center;justify-content:space-between}.brand-small{display:flex;align-items:center;gap:10px;font-size:1.04rem}.sidebar-user{padding:8px 18px 20px;display:flex;align-items:center;gap:8px}.role-badge{font-size:.68rem;color:#3b7377;background:#dcefeb;padding:3px 7px;border-radius:99px}.sidebar-label{padding:0 18px 9px;font-size:.76rem;font-weight:700;color:#6b8282;letter-spacing:.05em}.room-list{overflow:auto;flex:1;padding:0 8px}.room-item{display:block;width:100%;text-align:left;padding:12px 12px;border:0;border-radius:10px;background:transparent;color:#233e43;margin:2px 0}.room-item:hover{background:#e8f1ee}.room-item.selected{background:#d9ebe5;color:#164d52;font-weight:700}.room-item-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.room-item small{display:block;margin-top:3px;color:#758d8d;font-size:.75rem;font-weight:400}.closed-pill{border-radius:99px;background:#e8e9e4;color:#666e6a;padding:2px 6px;font-size:.65rem;white-space:nowrap}.new-room-form{border-top:1px solid #dce8e3;padding:15px 14px}.new-room-form label{font-size:.78rem;color:#617b7c}.inline-input{display:flex;gap:5px;margin-top:7px}.inline-input input,.inline-input select{flex:1;width:0}.inline-input button{border:0;background:#d7e9e2;color:#1a5c61;border-radius:9px;padding:0 13px;font-size:1.1rem}.sidebar-bottom{display:flex;gap:14px;flex-wrap:wrap;padding:13px 17px 17px;border-top:1px solid #dce8e3;font-size:.8rem}
.chat-main{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-width:0;min-height:0}.chat-header{min-height:75px;border-bottom:1px solid #e2ebe7;display:flex;align-items:center;gap:12px;padding:12px 22px}.room-heading{flex:1;min-width:0}.room-heading h1{font-size:1.09rem;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-heading p{font-size:.76rem;margin:4px 0 0}.empty-room{flex:1;display:grid;place-items:center;text-align:center;color:#829493;padding:30px}.chat-content{display:flex;flex-direction:column;min-height:0;flex:1}.closed-banner{background:#fff5e5;color:#7d5a1d;padding:10px 22px;border-bottom:1px solid #f3e4c8;font-size:.85rem}.message-scroll{flex:1;overflow-y:auto;padding:12px clamp(14px,4vw,48px) 22px;background:#fbfcfb}.older-wrap{text-align:center;margin:3px 0 14px}.messages-list{display:flex;flex-direction:column;gap:14px;max-width:900px;margin:auto}.message{max-width:min(78%,650px);align-self:flex-start}.message.mine{align-self:flex-end}.message-meta{font-size:.72rem;color:#849194;display:flex;gap:8px;margin:0 8px 4px}.message.mine .message-meta{justify-content:flex-end}.message-bubble{background:#edf3f0;border-radius:15px 15px 15px 3px;padding:10px 13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.message.mine .message-bubble{background:#d9eee9;border-radius:15px 15px 3px 15px}.message.system{max-width:100%;align-self:center;margin:5px 0}.message.system .message-bubble{background:none;color:#899796;font-size:.75rem;padding:0}.file-link{display:flex;align-items:center;gap:9px;color:#205961;text-decoration:none;font-weight:650;word-break:break-all}.file-link:hover{text-decoration:underline}.file-size{display:block;font-size:.73rem;color:#728682;margin-top:2px}.composer{border-top:1px solid #e2ebe7;padding:12px clamp(14px,4vw,48px) 15px}.message-form{max-width:900px;margin:auto}.message-form textarea{display:block;width:100%;resize:vertical;min-height:62px;max-height:180px}.composer-actions{display:flex;align-items:center;gap:11px;margin-top:8px}.composer-actions .primary{margin-left:auto}.file-button{display:inline-block;border:1px solid #cadbd6;border-radius:9px;padding:8px 12px;color:#315d61;cursor:pointer}.file-button:hover{background:#eef5f2}#uploadStatus{font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.members-panel{grid-column:3;grid-row:1;width:290px;border-left:1px solid #e1ebe7;background:#fbfdfc;display:flex;flex-direction:column;padding:18px;gap:16px;min-height:0}.panel-head,.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h2,.modal-head h2{margin:0;font-size:1rem}.members-panel p{font-size:.78rem;margin:0}.members-panel form label{font-size:.8rem}.members-list{overflow:auto;flex:1;display:flex;flex-direction:column;gap:8px}.member-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7efec;padding:8px 2px;gap:7px}.member-row span{font-size:.86rem}.member-row small{display:block;color:#8a9a99}.member-row button{border:0;background:none;color:#2d6c70;font-size:.74rem;white-space:nowrap}.room-actions{border-top:1px solid #e2ece8;padding-top:14px;display:grid;gap:9px}.room-actions button{width:100%}
.modal{border:1px solid #d7e5df;border-radius:18px;padding:24px;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 40px);box-shadow:0 20px 70px #132d2d4d}.modal::backdrop{background:#14282780}.small-modal{width:min(400px,calc(100vw - 28px))}.stack-form{display:grid;gap:12px;margin:20px 0}.admin-users{max-height:240px;overflow:auto}.admin-user{padding:10px 0;border-top:1px solid #e1ebe7;display:flex;justify-content:space-between;align-items:center;gap:12px}.admin-user small{color:#788b8b;display:block}.admin-user button{border:0;background:#fff0ee;color:#a93532;border-radius:7px;padding:6px 8px}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#224e52;color:#fff;border-radius:10px;padding:11px 16px;max-width:min(500px,90vw);box-shadow:0 8px 28px #17383840;z-index:20}.mobile-only{display:none}
@media(max-width:850px){.app-shell{display:flex}.sidebar{position:fixed;left:0;top:0;bottom:0;width:min(290px,86vw);z-index:10;box-shadow:10px 0 30px #14343330;transform:translateX(-110%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.chat-main{flex:1}.mobile-only{display:inline-grid;place-items:center}.members-panel{position:fixed;right:0;top:0;bottom:0;width:min(310px,90vw);z-index:11;box-shadow:-10px 0 30px #14343330}.chat-header{padding:11px 14px}.message{max-width:87%}}
@media(max-width:520px){.auth-card{padding:28px 23px}.message-scroll{padding:10px 13px 20px}.composer{padding:10px 12px 12px}.message-form textarea{min-height:52px}.chat-header{min-height:62px}.message{max-width:94%}.composer-actions{gap:7px}}
.app-shell{grid-template-columns:350px minmax(0,1fr) auto}
.auth-view{position:relative;padding-bottom:60px}.icp-footer{text-align:center;font-size:.75rem;line-height:1.4;padding:7px 12px;color:#71838a}.icp-footer a{color:inherit;text-decoration:none}.icp-footer a:hover{text-decoration:underline}.icp-footer-auth{position:absolute;left:0;right:0;bottom:10px}.icp-footer-app{flex:none;border-top:1px solid #e2ebe7;background:#fff}
.room-item-title{justify-content:flex-start;align-items:flex-start;flex-wrap:wrap}
.room-item-title>span:not(.urgent-dot):not(.new-badge):not(.closed-pill):not(.unread-badge):not(.mention-unread-badge):not(.favorite-mark){flex:1;min-width:120px;overflow-wrap:anywhere;line-height:1.35}
.favorite-mark{flex:none;color:#a66c09;font-size:.9rem;line-height:1.3}
.favorite-button{white-space:nowrap;color:#805409;background:#fff2d8}
.favorite-button[aria-pressed="true"]{color:#805409;background:#ffe7ae}
.urgent-dot{width:9px;height:9px;flex:none;border-radius:50%;background:#d93032;margin-top:6px}
.new-badge{flex:none;background:#cfedfa;color:#126082;border-radius:4px;padding:2px 5px;font-size:.62rem;font-weight:800;letter-spacing:.03em}
.priority-choice{display:flex;align-items:center;gap:6px;margin-top:10px}.priority-choice input{width:auto;margin:0}
.member-choices{display:grid;gap:7px;max-height:160px;overflow:auto;margin:8px 0}
.member-choices label{display:flex;align-items:center;gap:8px;font-weight:400}.member-choices input{width:auto;margin:0}
.member-row button.danger{color:#b33431}.member-row{flex-wrap:wrap}
.chat-image,.chat-video{display:block;max-width:min(420px,70vw);max-height:360px;border-radius:8px;cursor:pointer}
.chat-image{object-fit:contain}
.chat-video{width:min(420px,70vw);aspect-ratio:16/9;object-fit:contain;background:#111}
.chat-image:focus-visible,.chat-video:focus-visible{outline:2px solid #236a72;outline-offset:2px}
.no-messages{text-align:center;color:#71838a;padding:24px 12px;font-size:.9rem}
:root[data-theme="dark"] .no-messages{color:#aab5c9}
:root[data-theme="dark"] .icp-footer-app{background:#131722;border-color:#343c51;color:#aab5c9}
@media(max-width:850px){.sidebar{width:min(350px,90vw)}}
.room-tabs{display:flex;gap:6px;padding:0 13px 10px}
.room-tabs button{flex:1;border:0;border-bottom:2px solid transparent;background:transparent;padding:9px 4px;color:#617b7c;font-weight:650;font-size:.86rem;font-style:italic}
.room-tabs button.selected{border-bottom-color:#236a72;color:#184f57;font-style:normal}
.room-search{padding:0 14px 9px}.room-search input{width:100%;padding:8px 10px;font-size:.85rem}
.room-type-filters{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;max-height:9rem;overflow:auto}
.chat-search{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 14px}
.chat-search input{flex:1 1 14rem;min-width:0}
.chat-search button{white-space:nowrap}
.search-match .message-bubble{outline:2px solid #c38823}
.search-match mark{background:#ffe087;color:#422900;border-radius:2px}
.mention-option.mention-chosen{font-weight:700}
.room-header-action{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.room-action-icon{width:17px;height:17px;flex:none}
@media(max-width:520px){.room-header-action{padding:7px 6px;gap:3px;font-size:.75rem}.room-action-icon{width:14px;height:14px}}
.room-list-empty{color:#879895;font-size:.82rem;padding:12px;text-align:center}
.new-room-button{border:0;border-radius:9px;background:#e0efea;color:#195a60;padding:11px 13px;font-weight:700;text-align:left;margin:0 14px 12px}
.new-room-button:hover{background:#d2e8df}
.notice-panel{border-bottom:1px solid #d9e9e1;background:#f4faf6;padding:10px clamp(14px,4vw,48px);max-height:32dvh;display:flex;flex-direction:column;gap:5px}
.notice-head{display:flex;align-items:center;justify-content:space-between;color:#205c58;font-size:.85rem}
.notice-head button{font-size:.75rem;padding:2px 4px}
.notice-content{overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45;font-size:.83rem}
.message-form textarea{resize:none;max-height:none;overflow-y:hidden}
.room-modal{overflow-y:auto;width:min(620px,calc(100vw - 28px))}
.room-modal textarea{width:100%;resize:vertical;line-height:1.5}
.room-modal .stack-form{margin-bottom:0}
.form-section-title{font-size:.86rem;font-weight:700;color:#416b69}
.room-modal .member-choices{max-height:180px;border:1px solid #d9e5df;border-radius:9px;padding:8px}
.room-modal #newRoomMemberChoices{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:10px}
.room-modal #newRoomMemberChoices label{min-width:0;overflow-wrap:anywhere;font-size:.82rem}
@media(max-width:520px){.room-modal #newRoomMemberChoices{grid-template-columns:repeat(2,minmax(0,1fr))}.favorite-button{padding:8px 10px;font-size:.8rem}}
.room-modal .priority-choice{font-size:.86rem}
.keyword-hint{margin:0!important;font-weight:400}
.keyword-chips{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-height:38px}
.keyword-chip-wrap{display:inline-flex;align-items:center;gap:2px}
.keyword-chip{border:1px solid #606060;border-radius:999px;background:#f7f7f7;color:#111;padding:6px 12px;font-size:.82rem;line-height:1.2;white-space:nowrap}
.keyword-chip:hover,.keyword-chip.selected{background:#e2e7f1;border-color:#303030;color:#111}
.keyword-chip.selected{box-shadow:inset 0 0 0 1px #303030}
.keyword-remove{border:1px solid #f5a6a6;border-radius:50%;background:#fff;color:#c53b3b;width:21px;height:21px;padding:0;line-height:18px;font-size:1rem}
.theme-toggle{border:0;cursor:pointer}.theme-toggle:focus-visible{outline:2px solid #f1c969;outline-offset:3px}
.message-input-shell{border:1px solid #cad8d4;background:#fff;border-radius:10px;transition:background .15s,border-color .15s}
.message-input-shell:focus-within{outline:2px solid #8ec6bc;outline-offset:1px}
.message-input-shell.drag-over{border-color:#238078;background:#ebf8f3;box-shadow:inset 0 0 0 2px #7bc9b7}
.message-input-shell textarea{border:0;background:transparent;padding:10px 12px 4px;min-height:62px}
.message-input-shell textarea:focus{outline:none}
.pending-files{display:flex;flex-wrap:wrap;gap:7px;padding:5px 9px 9px;max-height:180px;overflow:auto}
.pending-file{display:flex;align-items:center;gap:7px;min-width:0;max-width:min(320px,100%);border:1px solid #d5e2dd;border-radius:9px;background:#f4f8f6;padding:5px 7px}
.pending-file img{width:36px;height:36px;object-fit:cover;border-radius:5px;flex:none}
.pending-file-icon{font-size:1.25rem;flex:none}
.pending-file-info{display:grid;min-width:0;flex:1;line-height:1.3}
.pending-file-info strong{font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pending-file-info small{color:#71838a;font-size:.68rem}
.pending-file-remove{border:0;background:transparent;color:#6c8282;padding:3px;flex:none}
:root[data-theme="dark"]{color-scheme:dark;color:#e8edf7;background:#11141c}
:root[data-theme="dark"] .auth-view{background:radial-gradient(circle at 20% 20%,#2b3451 0,transparent 35%),linear-gradient(130deg,#141824,#20263a)}
:root[data-theme="dark"] .auth-card,:root[data-theme="dark"] .modal{background:#1d2331;color:#e8edf7;border-color:#394158;box-shadow:0 20px 65px #0008}
:root[data-theme="dark"] .app-shell{background:#131722}
:root[data-theme="dark"] .sidebar{background:#1b2030;border-color:#343c51}
:root[data-theme="dark"] .members-panel{background:#1b2030;border-color:#343c51}
:root[data-theme="dark"] .chat-header,:root[data-theme="dark"] .composer{border-color:#343c51}
:root[data-theme="dark"] .message-scroll{background:#151a26}
:root[data-theme="dark"] .room-item{color:#e0e6f2}
:root[data-theme="dark"] .room-item:hover{background:#293146}
:root[data-theme="dark"] .room-item.selected{background:#303e64;color:#f6f8ff}
:root[data-theme="dark"] .room-item small,:root[data-theme="dark"] .muted,:root[data-theme="dark"] .hint,:root[data-theme="dark"] .message-meta,:root[data-theme="dark"] .room-list-empty{color:#aab5c9}
:root[data-theme="dark"] .message-bubble{background:#2a3243;color:#e8edf7}
:root[data-theme="dark"] .message.mine .message-bubble{background:#354775;color:#f6f8ff}
:root[data-theme="dark"] .message.system .message-bubble{color:#aab5c9}
:root[data-theme="dark"] .file-link{color:#b2c7ff}
:root[data-theme="dark"] .file-size{color:#b4bfd3}
:root[data-theme="dark"] .notice-panel{background:#222b42;border-color:#3d4b69}
:root[data-theme="dark"] .notice-head{color:#c9d7ff}
:root[data-theme="dark"] .closed-banner{background:#3b3025;color:#f5d6a9;border-color:#5a4935}
:root[data-theme="dark"] .role-badge{background:#303e64;color:#d0ddff}
:root[data-theme="dark"] .closed-pill{background:#3b4253;color:#d4dbea}
:root[data-theme="dark"] .new-badge{background:#2d456c;color:#c2d8ff}
:root[data-theme="dark"] input,:root[data-theme="dark"] textarea,:root[data-theme="dark"] select{background:#242b3c;border-color:#45516b;color:#eef2fa}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{color:#9ca9c0}
:root[data-theme="dark"] .message-input-shell{background:#242b3c;border-color:#45516b}
:root[data-theme="dark"] .message-input-shell.drag-over{background:#303c5b;border-color:#879df2}
:root[data-theme="dark"] .message-input-shell textarea{background:transparent;border:0}
:root[data-theme="dark"] .pending-file{background:#2c3549;border-color:#46536d}
:root[data-theme="dark"] .pending-file-info small,:root[data-theme="dark"] .pending-file-remove{color:#b1bfd3}
:root[data-theme="dark"] .primary{background:#536fce;color:#fff}
:root[data-theme="dark"] .primary:hover{background:#4762bd}
:root[data-theme="dark"] .secondary,:root[data-theme="dark"] .new-room-button{background:#303e62;color:#d6e0ff}
:root[data-theme="dark"] .inline-input button{background:#303e62;color:#d6e0ff}
:root[data-theme="dark"] .new-room-button:hover,:root[data-theme="dark"] .secondary:hover{background:#3b4c78}
:root[data-theme="dark"] .danger,:root[data-theme="dark"] .admin-user button{background:#4a303b;color:#ffc0c9}
:root[data-theme="dark"] .text-button,:root[data-theme="dark"] .member-row button{color:#bbcbff}
:root[data-theme="dark"] .icon:hover{background:#30394d}
:root[data-theme="dark"] .room-tabs button{color:#b2bdd2}
:root[data-theme="dark"] .room-tabs button.selected{color:#e1e8ff;border-color:#8fa7ff}
:root[data-theme="dark"] .sidebar-bottom,:root[data-theme="dark"] .member-row,:root[data-theme="dark"] .room-actions,:root[data-theme="dark"] .admin-user{border-color:#39445a}
:root[data-theme="dark"] .file-button{border-color:#4c5c7a;color:#cad7ff}
:root[data-theme="dark"] .file-button:hover{background:#303a51}
:root[data-theme="dark"] .keyword-chip{background:#e4e8f0;border-color:#aab2c2;color:#111}
:root[data-theme="dark"] .keyword-chip:hover,:root[data-theme="dark"] .keyword-chip.selected{background:#f2f4f8;border-color:#626c82;color:#111}
:root[data-theme="dark"] .favorite-button{background:#473b2c;color:#ffd895}
:root[data-theme="dark"] .favorite-button[aria-pressed="true"]{background:#64502d;color:#ffe4ad}
:root[data-theme="dark"] .favorite-mark{color:#ffd27e}
:root[data-theme="dark"] .keyword-remove{background:#2c292d;border-color:#aa5a5f;color:#ffb8bd}
:root[data-theme="dark"] .room-modal .member-choices{border-color:#45516b}
:root[data-theme="dark"] .form-section-title{color:#ccd8f4}
:root[data-theme="dark"] .empty-room{color:#a9b5ca}
:root[data-theme="dark"] .error{color:#ffb2b8}
:root[data-theme="dark"] .brand-mark{background:#586fc7}
.file-open-page{min-height:100dvh;display:grid;place-items:center;padding:24px}
.file-open-card{width:min(480px,100%);padding:34px;border:1px solid #d6e4df;border-radius:18px;background:#fff;box-shadow:0 18px 50px #17383820;text-align:center}
.file-open-card h1{font-size:1.2rem}.file-open-card p{color:#63787c;line-height:1.5}.file-open-card .primary{display:inline-block;text-decoration:none;margin-top:12px}.file-open-icon{font-size:2rem}.file-open-name{overflow-wrap:anywhere;font-weight:700}
@media(prefers-color-scheme:dark){.file-open-page{background:#151a26;color:#e8edf7}.file-open-card{background:#1d2331;border-color:#394158}.file-open-card p{color:#b2bdd2}.file-open-card .primary{background:#536fce}}
.message-delete{border:0;background:transparent;color:#b33431;padding:0 3px;font-size:.72rem;text-decoration:underline}
:root[data-theme="dark"] .message-delete{color:#ffb2b8}
.unread-badge,.tab-unread{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:#d93032;color:#fff;font-size:.68rem;font-weight:800;font-style:normal;line-height:1}
.mention-unread-badge{border-radius:5px;background:#fff0dd;color:#ad4819;padding:3px 5px;font-size:.7rem;font-weight:800;white-space:nowrap}
.room-tabs .tab-unread{vertical-align:middle;margin-left:3px}
.message-input-shell{position:relative}
.mention-menu{position:absolute;left:8px;right:8px;bottom:calc(100% + 6px);z-index:5;max-height:210px;overflow:auto;border:1px solid #c7d7d3;border-radius:11px;background:#fff;box-shadow:0 12px 32px #102d2d30;padding:4px}
.mention-option{display:flex;align-items:center;gap:9px;width:100%;border:0;border-radius:7px;background:transparent;color:#183239;padding:8px 10px;text-align:left}
.mention-option:hover,.mention-option.active{background:#e9f1ee}
.mention-option small{margin-left:auto;color:#71838a}
.message-mention{color:#155f8b;background:#deedf9;border-radius:4px;padding:0 2px;font-weight:700}
.message-mention.mine-mention{color:#9f4618;background:#ffe9d5}
:root[data-theme="dark"] .mention-menu{background:#242b3c;border-color:#45516b;box-shadow:0 12px 32px #0008}
:root[data-theme="dark"] .mention-option{color:#e8edf7}
:root[data-theme="dark"] .mention-option:hover,:root[data-theme="dark"] .mention-option.active{background:#35415d}
:root[data-theme="dark"] .mention-option small{color:#aab5c9}
:root[data-theme="dark"] .message-mention{color:#c7d8ff;background:#344877}
:root[data-theme="dark"] .message-mention.mine-mention{color:#ffd5a6;background:#65442c}
:root[data-theme="dark"] .mention-unread-badge{background:#5b3a2b;color:#ffd4a5}
.message.system .message-bubble{background:#e6f1f2;color:#285e68;font-size:.78rem;padding:6px 12px;border-radius:999px}
:root[data-theme="dark"] .message.system .message-bubble{background:#303e55;color:#d3e4ff}
.message.reminder{width:min(100%,720px);max-width:100%;align-self:center}
.message.reminder .message-bubble{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;background:#fff2d9;color:#704413;border:1px solid #edc77d;border-radius:12px;padding:11px 15px;font-size:.88rem;font-weight:650;white-space:pre-wrap}
.message.reminder .message-bubble span{min-width:0;overflow-wrap:anywhere}
.reminder-dismiss{flex:none;border:0;border-radius:5px;background:transparent;color:#704413;width:24px;height:24px;line-height:1;font-size:.85rem}
.reminder-dismiss:hover{background:#eed6ad}
:root[data-theme="dark"] .message.reminder .message-bubble{background:#483a2c;color:#ffdfa8;border-color:#87663a}
:root[data-theme="dark"] .reminder-dismiss{color:#ffdfa8}
:root[data-theme="dark"] .reminder-dismiss:hover{background:#68503b}
#remindersBtn,.reminder-heading{display:inline-flex;align-items:center;gap:6px}
#remindersBtn{white-space:nowrap}
.reminder-icon{width:17px;height:17px;flex:none;color:currentColor}
.reminder-list-title{font-size:.9rem;margin:20px 0 8px}
.reminders-list{max-height:250px;overflow:auto;display:grid;gap:8px}
.reminder-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid #dce8e2;border-radius:9px}
.reminder-row strong{display:block;overflow-wrap:anywhere;font-size:.86rem}
.reminder-row small{display:block;color:#71838a;margin-top:3px;font-size:.75rem}
.reminder-row button{flex:none}
:root[data-theme="dark"] .reminder-row{border-color:#45516b}
:root[data-theme="dark"] .reminder-row small{color:#aab5c9}
@media(max-width:520px){#remindersBtn{padding:8px;font-size:.76rem}.chat-header{gap:5px}}
