:root{--ink:#121b32;--muted:#677087;--line:#dbe0eb;--paper:#fff;--wash:#f5f7fb;--blue:#315bd8;--blue2:#2145b9;--orange:#ff8c42;--soft:#eef2ff;--good:#1e9f79;--bad:#b5472f;--shadow:0 24px 70px rgba(26,39,76,.12)}
*{box-sizing:border-box}html{font-size:16px}body{margin:0;background:linear-gradient(135deg,#f7f9fc 0%,#eef3fb 100%);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh}button,select,textarea,input{font:inherit}button{cursor:pointer}main{padding:25px 42px 54px}.topbar{max-width:1050px;margin:0 auto 24px;display:flex;align-items:center;justify-content:space-between}.top-brand{display:flex;align-items:center}.brand-logo{display:block;width:236px;height:auto;max-height:74px;object-fit:contain}.mark{width:43px;height:43px;border-radius:12px;background:linear-gradient(145deg,#ffad62,var(--orange));display:grid;place-items:center;font-weight:850;color:#16203a;box-shadow:0 10px 25px rgba(255,140,66,.3)}.top-brand b{font-size:.96rem}.top-brand small{display:block;color:#8992a5;font-size:.72rem;margin-top:2px}.user-menu{display:flex;align-items:center;gap:11px;border:0;background:transparent;padding:6px 8px;border-radius:12px;color:#3d465b;text-align:right}.user-menu:hover{background:#e9edf7}.user-menu strong{display:block;font-size:.84rem}.user-menu small{display:block;color:#8992a5;font-size:.7rem}.avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(145deg,#315bd8,#203b91);color:white;display:grid;place-items:center;font-weight:850;position:relative;box-shadow:0 5px 13px rgba(49,91,216,.25)}.avatar:after{content:"";width:9px;height:9px;border-radius:50%;background:#2bbb86;border:2px solid white;position:absolute;right:-1px;bottom:0}
.stepper{max-width:720px;margin:0 auto 25px;display:flex;align-items:center;justify-content:center}.stepper-step{display:flex;align-items:center;gap:9px;color:#8b94a7;font-size:.84rem;font-weight:800}.stepper-step span{width:31px;height:31px;border:1px solid #ced5e4;border-radius:50%;display:grid;place-items:center;background:white;font-size:.75rem}.stepper-line{width:100px;height:1px;background:#cfd6e4;margin:0 15px}.stepper-step.active{color:var(--blue)}.stepper-step.active span{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 0 0 5px rgba(49,91,216,.1)}.stepper-step.done span{background:var(--good);border-color:var(--good);color:white}.stepper-step.done{color:#3f5563}.stepper-line.done{background:#67bba1}
.workspace{max-width:1050px;margin:auto;background:var(--paper);border:1px solid rgba(212,218,231,.9);border-radius:24px;box-shadow:var(--shadow);overflow:hidden}.panel{padding:46px 52px 38px}.title-row{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.title-row h1{font-family:Georgia,serif;font-size:2.35rem;line-height:1.12;margin:0 0 12px}.title-row p{margin:0;color:var(--muted);line-height:1.6;max-width:650px}.draft-badge{white-space:nowrap;padding:8px 11px;border:1px solid #e2e6ef;border-radius:999px;color:#7b8498;font-size:.75rem;background:#fafbfc}.sentence{margin:38px 0 30px;padding:0;background:transparent;border:0;border-radius:0;font-family:Georgia,serif;font-size:1.35rem;line-height:2.35}.inline-select{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}.pill-select{position:relative;display:inline-block;vertical-align:middle;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.pill-select-button{border:1px solid #9fb1ee;background:linear-gradient(135deg,#f7f9ff,#e7edff);color:var(--blue2);font-size:1rem;font-weight:800;line-height:1.1;padding:10px 38px 10px 16px;border-radius:999px;box-shadow:0 6px 16px rgba(49,91,216,.1),inset 0 1px 0 rgba(255,255,255,.85);cursor:pointer;position:relative}.pill-select-button:after{content:"";position:absolute;right:15px;top:50%;width:8px;height:8px;border-right:2px solid var(--blue2);border-bottom:2px solid var(--blue2);transform:translateY(-65%) rotate(45deg)}.pill-select-button:hover{border-color:#7892e7;background:linear-gradient(135deg,#fff,#e3ebff)}.pill-select-menu{display:none;position:absolute;left:0;top:calc(100% + 8px);z-index:30;min-width:100%;padding:8px;background:white;border:1px solid #dce3f5;border-radius:18px;box-shadow:0 18px 45px rgba(26,39,76,.18);gap:7px}.pill-select.open .pill-select-menu{display:grid}.pill-select-option{border:1px solid transparent;background:#f7f9fc;color:#526078;text-align:left;border-radius:999px;padding:10px 14px;font-size:.92rem;font-weight:750;white-space:nowrap;cursor:pointer}.pill-select-option:hover,.pill-select-option.selected{background:var(--soft);border-color:#9fb1ee;color:var(--blue2)}label{font-size:.87rem;font-weight:750;display:block;margin-bottom:10px}.required{color:var(--orange)}textarea,input,select{accent-color:var(--blue)}textarea{width:100%;min-height:170px;resize:vertical;border:1px solid #d5dae6;border-radius:14px;padding:18px;color:var(--ink);line-height:1.55;outline:none;background:#fff}input,select{border:1px solid #d5dae6;border-radius:11px;padding:12px 13px;outline:none;color:var(--ink)}textarea:focus,input:focus,select:focus,button:focus-visible{border-color:#7892e7;box-shadow:0 0 0 4px rgba(49,91,216,.12);outline:none}.pill-select-button:focus-visible{border-color:#7892e7;box-shadow:0 0 0 4px rgba(49,91,216,.14),0 8px 20px rgba(49,91,216,.14)}.textarea-meta{display:flex;justify-content:space-between;margin-top:9px;color:#9098a9;font-size:.74rem}.file-zone{margin-top:22px;padding:18px;background:var(--wash);border:1px solid #e5e9f2;border-radius:14px}.file-zone p{margin:10px 0 0;color:var(--muted);font-size:.84rem}.refine,.result{display:none}.refine.show,.result.show{display:block}.hidden{display:none!important}.question-list{display:grid;gap:20px;margin-top:32px}.smart-question{padding:19px;background:var(--wash);border:1px solid #e5e9f2;border-radius:14px}.smart-question textarea{min-height:88px}.solution-pills,.systems{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.solution-pills input,.systems input{position:absolute;opacity:0}.solution-pills label span,.systems label span{display:block;padding:10px 14px;border:1px solid #d9deea;border-radius:999px;background:white;color:#5d667b;cursor:pointer}.solution-pills input:checked+span,.systems input:checked+span{background:var(--soft);border-color:#8fa4eb;color:var(--blue2);box-shadow:0 0 0 2px rgba(49,91,216,.07)}.ai-note{display:flex;gap:11px;align-items:flex-start;background:#f1f5ff;border-left:3px solid var(--blue);padding:13px 15px;border-radius:8px;color:#59647b;font-size:.82rem;line-height:1.5;margin-top:22px}.actions{padding:23px 52px;border-top:1px solid #e5e8ef;background:#fafbfc;display:flex;justify-content:space-between;align-items:center}.save{border:0;background:transparent;color:#727b90;font-weight:700}.primary,.secondary,.danger{border:0;border-radius:12px;padding:14px 21px;font-weight:780}.primary{background:linear-gradient(135deg,var(--blue),var(--blue2));color:white;box-shadow:0 9px 20px rgba(49,91,216,.24)}.secondary{border:1px solid #d9deea;background:white;color:#596277}.danger{background:#fff1ed;color:var(--bad);border:1px solid #ffc6b7}.error{color:var(--bad);min-height:1.2em;font-size:.86rem}.result-head{padding:38px 52px 25px;border-bottom:1px solid #e8ebf1}.result-head h2{font-family:Georgia,serif;margin:0 0 8px;font-size:2rem}.result-head p{margin:0;color:var(--muted)}.blueprint{padding:30px 52px 44px;display:grid;grid-template-columns:1.08fr .92fr;gap:22px}.card{border:1px solid #e0e4ed;border-radius:16px;padding:22px;background:white}.card.wide{grid-column:1/-1}.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.card h3{margin:0;font-size:1rem}.pill{background:#e8f8f2;color:#157d5d;padding:6px 9px;border-radius:999px;font-size:.7rem;font-weight:800}.recommend{display:flex;gap:14px;align-items:center}.model-icon{width:48px;height:48px;background:#17213a;color:#ff9c52;border-radius:12px;display:grid;place-items:center;font-weight:850}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:18px}.metric{background:var(--wash);border-radius:10px;padding:11px}.metric small{display:block;color:#8a93a5;font-size:.68rem}.prompt-box,.json-box{white-space:pre-wrap;background:#111a30;color:#dbe3f7;border-radius:12px;padding:19px;font:.79rem/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;max-height:270px;overflow:auto}.setup{margin:0;padding:0;list-style:none;display:grid;gap:12px}.setup li{display:flex;gap:11px;align-items:flex-start;color:#566076;font-size:.9rem;line-height:1.45}.setup span{min-width:23px;height:23px;border-radius:50%;background:var(--soft);color:var(--blue);display:grid;place-items:center;font-size:.7rem;font-weight:800}
.profile-overlay{position:fixed;inset:0;background:rgba(10,18,38,.48);backdrop-filter:blur(5px);display:none;justify-content:flex-end;z-index:20}.profile-overlay.open{display:flex}.profile-drawer{width:min(540px,100%);height:100%;background:white;box-shadow:-24px 0 70px rgba(10,20,49,.22);overflow:auto}.profile-head{padding:26px 30px;border-bottom:1px solid #e5e8ef;display:flex;justify-content:space-between;align-items:center}.profile-title{display:flex;align-items:center;gap:13px}.profile-title h2{margin:0;font-family:Georgia,serif;font-size:1.45rem}.profile-title p{margin:3px 0 0;color:var(--muted);font-size:.78rem}.close{width:38px;height:38px;border:0;border-radius:10px;background:var(--wash);color:#5f687c}.tabs{display:flex;gap:4px;padding:18px 30px 0;border-bottom:1px solid #e8ebf1}.tab{border:0;background:transparent;color:#7a8396;padding:11px 13px;border-bottom:2px solid transparent;font-weight:750;font-size:.84rem}.tab.active{color:var(--blue);border-color:var(--blue)}.tab-panel{display:none;padding:28px 30px 38px}.tab-panel.active{display:block}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.profile-field.full{grid-column:1/-1}.profile-field input,.profile-field select{width:100%}.section-label{margin:25px 0 12px}.profile-actions{margin-top:28px;display:flex;justify-content:flex-end;gap:10px}.saved-list{display:grid;gap:12px}.saved-plan{border:1px solid #e0e4ed;border-radius:13px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.saved-plan h3{margin:0 0 4px;font-size:.9rem}.saved-plan p{margin:0;color:#8992a4;font-size:.74rem}.saved-plan-actions{display:flex;gap:8px;flex-wrap:wrap}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:#121b32;color:white;padding:12px 17px;border-radius:10px;opacity:0;pointer-events:none;transition:.2s;z-index:40;font-size:.84rem}.toast.show{opacity:1;transform:translate(-50%,0)}
.close svg{display:block;width:20px;height:20px;margin:auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
@media(max-width:850px){main{padding:18px 15px 45px}.panel,.result-head{padding:32px 24px}.actions{padding:19px 24px}.blueprint{padding:24px;grid-template-columns:1fr}.card.wide{grid-column:auto}.title-row{display:block}.draft-badge{display:inline-block;margin-top:16px}.sentence{font-size:1.12rem}.form-grid{grid-template-columns:1fr}.profile-field.full{grid-column:auto}.user-menu:not(.avatar-only)>div:first-child,.top-brand small{display:none}.topbar{gap:16px}.top-brand{min-width:0}.brand-logo{width:min(210px,62vw)}.user-menu.avatar-only{display:flex;flex:0 0 auto}.stepper-line{width:34px;margin:0 7px}.stepper-step{font-size:.76rem}.metrics{grid-template-columns:1fr}.textarea-meta{display:block}}

.choice-icon{width:24px;height:24px;display:block;object-fit:contain}
.pill-select-button{min-width:46px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.pill-select-button:has(.choice-icon){padding:8px 13px}
.pill-select-button:has(.choice-icon):after{display:none}
.pill-select-option.selected:after{content:"";width:7px;height:7px;border-radius:50%;background:var(--blue);margin-left:10px;display:inline-block;vertical-align:middle}
.input-tools{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;justify-content:flex-start}
.tool-button{display:inline-flex;align-items:center;gap:8px;border:1px solid #d9deea;background:white;color:#596277;border-radius:999px;padding:10px 14px;font-weight:750;cursor:pointer}
.tool-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tool-button:hover,.tool-button.active{border-color:#8fa4eb;background:var(--soft);color:var(--blue2)}
.check-button{width:48px;height:48px;border:0;border-radius:50%;display:grid;place-items:center;background:#d8deea;color:white;font-size:1.35rem;font-weight:900;box-shadow:none;cursor:not-allowed;transition:background .18s ease,box-shadow .18s ease,transform .18s ease}
.check-button.ready{background:linear-gradient(135deg,var(--blue),var(--blue2));box-shadow:0 9px 20px rgba(49,91,216,.24);cursor:pointer}
.check-button.ready:hover{transform:translateY(-1px)}
.hidden-file-input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}
.file-status{margin:10px 0 0;color:var(--muted);font-size:.84rem}
.file-chip-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
.file-chip{display:inline-flex;align-items:center;border:1px solid #d9deea;background:#fff;border-radius:999px;padding:6px 10px;color:#596277;font-size:.78rem;font-weight:750}
.sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.conversation-step{margin-top:18px}
.workspace.collapsed{cursor:default}
.workspace.collapsed .panel{padding:24px 32px}
.workspace.collapsed .title-row h1{font-size:1.18rem;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:0}
.workspace.collapsed .sentence{margin:12px 0 0;font-size:1rem;line-height:1.9;color:#4e5a73}
.conversation-answer{border-left:3px solid var(--blue);padding:2px 0 2px 15px;color:#3f4b64}
.conversation-answer b{font-size:.92rem}
.conversation-answer p{margin:7px 0 0;color:#677087;line-height:1.55}
.workspace.collapsed #descriptionGroup,.workspace.collapsed .sentence,.workspace.collapsed .actions{display:none}
.workspace.collapsed:after{content:"";display:block;padding-bottom:18px}
.smart-question label{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:1rem;line-height:1.45;color:var(--ink)}
.answer-pills{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:12px 0}
.answer-pills .check-button{flex:0 0 38px;width:38px;height:38px;font-size:1.1rem}
.answer-help{margin:6px 0 0!important;color:#7b8498!important;font-size:.8rem}
.answer-pill{border:1px solid #d9deea;background:white;color:#5d667b;border-radius:999px;padding:9px 13px;font-size:.84rem;font-weight:750;cursor:pointer}
.answer-pill:hover,.answer-pill.selected{background:var(--soft);border-color:#8fa4eb;color:var(--blue2);box-shadow:0 0 0 2px rgba(49,91,216,.07)}
.submit-selected-answer{width:44px;height:44px}
.submit-selected-answer:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.refine-note{margin:18px 0 0;color:#677087;font-size:.95rem;line-height:1.5}
.ai-note{display:none}
.smart-question{background:transparent;border:0;padding:0}
.file-zone{background:transparent;border:0;padding:0}
.actions{background:white}
.metric{background:white;border:1px solid #e0e4ed}
.setup span{background:white;border:1px solid #d9deea}
.recommend small{display:block;margin-top:5px}
.model-icon{background:white;border:1px solid #d9deea;overflow:hidden}
.model-icon img{width:34px;height:34px;object-fit:contain}
.recommendation-card .metrics{max-width:520px}
.why-text{margin:18px 0 0;color:#3f4b64;line-height:1.55;max-width:760px}
.setup-card .card-top{gap:16px;align-items:flex-start}
.setup a{color:var(--blue2);font-weight:800}
.required{display:none!important}
.workspace{overflow:visible}
.pill-select-menu{z-index:100}
.textarea-shell{position:relative}
.textarea-shell textarea{min-height:62px;height:62px;overflow:hidden;padding-right:72px;padding-bottom:18px;resize:none}
.textarea-shell .check-button{position:absolute;right:10px;top:50%;transform:translateY(-50%)}
.textarea-shell .check-button.ready:hover{transform:translateY(-50%)}
.under-textarea-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-top:10px}
.textarea-count{color:#9098a9;font-size:.74rem;white-space:nowrap;padding-top:3px}
.refine.conversation-step{margin-top:20px;padding-top:0;border-top:0}
.refine .title-row h1,#descriptionLabel,.smart-question label,.section-label{font-family:Georgia,serif;font-size:1.35rem;line-height:1.45;font-weight:400;color:var(--ink)}
#definePanel>.panel>.title-row h1{font-family:Georgia,serif;font-size:1.35rem;line-height:1.45;font-weight:400;color:var(--ink)}
.refine .title-row h1{margin:0}
.question-list{margin-top:24px}
.refine-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding-top:22px;border-top:1px solid #e8ebf1}
.user-menu.avatar-only{padding:4px;border-radius:50%;text-align:center}
.user-menu.avatar-only:hover{background:transparent}
.classification-suggestion{margin:20px 0 0;border-left:3px solid var(--blue);padding:2px 0 2px 15px;color:#3f4b64}
.classification-suggestion p{margin:0 0 13px;line-height:1.55}
.classification-suggestion div{display:flex;gap:10px;flex-wrap:wrap}
.build-plan-card .card-top{align-items:flex-start;gap:18px}
.build-plan-card .card-top p{margin:8px 0 0;color:#59647b;line-height:1.5;max-width:720px}
.build-plan{margin:0;padding:0;list-style:none;display:grid;gap:20px}
.build-plan>li{display:grid;grid-template-columns:34px 1fr;gap:14px;align-items:start}
.build-plan>li>span{width:34px;height:34px;border-radius:50%;background:var(--soft);color:var(--blue);display:grid;place-items:center;font-weight:850;font-size:.82rem}
.build-plan h4{margin:2px 0 7px;font-size:1rem}
.build-plan p{margin:0;color:#566076;line-height:1.55}
.step-code-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:13px 0 8px}
.step-code-head small{color:#7b8498;font-weight:800;text-transform:uppercase;font-size:.65rem;letter-spacing:.04em}
.chat-turn{line-height:1.55}
.chat-turn label{margin-bottom:7px}
.chat-turn p{margin:0;color:#566076}
.user-turn p{font-family:Georgia,serif;font-size:1.35rem;line-height:1.45;font-weight:400;color:#566076}
.user-turn{border-left:3px solid var(--blue);padding-left:15px}
.assistant-turn{border-left:3px solid var(--good);padding-left:15px}
.conversation-row{display:flex;align-items:flex-start;gap:12px;width:95%}
.user-message-row{margin-right:5%}
.ai-message-row{margin-left:5%}
.conversation-row .chat-turn{flex:1;min-width:0}
.conversation-avatar,.conversation-ai-icon{flex:0 0 38px;width:38px;height:38px;border-radius:50%}
.conversation-avatar{display:grid;place-items:center;background:linear-gradient(145deg,#315bd8,#203b91);background-size:cover;background-position:center;color:#fff;font-size:.75rem;font-weight:850;box-shadow:0 5px 13px rgba(49,91,216,.2)}
.conversation-avatar.has-image{color:transparent}
.conversation-ai-icon{object-fit:contain;background:#fff}
.prompt-result{grid-template-columns:1fr}
.result-actions-head{display:block}
.result-actions{display:flex;gap:9px;flex-wrap:nowrap;justify-content:flex-start;width:100%;overflow-x:auto;padding-bottom:2px}
.result-actions .primary,.result-actions .secondary{padding:11px 14px;font-size:.82rem}
.result-actions button,.result-actions select{flex:0 0 auto}
.recommended-solution{margin-top:20px}
.recommended-solution h3{margin:0 0 8px}
.recommended-solution p{margin:0;color:#59647b;line-height:1.5}
.result-section{margin-top:22px}
.result-section:first-of-type{margin-top:0}
.result-section h3{margin:0 0 12px}
.prompt-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.prompt-section-head h3{margin:0}
.prompt-copy{padding:9px 15px;font-size:.8rem}
.result-grid{display:grid;grid-template-columns:1fr;gap:22px;margin-top:22px}
.connection-list{display:grid;gap:10px}
.connection-item strong{display:block;margin:4px 0;color:var(--ink)}
.connection-item p,.empty-copy{margin:0;color:#566076;line-height:1.5;font-size:.9rem}
.compact-plan{gap:12px}
.compact-plan>li{grid-template-columns:28px 1fr}
.compact-plan>li>span{width:28px;height:28px;font-size:.74rem}
.setup li span:empty{min-width:8px;width:8px;height:8px;margin-top:7px;background:var(--blue);border:0}
.thinking-button{width:30px;height:30px;display:block;object-fit:contain}
.thinking-turn{min-height:54px;display:flex;align-items:center}
.thinking-turn img{width:44px;height:44px;display:block;object-fit:contain}
.pending-turn{display:flex;align-items:center;gap:14px}
.pending-turn .user-message-row{flex:1;width:auto;margin-right:0}
.pending-turn .user-turn{border-left-color:var(--good)}
.thinking-inline{flex:0 0 48px;display:grid;place-items:center}
.thinking-inline img{width:44px;height:44px;display:block;object-fit:contain}
.platform-switch{appearance:auto;cursor:pointer;min-width:150px}
.platform-switch-status{min-height:1.3em;margin:10px 0 0;color:var(--blue2);font-weight:700;font-size:.88rem;display:flex;align-items:center;gap:10px}
.platform-switch-status:empty{display:none}
.platform-switch-status img{width:38px;height:38px;display:block;object-fit:contain}
.switching-platform .build-plan-card{opacity:.58;pointer-events:none;transition:opacity .18s ease}
.custom-answer{display:flex;gap:10px;margin-top:10px;max-width:560px}
.custom-answer input{flex:1;min-width:0}
.custom-answer .primary{padding:11px 16px}
.error{color:#fff;background:#f44336;border-radius:10px;padding:11px 13px;min-height:1.2em;font-size:.86rem;line-height:1.45}
.error:empty{display:none}
.result-head .error{color:#fff}
.failed-message-row .user-turn{width:100%}
.chat-turn .chat-error{margin-top:14px;padding:11px 13px;border-radius:10px;background:#f44336;color:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:.86rem;font-weight:700;line-height:1.45}
@media(max-width:850px){.result-grid{grid-template-columns:1fr}}
@media(max-width:850px){.custom-answer{display:block}.custom-answer .primary{margin-top:10px;width:100%}}

.auth-overlay{position:fixed;inset:0;z-index:100;background:rgba(10,18,38,.58);backdrop-filter:blur(7px);display:grid;place-items:center;padding:20px}
.auth-overlay.hidden{display:none}
.auth-card{width:min(430px,100%);background:#fff;border-radius:22px;padding:32px;box-shadow:0 24px 70px rgba(10,20,49,.3)}
.auth-logo{display:block;width:190px;max-width:100%;margin:0 auto 24px}
.auth-card h2{font-family:Georgia,serif;font-size:1.7rem;margin:0 0 8px;color:var(--ink)}
.auth-copy{color:var(--muted);margin:0 0 22px;line-height:1.5}
.auth-card form{display:grid;gap:9px}
.auth-card label{margin:4px 0 0}
.auth-card input{width:100%;margin-bottom:8px}
.verification-code{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:4px 0 8px}
.auth-card .verification-digit{height:58px;margin:0;padding:8px;text-align:center;font-size:1.5rem;font-weight:800;font-variant-numeric:tabular-nums}
.verification-digit:focus{border-color:var(--blue2);box-shadow:0 0 0 3px rgba(36,87,214,.14);outline:0}
.auth-card .primary{width:100%;margin-top:8px}
.auth-link{display:block;border:0;background:transparent;color:var(--blue2);font-weight:750;margin:20px auto 0;padding:5px}
.auth-error{color:var(--bad);min-height:1.3em;margin:15px 0 0;font-size:.85rem}
.avatar-upload{position:relative;border:0;padding:0;overflow:visible;cursor:pointer}
.avatar-upload:after{display:none}
.avatar.has-image{background-size:cover;background-position:center;background-repeat:no-repeat;color:transparent}
.avatar-edit{position:absolute;right:-3px;bottom:-3px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--blue2);color:#fff;border:2px solid #fff;font-size:15px;line-height:1}
.avatar-edit svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.avatar-link{border:0;background:transparent;color:var(--blue2);font-weight:700;padding:3px 0;cursor:pointer}
.profile-head-actions{display:flex;align-items:center;gap:10px}
.profile-signout{border:0;background:transparent;color:#7b8392;padding:8px 4px;text-decoration:underline;text-underline-offset:3px}
.profile-signout:hover{color:#4f5869}
.result-restart{display:flex;justify-content:center;padding:28px 0 40px}
.result-restart-button{display:inline-flex;align-items:center;justify-content:center;gap:11px;min-width:300px;padding:17px 28px;font-size:1rem;cursor:pointer}
.result-restart-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:520px){.result-restart-button{width:100%;min-width:0}}
@media(max-width:520px){.auth-card{padding:25px 20px}.auth-logo{width:160px}.verification-code{gap:7px}.auth-card .verification-digit{height:52px;font-size:1.3rem}}
