:root{--studio-paper: #f3eee4;--studio-paper-elevated: #fbf7ef;--studio-paper-deep: #efe4d4;--studio-ink: #1f2a37;--studio-ink-soft: #5e6a77;--studio-line: #d8ccb8;--studio-line-strong: #b79d79;--studio-accent: #7c5b35;--studio-accent-strong: #24364b;--studio-accent-soft: #f1e5d4;--studio-danger: #b42318;--studio-canvas-line: #cdd8e7;--studio-canvas-surface: linear-gradient(145deg, #fcfdfd 0%, #edf4fb 42%, #f7fbf8 100%);--studio-shadow-soft: 0 18px 40px rgba(65, 53, 39, .08);--studio-shadow-card: 0 14px 32px rgba(47, 39, 29, .1);--studio-radius-lg: 22px;--studio-radius-md: 16px;color:var(--studio-ink);background:var(--studio-paper);font-family:Avenir Next,Helvetica Neue,PingFang SC,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--studio-paper)}.studio-homepage{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.85fr);gap:clamp(24px,4vw,56px);padding:clamp(24px,4vw,48px);background:radial-gradient(circle at top right,rgba(124,91,53,.08),transparent 34%),linear-gradient(180deg,#f8f4ecf5,#f1ede5fa),var(--studio-paper);color:var(--studio-ink)}.studio-homepage-main{display:flex;flex-direction:column;gap:clamp(18px,2vw,28px);min-width:0;padding:clamp(24px,3vw,36px);border:1px solid rgba(183,157,121,.26);border-radius:calc(var(--studio-radius-lg) + 4px);background:linear-gradient(180deg,#fffcf7f0,#fbf7efeb),var(--studio-paper-elevated);box-shadow:var(--studio-shadow-soft)}.studio-homepage-copy{display:flex;flex-direction:column;gap:10px;max-width:760px}.studio-homepage-eyebrow{margin:0;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--studio-accent)}.studio-homepage-copy h1{margin:0;font-size:clamp(40px,5vw,76px);line-height:.96;letter-spacing:-.04em;color:var(--studio-ink);max-width:10ch}.studio-homepage-copy>p:last-child{margin:0;max-width:52ch;font-size:clamp(16px,1.4vw,20px);line-height:1.6;color:var(--studio-ink-soft)}.studio-start-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.studio-start-action{display:flex;flex-direction:column;gap:8px;align-items:flex-start;min-height:124px;padding:16px 18px;border:1px solid rgba(183,157,121,.22);border-radius:var(--studio-radius-md);background:#fffcf7db;color:var(--studio-ink);cursor:pointer;text-align:left;box-shadow:inset 0 1px #ffffff85}.studio-start-action span{font-size:18px;font-weight:600}.studio-start-action small{font-size:13px;line-height:1.5;color:var(--studio-ink-soft)}.studio-start-action-active{background:var(--studio-accent-soft);border-color:var(--studio-line-strong);box-shadow:inset 0 0 0 1px #7c5b3529,0 12px 24px #7c5b3514}.studio-homepage-inputs{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(280px,.92fr);gap:16px}.studio-input-paper{display:flex;flex-direction:column;gap:10px;min-height:240px;padding:22px;border:1px solid rgba(183,157,121,.24);border-radius:var(--studio-radius-lg);background:linear-gradient(180deg,#fffefaf5,#f9f4ecf5),var(--studio-paper-elevated);box-shadow:var(--studio-shadow-soft)}.studio-input-paper strong,.studio-input-paper label{font-size:18px;font-weight:600;color:var(--studio-ink)}.studio-input-paper p{margin:0;font-size:14px;line-height:1.6;color:var(--studio-ink-soft)}.studio-input-paper textarea{flex:1;min-height:132px;resize:vertical;border:1px solid rgba(183,157,121,.26);border-radius:14px;background:#fffc;padding:14px 16px;font:inherit;color:var(--studio-ink)}.studio-homepage-actions{display:flex;flex-wrap:wrap;gap:12px}.studio-primary-button,.studio-secondary-button{min-height:46px;padding:0 18px;border:1px solid var(--studio-line);border-radius:999px;cursor:pointer;font:inherit;box-shadow:0 8px 18px #41352714}.studio-primary-button{background:var(--studio-accent-strong);border-color:var(--studio-accent-strong);color:#f7f4ef}.studio-secondary-button{background:#fffcf6f0;color:#324355}.studio-homepage-scenarios{display:flex;flex-direction:column;gap:12px;padding:clamp(28px,6vh,72px) 0 0 clamp(8px,1vw,16px);min-width:0;border-left:1px solid rgba(183,157,121,.22)}.studio-homepage-side-label{margin:0 0 4px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--studio-accent)}.teacher-scenario-seed{display:flex;flex-direction:column;gap:8px;align-items:flex-start;padding:18px 18px 20px;border:1px solid rgba(183,157,121,.24);border-radius:var(--studio-radius-md);background:#f7f1e7eb;color:var(--studio-ink);text-align:left;cursor:pointer;box-shadow:var(--studio-shadow-soft)}.teacher-scenario-seed span{font-size:18px;font-weight:600}.teacher-scenario-seed small{font-size:13px;line-height:1.6;color:var(--studio-ink-soft)}@media(max-width:900px){.studio-homepage{grid-template-columns:1fr;gap:20px;padding:20px 16px 28px}.studio-homepage-main{gap:16px}.studio-start-actions,.studio-homepage-inputs{grid-template-columns:1fr}.studio-homepage-copy h1{max-width:none;font-size:clamp(32px,10vw,52px)}.studio-homepage-scenarios{padding-top:0}}.workspace-shell{min-height:100vh;height:100dvh;min-height:100dvh;display:flex;flex-direction:column;background:linear-gradient(180deg,#f4efe6f5,#f0ebe2fa),var(--studio-paper)}.top-bar{position:relative;z-index:5;display:flex;flex-direction:column;justify-content:center;gap:10px;padding:10px 16px;border-bottom:1px solid rgba(183,157,121,.26);background:#fffbf4f0;box-shadow:0 10px 24px #4135270f}.top-bar-main{display:flex;align-items:center;justify-content:space-between;gap:12px}.top-bar h1{font-size:18px;margin:0;color:var(--studio-ink);letter-spacing:.04em}.top-bar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;flex-wrap:wrap}.top-bar-button{border-radius:10px;min-height:34px;padding:0 12px;cursor:pointer;transition:background .12s ease,border-color .12s ease,color .12s ease}.top-bar-button-secondary{border:1px solid rgba(183,157,121,.3);background:#fffcf7eb;color:var(--studio-accent-strong)}.top-bar-button-secondary:hover{background:#f1e5d4eb}.top-bar-button-danger{border:1px solid rgba(180,35,24,.18);background:#fff4f0f5;color:var(--studio-danger)}.top-bar-button-ghost{border:1px solid rgba(183,157,121,.22);background:#fffbf4c7;color:#43536d}.top-bar-button[disabled]{opacity:.5;cursor:not-allowed}.top-bar-overflow-menu{display:flex;flex-wrap:wrap;gap:8px;padding:10px;border:1px solid #dbe3ef;border-radius:14px;background:#f8fbff;box-shadow:0 16px 32px #0f172a1f}.top-bar-overflow-menu button{border:1px solid #d3deef;border-radius:999px;min-height:34px;padding:0 14px;background:#fff;color:#1d3557}.mobile-surface-switcher{display:none}.mobile-surface-button{border:1px solid #d7dfed;border-radius:999px;min-height:34px;background:#fff;color:#4a5b74}.mobile-surface-button-active{border-color:#8bb5ff;background:#eaf2ff;color:#18457b}.workspace-shell.compact-viewport .runtime-tag{display:none}.workspace-shell.compact-viewport .mobile-surface-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:min(280px,100%)}.workspace-shell.compact-viewport .top-bar-overflow-menu{position:absolute;top:calc(100% - 6px);right:16px;z-index:30;width:min(320px,calc(100vw - 32px))}.workspace-shell.compact-viewport .workspace-content{flex-direction:column}.workspace-shell.compact-viewport .canvas-panel,.workspace-shell.compact-viewport .chat-panel{flex:1 1 auto;width:100%;min-height:0;padding:10px}.workspace-shell.compact-viewport .chat-panel{border-left:none;border-top:none;padding-top:0}.workspace-shell.compact-viewport .chat-shell{flex:1}.workspace-shell.compact-viewport .history-resizer{display:none}.workspace-shell.compact-viewport .chat-body{padding:8px 0 0;gap:8px}.workspace-shell.compact-viewport .chat-thread-actions{gap:6px}.workspace-shell.compact-viewport .scene-transaction-count{font-size:11px}.workspace-shell.compact-viewport .chat-composer{gap:6px}.workspace-shell.compact-viewport .chat-composer-hint,.workspace-shell.compact-viewport .chat-composer-notice{font-size:11px}.workspace-shell.compact-viewport .chat-composer-input-shell{gap:8px;padding:8px;border-radius:16px}.workspace-shell.compact-viewport .chat-composer-input-shell textarea{min-height:44px;max-height:160px;padding:4px 0}.workspace-shell.compact-viewport .chat-composer-input-shell button[type=submit]{height:36px;padding:0 14px}.workspace-shell.compact-viewport .plus-menu-button{width:32px;height:32px;font-size:18px}.workspace-shell.short-viewport.compact-viewport .top-bar{gap:4px;padding:6px 10px}.workspace-shell.short-viewport.compact-viewport .top-bar-main{gap:8px}.workspace-shell.short-viewport.compact-viewport .top-bar h1{font-size:15px}.workspace-shell.short-viewport.compact-viewport .top-bar-actions{gap:6px}.workspace-shell.short-viewport.compact-viewport .top-bar-button,.workspace-shell.short-viewport.compact-viewport .mode-switcher select{min-height:30px;height:30px;font-size:12px}.workspace-shell.short-viewport.compact-viewport .top-bar-button{padding:0 10px}.workspace-shell.short-viewport.compact-viewport .mobile-surface-switcher{gap:4px;width:min(240px,100%)}.workspace-shell.short-viewport.compact-viewport .mobile-surface-button{min-height:28px;font-size:12px}.workspace-shell.short-viewport.compact-viewport .top-bar-overflow-menu{top:calc(100% - 2px)}.workspace-shell.short-viewport.compact-viewport .canvas-panel,.workspace-shell.short-viewport.compact-viewport .chat-panel{padding:6px 10px 10px}.workspace-platform-console{min-height:0}.workspace-dialog-result-shell .workspace-platform-console,.chat-body .workspace-platform-console{padding:0}.workspace-dialog-result-shell .workspace-platform-console .run-console,.chat-body .workspace-platform-console .run-console{max-height:min(28vh,280px);overflow:auto;padding-right:4px}.run-console{display:grid;gap:12px}.run-console-card{border:1px solid rgba(183,157,121,.2);border-radius:18px;padding:14px;background:#fffbf4e0;box-shadow:0 10px 24px #4135270f}.run-console-inspector-toggle{margin-top:8px;border:1px solid rgba(183,157,121,.3);border-radius:999px;min-height:34px;padding:0 14px;background:#fffcf7f0;color:var(--studio-accent-strong)}.run-console-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.run-console-inline-action{border:1px solid rgba(183,157,121,.3);border-radius:999px;min-height:34px;padding:0 14px;background:#fffcf7f0;color:var(--studio-accent-strong)}.run-console-inline-action-danger{border-color:#b423183d;background:#fff4f0f5;color:var(--studio-danger)}.run-console-inline-action[disabled],.run-console-inspector-toggle[disabled]{opacity:.6;cursor:not-allowed}.run-console-feedback{margin:10px 0 0;color:var(--studio-accent-strong)}.run-console-sync-status,.admin-run-sync-status{display:inline-flex;align-items:center;gap:6px;margin:10px 0 0;padding:6px 10px;border:1px solid rgba(183,157,121,.22);border-radius:999px;background:#fffcf7eb;color:var(--studio-accent-strong);font-size:12px;font-weight:600}.run-console-sync-status-error,.admin-run-sync-status-error{border-color:#b423183d;background:#fff4f0eb;color:var(--studio-danger)}.run-console-feedback-error{color:var(--studio-danger)}.admin-run-inspector-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:14px}.admin-run-inspector button[data-run-id]{border:1px solid rgba(183,157,121,.24);border-radius:10px;padding:6px 10px;background:#ffffffeb;color:var(--studio-ink)}.admin-run-timeline-page dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.admin-run-timeline-page dl div{border:1px solid rgba(183,157,121,.18);border-radius:12px;padding:8px 10px;background:#ffffffc7}.admin-run-timeline-page dt{font-size:12px;color:#6f6556}.admin-run-timeline-page dd{margin:4px 0 0;font-weight:600;color:var(--studio-ink)}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .chat-body{padding-top:4px;gap:6px}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .chat-thread-header{padding-bottom:4px}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .chat-thread-header h3{font-size:13px}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .chat-composer{position:relative;gap:4px;padding-top:0;overflow:visible}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .chat-composer-hint{display:none}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .chat-composer-input-shell{grid-template-columns:auto minmax(0,1fr) auto;gap:6px;padding:6px;border-radius:14px}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .chat-composer-input-shell textarea{min-height:32px;max-height:96px;padding:2px 0}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .chat-composer-input-shell button[type=submit]{width:auto;height:32px;padding:0 12px;justify-self:end}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .studio-continue-panel,.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .studio-result-panel{min-height:0;max-height:min(20vh,88px);overflow:auto;gap:8px;padding:10px 12px}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .studio-continue-grid,.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .studio-result-section,.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .studio-result-actions{gap:6px}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .studio-continue-primary button,.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .studio-continue-section>button,.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .studio-result-retry-button,.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .studio-result-actions button{min-height:30px}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .plus-menu-button{width:28px;height:28px;font-size:16px}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .plus-menu,.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .slash-command-menu{position:absolute;left:0;right:0;bottom:calc(100% + 4px);z-index:8;border:1px solid #e3ebf7;border-radius:12px;padding:8px;background:#f8fbfffa;box-shadow:0 14px 30px #0f172a24}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .plus-menu{flex-wrap:nowrap;align-items:center;overflow-x:auto;overflow-y:hidden}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .plus-menu-item{flex:0 0 auto}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .plus-menu-note{width:max-content;min-width:100%;white-space:nowrap}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .slash-command-menu{max-height:96px}.workspace-shell.short-viewport.compact-viewport .history-sheet-backdrop{inset:0 -10px -10px}.workspace-shell.short-viewport.compact-viewport .history-sheet{top:8px;bottom:0;height:auto;max-height:none;padding:6px 10px 0}.workspace-shell.short-viewport.compact-viewport .history-sheet .conversation-sidebar{border-radius:18px}.workspace-content{display:flex;flex:1;min-height:0;overflow:hidden}.workspace-desktop-layout{display:flex;flex:1;min-width:0;min-height:0}.workspace-canvas-rail{flex:1 1 auto;min-width:0;min-height:0;display:flex}.workspace-shell:not(.compact-viewport) .chat-panel{width:clamp(440px,36vw,600px);flex:0 0 clamp(440px,36vw,600px);min-width:440px;padding:16px 16px 16px 10px;border-left:1px solid rgba(183,157,121,.22);background:transparent}.workspace-shell:not(.compact-viewport) .workspace-canvas-rail .canvas-panel{flex:1 1 auto;min-height:0;padding:16px 10px 16px 16px}.workspace-conversation-shell{flex:1;min-width:0;min-height:0;display:flex}.workspace-shell:not(.compact-viewport) .chat-shell{overflow:hidden;flex:1;border:1px solid rgba(183,157,121,.24);border-radius:28px;background:linear-gradient(180deg,#fffcf6fa,#f7f1e7f5),var(--studio-paper-elevated);box-shadow:var(--studio-shadow-soft)}.workspace-history-overlay{position:absolute;inset:0;pointer-events:none}.workspace-history-overlay .history-drawer{pointer-events:auto}.workspace-shell:not(.compact-viewport) .history-drawer-open{border-right:1px solid rgba(183,157,121,.2)}.workspace-shell:not(.compact-viewport) .conversation-sidebar{width:calc(100% - 10px);border-radius:20px;background:linear-gradient(180deg,#fffcf7fa,#f6efe6f5),var(--studio-paper-elevated);box-shadow:inset 0 1px #ffffff8f}.workspace-shell:not(.compact-viewport) .history-resizer{border-left:1px solid rgba(183,157,121,.2)}.workspace-shell:not(.compact-viewport) .history-resizer:hover{background:#f1e5d49e}.workspace-dialog-rail{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px;padding:18px;background:linear-gradient(180deg,#fffcf6f5,#f8f2e8eb),var(--studio-paper-elevated)}.workspace-conversation-header{display:flex;align-items:center;min-height:0;padding-bottom:10px;border-bottom:1px solid rgba(183,157,121,.18)}.workspace-dialog-intake{display:flex;flex-direction:column;gap:10px}.studio-input-panel{display:flex;flex-direction:column;gap:14px;min-height:0;padding:16px 18px;border:1px solid rgba(183,157,121,.22);border-radius:22px;background:#fffbf4eb;box-shadow:inset 0 1px #ffffff80}.workspace-dialog-intake .chat-thread-header{padding-bottom:10px;border-bottom:1px solid rgba(183,157,121,.18)}.workspace-dialog-intake .chat-thread-header h3{font-size:16px}.studio-input-mode-switcher{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.studio-input-mode-button{min-height:38px;border:1px solid rgba(183,157,121,.28);border-radius:999px;background:#fffcf6eb;color:#34465b;cursor:pointer}.studio-input-mode-button-active{background:var(--studio-accent-soft);border-color:var(--studio-line-strong);color:#1f2f41}.studio-input-mode-panel{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border:1px solid rgba(183,157,121,.24);border-radius:var(--studio-radius-md);background:#fffcf6eb;box-shadow:inset 0 1px #ffffff7a}.studio-input-mode-panel strong{font-size:15px;color:var(--studio-ink)}.studio-input-mode-panel p{margin:0;font-size:13px;line-height:1.55;color:var(--studio-ink-soft)}.studio-input-mode-panel button{align-self:flex-start;min-height:32px;padding:0 12px;border:1px solid rgba(183,157,121,.3);border-radius:999px;background:#fffdf8;color:#324355;cursor:pointer}.teacher-template-library{display:flex;flex-direction:column;gap:12px;padding:14px 16px;border:1px solid rgba(183,157,121,.26);border-radius:calc(var(--studio-radius-md) + 2px);background:#fffcf6fa;box-shadow:var(--studio-shadow-soft)}.teacher-template-library-header{display:flex;justify-content:space-between;gap:12px}.teacher-template-library-header h3,.teacher-template-library-group h4{margin:0;color:#243547}.teacher-template-library-header p{margin:4px 0 0;font-size:13px;line-height:1.5;color:var(--studio-ink-soft)}.teacher-template-library-header button,.teacher-template-library-item{min-height:34px;padding:0 12px;border:1px solid rgba(183,157,121,.28);border-radius:999px;background:#fffdf8;color:#324355;cursor:pointer}.teacher-template-library-group{display:flex;flex-direction:column;gap:8px}.teacher-template-library-items{display:flex;flex-wrap:wrap;gap:8px}.workspace-dialog-thread{flex:1;min-height:220px;min-width:0;display:flex}.workspace-dialog-thread .chat-messages{flex:1;min-height:0;padding:14px;border:1px solid rgba(183,157,121,.2);border-radius:22px;background:#fffdf9db;box-shadow:inset 0 1px #ffffff8f}.workspace-dialog-thread .chat-empty-card{width:min(100%,100%);border-color:#b79d793d;background:linear-gradient(180deg,#fffcf7,#f9f4ecfa);box-shadow:var(--studio-shadow-soft)}.workspace-dialog-thread .chat-empty-copy h4{color:var(--studio-ink)}.workspace-dialog-thread .chat-empty-copy p{color:var(--studio-ink-soft)}.workspace-dialog-composer{padding-top:2px}.canvas-panel{flex:1;min-width:0;padding:16px}.geogebra-host{position:relative;min-width:0;height:100%;border-radius:24px;border:1px solid var(--studio-canvas-line);background:var(--studio-canvas-surface);overflow:hidden;box-shadow:0 28px 56px #3443551f}.geogebra-container{width:100%;height:100%}.canvas-focus-notice{position:absolute;top:14px;left:14px;z-index:8;max-width:min(360px,calc(100% - 76px));padding:10px 14px;border:1px solid rgba(53,105,186,.22);border-radius:14px;background:#f2f8fff0;color:#24426a;font-size:13px;line-height:1.5;box-shadow:0 12px 28px #24426a1f}.canvas-focus-notice-warning{border-color:#ba573538;background:#fff6f0f0;color:#8a3d20}.canvas-fullscreen-button{position:absolute;right:12px;bottom:12px;z-index:8;width:40px;height:40px;border:1px solid #d4ddeb;border-radius:999px;background:#ffffffeb;color:#314761;font-size:18px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 18px #0f172a1f}.canvas-fullscreen-button:hover{background:#fff}.canvas-fullscreen-button:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.canvas-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#f4f9ffd1;color:#305080;font-size:14px}.canvas-overlay-error{color:#9a3412;background:#fff3e8e6}.workspace-dialog-result-shell{display:flex;flex-direction:column;gap:10px;min-height:0}.workspace-dialog-result-header{display:flex;flex-direction:column;gap:4px;padding:0 2px}.workspace-dialog-result-header h3{margin:0;font-size:15px;color:var(--studio-ink)}.workspace-dialog-result-header span{font-size:12px;line-height:1.5;color:var(--studio-ink-soft)}.workspace-dialog-result-shell .studio-result-panel{max-height:min(34vh,320px);overflow:auto}.studio-result-panel{display:flex;flex-direction:column;gap:12px;padding:14px;border:1px solid rgba(183,157,121,.24);border-radius:var(--studio-radius-lg);background:#fffcf6f5;box-shadow:var(--studio-shadow-card)}.studio-result-section{display:flex;flex-direction:column;gap:8px}.studio-result-section h3{margin:0;font-size:14px;color:var(--studio-ink)}.studio-result-section p,.studio-result-section li{font-size:13px;line-height:1.55;color:var(--studio-ink-soft)}.studio-result-section ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}.studio-review-item{display:grid;gap:10px;padding:12px 14px;border:1px solid rgba(183,157,121,.18);border-radius:16px;background:#fffdf8f5}.studio-review-item>div:first-child,.studio-review-item>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.studio-review-item>div:last-child{justify-content:flex-start}.studio-review-item button{min-height:32px;padding:0 12px;border:1px solid rgba(183,157,121,.28);border-radius:999px;background:#fffdf8;color:#324355;cursor:pointer}.studio-review-item button[disabled]{opacity:.48;cursor:not-allowed}.studio-review-item-active{border-color:#3569ba6b;background:#eef6fff5;box-shadow:0 0 0 1px #3569ba1f}.studio-review-item-confirmed{border-color:#54825247;background:#f2faf1f5}.studio-review-item-needs-fix{border-color:#ba573547;background:#fff5f0f5}.studio-result-actions{display:flex;flex-wrap:wrap;gap:8px}.studio-result-actions button{min-height:34px;padding:0 12px;border:1px solid rgba(183,157,121,.3);border-radius:999px;background:#fffdf8;color:#324355;cursor:pointer}.studio-result-actions button[disabled]{opacity:.48;cursor:not-allowed}.studio-result-retry-button{min-height:38px;padding:0 14px;border:1px solid rgba(180,35,24,.18);border-radius:999px;background:#fff4f0f5;color:var(--studio-danger)}.studio-continue-panel{display:grid;gap:14px;padding:14px;border:1px solid rgba(183,157,121,.24);border-radius:22px;background:#fffbf4e6;box-shadow:0 14px 28px #41352714}.studio-continue-primary{display:grid;gap:8px}.studio-continue-primary p,.studio-continue-item small{margin:0;color:#6b6255}.studio-continue-primary button,.studio-continue-section>button,.studio-continue-item{border:1px solid rgba(183,157,121,.26);border-radius:14px;background:#fffcf7f0;color:var(--studio-ink)}.studio-continue-primary button,.studio-continue-section>button{min-height:40px;padding:0 14px;justify-self:start}.studio-continue-grid{display:grid;gap:12px}.studio-continue-section{display:grid;gap:8px}.studio-continue-section h4{margin:0}.studio-continue-items{display:grid;gap:8px}.studio-continue-item{display:grid;gap:4px;padding:10px 12px;text-align:left}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .studio-continue-panel,.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .studio-result-panel{display:none}.chat-structured-result-receipt{padding:10px 12px;border:1px solid rgba(183,157,121,.24);border-radius:14px;background:#faf5eceb;color:#5a5144;font-size:13px;line-height:1.55}.chat-panel{width:min(360px,24vw);flex:0 0 min(360px,24vw);border-left:1px solid rgba(183,157,121,.26);background:linear-gradient(180deg,#fffcf6fa,#f8f3eaf5),var(--studio-paper-elevated);padding:0;display:flex;flex-direction:column}.chat-panel-hidden{display:none}.chat-shell{position:relative;height:100%;display:flex;min-width:0;min-height:0}.chat-shell.history-overlay-mode .history-drawer{position:absolute;top:16px;left:16px;bottom:16px;max-width:min(320px,calc(100% - 32px));z-index:14;overflow:visible}.chat-shell.history-overlay-mode .history-drawer.history-drawer-open{border-right:none}.chat-shell.history-overlay-mode .history-resizer{display:none}.chat-shell.history-overlay-mode .conversation-sidebar{width:100%;height:100%;border-radius:20px;box-shadow:0 16px 32px #0f172a29}.history-drawer{width:0;min-width:0;flex:0 0 auto;display:flex;overflow:hidden}.history-drawer-open{border-right:1px solid #e4ebf5}.history-sheet-backdrop{position:absolute;inset:0;background:#0f172a2e;z-index:20}.history-sheet{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:10px;height:min(58%,420px);max-height:calc(100% - 12px);padding:8px 10px 10px}.history-sheet-handle{width:44px;height:4px;border-radius:999px;background:#c9d4e8;margin:0 auto}.history-sheet .conversation-sidebar{width:100%;height:100%;border-radius:18px 18px 0 0;box-shadow:0 16px 32px #0f172a1f}.conversation-sidebar{width:calc(100% - 8px);background:#f8fbff;border-radius:10px;display:flex;flex-direction:column;min-width:0;flex:1}.history-resizer{width:8px;cursor:col-resize;background:transparent;border-left:1px solid #e4ebf5;flex:0 0 auto}.history-resizer:hover{background:#edf3ff}.conversation-sidebar-header{padding:10px;border-bottom:1px solid #e4ebf5}.new-conversation-button{width:100%;height:34px;border:1px solid #cfdcf5;border-radius:8px;background:#fff;color:#204066;cursor:pointer}.conversation-list{flex:1;overflow:auto;display:flex;flex-direction:column;padding:8px;gap:6px}.conversation-item{border:1px solid transparent;background:#f1f6ff;border-radius:8px;padding:8px;text-align:left;color:#17365b;cursor:pointer;display:flex;flex-direction:column;gap:4px}.conversation-item-active{border-color:#8bb5ff;background:#e7f1ff}.conversation-item-title{font-size:13px;line-height:1.2}.conversation-item-meta{font-size:11px;color:#607089}.mode-switcher{display:inline-flex;align-items:center;gap:6px;font-size:13px}.mode-switcher select{height:32px;border-radius:8px;border:1px solid #d1d9e6;padding:0 8px}.runtime-tag{font-size:12px;color:#1d3557;background:#eaf2ff;border:1px solid #c9dafb;border-radius:999px;padding:4px 10px}.chat-body{flex:1;min-width:0;min-height:0;padding:10px;height:100%;display:flex;flex-direction:column;gap:10px}.chat-thread-header{border-bottom:1px solid #edf1f8;padding-bottom:6px;display:flex;align-items:center;justify-content:space-between;gap:8px}.chat-thread-header h3{margin:0;font-size:14px}.chat-thread-actions{display:flex;align-items:center;gap:8px}.scene-transaction-count{font-size:12px;color:#607089}.history-toggle-button{border:1px solid #c8d6ee;border-radius:8px;background:#f8fbff;color:#1d3557;height:30px;padding:0 10px}.chat-messages{flex:1;overflow:auto;display:flex;flex-direction:column;gap:8px}.chat-empty{color:#74839a;border:1px dashed #d4dceb;border-radius:10px;padding:12px}.chat-empty-compact{display:flex;flex-direction:column;gap:10px;align-self:center;margin:auto 0;width:min(420px,100%);background:#fbfdff}.chat-empty-compact p{margin:0}.chat-empty-actions-compact{gap:8px}.chat-empty-state{flex:1;min-height:0;display:grid;place-items:center}.chat-empty-card{width:min(440px,100%);border:1px solid #dbe5f4;border-radius:20px;padding:22px;background:linear-gradient(180deg,#fff,#f7fbff);box-shadow:0 18px 42px #0f172a14;display:flex;flex-direction:column;gap:14px}.chat-empty-copy{display:flex;flex-direction:column;gap:6px}.chat-empty-copy h4{margin:0;font-size:20px;color:#16355c}.chat-empty-copy p{margin:0;font-size:14px;line-height:1.5;color:#607089}.chat-empty-actions{display:flex;flex-wrap:wrap;gap:10px}.chat-empty-template-button{border:1px solid #c9d8f1;border-radius:999px;min-height:36px;padding:0 14px;background:#fff;color:#16355c;cursor:pointer}.chat-empty-template-button:hover{background:#eef5ff}.workspace-shell.compact-viewport .chat-empty-template-button{min-height:32px;padding:0 12px;font-size:12px}.workspace-shell.short-viewport.compact-viewport.mobile-surface-chat .chat-empty-compact{gap:8px;width:min(560px,100%);margin:0 auto;align-self:center;padding:10px 12px}.session-warning{border:1px solid #ffd8b5;background:#fff3e8;color:#9a3412;border-radius:8px;padding:10px;font-size:13px}.chat-message{max-width:90%;min-width:0;padding:10px;border-radius:10px;font-size:14px;overflow-wrap:anywhere;word-break:break-word}.chat-message>div{min-width:0;overflow-wrap:anywhere;word-break:break-word}.chat-message-user{align-self:flex-end;background:#2e6cff;color:#fff}.chat-message-assistant{align-self:flex-start;background:#eef2ff;color:#13203a}.agent-steps{margin-top:8px;border-top:1px solid #d4def2;padding-top:8px}.agent-steps h4{margin:0 0 6px;font-size:12px;color:#51607a;text-transform:uppercase;letter-spacing:.04em}.agent-steps ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.agent-step{display:grid;grid-template-columns:1fr auto auto;gap:8px;font-size:12px;padding:4px 6px;border-radius:6px;background:#f4f7ff}.agent-step-status{font-weight:600;text-transform:uppercase}.agent-step-time{color:#607089}.agent-step-ok .agent-step-status{color:#006f4f}.agent-step-fallback .agent-step-status{color:#8b5f00}.agent-step-error .agent-step-status{color:#b42318}.agent-step-skipped .agent-step-status{color:#5f6b7a}.chat-composer{display:flex;flex-direction:column;gap:8px;padding-top:2px}.plus-menu-button{width:36px;height:36px;border:1px solid #c8d6ee;border-radius:999px;background:#f8fbff;color:#1d3557;font-size:20px;line-height:1;cursor:pointer;flex:0 0 auto}.chat-composer-hint{font-size:12px;color:#607089}.chat-composer-notice{font-size:12px;color:#9a3412}.plus-menu{display:flex;flex-wrap:wrap;gap:6px}.plus-menu-item{border:1px solid #d3deef;border-radius:999px;background:#fff;color:#1d3557;min-height:32px;padding:0 12px;cursor:pointer}.plus-menu-item[disabled]{opacity:.5;cursor:not-allowed}.plus-menu-note{width:100%;font-size:12px;color:#9a3412}.composer-attachment-tray{display:flex;gap:8px;overflow:auto}.composer-attachment-item{min-width:128px;border:1px solid #dbe3ef;border-radius:12px;background:#f8fbff;padding:8px;display:flex;flex-direction:column;gap:6px}.composer-attachment-item img{width:100%;height:84px;object-fit:cover;border-radius:8px;background:#eaf2ff}.composer-attachment-item span{font-size:12px;color:#1d3557;word-break:break-word}.composer-attachment-item button{align-self:flex-end;border:1px solid #d3deef;border-radius:8px;background:#fff;color:#1d3557;height:28px;padding:0 10px}.slash-command-menu{display:flex;flex-direction:column;gap:6px;max-height:180px;overflow:auto;border:1px solid #e3ebf7;border-radius:10px;padding:8px;background:#f8fbff}.slash-command-item{border:1px solid transparent;border-radius:8px;background:#fff;color:#17365b;text-align:left;padding:8px;display:flex;flex-direction:column;gap:2px;cursor:pointer}.slash-command-item-active{border-color:#8bb5ff;background:#e7f1ff}.slash-command-label{font-size:12px;font-weight:600}.slash-command-preview{font-size:12px;color:#607089}.chat-composer-input-shell{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:end;border:1px solid #d1d9e6;border-radius:18px;padding:10px;background:#fff;transition:border-color .12s ease,box-shadow .12s ease,background .12s ease}.chat-composer-input-shell-drag-active{border-color:#8bb5ff;box-shadow:0 0 0 3px #2e6cff1f;background:#f8fbff}.chat-composer-input-shell textarea{border:none;padding:6px 0;min-height:68px;max-height:220px;resize:vertical;font:inherit;background:transparent}.chat-composer-input-shell textarea:focus{outline:none}.chat-composer-input-shell button[type=submit]{border-radius:999px;border:none;background:#0f172a;color:#fff;height:40px;padding:0 16px}.chat-composer-input-shell button[disabled]{opacity:.5}.chat-message-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}.chat-message-attachment{margin:0;width:112px;display:flex;flex-direction:column;gap:4px}.chat-message-attachment img{width:112px;height:84px;object-fit:cover;border-radius:8px;border:1px solid rgba(148,163,184,.35)}.chat-message-attachment figcaption{font-size:11px;color:inherit;word-break:break-word}.token-gate-overlay{position:fixed;inset:0;background:#0f172a59;display:grid;place-items:center}.token-gate-card{width:min(460px,90vw);background:#fff;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:10px}.token-gate-card h2{margin:0;font-size:18px}.token-gate-card input{border:1px solid #d1d9e6;border-radius:8px;height:40px;padding:0 10px}.token-gate-actions{display:flex;justify-content:flex-end;gap:8px}.token-gate-actions button{border:1px solid #d1d9e6;border-radius:8px;height:36px;padding:0 12px}.token-gate-actions button:first-child{background:#2e6cff;border-color:#2e6cff;color:#fff}.token-gate-error{color:#b42318;margin:0;font-size:13px}.settings-drawer-backdrop{position:fixed;inset:0;background:#08132647;display:flex;justify-content:flex-end;z-index:40}.settings-drawer{width:min(520px,92vw);background:#fff;border-left:1px solid #d8e1ef;height:100%;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:14px}.settings-drawer-header{display:flex;align-items:center;justify-content:space-between}.settings-drawer-header h2{margin:0;font-size:20px}.settings-drawer-header button{border:1px solid #c8d6ee;background:#fff;border-radius:8px;padding:6px 10px;cursor:pointer}.settings-modal-body{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;min-height:0;flex:1}.settings-nav{display:flex;flex-direction:column;gap:8px;padding:6px 4px}.settings-nav-button{border:1px solid transparent;border-radius:12px;background:#f6f8fd;color:#1d3557;min-height:40px;text-align:left;padding:0 12px;cursor:pointer}.settings-nav-button-active{border-color:#bfd3f7;background:#eaf2ff;color:#12396b;font-weight:600}.settings-content{overflow:auto;padding-right:4px;display:flex;flex-direction:column;gap:14px}.settings-section{border:1px solid #e6edf8;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px}.settings-section h3{margin:0;font-size:15px}.settings-section label{display:flex;flex-direction:column;gap:4px;font-size:13px}.settings-section input,.settings-section select{height:34px;border:1px solid #d3ddef;border-radius:8px;padding:0 10px}.settings-inline-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.settings-inline-actions button{border:1px solid #b9c9e6;border-radius:8px;background:#f8fbff;color:#1d3557;padding:6px 10px;cursor:pointer}.settings-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.settings-grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.settings-checkbox{flex-direction:row!important;align-items:center;gap:8px!important}.settings-checkbox input{width:auto;height:auto}.settings-hint{margin:0;font-size:13px;color:#607089}.settings-warning{border:1px solid #f6c16f;background:#fff8ea;border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:6px}.settings-warning p{margin:0;font-size:13px;color:#7d4c00}.settings-import-preview{border:1px dashed #c6d4ec;background:#f8fbff;border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:6px}.settings-import-preview p{margin:0;font-size:13px;color:#33445f}.settings-remote-backup-history-list{display:flex;flex-wrap:wrap;gap:8px}.settings-remote-backup-history-item{border:1px solid #c6d4ec;border-radius:8px;background:#fff;color:#1d3557;padding:6px 10px;display:flex;flex-direction:column;gap:2px;text-align:left;cursor:pointer}.settings-remote-backup-history-item-badges{display:flex;flex-wrap:wrap;gap:6px}.settings-remote-backup-history-relation-badge{border-radius:999px;padding:1px 8px;font-size:12px;line-height:1.5}.settings-remote-backup-history-relation-badge-identical{background:#edf4ff;color:#2957a4}.settings-remote-backup-history-relation-badge-local_newer{background:#eef8ef;color:#23653c}.settings-remote-backup-history-relation-badge-remote_newer{background:#fff2df;color:#9a5a00}.settings-remote-backup-history-relation-badge-diverged{background:#f8ecff;color:#7f3fbf}.settings-remote-backup-history-item-selected{border-color:#4c7ed9;background:#eef4ff}.settings-warning-text{color:#9a5a00!important}.settings-audit-panel{border:1px solid #dce7f7;border-radius:10px;background:#f8fbff;padding:10px;display:flex;flex-direction:column;gap:8px}.settings-audit-panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.settings-audit-panel-header strong{font-size:13px;color:#1d3557}.settings-audit-count{border-radius:999px;background:#eaf2ff;color:#2957a4;padding:2px 8px;font-size:12px}.settings-bundle-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.settings-bundle-item{border:1px solid #d8e3f4;border-radius:8px;background:#fff;padding:8px;display:flex;flex-direction:column;gap:4px}.settings-bundle-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.settings-bundle-mode{border-radius:999px;background:#eef6ea;color:#23653c;padding:2px 8px;font-size:12px}.debug-log-panel{max-height:220px;overflow:auto;border:1px solid #e6edf8;border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:6px}.debug-log-panel article{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px;min-width:0;font-size:12px}.debug-log-panel article>*{min-width:0}.debug-log-panel article time,.debug-log-panel article span{overflow-wrap:anywhere;word-break:break-word}.debug-log-info span{color:#124469}.debug-log-error span{color:#b42318}@media(max-width:700px){.workspace-shell.phone-viewport .top-bar{gap:6px;padding:6px 10px 8px}.workspace-shell.phone-viewport .top-bar-main{width:100%;align-items:center;gap:6px}.workspace-shell.phone-viewport .top-bar h1{font-size:15px;flex:0 0 auto}.workspace-shell.phone-viewport .top-bar-actions{width:auto;flex:1 1 auto;gap:4px;justify-content:flex-end;flex-wrap:nowrap}.workspace-shell.phone-viewport .top-bar-button{min-height:30px;padding:0 8px;font-size:12px;white-space:nowrap}.workspace-shell.phone-viewport .mode-switcher{font-size:12px;flex:0 1 auto;min-width:0}.workspace-shell.phone-viewport .mode-switcher span{display:none}.workspace-shell.phone-viewport .mode-switcher select{height:30px;max-width:78px;padding:0 6px}.workspace-shell.phone-viewport .mobile-surface-switcher{width:100%}.workspace-shell.phone-viewport .mobile-surface-button{min-height:30px;font-size:12px}}.workspace-shell.chat-collapsed .canvas-panel{width:100%}@media(min-width:701px)and (max-width:900px){.chat-panel{width:52vw;flex:0 0 52vw}.history-drawer{max-width:46%}.settings-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-composer-input-shell{grid-template-columns:1fr}.chat-composer-input-shell button[type=submit]{width:100%}}@media(min-width:1800px){.chat-panel{width:clamp(600px,28vw,680px);flex:0 0 clamp(600px,28vw,680px)}.chat-empty-card{width:min(520px,100%)}.settings-drawer{width:min(720px,32vw)}.settings-modal-body{grid-template-columns:220px minmax(0,1fr);gap:20px}}@media(max-width:900px){.settings-drawer-backdrop{padding:12px}.settings-drawer{width:min(100vw - 24px,860px);max-height:calc(100dvh - 24px)}.settings-modal-body{grid-template-columns:1fr;align-content:start}.settings-nav{flex-direction:row;overflow:auto;padding-bottom:4px}.settings-nav-button{white-space:nowrap}}@media(max-width:700px){.settings-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-self:start;overflow:visible;padding-bottom:0}.settings-inline-actions select{min-width:0;width:100%;max-width:100%;flex:1 1 180px}.settings-nav-button{min-width:0;white-space:normal;text-align:center;line-height:1.3;padding:10px 12px}}@media(max-width:420px){.settings-drawer{padding:12px 10px;gap:12px}.settings-modal-body{gap:12px}.settings-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:0}.settings-nav-button{min-height:34px;font-size:12px;padding:8px}.settings-content{gap:12px}}@media(max-width:340px)and (max-height:600px){.settings-drawer-backdrop{padding:6px}.settings-drawer{width:min(100vw - 12px,920px);max-height:calc(100dvh - 12px);padding:8px;gap:8px}.settings-drawer-header h2{font-size:18px}.settings-drawer-header button{padding:4px 8px}.settings-modal-body{gap:8px}.settings-nav{gap:4px}.settings-nav-button{min-height:30px;font-size:11px;padding:6px}.settings-content{gap:8px}.settings-section{padding:8px;gap:6px}.settings-section h3{font-size:14px}.settings-section label{gap:2px;font-size:12px}.settings-section input,.settings-section select{height:30px;padding:0 8px;font-size:12px}.settings-inline-actions{gap:6px}.settings-inline-actions span,.settings-inline-actions button{font-size:12px}.settings-inline-actions button{padding:5px 8px}}@media(max-height:420px){.settings-drawer-backdrop{padding:8px}.settings-drawer{width:min(100vw - 16px,920px);max-height:calc(100dvh - 16px);padding:10px;gap:10px}.settings-drawer-header h2{font-size:18px}.settings-drawer-header button{padding:5px 10px}.settings-modal-body{gap:10px}.settings-content{gap:10px;padding-right:2px}.settings-section{padding:8px;gap:6px}.settings-section h3{font-size:14px}.settings-section label{gap:3px;font-size:12px}.settings-section input,.settings-section select{height:30px;padding:0 8px}.settings-inline-actions{gap:6px}.settings-inline-actions button{padding:5px 8px}}@media(max-height:420px)and (min-width:701px){.settings-drawer{padding:8px;gap:8px}.settings-drawer-header h2{font-size:16px}.settings-drawer-header button{padding:4px 8px}.settings-modal-body{grid-template-columns:152px minmax(0,1fr);gap:8px}.settings-nav{flex-direction:column;overflow:auto;padding:0 2px 0 0}.settings-nav-button{min-height:30px;white-space:normal;text-align:left;line-height:1.2;padding:6px 8px;font-size:12px}.settings-content>.settings-section-general{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;align-content:start}.settings-content>.settings-section-general>h3,.settings-content>.settings-section-general>.settings-inline-actions,.settings-content>.settings-section-general>label:nth-of-type(5){grid-column:1 / -1}}
