.profession-picker{display:flex;flex-direction:column;gap:6px;min-width:0}
.profession-results{max-height:240px;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:8px;background:var(--card)}
.profession-results summary{cursor:pointer;font-weight:700;padding:8px}
.profession-options{display:grid;gap:3px;padding-left:12px}
.profession-options button{border:0;border-radius:8px;padding:8px;text-align:left;background:var(--surface);color:var(--tx);cursor:pointer}
.profession-options button:hover{background:var(--mist-xl)}
fieldset[data-profession-registration]{border:0;min-width:0}
.chat-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:18px;align-items:start}
.chat-list{display:flex;flex-direction:column;gap:16px;min-width:0}
.school-results{max-height:280px;overflow:auto;display:flex;flex-direction:column;gap:6px}
.school-results .btn{white-space:normal;text-align:left;justify-content:flex-start}
.school-results small{display:block;font-weight:400}
.school-results:empty,[data-school-details]:empty{display:none}
.rating{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}
.rating-track{display:inline-block;position:relative;color:var(--line);font-size:21px;letter-spacing:2px;white-space:nowrap}
:root{--rating-star:#b77508}
:root[data-theme=dark]{--rating-star:#ffcd70}
.rating-fill{position:absolute;inset:0 auto 0 0;overflow:hidden;color:var(--rating-star)}
.star-picker{border:0;min-width:0}.star-picker legend{font-weight:600;font-size:14px;margin-bottom:5px}
.star-options{display:flex;gap:4px;position:relative;width:fit-content}.star-options label{cursor:pointer;display:grid;place-items:center;width:44px;height:44px;border-radius:10px;color:var(--line);font-size:34px}
.star-options label:has(input:checked),.star-options label:has(~ label input:checked){color:var(--rating-star)}
.star-options input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0;border:0;clip-path:inset(50%)}
.star-options label:focus-within{outline:2px solid var(--mist-d);outline-offset:2px}
.star-options label:hover{background:var(--mist-xl)}
.star-picker output{display:block;min-height:20px;margin-top:4px}
@media(hover:hover){.star-options:has(label:hover) label{color:var(--line)}.star-options:has(label:hover) label:hover,.star-options:has(label:hover) label:has(~ label:hover){color:var(--rating-star)}}
[data-chat-list]{display:grid;grid-auto-rows:max-content;gap:10px;max-height:60vh;overflow:auto;align-content:start}
[data-chat-list] .btn{white-space:normal;justify-content:flex-start;text-align:left;padding:14px;min-width:0;width:100%}
[data-chat-list] .btn>span{min-width:0}
[data-chat-list] b,[data-chat-list] small{display:block;overflow-wrap:anywhere}
[data-chat-list] small{font-weight:400;font-size:12px}
.chat-thread{display:flex;flex-direction:column;gap:16px;min-width:0;height:calc(100dvh - 210px);min-height:590px}
.chat-thread:has([data-chat-advanced]:not([hidden])){height:auto}
.chat-thread .chat-back{display:none}
.chat-messages{flex:1;min-height:160px;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:4px}
.chat-message{flex-shrink:0;align-self:flex-start;max-width:92%;background:var(--paper);border:1px solid var(--line);padding:12px 15px;border-radius:16px;overflow-wrap:anywhere}
.chat-message.own{align-self:flex-end;background:var(--mist-xl)}
.chat-message footer{display:flex;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--mut);margin-top:8px;align-items:center}
.chat-message footer button{background:none;border:0;color:var(--mist-d);cursor:pointer;font-size:12px;min-height:28px}
.chat-body,.chat-editor{white-space:pre-wrap;overflow-wrap:anywhere}
.chat-body p,.chat-body div{min-height:1em}
.chat-body ul,.chat-body ol,.chat-editor ul,.chat-editor ol{padding-left:24px}
.chat-body pre,.chat-editor pre{white-space:pre-wrap;background:var(--taupe-l);padding:10px;border-radius:8px;overflow:auto}
.chat-body blockquote,.chat-editor blockquote{border-left:3px solid var(--mist-d);padding-left:10px;margin:6px 0}
.chat-attachment{display:flex;flex-direction:column;gap:6px;margin-top:8px;max-width:100%}
.chat-attachment img{display:block;max-width:100%;max-height:300px;object-fit:contain;border-radius:12px;align-self:flex-start}
.chat-attachment .btn{white-space:normal;overflow-wrap:anywhere}
.chat-compose{display:flex;flex-direction:column;gap:10px}
.chat-editor{min-height:110px;max-height:300px;overflow:auto;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);padding:12px;outline-color:var(--mist-d)}
.chat-editor:empty::before{content:attr(data-placeholder);color:var(--mut);pointer-events:none}
.chat-toolbar{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.chat-toolbar button{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:6px 10px;min-height:38px;cursor:pointer}
.chat-toolbar label{flex:1;min-width:150px}
.chat-context-menu{position:fixed;z-index:90;display:grid;gap:4px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--card);box-shadow:var(--sh2);max-width:calc(100vw - 16px)}
.chat-context-menu button{border:0;border-radius:8px;background:var(--surface);color:var(--tx);padding:10px 14px;text-align:left;cursor:pointer;min-height:44px}
.chat-context-menu button:hover,.chat-context-menu button:focus-visible{background:var(--mist-xl)}
.chat-files{display:flex;flex-direction:column;gap:6px}
.chat-queued{display:flex;gap:8px;align-items:center;padding:6px;background:var(--paper);border-radius:8px;overflow-wrap:anywhere}
.chat-queued img{width:52px;height:52px;object-fit:cover;border-radius:6px}
.chat-queued span{flex:1;min-width:0}
.chat-queued button{border:0;background:none;font-size:24px;cursor:pointer;min-width:40px;min-height:40px}
.chat-file-input{position:absolute;width:1px;height:1px;min-height:0;opacity:0;overflow:hidden}
label:has(.chat-file-input:focus-visible){outline:2px solid var(--mist-d)}
@media(max-width:1150px){.chat-layout{grid-template-columns:1fr}.chat-list [data-chat-list]{max-height:60vh}.chat-list h2{font-size:20px}.chat-thread .chat-back{display:inline-flex}.chat-layout:has([data-chat-editor]):not(.show-list) .chat-list{display:none}.chat-layout.show-list .chat-thread{display:none}.chat-thread header{flex-wrap:wrap}.chat-thread header h2{font-size:20px}}
@media(max-width:900px){.tabs .tab{font-size:10px}.tab .ic{width:42px}.chat-message{max-width:100%}.chat-thread{padding:14px;min-height:650px}.chat-editor{min-height:72px}.chat-compose>.xs{font-size:11px;line-height:1.3}.chat-toolbar button{min-height:42px}}
.chat-thread header .row,.chat-thread header .row>div{min-width:0}.chat-thread header h2{overflow-wrap:anywhere}
