.client-redesign main#app:has(.guided-workspace){padding:0}
.guided-workspace{display:grid;grid-template-columns:minmax(330px,390px) minmax(0,1fr);height:calc(100dvh - 56px);min-height:620px;background:#fff;overflow:hidden}
.client-redesign .conversation.guided-onboarding{display:flex;flex-direction:column;width:100%;max-width:none;height:100%;margin:0;padding:24px 14px 14px;border-right:1px solid var(--line);background:#fff;overflow:hidden}
.guided-chat-scroll{flex:1 1 auto;min-height:120px;overflow:auto;padding:2px 10px 18px;scrollbar-width:thin}
/* Keep the scrollbar gutter stable; only its thumb appears during activity. */
:where(.client-redesign,.client-redesign *){scrollbar-width:thin;scrollbar-color:transparent transparent}
:where(.client-redesign,.client-redesign *).scrollbar-active{scrollbar-color:rgb(116 116 116 / 30%) transparent}
:where(.client-redesign,.client-redesign *)::-webkit-scrollbar{width:6px;height:6px;background:transparent}
:where(.client-redesign,.client-redesign *)::-webkit-scrollbar-track,
:where(.client-redesign,.client-redesign *)::-webkit-scrollbar-corner{background:transparent;border:0;box-shadow:none}
:where(.client-redesign,.client-redesign *)::-webkit-scrollbar-button{display:none}
:where(.client-redesign,.client-redesign *)::-webkit-scrollbar-thumb{background:transparent;border:0;border-radius:999px}
:where(.client-redesign,.client-redesign *).scrollbar-active::-webkit-scrollbar-thumb{background:rgb(116 116 116 / 30%)}
.guided-stage{position:relative;display:grid;place-items:center;min-width:0;overflow:hidden;background:#f5f5f7}
.guided-cube{position:relative;width:min(72%,680px);aspect-ratio:1;isolation:isolate}
.guided-cube img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;will-change:transform}
.guided-cube-left{animation:guided-cube-left 9s linear infinite}
.guided-cube-right{animation:guided-cube-right 9s linear infinite}
@keyframes guided-cube-left{0%{transform:translateY(0)}5.556%{transform:translateY(-6.7707%)}11.111%,22.222%{transform:translateY(0)}27.778%{transform:translateY(-6.7707%)}33.333%,44.444%{transform:translateY(0)}50%{transform:translateY(-6.7707%)}55.556%,66.667%{transform:translateY(0)}72.222%{transform:translateY(-6.7707%)}77.778%,88.889%{transform:translateY(0)}94.444%{transform:translateY(-6.7707%)}100%{transform:translateY(0)}}
@keyframes guided-cube-right{0%,11.111%{transform:translateY(0)}16.667%{transform:translateY(-6.7707%)}22.222%,33.333%{transform:translateY(0)}38.889%{transform:translateY(-6.7707%)}44.444%,55.556%{transform:translateY(0)}61.111%{transform:translateY(-6.7707%)}66.667%,77.778%{transform:translateY(0)}83.333%{transform:translateY(-6.7707%)}88.889%,100%{transform:translateY(0)}}
.guided-onboarding .user-line{width:fit-content;max-width:78%;margin:0 0 34px auto;padding:12px 16px;border-radius:14px 14px 4px 14px;background:#f3f3f3;color:var(--ink);line-height:22px}
.client-redesign .guided-onboarding .assistant,.client-redesign .guided-upload .assistant{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:12px;margin:24px 0}
.client-redesign .guided-onboarding .assistant>img,.client-redesign .guided-upload .assistant>img{display:block;width:24px;height:24px;margin:1px 0 0;padding:4px;border:1px solid var(--line);border-radius:7px;background:#fff;object-fit:contain}
.client-redesign .guided-onboarding .assistant-copy>p,.client-redesign .guided-onboarding .assistant-copy>p:only-child{margin-bottom:24px;font-size:14px;line-height:22px;letter-spacing:normal}
.guided-form-stack{flex:0 0 auto;display:grid;gap:8px;padding:0 0 10px}
.guided-question-card{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.06)}
.guided-question-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 12px 10px}
.guided-question-head strong{min-width:0;font-size:13px;line-height:18px;font-weight:500}
.guided-question-progress{display:flex;align-items:center;gap:5px;white-space:nowrap;color:var(--muted);font-size:12px}
.guided-question-progress button{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;background:transparent;color:var(--muted)}
.guided-question-progress button:disabled{opacity:.32}
.guided-question-progress .mui-icon{width:14px;height:14px}
.guided-question-progress small{font-size:12px;font-weight:400}
.guided-option-list{padding:0 6px 6px}
.guided-option-list>button{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr) 18px;align-items:center;gap:6px;width:100%;min-height:38px;padding:5px 7px;margin-bottom:1px;border:0;border-radius:8px;background:#fff;color:var(--ink);font-size:13px;text-align:left}
/* The divider is separate from the rounded interactive surface. */
.guided-option-list>button:after{content:'';position:absolute;left:8px;right:8px;bottom:-1px;height:1px;border-radius:0;background:var(--line);pointer-events:none}
.client-redesign .guided-option-list>button.is-default{box-shadow:inset 0 0 0 1px #999}
.guided-option-list>button.is-default:after{display:none}
.client-redesign .guided-option-list>button:focus-visible{background:#f3f3f5;outline-offset:-2px}
.client-redesign .guided-option-list>button:hover:not(:disabled){background:#f3f3f5}
.guided-option-list>button .mui-icon{width:15px;height:15px;color:var(--muted)}
.guided-option-number{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#f1f1f3;color:var(--muted);font-size:11px}
.guided-option-last{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 2px 0}
.guided-option-last .text-action:first-child{justify-content:flex-start;min-width:0;color:var(--muted);font-weight:400}
.guided-option-last .text-action:last-child{background:#f1f1f3;color:var(--muted);font-weight:400}
.guided-answer-row{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:4px 0 28px 40px}
.guided-answer-bubble{max-width:78%;padding:10px 14px;border-radius:14px 14px 4px 14px;background:#f3f3f3;color:var(--ink);line-height:22px}
.guided-custom-answer{margin:10px 0 0!important;color:var(--ink)}
.guided-brief{margin-left:34px;box-shadow:none;border-radius:12px}
.guided-brief .brief-row{grid-template-columns:120px 1fr;padding:12px 16px;line-height:22px}
.guided-brief .brief-row>span{color:var(--muted);font-size:13px}
.guided-brief strong{font-size:14px;font-weight:400}
.guided-onboarding .brief-actions{margin-left:34px;gap:12px}
.guided-onboarding .brief-actions button{white-space:nowrap;flex-shrink:0}
.guided-back{flex:0 0 auto;padding:2px 2px 0;background:#fff}
.guided-reply{margin:24px 0 28px 34px}
.guided-reply>label{margin:0 0 10px;font-size:14px;line-height:22px}
.guided-reply-box{display:flex;align-items:flex-end;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}
.guided-reply-box:focus-within{outline:2px solid #737373;outline-offset:3px}
.client-redesign .guided-reply-box textarea{display:block;width:100%;min-height:52px;padding:0;border:0;background:transparent;resize:vertical;line-height:22px;outline:none;box-shadow:none}
.guided-reply-box .send{flex-shrink:0}
.guided-reply--composer{margin:0}
.guided-reply--composer>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.guided-reply--composer .guided-reply-box{display:flex;min-height:105px;flex-direction:column;align-items:stretch;justify-content:space-between;gap:12px;padding:12px;border-radius:12px}
.guided-reply--composer .guided-reply-box:before{content:'Or reply directly…';color:var(--muted);font-size:13px;line-height:18px;pointer-events:none}
.guided-reply--composer textarea{min-height:30px!important;resize:none!important}
.guided-composer-tools{display:flex;align-items:center;justify-content:space-between;gap:8px}
.guided-attach{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:#f2f2f4;color:var(--muted)}
.guided-attach .mui-icon{width:16px;height:16px}
.guided-edit-choices{margin-left:34px;margin-bottom:20px}
/* Secondary actions follow the neutral Design System button component. */
.client-redesign button.text-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto;min-height:30px;padding:5px 8px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);font-size:13px;line-height:18px;font-weight:500}
.client-redesign button.text-action:hover:not(:disabled){width:auto;border-color:transparent;background:#f3f3f3;color:var(--ink);text-decoration:none}
.client-redesign button.text-action .mui-icon{width:15px;height:15px}
.guided-upload .assistant-copy>p{margin:0 0 8px;font-size:14px;line-height:22px}
.guided-upload .assistant-copy h3{margin:0 0 4px;font-size:14px;line-height:20px}
.guided-upload .assistant-copy .muted{margin:0;color:var(--muted);font-size:13px}
.guided-upload-zone{margin:12px 0 24px 40px;padding:18px;border:1px dashed rgba(0,0,0,.18);border-radius:12px;background:#fafafa}
.guided-upload-zone p{margin:0 0 12px;color:var(--muted);font-size:13px}
.guided-upload-files{margin:0 0 24px 40px;border-top:1px solid var(--line)}
.guided-upload-file{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.guided-upload-file b,.guided-upload-file small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.guided-upload-file b{font-size:13px;font-weight:500}.guided-upload-file small{color:var(--muted);font-size:12px}
.guided-upload-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 0 40px}
@media(max-width:900px){.guided-workspace{grid-template-columns:minmax(310px,360px) minmax(0,1fr)}.guided-cube{width:min(82%,560px)}}
@media(max-width:720px){.client-redesign main#app:has(.guided-workspace){padding:0}.guided-workspace{display:block;height:auto;min-height:calc(100dvh - 56px)}.client-redesign .conversation.guided-onboarding{height:auto;min-height:calc(100dvh - 56px);border-right:0}.guided-stage{display:none}.guided-onboarding .user-line{margin-left:auto}.guided-brief .brief-row{grid-template-columns:90px 1fr}.guided-brief,.guided-reply,.guided-edit-choices,.guided-onboarding .brief-actions,.guided-answer-row,.guided-upload-zone,.guided-upload-files,.guided-upload-actions{margin-left:0}}
@media(prefers-reduced-motion:reduce){.guided-cube img{animation:none}}
.guided-chat-file{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:start;gap:12px;margin:12px 0 16px 28px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fafafa}
.client-redesign .guided-chat-file button.guided-chat-thumbnail{display:block;width:72px;height:94px;padding:0;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#fff;cursor:zoom-in;box-shadow:0 1px 3px #00000008}
.guided-chat-thumbnail:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.guided-chat-file strong,.guided-chat-file small{display:block;overflow-wrap:anywhere}
.guided-chat-file strong{font-size:13px;font-weight:500;line-height:20px}
.guided-chat-file small{font-size:12px;color:var(--muted);margin-top:3px}
.guided-chat-file-info{min-width:0}
.guided-chat-file-info .text-action{margin:10px 0 0 -8px}
.guided-document-card>p{padding:0 12px;margin:0 0 12px;color:var(--muted);font-size:13px;line-height:20px}
.guided-document-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 12px 12px}
.guided-document-actions button{display:inline-flex;align-items:center;gap:6px;font-size:13px}
.guided-document-actions .mui-icon{width:16px;height:16px}
.guided-document-submit{display:flex;justify-content:flex-end;padding:5px 0}
.client-redesign .guided-document-submit button.primary{width:100%;min-height:48px;padding:13px 20px;font-size:13px;font-weight:500;border:1px solid #111;border-radius:14px;color:#fff;background:#111;box-shadow:none;text-shadow:none;transition:background .18s,transform .18s}
.client-redesign .guided-document-submit button.primary:hover:not(:disabled){color:#fff;border-color:#292929;background:#292929;box-shadow:none}
.client-redesign .guided-document-submit button.primary:active:not(:disabled){transform:translateY(1px);background:#000;box-shadow:none}
.client-redesign .guided-document-submit button.primary:focus-visible{outline:2px solid #596673;outline-offset:3px}
.client-redesign .guided-document-submit button.primary:disabled{color:#92989d;border-color:#e0e3e6;background:linear-gradient(180deg,#f9fafb,#edf0f2);box-shadow:inset 0 1px 0 #fff;text-shadow:none;cursor:not-allowed}
@media(prefers-reduced-motion:reduce){.client-redesign .guided-document-submit button.primary{transition:none}}
.guided-project-stage{display:flex;flex-direction:column;align-items:stretch;background:#fff}
.result-agent-composer{flex:0 0 auto;margin-top:8px;padding:0 2px 4px;min-width:0}
.result-agent-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.result-agent-composer .guided-reply-box textarea{resize:none;max-height:100px;font-size:14px}
.result-agent-source{display:block;color:var(--muted);font-size:11px;line-height:18px;margin-bottom:8px;overflow-wrap:anywhere}
.result-agent-turn .guided-answer-bubble,.result-agent-turn .assistant-copy{overflow-wrap:anywhere;white-space:pre-wrap}
.result-agent-selected{background:#f5f5f5}
.result-agent-file-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap;max-width:160px}
.result-agent-composer .send:disabled{opacity:.35;cursor:default}
.client-redesign .rail.guided-stage-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:0 0 auto;width:calc(100% - 56px);max-width:none;margin:0 28px;padding:0;background:transparent}
.guided-stage-content{display:grid;place-items:center;flex:1;min-height:0;overflow:auto;padding:28px}
.guided-review-pane{align-self:start;width:100%;max-width:760px}
.guided-stage-content>.client-submission{width:100%;max-width:760px;margin:14px auto 36px}
.guided-published-results{align-self:start;width:100%;max-width:780px;padding:24px;background:#fff;border-radius:14px}
.guided-published-results h2{margin:12px 0 24px}.guided-published-results h3{font-size:14px;margin:24px 0 12px}
.guided-demo-tools{display:flex;justify-content:center;gap:8px;padding:8px 12px 12px}
.guided-stage-content>.frame{align-self:start;width:100%;max-width:760px;margin:14px auto 36px;padding:0;background:transparent;border-radius:0}
.guided-stage-content .frame .output-row{overflow-wrap:anywhere}
.guided-intake-design{align-self:start;width:100%;max-width:760px;margin:14px auto 36px}
.client-redesign .guided-intake-design .frame{width:100%;max-width:none;margin:0;padding:0;background:transparent}
.guided-design-section{margin-top:40px;padding-top:32px;border-top:1px solid var(--line);scroll-margin-top:28px}
.guided-intake-section{scroll-margin-top:28px}
@media(max-width:720px){.guided-document-workspace{display:flex;flex-direction:column;height:auto;overflow:visible}.guided-document-workspace .guided-onboarding{min-height:600px;height:75dvh}.guided-document-workspace .guided-project-stage{display:flex;min-height:430px}.client-redesign .rail.guided-stage-nav{width:calc(100% - 36px);margin:0 18px}.guided-stage-content{padding:24px 18px}.guided-document-workspace .guided-cube{width:min(70%,360px)}}
