*{box-sizing:border-box}body{margin:0;min-width:1024px;color:#172026;background:#f6f7f9;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,textarea,input{font:inherit}button{cursor:pointer}.app-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.app-sidebar{border-right:1px solid #dfe3e8;background:#fff;padding:20px 16px}.brand{font-size:20px;font-weight:700;margin-bottom:24px}.nav-list{display:grid;gap:8px}.nav-list a{color:#3b4856;text-decoration:none;padding:10px 12px;border-radius:6px}.nav-list a.active{background:#e8f1ff;color:#0b5cad}.app-main{min-width:0;padding:20px}.workspace-layout{display:grid;grid-template-columns:minmax(330px,360px) minmax(500px,1fr) minmax(440px,500px);gap:16px;height:calc(100vh - 40px)}.panel,.page-section{min-width:0;border:1px solid #dfe3e8;border-radius:8px;background:#fff;padding:16px;overflow:auto}.panel h2,.page-section h1{margin:0 0 16px}.file-sidebar{padding:14px}.file-sidebar h2{color:#101923;font-size:22px;letter-spacing:0;margin-bottom:14px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.page-header h1,.page-header p{margin:0}.upload-box{display:grid;gap:8px;margin-bottom:16px}.collection-manager{display:grid;gap:10px;border-bottom:1px solid #edf1f5;margin-bottom:14px;padding-bottom:14px}.collection-create,.collection-edit-row{display:flex;gap:6px}.collection-create input,.collection-edit-row input{min-width:0;flex:1;border:1px solid #cfd6dd;border-radius:6px;padding:8px 9px}.collection-create button,.collection-edit-row button,.collection-actions button{flex:0 0 auto;border:1px solid #cfd6dd;border-radius:6px;background:#fff;color:#405468;padding:7px 8px}.collection-create button{border-color:#0b5cad;color:#0b5cad;font-weight:700}.collection-list{display:grid;gap:7px}.collection-item{display:grid;gap:6px;border:1px solid #dfe3e8;border-radius:7px;background:#fff;padding:7px}.collection-item.is-selected{border-color:#0b5cad;background:#f4f9ff}.collection-select-button{display:grid;gap:4px;border:0;background:transparent;color:inherit;padding:0;text-align:left}.collection-select-button span{overflow:hidden;color:#172026;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.collection-select-button small{color:#667789;font-size:12px}.collection-actions{display:flex;gap:6px}.hidden-input{display:none}.drive-library{display:flex;min-height:0;flex-direction:column;gap:10px}.drive-nav{display:grid;grid-template-columns:32px 32px minmax(0,1fr);gap:5px;align-items:center}.drive-nav>button,.drive-actions button,.drive-breadcrumb button{border:1px solid #cfd6dd;border-radius:6px;background:#fff;color:#405468;padding:7px 9px}.drive-icon-button{display:grid;width:32px;height:32px;place-items:center;padding:0!important;font-size:17px;font-weight:800;line-height:1}.drive-nav>button:disabled,.drive-actions button:disabled{cursor:not-allowed;opacity:.48}.drive-breadcrumb{display:flex;min-width:0;gap:4px;overflow:auto;scrollbar-width:thin}.drive-breadcrumb button{max-width:190px;overflow:hidden;font-size:13px;min-height:32px;text-overflow:ellipsis;white-space:nowrap}.drive-toolbar{display:grid;gap:9px;border-block:1px solid #edf1f5;padding-block:9px}.drive-toolbar>div:first-child{display:grid;gap:3px}.drive-toolbar strong{overflow:hidden;color:#172026;font-size:14px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.drive-toolbar span{color:#667789;font-size:12px}.drive-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.drive-actions button{display:inline-flex;min-width:0;min-height:34px;align-items:center;justify-content:center;gap:4px;font-size:13px;font-weight:650;padding:7px 8px;white-space:nowrap}.drive-actions button:first-child,.drive-actions button:nth-child(2){border-color:#0b5cad;color:#0b5cad;font-weight:700}.danger-inline-button{border-color:#b42318!important;color:#b42318!important}.bulk-upload-status{display:grid;gap:8px;border:1px solid #b9d7c2;border-radius:7px;background:#f3fbf5;color:#244b30;padding:9px 10px}.bulk-upload-status.has-failures{border-color:#f0c4bc;background:#fff8f6;color:#7f271e}.bulk-upload-status>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.bulk-upload-status strong{min-width:0;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.bulk-upload-status button{display:grid;width:24px;height:24px;flex:0 0 auto;place-items:center;border:1px solid currentColor;border-radius:5px;background:transparent;color:inherit;padding:0}.bulk-upload-status ul{display:grid;gap:5px;margin:0;padding:0}.bulk-upload-status li{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;border-top:1px solid rgba(127,39,30,.16);list-style:none;padding-top:6px}.bulk-upload-status li span,.bulk-upload-status li small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bulk-upload-status li small{opacity:.82}.upload-queue{display:grid;gap:8px;border:1px solid #d7dee7;border-radius:8px;background:#fbfdff;padding:9px}.upload-queue-header,.upload-queue-actions,.upload-queue-topline,.upload-queue-meta,.upload-queue-bottomline{display:flex;align-items:center;gap:8px}.upload-queue-header,.upload-queue-topline,.upload-queue-bottomline{justify-content:space-between}.upload-queue-header strong{color:#172026;font-size:13px}.upload-queue-actions{min-width:0}.upload-queue-actions span{color:#667789;font-size:11px;white-space:nowrap}.upload-queue-actions button,.upload-queue-meta button{flex:0 0 auto;border:1px solid #cfd6dd;border-radius:5px;background:#fff;color:#405468;font-size:11px;padding:4px 7px}.upload-queue-list{display:grid;gap:7px;max-height:220px;overflow:auto;padding-right:2px}.upload-queue-item{display:grid;gap:6px;min-width:0;border:1px solid #dfe6ee;border-radius:7px;background:#fff;padding:8px}.upload-queue-item.is-failed{border-color:#f0b8af;background:#fff8f6}.upload-queue-item.is-success{border-color:#b9d7c2;background:#f7fcf8}.upload-queue-item.is-paused,.upload-queue-item.is-restoring{border-color:#ead39a;background:#fffaf0}.upload-queue-topline strong{min-width:0;overflow:hidden;color:#172026;font-size:12px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.upload-queue-meta{flex:0 0 auto}.upload-stage-pill{border:1px solid #c9d3df;border-radius:999px;background:#f8fafc;color:#405468;font-size:11px;font-weight:700;padding:2px 7px;white-space:nowrap}.upload-stage-pill.is-uploading,.upload-stage-pill.is-importing{border-color:#8bb9ee;background:#e8f1ff;color:#0b5cad}.upload-stage-pill.is-paused,.upload-stage-pill.is-restoring{border-color:#dfbf62;background:#fff6dc;color:#8a5a00}.upload-stage-pill.is-success{border-color:#a8d5bd;background:#effaf3;color:#197044}.upload-stage-pill.is-failed{border-color:#f0b8af;background:#fff5f3;color:#b42318}.upload-progress-track{overflow:hidden;height:7px;border-radius:999px;background:#edf1f5}.upload-progress-track span{display:block;height:100%;border-radius:inherit;background:#0b5cad;transition:width .18s ease-out}.upload-queue-item.is-importing .upload-progress-track span{background:#2877c6}.upload-queue-item.is-success .upload-progress-track span{background:#197044}.upload-queue-item.is-failed .upload-progress-track span{background:#b42318}.upload-queue-bottomline{min-width:0;color:#667789;font-size:11px}.upload-queue-bottomline span,.upload-queue-bottomline em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-queue-bottomline small{flex:0 0 auto;color:#172026;font-size:11px;font-variant-numeric:tabular-nums;font-weight:800}.upload-queue-bottomline em{flex:0 0 auto;font-style:normal}.upload-error-text{margin:0;overflow:hidden;color:#9f2419;font-size:11px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.drive-list{display:grid;align-content:start;gap:6px;min-height:180px}.drive-list-skeleton{display:grid;gap:7px}.drive-list-skeleton span{display:block;height:46px;overflow:hidden;border:1px solid #edf1f5;border-radius:7px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.82),transparent),#f3f7fb;background-size:220px 100%,100% 100%;animation:drive-skeleton-sheen 1.1s ease-in-out infinite}@keyframes drive-skeleton-sheen{0%{background-position:-220px 0,0 0}to{background-position:calc(100% + 220px) 0,0 0}}@media(prefers-reduced-motion:reduce){.drive-list-skeleton span{animation:none}}.drive-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;align-items:center;border:1px solid #dfe3e8;border-radius:7px;background:#fff;min-height:46px;padding:6px 7px}.drive-row.is-selected,.drive-row.is-active{border-color:#0b5cad;background:#f4f9ff}.drive-row.is-review{border-color:#f1ca82;background:#fffaf0}.drive-row.is-review .drive-row-icon{border-color:#f1ca82;background:#fff4d8;color:#8a5906}.drive-row.is-review small{color:#8a5906;font-weight:700}.drive-row input{width:16px;height:16px}.drive-row-main{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:7px;row-gap:2px;align-items:center;min-width:0;border:0;background:transparent;color:inherit;padding:0;text-align:left}.drive-row-icon{display:grid;width:21px;height:21px;place-items:center;border:1px solid #c9d3df;border-radius:5px;color:#0b5cad;font-size:12px;font-weight:800}.drive-row-name{overflow:hidden;color:#172026;font-size:13px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.drive-row small{grid-column:2;color:#667789;font-size:11px;line-height:1.25}.drive-empty{border:1px dashed #c9d3df;border-radius:7px;color:#667789;padding:14px;line-height:1.5}.dialog-backdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:#17202661;padding:20px}.app-dialog{display:grid;width:min(520px,100%);max-height:min(680px,calc(100vh - 40px));overflow:auto;border:1px solid #cfd6dd;border-radius:10px;background:#fff}.app-dialog-header,.app-dialog-body,.app-dialog-actions{padding:16px}.app-dialog-header{border-bottom:1px solid #edf1f5}.app-dialog-header h2,.app-dialog-header p{margin:0}.app-dialog-header h2{font-size:18px}.app-dialog-header p{color:#506172;line-height:1.5;margin-top:5px}.app-dialog-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #edf1f5}.dialog-secondary-button,.dialog-primary-button,.dialog-danger-button{border:1px solid #cfd6dd;border-radius:6px;background:#fff;color:#405468;padding:8px 12px}.dialog-primary-button{border-color:#0b5cad;background:#0b5cad;color:#fff}.dialog-danger-button{border-color:#b42318;background:#b42318;color:#fff}.dialog-primary-button:disabled,.dialog-danger-button:disabled{cursor:not-allowed;opacity:.55}.dialog-field{display:grid;gap:6px}.dialog-field span{color:#506172;font-size:12px;font-weight:700}.dialog-field input{width:100%;border:1px solid #cbd5e1;border-radius:7px;color:#172026;padding:10px 11px}.move-target-list{display:grid;gap:7px;max-height:320px;overflow:auto}.move-target-list button{overflow:hidden;border:1px solid #dfe3e8;border-radius:7px;background:#fff;color:#172026;padding:9px 10px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.move-target-list button.is-selected{border-color:#0b5cad;background:#e8f1ff;color:#0b5cad;font-weight:700}.file-list{display:grid;gap:8px}.file-item{display:flex;align-items:center;gap:8px;justify-content:space-between;width:100%;border:1px solid #dfe3e8;border-radius:6px;background:#fff;padding:6px;text-align:left}.file-item.is-selected,.sheet-tabs button.is-selected{border-color:#0b5cad;background:#e8f1ff;color:#0b5cad}.file-select-button{display:grid;min-width:0;flex:1;gap:3px;border:0;background:transparent;color:inherit;padding:4px;text-align:left}.file-select-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-select-button small{flex:0 0 auto}.file-select-button em{overflow:hidden;color:#667789;font-size:12px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.file-delete-button{flex:0 0 auto;border:1px solid #cfd6dd;border-radius:6px;background:#fff;color:#667789;padding:5px 8px}.file-delete-button:hover{border-color:#b42318;color:#b42318}.file-delete-button:disabled{cursor:not-allowed;opacity:.55}.sheet-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.sheet-tabs button{border:1px solid #dfe3e8;border-radius:6px;background:#fff;padding:8px 10px}.sheet-preview-section{display:flex;min-height:0;flex:1;flex-direction:column;gap:10px;margin-top:14px}.structure-review{display:grid;gap:12px;overflow:visible}.structure-review-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.structure-review-header h2,.structure-review-header p{margin:0}.structure-review-header h2{color:#101923;font-size:18px}.structure-review-header p{color:#506172;font-size:12px;line-height:1.5;margin-top:4px}.structure-review-header button{flex:0 0 auto;border:1px solid #cfd6dd;border-radius:6px;background:#fff;color:#0b5cad;font-size:12px;font-weight:700;padding:7px 10px}.structure-review-header button:disabled{cursor:not-allowed;opacity:.55}.structure-block-list{display:flex;flex:0 0 auto;gap:7px;overflow-x:auto;padding-bottom:2px}.structure-block-list button{display:grid;min-width:160px;gap:4px;border:1px solid #d7dee7;border-radius:7px;background:#fff;color:#172026;padding:8px 9px;text-align:left}.structure-block-list button.is-selected{border-color:#0b5cad;background:#eef6ff}.structure-block-list strong,.structure-block-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.structure-block-list strong{font-size:13px}.structure-block-list span{color:#506172;font-size:12px}.structure-status{width:fit-content;border:1px solid #c9d3df;border-radius:999px;color:#405468;font-size:11px;font-weight:700;padding:2px 7px}.structure-status.is-ready{border-color:#a8d5bd;background:#effaf3;color:#197044}.structure-status.is-needs_review{border-color:#f1ca82;background:#fff8e8;color:#8a5906}.structure-actions{display:flex;flex:0 0 auto;align-items:center;gap:10px}.structure-actions button{border:1px solid #0b5cad;border-radius:6px;background:#0b5cad;color:#fff;font-size:13px;font-weight:700;padding:8px 12px}.structure-actions button:disabled{cursor:not-allowed;opacity:.6}.structure-plan-summary{display:grid;flex:0 0 auto;gap:9px;border:1px solid #d7dee7;border-radius:8px;background:#fbfdff;padding:10px}.structure-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.structure-metric{display:grid;min-width:0;gap:3px;border:1px solid #edf1f5;border-radius:7px;background:#fff;padding:8px}.structure-metric span{color:#667789;font-size:11px}.structure-metric strong{overflow:hidden;color:#172026;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.structure-coordinates,.structure-issue-list{display:flex;flex-wrap:wrap;gap:6px}.structure-coordinates span,.structure-issue-list span{border:1px solid #d7dee7;border-radius:999px;background:#fff;color:#405468;font-size:12px;padding:4px 8px}.structure-issue-list span{border-color:#f1ca82;background:#fff8e8;color:#7c5208}.raw-content-blocks{display:grid;flex:0 0 auto;gap:8px}.raw-content-list{display:grid;overflow:visible;border:1px solid #dfe6ee;border-radius:8px;background:#fff}.raw-content-item{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;border-bottom:1px solid #edf1f5;padding:8px 10px}.raw-content-item:last-child{border-bottom:0}.raw-content-item span{color:#667789;font-size:12px;font-weight:700}.raw-content-item p{margin:0;color:#172026;font-size:13px;line-height:1.45}.structure-table-wrap{display:grid;gap:9px}.structure-table-wrap .result-table-shell{overflow-x:auto;overflow-y:visible;max-height:none;border:1px solid #dfe6ee;border-radius:8px;background:#fff}.structure-table-wrap .result-table{table-layout:fixed;min-width:560px}.structure-table-wrap .result-table col.is-text-column{width:150px}.structure-table-wrap .result-table col.is-numeric-column{width:118px}.structure-table-wrap .result-table th,.structure-table-wrap .result-table td{overflow:hidden;padding:7px 9px;text-overflow:ellipsis}.structure-table-wrap .result-table th{overflow:visible;text-overflow:clip;white-space:normal;vertical-align:bottom}.structure-empty{border:1px dashed #c9d3df;border-radius:8px;color:#667789;line-height:1.5;padding:14px}.structure-skeleton{display:grid;gap:8px}.structure-skeleton span{display:block;height:38px;border-radius:7px;background:linear-gradient(90deg,#edf1f5,#f8fafc,#edf1f5)}.sheet-preview{display:flex;flex-direction:column}.sheet-context-card{display:grid;gap:6px;border:1px solid #d7dee7;border-radius:8px;background:#fbfdff;padding:12px}.sheet-context-card strong{color:#101923;font-size:16px}.sheet-context-card div{display:flex;flex-wrap:wrap;gap:8px}.sheet-context-card span{border:1px solid #d7dee7;border-radius:999px;color:#405468;font-size:12px;padding:3px 8px}.sheet-preview-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.sheet-preview-title h3{color:#172026;font-size:15px;margin:0}.sheet-preview-title p,.sheet-preview-title small{display:block;margin:3px 0 0;color:#667789;font-size:12px;line-height:1.35}.sheet-preview-title span{border:1px solid #c9d3df;border-radius:999px;color:#506172;font-size:12px;padding:3px 8px}.recognized-header-list{display:flex;flex-wrap:wrap;gap:6px}.recognized-header-list span{border:1px solid #d7dee7;border-radius:999px;background:#f8fafc;color:#405468;font-size:12px;font-weight:600;padding:4px 8px}.query-panel{display:flex;flex-direction:column;gap:10px;overflow:hidden;background:linear-gradient(180deg,#edf3f8d1,#fafcfef2),#f7f9fc;padding:12px}.query-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.query-panel-header h2,.query-panel-header p{margin:0}.query-panel-header h2{color:#101923;font-size:18px;line-height:1.2}.query-panel-header p{color:#506172;font-size:12px;line-height:1.5;margin-top:4px}.query-status-pill{flex:0 0 auto;border:1px solid #c9d3df;border-radius:999px;background:#fff;color:#405468;font-size:12px;font-weight:700;padding:5px 9px}.query-status-pill.is-running{border-color:#8bb9ee;background:#e8f1ff;color:#0b5cad}.query-composer,.query-result-card,.agent-plan-card,.sql-preview{border:1px solid #d7dee7;border-radius:8px;background:#fff}.query-composer{display:grid;flex:0 0 auto;gap:8px;padding:10px}.query-scope-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.query-field-label,.result-kicker{color:#506172;font-size:12px;font-weight:700}.scope-toggle{display:inline-flex;border:1px solid #d7dee7;border-radius:7px;overflow:hidden}.scope-toggle button{min-width:76px;border:0;border-right:1px solid #d7dee7;background:#fff;color:#405468;padding:7px 10px}.scope-toggle button:last-child{border-right:0}.scope-toggle button:hover{background:#f3f7fb}.scope-toggle button.is-selected{background:#0b5cad;color:#fff;font-weight:700}.query-input{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.query-input textarea{min-height:66px;width:100%;border:1px solid #cbd5e1;border-radius:8px;background:#fbfdff;color:#172026;line-height:1.55;padding:12px;resize:vertical}.query-input textarea:focus{border-color:#0b5cad;box-shadow:0 0 0 3px #0b5cad1f;outline:none}.query-input button{min-height:42px;justify-self:end;white-space:nowrap}.query-context-line{border-top:1px solid #edf1f5;color:#506172;font-size:12px;line-height:1.5;padding-top:8px}.query-error-panel{border:1px solid #f0b8af;border-radius:8px;background:#fff5f3;color:#9f2419;padding:10px 12px}.agent-plan-card{display:grid;gap:10px;flex:0 0 auto;padding:10px 12px}.agent-plan-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}.agent-plan-header::-webkit-details-marker,.sql-preview-header::-webkit-details-marker{display:none}.agent-plan-header h3,.agent-plan-header p{margin:0}.agent-plan-header h3{color:#172026;font-size:14px;margin-top:3px}.agent-plan-header p{color:#506172;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:12px;line-height:1.45;margin-top:3px;overflow:hidden}.agent-plan-header small{display:block;color:#7b8a9a;font-size:11px;font-weight:700;margin-top:4px}.agent-plan-header-actions{display:grid;flex:0 0 auto;justify-items:end;gap:8px}.agent-risk-pill{flex:0 0 auto;border:1px solid #c9d3df;border-radius:999px;background:#f8fafc;color:#405468;font-size:12px;font-weight:700;padding:5px 9px}.agent-risk-pill.is-low{border-color:#a8d5bd;background:#effaf3;color:#197044}.agent-risk-pill.is-medium{border-color:#f1ca82;background:#fff8e8;color:#8a5906}.agent-confirm-primary-button{min-height:36px;border:1px solid #0b5cad;border-radius:7px;background:#0b5cad;color:#fff;font-size:13px;font-weight:800;padding:8px 12px;white-space:nowrap}.agent-confirm-primary-button:disabled{cursor:not-allowed;border-color:#bcc8d6;background:#e8edf3;color:#667789}.agent-next-action{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #d6e3f2;border-radius:8px;background:#f6faff;color:#344456;padding:10px 12px}.agent-next-action.is-ready{border-color:#9fceb5;background:#effaf3;color:#244b30}.agent-next-action.is-completed{border-color:#8ec5a6;background:#eaf8ef;color:#1f5f3a}.agent-next-action div{display:grid;min-width:0;gap:2px}.agent-next-action strong{color:#172026;font-size:13px}.agent-next-action span{color:#506172;font-size:12px;line-height:1.45}.agent-step-list{display:grid;gap:6px;list-style:none;margin:2px 0 0;padding:0}.agent-step-list li{display:grid;grid-template-columns:24px 1fr;gap:8px;border:1px solid #edf1f5;border-radius:8px;background:#fbfdff;padding:8px}.agent-step-list li>span{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:#e8f1ff;color:#0b5cad;font-size:12px;font-weight:800}.agent-step-list strong{color:#172026;font-size:13px}.agent-step-list p{color:#506172;font-size:12px;line-height:1.45;margin:3px 0 0}.agent-preview-panel{display:grid;gap:8px;border:1px solid #d7dee7;border-radius:8px;background:#fbfdff;color:#405468;font-size:12px;padding:10px}.agent-preview-panel.is-error{border-color:#f0b8af;background:#fff5f3;color:#9f2419}.agent-preview-panel.is-error strong{color:#9f2419}.agent-preview-metrics{display:flex;flex-wrap:wrap;gap:6px}.agent-preview-metrics span{border:1px solid #d7dee7;border-radius:999px;background:#fff;color:#172026;font-size:12px;font-weight:700;padding:4px 8px}.agent-preview-design{color:#506172;margin:0}.agent-preview-table-wrap{max-width:100%;overflow:auto}.agent-preview-table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:fixed}.agent-preview-table th,.agent-preview-table td{max-width:160px;border:1px solid #e4eaf0;color:#172026;font-size:12px;overflow:hidden;padding:6px 8px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.agent-preview-table th{background:#eef5ff;color:#274761;font-weight:800}.agent-confirm-panel{display:grid;gap:3px;border:1px solid #f1ca82;border-radius:8px;background:#fff8e8;color:#7c5208;font-size:12px;line-height:1.5;padding:10px 12px}.agent-confirm-panel.is-completed{border-color:#9fceb5;background:#effaf3;color:#244b30}.agent-confirm-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:8px}.agent-confirm-actions a{color:#0b5cad;font-size:12px;font-weight:700;text-decoration:none}.agent-confirm-actions a:hover{text-decoration:underline}.sql-preview{flex:0 0 auto;padding:0}.sql-preview-header{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:10px 12px}.sql-preview-header span{color:#172026;font-size:13px;font-weight:800;margin:0}.sql-preview small{border:1px solid #c9d3df;border-radius:999px;color:#506172;font-size:12px;font-weight:600;padding:3px 8px}.sql-preview pre{max-height:170px;overflow:auto;border-top:1px solid #253341;border-radius:0 0 7px 7px;background:#16212c;color:#edf7ff;font-size:12px;line-height:1.55;margin:0;padding:12px}.query-result-card{display:flex;min-height:clamp(300px,44vh,560px);overflow:hidden;flex:1 1 auto;flex-direction:column;box-shadow:0 12px 26px #1525360f}.query-result-card.is-empty{display:grid;place-items:center;padding:22px}.result-toolbar{display:block;border-bottom:1px solid #edf1f5;flex:0 0 auto;padding:11px 12px 10px}.result-summary{min-width:0}.result-heading-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.result-topline{display:inline-flex;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;gap:8px}.result-explanation{color:#263746;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;font-size:12px;line-height:1.5;margin:8px 0 0;overflow:hidden}.result-metrics{display:flex;flex-wrap:wrap;gap:6px;margin-top:0}.result-metrics span{border:1px solid #d7dee7;border-radius:999px;background:#f8fafc;color:#405468;font-size:12px;font-weight:600;padding:4px 8px}.result-sources{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;margin-top:8px}.result-source-label{align-self:start;color:#506172;font-size:12px;font-weight:800;padding-top:8px}.source-panel{border:1px solid #dfe3e8;border-radius:8px;background:#fbfdff;margin-bottom:16px;padding:12px}.source-panel h3{margin:0 0 10px}.source-list{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}.source-item{display:block;min-width:min(260px,78%);border:1px solid #d7dee7;border-radius:7px;background:linear-gradient(180deg,#fff,#f8fafc);padding:7px 9px;text-align:left}.source-item-button{cursor:pointer}.source-item-button:hover{border-color:#8bb9ee;background:#eef6ff}.source-item-button:focus-visible{outline:3px solid rgba(11,92,173,.18);outline-offset:2px}.source-item strong,.source-item span,.source-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-item strong{display:block;color:#172026;font-size:12px}.source-item span{display:block;color:#405468;font-size:12px;margin-top:2px}.source-item small,.source-more{color:#667789;font-size:12px}.source-item small{display:block;margin-top:1px}.source-more{padding:2px 0}.source-empty{border:1px dashed #c9d3df;border-radius:7px;color:#667789;font-size:12px;line-height:1.4;padding:8px 9px}.result-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:6px;justify-content:flex-end}.result-actions button{min-height:26px;border:1px solid #b8c8da;border-radius:999px;background:#fff;color:#0b5cad;font-size:12px;font-weight:700;padding:4px 9px}.result-actions button:hover{border-color:#0b5cad;background:#eef6ff}.result-actions button:disabled{cursor:not-allowed;opacity:.55}.result-empty-state{display:grid;gap:6px;color:#506172;line-height:1.5;padding:18px;text-align:center}.result-empty-state strong{color:#172026;font-size:15px}.result-table-shell{max-height:340px;overflow:auto}.query-result-table-shell{flex:1 1 auto;max-height:none;min-height:0}.query-result-card .result-table{table-layout:fixed;min-width:420px}.query-result-card .result-table col.is-text-column{width:160px}.query-result-card .result-table col.is-numeric-column{width:112px}.query-result-card .result-table th,.query-result-card .result-table td{padding:7px 9px}.query-result-card .result-table th{background:#eef4fa;color:#263746}.query-result-card .result-table th,.query-result-card .result-table td{overflow:hidden;text-overflow:ellipsis}.query-result-card .result-table th.is-numeric{text-align:right}.sheet-preview .result-table-shell{flex:1;border:1px solid #dfe6ee;border-radius:8px;max-height:none;min-height:420px;background:#fff}.sheet-preview .result-table{table-layout:fixed}.sheet-preview .result-table col.is-text-column{width:150px}.sheet-preview .result-table col.is-numeric-column{width:116px}.sheet-preview .result-table th,.sheet-preview .result-table td{overflow:hidden;text-overflow:ellipsis}.sheet-preview .result-table th{overflow:visible;text-overflow:clip;white-space:normal;vertical-align:bottom}.sheet-preview .result-table th.is-numeric{text-align:right}.sheet-preview .result-table th:first-child,.sheet-preview .result-table td:first-child{position:sticky;left:0;z-index:2;box-shadow:1px 0 #dfe3e8}.sheet-preview .result-table th:first-child{z-index:3}.sheet-preview .result-table td:first-child{background:#fff}.sheet-preview .result-table tr:nth-child(2n) td:first-child{background:#fbfdff}.sheet-header-single{display:block;line-height:1.35;max-width:100%;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;white-space:normal}.sheet-header-stack{display:grid;gap:2px;line-height:1.15;max-width:100%;overflow-wrap:anywhere;white-space:normal}.sheet-header-stack .is-parent{color:#667789;font-size:11px;font-weight:600}.sheet-header-stack .is-leaf{color:#172026;font-size:12px;font-weight:700}.recognized-header-list span{max-width:100%}.result-table{width:100%;border-collapse:collapse;font-size:13px}.result-table th,.result-table td{border-bottom:1px solid #dfe3e8;padding:9px 10px;text-align:left;white-space:nowrap}.result-table th{position:sticky;top:0;z-index:1;background:#f3f7fb;color:#405468;font-size:12px;font-weight:700}.result-table tr:nth-child(2n) td{background:#fbfdff}.result-table td{color:#172026}.result-table td.is-numeric{font-variant-numeric:tabular-nums;text-align:right}.history-page{height:calc(100vh - 40px)}.history-layout{display:grid;grid-template-columns:minmax(330px,390px) minmax(0,1fr);gap:18px;min-height:0}.history-search{display:grid;gap:6px;min-width:280px}.history-search span{color:#506172;font-size:12px;font-weight:700}.history-search input{width:100%;border:1px solid #cbd5e1;border-radius:8px;color:#172026;padding:9px 10px}.history-search input:focus{border-color:#0b5cad;box-shadow:0 0 0 3px #0b5cad1f;outline:none}.history-sidebar{display:grid;align-content:start;gap:10px;min-width:0}.history-bulk-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid #dfe6ee;border-radius:8px;background:#fbfdff;padding:9px 10px}.history-bulk-toolbar label{display:inline-flex;align-items:center;gap:7px;color:#405468;font-size:13px;font-weight:750;white-space:nowrap}.history-bulk-toolbar input,.history-row>input{width:16px;height:16px;accent-color:#0b5cad}.history-bulk-toolbar strong{overflow:hidden;color:#172026;font-size:13px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.history-bulk-toolbar button{min-height:32px;font-size:13px;font-weight:750;padding-inline:10px;white-space:nowrap}.history-list{display:grid;align-content:start;gap:8px;max-height:calc(100vh - 206px);overflow:auto}.history-row{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:8px;border:1px solid #dfe3e8;border-radius:8px;background:#fff;padding:8px}.history-row.is-active{border-color:#0b5cad;background:#eef6ff;box-shadow:0 0 0 3px #0b5cad14}.history-row.is-checked{border-color:#8fb7df}.history-item{display:grid;min-width:0;width:100%;gap:6px;border:0;background:transparent;padding:0;text-align:left}.history-item:hover .history-question{color:#0b5cad}.history-kind{width:fit-content;border:1px solid #c9d3df;border-radius:999px;background:#f8fafc;color:#405468;font-size:11px;font-weight:800;padding:2px 7px}.history-kind.is-query{border-color:#b8c8da;background:#eef6ff;color:#0b5cad}.history-kind.is-agent{border-color:#dfbf62;background:#fff8e8;color:#8a5a00}.history-kind.is-agent.is-completed{border-color:#9fceb5;background:#effaf3;color:#197044}.history-kind.is-agent.is-failed{border-color:#f0b8af;background:#fff5f3;color:#b42318}.history-question{overflow:hidden;color:#172026;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.history-meta{color:#667789;font-size:12px}.history-detail{min-width:0;border-left:1px solid #dfe3e8;padding-left:16px;overflow:auto}.history-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.history-detail-header h2,.history-detail-header p,.history-detail h3{margin-top:0}.history-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.history-title-row h2{margin:0;text-wrap:balance}.status-pill{border:1px solid #b9d7c2;border-radius:999px;background:#ecf8ef;color:#157347;font-size:12px;font-weight:600;padding:3px 8px}.status-pill.is-completed{border-color:#9fceb5;background:#effaf3;color:#197044}.status-pill.is-failed{border-color:#f0b8af;background:#fff5f3;color:#b42318}.status-pill.is-needs_confirmation{border-color:#dfbf62;background:#fff8e8;color:#8a5a00}.history-download-button,.agent-generated-panel a{display:inline-flex;min-height:32px;align-items:center;justify-content:center;border:1px solid #0b5cad;border-radius:7px;background:#0b5cad;color:#fff;font-size:13px;font-weight:800;padding:7px 12px;text-decoration:none;white-space:nowrap}.result-actions{flex-wrap:wrap}.agent-history-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:16px}.agent-history-summary div{display:grid;gap:3px;min-width:0;border:1px solid #dfe6ee;border-radius:7px;background:#fbfdff;padding:10px}.agent-history-summary span{color:#667789;font-size:12px}.agent-history-summary strong{overflow:hidden;color:#172026;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.agent-history-summary.is-completed div{border-color:#c9e6d4;background:#f5fcf7}.agent-history-summary.is-failed div{border-color:#f3c8c1;background:#fff8f6}.agent-generated-panel,.agent-history-plan{display:grid;gap:10px;border:1px solid #dfe6ee;border-radius:8px;background:#fff;margin-bottom:16px;padding:12px}.agent-generated-panel{border-color:#b9d7c2;background:#f7fcf8}.agent-generated-panel.is-pending{border-color:#dfe6ee;background:#fbfdff}.agent-generated-panel h3,.agent-generated-panel p,.agent-history-plan h3{margin:0}.agent-generated-panel p{color:#405468;font-size:13px}.repair-panel{border:1px solid #dfe3e8;border-radius:6px;background:#fbfcfd;margin-bottom:16px;padding:12px}.repair-grid{display:grid;gap:10px}.repair-label{display:block;color:#667789;font-size:12px;font-weight:700;margin-bottom:4px}.repair-panel pre{overflow:auto;border-radius:6px;background:#172026;color:#eef5ff;margin:0;padding:10px}.muted,.empty-state{color:#667789}.settings-page{align-content:start}.settings-page-heading{max-width:920px;margin-bottom:18px}.settings-page-heading h1{margin-bottom:6px}.settings-page-heading p{margin:0;color:#667789;font-size:14px;line-height:1.6}.settings-form{display:grid;max-width:1040px;gap:18px}.settings-section{display:grid;gap:18px;border:1px solid #dfe6ee;border-radius:8px;background:linear-gradient(180deg,#fff,#fbfcfd);box-shadow:0 12px 28px #14273a0f;padding:18px}.settings-section-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start}.settings-section-title{display:grid;gap:4px}.settings-section-kicker{color:#7b8794;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.settings-section-title h2{margin:0;color:#102033;font-size:17px}.settings-section-title p{margin:0;color:#667789;font-size:13px;line-height:1.5}.settings-field-grid{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:14px}.settings-form label{display:grid;gap:6px}.settings-form label span{color:#344456;font-size:12px;font-weight:700}.settings-form input{width:100%;border:1px solid #cfd6dd;border-radius:6px;background:#fff;color:#102033;padding:10px 12px}.settings-form input:focus{border-color:#0b5cad;box-shadow:0 0 0 3px #0b5cad1f;outline:none}.settings-section-status{min-height:20px;color:#667789;font-size:13px}.settings-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;border:1px solid #dfe6ee;border-radius:8px;background:#fff;padding:14px 16px}.settings-form button,.query-input button,.upload-box button{width:fit-content;border:1px solid #0b5cad;border-radius:6px;background:#0b5cad;color:#fff;padding:10px 14px}.settings-test-button{background:#fff;color:#0b5cad;white-space:nowrap}.settings-save-hint{color:#667789;font-size:13px}.settings-form button:disabled,.query-input button:disabled,.collection-create button:disabled,.collection-actions button:disabled{cursor:not-allowed;opacity:.55}.success-text{color:#157347}.error-text{color:#b42318}@media(max-width:760px){.settings-section-head,.settings-field-grid{grid-template-columns:1fr}.settings-test-button{width:100%}.settings-actions{align-items:stretch}.settings-actions button{width:100%}}.result-actions .danger-button{border-color:#b42318;color:#b42318}.result-actions .danger-button:hover{background:#fff5f3}@media(max-width:1280px){.workspace-layout{grid-template-columns:320px minmax(420px,1fr);height:auto;min-height:calc(100vh - 40px)}.query-panel{grid-column:1 / -1;min-height:540px}.workspace-layout>.panel{min-height:calc(100vh - 40px)}.query-panel-header,.result-toolbar{align-items:stretch;flex-direction:column}.query-status-pill,.result-actions{align-self:flex-start}.result-actions{justify-content:flex-start}.result-heading-row,.result-topline{align-items:flex-start;justify-content:flex-start}}@media(max-width:1120px){.query-input{grid-template-columns:1fr}.query-input button{width:100%}}
