/* FitCorner conversation workspace; styles stay inside the assistant. */
body.agent-is-open{overflow:hidden}
#app.with-assistant{padding-right:0}
.fc-assistant{--agent-bg:#e6eff8;--agent-surface:#d9e7f4;--agent-ink:#142b38;--agent-muted:#526d7d;--agent-line:#b4c8d6;--agent-lime:#dcff71;--agent-green:#416327;--agent-white:#f9fcff;position:fixed;inset:24px;z-index:80;width:min(1120px,calc(100vw - 48px));height:calc(100dvh - 48px);max-height:none;margin:auto;border:1px solid var(--agent-line);border-radius:22px;background:var(--agent-bg);color:var(--agent-ink);box-shadow:0 24px 100px #142b3840;display:flex;flex-direction:row;overflow:hidden;animation:none;font-size:16px;line-height:1.6}
.fc-assistant *{box-sizing:border-box}
:where(.fc-assistant) :is(button,input,textarea,select){font:inherit}
.fc-assistant button{cursor:pointer}
.fc-assistant button:disabled{cursor:not-allowed;opacity:.55}
.fc-assistant [hidden]{display:none!important}
.fc-assistant :is(button,a,input,textarea,select,summary,[tabindex]):focus-visible{outline:3px solid var(--agent-green);outline-offset:3px}
.fc-assistant a{color:var(--agent-green);text-underline-offset:3px}
.agent-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.agent-sidebar{width:232px;flex:0 0 232px;display:flex;flex-direction:column;gap:18px;padding:23px 16px;background:var(--agent-surface);border-right:1px solid var(--agent-line);min-height:0}
.agent-sidebar-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:19px;letter-spacing:-.04em}
.agent-sidebar-top>.agent-button{display:none}
.agent-sidebar nav{flex:1;overflow:auto;min-height:0;display:flex;flex-direction:column;gap:5px;scrollbar-width:thin}
.agent-sidebar nav>button{min-height:44px;padding:10px 12px;text-align:left;border:0;border-radius:10px;background:transparent;color:var(--agent-ink);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.agent-sidebar nav>button:hover{background:#e7f0f7}
.agent-sidebar nav>button[aria-current=page]{background:var(--agent-ink);color:var(--agent-white)}
.agent-sidebar-bottom{display:flex;flex-direction:column;gap:8px;padding-top:14px;border-top:1px solid var(--agent-line)}
.agent-sidebar-bottom>.agent-button{font-size:13px;justify-content:flex-start;padding:8px 10px}
.agent-main{display:flex;flex-direction:column;min-width:0;min-height:0;flex:1;position:relative}
.fc-assistant .agent-header{padding:17px 22px;min-height:84px;background:#edf4fa;border-bottom:1px solid #c3d6e3;gap:12px;flex-shrink:0}
.fc-assistant .agent-header h2{font-size:19px;line-height:1.35;margin:0;letter-spacing:-.03em}
.fc-assistant .agent-header p{font-size:12px;color:var(--agent-muted);margin:4px 0 0}
.assistant-window-actions{display:flex;gap:5px;margin-left:auto}
.agent-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:var(--agent-ink);font-size:24px}
.agent-icon:hover{background:#dce9f2}
.agent-history-toggle{display:none}
.fc-assistant .agent-feed{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:25px clamp(16px,4vw,42px) 28px;scrollbar-width:thin;scrollbar-color:#a6bfce transparent;overscroll-behavior:contain;scroll-padding:18px}
.agent-message{min-width:0;margin:0 0 27px;line-height:1.7}
.agent-message-assistant{display:flex;align-items:flex-start;gap:11px}
.agent-avatar{width:28px;height:28px;flex:0 0 28px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#dce9d2;color:var(--agent-green);font-size:14px;margin-top:4px}
.agent-message-body{min-width:0;max-width:100%;flex:1;overflow-wrap:anywhere}
.agent-message-body>p{margin:0 0 16px}
.agent-message-user{display:flex;justify-content:flex-end}
.agent-message-user>.agent-message-body{max-width:85%;flex:0 1 auto;padding:13px 17px;border-radius:18px 18px 4px 18px;background:var(--agent-ink);color:#f7fbff;white-space:pre-wrap}
.agent-message-user p{margin:0}
.agent-card{padding:19px;margin:18px 0;background:var(--agent-white);border:1px solid #b6cddd;border-radius:16px;min-width:0}
.agent-card h3{font-size:21px;font-weight:600;letter-spacing:-.035em;line-height:1.4;margin:0 0 12px;color:var(--agent-ink)}
.agent-card p{margin:0 0 13px}
.agent-card>:last-child{margin-bottom:0}
.agent-badge{display:inline-flex;align-items:center;min-height:25px;margin-bottom:12px;padding:4px 9px;border-radius:99px;background:#e5eff6;color:#496c80;font-size:11px;font-weight:500;line-height:1.4}
.agent-note{font-size:14px;line-height:1.65;color:var(--agent-muted)}
.agent-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.agent-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:10px 15px;border:1px solid #abc3d4;border-radius:10px;background:var(--agent-white);color:var(--agent-ink)!important;text-decoration:none;font-size:15px;font-weight:500;line-height:1.45;text-align:center;overflow-wrap:anywhere}
.agent-button:hover{background:#edf4fa;border-color:#7698ad}
.agent-button-primary{background:var(--agent-lime);border-color:#c4df72}
.agent-button-primary:hover{background:#d1f562;border-color:#a9c553}
.agent-products{display:grid;gap:17px;margin:18px 0}
.agent-product{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1fr);align-items:center;border:1px solid #b6cddd;border-radius:15px;background:var(--agent-white);overflow:hidden;min-width:0}
.agent-product-no-photo{grid-template-columns:1fr}
.agent-product-media{min-width:0;width:100%}
.agent-product-media img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain;background:#e0e7eb}
.agent-product-body{min-width:0;padding:18px}
.agent-product-body h3{font-size:19px;line-height:1.4;margin:0 0 9px;letter-spacing:-.025em}
.agent-product-body p{margin:0 0 12px}
.agent-product-body .agent-card-actions{flex-direction:column}
.agent-price{font-size:24px;font-weight:600;line-height:1.4}
.agent-price small{font-size:12px;font-weight:400;white-space:nowrap}
.agent-quote-lines{font-size:14px;margin:16px 0}
.agent-quote-lines>div{display:flex;justify-content:space-between;align-items:baseline;gap:15px;padding:11px 0;border-bottom:1px solid #dce7ef}
.agent-quote-lines strong{white-space:nowrap}
.agent-quote-lines .agent-total{font-size:17px;font-weight:600;border-bottom:0;padding-top:15px}
.agent-term-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:8px;min-width:0;margin:15px 0;padding:0;border:0}
.agent-term-picker legend{font-size:14px;font-weight:500;padding:0;margin-bottom:9px}
.agent-term-option{position:relative;display:block;min-width:0;margin:0!important;cursor:pointer}
.agent-term-option>input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}
.agent-term-option>span{display:flex;align-items:center;justify-content:center;gap:5px;min-height:48px;padding:10px 7px;border:1px solid #abc3d4;border-radius:10px;background:var(--agent-white);font-size:15px;line-height:1.4;text-align:center}
.agent-term-option>input:checked+span{background:var(--agent-lime);border-color:#9db749}
.agent-term-option>input:checked+span:after{content:'✓';font-size:13px}
.fc-assistant .agent-term-option>input:focus-visible{outline:none}
.agent-term-option>input:focus-visible+span{outline:3px solid var(--agent-green);outline-offset:3px}
.agent-contact-form>fieldset{min-width:0;margin:0;padding:0;border:0;display:flex;flex-direction:column;gap:17px}
.agent-contact-form>fieldset>.agent-button{width:100%}
.agent-field{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:500;margin:0;min-width:0}
.agent-field input,.agent-field textarea{width:100%;min-width:0;min-height:48px;padding:10px 12px;background:#fff;border:1px solid #a9c2d3;border-radius:9px;color:var(--agent-ink);font-size:16px;line-height:1.5}
.agent-field textarea{resize:vertical}
.agent-field [aria-invalid=true]{border-color:#a8402f;background:#fff8f4}
.agent-field-error{color:#a8402f;font-size:13px;font-weight:400;line-height:1.5}
.agent-field-error:empty{display:none}
.agent-check{display:flex;align-items:flex-start;gap:11px;min-height:44px;font-size:15px;line-height:1.55;margin:15px 0;cursor:pointer}
.agent-check input{width:19px;height:19px;flex:0 0 19px;margin:3px 0 0;accent-color:var(--agent-green)}
.agent-check span{min-width:0}
.agent-details{font-size:14px;border-top:1px solid #d5e3ed;padding-top:5px}
.agent-details summary{display:flex;align-items:center;min-height:44px;gap:8px;cursor:pointer;list-style:none}
.agent-details summary::-webkit-details-marker{display:none}
.agent-details summary:after{content:'+';margin-left:auto;color:var(--agent-muted)}
.agent-details[open] summary:after{content:'−'}
.agent-details[open]>.agent-field{margin:13px 0}
.agent-profile-values{margin:14px 0;font-size:15px}
.agent-profile-values>div{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #dce7ef}
.agent-profile-values dt{color:var(--agent-muted)}
.agent-profile-values dd{margin:0;text-align:right;font-weight:500}
.agent-diff>div{padding:13px 0;border-bottom:1px solid #dce7ef;display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;font-size:15px}
.agent-diff strong{grid-column:1/-1;font-size:13px;font-weight:500;color:var(--agent-muted)}
.agent-diff span{text-decoration:line-through;color:#718490}
.agent-diff b{font-weight:600}
.agent-pipeline{list-style:none;margin:20px 0;padding:0;min-width:0}
.agent-pipeline>li{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;padding:0 0 20px;min-width:0}
.agent-pipeline>li:before{content:'';position:absolute;left:13px;top:27px;bottom:0;width:2px;background:#ccd9e2}
.agent-pipeline>li:last-child{padding-bottom:0}
.agent-pipeline>li:last-child:before{display:none}
.agent-pipeline-marker{display:grid;place-items:center;position:relative;z-index:1;width:28px;height:28px;border:1px solid #bdcfdb;border-radius:50%;background:#f2f7fb;color:#526d7d;font-size:12px;font-weight:600;line-height:1}
.agent-pipeline>li>div{min-width:0;padding-top:2px}
.agent-pipeline strong{display:block;font-size:15px;font-weight:600;line-height:1.5}
.agent-pipeline small{display:block;margin-top:3px;color:var(--agent-muted);font-size:13px;line-height:1.6}
.agent-pipeline [data-status=completed]:before{background:#8baa72}
.agent-pipeline [data-status=completed] .agent-pipeline-marker{border-color:var(--agent-green);background:var(--agent-green);color:#fff}
.agent-pipeline [data-status=current] .agent-pipeline-marker{border-color:var(--agent-green);background:var(--agent-lime);color:var(--agent-ink);box-shadow:0 0 0 3px #e5efd6}
.agent-pipeline [data-status=current]>div{margin-top:-5px;padding:10px 12px;border:1px solid #c9dcad;border-radius:10px;background:#edf4e1}
.agent-pipeline [data-status=current] small{color:var(--agent-green)}
.agent-error{color:#9b3628!important;font-size:14px;line-height:1.6}
.agent-error-card{padding:16px;margin:16px 0;border:1px solid #ddad9e;border-radius:12px;background:#fff3ed;font-size:14px}
.agent-error-card p{margin:0 0 12px}
.agent-work-status{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--agent-muted);padding:10px 0}
.agent-work-status:before{content:'';width:8px;height:8px;border-radius:50%;background:var(--agent-green);flex:0 0 8px}
.fc-assistant #chatForm.agent-composer{padding:13px 20px max(13px,env(safe-area-inset-bottom));border-top:1px solid #c3d6e3;background:#edf4fa;flex-shrink:0;margin:0}
.agent-composer-box{position:relative;padding:11px 65px 11px 14px;border:1px solid #abc3d4;border-radius:16px;background:var(--agent-white)}
.agent-composer-box:focus-within{border-color:var(--agent-green);box-shadow:0 0 0 1px var(--agent-green)}
.fc-assistant .agent-composer textarea:focus-visible{outline:none}
.fc-assistant .agent-composer textarea{display:block;width:100%;min-height:48px;max-height:120px;resize:none;border:0;background:transparent;outline:0;padding:0;color:var(--agent-ink);font-size:16px;line-height:1.5}
.agent-composer textarea::placeholder{color:#6a8799}
.agent-send{position:absolute;bottom:12px;right:12px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:var(--agent-lime);color:var(--agent-ink);font-size:25px;line-height:1}
.fc-assistant .agent-composer>p{font-size:10px;line-height:1.5;text-align:center;color:var(--agent-muted);margin:7px 0 0}
.agent-new-answer{position:static;align-self:center;flex-shrink:0;min-height:44px;margin:0 12px 8px;padding:9px 15px;white-space:nowrap;border:1px solid var(--agent-line);border-radius:99px;background:var(--agent-white);font-size:13px;box-shadow:0 4px 18px #142b3812}
.fc-assistant .fit-markdown{font-size:16px;line-height:1.7;color:inherit;min-width:0;overflow-wrap:anywhere}
.fc-assistant .fit-markdown> :first-child{margin-top:0}
.fc-assistant .fit-markdown> :last-child{margin-bottom:0}
.fc-assistant .fit-markdown p{margin:0 0 16px}
.fc-assistant .fit-markdown :is(h1,h2,h3,h4){font-weight:600;line-height:1.4;letter-spacing:-.025em;margin:24px 0 12px;color:inherit}
.fc-assistant .fit-markdown h1{font-size:25px}.fc-assistant .fit-markdown h2{font-size:22px}.fc-assistant .fit-markdown h3{font-size:19px}.fc-assistant .fit-markdown h4{font-size:17px}
.fc-assistant .fit-markdown :is(ul,ol){padding-left:24px;margin:12px 0 18px}
.fc-assistant .fit-markdown li{margin:6px 0;padding-left:1px}
.fc-assistant .fit-markdown li::marker{color:var(--agent-green)}
.fc-assistant .fit-markdown strong{font-weight:600}
.fc-assistant .fit-markdown blockquote{border-left:3px solid #9bb87b;margin:18px 0;padding:12px 15px;background:#edf4e4;border-radius:0 9px 9px 0;color:#416327;font-size:15px}
.fc-assistant .fit-markdown blockquote>:last-child{margin-bottom:0}
.fc-assistant .fit-markdown code{font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;background:#d8e6ef;padding:2px 5px;border-radius:4px;overflow-wrap:anywhere}
.fc-assistant .fit-markdown pre{margin:0;padding:14px 16px;background:#203845;color:#f0f7fb;font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-x:auto;white-space:pre}
.fc-assistant .fit-markdown pre code{background:transparent;color:inherit;padding:0;white-space:pre;overflow-wrap:normal}
.fc-assistant .fit-markdown-code{border-radius:10px;margin:16px 0;max-width:100%;overflow-x:auto}
.fc-assistant .fit-markdown-scroll{margin:18px 0;border:1px solid #b8cedd;border-radius:10px;max-width:100%;overflow-x:auto;scrollbar-width:thin}
.fc-assistant .fit-markdown table{border-collapse:collapse;min-width:100%;width:max-content;font-size:14px;background:var(--agent-white)}
.fc-assistant .fit-markdown th,.fc-assistant .fit-markdown td{padding:11px 13px;text-align:left;border-bottom:1px solid #d3e1eb;max-width:250px;min-width:110px;white-space:normal;vertical-align:top}
.fc-assistant .fit-markdown th{background:#dbe8f2;font-weight:600}
.fc-assistant .fit-markdown tr:last-child td{border-bottom:0}
.fc-assistant .fit-markdown hr{border:0;border-top:1px solid #bbcfdd;margin:23px 0}
.agent-sources{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.agent-sources>.agent-button{font-size:12px}
.fc-assistant[data-minimized=true]{inset:auto 16px 16px auto;margin:0;width:min(380px,calc(100vw - 32px));height:auto;max-height:100px;border-radius:16px;box-shadow:0 8px 35px #142b3825}
.fc-assistant[data-minimized=true] .agent-sidebar,.fc-assistant[data-minimized=true] .agent-feed,.fc-assistant[data-minimized=true] .agent-composer,.fc-assistant[data-minimized=true] .agent-new-answer,.fc-assistant[data-minimized=true] .agent-history-toggle{display:none}
.fc-assistant[data-minimized=true] .agent-header{border:0;padding:13px 15px;min-height:76px}
.fc-assistant[data-minimized=true] .agent-header h2{font-size:16px}
@media(max-width:1000px){.fc-assistant{inset:12px;width:calc(100vw - 24px);height:calc(100dvh - 24px)}.agent-sidebar{width:210px;flex-basis:210px}.agent-product{display:block}.agent-product-media{width:min(calc(100% - 28px),270px);margin:14px auto 0;border-radius:10px;overflow:hidden}.agent-product-body{padding:16px}.agent-feed .agent-product-body .agent-card-actions{flex-direction:row}}
@media(max-width:760px){
 .fc-assistant{inset:var(--agent-viewport-top,0px) 0 auto;margin:0;width:100%;height:var(--agent-viewport-height,100dvh);border:0;border-radius:0;box-shadow:none}
 .agent-sidebar{position:absolute;inset:0 auto 0 0;width:min(290px,86vw);z-index:5;box-shadow:20px 0 70px #142b3840;display:none;padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}
 .fc-assistant[data-sidebar=true] .agent-sidebar{display:flex}.agent-sidebar-top>.agent-button{display:inline-flex;font-size:12px;padding:7px 9px}.agent-sidebar-top strong{font-size:17px}.agent-sidebar nav>button{font-size:15px}
 .agent-history-toggle{display:grid}.fc-assistant .agent-header{padding:max(11px,env(safe-area-inset-top)) 10px 11px;min-height:76px;gap:4px}.fc-assistant .agent-header h2{font-size:16px}.fc-assistant .agent-header p{font-size:10px;margin-top:3px}.assistant-window-actions{gap:0}.agent-icon{font-size:22px}
 .fc-assistant .agent-feed{padding:20px 13px 25px;scroll-padding:15px}.agent-message{margin-bottom:23px}.agent-message-assistant{gap:7px}.agent-avatar{width:22px;height:22px;flex-basis:22px;font-size:12px;border-radius:7px}.agent-message-user>.agent-message-body{max-width:92%;padding:12px 15px}
 .agent-card{padding:15px;border-radius:14px;margin:16px 0}.agent-card h3{font-size:20px}.agent-card-actions{flex-direction:column;gap:8px;margin-top:17px}.agent-card-actions>.agent-button{width:100%}.agent-button{font-size:15px;min-height:48px}.agent-note{font-size:14px}.agent-check{font-size:15px}
 .agent-product{display:block}.agent-product-media{width:min(calc(100% - 28px),240px);margin:14px auto 0;border-radius:10px;overflow:hidden}.agent-product-body{padding:14px}.agent-product-body h3{font-size:18px}.agent-feed .agent-product-body .agent-card-actions{flex-direction:column}.agent-price{font-size:23px}
 .agent-quote-lines>div{gap:10px}.agent-quote-lines strong{white-space:normal;text-align:right}.agent-term-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.agent-term-option>span{font-size:14px;padding:10px 4px}
 .agent-diff>div{grid-template-columns:1fr}.agent-diff strong{grid-column:auto}.agent-profile-values>div{display:block}.agent-profile-values dd{text-align:left;margin-top:4px}
 .fc-assistant #chatForm.agent-composer{padding:10px 12px max(10px,env(safe-area-inset-bottom))}.agent-composer-box{padding:11px 63px 11px 12px}.fc-assistant .agent-composer>p{font-size:9px;line-height:1.5;margin-top:6px}
 .fc-assistant[data-minimized=true]{inset:auto 10px max(10px,env(safe-area-inset-bottom)) auto;width:calc(100vw - 20px);border:1px solid var(--agent-line)}
}
@media(prefers-reduced-motion:reduce){.fc-assistant *{scroll-behavior:auto;animation:none!important;transition:none!important}}
