:root{color:#17202a;background:#f4f7fb;font-family:Inter,Segoe UI,PingFang SC,Microsoft YaHei,Arial,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#app{width:100%;max-width:100%;overflow-x:hidden}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 12% 18%,rgba(96,165,250,.08),transparent 30%),radial-gradient(circle at 82% 12%,rgba(103,232,249,.09),transparent 28%),linear-gradient(135deg,#f5f8fc,#eef4f8 52%,#f8fbfd)}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{position:relative;display:grid;grid-template-columns:286px 1fr;min-height:100vh;isolation:isolate}.mobile-nav-toggle,.sidebar-scrim{display:none}.tech-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:-1;overflow:hidden;pointer-events:none}.tech-backdrop:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(rgba(15,23,42,.032) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.032) 1px,transparent 1px);background-size:44px 44px;-webkit-mask-image:linear-gradient(180deg,#000000b8,#00000024);mask-image:linear-gradient(180deg,#000000b8,#00000024)}.tech-backdrop span{position:absolute;color:#2563eb24;font-family:JetBrains Mono,Consolas,SFMono-Regular,monospace;font-size:14px;font-weight:700;letter-spacing:.04em;animation:tech-float 24s linear infinite;text-shadow:0 0 18px rgba(6,182,212,.14);-webkit-user-select:none;user-select:none}.sidebar{display:flex;flex-direction:column;gap:16px;min-height:100vh;padding:22px 18px;color:#27323a;background:#ffffff75;border-right:1px solid rgba(255,255,255,.72);box-shadow:14px 0 42px #1f2a3614;-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%)}.brand{display:flex;align-items:center;gap:12px}.brand h1,.brand p,.section-title h2,.section-title p,.subpanel h3,.result-card h3,.result-table h4{margin:0}.brand h1{font-size:20px;line-height:1.2}.brand p{margin-top:4px;color:#78858e;font-size:13px}.upload,.new-record-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;border:1px solid rgba(177,194,205,.72);border-radius:18px;background:#ffffffb8;color:#33424c;font-weight:700}.new-record-button{border:0;background:linear-gradient(135deg,#334155,#60a5fa 58%,#a5f3fc);color:#f8fbff;box-shadow:0 10px 24px #60a5fa2e}.upload input{display:none}.large-upload{width:fit-content;min-width:220px}.status-panel,.schema-item{border-radius:8px;background:#ffffff14}.status-panel{display:flex;flex-direction:column;gap:6px;padding:14px;color:#27323a}.status-panel span,.schema-item small,.hint,.compact,.section-title p{color:#61717b;line-height:1.5}.inline-message{margin:0;padding:10px 12px;border:1px solid #bcd8cb;border-radius:8px;background:#eef8f3;color:#24584d;line-height:1.5}.status-panel span,.schema-item small{color:#73828b;font-size:13px}.history-panel{display:grid;gap:10px;min-height:0}.history-title{display:flex;align-items:center;justify-content:space-between;padding:6px 2px 0}.history-title h2{margin:0;color:#42505a;font-size:14px}.history-title span{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;border-radius:999px;background:#27323a14;color:#5c6870;font-size:12px;font-weight:800}.history-empty{margin:0;padding:14px;border:1px dashed rgba(128,146,158,.45);border-radius:16px;color:#78858e;font-size:13px;line-height:1.6}.history-row{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;width:100%;border:1px solid transparent;border-radius:18px;background:transparent}.history-item{display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;width:100%;min-height:62px;padding:12px 4px 12px 12px;border:0;border-radius:18px;background:transparent;color:#394751;text-align:left}.history-row:hover,.history-row.active{border-color:#60a5fa6b;background:#ffffffc7}.history-item span{display:grid;gap:4px;min-width:0}.history-item strong,.history-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-item small{color:#7a8790;font-size:12px}.history-delete{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:8px;border:1px solid transparent;border-radius:50%;background:transparent;color:#8a96a3;font-size:18px;line-height:1}.history-delete:hover{border-color:#f1b7b0;background:#fff1ef;color:#b83e32}.statement-link{align-self:flex-start;min-height:auto;margin-top:auto;padding:0 0 2px;border:0;border-bottom:1px solid currentColor;border-radius:0;background:transparent;color:#2563eb;font-size:13px;font-weight:700}.statement-link:hover,.statement-link.active{color:#1e40af}.nav{display:grid;gap:8px}.nav button,.toolbar button,.button-row button,.primary,.ghost{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:8px;border:1px solid transparent;padding:0 14px}.nav button{justify-content:flex-start;color:#d6e1e5;background:transparent}.nav button.active,.nav button:hover{background:#eef6f2;color:#18343b}.schema-list{overflow:auto;min-height:0}.schema-list h2{margin:0 0 10px;font-size:14px;color:#dce6e9}.schema-item{display:flex;flex-direction:column;gap:3px;padding:10px;margin-bottom:8px}.schema-item span{overflow-wrap:anywhere}.content{min-width:0;padding:28px}.content.record-content{height:100vh;overflow:hidden}.panel{display:grid;gap:18px}.upload-start{display:grid;justify-items:start;gap:18px;min-height:calc(100vh - 48px);align-content:center;padding:24px;border:1px dashed #b9c7cc;border-radius:8px;background:#fff}.upload-start div{display:grid;gap:12px;max-width:720px}.upload-start h2{margin:0;color:#182931;font-size:30px}.upload-start p{margin:0;color:#61717b;line-height:1.7}.chat-hero{display:grid;justify-items:center;gap:22px;padding:28px 0 8px}.center-title{display:grid;gap:10px;max-width:820px;text-align:center}.center-title h2{margin:0;color:#242b36;font-size:44px;line-height:1.12}.center-title p{margin:0;color:#66737f;font-size:16px;line-height:1.7}.chat-card{display:grid;gap:14px;width:min(760px,100%);margin:0 auto;padding:18px;border:1px solid rgba(255,255,255,.78);border-radius:24px;background:#ffffffb8;box-shadow:0 24px 70px #192a3d1f,0 4px 18px #192a3d0f;-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%)}.drop-zone{position:relative}.drop-zone.dragging{border-color:#60a5fa;background:#eff6ffe6;box-shadow:0 24px 70px #60a5fa29,0 0 0 3px #60a5fa29}.drop-zone.dragging:after{content:"松开即可导入数据文件";position:absolute;top:10px;right:10px;bottom:10px;left:10px;display:grid;place-items:center;border:1px dashed #60a5fa;border-radius:18px;background:#ffffffd1;color:#1e40af;font-weight:800;pointer-events:none}.chat-card textarea{min-height:132px;border-color:#192a3d14;border-radius:16px;background:#ffffffb3;box-shadow:inset 0 2px 8px #192a3d08;font-family:inherit;font-size:15px}.chat-card textarea:disabled{color:#8a96a3}.chat-mode-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.chat-mode-row button{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 14px;border:1px solid #d6e0e4;border-radius:999px;background:#ffffffc7;color:#30434c;font-weight:700}.chat-mode-row button.active{border-color:#60a5fa;background:#eff6ff;color:#1e40af}.model-select{display:inline-flex;align-items:center;gap:8px;margin-left:auto;color:#61717b;font-size:13px;font-weight:700}.model-select select{min-height:34px;border:1px solid #d6e0e4;border-radius:999px;background:#fff;color:#30434c;padding:0 10px}.chat-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.prompt-examples{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}.prompt-examples button{flex:0 0 auto;max-width:360px;min-height:32px;border:1px solid rgba(190,202,210,.8);border-radius:999px;background:#ffffffb8;color:#5b6770;padding:0 12px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prompt-examples button:hover{border-color:#0f766e;color:#0f4f49}.file-chip,.manual-link{display:inline-flex;align-items:center;gap:7px;min-height:36px;border:1px solid transparent;border-radius:999px;background:#192a3d0f;color:#0f5f58;padding:0 14px;font-weight:700;cursor:pointer}.file-chip input{display:none}.manual-link{background:transparent;color:#61717b;border-color:#d8e1e5;font-weight:600}.notice-text{flex:1;min-width:240px;color:#89949f;font-size:12px;line-height:1.5}.send-button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin-left:auto;border:0;border-radius:50%;background:linear-gradient(135deg,#334155,#60a5fa 58%,#a5f3fc);color:#fff;box-shadow:0 4px 14px #60a5fa38}.upload-summary{display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(120px,.6fr));gap:12px;width:min(980px,100%);margin:0 auto}.upload-summary.in-chat{width:100%;grid-template-columns:minmax(160px,1.2fr) repeat(3,minmax(90px,.6fr))}.upload-summary div{display:grid;gap:5px;padding:12px 14px;border:1px solid #dce3e6;border-radius:8px;background:#fff}.upload-summary span{color:#61717b;font-size:12px}.upload-summary strong{overflow:hidden;color:#182931;text-overflow:ellipsis;white-space:nowrap}.slim-settings{width:min(980px,100%);margin:0 auto}.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid #dce3e6}.section-title h2{font-size:26px;color:#182931}.section-title.tight{padding-bottom:0;border-bottom:0}.section-title.tight h2{font-size:18px}.data-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.data-strip div{display:grid;gap:4px;padding:14px 16px;border:1px solid #dce3e6;border-radius:8px;background:#fff}.data-strip span{color:#61717b;font-size:13px}.data-strip strong{color:#182931;font-size:22px}.table-wrap{width:100%;overflow:auto;border:1px solid #dce3e6;border-radius:8px;background:#fff}.table-wrap.small{max-height:320px}.preview-table{max-height:300px}table{width:100%;border-collapse:collapse;min-width:720px}th,td{padding:10px 12px;border-bottom:1px solid #e7ecef;text-align:left;white-space:nowrap;font-size:14px}th{position:sticky;top:0;background:#eef3f4;color:#263840;font-weight:700}.empty-state,.error{display:flex;align-items:center;min-height:120px;padding:20px;border-radius:8px}.empty-state{justify-content:center;border:1px dashed #b9c7cc;color:#61717b}.error{min-height:auto;margin-bottom:14px;border:1px solid #e3a19a;background:#fff1ef;color:#a53b30;white-space:pre-line}.split,.analysis-grid,.ai-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.analysis-grid{grid-template-columns:360px minmax(0,1fr);align-items:start}.subpanel,.result-card{display:grid;gap:14px;padding:16px;border:1px solid #dce3e6;border-radius:8px;background:#fff}.compact-panel{gap:12px}.card-kicker{color:#2d675b;font-size:12px;font-weight:800;letter-spacing:.04em}.workflow-panel{width:min(760px,100%);margin:0 auto;border-color:#c9d9d2;background:#fbfefd}.statement-page{min-height:calc(100vh - 56px);align-content:center}.statement-card{width:min(60vw,100%);margin:0 auto;background:#ffffffdb}.statement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.statement-grid section{display:grid;gap:8px;padding:14px;border:1px solid #dce3e6;border-radius:8px;background:#fbfcff}.statement-grid h3,.statement-grid p{margin:0}.statement-grid h3{color:#182931;font-size:15px}.statement-grid p{color:#51616b;line-height:1.8}.record-panel{width:min(60vw,100%);max-width:none;margin:0 auto}.record-content .record-panel{grid-template-rows:auto auto minmax(0,1fr);width:min(60vw,100%);max-width:none;height:calc(100vh - 56px);overflow:hidden}.record-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.9fr);align-items:center;gap:12px;min-height:46px;padding:8px 12px;border:1px solid #d8e0df;border-radius:10px;background:#ffffffd1;box-shadow:0 8px 20px #1829310d}.record-title-line{display:flex;align-items:center;gap:10px;min-width:0}.record-header h2,.progress-head h3{margin:0;color:#182931;font-size:15px}.record-meta{overflow:hidden;color:#61717b;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.status-badge{flex:0 0 auto;border:1px solid #d9c58e;border-radius:999px;background:#fff8df;color:#7a4a12;padding:3px 8px;font-size:12px;font-weight:800}.stage-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px;border:1px solid #d8e0df;border-radius:14px;background:#ffffffb8}.stage-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;border:1px solid #d8e0df;border-radius:10px;background:#fff;color:#516169;font-weight:800}.stage-tabs button span{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#eef2f1;color:#5c6b72;font-size:12px}.stage-tabs button.active{border-color:#60a5fa;background:#eff6ff;color:#1e40af}.stage-tabs button.active span{background:#60a5fa;color:#fff}.stage-panel{min-height:420px}.record-content .stage-panel{min-height:0;overflow:hidden}.stage-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:14px;border-top:1px solid #e3e9e7}.top-actions{justify-content:flex-start;padding-top:0;padding-bottom:14px;border-top:0;border-bottom:1px solid #e3e9e7}.continue-card{width:100%}.progress-head{display:grid;grid-template-columns:auto minmax(80px,1fr) 96px;align-items:center;gap:8px;min-width:0;color:#52646b;font-size:12px}.progress-track{height:5px;overflow:hidden;border-radius:999px;background:#e8edf2}.progress-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#60a5fa,#67e8f9);transition:width .28s ease}.spin{color:#60a5fa;animation:spin .9s linear infinite}.summary-panel p{margin:0;color:#30434c;line-height:1.75}.result-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-height:0;overflow:hidden}.result-workspace.with-manual{grid-template-columns:minmax(360px,40%) minmax(0,1fr);align-items:stretch}.result-workspace.with-manual .result-stage{grid-column:2;grid-row:1}.result-stage{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;width:100%;min-width:0;min-height:0;background:#ffffffd6}.result-stage-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.result-stage-head h3{margin:0;font-size:17px}.result-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.results-shell{display:grid;gap:14px;min-height:0;overflow:auto;padding:14px;border:1px solid #e3e9e7;border-radius:8px;background:#fbfcfb}.append-panel{display:grid;gap:12px;width:100%;justify-self:stretch;padding:12px;border:1px solid #e3e9e7;border-radius:8px;background:#fff}.append-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.append-mode-row{display:flex;gap:8px;flex-wrap:wrap}.append-mode-row button{display:inline-flex;align-items:center;gap:6px;min-height:34px;border:1px solid #cfd9dd;border-radius:999px;background:#fff;color:#30434c;padding:0 12px;font-weight:700}.append-mode-row button.active{border-color:#60a5fa;background:#eff6ff;color:#1e40af}.append-chat{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;padding-top:10px;border-top:1px solid #e3e9e7}.append-chat textarea{min-height:64px;font-family:inherit;font-size:14px}.append-toolbar{grid-template-columns:minmax(0,1fr) auto auto auto;gap:8px;padding-bottom:10px;border-bottom:1px solid #e3e9e7}.append-toolbar button,.manual-run-button{min-width:max-content;white-space:nowrap}.append-manual-grid{grid-template-columns:minmax(320px,420px) minmax(0,1fr);width:100%;min-height:0;max-height:210px;overflow:auto;gap:18px}.result-workspace .append-manual-grid{grid-column:1;grid-row:1;grid-template-columns:1fr;height:100%;max-height:none;overflow:auto;align-self:stretch}.analysis-control-panel{display:grid;gap:12px;width:100%;align-self:start;border-color:#d8e0df;background:#fbfcfb}.result-stage .variable-list,.append-manual-grid .variable-list{grid-template-columns:1fr;max-height:360px}.result-stage .variable-list button,.append-manual-grid .variable-list button{min-height:36px}.result-stage .toolbar{grid-template-columns:minmax(180px,260px) auto auto;justify-content:start}@keyframes spin{to{transform:rotate(360deg)}}@keyframes tech-float{0%{opacity:0;transform:translate3d(0,18px,0) rotate(0)}12%{opacity:1}50%{opacity:.72;transform:translate3d(18px,-34px,0) rotate(4deg)}to{opacity:0;transform:translate3d(-12px,-92px,0) rotate(-6deg)}}.confirm-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:2px}.workflow-steps{display:grid;gap:8px;margin:0;padding-left:20px;color:#30434c;line-height:1.55}.subpanel h3,.result-card h3{display:flex;align-items:center;gap:8px;font-size:17px}.form-grid,.toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid.stacked{grid-template-columns:1fr}.settings-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,260px) auto;gap:12px;align-items:end}.ai-settings-panel{grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);align-items:end}.toolbar{grid-template-columns:minmax(220px,320px) auto auto 1fr;align-items:center}label{display:grid;gap:6px;color:#30434c;font-weight:700;font-size:14px}input,select,textarea{width:100%;border:1px solid #cfd9dd;border-radius:8px;background:#fff;color:#17202a;padding:10px 12px;outline:none}textarea{resize:vertical;min-height:180px;line-height:1.5;font-family:Cascadia Code,Consolas,monospace;font-size:13px}.json-preview{min-height:260px;background:#f8fbfb}input:focus,select:focus,textarea:focus{border-color:#2d675b;box-shadow:0 0 0 3px #2d675b24}.chips{display:flex;flex-wrap:wrap;gap:8px;max-height:220px;overflow:auto}.chips button{min-height:34px;border:1px solid #cfd9dd;border-radius:8px;background:#f9fbfb;color:#30434c;padding:0 10px}.chips button.selected{border-color:#2d675b;background:#dff0e9;color:#183b33;font-weight:700}.variable-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;max-height:280px;overflow:auto}.variable-list.compact-list{max-height:180px}.variable-list button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;border:1px solid #cfd9dd;border-radius:8px;background:#fff;color:#30434c;padding:8px 10px;text-align:left}.variable-list button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.variable-list button small{flex:0 0 auto;color:#71828a;font-size:12px}.variable-list button.selected{border-color:#2d675b;background:#dff0e9;color:#183b33;font-weight:700}.primary{background:linear-gradient(135deg,#334155,#60a5fa 58%,#a5f3fc);color:#fff;border-color:#60a5fa;font-weight:700}.ghost{background:#fff;color:#30434c;border-color:#cfd9dd}button:disabled{cursor:not-allowed;opacity:.55}.results{display:grid;align-content:start;justify-items:stretch;gap:14px;min-width:0}.result-stage .result-card{width:100%;min-width:0;max-width:none;align-content:start}.result-table{display:grid;gap:8px}.result-table h4{color:#51656e;font-size:14px}.table-description{margin:0;padding:10px 12px;border-left:3px solid #c4942e;background:#fffaf0;color:#394751;line-height:1.7}.result-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #cfd9dd;border-radius:8px;background:#fff;color:#51656e}.icon-button:hover{border-color:#d65a4a;color:#b83e32}.button-row{display:flex;gap:10px;flex-wrap:wrap}.plan-preview{display:grid;align-content:start;grid-template-rows:auto minmax(0,1fr);height:100%;max-height:100%;min-height:0;overflow:hidden}.plan-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.plan-preview .table-wrap table{min-width:880px}.plan-preview td:last-child{white-space:normal;min-width:320px}.plan-grid{display:grid;grid-template-columns:minmax(420px,1fr) minmax(460px,1fr);gap:16px;align-items:stretch;height:100%;max-height:100%;min-height:0;overflow:hidden}.plan-column{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;height:100%;max-height:100%;min-height:0;overflow:hidden;padding:14px;border:1px solid #e0e7e5;border-radius:8px;background:#fbfcfb}.plan-column h4{margin:0;color:#263840;font-size:15px}.plan-column .table-wrap table{width:max-content;max-width:none}.plan-column .table-wrap{width:100%;max-width:100%;height:100%;max-height:100%;min-height:0;overflow-x:auto;overflow-y:auto;scrollbar-gutter:stable both-edges;padding-bottom:6px}.plan-column:first-child .table-wrap table{min-width:620px}.plan-column:last-child .table-wrap table{min-width:920px}.plan-table-wrap{display:block;height:100%;max-height:100%;overflow:scroll;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-color:#8aa0ad #edf2f5;scrollbar-width:auto}.plan-composite-table-wrap,.plan-task-table-wrap{min-height:0}.plan-task-table-wrap table{width:max-content;min-width:960px;max-width:none}.plan-composite-table-wrap table{width:max-content;min-width:620px;max-width:none}.plan-table-wrap::-webkit-scrollbar{width:12px;height:12px}.plan-table-wrap::-webkit-scrollbar-track{background:#edf2f5}.plan-table-wrap::-webkit-scrollbar-thumb{border:2px solid #edf2f5;border-radius:999px;background:#8aa0ad}.compact-empty{min-height:96px;margin:0}.editable-name{justify-content:flex-start;width:100%;min-height:32px;border:1px solid transparent;border-radius:6px;background:transparent;color:#173a36;padding:0 8px;font-weight:800}.editable-name:not(:disabled):hover{border-color:#cfd9dd;background:#f4f7f6}.inline-input{min-width:120px;padding:6px 8px}.inline-select{min-width:86px;min-height:32px;border:1px solid #cfd9dd;border-radius:6px;background:#fff;color:#30434c;padding:0 8px}.item-editor{display:flex;flex-wrap:wrap;gap:6px;min-width:280px}.item-token{display:inline-flex;align-items:center;gap:5px;min-height:26px;border:1px solid #d8e0df;border-radius:999px;background:#f7faf9;color:#30434c;padding:0 8px;font-size:12px;font-weight:700}.item-token button{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border:0;border-radius:50%;background:#e7eeee;color:#51656e;padding:0}.item-add-row{display:grid;grid-template-columns:minmax(120px,220px) auto auto;gap:8px;margin-top:8px}.item-add-toggle{width:fit-content;margin-top:8px}.compact-button{min-height:36px;padding:0 10px}.json-details{display:grid;gap:10px}.json-details summary{cursor:pointer;color:#30434c;font-weight:700}code{color:#1d5d62;background:#eef6f2;border-radius:4px;padding:1px 4px}@media (max-width: 980px){*,*:before,*:after{min-width:0}.app-shell,.split,.analysis-grid,.ai-layout,.data-strip,.upload-summary,.ai-settings-panel,.settings-row,.stage-tabs,.statement-grid,.result-stage .analysis-grid,.plan-grid,.append-chat,.append-manual-grid,.item-add-row{grid-template-columns:1fr}.app-shell{overflow-x:hidden}.app-shell{width:100%;max-width:100vw}.mobile-nav-toggle{position:fixed;top:14px;left:14px;z-index:40;display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 12px;border:1px solid rgba(96,165,250,.38);border-radius:999px;background:#ffffffe0;color:#1e3a5f;box-shadow:0 10px 24px #14202c1f;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);font-weight:800}.center-title h2{font-size:32px}.send-button{margin-left:0}.sidebar{position:fixed;inset:0 auto 0 0;z-index:35;width:min(82vw,310px);min-height:100vh;overflow-y:auto;transform:translate(-105%);transition:transform .22s ease;background:#ffffffeb}.app-shell.sidebar-open .sidebar{transform:translate(0)}.sidebar-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;width:100%;min-height:100vh;border:0;background:#0f172a3d}.app-shell.sidebar-open .sidebar-scrim{display:block}.content{display:grid;justify-items:center;padding:70px 5vw 22px;width:100%;max-width:100vw;min-width:0;overflow-x:hidden}.content.record-content{height:100vh;overflow:auto}.content>.panel,.chat-hero,.chat-card,.subpanel,.stage-panel,.workflow-panel,.compact-panel,.summary-panel,.result-workspace,.result-stage,.results-shell,.append-panel,.analysis-control-panel,.result-card,.result-table,.plan-preview,.plan-grid,.plan-column,.table-wrap{width:100%;max-width:100%;min-width:0}.content>.panel{width:100%;max-width:90vw;justify-self:center}.chat-card{padding:14px}.center-title{width:100%;max-width:100%}.center-title h2{font-size:28px;overflow-wrap:anywhere}.center-title p,.compact,.hint,.notice-text,.summary-panel p{overflow-wrap:anywhere}.chat-card textarea,.append-chat textarea{width:100%;max-width:100%}.chat-mode-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));align-items:stretch;gap:8px}.chat-mode-row button{width:100%;min-width:0;min-height:32px;justify-content:center;gap:5px;padding:0 7px;border-radius:12px;font-size:12px;line-height:1.2;white-space:normal}.chat-mode-row button svg{flex:0 0 auto;width:14px;height:14px}.model-select{display:grid;grid-column:1 / -1;grid-template-columns:auto minmax(0,1fr);align-items:center;width:100%;margin-left:0;gap:8px;font-size:12px}.model-select select{width:100%;min-width:0;max-width:100%;min-height:32px;border-radius:12px;padding:0 8px;font-size:12px}.chat-actions{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:8px;align-items:center}.notice-text{min-width:0}.chat-actions .notice-text{grid-column:1 / -1}.file-chip,.manual-link{min-width:0;min-height:34px;justify-content:center;padding:0 10px;font-size:12px}.file-chip span,.manual-link span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.send-button{width:36px;height:36px;min-height:36px;margin-left:0}.record-panel,.record-content .record-panel,.statement-card{width:100%;max-width:90vw}.record-content .record-panel{height:auto;min-height:calc(100vh - 92px);min-width:0;overflow:visible}.record-content .stage-panel{overflow:auto}.record-header{width:100%;max-width:100%;overflow:hidden}.record-title-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.record-title-line h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-meta{grid-column:1 / -1;max-width:100%}.status-badge{padding:2px 7px}.stage-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:6px;width:100%;max-width:100%}.stage-tabs button{gap:4px;min-height:34px;padding:0 4px;font-size:12px;white-space:normal}.stage-tabs button span{width:18px;height:18px;font-size:11px}.toolbar,.form-grid{grid-template-columns:1fr}.confirm-row,.section-title,.result-stage-head,.append-panel-head,.result-head{align-items:flex-start;flex-direction:column}.result-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}.result-head .icon-button{grid-column:2;grid-row:1;width:34px;min-width:34px;height:34px;padding:0}.confirm-row button,.result-actions,.append-mode-row,.button-row{width:100%}.result-actions,.append-mode-row,.button-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px;justify-content:stretch}.result-actions button,.append-mode-row button,.button-row button{width:100%;min-height:34px;padding:0 10px;font-size:12px}.analysis-control-panel{width:100%}.stage-actions{align-items:stretch;flex-direction:column}.stage-actions button,.plan-head button{width:100%}.plan-head{align-items:stretch;flex-direction:column}.plan-column{padding:10px}.plan-preview{height:auto;max-height:none}.plan-grid{height:auto;max-height:none;overflow:visible}.plan-column{height:auto;max-height:none}.plan-table-wrap{height:auto;max-height:46vh;overflow:scroll}.table-wrap,.preview-table,.results-shell{overflow:auto;-webkit-overflow-scrolling:touch}table,.preview-table table,.result-table table{width:max-content;min-width:560px;max-width:none}.plan-preview .table-wrap table,.plan-column:first-child .table-wrap table,.plan-column:last-child .table-wrap table{width:max-content;min-width:560px}.plan-preview td:last-child{min-width:220px;max-width:340px;white-space:normal}.record-header,.result-workspace.with-manual{grid-template-columns:1fr}.result-workspace.with-manual .result-stage,.result-workspace .append-manual-grid{grid-column:1}.result-workspace{overflow:visible}.result-stage{grid-template-rows:auto minmax(260px,1fr) auto}.append-chat,.append-toolbar{grid-template-columns:1fr}.append-toolbar button,.manual-run-button{width:100%;min-width:0;white-space:nowrap}.append-manual-grid{max-height:none}.variable-list,.result-stage .variable-list,.append-manual-grid .variable-list{grid-template-columns:1fr;max-height:260px}.variable-list button,.statement-card,.result-stage{width:100%}.results{min-width:0}.result-stage .result-card{width:100%;min-width:0;max-width:none}.progress-head{grid-template-columns:auto minmax(0,1fr);width:100%}.progress-track{grid-column:1 / -1}input,select,textarea,button{max-width:100%}.subpanel>*,.result-card>*,.chat-card>*,.plan-column>*,.append-panel>*,.analysis-control-panel>*,.result-table>*{min-width:0;max-width:100%}.table-wrap>table{max-width:none}th,td{padding:8px 10px;font-size:12px}.primary,.ghost,.toolbar button,.button-row button{min-height:34px;padding:0 10px;font-size:12px;white-space:normal}.toolbar{gap:8px}.append-toolbar button,.manual-run-button{white-space:nowrap}.upload-summary div,.data-strip div,.statement-grid section{min-width:0;padding:10px}.upload-summary.in-chat{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.upload-summary.in-chat div{gap:3px;min-height:54px;padding:8px 9px;border-radius:7px}.upload-summary.in-chat span{font-size:11px;line-height:1.2}.upload-summary.in-chat strong{min-width:0;font-size:12px;line-height:1.25}.upload-summary strong,.data-strip strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-editor{min-width:0;max-width:100%}.item-token{max-width:100%}.item-token span{overflow:hidden;text-overflow:ellipsis}.item-add-toggle{width:100%}}
