:root{--ink:#202a35;--muted:#78828d;--line:#e5e9ed;--soft:#f6f8f9;--paper:#fff;--accent:#365f58;--accent-dark:#294d47;--shadow:0 8px 28px rgba(26,39,52,.045)}*{box-sizing:border-box}body{margin:0;background:#f7f8f8;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px}.studio-shell{max-width:1600px;margin:0 auto;padding:0 36px}.topbar{height:72px;border-bottom:1px solid var(--line);gap:24px}.brand,.topbar{display:flex;align-items:center}.brand{gap:10px;text-decoration:none;color:var(--ink);font-size:17px;font-weight:800;letter-spacing:-.6px}.brand-light{font-weight:500;color:#748078}.brand-mark{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#e7efeb;color:#31594f;font-size:16px}.topbar-center{margin-left:auto;color:#77827c;font-size:12px;display:flex;align-items:center;gap:8px}.status-dot{width:7px;height:7px;background:#7ca28b;border-radius:50%}.topbar-actions{display:flex;gap:8px}.button{border:1px solid #dfe4e7;background:white;border-radius:7px;padding:9px 13px;color:#3d4852;font:600 12px Inter,sans-serif;cursor:pointer}.button:hover,.small-action:hover{border-color:#aebbb5}.button:disabled,.small-action:disabled,.snippet-toolbar button:disabled,.text-button:disabled{opacity:.45;cursor:not-allowed}.button-primary{background:var(--accent);border-color:var(--accent);color:white}.button-primary:hover{background:var(--accent-dark)}.button-quiet{background:transparent}.danger-button{color:#a15a52}.workspace-heading{display:flex;justify-content:space-between;align-items:flex-end;padding:34px 0 26px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#78867e;font-weight:700;margin:0 0 10px}.workspace-heading h1{font-size:27px;font-weight:750;letter-spacing:-1.1px;margin:0 0 8px}.subheading{color:#7b858e;margin:0;font-size:13px}.heading-controls{display:flex;align-items:center;gap:14px}.title-input{border:1px solid var(--line);border-radius:6px;padding:9px 11px;font:500 12px Inter,sans-serif;width:210px;background:white;color:#59636d}.text-button{background:none;border:0;color:#48665c;font:600 12px Inter,sans-serif;cursor:pointer;padding:8px}.help-panel{display:flex;gap:26px;align-items:flex-start;padding:17px 20px;background:#edf3ef;border:1px solid #dce7df;border-radius:9px;margin-bottom:18px}.help-panel>div{flex:1 1}.help-panel strong{font-size:12px}.help-panel p{font-size:11px;color:#64736a;line-height:1.6;margin:6px 0 0}.help-panel code{background:white;padding:3px 5px;border-radius:4px;color:#345c50;font-size:11px}.document-manager{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;margin-bottom:8px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow)}.document-actions,.document-picker-group{display:flex;align-items:center;gap:10px}.document-select{width:min(310px,38vw);border:1px solid #dfe5e7;background:#fbfcfc;color:#35434a;border-radius:6px;padding:9px 11px;font:500 12px Inter,sans-serif;min-width:160px}.document-count{font-size:10px;color:#87928d;white-space:nowrap}.document-actions{gap:7px}.section-label{font-size:10px;letter-spacing:1px;font-weight:700;color:#89929a;margin-right:4px;white-space:nowrap}.template-row{display:flex;align-items:center;gap:8px;padding:12px 0 15px}.template-row button:not(.text-button){border:1px solid #e0e5e8;background:#fff;border-radius:20px;padding:7px 12px;font:500 11px Inter,sans-serif;color:#59646d;cursor:pointer}.template-row button:not(.text-button):hover{border-color:#9eb2a8;color:#31594f}.template-spacer{flex:1 1}.editor-layout{display:grid;grid-template-columns:minmax(380px,.88fr) minmax(480px,1.12fr);grid-gap:16px;gap:16px;min-height:610px}.panel{background:white;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;min-width:0}.panel-header{height:57px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid #edf0f2;flex-shrink:0}.panel-title{font-size:12px;font-weight:700;color:#35414b}.panel-caption{font-size:10px;color:#929ba2;margin-left:10px}.small-action{border:1px solid #e1e6e9;border-radius:5px;background:#fff;padding:6px 9px;color:#65717a;font:500 10px Inter,sans-serif;cursor:pointer}.snippet-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:10px 13px;border-bottom:1px solid #f0f2f3}.snippet-toolbar button{border:1px solid #e5e9eb;background:#f9fafb;border-radius:4px;padding:5px 7px;color:#65717a;font:500 10px Inter,sans-serif;cursor:pointer}.snippet-toolbar button:hover{background:#edf3ef;color:#365f58}.monaco-wrap{height:490px;min-height:300px}.editor-loading{height:100%;display:grid;place-items:center;color:#87918b}.editor-footer{margin-top:auto;height:36px;border-top:1px solid #edf0f2;padding:0 14px;display:flex;align-items:center;justify-content:space-between;color:#939da4;font-size:10px}.preview-header{gap:12px}.preview-tools{display:flex;align-items:center;gap:6px}.export-inline select,.preview-tools select{border:1px solid #e1e6e9;border-radius:5px;padding:6px 8px;color:#59656d;background:white;font:500 10px Inter,sans-serif}.zoom-button{width:25px;height:25px;border:1px solid #e5e9eb;background:white;border-radius:5px;color:#69757c;cursor:pointer}.zoom-label{font-size:10px;color:#758089;min-width:31px;text-align:center}.preview-canvas{position:relative;flex:1 1;min-height:490px;overflow:auto;align-items:flex-start;padding:30px 22px}.diagram-output,.preview-canvas{display:flex;justify-content:center}.diagram-output{transform-origin:top center;min-width:100%;transition:transform .12s ease}.diagram-output svg{max-width:none;height:auto;overflow:visible}.empty-preview{align-self:center;text-align:center;color:#738078}.empty-mark{width:38px;height:38px;border-radius:50%;background:#edf2ee;display:grid;place-items:center;margin:0 auto 13px;font-size:20px;color:#567366}.empty-preview strong{font-size:13px}.empty-preview p{font-size:11px;color:#929b9f}.preview-footer{height:48px;border-top:1px solid #edf0f2;display:flex;align-items:center;justify-content:space-between;padding:0 14px;flex-shrink:0}.error-message,.success-message{font-size:10px;color:#72917c}.error-message{color:#b46b5c;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.export-inline{display:flex;align-items:center;gap:8px;color:#8a949b;font-size:10px}.button-small{padding:7px 10px;font-size:10px}.bottom-notes{margin:22px 0 25px;border:1px solid #e4e9e6;background:#f1f5f2;border-radius:9px;padding:17px 20px;display:flex;justify-content:space-between;gap:30px}.bottom-notes strong{font-size:12px;color:#40584e}.bottom-notes p{font-size:11px;color:#78857d;margin:5px 0 0;line-height:1.5}.bottom-note-right{text-align:right}.bottom-note-right span{font-size:9px;letter-spacing:1.1px;color:#789084;font-weight:700}.app-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:16px 0 22px;color:#9aa2a8;font-size:10px}@media(max-width:1000px){.studio-shell{padding:0 20px}.editor-layout{grid-template-columns:1fr}.monaco-wrap{height:400px}.preview-canvas{min-height:430px}.workspace-heading{align-items:flex-start;gap:20px;flex-direction:column}.heading-controls{width:100%;justify-content:space-between}.topbar-center{display:none}.topbar-actions{margin-left:auto}.help-panel{flex-wrap:wrap}.document-manager{align-items:flex-start;flex-direction:column}.document-picker-group{width:100%;flex-wrap:wrap}.document-actions{width:100%}}@media(max-width:600px){.studio-shell{padding:0 12px}.topbar{height:auto;min-height:64px;flex-wrap:wrap;padding:12px 0;gap:10px}.brand{font-size:15px}.topbar-actions{width:100%;margin:0}.topbar-actions .button{flex:1 1;padding:8px 5px;font-size:10px}.workspace-heading h1{font-size:22px}.subheading{line-height:1.6}.template-row{flex-wrap:wrap}.template-row>.section-label{width:100%}.editor-layout{min-height:0}.panel-caption{display:block;margin:4px 0 0}.panel-header{height:64px}.preview-tools{gap:3px}.preview-tools select{max-width:86px}.preview-canvas{min-height:350px;padding:20px 12px}.monaco-wrap{height:370px}.bottom-notes{flex-direction:column}.bottom-note-right{text-align:left}.app-footer{gap:12px;flex-direction:column}.help-panel{gap:15px}.help-panel>div{min-width:40%}.heading-controls{gap:6px}.title-input{width:170px}.document-select{width:100%;flex:1 1}.document-count{width:100%}.document-actions .button{flex:1 1;padding:8px 7px;font-size:11px}.document-picker-group{gap:8px}}