.assistants-chat-page .content{max-width:none}
.assistants-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
.assistants-head h1{margin:0;font-size:28px;line-height:1.2;letter-spacing:-.025em}
.assistants-head p:last-child{margin:6px 0 0;color:var(--muted);font-size:13px}
.assistants-badge{flex:none;padding:8px 11px;border:1px solid #c8e7e2;border-radius:7px;color:#08786e;background:#eaf7f4;font-size:11px;font-weight:700}
.assistants-grid{display:grid;grid-template-columns:minmax(245px,300px) minmax(0,1fr);gap:14px;min-height:min(690px,calc(100vh - 170px))}
.assistants-panel{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 5px 16px rgba(29,45,50,.04)}
.assistants-list{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.assistants-list header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px;border-bottom:1px solid var(--line)}
.assistants-list h2,.assistants-thread h2{margin:0;font-size:16px;line-height:1.3}
.assistants-list header .button{white-space:nowrap}
.assistants-list-body{flex:1;min-height:0;overflow:auto;padding:7px}
.assistants-item{display:block;width:100%;padding:13px 12px;text-align:left;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);cursor:pointer}
.assistants-item:hover{background:#f4f8f7}.assistants-item.is-selected{background:var(--accent-soft);border-color:#c8e8e2}
.assistants-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.assistants-item small{display:block;margin-top:4px;color:var(--muted);font-size:11px}
.assistants-list-empty{padding:19px 14px;color:var(--muted);font-size:13px;line-height:1.5}
.assistants-thread{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.assistants-thread header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 20px;border-bottom:1px solid var(--line)}
.assistants-thread header small{color:var(--muted);font-size:11px}
.assistants-messages{display:flex;flex:1;flex-direction:column;gap:14px;min-height:250px;overflow:auto;padding:24px 20px}
.assistants-message{max-width:min(760px,88%);padding:13px 15px;border:1px solid var(--line);border-radius:11px;background:#f6f8f8;overflow-wrap:anywhere}
.assistants-message.is-user{align-self:flex-end;background:#e7f5f2;border-color:#c7e7e0}
.assistants-message.is-assistant{align-self:flex-start}
.assistants-message p{margin:0;white-space:pre-wrap;font-size:13px;line-height:1.55}
.assistants-message small{display:block;margin-top:8px;color:var(--muted);font-size:10px}
.assistants-sources{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.assistants-sources span{padding:4px 6px;background:#fff;border:1px solid #d9e4e1;border-radius:5px;color:#49645f;font-size:10px}
.assistants-composer{padding:15px 20px 18px;border-top:1px solid var(--line)}
.assistants-composer label{display:block;margin-bottom:7px;font-size:12px;font-weight:700}
.assistants-composer textarea{display:block;width:100%;min-height:86px;max-height:220px;resize:vertical;padding:10px 12px;border:1px solid #ccd7d8;border-radius:8px;background:#fff;color:var(--ink);font:13px/1.5 Golos,Arial,sans-serif}
.assistants-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.assistants-composer-footer small{color:var(--muted);font-size:11px;line-height:1.4}
.assistants-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:10px 12px;border:1px solid #e5d6bd;border-radius:7px;background:#fff8eb;color:#6d5125;font-size:12px;line-height:1.4}
.assistants-empty{display:grid;place-content:center;gap:8px;flex:1;min-height:280px;padding:30px;text-align:center;color:var(--muted)}
.assistants-empty strong{color:var(--ink);font-size:16px}.assistants-empty p{margin:0;font-size:13px;line-height:1.5}
.assistants-state{display:grid;place-items:center;min-height:calc(100vh - 120px)}.assistants-state-card{width:min(100%,430px);padding:28px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow)}
.assistants-state-card h1{margin:0 0 10px;font-size:24px}.assistants-state-card p{color:var(--muted);font-size:13px;line-height:1.5}.assistants-state-card label{display:block;margin:18px 0 12px;font-size:12px;font-weight:700}.assistants-state-card input{display:block;width:100%;margin-top:7px;padding:10px;border:1px solid #cbd6d8;border-radius:7px}
.assistants-state-card .button{width:100%}
.assistants-error{color:#a23732!important}
.assistants-chat-page textarea:focus-visible{outline:3px solid rgba(11,143,129,.35);outline-offset:2px}
.assistants-chat-page button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:1000px){.assistants-grid{grid-template-columns:minmax(215px,260px) minmax(0,1fr)}}
@media(max-width:700px){.assistants-chat-page .app-shell{display:block}.assistants-chat-page .sidebar{position:static;width:auto;height:auto;min-height:0;padding:10px 14px}.assistants-chat-page .sidebar .brand{padding:7px 5px;border:0}.assistants-chat-page .sidebar .nav,.assistants-chat-page .sidebar-foot,.assistants-chat-page .topbar{display:none}.assistants-chat-page .workspace{display:block}.assistants-chat-page .content{padding:20px 14px 30px}.assistants-head{align-items:flex-start}.assistants-head h1{font-size:24px}.assistants-badge{font-size:10px}.assistants-grid{display:flex;flex-direction:column;min-height:0}.assistants-list{max-height:220px}.assistants-list-body{min-height:60px}.assistants-thread{min-height:520px}.assistants-messages{min-height:270px;padding:17px 13px}.assistants-thread header,.assistants-composer{padding-left:13px;padding-right:13px}.assistants-message{max-width:94%}.assistants-composer-footer{align-items:flex-end}.assistants-composer-footer small{max-width:54%}.assistants-state{min-height:calc(100vh - 110px)}}
