.react-grid-layout{position:relative;transition:height .2s ease}.react-grid-item{transition:all .2s ease;transition-property:left,top,width,height}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,.4);border-bottom:2px solid rgba(0,0,0,.4)}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+);background-position:bottom right;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-w,.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}:root{--bg: #ffffff;--surface: #ffffff;--surface-elevated: #f6f6f6;--surface-input: #ffffff;--ink: #3c3c3c;--ink-bright: #1e1e1e;--muted: #717171;--muted-dim: #9a9a9a;--accent: #0066cc;--accent-dim: rgba(0, 102, 204, .1);--border: #e8e8e8;--border-subtle: #ebebeb;--hover: #f0f0f0;--user-bg: #f4f4f5;--danger: #e51400;--scrollbar: rgba(0, 0, 0, .18);--scrollbar-hover: rgba(0, 0, 0, .32);--sidebar: 240px;--radius: 8px;--radius-sm: 6px;--font-ui: "Pretendard", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace}.chat-trace,.chat-trace-empty{margin:10px 0;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.chat-trace{border:1px solid var(--border);border-radius:6px;background:var(--surface)}.chat-trace>summary{padding:8px 10px;cursor:pointer}.chat-trace summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.chat-trace-body{padding:0 10px 10px;color:var(--ink)}.chat-trace-facts{display:grid;grid-template-columns:minmax(90px,130px) minmax(0,1fr);gap:6px 12px}.chat-trace-facts dt{color:var(--muted)}.chat-trace-facts dd{margin:0}.chat-trace-list{margin-top:10px}.chat-trace-list summary{cursor:pointer}.chat-trace-list ul{margin:8px 0;padding-left:20px}.chat-trace-list li{margin:4px 0}.chat-trace-body h4{margin:12px 0 6px;font-size:12px}.chat-trace-note{color:var(--muted);margin:6px 0}.chat-trace-evidence{margin-top:8px;padding:8px;background:var(--surface-elevated);border-radius:4px}.chat-trace-evidence p{margin:4px 0;color:var(--muted)}.chat-trace-evidence blockquote{margin:6px 0 0;padding-left:8px;border-left:2px solid var(--border);white-space:pre-wrap}.chat-trace-evidence blockquote span{display:block;color:var(--muted);margin-bottom:4px}.chat-trace-steps>summary{cursor:pointer;color:var(--ink)}.chat-trace-step{margin-top:10px;padding-top:8px;border-top:1px solid var(--border-subtle)}.chat-trace-step-question{margin:0 0 4px;font-weight:500;white-space:pre-wrap}.chat-trace-step-route{color:var(--muted);margin-bottom:4px}.chat-turn{display:flex;flex-direction:column;gap:12px;min-width:0}.chat-message-actions{display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin-top:4px;white-space:normal}.chat-message-actions:empty{display:none}.chat-message-actions--user{justify-content:flex-end;max-width:min(85%,640px);margin-top:2px}.chat-message-delete,.chat-turn-action-row{display:contents}.chat-action-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:24px;height:24px;padding:0;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--muted);opacity:.7;transition:background .15s,color .15s,opacity .15s}.msg:hover .chat-action-btn:not(:disabled),.msg:focus-within .chat-action-btn:not(:disabled){opacity:1}.chat-action-btn:hover:not(:disabled){background:var(--hover);color:var(--ink-bright);opacity:1}.chat-action-btn.chat-turn-delete:hover:not(:disabled){color:var(--danger)}.chat-action-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px;opacity:1}.chat-action-btn:disabled{opacity:.35;cursor:default}.chat-turn-delete-confirm{flex:0 0 100%;min-width:0;padding:10px;margin-top:4px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);overflow-wrap:anywhere;text-align:left;font-size:12px}.chat-turn-delete-confirm p{margin:0 0 8px}.chat-turn-delete-confirm .text-btn{padding:4px 0}.chat-turn-delete-confirm button+button{margin-left:12px}.chat-message-actions>.error{flex:0 0 100%;margin:4px 0 0;overflow-wrap:anywhere}.chat-response-label{color:var(--muted);font-size:12px;margin:6px 0}@media(hover:none),(pointer:coarse){.chat-action-btn{opacity:1}}*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--scrollbar) transparent}*::-webkit-scrollbar{width:10px;height:10px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background-color:var(--scrollbar);border:3px solid transparent;border-radius:999px;background-clip:padding-box}*::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-hover)}*::-webkit-scrollbar-corner{background:transparent}html,body,#root{height:100%;margin:0}body{font-family:var(--font-ui);color:var(--ink);background:var(--bg);font-size:13px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}.boot{display:grid;place-items:center;height:100%;color:var(--muted)}.login-screen{min-height:100%;height:100%;background:var(--surface)}.login-stage-pane{height:100%;min-height:100%;display:flex;flex-direction:column}.login-stage-canvas{flex:1;min-height:0}.login-pin{position:absolute;top:40px;left:40px;width:min(360px,calc(100% - 80px));min-height:0;height:auto}.login-pin .widget-title{font-size:13px;font-weight:600;margin:0}.login-pin-body{height:auto;display:flex;flex-direction:column;gap:12px;padding:16px}.lede{margin:0;color:var(--muted);font-size:12px}.login-pin-body label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--muted)}.login-pin-body input{border:1px solid var(--border);background:var(--surface-input);border-radius:var(--radius-sm);padding:8px 10px}.login-pin-body input:focus{outline:1px solid var(--accent);border-color:var(--accent)}.primary{background:var(--accent);color:#fff;border:none;border-radius:var(--radius-sm);padding:8px 12px;font-weight:500;font-size:12px}.primary:hover:not(:disabled){filter:brightness(1.08)}.primary:disabled{opacity:.45;cursor:default}.ghost{background:transparent;border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--ink);padding:6px 10px;font-size:12px}.ghost:hover{background:var(--hover)}.error{color:var(--danger);margin:0;font-size:12px}.workspace{display:grid;grid-template-columns:var(--sidebar) minmax(320px,var(--chat-share, 1fr)) 8px minmax(340px,var(--stage-share, 1.1fr));grid-template-rows:1fr;height:100%;min-height:0}.workspace.stage-collapsed{grid-template-columns:var(--sidebar) minmax(0,1fr)}.workspace>.sidebar{grid-column:1;grid-row:1;min-height:0}.workspace>.chat-pane{grid-column:2;grid-row:1;min-height:0}.workspace>.stage-pane{grid-column:4;grid-row:1;min-height:0}.pane-resizer{grid-column:3;grid-row:1;cursor:col-resize;touch-action:none;-webkit-user-select:none;user-select:none;background:var(--surface-elevated)}.pane-resizer:hover,.pane-resizer:focus-visible,.pane-resizer:active{background:var(--accent-dim);outline:1px solid var(--accent);outline-offset:-1px}.workspace.stage-collapsed>.stage-pane,.stage-pane.is-hidden{display:none}.sidebar{border-right:1px solid var(--border);background:var(--surface);display:flex;flex-direction:column;min-height:0}.sidebar-top{padding:12px 10px 8px;display:flex;flex-direction:column;gap:8px}.brand{font-size:12px;font-weight:600;color:var(--muted);letter-spacing:.02em;padding:0 4px}.sidebar-new{display:flex;align-items:center;gap:8px;width:100%;border:1px solid var(--border);background:transparent;border-radius:var(--radius-sm);padding:7px 10px;color:var(--ink);font-size:12px;text-align:left}.sidebar-new:hover{background:var(--hover)}.sidebar-new-icon{color:var(--muted);font-size:14px;line-height:1}.conv-list{list-style:none;margin:0;padding:4px 8px;overflow:auto;flex:1;min-height:0}.project-list{flex:1;min-height:0;overflow:auto;padding:4px 8px}.project-group+.project-group{margin-top:4px}.project-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;width:100%;border-radius:var(--radius-sm)}.project-header:hover,.project-header.active{background:var(--hover)}.project-header--editing{padding:3px 4px}.project-tree{border-left:1px solid var(--border);margin:0 0 4px 16px}.project-actions{display:flex;align-items:center}.project-settings-button{opacity:0}.project-header:hover .project-settings-button,.project-header:focus-within .project-settings-button,.project-header.active .project-settings-button{opacity:1}@media(hover:none){.project-settings-button{opacity:1}}.project-delete-error{grid-column:1 / -1;margin:0;padding:4px 8px;color:var(--danger);font-size:11px}.project-item,.project-new-chat{border:0;background:transparent;color:var(--ink);font:inherit;text-align:left;border-radius:var(--radius-sm)}.project-item{display:flex;align-items:center;justify-content:space-between;min-width:0;width:100%;padding:7px 8px;font-size:12px;font-weight:600}.project-rename-input{min-width:0;width:100%;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);padding:4px;font:inherit;font-size:12px;font-weight:600}.project-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-new-chat{padding:5px 8px 5px 12px;color:var(--muted);font-size:12px}.project-new-chat:hover{color:var(--ink)}.project-new-chat--header{width:28px;height:28px;padding:0;align-self:center;justify-self:center;text-align:center;font-size:17px;line-height:1}.project-conversations{flex:none;max-height:none;overflow:visible;padding:0 0 4px 4px}.conv-item{position:relative;display:flex;align-items:center;gap:2px;border-radius:var(--radius-sm)}.conv-item:hover,.conv-item.active{background:var(--hover)}.conv-item-btn{flex:1;min-width:0;text-align:left;border:none;background:transparent;padding:6px 8px;cursor:pointer;color:var(--ink);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conv-item.active .conv-item-btn{color:var(--ink-bright);font-weight:500}.conv-item-actions{display:flex;align-items:center;padding-right:4px;flex-shrink:0;opacity:0;pointer-events:none;transition:opacity .15s ease}.conv-item.active .conv-item-actions,.conv-item:hover .conv-item-actions,.conv-item--editing .conv-item-actions{opacity:1;pointer-events:auto}.conv-action-btn{border:none;background:transparent;width:22px;height:22px;border-radius:4px;cursor:pointer;color:var(--muted);font-size:13px;line-height:1;display:grid;place-items:center}.conv-action-btn:hover{background:#0000000f;color:var(--ink)}.conv-action-btn--danger:hover{color:var(--danger)}.conv-delete-error{position:absolute;left:8px;top:calc(100% + 2px);z-index:2;padding:3px 5px;border:1px solid var(--danger);border-radius:4px;background:var(--surface);color:var(--danger);font-size:10px}.conv-item--editing{padding:2px 4px;background:var(--hover)}.conv-rename-input{width:100%;border:1px solid var(--accent);background:var(--surface);border-radius:var(--radius-sm);padding:5px 8px;font-size:12px;color:var(--ink-bright);outline:none;box-shadow:0 0 0 1px var(--accent-dim)}.sidebar-footer{padding:10px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:8px}.conn-select{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--muted)}.conn-select select{border:1px solid var(--border);background:var(--surface-input);border-radius:var(--radius-sm);padding:5px 8px;font-size:12px}.sidebar-links{display:flex;flex-wrap:wrap;gap:4px 10px}.link-btn{border:none;background:none;padding:0;color:var(--muted);font-size:11px}.link-btn:hover{color:var(--ink)}.user-email{font-size:11px;color:var(--muted-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-pane{display:flex;flex-direction:column;min-width:0;background:var(--bg);min-height:0}.chat-header{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid var(--border);background:var(--bg)}.chat-title{margin:0;font-size:13px;font-weight:500;color:var(--ink-bright);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-empty{margin:auto;text-align:center;padding:32px 24px;max-width:420px}.chat-empty-title{margin:0 0 6px;font-size:15px;font-weight:500;color:var(--ink-bright)}.messages,.conv-list,.sql-panel,.table-wrap,.admin-panel,.stage-canvas{scrollbar-gutter:stable}.messages{flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:20px;min-height:0}.msg{animation:rise .2s ease}@keyframes rise{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}.msg.user{display:flex;flex-direction:column;align-items:flex-end}.user-bubble{min-width:0;max-width:min(85%,640px);background:var(--user-bg);border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px;font-size:13px;line-height:1.55;color:var(--ink-bright);white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 1px 2px #0000000a}.msg-content{white-space:pre-wrap;line-height:1.55;font-size:13px;color:var(--ink)}.assistant-pending{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.loading-dots{display:inline-block;width:18px;overflow:hidden;animation:loading-dots 1.2s steps(4,end) infinite;letter-spacing:2px}@keyframes loading-dots{0%{width:4px}to{width:18px}}.assistant-block{display:flex;flex-direction:column;gap:12px;max-width:100%}.segmented{display:inline-flex;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}.segmented button{border:none;background:transparent;padding:3px 8px;font-size:11px;color:var(--muted)}.segmented button+button{border-left:1px solid var(--border)}.segmented button.active{background:var(--hover);color:var(--ink-bright)}.composer-wrap{flex-shrink:0;padding:12px 16px 16px;background:var(--bg)}.composer-box{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);overflow:hidden;box-shadow:0 1px 3px #0000000f}.composer-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent-dim)}.composer-box textarea{width:100%;border:none;background:transparent;resize:none;padding:12px 14px 4px;min-height:44px;max-height:160px;color:var(--ink-bright);font-size:13px;line-height:1.5}.composer-box textarea:focus{outline:none}.composer-box textarea::placeholder{color:var(--muted-dim)}.composer-bar{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 8px 14px}.composer-hint{font-size:10px;color:var(--muted-dim)}.composer-send{width:28px;height:28px;border:none;border-radius:var(--radius-sm);background:var(--surface-elevated);color:var(--muted);font-size:14px;line-height:1;display:grid;place-items:center}.composer-send:not(:disabled){background:var(--accent);color:#fff}.composer-send:not(:disabled):hover{filter:brightness(1.08)}.composer-send:disabled{cursor:default;opacity:.5}.prompt-suggestions{display:flex;flex-direction:column;gap:2px;padding:8px 0 16px}.prompt-label{margin:0 0 6px;font-size:11px;color:var(--muted)}.prompt-row{border:none;background:transparent;text-align:left;padding:8px 10px;border-radius:var(--radius-sm);color:var(--ink);font-size:12px;line-height:1.45}.prompt-row:hover:not(:disabled){background:var(--hover)}.prompt-row:disabled{opacity:.5;cursor:default}.text-btn{border:none;background:transparent;padding:2px 6px;font-size:11px;color:var(--muted);border-radius:4px}.text-btn:hover{color:var(--ink);background:var(--hover)}.sql-panel{margin:0;padding:10px;max-height:200px;overflow:auto;font-family:var(--font-mono);font-size:11px;line-height:1.45;white-space:pre-wrap;background:var(--bg);color:var(--ink)}.drag-hint{color:var(--muted-dim);cursor:grab;font-size:12px;-webkit-user-select:none;user-select:none}.widget-body{height:180px;padding:8px;min-height:0;background:var(--surface)}.widget-body.compact{height:180px}.cq-composite{container-type:size;container-name:widgetbox;width:100%;height:100%;min-height:0}.cq-composite__layout{display:flex;flex-direction:column;gap:10px;width:100%;height:100%;min-height:0}.cq-composite__primary,.cq-composite__secondary{min-width:0;min-height:0}.cq-kpi-block{display:flex;flex-direction:column;justify-content:center;flex:0 0 auto;padding:4px 6px}.cq-spark-block{flex:1 1 auto;min-height:56px}.cq-pie-block{flex:1.2 1 0;min-height:120px}.cq-table-block{flex:1 1 0;overflow:auto;min-height:72px}.cq-bar-block{flex:1.35 1 0;min-height:140px;display:flex;flex-direction:column;min-width:0}.cq-bar-header{flex:0 0 auto;padding:2px 4px 6px}.cq-bar-chart{flex:1 1 auto;min-height:100px}@container widgetbox (min-aspect-ratio: 1.15){.cq-composite__layout{flex-direction:row;align-items:stretch}.cq-kpi-block{flex:0 0 38%;justify-content:center}.cq-spark-block{flex:1 1 62%;min-height:0}.cq-pie-block,.cq-bar-block{flex:1.2 1 0;min-height:0}.cq-table-block{flex:1 1 0;min-height:0}}@container widgetbox (max-aspect-ratio: 1.14){.cq-composite__layout{flex-direction:column}.cq-spark-block{flex:1 1 auto}}.stage-pane{min-width:340px;height:100%;background:var(--surface);border-left:1px solid var(--border);display:flex;flex-direction:column;overflow:hidden}.stage-root{flex:1;min-height:0;height:100%;display:flex;flex-direction:column}.stage-header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid var(--border);flex-shrink:0}.stage-header h2{margin:0;font-weight:500;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.save-status{font-size:11px;color:var(--muted-dim)}.save-status.saving{color:var(--accent)}.save-status.saved{color:var(--muted)}.save-status.error{color:var(--danger)}.stage-canvas{flex:1;overflow:auto;position:relative;background-color:#fafafa;background-image:radial-gradient(circle,rgba(0,0,0,.05) 1px,transparent 1px);background-size:18px 18px;padding:8px}.stage-empty{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;pointer-events:none;color:var(--muted-dim);font-size:12px;z-index:0}.stage-widget{background:var(--surface-elevated);border:1px solid var(--border);border-radius:var(--radius-sm);display:flex;flex-direction:column;overflow:hidden;animation:dropIn .18s ease}@keyframes dropIn{0%{transform:scale(.98);opacity:.8}to{transform:scale(1);opacity:1}}.widget-chrome{display:flex;align-items:center;gap:6px;padding:5px 8px;border-bottom:1px solid var(--border);background:var(--surface)}.widget-drag-handle{cursor:grab;color:var(--muted-dim);-webkit-user-select:none;user-select:none;font-size:11px}.widget-title{flex:1;font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}.icon-btn{border:none;background:transparent;cursor:pointer;font-size:16px;color:var(--muted);line-height:1;padding:0 2px}.icon-btn:hover{color:var(--ink)}.stage-widget .widget-body{flex:1;height:auto;min-height:0;display:flex;flex-direction:column}.stage-widget .widget-body>*{flex:1;min-height:0}.kpi{height:100%;display:flex;flex-direction:column;justify-content:center;padding:8px}.kpi-label{color:var(--muted);font-size:11px}.kpi-value{font-family:var(--font-mono);font-size:1.75rem;font-weight:500;color:var(--ink-bright)}.kpi-unit{font-size:.9rem;margin-left:4px;color:var(--muted)}.kpi-delta{color:var(--accent);font-size:12px}.table-wrap{overflow:auto;height:100%}.data-table{width:100%;border-collapse:collapse;font-family:var(--font-mono);font-size:11px}.data-table th,.data-table td{border-bottom:1px solid var(--border);padding:5px 8px;text-align:left;color:var(--ink)}.data-table th{color:var(--muted);font-weight:500}.rank-list{list-style:none;margin:0;padding:4px 8px;display:flex;flex-direction:column;gap:6px}.rank-list li{display:grid;grid-template-columns:24px 1fr auto;gap:8px;align-items:baseline;font-size:12px}.rank-num{font-family:var(--font-mono);color:var(--muted);font-size:11px}.rank-meta{grid-column:2 / -1;color:var(--muted-dim);font-size:11px}.answer-text{font-size:13px;line-height:1.5;color:var(--ink)}.answer-text h3,.answer-text h4{margin:0 0 8px;font-weight:600;color:var(--ink-bright)}.answer-text p,.answer-text li{margin:0 0 6px}.source-list{margin:0;padding:8px 12px;font-size:12px;color:var(--muted)}.muted{color:var(--muted)}.filter-bar{display:flex;flex-wrap:wrap;gap:6px;padding:8px}.filter-chip{border:1px solid var(--border);padding:3px 7px;font-size:11px;background:var(--surface);border-radius:4px;color:var(--ink)}.admin-drawer{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;z-index:40;display:flex;justify-content:flex-end}.admin-panel{width:min(440px,100%);height:100%;background:var(--surface);border-left:1px solid var(--border);overflow:auto;padding:16px}.admin-panel header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.admin-panel h2,.admin-panel h3{font-weight:600;font-size:14px;margin:0 0 8px;color:var(--ink-bright)}.admin-panel section{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border)}.admin-list{list-style:none;margin:0 0 8px;padding:0}.admin-list button{width:100%;text-align:left;border:1px solid var(--border);background:var(--surface-input);padding:8px;margin-bottom:6px;border-radius:var(--radius-sm);font-size:12px}.admin-list button.active{border-color:var(--accent);background:var(--accent-dim)}.admin-form{display:grid;gap:8px}.ai-options{border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px}.ai-options summary{cursor:pointer;font-size:12px}.ai-options[open] summary{margin-bottom:10px}.admin-form label{display:grid;gap:4px;font-size:11px;color:var(--muted)}.admin-form input,.admin-form select{width:100%;min-width:0;min-height:36px;border:1px solid var(--border);padding:8px;background:var(--surface-input);border-radius:var(--radius-sm)}.perm-grid{display:grid;gap:6px;margin-bottom:10px;max-height:180px;overflow:auto}.perm-item{display:flex;gap:8px;align-items:center;font-size:12px}.admin-status{color:var(--accent);font-size:12px}.question-seed-list{max-height:300px;overflow:auto;padding-left:20px}.small{font-size:11px}.react-grid-item.react-grid-placeholder{background:var(--accent-dim);border-radius:var(--radius-sm)}@media(max-width:960px){.pane-resizer{display:none}.workspace,.workspace.stage-collapsed{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) minmax(260px,40vh)}.workspace>.sidebar,.workspace>.chat-pane,.workspace>.stage-pane{grid-column:1}.workspace>.sidebar{grid-row:1;border-right:none;border-bottom:1px solid var(--border);max-height:160px}.workspace>.chat-pane{grid-row:2}.workspace>.stage-pane{grid-row:3;min-width:0;min-height:260px;border-left:none;border-top:1px solid var(--border)}.workspace.stage-collapsed{grid-template-rows:auto minmax(0,1fr)}.composer-hint{display:none}}.viewer-page{height:100%;display:flex;flex-direction:column;background:#060d18;color:#e8eef7}.viewer-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-bottom:1px solid rgba(255,255,255,.08);background:#081020d9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);flex-shrink:0}.viewer-header-left{display:flex;align-items:center;gap:16px;min-width:0}.viewer-back{color:#8eb4ff;text-decoration:none;font-size:12px;white-space:nowrap}.viewer-back:hover{text-decoration:underline}.viewer-title{margin:0;font-size:15px;font-weight:600;color:#f4f7fc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.viewer-header-right{display:flex;align-items:center;gap:12px;flex-shrink:0}.viewer-filter-pill{font-size:11px;padding:4px 10px;border-radius:999px;border:1px solid rgba(142,180,255,.35);color:#b8cff5;background:#8eb4ff14}.viewer-user{font-size:11px;color:#8a9bb5}.viewer-main{flex:1;min-height:0}.chat-view-link{font-size:12px;color:var(--accent);text-decoration:none;white-space:nowrap}.chat-view-link:hover{text-decoration:underline}.chat-send-error{margin:0 0 8px;padding:0 4px;font-size:12px}.viewer-readonly-hint{padding:12px 16px;border-top:1px solid var(--border)}.viewer-readonly-hint .muted{margin:0;font-size:12px}.widget-chrome--viewer{justify-content:center;background:#ffffff0a;border-bottom-color:#ffffff14}.widget-chrome--viewer .widget-title{color:#dbe7ff}.stage-root--orion{background:transparent}.stage-root--orion .stage-header{border-bottom-color:#ffffff14;background:#060d1899}.stage-root--orion .stage-header h2{color:#8a9bb5}.stage-canvas--orion{background-color:#060d18;background-image:radial-gradient(circle at 50% 78%,rgba(56,120,200,.22) 0%,transparent 42%),radial-gradient(circle at 50% 82%,#1e508c59,#060d1800 38%),radial-gradient(circle at 50% 50%,rgba(255,255,255,.04) 0%,transparent 55%),repeating-radial-gradient(circle at 50% 85%,transparent 0 48px,rgba(120,170,255,.06) 48px 49px);background-size:100% 100%,100% 100%,100% 100%,100% 100%}.stage-canvas--orion .stage-widget{background:#0c1628b8;border-color:#8eb4ff2e;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.stage-canvas--orion .stage-empty{color:#b8cff58c}.graph-source-list{list-style:none;padding:0;margin:16px 0 0}.graph-source-list>li{border:1px solid var(--border);border-radius:6px;padding:12px;margin-bottom:10px}.graph-source-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.graph-source-path{overflow-wrap:anywhere}.stage-canvas[hidden]{display:none}.stage-tabs{display:flex;gap:3px;margin-left:auto}.stage-tabs button{border:0;border-radius:5px;padding:5px 10px;background:transparent;color:var(--muted);font-size:12px;cursor:pointer}.stage-tabs button[aria-pressed=true]{color:var(--accent);background:var(--accent-dim)}.stage-tabs+.save-status{margin-left:12px}.project-graph{flex:1;min-height:0;overflow:auto;padding:14px;background:#fafafa}.graph-toolbar{display:flex;gap:8px;align-items:center}.graph-toolbar input{flex:1;min-width:0;border:1px solid var(--border);border-radius:6px;padding:8px 10px;background:var(--surface)}.graph-diagram-wrap{border:1px solid var(--border);border-radius:8px;background:var(--surface);overflow:hidden}.graph-zoom{display:flex;justify-content:flex-end;align-items:center;gap:6px;padding:8px;border-bottom:1px solid var(--border)}.graph-zoom .ghost{padding:4px 8px}.graph-diagram{display:block;width:100%;height:360px;cursor:grab;touch-action:none}.graph-diagram:active{cursor:grabbing}.graph-edge{stroke:#bbc4cd;stroke-width:1.5;color:#bbc4cd;fill:none;vector-effect:non-scaling-stroke;opacity:.45}.graph-edge.selected{stroke:var(--accent);color:var(--accent);stroke-width:2;opacity:1}.graph-node{cursor:pointer;outline:none}.graph-node circle{fill:#e6edf5;stroke:#6484aa;stroke-width:2}.graph-node text{font-size:12px;fill:var(--ink);-webkit-user-select:none;user-select:none;paint-order:stroke;stroke:var(--surface);stroke-width:3px;stroke-linejoin:round}.graph-node.selected circle,.graph-node:focus circle{fill:var(--accent);stroke:var(--accent);stroke-width:3}.graph-node.dimmed{opacity:.4}.graph-hint{padding:0 12px 8px;margin:0}.graph-document{margin-top:14px;padding:14px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.graph-document h3{margin:0 0 8px;font-size:15px}.graph-document-content{font:12px/1.7 var(--font-mono, monospace);white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto}.graph-neighbors{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.graph-empty{padding:32px 12px;text-align:center}.graph-limit{color:var(--accent)}.graph-upload-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.file-pick{display:inline-block;cursor:pointer}.file-pick input{display:none}.file-pick[aria-disabled=true]{opacity:.45;cursor:default;pointer-events:none}.graph-mode{margin-bottom:10px}.outline-actions{display:flex;gap:6px;margin-bottom:8px}.outline-actions .ghost{padding:5px 8px;font-size:12px}.outline-layout{display:grid;grid-template-columns:minmax(180px,2fr) minmax(0,3fr);gap:12px;align-items:start}.outline-tree{border:1px solid var(--border);border-radius:8px;padding:8px;background:var(--surface);max-height:520px;overflow:auto}.outline-tree ul{list-style:none;margin:0;padding:0}.outline-tree ul ul{padding-left:14px;border-left:1px solid var(--border);margin-left:9px}.outline-row{display:flex;align-items:center;border-radius:5px;min-width:0}.outline-row:hover{background:var(--surface-elevated)}.outline-row.selected{background:var(--accent-dim)}.outline-toggle{flex:0 0 22px;width:22px;border:0;background:transparent;color:var(--muted);padding:5px 0;cursor:pointer}.outline-label{display:flex;align-items:baseline;gap:6px;flex:1;min-width:0;border:0;background:transparent;color:var(--ink);padding:6px 4px;text-align:left;font-size:12px;overflow-wrap:anywhere;cursor:pointer}.outline-kind{flex-shrink:0;font-size:10px;color:var(--muted)}.outline-kind.heading{color:var(--accent)}.outline-toggle:focus-visible,.outline-label:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.outline-document{margin-top:0;min-width:0}.outline-document:only-child{grid-column:1 / -1}.outline-content{max-height:430px;margin-bottom:0}.outline-content mark{background:#fff0b3;color:inherit;border-radius:3px}.outline-instruction{margin:12px 0}@media(max-width:900px){.outline-layout{grid-template-columns:minmax(0,1fr)}.outline-tree{max-height:300px}}.graph-legend{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 8px}.graph-legend-item{display:inline-flex;align-items:center;gap:5px}.graph-legend-item i{width:10px;height:10px;border-radius:50%;display:inline-block}.graph-props{display:grid;gap:4px;margin:8px 0}.graph-props div{display:flex;gap:8px}.graph-props dt{color:var(--muted);min-width:110px}.graph-props dd{margin:0;overflow-wrap:anywhere}.graph-evidence blockquote{margin:6px 0;padding:6px 10px;border-left:3px solid var(--border);background:var(--surface-elevated);overflow-wrap:anywhere}.graph-evidence cite{color:var(--muted);font-style:normal}.graph-flow{margin:0;min-width:0}.graph-flow-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:8px}.graph-flow-types{display:grid;gap:8px}.graph-flow-type{line-height:1.55}.graph-flow-relations{margin:10px 0 0;padding-left:18px}.graph-flow-questions{margin-top:10px}.graph-flow-questions ul{margin:4px 0 0;padding-left:18px}.graph-flow-status{margin-top:10px}.graph-flow-status progress{width:100%;height:8px}.schema-label{margin-left:8px;font-size:12px;color:var(--muted)}.schema-library{margin:16px 0}.schema-library summary{cursor:pointer;overflow-wrap:anywhere}.schema-library .graph-flow-schema{margin:12px 0}.graph-workflows{display:grid;gap:12px;min-width:0}.graph-workflows-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.graph-workflow-card{border:1px solid var(--border);border-radius:8px;padding:14px;background:var(--surface)}.graph-workflow-card.is-active{border-color:var(--accent)}.graph-workflow-card .graph-flow-head{flex-wrap:wrap}.graph-flow-completion{display:flex;flex-wrap:wrap;gap:6px}.graph-flow-badge{padding:4px 8px;border-radius:6px;font-size:12px;font-weight:600}.graph-flow-badge.is-completed{color:#166534;background:#f0fdf4}.graph-flow-badge.is-pending{color:#92400e;background:#fffbeb}button.graph-flow-badge.is-pending{border:1px solid #fde68a;cursor:pointer}button.graph-flow-badge.is-pending:hover:not(:disabled){background:#fef3c7}button.graph-flow-badge.is-pending:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.graph-review-queue{margin-top:14px;padding:14px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.graph-review-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}.graph-review-items{display:flex;flex-wrap:wrap;gap:6px;max-height:180px;overflow:auto;margin-bottom:12px}.graph-review-items button{max-width:100%;overflow-wrap:anywhere;text-align:left}.graph-review-items button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.graph-workflow-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.graph-workflow-picker{padding:12px;border:1px solid var(--border);border-radius:8px}.graph-workflow-picker button{margin:4px}.answer-evidence{min-width:0}.answer-title{margin:0 0 6px;font-size:12px;font-weight:600}.messages,.conv-list,.artifact-json,.sql-panel,.table-wrap,.admin-panel,.stage-canvas{scrollbar-gutter:stable}.chat-text{white-space:normal;min-width:0;overflow-wrap:anywhere}.chat-text p,.chat-text h3,.chat-text ul,.chat-text ol,.chat-text pre,.chat-text-table{margin:0 0 10px}.chat-text>:last-child{margin-bottom:0}.chat-text p,.chat-text li{white-space:pre-wrap}.chat-text h3{font-size:14px;color:var(--ink-bright)}.chat-text ul,.chat-text ol{padding-left:20px}.chat-text code{font-size:12px}.chat-text pre,.chat-text-table{max-width:100%;overflow-x:auto}.chat-text pre{white-space:pre}.chat-text-table table{width:100%;border-collapse:collapse}.chat-text-table th,.chat-text-table td{border:1px solid var(--border);padding:6px 8px;text-align:left;vertical-align:top;min-width:80px}.artifact-section{display:flex;flex-direction:column;gap:8px}.artifact-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.artifact-type{font-family:var(--font-mono);font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.artifact-view-actions{display:flex;align-items:center;gap:8px}.artifact-copy-status{font-size:10px;line-height:1.3;color:var(--muted)}.artifact-copy-status:empty{display:none}.artifact-widgets{display:flex;flex-direction:column;gap:8px}.artifact-json{margin:0;padding:10px 12px;max-height:360px;overflow:auto;font-family:var(--font-mono);font-size:11px;line-height:1.45;white-space:pre-wrap;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--ink)}.artifact-preview{display:flex;flex-direction:column;flex-shrink:0;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);height:320px;overflow:hidden;cursor:grab}.artifact-preview-head{display:flex;flex-shrink:0;align-items:center;gap:6px;padding:5px 8px;border-bottom:1px solid var(--border);font-size:12px;background:var(--surface-elevated)}.artifact-actions{display:flex;align-items:center;gap:4px;margin-left:auto}.artifact-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ink);font-size:12px}.query-widget{display:flex;flex-direction:column;height:180px;min-height:0;min-width:0}.query-widget>.widget-body{flex:1;height:auto;min-height:0}.artifact-preview>.query-widget,.artifact-preview>.widget-body,.artifact-preview>.sql-panel{flex:1;height:auto;min-height:0;max-height:none}.widget-data-actions{display:flex;justify-content:flex-end;flex-shrink:0;padding:0 8px}.widget-data-status{display:flex;flex:1;align-items:center;justify-content:center;padding:8px;overflow:auto;color:var(--muted);font-size:12px}.stage-widget>.query-widget{flex:1;height:auto}.widget-empty{display:flex;align-items:center;justify-content:center;height:100%;color:var(--muted);font-size:12px}.data-table-widget{height:100%;min-height:0;display:flex;flex-direction:column}.data-table-widget .table-wrap{flex:1;min-height:0}.table-controls,.table-pagination{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:11px}.table-controls{margin-bottom:6px}.table-controls input,.table-controls select,.table-pagination select{font:inherit;padding:3px 5px;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--ink);min-width:0;max-width:150px}.table-controls input{width:110px}.table-controls span{margin-left:auto;color:var(--muted)}.table-pagination{justify-content:flex-end;padding-top:5px}.table-pagination select{margin-right:auto}.table-sort{background:transparent;border:none;padding:0;color:inherit;font:inherit;cursor:pointer;text-align:left}.data-table tfoot{font-weight:600;background:var(--surface-elevated)}.catalog-card{height:100%;overflow:auto;font-size:12px;padding:4px}.compare-values{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.compare-values span{display:block;font-size:11px;color:var(--muted)}.compare-values strong{display:block;font-family:var(--font-mono);font-size:21px;font-weight:500;overflow-wrap:anywhere}.compare-change{display:flex;gap:8px;flex-wrap:wrap;font-family:var(--font-mono)}.compare-change span{color:var(--muted)}.kpi-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:12px;align-content:start}.kpi-group .kpi-value{font-size:21px;overflow-wrap:anywhere}.status-item{margin-top:10px}.status-item>div{display:flex;justify-content:space-between;gap:8px}.status-item progress{width:100%;height:5px;accent-color:var(--primary)}.event-timeline{list-style:none;padding:0 0 0 12px;margin:0;border-left:1px solid var(--border)}.event-timeline li{position:relative;padding:0 0 14px 3px}.event-timeline li:before{content:"";position:absolute;left:-16px;top:4px;width:6px;height:6px;border-radius:50%;background:var(--primary)}.event-timeline time{display:block;font-size:10px;color:var(--muted)}.event-timeline strong{display:block;margin:3px 0;font-weight:500}.event-timeline p{margin:3px 0 0;color:var(--muted)}.detail-fields{margin:0}.detail-fields>div{display:grid;grid-template-columns:minmax(70px,1fr) minmax(0,2fr);gap:8px;padding:6px 0;border-bottom:1px solid var(--border-subtle)}.detail-fields dt{color:var(--muted)}.detail-fields dd{margin:0;overflow-wrap:anywhere}.markdown-block{font-size:13px;line-height:1.5;overflow:auto;height:100%;color:var(--ink)}.markdown-block h3,.markdown-block h4{margin:0 0 8px;font-weight:600;color:var(--ink-bright)}.markdown-block p,.markdown-block li{margin:0 0 6px}.graph-flow-card{border:1px solid var(--border);border-radius:var(--radius);padding:12px;margin:10px 0;background:var(--surface)}.result-tabs{display:inline-flex;align-self:flex-start;margin:8px 12px 0}.project-settings-panel{width:min(880px,100%);display:flex;flex-direction:column}.admin-panel.ai-usage-panel{width:min(1240px,100%)}.ai-usage{min-width:0}.ai-usage-controls{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0}.ai-usage-controls label{display:flex;flex-direction:column;gap:6px}.ai-usage-controls input{max-width:100%;min-height:36px;padding:6px 8px;border:1px solid var(--border);border-radius:6px;background:var(--surface-input);color:var(--ink)}.ai-usage-scroll{width:100%;overflow-x:auto}.ai-usage-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;font-variant-numeric:tabular-nums}.ai-usage-table th,.ai-usage-table td{padding:12px 10px;text-align:right;white-space:nowrap;border-bottom:1px solid var(--border)}.ai-usage-table th:first-child,.ai-usage-table td:first-child{position:sticky;left:0;text-align:left;background:var(--surface);z-index:1}.ai-usage-table thead th,.ai-usage-table tfoot th,.ai-usage-table tfoot td{background:var(--surface-elevated);font-weight:600}.ai-usage-table thead th:first-child,.ai-usage-table tfoot th:first-child{background:var(--surface-elevated)}.ai-usage-table tfoot th,.ai-usage-table tfoot td{border-top:2px solid var(--border)}.ai-usage-table .ai-usage-empty{position:static;text-align:center;white-space:normal}.ai-usage-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.ai-usage-table .ai-usage-purpose{display:inline;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;text-align:left;text-decoration:underline dotted;text-underline-offset:4px;cursor:help}.ai-usage-table .ai-usage-purpose:hover{background:transparent;color:var(--accent)}.ai-usage-table .ai-usage-purpose:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.ai-usage-purpose-tooltip{position:fixed;z-index:2000;box-sizing:border-box;max-height:calc(100dvh - 16px);overflow:auto;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--ink-bright);box-shadow:0 4px 16px #00000024;font-size:13px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}.ai-usage-purpose-tooltip p{margin:6px 0 0;color:var(--ink)}.project-settings-name{margin:0 0 20px;overflow-wrap:anywhere}.project-settings-actions{display:flex;justify-content:flex-end;gap:8px}.project-settings-panel .project-settings-danger{color:var(--danger)}.project-settings-tabs{display:flex;gap:8px;margin-bottom:16px;border-bottom:1px solid var(--border)}.project-settings-tabs [role=tab]{border:0;border-radius:0;background:transparent;color:var(--muted);padding:10px 16px;border-bottom:2px solid transparent}.project-settings-tabs [aria-selected=true]{color:var(--ink-bright);border-bottom-color:var(--accent)}.project-settings-document-fields{border:0;padding:0;margin:0;min-width:0}.project-settings-panel .project-settings-resources{min-width:0}.project-settings-panel [role=tabpanel][hidden]{display:none}.project-db-summary{padding:8px 0;overflow-wrap:anywhere}.project-settings-header{flex-wrap:wrap;gap:12px}.project-settings-header .project-settings-actions{flex-wrap:wrap}.project-settings-basic-info,.project-settings-delete-confirm{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border)}.project-settings-field-actions{display:flex;align-items:center;gap:8px}.project-settings-field-actions input,.project-settings-field-actions select{flex:1}.project-settings-field-actions button{flex-shrink:0;white-space:nowrap}.schema-items{margin-top:16px}.schema-items h4{margin:16px 0 8px;font-size:12px}.schema-item-list{display:grid;gap:6px;list-style:none;margin:0;padding:0}.schema-item{min-width:0;border:1px solid var(--border);border-radius:var(--radius-sm);overflow-wrap:anywhere}.schema-item summary{padding:10px 12px}.schema-item summary strong{font-size:13px;color:var(--ink-bright);margin-right:12px}.schema-item-content{padding:0 12px 12px}.schema-item p{margin:6px 0 0}.schema-item-properties{display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:8px 0 0;padding:0}.schema-item-properties li{border-radius:var(--radius-sm);background:var(--surface-input);padding:3px 6px;font-size:11px}.schema-item-endpoints{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px}.document-explorer{min-width:0;font-size:12px}.source-section,.admin-panel .source-section{margin:0;padding:20px 0;border-top:1px solid var(--border);border-bottom:0}.document-explorer>.source-section:first-child{padding-top:4px;border-top:0}.source-section-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin-bottom:12px}.source-section-header h4{margin:0;font-size:13px;font-weight:600;color:var(--ink-bright)}.source-section-hint{margin:2px 0 0;color:var(--muted);font-size:11px}.schema-library.source-section{margin:0}details.source-section>summary{list-style:none;margin:0;cursor:pointer}details.source-section>summary::-webkit-details-marker{display:none}details.source-section>summary:after{content:"";flex-shrink:0;width:7px;height:7px;margin:4px 4px 0 0;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);transition:transform .12s ease}details.source-section[open]>summary:after{transform:rotate(225deg);margin-top:8px}details.source-section>summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}details.source-section[open]>summary{margin-bottom:12px}details.source-section:not([open])>summary{margin-bottom:0}.document-tree-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:8px 0}.source-section-header .document-tree-toolbar{margin:0}.document-tree-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);overflow:hidden;transition:border-color .12s ease,background-color .12s ease}.document-tree-panel.drop-target{border-color:var(--accent);background:var(--accent-dim)}.document-tree-refresh{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0}.document-tree-refresh svg,.document-tree-action svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.document-tree-body{padding:6px;max-height:420px;overflow:auto}.document-tree-empty{margin:0;padding:20px 8px;color:var(--muted);text-align:center}.document-tree-list{list-style:none;margin:0;padding:0}.document-tree-list .document-tree-list{margin-left:21px;padding-left:8px;border-left:1px solid var(--border-subtle)}.document-tree-item{outline:none}.document-tree-row{display:flex;align-items:center;gap:2px;min-height:30px;padding:0 6px 0 2px;border:1px solid transparent;border-radius:var(--radius-sm);cursor:default;-webkit-user-select:none;user-select:none}.document-tree-row:hover{background:var(--hover)}.document-tree-row.selected{background:var(--accent-dim)}.document-tree-row.selected .document-tree-label{color:var(--ink-bright)}.document-tree-row.editing{background:var(--hover)}.document-tree-item:focus-visible>.document-tree-row{outline:2px solid var(--accent);outline-offset:-2px}.document-tree-toggle{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:20px;height:20px;border-radius:4px;color:var(--muted)}.document-tree-toggle:has(svg){cursor:pointer}.document-tree-toggle:has(svg):hover{background:var(--border);color:var(--ink-bright)}.document-tree-toggle svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .12s ease}.document-tree-item[aria-expanded=true]>.document-tree-row .document-tree-toggle svg{transform:rotate(90deg)}.document-tree-name{display:flex;flex:1;align-items:center;gap:6px;min-width:0;padding:5px 4px}.document-tree-name.folder{color:var(--ink-bright);font-weight:500}.document-tree-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-tree-icon{flex-shrink:0;width:14px;height:14px;fill:none;stroke:var(--muted);stroke-width:1.2;stroke-linejoin:round}.document-tree-name.folder .document-tree-icon,.document-tree-root .document-tree-icon{fill:var(--accent-dim);stroke:var(--accent)}.document-tree-input{flex:1;min-width:0;padding:2px 6px;border:1px solid var(--accent);border-radius:4px;background:var(--surface-input);color:var(--ink-bright);font-size:12px;font-weight:400;outline:none}.document-tree-status{flex-shrink:0;margin-left:8px;color:var(--muted);font-size:11px;white-space:nowrap}.document-tree-status.failed{color:var(--danger)}.document-tree-problem{margin:0 0 4px 46px;color:var(--danger);font-size:11px;overflow-wrap:anywhere}.document-tree-actions{display:none;flex-shrink:0;gap:2px;margin-left:8px}.document-tree-row:hover .document-tree-actions,.document-tree-item:focus-visible>.document-tree-row .document-tree-actions{display:flex}.document-tree-row:hover .document-tree-status,.document-tree-item:focus-visible>.document-tree-row .document-tree-status{display:none}.document-tree-action{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--muted)}.document-tree-action:hover:not(:disabled){background:var(--border);color:var(--ink-bright)}.document-tree-action:disabled{opacity:.45;cursor:default}.document-tree-root{color:var(--muted)}.document-tree-root .document-tree-name{font-size:12px}.document-explorer .document-tree-row.drop-target{border-color:var(--accent);border-style:dashed;background:var(--accent-dim)}.document-tree-conflict{display:grid;gap:8px;padding:12px;border-top:1px solid var(--border);background:var(--surface-elevated)}.document-tree-conflict label{display:grid;gap:4px;color:var(--muted)}.document-tree-message{margin:8px 0 0}.document-tree-undo{margin-left:8px;padding:0;border:0;background:transparent;color:var(--accent);font-size:inherit;text-decoration:underline;text-underline-offset:2px}.document-tree-undo:disabled{opacity:.45;cursor:default}@media(hover:none){.document-tree-actions{display:flex}.document-tree-status{display:none}}@media(prefers-reduced-motion:reduce){.document-tree-toggle svg,.document-tree-panel,details.source-section>summary:after{transition:none}}@media(max-width:480px){.document-tree-row{flex-wrap:wrap}.document-tree-status{width:100%;margin:0 0 4px;padding-left:46px}}
