*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:system-ui,sans-serif;color:#1d2330}.app{display:flex;flex-direction:column;height:100%}.topbar{display:flex;align-items:center;gap:16px;padding:8px 16px;border-bottom:1px solid #dde0e6;background:#fff}.stages{display:flex;gap:4px;flex:1}.stages button{border:1px solid #dde0e6;background:#fff;padding:6px 10px;border-radius:6px;cursor:pointer}.stages button.active{background:#1d2330;color:#fff;border-color:#1d2330}.open-ifc{padding:6px 12px;border-radius:6px;background:#2f6fed;color:#fff;cursor:pointer}.workspace{flex:1;display:grid;grid-template-columns:1fr 340px;min-height:0}.workspace.with-files{grid-template-columns:320px 1fr 340px}.viewer{position:relative;min-height:0}.viewer-canvas{position:absolute;top:0;right:0;bottom:0;left:0}.viewer-status{position:absolute;left:12px;bottom:12px;background:#ffffffe6;padding:4px 8px;border-radius:4px;font-size:13px;max-width:calc(100% - 340px)}.viewer-tools{position:absolute;right:12px;bottom:12px;display:flex;gap:6px}.viewer-tools button{font-size:12px;padding:4px 8px;border:1px solid #dde0e6;border-radius:4px;background:#ffffffeb;cursor:pointer}.viewer-tools button.on{background:#2f6fed;border-color:#2f6fed;color:#fff}.viewer-stats{position:absolute;right:12px;bottom:44px;background:#141820d9;color:#e8ecf2;padding:6px 10px;border-radius:6px;font:12px/1.5 ui-monospace,monospace;pointer-events:none}.agent{display:flex;flex-direction:column;border-left:1px solid #dde0e6;padding:12px;gap:8px;min-height:0;background:#fafbfc}.agent h2{margin:0;font-size:16px}.stage-info{margin:0;font-size:13px;color:#555}.messages{flex:1;overflow:auto;display:flex;flex-direction:column;gap:6px}.msg{padding:8px 10px;border-radius:8px;font-size:14px;white-space:pre-wrap}.msg.user{background:#2f6fed;color:#fff;align-self:flex-end}.msg.agent{background:#e9ecf1}.composer{display:flex;flex-direction:column;gap:6px}.composer textarea{resize:vertical;font:inherit;padding:8px;border-radius:6px;border:1px solid #dde0e6}.composer button{align-self:flex-end;padding:6px 14px;border-radius:6px;border:0;background:#1d2330;color:#fff;cursor:pointer}.open-rvt{padding:6px 12px;border-radius:6px;background:#1d2330;color:#fff;cursor:pointer}.rvt-panel{position:absolute;top:12px;left:12px;bottom:48px;width:340px;overflow:auto;background:#fffffff7;border:1px solid #dde0e6;border-radius:8px;padding:12px;font-size:13px;display:flex;flex-direction:column;gap:8px}.rvt-panel header{display:flex;justify-content:space-between;align-items:center;gap:8px}.rvt-panel header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rvt-panel header button{border:0;background:none;font-size:18px;cursor:pointer}.rvt-note{margin:0;color:#555}.rvt-preview{width:128px;height:128px;align-self:center;border:1px solid #eee;image-rendering:pixelated}.rvt-panel table{border-collapse:collapse;width:100%}.rvt-panel th,.rvt-panel td{text-align:left;padding:3px 4px;border-bottom:1px solid #eef0f3;vertical-align:top;word-break:break-all}.rvt-panel tbody th{color:#555;font-weight:500;width:40%;word-break:normal}.rvt-streams-head{display:flex;justify-content:space-between;align-items:center;margin-top:4px}.rvt-streams-head button{padding:4px 10px;border-radius:6px;border:1px solid #dde0e6;background:#fff;cursor:pointer}.rvt-streams td:not(:first-child),.rvt-streams th:not(:first-child){text-align:right;white-space:nowrap;word-break:normal}.rvt-schema{display:flex;flex-direction:column;gap:6px}.rvt-schema input{font:inherit;padding:5px 8px;border:1px solid #dde0e6;border-radius:6px}.rvt-matches{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px;max-height:120px;overflow:auto}.rvt-matches button{border:1px solid #dde0e6;background:#fff;border-radius:4px;padding:2px 6px;cursor:pointer;font-size:12px}.rvt-matches button.active{background:#1d2330;color:#fff}.account{margin-left:auto;display:flex;gap:8px}.account button,.files-panel button,.shared-bar button,.modal button{border:1px solid #c9cdd6;background:#fff;border-radius:6px;padding:4px 10px;cursor:pointer}button.primary{background:#2f6fed;border-color:#2f6fed;color:#fff}button.link{border:0;background:none;color:#555}button.danger,.error{color:#b42318}.muted{color:#6b7280;font-size:13px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f141e59;display:grid;place-items:center;z-index:20}.modal{background:#fff;border-radius:10px;padding:20px;width:min(380px,92vw);display:flex;flex-direction:column;gap:12px}.modal header{display:flex;justify-content:space-between;align-items:center}.modal header button{border:0;font-size:20px}.modal form{display:flex;flex-direction:column;gap:8px}.modal input{padding:8px;border:1px solid #c9cdd6;border-radius:6px}.divider{text-align:center;color:#9aa0aa;font-size:12px}.files-panel{width:320px;border-right:1px solid #dde0e6;background:#fff;padding:12px;overflow:auto;display:flex;flex-direction:column;gap:8px}.files-panel header{display:flex;justify-content:space-between;align-items:center}.files-panel header button{border:0;font-size:18px}.files-panel .upload{background:#2f6fed;color:#fff;text-align:center;border-radius:6px;padding:6px;cursor:pointer}.files-panel ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.files-panel li{border:1px solid #e5e7eb;border-radius:8px;padding:8px}.file-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.file-actions button{font-size:12px;padding:2px 8px}.shared-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 16px;background:#eef4ff;border-bottom:1px solid #d6e2fb;font-size:14px}.rvt-cat{display:flex;align-items:center;gap:6px;cursor:pointer}.rvt-selection{position:absolute;top:12px;right:12px;width:280px;background:#fffffff7;border:1px solid #dde0e6;border-left:3px solid #ff7a00;border-radius:8px;padding:10px 12px;font-size:13px}.rvt-selection header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.rvt-selection header button{border:0;background:none;font-size:18px;cursor:pointer}.rvt-selection table{border-collapse:collapse;width:100%}.rvt-selection th{text-align:left;color:#555;font-weight:500;padding:2px 6px 2px 0;white-space:nowrap}.rvt-selection td{padding:2px 0}.notice{background:#fff7e6;border:1px solid #f5d38a;border-radius:6px;padding:6px 8px;font-size:13px}.rvt-levels{position:absolute;top:12px;left:50%;transform:translate(-50%);background:#fffffff7;border:1px solid #dde0e6;border-radius:8px;padding:6px 10px;font-size:13px;display:flex;gap:8px;align-items:center}.rvt-levels select{font:inherit;padding:2px 4px}.account.cloud{margin-left:0}.load-panel{position:fixed;left:12px;bottom:12px;z-index:50;width:280px;padding:8px 10px;background:#14181eeb;color:#e6e9ee;border:1px solid #3a4250;border-radius:6px;font-size:12px}.load-panel.error{border-color:#c0504d}.load-head{display:flex;justify-content:space-between;gap:8px;margin-bottom:4px}.load-file{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.load-stage{margin-bottom:6px}.load-bar{height:4px;background:#2c3340;border-radius:2px;overflow:hidden}.load-fill{height:100%;background:#4da3ff;transition:width .1s linear}.load-fill.indeterminate{width:30%;animation:load-slide 1.1s ease-in-out infinite}@keyframes load-slide{0%{margin-left:-30%}to{margin-left:100%}}
