/* SAVA approved mobile polish — no structural API or business logic changes */
:root{--sava-ui-accent:#078457;--sava-ui-deep:#0c4333;--sava-ui-border:#e5ede8;--sava-ui-muted:#74827a}
#chatView .chat-top{gap:8px;display:flex;flex-wrap:wrap;padding:11px clamp(14px,3.5vw,26px);border:0;align-items:center}
#chatView .chat-top #expert{
 position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;
 padding:0!important;margin:0!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;
 border:0!important;opacity:0!important;pointer-events:none!important
}
#chatView .chat-top #savaExpertSearchToggle,#chatView .chat-top #specialtySearch{display:none!important}
#chatView .chat-top .sava-specialist-trigger{
 width:min(100%,500px);max-width:500px;min-height:52px;display:flex;align-items:center;gap:10px;
 padding:8px 15px;border-radius:16px;border:1px solid #cbded3;
 color:#17392e;background:linear-gradient(140deg,#fff 40%,#f7fbf8);
 box-shadow:0 2px 10px rgba(14,81,51,.03);cursor:pointer;transition:.16s ease;
 text-align:left;font-size:14px;font-weight:600
}
#chatView .chat-top .sava-specialist-trigger:hover,#chatView .chat-top .sava-specialist-trigger:focus-visible{
 border-color:#0a975f;box-shadow:0 4px 22px rgba(16,113,75,.11);outline:none
}
#chatView .chat-top .sava-specialist-trigger:active{transform:scale(.991)}
.sava-specialist-trigger .sava-trigger-mark{color:#0b9664;width:23px;display:grid;place-items:center;flex:none}
.sava-specialist-trigger .sava-trigger-mark svg{width:22px;height:22px;fill:#0b96641a}
.sava-specialist-trigger .sava-specialist-caption{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sava-specialist-trigger .sava-trigger-chevron{flex:none;display:grid;place-items:center;color:#70877b}
.sava-specialist-trigger .sava-trigger-chevron svg{width:18px;height:18px}
#chatView .chat-top .mode-setting{margin-left:auto}
#savaUiSettingsButton{width:40px!important;min-width:40px!important;height:40px!important;
 border-radius:13px!important;border:1px solid #e7ede9!important;
 background:#fff!important;color:#244838!important;display:inline-flex!important;
 align-items:center;justify-content:center;padding:0!important;
 box-shadow:0 2px 8px #173f2510!important;transition:transform .16s ease,background .16s ease!important}
#savaUiSettingsButton svg{width:22px;height:22px;stroke-width:1.8}
#savaUiSettingsButton:active{transform:scale(.94)}
#savaUiSettingsButton:hover{background:#edf7f0!important}
.top .mobile-menu{border:1px solid #e8efea!important;background:#fff!important;border-radius:13px!important;
 width:42px!important;height:42px!important;min-width:42px!important;display:inline-grid!important;place-items:center;padding:0!important;color:#23382f!important}
.top .mobile-menu svg{width:23px;height:23px;pointer-events:none}
#chatView .composer{border-radius:24px;border:1px solid #e1eae3;box-shadow:0 6px 26px #173a2210;transition:.15s ease}
#chatView .composer:focus-within{border-color:#9dccb1;box-shadow:0 7px 24px #065e3719}
#chatView .composer #send{width:46px!important;height:46px!important;min-width:46px!important;
 border:0!important;border-radius:50%!important;padding:0!important;display:grid!important;
 place-items:center;background:linear-gradient(145deg,#11ad72,#047247 83%)!important;
 box-shadow:0 4px 12px #097f5055, inset 0 1px 1px #ffffff75!important;
 transition:transform .18s ease,filter .18s ease!important;cursor:pointer}
#chatView .composer #send svg{width:22px;height:22px;stroke:#fff;stroke-width:2;fill:none;transform:translate(1px,-1px)}
#chatView .composer #send:hover:not(:disabled){filter:brightness(1.07);transform:translateY(-1px)}
#chatView .composer #send:active:not(:disabled){transform:scale(.9)}
#chatView .composer #send:disabled{opacity:.5;box-shadow:none!important}
#chatView .sava-tools-row>.btn{border-radius:12px;transition:background .12s ease,transform .12s ease}
#chatView .sava-tools-row>.btn:active{transform:scale(.92)}
#chatView .welcome{gap:14px}
#chatView .welcome h2{font-weight:680;letter-spacing:-.03em}
#chatView .welcome .suggestion-wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:min(100%,620px);margin:12px auto}
#chatView .welcome .suggestion{display:flex;align-items:center;gap:8px;
 min-height:58px;padding:11px!important;border:1px solid #e6ede8!important;
 border-radius:15px!important;background:#fff!important;
 box-shadow:0 2px 14px #172d2110;color:#294536!important;font-size:12px!important;
 text-align:left;white-space:normal;line-height:1.4;transition:.16s ease}
#chatView .welcome .suggestion:hover{border-color:#bad7c5!important;box-shadow:0 5px 16px #145a2e20;transform:translateY(-1px)}
#chatView .welcome .suggestion:active{transform:scale(.98)}
.sava-prompt-mark{flex:none;display:grid;place-items:center;width:32px;height:32px;
 border-radius:11px;background:#edf8f1;color:#05875a}
.sava-prompt-mark svg{width:19px;height:19px;stroke-width:2}
.sava-prompt-end{margin-left:auto;color:#8e9f96;display:flex;align-items:center}
.sava-prompt-end svg{width:15px;height:15px}
body:has(#savaSpecialistSheet){overscroll-behavior:none}
.sava-specialist-overlay{position:fixed;inset:0;z-index:210000;display:flex;align-items:center;
 justify-content:center;padding:20px;color:#193a2c}
.sava-specialist-backdrop{position:absolute;inset:0;background:#102b20a8;backdrop-filter:blur(5px)}
.sava-specialist-sheet{position:relative;display:flex;flex-direction:column;width:min(96vw,560px);
 max-height:min(89dvh,820px);min-height:300px;padding:17px 18px 12px;
 background:#fff;border:1px solid #e2ece5;border-radius:27px;
 box-shadow:0 24px 70px #081b1561;overflow:hidden;animation:savaSheetEnter .2s ease both}
@keyframes savaSheetEnter{from{opacity:.7;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.sava-sheet-handle{display:none;width:44px;height:5px;border-radius:6px;background:#d0d6d2;margin:0 auto 15px}
.sava-specialist-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.sava-specialist-head h2{font-size:22px;line-height:1.2;margin:0;font-weight:740;letter-spacing:-.03em}
.sava-sheet-close{width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:12px;
 background:#f0f4f1;color:#3e5749;cursor:pointer}
.sava-sheet-close svg{width:19px;height:19px}
.sava-sheet-search{display:flex;align-items:center;gap:10px;background:#f3f5f4;
 padding:0 14px;border-radius:14px;height:48px;flex:none;margin:0 0 9px;color:#718078}
.sava-sheet-search svg{width:20px;height:20px}
.sava-sheet-search input{background:transparent;flex:1;min-width:0;border:0;outline:0;
 color:#1d3c2f;font-size:15px;font-family:inherit}
.sava-specialist-list{overflow-y:auto;overscroll-behavior:contain;min-height:0;
 padding:2px 3px 14px;scrollbar-width:thin}
.sava-specialist-option{width:100%;display:flex;align-items:center;gap:11px;
 min-height:69px;padding:11px 12px;margin:5px 0;border:1px solid #e9efea;
 border-radius:15px;background:#fff;color:#234031;cursor:pointer;text-align:left;
 box-shadow:0 2px 10px #16352307;transition:.15s ease}
.sava-specialist-option:hover{border-color:#b8d9c7;background:#f9fcfa}
.sava-specialist-option:active{transform:scale(.99)}
.sava-specialist-option.is-selected{border-color:#0c9d64;background:#f0faf3}
.sava-role-mark,.sava-group-mark{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;
 color:#09774e;background:#edf7f1;flex:none}
.sava-role-mark svg,.sava-group-mark svg{width:21px;height:21px}
.sava-specialist-option.is-selected .sava-role-mark{background:#d8f1e3}
.sava-role-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.sava-role-copy strong{font-size:14px;font-weight:650;line-height:1.25;white-space:normal}
.sava-role-copy small{font-size:12px;color:#839289;line-height:1.3}
.sava-choice-circle{width:22px;height:22px;border:2px solid #9baa9e;flex:none;border-radius:50%;
 display:grid;place-items:center}
.sava-specialist-option.is-selected .sava-choice-circle{border-color:#078451}
.sava-specialist-option.is-selected .sava-choice-circle:after{content:"";width:11px;height:11px;border-radius:50%;background:#078451}
.sava-specialist-group-title{width:100%;display:flex;align-items:center;gap:11px;text-align:left;
 border:0;background:transparent;color:#1e342b;font-weight:700;font-size:15px;
 padding:12px 4px 7px;cursor:pointer}
.sava-group-mark{width:30px;height:30px}
.sava-group-mark svg{width:17px;height:17px}
.sava-group-name{flex:1}
.sava-group-chevron{color:#7e9184;display:flex}
.sava-group-chevron svg{width:17px;height:17px;transform:rotate(180deg)}
.sava-specialist-group-title[aria-expanded=false] .sava-group-chevron svg{transform:rotate(0)}
.sava-sheet-empty{color:#738579;padding:25px;text-align:center}
@media(max-width:650px){
 #chatView .chat-top{padding:9px 14px 4px!important}
 #chatView .chat-top .sava-specialist-trigger{width:100%!important;max-width:none;
 border-radius:16px;min-height:54px;padding:10px 14px}
 #chatView .chat-top .mode-setting{display:none}
 #chatView .welcome .suggestion-wrap{gap:8px}
 #chatView .welcome .suggestion{font-size:11px!important;padding:10px 7px!important;min-height:60px}
 #chatView .composer #send{width:44px!important;height:44px!important;min-width:44px!important}
 .sava-specialist-overlay{padding:0;align-items:flex-end}
 .sava-specialist-sheet{width:100vw;max-height:93dvh;height:min(93dvh,900px);padding:14px 14px 0;
 border-radius:27px 27px 0 0;border-bottom:0;animation:savaSheetMobile .2s ease both}
 @keyframes savaSheetMobile{from{transform:translateY(20px);opacity:.8}to{transform:translateY(0);opacity:1}}
 .sava-sheet-handle{display:block}
 .sava-specialist-head h2{font-size:21px}
 .sava-specialist-option{min-height:68px;padding:10px 11px}
 .sava-specialist-list{padding-bottom:max(22px,env(safe-area-inset-bottom))}
}
:root[data-sava-theme=night] .sava-specialist-trigger{background:#21372c!important;color:#e7f4ea!important}
:root[data-sava-theme=night] .sava-specialist-sheet{background:#172720;color:#edf7ef}
:root[data-sava-theme=night] .sava-specialist-head h2,
:root[data-sava-theme=night] .sava-specialist-option,
:root[data-sava-theme=night] .sava-specialist-group-title{color:#eaf7ed}
:root[data-sava-theme=night] .sava-specialist-option{background:#22362b;border-color:#3a5944}
:root[data-sava-theme=night] .sava-specialist-option.is-selected{background:#28513a;border-color:#41ad77}
:root[data-sava-theme=night] .sava-sheet-search{background:#304038}
:root[data-sava-theme=night] .sava-sheet-search input{color:#f2fff4}
