/* Shared procurement interface. Business state is reflected, never inferred by animation. */
:root{--work-bg:#f4f7f8;--work-ink:#182e36;--work-muted:#586d76;--work-line:#dde6e8;--work-soft:#f5f8f9;--work-accent:#086b63;--work-accent-soft:#eaf6f3;--ui-shadow:0 12px 38px #16333d0b}
body{font-family:Inter,"Segoe UI","Microsoft YaHei",Arial,sans-serif;font-size:16px;background:var(--work-bg);color:var(--work-ink)}
.intake-topbar{height:72px;padding:0 32px;background:#fff;border-bottom:1px solid var(--work-line)}
.brand-mark{font-family:Georgia,serif;font-size:29px;font-weight:500;letter-spacing:-3px;display:flex;justify-content:center;border-radius:11px;width:40px;height:40px;background:#143e41;padding-right:3px}.brand-mark span{color:#8ed9be}
.brand-title{font-size:16px;letter-spacing:-.35px}.brand-subtitle{font-size:12px;margin-top:2px}
.topbar-right{gap:16px}.topbar-chip{font-size:12px;letter-spacing:.03em;padding:6px 10px;border-radius:7px}.save-chip{font-size:13px;color:var(--work-muted);transition:color .2s}.save-chip[data-activity=saved]{color:var(--work-accent)}.save-chip[data-activity=retry_status]{color:#9c2a1a}
.muted{font-size:14px;line-height:1.6}button,.button-link{font-size:14px;min-height:40px;border-radius:9px;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}button:not(:disabled):hover,.button-link:hover{box-shadow:0 3px 10px #193b3910;text-decoration:none}button:not(:disabled):active,.button-link:active{transform:scale(.98)}button.primary,.button-link.primary{background:var(--work-accent);border-color:var(--work-accent)}button.primary:not(:disabled):hover,.button-link.primary:hover{background:#075b54;color:white;box-shadow:0 4px 14px #086b6326}
button:disabled{cursor:default}select{font:inherit;padding:8px;border:1px solid var(--work-line);border-radius:8px;background:#fff;color:var(--work-ink)}
.advisor-layout{max-width:1600px;grid-template-columns:minmax(0,1fr) 324px;height:calc(100dvh - 72px);min-height:0}
.chat-workspace{background:#fff}.chat-heading{padding:21px 32px;gap:20px;align-items:center}.workspace-eyebrow{font-size:12px;letter-spacing:.1em;color:var(--work-accent);font-weight:650;margin-bottom:6px}.chat-heading h1{font-size:clamp(18px,1.8vw,25px);letter-spacing:-.7px;font-weight:650;line-height:1.4}.chat-heading p{margin:5px 0 0}.heading-tools{display:flex;align-items:flex-end;flex-direction:column;gap:7px;flex-shrink:0}.guide-trigger{background:transparent;border-color:transparent;color:var(--work-muted);padding:3px 7px;min-height:32px;white-space:nowrap}.guide-trigger span{display:inline-grid;place-items:center;width:17px;height:17px;border:1px solid currentColor;border-radius:50%;font-size:12px;margin-right:3px}.chat-heading select{max-width:170px;font-size:13px}
.conversation-surface{position:relative;min-height:0;flex:1;display:flex}.chat-messages{width:100%;padding:26px clamp(20px,4vw,72px);scrollbar-width:thin;scrollbar-color:#ccd9d9 transparent;overscroll-behavior:contain;overflow-anchor:none}.chat-message{margin-bottom:26px;gap:12px;animation:ui-message-in .32s ease both}.chat-avatar{width:32px;height:32px;border-radius:10px;font-size:11px;background:#124f4c;position:sticky;top:0}.chat-bubble{font-size:16px;background:#f6f9f9;border:1px solid #e5eded;border-radius:2px 15px 15px;padding:18px 22px;width:fit-content;max-width:820px;line-height:1.85}.chat-bubble p{margin-bottom:12px}.user .chat-bubble{background:#eaf4f2;border-color:#dceae6;border-radius:15px 2px 15px 15px;padding:12px 18px}.user .chat-avatar{background:#e4ecee;color:#3d5963}.question-title{font-size:17px;font-weight:650}.question-why{font-size:14px;color:var(--work-muted)}.question-type{font-size:12px;padding:2px 8px;border-radius:4px;font-weight:500}
.option-choice{font-size:15px;padding:12px 14px;border-radius:10px;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}.option-choice:hover{border-color:#8db7b0;transform:translateX(2px)}.option-choice:has(input:checked){box-shadow:inset 3px 0 var(--work-accent);background:#ecf7f3}.option-choice input{margin-top:5px;min-width:16px;min-height:16px}.option-stack{gap:9px}.option-choice:focus-within{outline:2px solid #086b6380;outline-offset:2px}
.conversation-welcome{padding:3px 0 26px;margin-bottom:25px;border-bottom:1px solid var(--work-line);animation:ui-message-in .5s ease both}.welcome-mark{display:inline-grid;place-items:center;width:44px;height:44px;font-size:35px;color:#14756a;margin-bottom:15px}.conversation-welcome h2{font-size:24px;font-weight:600;letter-spacing:-.7px;line-height:1.5;margin-bottom:9px}.conversation-welcome p{font-size:15px;line-height:1.8;color:var(--work-muted);max-width:600px;margin:0 0 10px}.conversation-welcome small{font-size:13px;color:var(--work-muted)}
.composer{padding:12px clamp(20px,4vw,72px) 15px;border-top:0;flex-shrink:0}.composer-box{background:#fff;padding:12px 14px 10px;border:1px solid #c5d7d5;border-radius:16px;box-shadow:0 4px 20px #183c3610;transition:box-shadow .2s,border-color .2s}.composer-box:focus-within{border-color:var(--work-accent);box-shadow:0 0 0 3px #086b630c,0 8px 24px #183c3610}.composer textarea{font-size:16px;min-height:52px;max-height:20vh;resize:none;line-height:1.6}.composer textarea::placeholder{color:#708189}.composer-footer{gap:8px}.attachment-tools{display:flex;gap:10px}.attachment-label{font-size:14px;gap:6px;padding:6px 4px;min-height:36px;transition:color .2s}.attachment-label:hover{color:var(--work-accent)}.attachment-label:focus-within{outline:2px solid var(--work-accent);outline-offset:2px;border-radius:4px}.attachment-label svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.attachment-label:has(input:disabled){opacity:.5;cursor:default}#send-answer{display:flex;align-items:center;gap:16px;padding:8px 16px;min-height:40px}#send-answer span{font-size:21px;line-height:1}
.composer-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:27px}.chat-status{font-size:12px;min-height:18px;margin:6px 0 0}.composer-meta>span{font-size:12px;color:var(--work-muted);white-space:nowrap;margin-top:6px}.attachment-list{font-size:13px;line-height:1.7}.attachment-list:empty{margin:0}.file-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:4px 7px 4px 10px;background:var(--work-accent-soft);border:1px solid #d4e6e1;border-radius:7px;margin:3px 6px 3px 0;animation:ui-message-in .2s ease}.file-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}.file-chip button{min-height:24px;width:24px;padding:0;background:transparent;border:0;font-size:18px}.latest-message{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);border-radius:24px;box-shadow:0 3px 18px #173e3b20;font-size:13px;padding:7px 15px;background:white;white-space:nowrap;z-index:2}.latest-message:active{transform:translateX(-50%)!important}
.summary-panel{padding:26px 24px;background:#f7f9fa}.summary-panel>summary{font-size:17px;letter-spacing:-.3px;list-style:none;display:flex;justify-content:space-between;align-items:center}.summary-panel>summary::-webkit-details-marker{display:none}.summary-panel>summary::after{content:'−';font-size:20px;color:var(--work-muted)}.summary-panel:not([open])>summary::after{content:'+'}.summary-body{padding-top:20px}.summary-body h2{font-size:12px;font-weight:650;letter-spacing:.08em;color:var(--work-muted);margin:0 0 16px}.advisor-journey{list-style:none;margin:0;padding:0}.advisor-journey li{position:relative;display:flex;gap:12px;padding:0 0 24px;color:#6f7f86}.advisor-journey li:last-child{padding-bottom:5px}.journey-number{width:29px;height:29px;display:grid;place-items:center;background:#f7f9fa;border:1px solid #d8e2e4;border-radius:50%;font-size:11px;flex:none;position:relative;z-index:1;transition:background .3s,color .3s,box-shadow .3s}.advisor-journey li:not(:last-child)::after{content:'';position:absolute;left:14px;top:30px;bottom:0;width:1px;background:#dce5e6}.advisor-journey strong{font-size:14px;font-weight:550;display:block;padding-top:4px}.advisor-journey p{font-size:13px;line-height:1.65;margin:5px 0 0;display:none}.advisor-journey .is-current{color:var(--work-ink)}.advisor-journey .is-current p{display:block;color:var(--work-muted);animation:ui-message-in .25s ease}.advisor-journey .is-current .journey-number{background:var(--work-accent);border-color:var(--work-accent);color:white;box-shadow:0 0 0 4px #086b6310}.advisor-journey .is-complete .journey-number{background:#e6f2ed;border-color:#c5ded4;color:var(--work-accent)}.advisor-journey .is-complete strong{color:var(--work-accent)}
.requirements-section{border-top:1px solid var(--work-line);margin-top:24px;padding-top:23px}.summary-empty{padding:15px;border:1px dashed #cedbdd;border-radius:10px;font-size:14px;color:var(--work-muted);line-height:1.7}.summary-fact{font-size:14px;padding:12px 0}.summary-fact strong{font-size:12px;color:var(--work-muted);font-weight:500;margin-bottom:5px}.summary-fact>span{display:block}.status-tag{font-size:12px;padding:2px 7px;background:#edf1f2;border-radius:4px;margin:5px 0 0}.summary-fact[data-status=proposed] .status-tag{background:#fff1d8;color:#865816}.summary-fact[data-status=confirmed] .status-tag{background:#e6f2eb;color:#236741}.summary-fact[data-status=conflict] .status-tag{background:#fff0ec;color:#a33b28}.summary-trust{display:flex;gap:8px;padding:14px 0;border-top:1px solid var(--work-line);margin:22px 0}.summary-trust>span{color:var(--work-accent);padding-top:2px}.summary-trust p,.quote-note{font-size:12px;line-height:1.8;margin:0;color:var(--work-muted)}.quote-note{margin-top:24px;padding-top:14px;border-top:1px solid var(--work-line)}.summary-body button,.summary-body .button-link{font-size:13px}.summary-body>h2{margin-top:22px}
.chat-bubble.plan-preview{background:white;border:1px solid #b7d3ca;border-radius:14px;box-shadow:var(--ui-shadow)}.plan-preview h2{font-size:20px;color:#15483e}.plan-full>summary{padding:8px 0;font-size:14px}.compact-specs,.plan-translation,.plan-preview .line-confirmation,.plan-preview .warning{font-size:13px}.plan-controls button{min-height:42px}.plan-full{font-size:14px}.other-answer-editor>label{font-size:14px}.price-controls{min-width:min(100%,400px)}.ai-waiting{min-width:250px;position:relative;overflow:hidden}.ai-waiting::after{content:'';position:absolute;bottom:0;left:0;width:35%;height:2px;background:#3c9787;animation:ui-wait-line 2s ease-in-out infinite}.waiting-elapsed{font-size:12px}.output-active::after{content:'';display:inline-block;width:6px;height:1em;border-radius:2px;background:var(--work-accent);vertical-align:-2px;margin-left:4px;animation:ui-caret .8s ease infinite}.is-revealing [data-output-pending]{visibility:hidden}.output-enter{animation:ui-message-in .25s ease both}.saved-feedback{animation:ui-saved .35s ease}.request-error{border-color:#edc9bd;background:#fff9f6}.other-answer-editor{animation:ui-message-in .2s ease}
.advisor-guide{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:26px;border:1px solid #dbe8e6;border-radius:22px;box-shadow:0 24px 90px #092a3d40;color:var(--work-ink);overflow:auto}.advisor-guide[open]{animation:ui-dialog-in .24s ease}.advisor-guide::backdrop{background:#0d263863;backdrop-filter:blur(4px)}.guide-top{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--work-muted)}.guide-top button{width:32px;min-height:32px;font-size:24px;border:0;padding:0;background:transparent}.guide-illustration{display:flex;align-items:center;gap:20px;background:#eef6f3;border:1px solid #dbeae4;border-radius:14px;padding:24px;margin:22px 0 24px;min-height:112px}.guide-illustration>span:first-child{font-size:46px;font-weight:300;letter-spacing:-3px;color:#3b8275}.guide-illustration>span:last-child{font-size:15px;line-height:1.7;color:#24564f}.guide-dots{display:flex;gap:5px;margin:0 0 17px}.guide-dots i{width:7px;height:7px;border-radius:7px;background:#d4e1df;transition:width .2s,background .2s}.guide-dots .is-active{width:23px;background:var(--work-accent)}.guide-content h2{font-size:23px;letter-spacing:-.5px;line-height:1.5}.guide-content p{font-size:15px;line-height:1.85;color:var(--work-muted);min-height:85px;margin-bottom:22px}.guide-actions{display:flex;align-items:center;gap:12px;justify-content:space-between}.guide-actions>span{font-size:12px;color:var(--work-muted);margin-right:auto}.guide-actions>button{min-height:44px}.guide-footnote{font-size:12px;color:var(--work-muted);text-align:center;margin:20px 0 0}
.receipt,.contact-page{box-shadow:var(--ui-shadow);border-radius:18px}.contact-field input,.contact-field select{transition:border-color .2s,box-shadow .2s}.contact-field:focus-within label{color:var(--work-accent)}
/* Verified entry shares the same visual language as the conversation. */
.entry-page{max-width:1180px;margin:0 auto;padding:30px 32px 36px}.entry-language-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:13px;margin-bottom:38px}.language-switch{display:flex;gap:4px;flex-wrap:wrap}.language-option{font-size:13px;padding:7px 10px;border:1px solid transparent;border-radius:7px;color:var(--work-muted)}.language-option.is-active{color:var(--work-accent);background:#e5f1ed;border-color:#c9dfd7}.entry-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.85fr);gap:72px;align-items:start}.entry-kicker{font-size:12px;letter-spacing:.1em;color:var(--work-accent);font-weight:650;margin:8px 0 16px}.entry-hero h1{font-size:clamp(32px,3.6vw,46px);font-weight:600;line-height:1.35;letter-spacing:-1.5px;max-width:550px;margin:0 0 20px}.entry-intro{font-size:16px;color:var(--work-muted);line-height:1.9;max-width:520px;margin-bottom:28px}.entry-flow{border-top:1px solid var(--work-line);padding-top:23px}.entry-flow>h2{font-size:15px;margin-bottom:22px}.entry-flow ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:24px}.entry-flow li{display:flex;align-items:flex-start;gap:12px}.entry-flow .journey-number{border-radius:8px;background:white;font-size:12px;width:32px;height:32px}.entry-flow strong{font-size:15px;display:block;margin:4px 0}.entry-flow p{font-size:14px;color:var(--work-muted);line-height:1.7;margin:5px 0}.entry-auth{padding:28px;background:white;border:1px solid #dbe6e6;border-radius:18px;box-shadow:var(--ui-shadow);animation:ui-message-in .5s ease}.auth-heading{border-bottom:1px solid var(--work-line);padding-bottom:20px;margin-bottom:22px}.auth-heading h2{font-size:22px;line-height:1.5;letter-spacing:-.5px;margin-bottom:10px}.auth-heading p{font-size:14px;color:var(--work-muted);margin:0;line-height:1.8}.field-stack{display:grid;gap:12px}.field-stack label{font-size:14px;font-weight:600}.field-stack input{width:100%;min-height:46px;font:inherit;padding:12px;border:1px solid #bdcfcb;border-radius:9px;transition:box-shadow .2s}.field-stack input:focus{outline:2px solid #086b6320;border-color:var(--work-accent)}.field-hint,.entry-session-note{font-size:12px;color:var(--work-muted);line-height:1.8}.entry-button{width:100%;min-height:46px;margin-top:8px}.pending-email{background:#edf6f2;font-size:14px;line-height:1.8;padding:12px;border-radius:9px;overflow-wrap:anywhere;margin-bottom:18px}.debug-code{background:#fff7e4;font-size:13px;padding:12px;border-radius:9px;margin-bottom:15px;line-height:1.7}.form-error{color:#a23423;font-size:14px}.entry-session-note{border-top:1px solid var(--work-line);padding-top:18px;margin:22px 0 0}.entry-local-note{font-size:12px;color:var(--work-muted);line-height:1.7;border-top:1px solid var(--work-line);padding-top:12px;margin-top:15px}.entry-trust-note{font-size:13px;color:var(--work-muted);line-height:1.9;margin-top:28px;padding-left:14px;border-left:2px solid #92c1b3}
@keyframes ui-message-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes ui-dialog-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes ui-wait-line{0%,100%{transform:translateX(-100%)}50%{transform:translateX(280%)}}
@keyframes ui-caret{0%,100%{opacity:.25}50%{opacity:1}}
@keyframes ui-saved{from{opacity:.3;transform:scale(.98)}to{opacity:1;transform:scale(1)}}
@media(min-width:851px) and (max-width:1100px){.advisor-layout{grid-template-columns:minmax(0,1fr) 284px}.chat-heading{padding:18px 22px}.chat-messages{padding:24px}.composer{padding:12px 24px}.summary-panel{padding:24px 19px}.chat-heading h1{font-size:21px}.entry-layout{gap:36px}}
@media(max-width:850px){.intake-topbar{height:60px;padding:0 18px}.topbar-right{gap:8px}.brand-mark{width:34px;height:34px;font-size:25px;border-radius:9px}.advisor-layout{height:calc(100dvh - 60px);min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.summary-panel{grid-row:1;padding:10px 18px;max-height:34dvh}.summary-panel>summary{font-size:14px}.summary-panel>summary::after{font-size:18px}.summary-body{padding:17px 0}.chat-heading{padding:12px 18px;gap:12px}.workspace-eyebrow{display:none}.chat-heading h1{font-size:18px;letter-spacing:-.35px}.chat-heading p{font-size:12px;margin-top:4px}.heading-tools{gap:2px}.guide-trigger{font-size:12px;min-height:28px;padding:1px 3px}.chat-heading select{font-size:12px;padding:5px;max-width:128px}.chat-messages{padding:20px 16px}.chat-bubble{padding:14px 16px;font-size:15px;max-width:100%}.chat-message{gap:9px;margin-bottom:22px}.chat-avatar{width:27px;height:27px;font-size:10px;border-radius:8px}.chat-message .chat-bubble{max-width:calc(100% - 36px)}.chat-message.user .chat-bubble{max-width:82%}.conversation-welcome h2{font-size:22px}.conversation-welcome p{font-size:14px}.conversation-welcome{padding-bottom:20px;margin-bottom:20px}.welcome-mark{margin-bottom:8px;font-size:31px;height:34px;width:34px}.composer{padding:8px 14px max(8px,env(safe-area-inset-bottom));background:white}.composer-box{padding:9px 12px;border-radius:14px}.composer textarea{min-height:46px;font-size:16px}.composer-meta>span{display:none}.composer-meta{min-height:22px}.entry-page{padding:24px}.entry-language-bar{margin-bottom:26px;flex-wrap:wrap;gap:10px}.entry-layout{grid-template-columns:1fr;gap:28px}.entry-hero h1{font-size:36px}.entry-intro{margin-bottom:20px}.entry-auth{max-width:600px;width:100%;padding:24px}.entry-flow ol{gap:20px}.entry-trust-note{margin-top:20px}.quote-note{margin-bottom:8px}}
@media(max-width:420px){.brand-title{font-size:14px}.topbar-right .language-chip{display:none}.chat-heading{padding:10px 14px}.chat-heading h1{font-size:16px}.chat-heading p{max-width:200px}.chat-heading select{max-width:115px}.chat-messages{padding:18px 12px}.chat-bubble{padding:12px}.option-choice{padding:10px;font-size:14px}.inline-actions{gap:6px}.inline-actions button{font-size:13px;padding:8px 10px}.advisor-guide{padding:20px}.guide-content h2{font-size:21px}.guide-illustration{padding:18px;gap:15px}.entry-page{padding:20px 18px}.entry-flow ol{grid-template-columns:1fr;gap:14px}.entry-hero h1{font-size:32px}.entry-auth{padding:22px}.ai-waiting{min-width:0;width:100%}}
@media(max-height:620px){.chat-heading p,.conversation-welcome small,.composer-meta>span{display:none}.chat-heading{padding-top:9px;padding-bottom:9px}.composer textarea{min-height:36px;max-height:15vh}.composer{padding-top:5px;padding-bottom:5px}.conversation-welcome{padding-bottom:15px}.guide-illustration{min-height:70px;margin:10px 0;padding:12px}.guide-content p{min-height:0;margin-bottom:12px}.guide-footnote{margin-top:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.option-choice:hover,button:active,.button-link:active{transform:none!important}.output-active::after{display:none}}

/* Keep upload queues inside the composer, including on small screens. */
#pending-files{max-height:min(112px,16dvh);overflow-y:auto;scrollbar-width:thin}
.chat-message.is-restored{animation:none}
@media(max-width:850px){
  .entry-hero{display:contents}
  .entry-layout{gap:0}
  .entry-kicker{grid-row:1}
  .entry-hero>h1{grid-row:2}
  .entry-intro{grid-row:3}
  .entry-auth{grid-row:4;margin:4px 0 28px}
  .entry-flow{grid-row:5}
  .entry-trust-note{grid-row:6}
}

/* Visible thinking state and text-only output feedback. */
.chat-bubble.ai-waiting{width:min(460px,100%);padding:20px 22px;background:linear-gradient(135deg,#f0f8f5,#f8fbfc);border-color:#c4ddd5;border-radius:14px;box-shadow:0 6px 22px #164b3e0b}
.thinking-emblem{position:relative;display:grid;place-items:center;width:44px;height:44px;flex:none}
.thinking-emblem .advisor-spinner{position:absolute;width:42px;height:42px;border-width:3px;border-color:#d1e8df;border-top-color:#08756b;border-right-color:#6cb4a1;animation:advisor-spin 1.15s linear infinite}
.thinking-symbol{font-size:25px;color:#08756b;line-height:1;animation:thinking-breathe 1.8s ease-in-out infinite}
.thinking-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.thinking-label{font-size:13px;letter-spacing:.04em;font-weight:650;color:#08756b}
.ai-waiting .waiting-line{flex-wrap:nowrap;gap:13px}
.ai-waiting .waiting-text{font-size:15px;min-width:0;line-height:1.65;color:#234b47}
.ai-waiting .waiting-dots{gap:5px;align-self:center}
.ai-waiting .waiting-dots i{width:7px;height:7px;animation:thinking-dot 1.35s ease-in-out infinite}
.ai-waiting .waiting-dots i:nth-child(2){animation-delay:.18s}
.ai-waiting .waiting-dots i:nth-child(3){animation-delay:.36s}
.thinking-skeleton{display:grid;gap:8px;margin:17px 0 15px;padding-left:57px}
.thinking-skeleton span{display:block;height:6px;border-radius:6px;background:linear-gradient(100deg,#e0eee7 15%,#a8cec0 45%,#e0eee7 75%);background-size:220% 100%;animation:thinking-shimmer 1.8s linear infinite}
.thinking-skeleton span:nth-child(2){width:83%;animation-delay:.15s}
.thinking-skeleton span:nth-child(3){width:61%;animation-delay:.3s}
.thinking-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#5a746d}
.thinking-hint{font-size:12px;line-height:1.5}.thinking-footer .waiting-elapsed{margin:0;white-space:nowrap;font-size:12px}
.output-status{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--work-accent);line-height:1.5;margin-bottom:12px}
.output-status-marker{width:7px;height:7px;background:var(--work-accent);border-radius:50%;animation:thinking-breathe 1.2s ease-in-out infinite}
.is-revealing{min-height:76px;min-width:min(280px,100%)}
.output-active::after{width:3px;height:1.1em;margin-left:3px;vertical-align:-3px}
#show-all-output{flex-shrink:0;white-space:nowrap;font-size:12px;padding:3px 6px;min-height:26px;border-color:#cee1d9;background:#f2f8f5;color:var(--work-accent);margin-top:4px}
.composer-meta:has(#show-all-output) #composer-hint{display:none}
@keyframes thinking-breathe{0%,100%{opacity:.45;transform:scale(.9)}50%{opacity:1;transform:scale(1.08)}}
@keyframes thinking-dot{0%,65%,100%{opacity:.3;transform:translateY(0)}32%{opacity:1;transform:translateY(-5px)}}
@keyframes thinking-shimmer{from{background-position:180% 0}to{background-position:-40% 0}}
@media(max-width:500px){.chat-bubble.ai-waiting{padding:16px 14px}.thinking-skeleton{padding-left:0}.thinking-emblem{width:36px;height:36px}.thinking-emblem .advisor-spinner{width:35px;height:35px}.thinking-symbol{font-size:22px}.thinking-footer{align-items:flex-start}.thinking-hint{max-width:70%}.ai-waiting .waiting-line{gap:9px}.ai-waiting .waiting-dots{gap:3px}.ai-waiting .waiting-dots i{width:5px;height:5px}.thinking-copy .waiting-text{font-size:14px}.is-revealing{min-width:0;width:100%}}
@media(prefers-reduced-motion:reduce){.thinking-symbol,.thinking-emblem .advisor-spinner,.ai-waiting .waiting-dots i,.thinking-skeleton span,.output-status-marker{animation:none!important}.thinking-skeleton span{background:#dcece4}.output-status-marker{opacity:1}.output-active::after{display:none}}

/* Keep essential activity indicators alive for the entire pending request.
   Decorative motion may be disabled; the ring and three dots still show activity. */
.ai-waiting .thinking-emblem .advisor-spinner {
    border-color: #d1e5df;
    border-top-color: #00776a;
    border-right-color: #00776a;
    animation: advisor-spin .95s linear infinite !important;
    animation-play-state: running !important;
    will-change: transform;
}
.ai-waiting .thinking-emblem .advisor-spinner::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    top: 1px;
    right: 2px;
    border-radius: 50%;
    background: #00776a;
}
.ai-waiting .waiting-dots { flex-shrink: 0; min-width: 33px; }
.ai-waiting .waiting-dots i {
    display: block;
    width: 7px;
    height: 7px;
    background: #00776a;
    animation: thinking-dot-active 1.2s ease-in-out infinite !important;
    animation-play-state: running !important;
    will-change: transform, opacity;
}
.ai-waiting .waiting-dots i:nth-child(2) { animation-delay: .16s !important; }
.ai-waiting .waiting-dots i:nth-child(3) { animation-delay: .32s !important; }
@keyframes thinking-dot-active {
    0%, 65%, 100% { transform: translateY(2px); opacity: .28; }
    32% { transform: translateY(-5px); opacity: 1; }
}
@keyframes thinking-dot-soft {
    0%, 65%, 100% { opacity: .3; }
    32% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .ai-waiting .thinking-emblem .advisor-spinner { animation-duration: 2.4s !important; }
    .ai-waiting .waiting-dots i {
        animation-name: thinking-dot-soft !important;
        animation-duration: 1.8s !important;
        transform: none;
    }
}

/* The logo, title and panel controls share one compact, expandable header. */
:root{--advisor-header-height:56px}
.advisor-unified-header{background:#fff;border-bottom:1px solid var(--work-line);position:relative;z-index:10}
.unified-header-main{max-width:1600px;margin:auto;min-height:55px;padding:8px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.unified-brand{display:flex;align-items:center;gap:10px;min-width:0}
.unified-brand .brand-mark{width:30px;height:30px;border-radius:8px;font-size:23px;line-height:30px;flex:none}
.unified-brand-copy{display:flex;align-items:center;gap:12px;min-width:0}
.unified-brand-copy .brand-title{font-size:14px;font-weight:650;white-space:nowrap}
.unified-brand-copy .brand-subtitle{font-size:12px;color:var(--work-muted);margin:0;white-space:nowrap;border-left:1px solid var(--work-line);padding-left:12px}
.unified-header-tools{display:flex;align-items:center;gap:7px;flex-shrink:0}
.unified-header-tools select{font-size:12px;max-width:150px;height:36px;padding:6px 9px;background:#fafcfc}
.header-icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:7px;border:1px solid transparent;background:transparent;color:var(--work-muted);border-radius:8px}
.header-icon-button:not(:disabled):hover{background:var(--work-accent-soft);color:var(--work-accent);border-color:#cfe2dc}
.header-icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.header-icon-button[aria-expanded=true]{color:var(--work-accent);background:#f0f7f4}
.panel-arrow{transform-origin:9.5px 12px;transition:transform .26s ease}
.sidebar-toggle[aria-expanded=false] .panel-arrow{transform:rotate(180deg)}
.panel-fill{fill:currentColor;stroke:none;opacity:.18;transition:opacity .22s ease}
.sidebar-toggle[aria-expanded=false] .panel-fill{opacity:0}
.heading-toggle svg{transition:transform .24s ease}
.heading-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.heading-reveal{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows .24s ease,opacity .18s ease,visibility 0s .24s}
.advisor-unified-header[data-expanded=true] .heading-reveal{grid-template-rows:1fr;opacity:1;visibility:visible;transition:grid-template-rows .24s ease,opacity .18s ease,visibility 0s}
.heading-clip{min-height:0;overflow:hidden}
.heading-content{max-width:1600px;margin:auto;padding:0 24px 12px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.heading-content h1{font-size:21px;line-height:1.4;letter-spacing:-.5px;font-weight:650;margin:0}
.heading-content p{font-size:13px;line-height:1.5;color:var(--work-muted);margin:3px 0 0}
.heading-meta{display:flex;align-items:center;gap:12px;flex-shrink:0}
.heading-meta .topbar-chip,.heading-meta .save-chip{font-size:11px}
.advisor-simple-header{height:56px}
.advisor-layout{height:calc(100dvh - var(--advisor-header-height));grid-template-columns:minmax(0,1fr) 324px;transition:grid-template-columns .26s ease}
.advisor-layout[data-sidebar=collapsed]{grid-template-columns:minmax(0,1fr) 0px}
.advisor-layout>.summary-panel{padding:0;min-width:0;overflow-x:hidden;opacity:1;visibility:visible;transform:translateX(0);transition:opacity .2s ease,transform .26s ease,visibility 0s}
.summary-inner{width:324px;padding:24px;box-sizing:border-box}
.summary-title{font-size:17px;line-height:1.5;letter-spacing:-.3px;font-weight:650;margin:0}
.advisor-layout[data-sidebar=collapsed]>.summary-panel{opacity:0;visibility:hidden;transform:translateX(28px);pointer-events:none;transition:opacity .18s ease,transform .26s ease,visibility 0s .26s}
.intake-round{font-size:12px;color:var(--work-accent);padding:7px 32px;background:#f0f8f5;border-bottom:1px solid #e4f0eb}
.plan-full[open]{margin:12px 0 24px;border-bottom:1px solid var(--work-line);padding-bottom:20px}
.plan-full>summary{cursor:pointer;font-size:14px;color:var(--work-accent)}
.plan-compact h3{margin:0 0 16px;font-size:18px}
.plan-question-history{margin:12px 0 24px;font-size:13px}
.plan-preview.is-revealing .plan-full>summary{pointer-events:none}
.advisor-report .report-item{min-width:0;overflow-wrap:anywhere}
@media(min-width:851px){.advisor-layout[data-sidebar=collapsed] .chat-messages,.advisor-layout[data-sidebar=collapsed] .composer{padding-left:clamp(24px,9vw,155px);padding-right:clamp(24px,9vw,155px)}}
@media(max-width:850px){
 .advisor-layout,.advisor-layout[data-sidebar=collapsed]{height:calc(100dvh - var(--advisor-header-height));position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 .advisor-layout>.chat-workspace{grid-column:1;grid-row:1;min-height:0}
 .advisor-layout>.summary-panel{position:absolute;z-index:5;inset:0 0 0 auto;width:min(360px,94%);max-height:100%;overflow-y:auto;background:#f7f9fa;border-left:1px solid var(--work-line);box-shadow:-12px 0 32px #173e3b22}
 .advisor-layout[data-sidebar=collapsed]>.summary-panel{transform:translateX(100%)}
 .summary-inner{width:100%;padding:20px}
 .unified-header-main{padding:8px 14px;gap:8px}
 .unified-brand-copy{flex-direction:column;align-items:flex-start;gap:0}
 .unified-brand-copy .brand-subtitle{border:0;padding:0;font-size:11px}
 .heading-content{padding:0 14px 10px}
 .heading-content h1{font-size:18px}
 .heading-content p{font-size:12px}
 .heading-meta{display:none}
 .intake-round{padding:6px 16px}
}
@media(max-width:480px){
 .unified-brand-copy{display:none}
 .unified-header-tools{gap:4px}
 .unified-header-tools select{max-width:130px}
}

/* Keep native file-input focus from scrolling the workspace toward the offscreen sidebar. */
.advisor-layout{overflow:clip}.attachment-label{position:relative}.attachment-label input{left:0;top:0;overflow:hidden;clip-path:inset(50%)}
/* Mixed attachment queue: bounded on small screens, with persistent limits. */
#pending-files{max-height:112px;overflow-y:auto}.attachment-count,.attachment-hint,.attachment-error{font-size:12px;line-height:1.5;margin:5px 0;color:var(--work-muted)}.attachment-error{color:#9c2a1a}.attachment-count{font-variant-numeric:tabular-nums}.attachment-hint{margin-bottom:0}.attachment-tools{flex-wrap:wrap;gap:4px 10px}
@media(max-width:600px){#pending-files{max-height:80px}.attachment-hint{font-size:11px}.attachment-label{font-size:13px}}
