.assistant-shell{max-width:900px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;height:calc(100dvh - 150px);min-height:430px}
.assistant-header{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line)}
.assistant-header-icon,.assistant-welcome-icon{display:grid;place-items:center;background:linear-gradient(145deg,#23bea3,#078d80);color:#fff;border-radius:50%;flex-shrink:0}
.assistant-header-icon{width:44px;height:44px}.assistant-header-icon svg{width:30px;height:30px}
.assistant-header h1{margin:0;font-size:22px;letter-spacing:-.5px}.assistant-header p{margin:2px 0 0;color:var(--muted);font-size:12px}
.assistant-header #assistantNew{margin-left:auto;border:1px solid var(--line);border-radius:10px;background:#fff;padding:9px 12px;color:var(--ink)}
.assistant-history{padding:9px 22px;background:#fbfcfd;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px}
.assistant-history select{min-width:0;flex:1;border:0;background:transparent;color:var(--ink);font:inherit;font-size:12px;padding:5px}
.assistant-messages{flex:1;min-height:0;overflow:auto;padding:24px;overscroll-behavior:contain}
.assistant-welcome{text-align:center;max-width:430px;margin:clamp(20px,8vh,90px) auto 30px;color:var(--muted);line-height:1.7}
.assistant-welcome-icon{width:74px;height:74px;margin:auto;box-shadow:0 10px 30px #159b8230}.assistant-welcome-icon svg{width:47px;height:47px}
.assistant-welcome h2{color:var(--ink);font-size:23px;letter-spacing:-.5px;line-height:1.25}
.assistant-message{max-width:94%;margin-bottom:20px;padding:16px 18px;border-radius:18px;background:#f4f7f9}
.assistant-message-user{margin-left:auto;max-width:85%;background:#e9f7f2;border-bottom-right-radius:5px}
.assistant-message-assistant{border-bottom-left-radius:5px;background:#f7f9fc}
.assistant-speaker{font-size:11px;color:#168772;display:block;margin-bottom:7px}
.assistant-message-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.75}
.assistant-thinking{padding:0 24px 9px;color:#198775;font-size:12px}.assistant-thinking[hidden]{display:none}
.assistant-composer{padding:12px 20px 16px;border-top:1px solid var(--line);background:#fff}
.assistant-composer form{display:flex;align-items:flex-end;gap:10px;border:1px solid #dce7e5;border-radius:17px;padding:10px;background:#fbfdfc}
.assistant-composer textarea{flex:1;min-width:0;border:0;resize:none;background:transparent;font:inherit;color:var(--ink);outline:none;min-height:48px;max-height:130px;padding:8px 6px}
.assistant-send{width:44px;height:44px;border:0;border-radius:13px;background:var(--teal);color:#fff;font-size:22px;flex-shrink:0}
.assistant-send:disabled{opacity:.5}.assistant-status{font-size:12px;color:#a14e32;min-height:0;margin-top:7px}.assistant-status:empty{display:none}
.assistant-artifact{margin-top:17px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:15px}
.assistant-artifact h3{margin:0;font-size:14px}.assistant-artifact-period,.assistant-artifact-basis{font-size:10px;color:var(--muted);line-height:1.5}
.assistant-chart{display:grid;gap:14px;padding:14px 0}.assistant-chart-row{display:grid;grid-template-columns:85px minmax(0,1fr);gap:9px;align-items:start}
.assistant-chart-label{font-size:11px;overflow-wrap:anywhere}.assistant-chart-bars small{display:block;font-size:10px;color:var(--muted);margin:3px 0 6px}
.assistant-bar{height:12px;border-radius:4px;background:#315d78;max-width:100%}.assistant-bar-income{background:#159b82}
.assistant-table-wrap{overflow:auto}.assistant-table{border-collapse:collapse;width:100%;font-size:11px}.assistant-table th,.assistant-table td{text-align:left;padding:8px 7px;border-bottom:1px solid var(--line);white-space:nowrap}.assistant-table th{color:var(--muted)}
.assistant-pdf{border:0;border-radius:9px;padding:10px 13px;background:#edf7f4;color:#18816e;font-weight:650}
html.pwa-standalone .pwa-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
html.pwa-standalone .pwa-bottom-nav .pwa-assistant-tab{overflow:visible;color:#15314a;gap:2px}
.pwa-assistant-symbol{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;color:white;background:linear-gradient(145deg,#26c3aa,#078b80);box-shadow:0 5px 20px #159b8240;border:4px solid #f5faf9;margin-top:-26px}
.pwa-assistant-symbol svg{width:30px;height:30px}.pwa-assistant-tab.active .pwa-assistant-symbol{box-shadow:0 0 0 3px #c6ede5,0 5px 20px #159b8240}
.nav [data-view="assistant"] .ico svg{width:19px;height:19px;display:block}
html.pwa-standalone body.assistant-keyboard .pwa-bottom-nav{display:none}
html.pwa-standalone body.assistant-keyboard #view-assistant .assistant-shell{height:calc(var(--assistant-viewport-height,100dvh) - 88px);min-height:180px}
@media(max-width:720px){.assistant-shell{height:calc(100dvh - 112px);min-height:350px;border-radius:18px}.assistant-header{padding:14px}.assistant-history{padding:7px 14px}.assistant-messages{padding:16px 12px}.assistant-composer{padding:10px 12px}.assistant-message{max-width:98%;padding:14px}.assistant-message-text{font-size:14px}.assistant-header h1{font-size:20px}.assistant-header p{font-size:11px}.assistant-header #assistantNew{font-size:11px;padding:8px}html.pwa-standalone #view-assistant .assistant-shell{height:calc(100dvh - 151px - env(safe-area-inset-bottom));min-height:260px}html.pwa-standalone .content:has(#view-assistant.active){padding-top:12px;padding-bottom:90px}.assistant-chart-row{grid-template-columns:65px minmax(0,1fr)}}

.assistant-history-list{border-bottom:1px solid var(--line);background:#fbfcfd;padding:8px 14px;color:var(--ink);font-size:12px;flex-shrink:0}.assistant-history-list summary{cursor:pointer;padding:4px}.assistant-history-rows{max-height:180px;overflow-y:auto;margin-top:6px}.assistant-history-row{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line)}.assistant-history-row button{border:0;background:transparent;cursor:pointer;color:var(--ink)}.assistant-history-open{flex:1;text-align:left;min-width:0;padding:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.assistant-history-row .assistant-history-delete{color:#ba3a48;font-size:24px;width:44px;height:44px;flex-shrink:0;border-radius:10px}.assistant-history-delete:hover{background:#fff0f1}.assistant-history-row button:disabled{opacity:.45;cursor:wait}
