/* Messaging uses Hengshu's existing warm neutral and gold palette. */
#chat-root{--im-gold:var(--brand,#8a6a1e);--im-ink:#302f29;--im-muted:#8b887e;--im-border:#e9e5dc;color:var(--im-ink)}
#chat-root svg,#im-dialog svg{width:18px;height:18px;flex:none;vertical-align:middle}
.im-page-head{display:flex;align-items:center;gap:28px;margin:0 0 24px}.im-eyebrow{display:block;font-size:10px;color:#9a8b6d;letter-spacing:2px;margin-bottom:7px}.im-page-head h1{font-size:24px;letter-spacing:0}.im-page-head>button{margin-left:auto;display:flex;align-items:center;gap:7px;border-radius:9px;padding:11px 16px}
.im-tabs{display:flex;align-items:center;gap:3px;padding:4px;border:1px solid #e5e0d5;border-radius:10px;background:#ebe8e0}.im-tabs b,.im-tabs a{font-size:12px;padding:8px 17px;text-decoration:none;font-weight:500;white-space:nowrap;color:#79756a;border-radius:7px}.im-tabs b{background:#fff;color:#71581f;box-shadow:0 1px 4px #3326000a}.im-tabs a:hover{color:#70541b}
#im-error:empty{display:none}#im-error{font-size:12px;color:#9e493e;background:#fbefec;border:1px solid #edd7d0;border-radius:8px;padding:10px 14px;margin:0 0 12px}
.im-layout{display:grid;grid-template-columns:292px minmax(0,1fr);height:calc(100dvh - 225px);min-height:420px;max-height:1000px;border:1px solid #e3ded2;border-radius:15px;overflow:hidden;background:#fff;box-shadow:0 5px 22px #39301b04}
.im-conversations{display:flex;flex-direction:column;min-height:0;min-width:0;border-right:1px solid var(--im-border);background:#fcfbf8}.im-list-heading{display:flex;justify-content:space-between;align-items:center;padding:23px 21px 17px}.im-list-heading b{font-size:13px;font-weight:550}.im-list-heading span{font-size:10px;color:#a09b8e}
#im-rooms{overflow:auto;min-height:0;padding:0 10px 16px;scrollbar-width:thin;scrollbar-color:#dad4c6 transparent}.im-room{display:flex;align-items:center;gap:12px;text-align:left;width:100%;border:1px solid transparent;background:transparent;padding:14px 11px;border-radius:10px;margin:0 0 5px;white-space:normal;transition:background .15s}.im-room:hover{background:#f3f0e8}.im-room.active{background:#f0eadb;border-color:#e9e0cb}.im-room>span:nth-child(2){flex:1;min-width:0}.im-room b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:550;color:#36352e}.im-room small{display:block;font-size:10px;color:#999183;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.im-avatar{display:grid;place-items:center;width:40px;height:40px;flex:none;border:1px solid #e5decc;border-radius:12px;background:#f0ebdf;color:#82662d;font-weight:500;font-size:16px}.im-room.active .im-avatar{background:#fffaf0;border-color:#e3d7bc}.im-room em{font-size:10px;font-style:normal;background:#a05240;color:white;border-radius:12px;padding:1px 6px;line-height:17px}
#im-thread{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}.im-thread-head{display:flex;align-items:center;gap:12px;padding:17px 26px;border-bottom:1px solid #efede6;min-height:78px}.im-thread-head>div{flex:1;min-width:0}.im-thread-head b{font-size:14px;font-weight:550;overflow-wrap:anywhere}.im-thread-head small{display:block;font-size:10px;color:#999184;margin-top:3px}.im-thread-head .im-avatar{width:35px;height:35px;font-size:14px;border-radius:10px}.im-subtle{border-color:#ece8df;color:#8b8270;background:transparent;padding:7px 11px;font-size:11px}#im-back{display:none}
#im-feed{overflow:auto;flex:1;min-height:0;padding:15px 28px 24px;background:#f8f7f3;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#dad4c6 transparent}.im-message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 21px}.im-message.own{align-items:flex-end}.im-message>small{color:#a09a8c;font-size:10px;margin:5px 2px;line-height:1.6}.im-bubble{max-width:78%;background:#fff;border:1px solid #e9e6dc;border-radius:4px 13px 13px;padding:11px 15px;overflow-wrap:anywhere;box-shadow:0 2px 3px #3b321903}.own .im-bubble{background:#eee5cf;border-color:#e7dab9;border-radius:13px 4px 13px 13px;color:#493c20}.im-bubble p{font-size:13px;white-space:pre-wrap;margin:0;line-height:1.85}.im-bubble a{display:flex;align-items:center;gap:9px;color:#76602c;text-decoration:none;padding:4px 0;max-width:100%}.im-bubble a>span{overflow-wrap:anywhere}.im-bubble a small{font-size:10px;white-space:nowrap;color:#9c8c69}.im-bubble a:hover{text-decoration:underline}.im-history-note{text-align:center;font-size:10px;color:#b1aa9b;margin:7px 0 23px;letter-spacing:.3px}#im-older{display:block;margin:0 auto 22px;border:0;background:transparent;font-size:11px;color:#9b895e;padding:5px 12px}
#im-compose{border-top:1px solid #eae6dc;padding:15px 24px 17px;background:#fff}#im-compose textarea{display:block;width:100%;border:0;resize:none;min-height:70px;height:70px;max-height:150px;padding:4px 0 10px;box-shadow:none;border-radius:0;background:transparent;color:#3c3930;font-size:13px;line-height:1.8;outline:none}#im-compose textarea::placeholder{color:#b0a99b}#im-compose:focus-within{box-shadow:inset 0 2px 0 #c2aa6a55}#im-compose>div{display:flex;gap:10px;align-items:center;min-width:0}#im-compose button[type=submit]{display:flex;align-items:center;gap:9px;margin-left:auto;padding:8px 17px;border-radius:8px;white-space:nowrap;font-size:12px}#im-compose button[type=submit] svg{width:15px;height:15px}#im-file{position:absolute;width:1px;height:1px;opacity:0}.im-file{display:inline-flex;align-items:center;gap:6px;cursor:pointer;border:0;border-radius:6px;padding:7px 0;white-space:nowrap;color:#827966;font-size:12px}.im-file:focus-within{outline:2px solid #af9352;outline-offset:3px}.im-file:hover{color:var(--im-gold)}#im-file-name{font-size:10px;color:#aaa18f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:38%}#im-clear-file{border:0;background:transparent;font-size:10px;padding:4px;color:#a05a45}#im-clear-file[hidden]{display:none}
.im-welcome{margin:auto;text-align:center;padding:30px;line-height:1.9}.im-welcome-mark{display:grid;place-items:center;margin:0 auto 25px;width:78px;height:78px;border:1px solid #e7ddc5;border-radius:24px;background:#f8f5ec;color:#a58b4c;transform:rotate(-5deg)}#chat-root .im-welcome-mark svg{width:33px;height:33px;transform:rotate(5deg)}.im-welcome h2{font-size:21px;font-weight:500;letter-spacing:.3px;color:#514a3b;margin:9px 0 14px}.im-welcome p{font-size:12px;color:#a0998a;line-height:2}.im-welcome-tags{display:flex;justify-content:center;gap:8px;margin-top:25px}.im-welcome-tags span{font-size:10px;color:#a4987e;border:1px solid #ece6d9;border-radius:20px;padding:4px 12px}.im-empty{text-align:center;padding:60px 15px;color:#aba18f}.im-empty svg{margin-bottom:15px;color:#b5a584}.im-empty b{display:block;font-size:12px;font-weight:500;margin-bottom:9px}.im-empty p{font-size:11px;line-height:1.9;color:#b2aa9a}
#im-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #e0d8c5;border-radius:16px;padding:26px;color:#474238;box-shadow:0 18px 70px #201a1826}#im-dialog::backdrop{background:#24211766;backdrop-filter:blur(3px)}#im-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}#im-dialog h2{font-size:18px;font-weight:550}#im-dialog #im-cancel{border:0;background:transparent;font-size:11px;color:#9b927e}#im-dialog input:not([type=checkbox]):not([type=radio]){width:100%;margin:9px 0 14px;border:1px solid #e4ded1;background:#fcfbf8;border-radius:8px;padding:11px 12px;font-size:12px}#im-title-field{font-size:11px;color:#8d8068}#im-people,#im-depts{max-height:32vh;overflow:auto;padding:3px 0;border-top:1px solid #f0ece3;border-bottom:1px solid #f0ece3}#im-people label,#im-depts label{padding:12px;display:flex;align-items:center;gap:11px;font-size:13px;border-radius:7px}#im-people label:hover,#im-depts label:hover{background:#f8f5ed}#im-people label:has(:checked),#im-depts label:has(:checked){background:#f2ecdc;color:#7d6229}#im-dialog input[type=checkbox],#im-dialog input[type=radio]{accent-color:#8a6a1e;width:15px;height:15px;margin:0;flex:none}#im-people [hidden],#im-dialog [hidden]{display:none!important}.im-choice{display:flex;gap:4px;padding:4px;background:#f1eee6;border-radius:9px;margin:0 0 20px}.im-choice label{flex:1;text-align:center;padding:8px 10px;border-radius:6px;font-size:12px;color:#9b9079;cursor:pointer;position:relative}.im-choice label:has(:checked){background:#fff;color:#785a21;box-shadow:0 1px 4px #3326000a}.im-choice label:focus-within{outline:2px solid #b39a5c}.im-choice input{position:absolute;opacity:0}#im-dialog footer{text-align:right;margin-top:22px}#im-dialog footer button{padding:10px 23px}#im-dialog-error:empty{display:none}#im-dialog-error{color:#a64638;font-size:12px;margin-top:12px}.quant-exclusive{max-width:1400px;margin:auto}
@media(max-width:1000px){.im-layout{grid-template-columns:250px minmax(0,1fr)}.im-page-head{gap:18px}.im-tabs b,.im-tabs a{padding:8px 12px}.im-thread-head{padding:15px 18px}#im-feed{padding:14px 18px}#im-compose{padding:12px 18px}}
@media(max-width:700px){.content:has(#chat-root){padding:16px 12px 90px}.im-page-head{flex-wrap:wrap;gap:12px;margin-bottom:16px}.im-page-head>div{flex:1}.im-page-head h1{font-size:21px}.im-page-head .im-eyebrow{font-size:9px;margin-bottom:4px}.im-page-head>button{order:1;margin-left:auto;padding:9px 12px;font-size:11px}.im-tabs{order:2;width:100%;padding:3px}.im-tabs b,.im-tabs a{flex:1;text-align:center;padding:7px 12px}.im-layout{grid-template-columns:1fr;height:calc(100dvh - 250px);min-height:330px;border-radius:12px}.im-layout:not(.im-open) #im-thread{display:none}.im-layout.im-open .im-conversations{display:none}.im-conversations{border-right:0}.im-list-heading{padding:17px 19px 12px}.im-room{padding:14px 10px}.im-thread-head{padding:12px;gap:9px;min-height:64px}.im-thread-head .im-avatar{width:31px;height:31px;border-radius:9px}.im-thread-head b{font-size:13px}.im-thread-head .im-subtle{font-size:10px;padding:7px}#im-back{display:grid;place-items:center;border:0;padding:5px;background:transparent;color:#8a7d60}#im-feed{padding:12px 14px}.im-bubble{max-width:90%;padding:9px 12px}.im-bubble p{font-size:13px}#im-compose{padding:10px 13px 12px}#im-compose textarea{min-height:54px;height:54px;font-size:16px}#im-file-name{max-width:32%;font-size:9px}.im-welcome{padding:20px}.quant-exclusive .topbar{padding:12px}.quant-exclusive .brand{font-size:14px}}
.im-head-note{font-size:12px;color:#a59b88;border-left:1px solid #ddd4c2;padding-left:22px}.im-system-avatar{background:#f5efdf;border-color:#e8dcc0;color:#91702c}.im-system i{font-size:9px;font-style:normal;font-weight:400;color:#a08c61;border:1px solid #e4d9bf;border-radius:4px;padding:1px 4px;margin-left:4px}.im-list-divider{font-size:10px;color:#b0a793;padding:16px 12px 10px;border-top:1px solid #ece7da;margin-top:10px}
#im-compose .im-compose-tools{gap:19px;margin-bottom:9px}#im-compose .im-file{gap:5px;padding:3px 0}#im-compose input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.im-upload-limit{margin-left:auto;font-size:10px;color:#b2a999;white-space:nowrap}.im-send-hint{font-size:10px;color:#b3ab9c}#im-draft-file{display:flex;justify-content:space-between;align-items:center;border:1px solid #e7deca;border-radius:8px;background:#faf7ee;padding:9px 11px;margin:8px 0;font-size:12px;gap:10px}#im-draft-file>span{display:flex;gap:8px;align-items:center;min-width:0;overflow-wrap:anywhere}#im-draft-file small{font-size:10px;white-space:nowrap}#im-draft-file[hidden]{display:none!important}#im-compose #im-clear-file{font-size:18px;padding:0 3px}.im-dragging{outline:2px dashed #ac9051;outline-offset:-5px}
.im-bubble:has(.im-image-card){padding:5px;max-width:min(72%,360px);overflow:hidden}.im-image-card>button{display:block;border:0;background:none;padding:0;overflow:hidden;border-radius:9px;width:100%}.im-image-card img{display:block;width:auto;max-width:100%;height:auto;max-height:280px;object-fit:contain;min-width:100px}.im-bubble .im-image-download{padding:7px 8px;gap:6px;font-size:10px;color:#938164}.im-image-download svg{width:13px!important;height:13px!important}.im-image-download small{margin-left:auto}.im-bubble:has(.im-file-card){padding:0;overflow:hidden}.im-bubble p:has(+.im-file-card),.im-bubble p:has(+.im-image-card){padding:11px 14px}.im-bubble .im-file-card{display:flex;gap:12px;min-width:240px;max-width:330px;padding:15px;text-decoration:none;color:#5a503e}.im-file-card:hover{background:#ffffff33;text-decoration:none!important}.im-file-type{display:grid;place-items:center;width:40px;height:47px;background:#faf7ef;border:1px solid #e1d4b7;border-radius:6px;font-size:10px;color:#a0854d;font-weight:600;flex:none}.im-file-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.im-file-copy strong{font-size:12px;font-weight:500;overflow-wrap:anywhere;line-height:1.5}.im-file-copy small{font-size:10px;color:#a0947c}.im-download-icon{width:28px;height:28px;display:grid;place-items:center;background:#fff9;border:1px solid #e6dcc6;border-radius:50%;flex:none}.im-download-icon svg{width:14px!important;height:14px!important}
#im-preview{border:0;border-radius:14px;background:#fcfbf8;padding:16px;width:max-content;max-width:94vw;max-height:92dvh;color:#655b45}#im-preview::backdrop{background:#171612c9;backdrop-filter:blur(5px)}#im-preview header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px;font-size:12px}#im-preview header span{overflow-wrap:anywhere}#im-preview button{border:0;background:transparent;font-size:22px;padding:0 5px}#im-preview>img{display:block;max-width:85vw;max-height:72dvh;object-fit:contain;border-radius:6px}#im-preview>a{display:flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;margin-top:15px;font-size:12px}#im-preview svg{width:15px;height:15px}
.im-reminder-feed{flex:1;min-height:0;overflow:auto;padding:25px 28px;background:#f8f7f3}.im-reminder-card{max-width:540px;background:#fff;border:1px solid #e7e3d8;border-radius:12px;margin:0 auto 18px;padding:19px 21px;box-shadow:0 2px 4px #3b321903}.im-reminder-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;font-size:10px;color:#aaa08e}.im-reminder-meta>span{background:#f1efe9;border-radius:4px;padding:3px 6px;color:#969080}.im-reminder-meta>span.new{background:#f4ebd6;color:#96732b}.im-reminder-meta>span.done{background:#e9f0e9;color:#5b7c5d}.im-reminder-card h3{font-size:14px;font-weight:550;margin-bottom:9px;line-height:1.6}.im-reminder-card p{font-size:12px;color:#8d8473;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.im-reminder-times{font-size:10px;color:#b1a797;margin-top:16px}.im-reminder-card footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f0ece3;margin-top:15px;padding-top:12px;gap:12px}.im-reminder-card footer>span{font-size:10px;color:#a09784}.im-reminder-card footer button{display:flex;align-items:center;gap:25px;border:0;background:transparent;color:#957530;padding:3px 0;font-size:11px}.im-system-note{text-align:center;padding:16px;font-size:11px;color:#a49a87;border-top:1px solid #eee8db;background:#fff}
@media(max-width:700px){.im-head-note{display:none}.im-page-head>button{order:0}.im-layout{height:calc(100dvh - 220px)}#im-compose .im-compose-tools{gap:16px}.im-file span{font-size:11px}.im-upload-limit{font-size:9px}.im-send-hint{display:none}.im-bubble .im-file-card{min-width:210px;max-width:265px;padding:12px;gap:10px}.im-bubble:has(.im-image-card){max-width:83%}.im-reminder-feed{padding:16px 12px}.im-reminder-card{padding:16px}.im-reminder-card footer button{font-size:12px}.im-system-note{font-size:10px;padding:12px}}
/* Keep the composer above the persistent message dock and status indicator. */
.content:has(#chat-root){height:calc(100dvh - 68px);padding:22px 36px 116px;display:flex;flex-direction:column}#chat-root{display:flex;flex-direction:column;flex:1;min-height:0}.im-page-head{flex:none;margin-bottom:20px}.im-layout{flex:1;min-height:0;height:auto;max-height:none}#im-compose,.im-thread-head,.im-system-note{flex-shrink:0}
@media(max-width:1080px) and (min-width:701px){.content:has(#chat-root){padding-left:25px;padding-right:25px}}
@media(max-width:700px){.content:has(#chat-root){height:calc(100dvh - 104px - env(safe-area-inset-top));padding:16px 12px calc(116px + env(safe-area-inset-bottom))}.im-page-head{margin-bottom:16px}.im-thread-head{min-height:62px}}
@media(max-width:700px){.layout:has(#chat-root) .sidebar{padding:0 12px;height:46px;overflow:hidden}.layout:has(#chat-root) .sidebar .brand,.layout:has(#chat-root) .sidebar .footer{display:none}.layout:has(#chat-root) .sidebar nav{height:46px;align-items:center}.layout:has(#chat-root) .sidebar .nav{padding:10px 8px;margin-bottom:0}}
/* The floating entry is redundant inside the message center. */
body:has(#chat-root) #message-dock{display:none}
.content:has(#chat-root){padding-bottom:52px}
@media(max-width:700px){.content:has(#chat-root){padding-bottom:calc(52px + env(safe-area-inset-bottom))}}
#im-compose .im-record{display:inline-flex;align-items:center;gap:5px;border:0;padding:3px 0;background:none;color:#827966;font-size:12px;white-space:nowrap}#im-compose .im-record:hover{color:var(--brand)}.im-voice-card{width:280px;max-width:100%}.im-voice-player{display:flex;align-items:center;gap:12px;padding:3px 0 12px}.im-voice-player>button{display:grid;place-items:center;border:1px solid #d6c59c;background:#fff9;color:#8a6a1e;width:35px;height:35px;border-radius:50%;padding:7px;flex:none}.voice-track{flex:1;min-width:65px}.voice-track>span{font-size:11px;color:#8d7d5c}.voice-progress{height:3px;border-radius:3px;background:#ddd1b6;margin-top:9px;overflow:hidden}.voice-progress i{display:block;width:0;height:100%;background:#9d7d33}.voice-duration{font-size:10px;color:#9b8b6b;white-space:nowrap}.voice-transcription{border-top:1px solid #ded3b9;padding-top:9px}.voice-transcription>button{border:0;background:none;padding:0;color:#91702c;font-size:11px}.voice-transcription>small{display:block;font-size:9px;color:#a4977d;margin-top:6px}.voice-transcription .voice-transcript{font-size:13px;line-height:1.8;margin-top:10px;white-space:pre-wrap;color:#504735}.voice-transcript-error{font-size:11px!important;color:#a06955;margin-top:9px!important}
#voice-dialog{width:min(400px,calc(100vw - 32px));border:1px solid #dfd5bd;border-radius:18px;padding:24px;background:#fcfbf7;color:#6b5b3a;box-shadow:0 16px 70px #201a1826;text-align:center}#voice-dialog::backdrop{background:#24211766;backdrop-filter:blur(3px)}#voice-dialog header{display:flex;align-items:center;justify-content:space-between}#voice-dialog h2{font-size:17px;font-weight:550}#voice-close{font-size:22px;padding:0 4px;border:0;background:none;color:#9b8f75}.voice-record-mark{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:#f0e8d5;border:1px solid #e1d3b2;margin:26px auto 18px;color:#947535}.voice-record-mark svg{width:27px;height:27px}.voice-record-mark.recording{box-shadow:0 0 0 9px #e7daba55}#voice-clock{display:block;font-size:29px;font-weight:500;font-variant-numeric:tabular-nums}#voice-state{font-size:12px;margin-top:10px;color:#9c8c6b}#voice-preview{width:100%;height:42px;margin-top:18px}.voice-help{font-size:10px;color:#b0a38a;margin:15px 0}#voice-error{font-size:12px;color:#a15c43;line-height:1.7}#voice-dialog footer{display:flex;justify-content:center;gap:12px;margin-top:24px}#voice-dialog footer button{min-width:108px}
@media(max-width:700px){#im-compose .im-compose-tools{gap:13px}.im-upload-limit{display:none}.im-voice-card{width:240px}.im-voice-player{gap:9px}#im-compose .im-record{font-size:11px}}

.im-voice-player{cursor:pointer}.im-voice-player:focus-visible{outline:2px solid #957530;outline-offset:5px;border-radius:8px}.im-voice-fallback{width:260px;max-width:100%;display:grid;gap:10px;padding:4px}.im-voice-fallback>span{font-size:12px;color:#8c763e}.im-voice-fallback audio{width:100%;max-width:100%;height:40px}
/* Markdown is scoped to chat, including the draft preview. */
.im-markdown{font-size:13px;line-height:1.8;overflow-wrap:anywhere;min-width:0}.im-markdown p{white-space:normal;margin:0 0 8px}.im-markdown>:last-child{margin-bottom:0}.im-markdown h1,.im-markdown h2,.im-markdown h3,.im-markdown h4,.im-markdown h5,.im-markdown h6{line-height:1.5;margin:12px 0 8px;font-weight:650;letter-spacing:0}.im-markdown h1{font-size:20px}.im-markdown h2{font-size:18px}.im-markdown h3{font-size:16px}.im-markdown h4,.im-markdown h5,.im-markdown h6{font-size:14px}.im-markdown>:first-child{margin-top:0}.im-markdown ul,.im-markdown ol{padding-left:22px;margin:8px 0}.im-markdown ul{list-style:disc}.im-markdown ol{list-style:decimal}.im-markdown li{display:list-item;margin:3px 0}.im-markdown blockquote{margin:8px 0;padding:4px 12px;border-left:3px solid #b79e60;color:#7f7359}.im-markdown pre{white-space:pre;overflow-x:auto;max-width:100%;background:#302d26;color:#f2ecde;border-radius:8px;padding:12px;margin:10px 0;font-size:12px;line-height:1.7}.im-markdown code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#9b824620;padding:2px 4px;border-radius:3px;font-size:.95em}.im-markdown pre code{background:none;padding:0;color:inherit}.im-markdown a{display:inline;padding:0;color:#886619;text-decoration:underline;overflow-wrap:anywhere}.im-markdown table{display:block;overflow-x:auto;max-width:100%;border-collapse:collapse;margin:10px 0;font-size:12px}.im-markdown th,.im-markdown td{border:1px solid #dcd4c0;padding:6px 10px;white-space:normal;min-width:70px}.im-markdown th{background:#9b824612}.im-markdown input[type=checkbox]{width:13px;height:13px;margin-right:5px;accent-color:#92742b}.im-markdown hr{border:0;border-top:1px solid #dcd4c0;margin:12px 0}.im-bubble:has(.im-markdown){min-width:0;max-width:90%}.im-markdown+.im-file-card,.im-markdown+.im-image-card{margin-top:10px}.im-bubble:has(.im-file-card)>.im-markdown,.im-bubble:has(.im-image-card)>.im-markdown{padding:10px 14px}
#im-compose .im-md-tools{gap:6px;margin:0 0 6px;display:flex;align-items:center}#im-compose .im-md-tools>span{font-size:10px;color:#a0957d;margin-right:auto}#im-compose .im-md-tools button{border:0;background:#f5f2ea;color:#82734f;padding:4px 8px;border-radius:5px;font-size:11px;min-height:27px}#im-compose .im-md-tools button[aria-pressed=true]{background:#eee3c7;color:#795c18}#im-compose .im-md-preview{display:block;max-height:160px;min-height:70px;overflow:auto;padding:6px 0 10px}#im-compose .im-md-preview[hidden],#im-compose textarea[hidden]{display:none}.im-md-empty{color:#aaa08e}@media(max-width:700px){#im-compose .im-md-preview{min-height:54px;max-height:130px}.im-markdown pre{max-width:100%;font-size:11px}.im-markdown h1{font-size:18px}}

#im-editor-menu{position:fixed;z-index:10000;width:280px;max-width:calc(100vw - 16px);padding:6px;background:#fffdf8;border:1px solid #e3dac5;border-radius:10px;box-shadow:0 8px 30px #42351526;color:#594d32}#im-editor-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:0;background:transparent;text-align:left;padding:10px;border-radius:6px;color:inherit;font-size:12px}#im-editor-menu button:hover,#im-editor-menu button:focus-visible{background:#f0e8d4;outline:none}#im-editor-menu button:disabled{opacity:.4}#im-editor-menu small{font-size:10px;color:#a19780}#im-editor-menu button:nth-child(3),#im-editor-menu button:last-child{border-top:1px solid #eee8db}
