:root{font:15px/1.65 system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;color:#26364a;background:#f3f5f9;color-scheme:light;font-synthesis:none}*{box-sizing:border-box}html{min-height:100%;-webkit-text-size-adjust:100%}body{min-width:320px;min-height:100%;margin:0}button,input,select,textarea{font:inherit}button{min-height:36px;padding:7px 16px;border:1px solid #d4dce7;border-radius:7px;background:#fff;color:#35465e;font-size:13px;cursor:pointer;-webkit-tap-highlight-color:transparent}button:hover{background:#f0f5fd;border-color:#9cb7df}button:disabled{opacity:.5;cursor:default}button:focus-visible,summary:focus-visible,textarea:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #3979cc;outline-offset:3px}main{max-width:1000px;margin:0 auto;padding:24px}.app-header,.section-heading,.compose-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}h1{margin:0 0 4px;font-size:23px;font-weight:650;line-height:1.3;letter-spacing:.3px}h2{margin:0;font-size:14px;font-weight:650}.subtitle,.hint{color:#778396;font-size:12px}.toolbar{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}#status{display:flex;align-items:center;gap:7px;color:#53647a;font-size:12px}#status:before{width:7px;height:7px;border-radius:50%;background:#9ba9ba;content:""}#status[data-state=WORKING]:before,#status[data-state=SUBMITTED]:before{background:#4d84cf}#status[data-state=INPUT_REQUIRED]:before{background:#d29a38}#status[data-state=COMPLETED]:before{background:#55a38b}#status[data-state=FAILED]:before{background:#cd6464}.session-info{margin:12px 0;color:#718096;font-size:12px}.session-info summary{width:fit-content;cursor:pointer}.session-info div{padding:4px 0;overflow-wrap:anywhere}.workspace{display:flex;flex-direction:column;height:calc(100vh - 155px);height:calc(100dvh - 155px);min-height:460px;max-height:900px;overflow:hidden;border:1px solid #dfe5ee;border-radius:12px;background:#fff;box-shadow:0 3px 16px #223a5a05}#task-panel{flex:0 0 auto;padding:14px 22px;border-bottom:1px solid #e7ecf3;background:#fafbfd}#todos{max-height:145px;margin-top:8px;overflow:auto}.todo{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:5px 0;font-size:13px}.todo>span:first-child{overflow-wrap:anywhere}.badge{flex:0 0 auto;padding:1px 7px;border-radius:4px;background:#edf2f8;color:#627895;font-size:11px;white-space:nowrap}.conversation{display:flex;flex:1;flex-direction:column;min-height:0}.section-heading{flex:0 0 auto;padding:15px 22px 10px}.section-heading .hint{font-weight:400}#messages{flex:1;min-height:0;padding:0 22px 20px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}#empty{padding:65px 15px;color:#8b96a6;font-size:14px;text-align:center}.message{max-width:94%;margin:14px 0;padding:13px 16px;overflow-wrap:anywhere;border:1px solid #e8edf4;border-radius:10px;background:#f6f8fb}.message.user{margin-left:auto;border-color:#dce9fc;background:#edf4ff}.message.error{border-color:#f1dbd8;background:#fff5f4}.label{margin-bottom:5px;color:#7b8ba0;font-size:11px}.user .label{color:#567dab}.error .label{color:#b5635c}.content{white-space:pre-wrap}.message-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.question-form{margin-top:14px}.question-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.question-fields label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#62738a;font-size:12px}.question-fields select,.question-fields input{width:100%;min-height:38px;padding:6px 8px;border:1px solid #d4dce7;border-radius:6px;background:#fff;color:#26364a}.question-form>button{margin-top:12px}.form-error{margin:10px 0 0;color:#b5635c;font-size:12px}.composer{flex:0 0 auto;padding:15px 22px calc(15px + env(safe-area-inset-bottom));border-top:1px solid #e7ecf3;background:#fff}.scenario-buttons{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.scenario-buttons button{padding:4px 10px;font-size:12px}textarea{display:block;width:100%;height:76px;max-height:180px;padding:10px 12px;resize:vertical;border:1px solid #d7dfe9;border-radius:8px;background:#fcfdff;color:inherit;font-size:14px}textarea:focus{border-color:#719cd6;outline:none;box-shadow:0 0 0 3px #3979cc10}.compose-footer{margin-top:10px}#send{min-width:88px;border-color:#356fc0;background:#356fc0;color:#fff}#send:hover{background:#2b5fa7}#send:disabled{background:#8ba8ce}.raw-panel{margin-top:18px;overflow:hidden;border:1px solid #dfe5ee;border-radius:10px;background:#fff}.raw-panel>summary{padding:13px 18px;color:#53647a;font-size:13px;cursor:pointer}.raw-panel>summary span{margin-left:6px;padding:2px 7px;border-radius:5px;background:#edf1f6;font-size:11px}.raw-note{padding:0 18px 10px;color:#8590a0;font-size:12px}#raw-messages{max-height:420px;overflow:auto;border-top:1px solid #e7ecf3;overscroll-behavior:contain}#raw-messages>details{border-bottom:1px solid #edf0f5}#raw-messages summary{padding:10px 18px;overflow-wrap:anywhere;font:12px/1.5 system-ui,sans-serif;cursor:pointer}#raw-messages .outgoing summary{background:#f8faff;color:#356fc0}pre{max-width:100%;margin:0;padding:14px 18px;overflow:auto;background:#f7f9fc;color:#53647a;font:12px/1.6 Consolas,monospace;overflow-wrap:anywhere;white-space:pre-wrap}@media(max-width:620px){main{padding:12px 10px calc(16px + env(safe-area-inset-bottom))}.app-header{align-items:flex-start;gap:10px}h1{font-size:19px}.subtitle{max-width:230px;font-size:11px}.toolbar{flex:0 0 auto;flex-direction:column;align-items:flex-end;gap:6px}#status{justify-content:flex-end;text-align:right}.workspace{height:calc(100vh - 142px);height:calc(100dvh - 142px);min-height:420px;border-radius:10px}.section-heading,#task-panel{padding-right:14px;padding-left:14px}.section-heading .hint{display:none}#messages{padding-right:12px;padding-left:12px;scrollbar-gutter:auto}#empty{padding:48px 12px}.message{max-width:96%;padding:12px 13px}.question-fields{grid-template-columns:1fr}.question-fields select,.question-fields input,textarea{font-size:16px}.composer{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.scenario-buttons{flex-wrap:nowrap;margin-right:-12px;margin-left:-12px;padding:0 12px 4px;overflow-x:auto;scrollbar-width:none}.scenario-buttons::-webkit-scrollbar{display:none}.scenario-buttons button{flex:0 0 auto}button{min-height:44px}textarea{height:68px;max-height:120px;resize:none}.compose-footer .hint{max-width:210px;font-size:11px}.raw-panel>summary,.raw-note,#raw-messages summary,pre{padding-right:12px;padding-left:12px}}@media(max-width:390px){.compose-footer .hint{max-width:170px}}@media(prefers-reduced-motion:no-preference){.message{animation:message-in .16s ease-out}@keyframes message-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}
