.assistant-heading{display:flex;justify-content:space-between;align-items:center;gap:22px;margin:4px 0 25px}.assistant-heading h1{font-size:38px;letter-spacing:-1.7px;line-height:1.18;margin:10px 0 12px}.assistant-heading h1 span{color:#e32d2a}.assistant-heading p{font-size:12px;color:var(--muted);max-width:680px;margin:0}.assistant-mode{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:10px;color:var(--muted);white-space:nowrap}.assistant-mode svg{width:15px;height:15px}.assistant-mode.ready{color:var(--green);border-color:#44956c66}.assistant-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:22px;background:var(--panel)}.assistant-metrics>div{padding:17px 22px;border-right:1px solid var(--line)}.assistant-metrics>div:last-child{border:0}.assistant-metrics span{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);gap:12px}.assistant-metrics svg{width:16px;height:16px}.assistant-metrics b{font-size:29px;display:block;margin-top:9px;line-height:1.15;letter-spacing:-1px}.assistant-workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}.assistant-chat{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}.assistant-chat-head{display:flex;align-items:center;gap:12px;padding:20px 23px;border-bottom:1px solid var(--line)}.assistant-emblem{width:38px;height:38px;background:#e32d2a;color:white;border-radius:11px;display:grid;place-items:center;font-weight:700;font-size:12px;position:relative}.assistant-emblem span{position:absolute;right:-4px;top:-8px;color:#f37370;font-size:22px}.assistant-chat-head h2{font-size:13px;margin:0 0 5px}.assistant-chat-head small{color:var(--muted);font-size:9px}.assistant-chat-head>.ghost{margin-left:auto;font-size:10px;white-space:nowrap}.assistant-thread{padding:24px;min-height:400px;max-height:610px;overflow-y:auto;scrollbar-width:thin}.assistant-welcome{padding:18px 2px 4px}.assistant-kicker{font-size:9px;letter-spacing:1.4px;color:#e32d2a;font-weight:600}.assistant-welcome h2{font-size:28px;line-height:1.22;letter-spacing:-1px;margin:14px 0}.assistant-welcome>p{font-size:12px;color:var(--muted);max-width:490px;line-height:1.8;margin:0 0 24px}.assistant-prompts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.assistant-prompts button{display:flex;gap:11px;align-items:center;text-align:left;font-size:11px;line-height:1.5;padding:15px 13px;background:var(--bg);border:1px solid var(--line);border-radius:9px;min-height:78px}.assistant-prompts button>span{display:flex;color:#e32d2a}.assistant-prompts button>svg{margin-left:auto;min-width:13px;width:13px;height:13px;color:var(--muted)}.assistant-compose{padding:18px 23px 17px;border-top:1px solid var(--line)}.assistant-input-label{font-size:0;height:0;overflow:hidden}.assistant-input-row{display:flex;align-items:flex-end;gap:10px;border:1px solid var(--line);border-radius:12px;background:var(--bg);padding:10px}.assistant-compose textarea{resize:vertical;min-height:54px;max-height:160px;width:100%;border:0;background:transparent;color:var(--text);font-family:inherit;font-size:12px;line-height:1.6;padding:4px;outline:none}.assistant-compose .primary{width:41px;height:41px;display:grid;place-items:center;border-radius:9px;flex:none}.assistant-compose>small{font-size:9px;color:var(--muted);display:block;line-height:1.5;margin-top:9px}.assistant-message{display:flex;gap:11px;margin-bottom:24px}.assistant-message-mark{flex:none;display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#e32d2a;color:#fff;font-size:9px;font-weight:700}.assistant-message.user .assistant-message-mark{background:var(--line);color:var(--text)}.assistant-message-content{flex:1;min-width:0}.assistant-speaker{font-size:9px;color:var(--muted);display:block;padding:6px 0 10px}.assistant-answer{white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.85}.assistant-message.user .assistant-answer{background:var(--bg);border:1px solid var(--line);padding:12px 15px;border-radius:0 12px 12px}.assistant-answer-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.assistant-answer-actions button{font-size:10px;padding:7px 9px;display:flex;align-items:center;gap:7px;background:var(--panel)}.assistant-answer-actions svg{width:13px;height:13px}.assistant-sources{margin-top:15px;border:1px solid var(--line);border-radius:8px;font-size:10px;color:var(--muted);padding:10px 12px}.assistant-sources summary{cursor:pointer;color:var(--text)}.assistant-sources>div{padding:10px 0;border-top:1px solid var(--line);margin-top:9px}.assistant-sources b,.assistant-sources small,.assistant-sources span{display:block;margin:3px 0}.assistant-sources small{font-size:9px}.assistant-wait{display:flex;align-items:center;gap:12px;padding:10px;color:var(--muted)}.assistant-wait b,.assistant-wait small{display:block;font-size:11px;margin:5px 0}.assistant-wait small{font-size:10px}.assistant-error{border:1px solid #c35e6266;background:#c35e6211;color:var(--red);padding:16px;border-radius:9px;font-size:12px;line-height:1.7;margin-top:12px}.assistant-context{display:grid;gap:17px}.assistant-context .panel{margin:0;border-radius:12px}.assistant-context .panel-title{padding:18px 18px 14px;margin:0}.assistant-context h2{font-size:12px;margin:0}.assistant-context .panel-title>span{font-size:10px;color:var(--muted)}.assistant-priorities>button{display:flex;align-items:flex-start;text-align:left;width:100%;padding:15px 18px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;gap:6px}.assistant-priorities>button>div{flex:1}.assistant-priorities>button>b{font-size:11px}.assistant-priorities b small{font-weight:400;font-size:9px;display:block;color:var(--muted);margin-top:4px}.assistant-priorities .dot{margin-top:5px;flex:none}.assistant-priorities .dot.critical{background:var(--red)}.assistant-priorities .dot.warning{background:var(--amber)}.assistant-priorities p{font-size:10px;line-height:1.6;color:var(--muted);margin:8px 0 0}.assistant-priorities>small{display:block;padding:13px 18px;border-top:1px solid var(--line);color:var(--muted);font-size:9px}.assistant-tickets article{padding:14px 18px;border-top:1px solid var(--line)}.assistant-tickets article>div{display:flex;justify-content:space-between;align-items:center;gap:8px}.assistant-tickets article b{font-size:11px}.assistant-tickets article p{font-size:11px;line-height:1.65;margin:9px 0}.assistant-tickets article small{color:var(--muted);font-size:9px}.assistant-ticket-empty{font-size:11px;color:var(--muted);line-height:1.8;padding:15px 18px 25px}.assistant-tickets .assistant-add-ticket{font-size:10px;width:calc(100% - 30px);margin:0 15px 15px;background:transparent;display:flex;justify-content:center;align-items:center;gap:7px}.assistant-ticket-actions button{font-size:9px;margin-top:10px;padding:5px 8px;background:transparent}.assistant-note{display:flex;gap:9px;padding:0 7px}.assistant-note svg{width:15px;height:15px;flex:none;color:var(--muted);margin-top:2px}.assistant-note p{font-size:9px;line-height:1.8;color:var(--muted);margin:0}#assistant-ticket-form label{margin-bottom:16px}#assistant-ticket-form textarea{width:100%;display:block;margin-top:7px;resize:vertical;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:12px;font-family:inherit;font-size:12px;line-height:1.7}.light .assistant-prompts button,.light .assistant-input-row,.light .assistant-message.user .assistant-answer{background:#f7f8fa}.light .assistant-context .panel,.light .assistant-chat{background:#fff}@media(min-width:1600px){.assistant-workspace{grid-template-columns:minmax(0,1fr) 320px}.assistant-thread{min-height:440px}.assistant-heading h1{font-size:43px}.assistant-chat-head{padding:23px 28px}.assistant-thread{padding:28px 32px}.assistant-compose{padding:20px 28px}}@media(max-width:1000px){.assistant-workspace{grid-template-columns:1fr}.assistant-context{grid-template-columns:1fr 1fr}.assistant-context .assistant-note{grid-column:1/-1}.assistant-heading{align-items:flex-start}.assistant-heading h1{font-size:31px}.assistant-metrics>div{padding:15px}.assistant-mode{font-size:9px}}@media(max-width:600px){.assistant-heading{display:block}.assistant-mode{display:inline-flex;margin-top:15px}.assistant-heading h1{font-size:29px}.assistant-metrics{grid-template-columns:1fr 1fr}.assistant-metrics>div:nth-child(2){border-right:0}.assistant-metrics>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.assistant-chat-head{padding:16px;gap:9px}.assistant-chat-head small{font-size:8px}.assistant-chat-head>.ghost{font-size:8px;padding:5px}.assistant-thread{padding:18px;min-height:350px}.assistant-prompts{grid-template-columns:1fr}.assistant-prompts button{min-height:58px}.assistant-welcome h2{font-size:25px}.assistant-context{grid-template-columns:1fr}.assistant-compose{padding:15px}.assistant-message{gap:8px}.assistant-message-mark{width:24px;height:24px;font-size:8px}}

/* Reading layout: reserve the height for answers, keep the composer compact. */
.assistant-chat{display:flex;flex-direction:column;height:clamp(660px,80dvh,960px)}
.assistant-chat-head{padding:15px 22px;flex:none;flex-wrap:wrap}
.assistant-head-actions{margin-left:auto;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.assistant-head-actions .ghost{font-size:11px;white-space:nowrap}
.assistant-thread{flex:1;min-height:0;height:auto;max-height:none;padding:24px 28px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.assistant-answer{font-size:15px;line-height:1.85}
.assistant-speaker{font-size:10px}
.assistant-message.user{width:100%;max-width:none;padding:0;border:0;margin:0 0 24px;align-items:flex-start}
.assistant-message-content{width:100%}
.assistant-compose{padding:12px 18px;flex:none}
.assistant-input-row{gap:10px;padding:7px 9px}
.assistant-compose textarea{height:52px;min-height:52px;max-height:132px;resize:none;margin:0;font-size:14px;line-height:1.6;overflow-y:auto}
.assistant-compose-foot{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin-top:8px}
.assistant-compose-foot>small{flex:1;min-width:180px;color:var(--muted);font-size:9px;line-height:1.5}
.assistant-compose-foot .assistant-import-button{font-size:10px;padding:6px 9px;margin:0;white-space:nowrap}
.assistant-page.reader-wide .assistant-heading,.assistant-page.reader-wide .assistant-metrics,.assistant-page.reader-wide .assistant-context{display:none}
.assistant-page.reader-wide .assistant-workspace{grid-template-columns:minmax(0,1fr)}
.assistant-page.reader-wide .assistant-chat{height:calc(100dvh - 160px);min-height:440px}
.assistant-page.reader-wide .assistant-message-content{max-width:1180px}
@media(max-width:1000px){.assistant-chat{height:clamp(620px,82dvh,900px)}.assistant-page.reader-wide .assistant-chat{height:calc(100dvh - 140px);min-height:420px}}
@media(max-width:600px){.assistant-chat-head{padding:12px;gap:8px}.assistant-head-actions{width:100%;justify-content:space-between}.assistant-head-actions .ghost{font-size:10px;padding:7px}.assistant-thread{padding:18px 14px}.assistant-chat{height:76dvh;min-height:520px}.assistant-compose{padding:10px 12px}.assistant-answer{font-size:14px}.assistant-compose-foot>small{font-size:9px}.assistant-page.reader-wide .assistant-chat{height:calc(100dvh - 110px);min-height:420px}}

.main:has(.assistant-page.reader-wide) .topbar{display:none}
.content:has(.assistant-page.reader-wide){padding-top:16px;padding-bottom:12px}
.assistant-page.reader-wide .assistant-chat{height:calc(100dvh - 108px)}
@media(max-width:600px){.assistant-page.reader-wide .assistant-chat{height:calc(100dvh - 110px)}}

.assistant-page.reader-wide .assistant-answer{font-size:16px;line-height:1.8}

.fuel-panel{margin:0 0 20px;padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.fuel-panel h2{margin:0 0 6px}.fuel-panel p,.fuel-panel small{color:var(--muted);font-size:12px}
.fuel-panel form{display:grid;grid-template-columns:minmax(200px,2fr) 1fr 1fr auto auto;align-items:end;gap:12px;margin-bottom:10px}
.fuel-panel input[type=date]{min-height:41px}.fuel-panel .fuel-refresh{display:flex;align-items:center;gap:6px;min-height:41px;white-space:nowrap}.fuel-refresh input{width:16px;margin:0}
.fuel-report{margin:16px 0;max-width:100%;overflow:hidden}.fuel-source{font-size:12px;color:var(--muted);margin:12px 0}.fuel-sensor{border:1px solid var(--line);border-radius:9px;margin:10px 0;padding:12px}.fuel-sensor summary{cursor:pointer;font-weight:600;line-height:1.6}.fuel-sensor td,.fuel-sensor th{width:auto!important;padding:8px!important}.fuel-sensor .table-wrap{max-height:360px;overflow:auto}.fuel-method{font-size:12px;color:var(--muted)}.fuel-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.fuel-memory{border-top:1px solid var(--line);padding-top:16px}.fuel-memory small{display:block;color:var(--muted);line-height:1.6}.fuel-memory article{padding:12px 0;border-bottom:1px solid var(--line)}.fuel-memory p{white-space:pre-wrap}.fuel-memory h3{margin-bottom:8px}
.assistant-page.reader-wide .fuel-panel{display:none}
@media(max-width:1100px){.fuel-panel form{grid-template-columns:1fr 1fr}.fuel-panel form>label:first-child{grid-column:1/-1}}@media(max-width:600px){.fuel-panel form{grid-template-columns:1fr}.fuel-panel form>label:first-child{grid-column:auto}}

.dialogue-context{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border:1px solid var(--line);background:var(--panel);padding:12px 16px;border-radius:10px;margin-bottom:12px;font-size:12px}.dialogue-context button{margin-left:auto}.knowledge-correct{margin:12px 0;font-size:12px}.knowledge-sources{margin:10px 0;font-size:12px}.knowledge-library{max-height:65vh;overflow:auto}.knowledge-library article,.knowledge-library details{border:1px solid var(--line);border-radius:9px;padding:12px;margin:10px 0}.knowledge-library small{display:block;color:var(--muted);margin:5px 0}.knowledge-library p{white-space:pre-wrap}.knowledge-library summary{cursor:pointer;font-weight:600}

.assistant-wait button{margin-left:auto;white-space:nowrap}.assistant-suggestions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.assistant-suggestions button,.assistant-error button{padding:8px 12px;border:1px solid var(--line);border-radius:8px}.assistant-error button{margin-left:12px}

.customer-assistant{max-width:1120px;margin:0 auto}.customer-assistant-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.customer-assistant-title h1{font-size:28px;margin:0 0 8px}.customer-assistant-title p{color:var(--muted);margin:0;line-height:1.6;font-size:14px}.customer-assistant-title button{white-space:nowrap}.customer-assistant-selection{display:grid;grid-template-columns:minmax(230px,2fr) 1fr 1fr;gap:12px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.customer-assistant-selection label{min-width:0;font-size:12px}.customer-assistant-selection input,.customer-assistant-selection select{width:100%;min-width:0}.customer-assistant-selection small{grid-column:1/-1;color:var(--muted);font-size:11px;line-height:1.5}.customer-assistant-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.customer-assistant-quick button{display:grid;grid-template-columns:1fr auto;gap:5px 12px;text-align:left;padding:16px;border-radius:12px;background:var(--panel)}.customer-assistant-quick b{font-size:16px}.customer-assistant-quick span{color:var(--muted);font-size:12px;grid-column:1}.customer-assistant-quick svg{grid-column:2;grid-row:1/3;width:18px;align-self:center}.customer-assistant .assistant-chat{height:clamp(440px,60dvh,720px);min-height:440px}.customer-assistant .assistant-chat-head h2{font-size:14px}.customer-assistant .assistant-chat-head{padding:12px 18px}.customer-assistant .assistant-thread{padding:18px 22px}.customer-assistant .assistant-answer{font-size:14px;line-height:1.75}.customer-assistant .assistant-answer-actions .primary{background:#dc252c;color:white;border-color:#dc252c;font-size:12px;padding:10px 13px}.customer-assistant-welcome{padding:25px 0;max-width:580px}.customer-assistant-welcome h2{font-size:24px;margin:0 0 12px}.customer-assistant-welcome p{color:var(--muted);font-size:14px;line-height:1.7}.customer-answer-details{margin:12px 0;color:var(--muted);font-size:12px}.customer-answer-details summary{cursor:pointer}.customer-answer-details button{margin-top:10px}.customer-assistant-hint{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:9px}.customer-assistant-tickets,.customer-assistant-help{padding:14px 18px;margin-top:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);font-size:13px}.customer-assistant-tickets summary,.customer-assistant-help summary{cursor:pointer;font-weight:600}.customer-assistant-tickets>button{margin-top:12px}.customer-assistant-tickets article{padding:12px 0;border-bottom:1px solid var(--line)}.customer-assistant-tickets article>div{display:flex;justify-content:space-between;gap:12px}.customer-assistant-tickets article span,.customer-assistant-tickets small{color:var(--muted)}.customer-assistant-help .dialogue-context{margin-top:14px}.customer-assistant .assistant-answer-actions button{max-width:100%}@media(max-width:700px){.customer-assistant-title{align-items:flex-start;flex-direction:column;gap:12px}.customer-assistant-selection{grid-template-columns:1fr 1fr}.customer-assistant-selection label:first-child{grid-column:1/-1}.customer-assistant-quick{gap:7px}.customer-assistant-quick button{padding:12px}.customer-assistant-quick span{font-size:10px}.customer-assistant-quick svg{display:none}.customer-assistant-quick b{font-size:14px}.customer-assistant .assistant-chat{height:64dvh;min-height:440px}.customer-assistant .assistant-thread{padding:16px 12px}.customer-assistant .assistant-head-actions{width:auto}}
