:root{color:#15171c;background:#fff;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;--canvas: #ffffff;--sidebar: #f7f8fa;--selected: #eef4ff;--text: #15171c;--muted: #5f6672;--border: #d8dde6;--accent: #2563d9;--accent-hover: #1f57c5;--success: #16a34a;--focus: #1d4ed8;--radius-control: 8px;--radius-row: 10px;--radius-composer: 12px;--motion: .19s ease}*{box-sizing:border-box}html,body,#root{width:100%;min-width:320px;height:100%;margin:0}body{overflow:hidden;background:var(--canvas)}button,input,textarea{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--focus);outline-offset:2px}@media(prefers-reduced-motion:reduce){:root{--motion: 0ms}}.shell{height:100dvh;min-height:520px;background:var(--canvas)}.topbar{height:64px;display:flex;align-items:center;gap:20px;padding:0 24px 0 32px;border-bottom:1px solid var(--border);background:#fff;position:relative;z-index:30}.product-name{font-size:18px;line-height:24px;font-weight:650;letter-spacing:.01em}.connection-state{margin-left:auto;display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14px;line-height:20px;white-space:nowrap}.connection-state>span{width:9px;height:9px;border-radius:50%;background:var(--success)}.profile-button,.icon-button{border:0;background:transparent;cursor:pointer}.profile-button{min-height:44px;padding:6px 0 6px 20px;border-left:1px solid var(--border);display:flex;align-items:center;gap:10px;color:#3e4550;font-size:14px;font-weight:500}.profile-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.profile-button svg:last-child{width:15px;height:15px;margin-left:1px}.sidebar-trigger{display:none;width:44px;height:44px;padding:10px;border:1px solid var(--border);border-radius:var(--radius-control)}.sidebar-trigger svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.shell-body{height:calc(100dvh - 64px);min-height:456px;display:flex}.sidebar{position:relative;flex:0 0 220px;width:220px;height:100%;padding:24px 16px;border-right:1px solid var(--border);background:var(--sidebar);z-index:20;overflow-y:auto;transition:transform var(--motion)}.new-task-button{width:100%;min-height:44px;border:0;border-radius:var(--radius-control);background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;gap:9px;font-size:14px;line-height:20px;font-weight:650;cursor:pointer}.new-task-button:hover{background:var(--accent-hover)}.new-task-button svg,.thread-button svg,.publishing-nav-button svg{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.publishing-nav-button{width:100%;min-height:44px;margin-top:8px;padding:8px 10px;border:1px solid var(--border);border-radius:var(--radius-row);background:#fff;display:flex;align-items:center;gap:10px;color:#373d47;cursor:pointer;font-size:13px;font-weight:600}.sidebar h2{margin:28px 8px 10px;font-size:13px;line-height:18px;font-weight:650}.thread-list{list-style:none;padding:0;margin:0;display:grid;gap:4px}.thread-button{position:relative;width:100%;min-height:44px;border:0;border-radius:var(--radius-row);background:transparent;display:flex;align-items:center;gap:11px;padding:8px 10px;text-align:left;cursor:pointer;color:#373d47;font-size:13px;line-height:20px;font-weight:500}.thread-button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thread-button:hover{background:#f0f2f5}.thread-button[aria-current=page]{color:var(--text);background:var(--selected);font-weight:650}.thread-button[aria-current=page]:before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:3px;border-radius:2px;background:var(--accent)}.sidebar-backdrop{display:none;position:fixed;inset:64px 0 0;z-index:15;border:0;padding:0;background:#0f172a47;opacity:0;pointer-events:none;transition:opacity var(--motion)}.main-region{position:relative;min-width:0;flex:1;background:#fff;display:flex;justify-content:center;overflow:hidden}.surface-layer{width:100%;min-width:0;height:100%;display:flex;justify-content:center}.surface-layer[hidden]{display:none}.thread-view{width:100%;min-width:0;height:100%;position:relative;display:flex;justify-content:center}.empty-state{width:min(820px,calc(100% - 64px));margin:auto;padding:20px 0 156px;text-align:center}.empty-document-icon{width:112px;height:112px;fill:#fff;stroke:#737b88;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.empty-state h1{margin:24px 0 10px;color:var(--text);font-size:clamp(30px,2.3vw,34px);line-height:1.25;font-weight:650;letter-spacing:-.015em}.empty-state p{margin:0;color:var(--muted);font-size:16px;line-height:26px}.suggestions{display:flex;justify-content:center;gap:16px;margin-top:30px}.suggestions button{min-width:188px;min-height:50px;padding:10px 16px;border:1px solid var(--accent);border-radius:var(--radius-control);background:#fff;color:var(--accent);display:flex;align-items:center;gap:10px;cursor:pointer;font-size:14px;line-height:20px;font-weight:600}.suggestions button:hover{background:#f7faff}.suggestions svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.suggestions svg:last-child{display:none;margin-left:auto}.composer-area{position:absolute;left:24px;right:24px;bottom:24px;max-width:820px;margin:0 auto;z-index:5}.composer{position:relative;width:100%;min-height:80px;margin:0;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius-composer);background:#fff;display:flex;align-items:center;gap:14px;box-shadow:0 5px 18px #0f172a0a}.composer[data-focused=true]{border-color:var(--accent);box-shadow:0 0 0 3px #2563d929,0 5px 18px #0f172a0a}.attachment-button{min-height:44px;padding:0 14px 0 2px;border:0;border-right:1px solid var(--border);background:#fff;display:flex;align-items:center;gap:9px;white-space:nowrap;cursor:pointer;font-size:14px;line-height:20px;font-weight:500}.attachment-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.attachment-button:focus-within{outline:2px solid var(--focus);outline-offset:2px;border-radius:6px}.composer textarea{min-width:0;flex:1;height:44px;max-height:132px;resize:none;padding:10px 4px;border:0;outline:0;color:var(--text);background:#fff;font-size:15px;line-height:22px}.composer textarea::placeholder{color:#8b929e;opacity:1}.composer textarea:focus-visible{outline:0}.send-button{width:44px;height:44px;flex:0 0 auto;border:0;border-radius:var(--radius-control);background:var(--accent);color:#fff;display:grid;place-items:center;cursor:pointer}.send-button:disabled{cursor:default}.send-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.stop-button{min-width:56px;height:40px;border:1px solid #f1b4b4;border-radius:var(--radius-control);background:#fff7f7;color:#b42318;font-size:13px;font-weight:600;cursor:pointer}.connection-banner,.queue-banner{width:fit-content;margin:0 0 8px auto;padding:6px 10px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--muted);font-size:13px;line-height:18px}.connection-banner{border-color:#f1c4c0;color:#9f2d24}.start-error-banner{width:fit-content;margin:0 0 8px auto;padding:7px 10px;border:1px solid #f1c4c0;border-radius:8px;background:#fff;color:#9f2d24;display:flex;align-items:center;gap:10px;font-size:13px;line-height:18px}.start-error-banner button{border:0;padding:0;background:transparent;color:var(--accent);font:inherit;font-weight:650;cursor:pointer}.attachment-list{list-style:none;margin:0 0 8px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:#fff;display:grid;gap:6px}.attachment-list li{min-height:30px;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.attachment-list li>span:first-child{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.attachment-list button{border:0;background:transparent;color:var(--accent);cursor:pointer;font-size:13px}.transcript{width:min(820px,calc(100% - 48px));height:100%;overflow-y:auto;padding:40px 0 170px;scrollbar-gutter:stable}.message{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;margin:0 0 28px;align-items:start}.message-marker{width:28px;height:28px;border-radius:8px;background:#eef4ff;color:var(--accent);display:grid;place-items:center;font-size:12px;font-weight:700}.message-user .message-marker{background:#f0f2f5;color:#4b5563}.message p{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text);font-size:15px;line-height:1.75}.status-item{min-height:32px;margin:-10px 0 18px 44px;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;line-height:20px}.status-item>span{width:8px;height:8px;border-radius:50%;background:#8b929e}.status-success>span{background:var(--success)}.status-danger{color:#b42318}.status-danger>span{background:#dc2626}.status-warning>span{background:#d97706}.request-card{margin:0 0 24px 44px;padding:16px;border:1px solid var(--border);border-radius:12px;background:#fbfcfe}.request-card h3{margin:0 0 8px;font-size:15px;line-height:22px;font-weight:650}.request-card p{margin:0 0 10px;color:var(--muted);font-size:13px;line-height:20px}.request-card pre{margin:0 0 14px;padding:10px 12px;border:1px solid #e3e7ee;border-radius:8px;background:#fff;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}.request-actions{display:flex;flex-wrap:wrap;gap:8px}.request-actions button,.primary-request-action{min-height:40px;padding:0 14px;border:1px solid var(--border);border-radius:8px;background:#fff;cursor:pointer;color:#373d47;font-size:13px;font-weight:600}.request-actions button:first-child,.primary-request-action{border-color:var(--accent);background:var(--accent);color:#fff}.request-actions button:disabled,.primary-request-action:disabled{opacity:.55;cursor:default}.question-card fieldset{margin:0 0 18px;padding:0;border:0}.question-card legend{width:100%;margin:0 0 10px;font-size:14px;line-height:22px}.question-card legend span{display:block;color:var(--muted);font-size:12px;font-weight:600}.question-card fieldset>label{min-height:44px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;display:flex;gap:10px;align-items:center;margin-top:8px;background:#fff;cursor:pointer}.question-card label span{display:grid;gap:2px}.question-card label strong{font-size:13px;line-height:18px}.question-card label small{color:var(--muted);font-size:12px;line-height:17px}.question-card fieldset>input{width:100%;height:42px;margin-top:8px;padding:0 10px;border:1px solid var(--border);border-radius:8px}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.login-page{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#fff}.login-form{width:min(360px,100%);display:grid;gap:12px}.login-form h1{margin:0 0 20px;text-align:center;font-size:26px;line-height:34px;font-weight:650}.login-form label{font-size:14px;line-height:20px;font-weight:600}.login-form input{height:44px;border:1px solid var(--border);border-radius:var(--radius-control);padding:0 12px;font-size:16px}.login-form input[aria-invalid=true]{border-color:#dc2626}.login-form p{margin:0;color:#b91c1c;font-size:13px;line-height:20px}.login-form button{height:44px;margin-top:4px;border:0;border-radius:var(--radius-control);background:var(--accent);color:#fff;font-size:14px;line-height:20px;font-weight:650;cursor:pointer}.login-form button:disabled{opacity:.55;cursor:default}.app-loading{width:24px;height:24px;margin:calc(50vh - 12px) auto;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}.app-error{min-height:100dvh;display:grid;place-items:center;color:var(--muted);font-size:15px}.publishing-overlay{position:fixed;inset:0;z-index:100;padding:24px;display:grid;place-items:center;background:#0f172a4d}.publishing-dialog{position:relative;width:min(920px,100%);max-height:min(820px,calc(100dvh - 48px));overflow:auto;border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:0 24px 64px #0f172a2e}.publishing-panel-header,.workspace-header{padding:24px 28px;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;border-bottom:1px solid var(--border)}.publishing-panel-header h1,.workspace-header h1{margin:0;font-size:22px;line-height:30px}.publishing-panel-header p,.workspace-header p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:20px}.quiet-button,.row-actions button,.form-actions>button,.unknown-resolution button{min-height:36px;padding:0 12px;border:1px solid var(--border);border-radius:8px;background:#fff;cursor:pointer;font-size:13px;font-weight:600}.primary-button{min-height:38px;padding:0 14px;border:0;border-radius:8px;background:var(--accent);color:#fff;cursor:pointer;font-size:13px;font-weight:650}.primary-button:disabled{opacity:.55;cursor:default}.publishing-toolbar{min-height:62px;padding:12px 28px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:13px}.publishing-notice{margin:0 28px 12px;padding:9px 12px;border-radius:8px;background:#eef4ff;color:#244b94;font-size:13px}.publishing-error{margin:0 28px 12px;padding:9px 12px;border-radius:8px;background:#fff1f0;color:#9f2d24;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.publishing-error button{min-height:32px;padding:0 10px;border:1px solid #e3a29b;border-radius:7px;background:#fff;color:inherit;cursor:pointer;font-weight:650}.profile-list{padding:0 28px 28px;display:grid;gap:10px}.profile-row{position:relative;min-width:0;padding:16px;border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:20px}.profile-summary{min-width:0}.profile-title-line{display:flex;align-items:center;gap:9px}.profile-title-line h2{min-width:0;margin:0;overflow-wrap:anywhere;font-size:15px;line-height:22px}.profile-title-line span,.job-state{padding:3px 7px;border-radius:999px;background:#eef4ff;color:#2451a4;font-size:11px;font-weight:650;white-space:nowrap}.profile-summary p{margin:4px 0;color:var(--muted);font-size:12px}.profile-summary code{font:13px/18px ui-monospace,SFMono-Regular,Consolas,monospace}.row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.row-actions .danger-text{color:#b42318}.delete-confirm{position:absolute;inset:0;padding:14px 16px;border-radius:10px;background:#fffffff7;display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:13px}.delete-confirm span{margin-right:auto;font-weight:600}.delete-confirm button:first-of-type{border-color:#dc2626;background:#dc2626;color:#fff}.form-shade{position:absolute;inset:0;padding:24px;border-radius:inherit;background:#0f172a42;display:grid;place-items:center}.profile-form{width:min(480px,100%);max-height:100%;overflow:auto;padding:24px;border-radius:12px;background:#fff;display:grid;gap:14px;box-shadow:0 18px 50px #0f172a2e}.profile-form h2{margin:0 0 4px;font-size:19px}.profile-form label{display:grid;gap:6px;font-size:13px;font-weight:600}.profile-form input,.profile-form select,.profile-picker select{width:100%;min-width:0;height:42px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text)}.field-hint{margin:-8px 0 0;color:var(--muted);font-size:12px}.form-error{margin:0;color:#b42318;font-size:13px}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.publishing-empty{margin:20px 0;color:var(--muted);font-size:13px;text-align:center}.publishing-workspace{width:100%;height:100%;min-width:0;overflow:auto;background:#fff}.publishing-layout{min-width:0;height:calc(100% - 99px);display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr)}.package-list{min-width:0;padding:18px 14px;border-right:1px solid var(--border);background:#fafbfc;overflow-y:auto}.package-list button{width:100%;min-width:0;padding:12px;border:0;border-radius:9px;background:transparent;display:grid;gap:3px;text-align:left;cursor:pointer}.package-list button[aria-current=page]{background:var(--selected)}.package-list strong,.package-list span{overflow:hidden;text-overflow:ellipsis}.package-list strong{overflow-wrap:anywhere;font-size:13px}.package-list span{white-space:nowrap}.package-list span{color:var(--muted);font-size:12px}.package-review{min-width:0;padding:32px;overflow-y:auto}.review-placeholder{max-width:440px;margin:18vh auto 0;text-align:center}.review-placeholder h2{margin:0;font-size:20px}.review-placeholder p{color:var(--muted)}.review-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.review-title h2{margin:0;overflow-wrap:anywhere;font-size:22px}.review-title p{margin:6px 0 0;color:var(--muted);font:12px/18px ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}.state-succeeded,.state-confirmed-created{background:#eaf8ee;color:#18733a}.state-unknown{background:#fff4df;color:#9a5b09}.review-grid{margin:28px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.review-grid div{min-width:0;padding:14px;border:1px solid var(--border);border-radius:9px}.review-grid dt{color:var(--muted);font-size:12px}.review-grid dd{margin:5px 0 0;overflow-wrap:anywhere;font-size:14px;font-weight:650}.profile-picker{max-width:420px;display:grid;gap:7px;font-size:13px;font-weight:650}.profile-revision{margin:8px 0 20px;color:var(--muted);font-size:12px}.confirm-publish{min-width:112px}.unknown-resolution{max-width:620px;padding:18px;border:1px solid #efc77e;border-radius:10px;background:#fffbf3}.unknown-resolution h3{margin:0;font-size:16px}.unknown-resolution p{color:#6b5733;font-size:13px;line-height:20px}.unknown-resolution label{margin-top:14px;display:grid;gap:6px;color:#4d4434;font-size:12px;font-weight:650}.unknown-resolution input{width:100%;height:40px;padding:0 10px;border:1px solid #d9bf8d;border-radius:8px;background:#fff}.unknown-resolution div{margin-top:14px;display:flex;flex-wrap:wrap;gap:8px}.resolution-complete{color:var(--success);font-size:14px;font-weight:650}.publishing-progress{color:var(--muted);font-size:13px}.publish-success{max-width:720px;margin-top:24px;padding:18px;border:1px solid #b9dfc4;border-radius:10px;background:#f3fbf5}.publish-success h3,.publish-warnings h4{margin:0;font-size:16px}.publish-success dl{margin:14px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.publish-success dl div{min-width:0}.publish-success dt{color:var(--muted);font-size:12px}.publish-success dd{margin:4px 0 0;overflow-wrap:anywhere;font-size:13px;font-weight:650}.publish-success-links{display:flex;flex-wrap:wrap;gap:12px}.publish-success-links a{color:var(--accent);font-size:13px;font-weight:650}.publish-warnings{margin-top:14px}.publish-warnings h4{font-size:13px}.publish-warnings ul{margin:6px 0 0;padding-left:20px;color:#6b5733;font-size:12px;overflow-wrap:anywhere}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1439px){.sidebar{flex-basis:180px;width:180px;padding-inline:12px}.topbar{padding-left:24px}}@media(max-width:1023px){.topbar{height:72px;padding:0 18px}.shell-body{height:calc(100dvh - 72px);min-height:448px}.sidebar-trigger{display:grid;place-items:center}.product-name{position:absolute;left:50%;transform:translate(-50%);white-space:nowrap}.profile-button{min-width:44px;padding-left:12px}.profile-button span,.profile-button svg:last-child{display:none}.connection-state{margin-left:auto}.sidebar{position:fixed;inset:72px auto 0 0;width:min(300px,calc(100vw - 56px));height:auto;transform:translate(-100%);box-shadow:8px 0 24px #0f172a14}.sidebar[data-open=true]{transform:translate(0)}.sidebar-backdrop{display:block;top:72px}.sidebar-backdrop[data-open=true]{opacity:1;pointer-events:auto}.empty-state{width:min(680px,calc(100% - 48px));padding-bottom:150px}.composer-area{left:20px;right:20px;bottom:20px}}@media(max-width:768px){.publishing-overlay{padding:0}.publishing-dialog{width:100%;height:100dvh;max-height:none;border:0;border-radius:0}.publishing-panel-header,.workspace-header{padding:18px 16px}.publishing-toolbar{padding-inline:16px}.profile-list{padding:0 16px 24px}.profile-row{align-items:flex-start;flex-direction:column;gap:12px}.row-actions{justify-content:flex-start}.publishing-layout{height:auto;min-height:calc(100% - 91px);grid-template-columns:1fr}.package-list{max-height:220px;border-right:0;border-bottom:1px solid var(--border)}.package-review{padding:22px 16px 32px}.review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:390px){.topbar{gap:8px}.profile-button{padding-left:8px;border-left:0}.publishing-panel-header h1,.workspace-header h1{font-size:19px}.publishing-panel-header p,.workspace-header p{display:none}.form-shade{padding:8px}.profile-form{padding:18px 14px}.delete-confirm{align-items:flex-start;flex-wrap:wrap}.delete-confirm span{flex-basis:100%}.review-title{align-items:flex-start}.review-grid{grid-template-columns:1fr}}@media(max-width:768px){.topbar{padding:0 12px;gap:12px}.product-name{font-size:17px}.connection-state{gap:8px;font-size:13px}.empty-state{width:calc(100% - 40px);padding:8px 0 164px}.empty-document-icon{width:96px;height:96px}.empty-state h1{margin-top:20px;font-size:28px}.empty-state p{font-size:15px;line-height:24px}.suggestions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:26px auto 0;width:min(100%,460px)}.suggestions button{width:100%;min-width:0;min-height:52px}.suggestions svg:last-child{display:block}.composer-area{left:12px;right:12px;bottom:12px}.composer{min-height:72px;padding:9px 10px;gap:8px}.composer textarea{font-size:15px}.transcript{width:calc(100% - 32px);padding-top:28px}.request-card,.status-item{margin-left:40px}}@media(max-width:520px){.product-name{font-size:15px}.connection-state{font-size:0}.connection-state>span{width:10px;height:10px}.empty-state h1{font-size:26px}.attachment-button{width:44px;padding:0 10px 0 5px;font-size:0}.attachment-button svg{width:23px;height:23px}.stop-button{min-width:48px;padding:0 8px}.request-card{margin-left:0}}@media(prefers-reduced-motion:reduce){.app-loading{animation:none}}
