/* Sepid Sazeh v1.13.225 — consistent with white/green and dark themes */
.sh-main{max-width:1000px;margin-inline:auto;display:flex;flex-direction:column;gap:14px;padding:19px}
.sh-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;border-bottom:1px solid var(--line);padding-bottom:14px}
.sh-header strong{font-size:1.1rem;color:var(--text)}.sh-subtitle{font-size:.85rem;opacity:.72;margin-top:4px}
.sh-badge{font-size:.78rem;border-radius:99px;padding:6px 10px;background:var(--surface2);border:1px solid var(--line)}
.sh-badge.sh-live{color:#13875c}.sh-badge.sh-offline{color:var(--muted)}
.sh-history{min-height:180px;max-height:510px;overflow:auto;display:flex;flex-direction:column;gap:11px;padding:6px 2px;scroll-behavior:smooth}
.sh-welcome{background:var(--surface2);border:1px dashed var(--line);border-radius:14px;line-height:1.9;padding:20px}
.sh-msg{max-width:88%;padding:12px 15px;border:1px solid var(--line);border-radius:17px;line-height:1.95;overflow-wrap:anywhere;white-space:normal}
.sh-user{align-self:flex-start;background:var(--brand);color:white;border-color:transparent}
.sh-assistant{align-self:flex-end;background:var(--surface2);color:var(--text)}
.sh-msg-cap{font-weight:700;font-size:.8rem;margin-bottom:6px}.sh-msg-cap small{font-weight:400;opacity:.73}
.sh-sources{display:flex;gap:5px;flex-wrap:wrap;margin-top:11px;padding-top:10px;border-top:1px solid var(--line);font-size:.76rem;opacity:.8}
.sh-sources span{border:1px solid var(--line);border-radius:8px;padding:2px 7px}
.sh-notice{margin-top:10px;font-size:.78rem;opacity:.77}
.sh-quick{display:flex;gap:7px;flex-wrap:wrap}.sh-quick button{white-space:normal;line-height:1.5;text-align:right}
.sh-form-label{font-weight:600}.sh-input-area{display:flex;align-items:stretch;gap:8px}
.sh-question{resize:vertical;flex:1;min-height:56px;max-height:144px;font-family:inherit;line-height:1.8}
.sh-send{min-width:110px}.sh-footnote{font-size:.75rem;color:var(--muted);margin:0;line-height:1.9}
.sh-wait{display:inline-block;animation:sh-pulse 1.2s ease-in-out infinite}@keyframes sh-pulse{50%{opacity:.4}}
@media(max-width:640px){.sh-main{padding:12px}.sh-msg{max-width:100%}.sh-input-area{flex-direction:column}.sh-send{min-height:40px}}

/* v226 animated "thinking person" beside the live answer. SVG + CSS only; offline friendly. */
.sh-thinking-msg{width:min(100%,455px);max-width:95%;padding:10px 14px;border-color:color-mix(in srgb,var(--line) 75%,#14a67b 25%);background:var(--surface2);}
.sh-thinking{display:flex;gap:12px;align-items:center;min-height:114px;direction:rtl;}
.sh-thinking-stage{position:relative;display:grid;place-items:center;width:113px;height:110px;flex:0 0 113px;isolation:isolate;}
.sh-thinking-person{width:96px;height:96px;overflow:visible;filter:drop-shadow(0 5px 9px rgba(7,101,75,.13));animation:sh226-gentle-bob 2.6s ease-in-out infinite;}
.sh-thinking-head{transform-origin:52px 59px;animation:sh226-ponder 3.2s ease-in-out infinite;}
.sh-thinking-hand{transform-origin:64px 73px;animation:sh226-tap 2.5s ease-in-out infinite;}
.sh-thinking-eyes{transform-origin:52px 52px;animation:sh226-blink 5.3s ease-in-out infinite;}
.sh-thinking-cloud{position:absolute;display:grid;place-items:center;border-radius:50%;background:#d6f8e9;border:1px solid #93ddbd;color:#047657;box-shadow:0 3px 10px rgba(5,93,72,.11)}
.sh-thinking-cloud-one{width:33px;height:33px;top:-3px;right:-1px;font-weight:900;font-size:22px;line-height:1;animation:sh226-cloud-drift 2.2s ease-in-out infinite;}
.sh-thinking-cloud-two{width:12px;height:12px;top:26px;right:23px;animation:sh226-cloud-drift 2.2s ease-in-out infinite .25s;}
.sh-thinking-cloud-three{width:6px;height:6px;top:42px;right:34px;animation:sh226-cloud-drift 2.2s ease-in-out infinite .5s;}
.sh-thinking-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;text-align:right}
.sh-thinking-copy strong{font-size:.93rem;color:var(--text);}
.sh-thinking-copy>span{font-size:.78rem;color:var(--muted);line-height:1.8;}
.sh-thinking-dots{height:14px;display:flex;align-items:center;gap:4px;padding-top:2px;direction:ltr;}
.sh-thinking-dots i{display:block;width:6px;height:6px;border-radius:100%;background:#13986e;animation:sh226-dot 1.05s ease-in-out infinite;}
.sh-thinking-dots i:nth-child(2){animation-delay:.15s}.sh-thinking-dots i:nth-child(3){animation-delay:.3s}
@keyframes sh226-gentle-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes sh226-ponder{0%,100%{transform:rotate(-2deg)}55%{transform:rotate(5deg)}}
@keyframes sh226-tap{0%,100%{transform:rotate(0)}45%{transform:rotate(-7deg)}65%{transform:rotate(2deg)}}
@keyframes sh226-blink{0%,44%,47%,100%{transform:scaleY(1)}45%,46%{transform:scaleY(.12)}}
@keyframes sh226-cloud-drift{0%,100%{transform:translateY(0);opacity:.85}50%{transform:translateY(-7px);opacity:1}}
@keyframes sh226-dot{0%,65%,100%{transform:translateY(0);opacity:.45}35%{transform:translateY(-5px);opacity:1}}
@media(max-width:430px){.sh-thinking-msg{max-width:100%}.sh-thinking-stage{width:88px;flex-basis:88px}.sh-thinking-person{width:78px;height:78px}.sh-thinking-cloud-one{top:0;right:13px;width:29px;height:29px;font-size:19px}.sh-thinking{gap:6px}.sh-thinking-copy>span{font-size:.72rem}}
@media(prefers-reduced-motion:reduce){.sh-thinking-person,.sh-thinking-head,.sh-thinking-hand,.sh-thinking-eyes,.sh-thinking-cloud,.sh-thinking-dots i{animation:none!important}}

/* v227: clear two-speed guide selection and latency labels */
.sh-mode-bar{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;margin:12px 0 10px;direction:rtl}
.sh-mode-btn{cursor:pointer;border:1px solid var(--line,#33515b);background:var(--surface2,#0e202c);color:var(--text,#dcebe9);padding:7px 12px;border-radius:12px;font-family:inherit;font-size:.83rem;transition:border-color .2s,background .2s}
.sh-mode-btn:hover{border-color:#1dba89}.sh-mode-btn:disabled{opacity:.5;cursor:progress}
.sh-mode-btn.sh-mode-active{border-color:#13af80;background:color-mix(in srgb,#0e835e 20%,var(--surface2,#0c2130));box-shadow:inset 0 0 0 1px #0a996d}
.sh-mode-hint{font-size:.75rem;color:var(--muted,#9bb4b5);line-height:1.7}
.sh-elapsed{display:block;text-align:left;color:var(--muted,#9bb4b5);font-size:.65rem;margin-top:5px;direction:ltr}
@media(max-width:560px){.sh-mode-hint{width:100%}.sh-mode-btn{flex:1}}
/* V231: secure, generated on demand, Excel report action. */
.sh-report-link{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 2px;padding:10px;border:1px solid var(--line);background:color-mix(in srgb,var(--brand) 9%,var(--surface2));border-radius:12px}
.sh-report-link .btn{padding:9px 15px;border-radius:9px;white-space:normal}
.sh-report-link small{font-size:11px;color:var(--muted)}
.sh-report-link button:disabled{opacity:.65;cursor:wait}

/* v239: thinking avatar replaces loading button caption; local SVG, no extra request. */
.sh-send:disabled{opacity:1;cursor:wait;}
.sh-send-thinker{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;line-height:0;animation:sh239-bob 1.9s ease-in-out infinite;}
.sh-send-thinker svg{display:block;width:42px;height:42px;filter:drop-shadow(0 1px 3px rgba(0,0,0,.17));}
.sh-send-thinker-bubble{transform-origin:51px 13px;animation:sh239-question 2s ease-in-out infinite;}
.sh-send-thinker-hand{transform-origin:37px 44px;animation:sh239-hand 1.4s ease-in-out infinite;}
@keyframes sh239-bob{50%{transform:translateY(-3px)}}
@keyframes sh239-question{50%{transform:scale(1.13)}}
@keyframes sh239-hand{50%{transform:rotate(-7deg)}}
@media(prefers-reduced-motion:reduce){.sh-send-thinker,.sh-send-thinker-bubble,.sh-send-thinker-hand{animation:none!important}}

/* v241: clean ChatGPT-style send arrow, replacing old decorative icon. */
.sh-input-area .sh-send{display:inline-flex;align-items:center;justify-content:center;gap:8px;direction:rtl;white-space:nowrap}
.sh-input-area .sh-send:not(:disabled)::before,.sh-input-area .sh-send:not(:disabled)::after{content:none!important;display:none!important}
.sh-send-label{font-weight:650;line-height:1.3}
.sh-send-arrow{display:block;flex:none;width:20px;height:20px;stroke:currentColor;pointer-events:none}
.sh-send:disabled{gap:0}

/* v242: icon-only accessible send button, never show previous truck/text. */
.sh-input-area{display:flex;flex-direction:row;align-items:stretch;gap:8px}
.sh-input-area .sh-question{min-width:0;flex:1 1 auto}
.sh-input-area button.sh-send{box-sizing:border-box;width:52px;min-width:52px;max-width:52px;flex:0 0 52px;min-height:52px;height:52px;padding:0!important;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;align-self:flex-end;gap:0!important;line-height:1;white-space:nowrap;font-size:0;position:relative;overflow:hidden}
.sh-input-area button.sh-send::before,.sh-input-area button.sh-send::after{content:none!important;display:none!important;background:none!important}
.sh-input-area button.sh-send:not(:disabled)>:not(.sh-send-arrow){display:none!important}
.sh-input-area button.sh-send .sh-send-arrow{display:block!important;width:24px;height:24px;stroke:currentColor;fill:none;pointer-events:none;flex:none}
.sh-input-area button.sh-send:disabled{min-height:52px;height:52px;cursor:wait}
.sh-input-area button.sh-send:disabled .sh-send-thinker svg{width:42px;height:42px}
@media(max-width:640px){.sh-input-area{flex-direction:row!important;align-items:stretch}.sh-input-area button.sh-send{width:48px;min-width:48px;max-width:48px;flex-basis:48px}}
