.portal-visual-header{display:flex;align-items:center;gap:18px;margin-bottom:22px;padding:18px 22px;border:1px solid #d9e7fb;border-radius:22px;background:linear-gradient(120deg,#fff,#edf5ff);box-shadow:0 8px 24px #143c7510}
.portal-visual-header>img{flex:0 0 100px;object-fit:contain;filter:drop-shadow(0 8px 6px #174a7922);transition:transform .2s ease}
.portal-visual-header:hover>img{transform:translateY(-4px) rotate(-3deg)}
.portal-visual-header>.hello{flex:1;margin:0;min-width:0;flex-wrap:wrap;gap:12px}
.portal-section-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;margin-inline-end:10px;border-radius:12px;background:#edf4ff;font-size:21px;vertical-align:middle}
.nav .ico{font-size:21px;min-width:28px;display:inline-flex;justify-content:center}
.nav button:focus-visible,.a-dashboard button:focus-visible,.a-dashboard a:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.room-detail h3{margin-top:30px;padding-top:18px;border-top:1px solid #e1e9f5}
.a-dashboard .room-session{border-radius:14px;background:#f6f9ff;padding:16px;margin-top:10px}
@media(max-width:600px){.portal-visual-header{padding:14px;gap:10px}.portal-visual-header>img{width:64px;height:64px;flex-basis:64px}.portal-visual-header h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){.portal-visual-header>img{transition:none}.portal-visual-header:hover>img{transform:none}}
.portal-chat-fab{position:fixed;bottom:24px;right:24px;z-index:40;display:flex;align-items:center;gap:8px;background:#1358c8;color:#fff;border:2px solid #fff;border-radius:32px;padding:14px 20px;box-shadow:0 5px 20px #102d5c40;font:700 16px inherit;cursor:pointer;min-height:52px}
.portal-chat-fab span:first-child{font-size:25px}.portal-chat-panel{position:fixed;right:24px;bottom:90px;z-index:41;width:min(380px,calc(100vw - 32px));max-height:calc(100dvh - 120px);overflow:auto;background:#fff;color:#172744;border:1px solid #d4e2f7;border-radius:20px;padding:20px;box-shadow:0 12px 40px #102d5c35}.portal-chat-panel header{display:flex;justify-content:space-between;align-items:center}.portal-chat-panel header button{border:0;background:#edf4ff;border-radius:8px;padding:8px;cursor:pointer}.portal-chat-panel label{display:grid;gap:6px;margin:12px 0}.portal-chat-panel select,.portal-chat-panel textarea{width:100%;padding:10px;border:1px solid #becfe7;border-radius:9px;font:inherit}.portal-chat-history{max-height:200px;overflow:auto}.portal-chat-history article{background:#eef5ff;padding:10px;border-radius:12px;margin:8px 0}.portal-chat-history p{white-space:pre-wrap;overflow-wrap:anywhere}.portal-chat-fab:focus-visible{outline:3px solid #102d5c;outline-offset:3px}
.portal-chat-avatar{display:inline-flex;width:32px;height:32px;object-fit:cover;border-radius:50%;background:#1358c8;color:white;align-items:center;justify-content:center;margin-right:8px;vertical-align:middle;font-weight:700}
.portal-conversation{display:grid;gap:5px;width:100%;text-align:start;padding:14px;margin:10px 0;border:1px solid #d4e2f7;border-radius:12px;background:#f1f6ff;color:#172744;cursor:pointer}.portal-conversation span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.portal-conversation:hover{background:#e1edff}

.portal-conversation{grid-template-columns:38px 1fr}.portal-conversation>.portal-chat-avatar{grid-column:1;grid-row:1/4;width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}.portal-conversation>strong,.portal-conversation>span:not(.portal-chat-avatar),.portal-conversation>small{grid-column:2}.portal-chat-panel h3 .portal-chat-avatar{vertical-align:middle}

.instructor-signed-profile{display:flex;align-items:center;gap:12px;margin-bottom:20px}.instructor-signed-profile .portal-chat-avatar{width:54px;height:54px;margin:0}.instructor-signed-profile>span:last-child{color:#64748b}

.portal-welcome-profile{flex:0 0 100px;order:2}.portal-welcome-profile .portal-chat-avatar{width:100px;height:100px;margin:0;border:3px solid white;box-shadow:0 5px 18px #143c7520;font-size:36px}.portal-welcome-profile+.hello{order:1}@media(max-width:600px){.portal-welcome-profile{flex-basis:64px}.portal-welcome-profile .portal-chat-avatar{width:64px;height:64px;font-size:26px}}

form:is([data-roomform="message"],[data-roomform="teamMessage"],[data-roomform="classMessage"]) .v-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 20px;border:1px solid #1358c8;border-radius:10px;background:#1358c8;color:#fff;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
form:is([data-roomform="message"],[data-roomform="teamMessage"],[data-roomform="classMessage"]) .v-button:hover{background:#0e439b;border-color:#0e439b}
form:is([data-roomform="message"],[data-roomform="teamMessage"],[data-roomform="classMessage"]) .v-button:focus-visible{outline:3px solid #78a7f3;outline-offset:3px}
form:is([data-roomform="message"],[data-roomform="teamMessage"],[data-roomform="classMessage"]) .v-button:disabled{background:#8ba8d2;border-color:#8ba8d2;cursor:wait}
.portal-chat-panel [data-chat-back]{background:#e7efff;color:#124da8;border:1px solid #b7cef5;border-radius:9px;padding:9px 12px;margin-top:12px;font:inherit;cursor:pointer}

.portal-chat-history{display:flex;flex-direction:column;gap:6px;padding:6px 0;max-height:260px}
.portal-chat-history article.portal-message,.room-detail article.portal-message{width:fit-content;max-width:88%;padding:7px 10px;margin:0;border:1px solid transparent;border-radius:14px;box-shadow:0 2px 5px #17274408;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.portal-chat-history article.portal-message-sent,.room-detail article.portal-message-sent{align-self:flex-end;margin-inline-start:auto;background:#dcf6ed;border-color:#b6e7d4;border-bottom-right-radius:4px;color:#174f40}
.portal-chat-history article.portal-message-received,.room-detail article.portal-message-received{align-self:flex-start;margin-inline-end:auto;background:#f0eaff;border-color:#dfd1fa;border-bottom-left-radius:4px;color:#463265}
.portal-message p,.portal-message p.room-text{margin:4px 0;font-size:13px;line-height:1.4;white-space:pre-wrap}
.portal-message strong{font-size:11px}.portal-message small{display:block;font-size:10px;opacity:.75;line-height:1.3;margin-top:3px}.portal-message .portal-chat-avatar{width:22px;height:22px;font-size:10px;margin-right:5px}
.room-detail article.portal-message{margin-top:6px;margin-bottom:6px}
.portal-conversation{padding:9px 11px;margin:6px 0;gap:3px;border-radius:13px;font-size:13px}.portal-conversation>strong{font-size:13px}.portal-conversation>span:not(.portal-chat-avatar){font-size:12px}.portal-conversation>small{font-size:10px;opacity:.75}

.portal-message a.portal-message-link{color:#1358a8;text-decoration:underline;text-underline-offset:2px;font-weight:600;overflow-wrap:anywhere}.portal-message a.portal-message-link:hover{color:#073d83}.portal-message a.portal-message-link:focus-visible{outline:2px solid #1358c8;outline-offset:2px;border-radius:3px}

.portal-chat-panel{background:#fff;border-radius:18px;padding:0;width:min(420px,calc(100vw - 24px));overflow:hidden}.portal-chat-panel>header{background:#075e54;color:#fff;padding:13px 16px}.portal-chat-panel>header button{background:#ffffff18;color:white;margin-left:4px}.portal-chat-panel>[data-chat-back],.portal-chat-panel>.portal-new-group{margin:10px 12px}.portal-thread-heading{display:flex;align-items:center;gap:6px;margin:8px 14px;font-size:15px}.portal-thread-heading small{display:block;font-size:10px;font-weight:400;color:#64748b;max-width:270px}.portal-chat-notice{margin:3px 14px 8px;font-size:10px;color:#64748b}.portal-chat-panel .portal-chat-history{background-color:#efeae2;background-image:radial-gradient(#cbbfac55 1px,transparent 1px);background-size:18px 18px;min-height:210px;max-height:360px;padding:14px 12px;overflow:auto}.portal-chat-history article.portal-message-sent,.room-detail article.portal-message-sent{background:#d9fdd3;border-color:#c9edc3;color:#173d2b}.portal-chat-history article.portal-message-received,.room-detail article.portal-message-received{background:#fff;border-color:#eee7de;color:#233138}.portal-chat-panel .portal-chat-composer{display:flex;align-items:end;gap:8px;background:#f0f2f5;padding:10px;margin:0}.portal-chat-panel .portal-compose-label{flex:1;margin:0;font-size:10px;color:#667781}.portal-chat-panel .portal-compose-label textarea{background:white;border:0;border-radius:20px;min-height:42px;max-height:110px;font-size:14px;padding:11px 14px;resize:vertical}.portal-chat-panel .portal-chat-composer .v-button{border-radius:50%;background:#008069;border-color:#008069;width:43px;height:43px;min-height:43px;padding:0;font-size:20px}.portal-chat-date{align-self:center;background:#ffffffcc;color:#54656f;border-radius:7px;padding:4px 8px;font-size:10px;margin:6px 0}.portal-chat-empty{align-self:center;font-size:12px;color:#667781}.portal-chat-panel .portal-conversation{border:0;border-bottom:1px solid #edf0f2;background:white;border-radius:0;margin:0;padding:11px 16px}.portal-chat-panel .portal-conversation:hover{background:#f0f2f5}.portal-new-group{background:#e4f5ec;color:#075e54;border:0;border-radius:18px;padding:9px 14px;font:inherit;font-weight:600;cursor:pointer}.portal-chat-panel>.a-admin-form{padding:12px}.portal-group-member{display:flex!important;align-items:center;gap:8px}.portal-chat-panel [data-roomform="createTeamGroup"]{padding:16px;max-height:55vh;overflow:auto}.portal-chat-panel [data-roomform="createTeamGroup"] .v-button{background:#008069;color:white;padding:10px 18px;border:0;border-radius:18px;font:inherit}.portal-chat-panel>p[role="alert"]{padding:8px 14px;color:#b42318}

.portal-chat-panel [data-roomform="createTeamGroup"] input[name="name"]{border:1px solid #cdd8d3;border-radius:10px;padding:10px;width:100%;font:inherit}.portal-chat-panel [data-roomform="createTeamGroup"] fieldset{border:1px solid #dce5e0;border-radius:12px;padding:8px 12px}.portal-chat-panel>.portal-thread-heading+small{font-size:10px}

.portal-message{position:relative}.portal-delete-message{float:right;margin-left:8px;border:0;background:transparent;color:#a33232;font-size:16px;cursor:pointer;padding:0 2px}.portal-delete-chat{margin:0 14px 8px;padding:5px 9px;background:#fff0f0;color:#a33232;border:1px solid #eacaca;border-radius:8px;font-size:11px;cursor:pointer}

.portal-chat-panel{display:flex;flex-direction:column;max-height:calc(100dvh - 120px)}.portal-chat-panel>header{flex:none}.portal-chat-content{min-height:0;overflow-y:auto;overflow-x:hidden;max-height:calc(100dvh - 185px);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#93b9aa #f2f5f3}.portal-chat-content>[data-chat-back],.portal-chat-content>.portal-new-group{margin:10px 12px}.portal-chat-content>p[role="alert"]{padding:8px 14px;color:#b42318}.portal-chat-content>h3{margin:10px 14px}.portal-chat-content>.hint{margin:12px 14px}.portal-chat-history{overscroll-behavior:contain}

.portal-chat-unread{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 5px;background:#fff;color:#075e54;border-radius:20px;font-size:12px;font-weight:700}.portal-incoming-alert{position:fixed;right:24px;bottom:88px;z-index:55;width:min(320px,calc(100vw - 32px));display:grid;gap:5px;text-align:left;padding:14px 16px;border:1px solid #c4e7da;border-radius:16px;background:#f0fff6;color:#173d2b;box-shadow:0 8px 28px #123d2b30;cursor:pointer;font:inherit}.portal-incoming-alert strong{font-size:14px}.portal-incoming-alert span{font-size:13px;overflow-wrap:anywhere}.portal-incoming-alert small{font-size:10px;color:#527467}

.portal-read-receipt{display:inline;padding:0 0 0 5px;margin:0;border:0;background:transparent;color:#72887e;font-size:11px;line-height:1;cursor:pointer}.portal-read-receipt.is-read{color:#0784c4}.portal-message small:has(.portal-read-receipt){opacity:1;text-align:right}

#root:has(>.sidebar){--paper:#fff;--bg:#fff;--ink:#18213a;--muted:#667290;--line:#e6e9f1;--field:#fff;background:#fff;min-height:100dvh}body:has(#root>.sidebar){background:#fff}
