.page-shell-wide{padding-top:18px;padding-bottom:48px}.editor-intro{justify-content:space-between;align-items:center;gap:48px;padding:2px 0 12px;display:flex}.editor-intro>div{max-width:720px}.editor-intro h1{letter-spacing:0;margin:0 0 6px;font-size:clamp(2.15rem,2.7vw,3rem);line-height:1}.editor-intro p:last-child{max-width:680px;color:var(--page-text-muted);margin:0;font-size:.88rem;line-height:1.45}.product-handoff{flex:0 0 min(260px,100%);justify-items:stretch;gap:7px;display:grid}.product-handoff output{max-width:260px;color:var(--page-text-muted);font-size:.78rem;line-height:1.45}.product-handoff output[data-state=error]{color:var(--page-danger)}.product-action,.editor-actions button,.model-menu summary,.model-actions button,.ai-composer button{min-height:var(--control-height);border:1px solid var(--page-border-strong);border-radius:var(--radius-control);background:var(--page-surface);color:var(--page-text);font:inherit;white-space:nowrap;cursor:pointer;justify-content:center;align-items:center;padding:0 14px;font-weight:700;text-decoration:none;display:inline-flex}.phys-editor{border:1px solid var(--page-border);background:var(--page-surface);border-radius:7px;grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(520px,1.08fr) minmax(500px,1fr);align-items:stretch;gap:0;margin-top:8px;display:grid;overflow:hidden;box-shadow:0 18px 54px #11151412}@media (width>=1041px){.phys-editor{height:clamp(520px,100dvh - 166px,920px)}}.editor-pane,.preview-pane{min-width:0}.editor-pane{border-right:1px solid var(--page-border);grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:8px;min-height:0;padding:14px;display:grid;overflow:hidden}.workspace-toolbar,.editor-actions,.model-actions{justify-content:space-between;align-items:center;gap:10px;display:flex}.workspace-toolbar{z-index:10;box-sizing:border-box;border-bottom:1px solid var(--page-border);background:var(--page-surface);grid-column:1/-1;grid-template-columns:minmax(280px,420px) auto auto;justify-content:start;align-items:center;gap:8px;min-width:0;min-height:58px;padding:8px 14px;display:grid;position:relative}.workspace-export-slot{justify-content:flex-start;align-items:center;min-width:0;display:flex}.workspace-export-slot .phys-toolbar{justify-content:flex-start;align-items:center;gap:8px;width:auto;min-height:42px;margin:0}.workspace-export-slot .phys-export-menu summary{border-color:var(--page-border);background:var(--page-surface);min-height:42px;color:var(--page-text);border-radius:6px}.workspace-export-slot .phys-export-menu[open] summary{border-color:var(--page-accent);background:var(--page-surface);color:var(--page-text)}.workspace-toolbar label,.source-field,.ai-composer label{gap:7px;display:grid}.workspace-toolbar select{appearance:none;width:100%;min-height:44px;color:var(--page-text);font:inherit;text-overflow:ellipsis;cursor:pointer;background:0 0;border:0;outline:0;padding:0 40px 0 35px;font-weight:700}.workspace-toolbar select:focus-visible{outline:0}.example-picker{min-width:0}.example-picker-control{border:1px solid var(--page-border);background:var(--page-surface);border-radius:7px;align-items:center;min-width:0;transition:border-color .14s,box-shadow .14s;display:flex;position:relative;box-shadow:0 1px 2px #1115140d}.example-picker-control:hover{border-color:var(--page-border-strong)}.example-picker-control:focus-within{border-color:var(--page-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--page-accent) 16%, transparent)}.example-picker-indicator{background:var(--page-accent);width:8px;height:8px;box-shadow:0 0 0 4px color-mix(in srgb, var(--page-accent) 12%, transparent);pointer-events:none;border-radius:50%;position:absolute;left:14px}.example-picker-chevron{border-right:1.5px solid var(--page-text-muted);border-bottom:1.5px solid var(--page-text-muted);pointer-events:none;width:8px;height:8px;position:absolute;right:15px;transform:translateY(-2px)rotate(45deg)}.source-heading>span{color:var(--page-text-muted);font-size:.78rem;font-weight:700}.example-picker-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.editor-actions button{min-height:32px;color:var(--page-text-muted);background:0 0;border-color:#0000;padding-inline:8px;font-size:.8rem}.editor-actions button:hover{background:var(--page-surface-muted);color:var(--page-text)}.model-actions{justify-content:flex-end;gap:4px}.model-menu{position:relative}.model-menu summary{box-sizing:border-box;border-color:var(--page-border);background:var(--page-surface);min-width:0;min-height:42px;color:var(--page-text-muted);cursor:pointer;border-radius:6px;padding-inline:12px;list-style:none}.model-menu summary::-webkit-details-marker{display:none}.model-menu summary:after{content:"⌄";color:var(--page-text-muted);margin-left:7px}.model-menu[open] summary{border-color:var(--page-accent);background:var(--page-surface);color:var(--page-text)}.model-menu-popover{z-index:20;border:1px solid var(--page-border);background:var(--page-surface);border-radius:7px;gap:4px;min-width:176px;padding:6px;display:grid;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 14px 34px #11151429}.model-menu-popover button{border-color:#0000;border-radius:5px;justify-content:flex-start;width:100%}.model-menu-popover button:hover{background:var(--page-surface-muted)}.model-actions button{min-height:38px;padding-inline:11px;font-size:.8rem}.model-action-status{justify-content:flex-end;align-items:center;gap:12px;min-height:0;display:flex}.model-action-status output{color:var(--page-accent);text-align:right;font-size:.8rem;font-weight:700}.model-action-status output:empty{display:none}.model-action-status output[data-state=error]{color:var(--page-danger)}.source-heading{justify-content:space-between;align-items:center;gap:16px;min-height:34px;padding-top:2px;display:flex}.editor-first-step{border-left:3px solid var(--page-accent);background:var(--page-surface-muted);min-width:0;min-height:34px;color:var(--page-text-muted);border-radius:0 5px 5px 0;align-items:center;gap:10px;padding:7px 10px;font-size:.8rem;line-height:1.35;display:flex}.editor-first-step[hidden]{display:none}.editor-first-step strong{color:var(--page-accent);flex:none}.editor-first-step span{min-width:0}.ai-handoff{border-top:1px solid var(--page-border);margin-top:0;padding:0}.ai-handoff-heading{min-height:42px;color:var(--page-text);cursor:pointer;align-items:center;gap:10px;list-style:none;display:flex}.ai-handoff-heading::-webkit-details-marker{display:none}.ai-handoff-heading strong{font-size:.88rem}.ai-handoff-heading:after{content:"+";color:var(--page-text-muted);margin-left:auto;font-size:1rem}.ai-handoff[open] .ai-handoff-heading:after{content:"−"}.ai-handoff-body{gap:9px;padding:0 0 12px;display:grid}.ai-handoff-body>p{color:var(--page-text-muted);margin:0;font-size:.76rem;line-height:1.4}.ai-mark{background:var(--page-text);width:30px;height:24px;color:var(--page-surface);letter-spacing:.04em;border-radius:5px;flex:none;place-items:center;font:800 .7rem/1 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;display:inline-grid}.ai-composer{grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:8px;display:grid}.ai-composer textarea{box-sizing:border-box;resize:none;border:1px solid var(--page-border);background:var(--page-surface-muted);height:100%;min-height:58px;color:var(--page-text);font:inherit;border-radius:6px;padding:10px 12px}.ai-composer button{background:var(--page-text);min-height:58px;color:var(--page-surface);border-radius:6px}.ai-handoff-body>output{min-height:0;color:var(--page-accent);text-align:right;font-size:.78rem;font-weight:700}.ai-handoff-body>output:empty{display:none}.ai-handoff-body>output[data-state=error]{color:var(--page-danger)}.source-field{--phys-code-editor-min-height:0px;--phys-editor-background:#111514;--phys-editor-gutter:#1a201e;--phys-editor-text:#eef3f1;--phys-editor-border:#303936;--phys-editor-caret:#fff;--phys-editor-keyword:#86afff;--phys-editor-identifier:#f0c987;--phys-editor-property:#6ec8e8;--phys-editor-enum:#73d5a1;--phys-editor-symbol:#d7b6ff;--phys-editor-quantity:#ff9f8d;--phys-editor-value:#ff9f8d;--phys-editor-string:#e8c983;--phys-editor-color:#f4d35e;--phys-editor-muted:#87928e;--phys-editor-active-line:#86afff14;--phys-editor-selection:#86afff3d;min-height:0;overflow:hidden}.source-field-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.source-field textarea{height:100%;min-height:var(--phys-code-editor-min-height);resize:vertical;border:1px solid var(--page-border-strong);color:#eef3f1;tab-size:2;background:#111514;border-radius:6px;padding:16px;font:.9rem/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;display:none}.source-field textarea:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.source-highlight-fallback pre{box-sizing:border-box;border:1px solid var(--phys-editor-border);tab-size:2;border-radius:6px;height:100%;min-height:0;margin:0;padding:16px;font:.9rem/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;overflow:auto;background:var(--phys-editor-background)!important;color:var(--phys-editor-text)!important}.source-highlight-fallback{--astro-code-foreground:var(--phys-editor-text);--astro-code-background:var(--phys-editor-background);--astro-code-token-constant:var(--phys-editor-value);--astro-code-token-string:var(--phys-editor-string);--astro-code-token-comment:var(--phys-editor-muted);--astro-code-token-keyword:var(--phys-editor-keyword);--astro-code-token-parameter:var(--phys-editor-identifier);--astro-code-token-function:var(--phys-editor-property);--astro-code-token-string-expression:var(--phys-editor-string);--astro-code-token-punctuation:var(--phys-editor-muted);height:100%;min-height:0}.source-highlight-fallback pre code{display:block}.source-field .phys-code-editor-host,.source-field .cm-editor,.source-field .cm-scroller{height:100%;min-height:0}html[data-studio-restore-pending=true] .source-highlight-fallback code,html[data-studio-restore-pending=true] [data-editor-preview],.phys-editor[data-preview-pending=true] [data-editor-preview]{visibility:hidden}.preview-pane{background:var(--page-surface-muted);border:0;border-radius:0;flex-direction:column;height:100%;min-height:0;display:flex;position:relative;overflow:auto}.preview-pane>[data-editor-preview]{flex:1;min-height:0;transition:opacity .12s}.preview-view{border-bottom:1px solid var(--page-border);color:var(--page-text-muted);flex:none;align-items:center;gap:4px;padding:4px 14px;font-size:.78rem;display:flex}.preview-view>span{flex:1}.preview-view button{min-width:44px;height:44px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:4px;place-items:center;padding:0 6px;display:grid}.preview-view button:hover,.preview-view button[aria-pressed=true]{background:var(--page-surface);color:var(--page-accent)}.preview-view button:disabled{opacity:.4;cursor:default}.preview-view svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}@media screen{.preview-pane .phys-viewport[data-preview-zoomed]{overscroll-behavior:contain;display:block;overflow:auto}.preview-pane .phys-viewport[data-preview-zoomed]>svg{width:var(--preview-width);max-width:none;height:var(--preview-height);margin-inline:auto;display:block}}@media print{.preview-view{display:none}}.phys-editor[aria-busy=true] [data-editor-preview]{opacity:0}.preview-transition{z-index:5;background:color-mix(in srgb, var(--page-surface) 96%, transparent);color:var(--page-text-muted);place-content:center;justify-items:center;gap:12px;font-size:.86rem;display:none;position:absolute;inset:0}.phys-editor[aria-busy=true] .preview-transition{display:grid}.preview-transition-spinner{box-sizing:border-box;border:2px solid var(--page-border);border-top-color:var(--page-accent);border-radius:50%;width:24px;height:24px;animation:.7s linear infinite studio-preview-spin}@keyframes studio-preview-spin{to{transform:rotate(360deg)}}.preview-status{display:none}.preview-status[data-preview-kind=error]{border:1px solid var(--page-danger);border-radius:var(--radius-control);color:var(--page-danger);margin:12px 14px 0;padding:9px 11px;font-size:.78rem;font-weight:700;display:block}.preview-pane .phys-diagram{box-sizing:border-box;grid-template-rows:minmax(0,1fr) auto;height:100%;min-height:0;margin:0;padding:12px 14px 14px;display:grid}.preview-pane .phys-viewport{background:var(--page-surface);place-items:center;min-height:0;display:grid;overflow:hidden}.preview-pane .phys-viewport svg{width:100%;height:100%}.preview-pane .phys-viewport svg>rect:first-of-type{fill:var(--page-surface)!important;stroke:#0000!important}.preview-pane .phys-viewport svg>rect:first-of-type+path[data-phys-sketch-ink],.preview-pane .phys-viewport svg>rect:first-of-type+path[data-phys-sketch-ink]+path[data-phys-sketch-ink]{stroke:#0000!important}.preview-pane .phys-description{display:none}.preview-pane .phys-controls{box-sizing:border-box;grid-template-columns:auto minmax(0,1fr);align-content:start;min-height:58px}.preview-pane .phys-readout{grid-column:1/-1;grid-template-columns:repeat(auto-fit,minmax(min(8rem,100%),1fr));min-height:46px;display:grid;overflow:hidden}.preview-pane .phys-readout-item{min-height:46px;padding-block:4px}.preview-pane .phys-scale-note,.preview-pane .phys-time-scale-note{display:none}.preview-pane .phys-controls-static{border-top:1px solid var(--page-border);align-items:center;min-height:58px;display:flex}.preview-pane .phys-static-mode{color:var(--page-text-muted);font-size:.86rem;font-weight:700}@media (width<=1040px){.page-shell-wide{padding-top:28px}.editor-intro{flex-direction:column;align-items:start}.phys-editor{grid-template-rows:auto;grid-template-columns:1fr;height:auto}.workspace-toolbar{grid-template-columns:minmax(240px,1fr) auto auto}.preview-pane{border-top:1px solid var(--page-border);border-bottom:1px solid var(--page-border);height:auto;overflow:visible}.preview-pane>[data-editor-preview],.preview-pane .phys-diagram{height:auto}.preview-pane .phys-diagram,.preview-pane .phys-viewport{display:block}.preview-pane .phys-viewport svg{height:auto}@media screen{.preview-pane .phys-viewport[data-preview-zoomed]{height:min(60dvh,560px)}}.editor-pane{border-right:0;display:grid;overflow:visible}.source-field textarea{min-height:430px}.source-field{--phys-code-editor-min-height:430px;min-height:430px}.preview-pane .phys-controls{grid-template-columns:auto minmax(0,1fr)}}@media (width<=480px){.workspace-toolbar{grid-template-columns:minmax(0,1fr) auto;align-items:stretch}.example-picker{grid-column:1/-1}.workspace-export-slot{grid-column:2;justify-content:flex-start}.model-actions{justify-content:stretch;display:flex}.model-menu{flex:1}.model-menu summary{width:100%}.editor-actions{justify-content:stretch}.source-heading{flex-direction:column;align-items:stretch}.editor-actions button{flex:1}.ai-composer{grid-template-columns:1fr}.ai-composer button{min-height:44px}.preview-pane .phys-controls{grid-template-columns:auto minmax(0,1fr)}.preview-pane .phys-readout{grid-column:1/-1}}
