.dashboard-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
.dashboard-workspace-content{min-width:0}
.solarin-chat[hidden],.solarin-chat [hidden]{display:none!important}
.solarin-chat{position:relative;display:flex;flex-direction:column;width:100%;max-width:1120px;height:640px;min-height:440px;overflow:hidden;background:#232c39;border:1px solid #e6d6bf24;border-radius:16px;box-shadow:0 10px 32px #10172224;color:#dadee2;font-family:Oswald,Arial,sans-serif}
.chat-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px;border-bottom:1px solid #e6d6bf19;background:#253141;flex-shrink:0}
.chat-heading{display:flex;align-items:center;gap:11px;min-width:0}.chat-mark{display:grid;place-items:center;width:39px;height:39px;border:1px solid #e6d6bf40;border-radius:12px;color:#e6d6bf;font-size:22px;background:#e6d6bf08;flex-shrink:0}
.solarin-chat .chat-header h2{color:#e6d6bf;font-size:20px;font-weight:500;margin:0;line-height:1.3}.chat-heading p{color:#9cabbc;font-size:12px;margin:3px 0 0}.chat-connection{font-size:11px;color:#aeb9bf;text-align:right;max-width:110px}.chat-connection.is-ready{color:#a2c7a0}.chat-connection.is-error{color:#e4aa9e}
.chat-history{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#627184 #232c39;padding:18px 16px;overflow-anchor:none}
.chat-older{display:block;margin:0 auto 18px;border:1px solid #598ed744;background:#598ed710;color:#b6cae6;border-radius:8px;padding:7px 12px;font:inherit;font-size:12px;cursor:pointer}
.chat-messages{display:flex;flex-direction:column;gap:15px}.chat-empty{margin:auto;padding:48px 20px;text-align:center;color:#9cabbc;font-size:14px;line-height:1.7}
.chat-message{display:flex;flex-direction:column;align-items:flex-start;max-width:91%;align-self:flex-start;min-width:0}.chat-message.is-mine{align-self:flex-end;align-items:flex-end}
.chat-message-meta{display:flex;align-items:center;gap:8px;max-width:100%;margin:0 2px 5px;line-height:1.4;flex-wrap:wrap}.chat-message-name{font-size:13px;color:#e6d6bf;overflow-wrap:anywhere}.chat-message-time{font-size:10px;color:#98a9bb;white-space:nowrap}
.chat-bubble{padding:10px 13px;border-radius:12px 12px 12px 3px;background:#303d4f;border:1px solid #ffffff08;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;min-width:0}.is-mine .chat-bubble{background:#304660;border-color:#598ed72d;border-radius:12px 12px 3px 12px}.chat-bubble strong{font-weight:700}.chat-bubble em{font-style:italic}.chat-bubble u{text-decoration:underline;text-underline-offset:3px}.is-deleted .chat-bubble{background:transparent;border:1px dashed #9cabbc30;color:#9cabbc;font-size:12px;font-style:italic}
.chat-delete{margin-left:2px;background:transparent;border:0;color:#9cabbc;cursor:pointer;padding:3px 5px;font:inherit;font-size:13px;border-radius:4px}.chat-delete:hover{color:#efaaaa;background:#cf6f6f14}
.chat-unread{position:absolute;bottom:calc(var(--chat-composer-height,148px) + 12px);left:50%;transform:translateX(-50%);z-index:2;white-space:nowrap;border:1px solid #598ed780;border-radius:20px;background:#304660;color:#d7e6fb;padding:8px 15px;font:inherit;font-size:13px;cursor:pointer;box-shadow:0 3px 10px #11192355}
.chat-composer{flex-shrink:0;border-top:1px solid #e6d6bf19;padding:14px 16px;background:#253141}
.chat-input-wrap{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:auto auto;column-gap:10px;padding:10px 10px 8px 12px;border:1px solid #aeb9bf30;border-radius:14px;background:#1e2836;box-shadow:inset 0 1px 2px #11192325;transition:border-color .16s ease,box-shadow .16s ease}
.chat-input-wrap:focus-within{border-color:#e6d6bf80;box-shadow:0 0 0 3px #e6d6bf09,inset 0 1px 2px #11192325}
.solarin-chat textarea{display:block;grid-column:1;grid-row:1;width:100%;box-sizing:border-box;resize:none;border:0;border-radius:0;background:transparent;color:#dadee2;font:400 15px/1.6 Oswald,Arial,sans-serif;padding:0 6px 0 0;height:3.2em;min-height:3.2em;max-height:3.2em;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;outline:none}
.solarin-chat textarea::placeholder{color:#98a9bb}.solarin-chat textarea:focus{outline:none}
.chat-counter{grid-column:1;grid-row:2;align-self:end;margin-top:6px;color:#98a9bb;font-size:10px;line-height:1.4;pointer-events:none}
.solarin-chat .chat-send-btn{position:relative;grid-column:2;grid-row:1/3;justify-self:end;align-self:end;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #8fb5e45e;border-radius:12px;background-color:#426da3;background-image:linear-gradient(145deg,#598ed7aa,#3b609400);color:#eff5ff;box-shadow:0 4px 13px #10243d45,inset 0 1px #ffffff1c;cursor:pointer;transition:filter .16s ease,box-shadow .16s ease,transform .16s ease,opacity .16s ease}
.chat-send-btn svg{width:20px;height:20px;pointer-events:none}.solarin-chat .chat-send-btn:hover:not(:disabled){filter:brightness(1.12);transform:translateY(-1px);box-shadow:0 6px 17px #10243d60,inset 0 1px #ffffff24}.solarin-chat .chat-send-btn:active:not(:disabled){transform:translateY(0)}.solarin-chat .chat-send-btn:disabled{opacity:.4;cursor:default;box-shadow:none}.chat-send-btn.is-sending svg{opacity:0}.chat-send-btn.is-sending::after{content:'';position:absolute;width:16px;height:16px;border:2px solid #eff5ff50;border-top-color:#eff5ff;border-radius:50%;animation:chat-send-spin .8s linear infinite}@keyframes chat-send-spin{to{transform:rotate(360deg)}}
.chat-formatting{position:absolute;left:12px;bottom:calc(100% + 10px);z-index:4;display:flex;align-items:center;gap:4px;margin:0;padding:5px;border:1px solid #e6d6bf3d;border-radius:11px;background:#1b2634;box-shadow:0 6px 20px #11192355}
.chat-formatting button{display:grid;place-items:center;width:31px;height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:#e6d6bf;cursor:pointer;font:16px Georgia,serif}.chat-formatting button:hover{background:#e6d6bf12}.chat-formatting button:disabled{opacity:.45;cursor:default}
.chat-status{margin:7px 0 0;min-height:16px;color:#c4d0de;font-size:11px;line-height:1.5}.chat-status:empty{display:none}.chat-status.is-error{color:#efb4aa}
.solarin-chat button:focus-visible{outline:2px solid #e6d6bf;outline-offset:3px}.chat-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.chat-delete-dialog{width:min(360px,calc(100% - 30px));border:1px solid #e6d6bf40;border-radius:15px;padding:22px;background:#253141;color:#dadee2;font:16px/1.6 Oswald,Arial,sans-serif;box-shadow:0 15px 50px #11192380}.chat-delete-dialog::backdrop{background:#11192399}.chat-delete-dialog p{margin:0 0 20px;color:#e6d6bf}.chat-dialog-actions{display:flex;gap:10px;justify-content:flex-end}.chat-dialog-actions button{border:1px solid #aeb9bf40;border-radius:8px;padding:8px 13px;color:#dadee2;background:#1e2836;font:inherit;cursor:pointer}.chat-dialog-actions .chat-confirm-delete{border-color:#cf6f6f70;background:#cf6f6f18;color:#efb4aa}
@media(min-width:1500px){.dashboard-workspace{grid-template-columns:minmax(0,1120px) minmax(320px,1fr);gap:22px}.solarin-chat{position:sticky;top:100px;max-width:560px;height:min(720px,calc(100dvh - 220px));min-height:440px}}
@media(max-width:600px){.solarin-chat{height:600px;max-height:760px;border-radius:12px}.chat-header{padding:14px}.chat-header h2{font-size:18px}.chat-history{padding:15px 12px}.chat-composer{padding-inline:12px}.chat-message{max-width:95%}.solarin-chat textarea{font-size:16px}.chat-formatting button{height:34px;width:34px}}

@media(prefers-reduced-motion:reduce){.chat-input-wrap,.solarin-chat .chat-send-btn{transition:none}.chat-send-btn.is-sending::after{animation:none}}

/* Shared Solarin scrollbars: text entry stays separate from the send button and counter. */
#solarinChat .chat-history,#solarinChat #chatInput{scrollbar-width:thin;scrollbar-color:#9b9387 #1e2836;scrollbar-gutter:stable}
#solarinChat .chat-history::-webkit-scrollbar,#solarinChat #chatInput::-webkit-scrollbar{width:6px;height:6px}
#solarinChat .chat-history::-webkit-scrollbar-track,#solarinChat #chatInput::-webkit-scrollbar-track{background:#1e2836;border-radius:8px}
#solarinChat .chat-history::-webkit-scrollbar-thumb,#solarinChat #chatInput::-webkit-scrollbar-thumb{background:#9b9387;border-radius:8px;border:1px solid #1e2836}
#solarinChat .chat-history::-webkit-scrollbar-thumb:hover,#solarinChat #chatInput::-webkit-scrollbar-thumb:hover{background:#e6d6bf}
#solarinChat .chat-history::-webkit-scrollbar-button,#solarinChat #chatInput::-webkit-scrollbar-button{display:none;width:0;height:0}
#solarinChat .chat-history::-webkit-scrollbar-corner,#solarinChat #chatInput::-webkit-scrollbar-corner{background:transparent}
@supports selector(::-webkit-scrollbar){#solarinChat .chat-history,#solarinChat #chatInput{scrollbar-width:auto;scrollbar-color:auto}}

/* User mentions: neutral chips for everyone, personal message emphasis for the recipient. */
.chat-bubble .chat-mention{padding:1px 4px;border-radius:4px;background:#598ed72b;color:#bdd7fa;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.chat-bubble .chat-mention.is-me{background:#e6d6bf26;color:#f1dfba}
.solarin-chat .chat-message.is-mentioned .chat-bubble{background:#4c4335;border-color:#e6d6bf65;box-shadow:inset 3px 0 #d0b987;color:#f1e9dd}
.chat-mention-note{font-size:10px;color:#e6d6bf;white-space:nowrap}
.chat-mentions-menu{position:absolute;left:12px;right:10px;bottom:calc(100% + 10px);z-index:5;max-height:220px;overflow-y:auto;overscroll-behavior:contain;padding:5px;border:1px solid #e6d6bf3d;border-radius:12px;background:#1b2634;box-shadow:0 6px 20px #11192360;scrollbar-width:thin;scrollbar-color:#9b9387 #1b2634}
.chat-mention-option{display:flex;align-items:center;gap:10px;width:100%;min-height:43px;border:0;border-radius:7px;padding:7px 9px;text-align:left;background:transparent;color:#dadee2;font:400 14px/1.5 Oswald,Arial,sans-serif;cursor:pointer}
.chat-mention-option.is-active,.chat-mention-option:hover{background:#e6d6bf12;color:#e6d6bf}.chat-mention-avatar{display:grid;place-items:center;width:29px;height:29px;flex-shrink:0;border-radius:9px;background:#598ed725;border:1px solid #598ed72a;color:#b6cae6;font-size:11px}.chat-mention-option-name{min-width:0;overflow-wrap:anywhere}.chat-mention-option small{margin-left:auto;color:#9cabbc;font-size:10px;white-space:nowrap}
.chat-mentions-menu::-webkit-scrollbar{width:6px}.chat-mentions-menu::-webkit-scrollbar-track{background:#1b2634;border-radius:8px}.chat-mentions-menu::-webkit-scrollbar-thumb{background:#9b9387;border:1px solid #1b2634;border-radius:8px}.chat-mentions-menu::-webkit-scrollbar-button{display:none;width:0;height:0}
@media(max-width:600px){.chat-mentions-menu{left:6px;right:6px;max-height:200px}.chat-mention-option{min-height:44px}}
