html,body,#root{margin:0;padding:0;width:100%;height:100%;overflow:hidden;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f8fafc;color:#0f172a}*{box-sizing:border-box}.studio-shell{display:flex;flex-direction:column;width:100vw;height:100vh}.studio-topbar{height:48px;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px;background:#0f172a;color:#f8fafc;border-bottom:1px solid #1e293b;z-index:30}.studio-brand{display:flex;align-items:center;gap:10px;min-width:0}.studio-logo{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:14px;letter-spacing:-.01em;color:#fff;white-space:nowrap}.studio-logo-mark{width:22px;height:22px;border-radius:6px;background:linear-gradient(135deg,#3b82f6,#6366f1);display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}.studio-title-input{height:30px;width:240px;max-width:28vw;padding:0 10px;border-radius:6px;border:1px solid #334155;background:#1e293b;color:#f8fafc;font-size:13px;font-weight:500}.studio-title-input:focus{outline:none;border-color:#60a5fa}.studio-id-pill{font-size:11px;color:#94a3b8;background:#1e293b;border:1px solid #334155;padding:3px 8px;border-radius:999px;white-space:nowrap}.studio-actions{display:flex;align-items:center;gap:8px;position:relative}.studio-btn{height:30px;padding:0 11px;border-radius:6px;border:1px solid #334155;background:#1e293b;color:#e2e8f0;font-size:12px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.studio-btn:hover:not(:disabled){background:#334155;color:#fff}.studio-btn:disabled{opacity:.55;cursor:not-allowed}.studio-btn-primary{background:#2563eb;border-color:#3b82f6;color:#fff}.studio-btn-primary:hover:not(:disabled){background:#1d4ed8}.studio-btn-active{background:#0f766e;border-color:#14b8a6;color:#fff}.studio-canvas{flex:1 1 auto;width:100%;height:calc(100vh - 48px);position:relative}.studio-canvas.is-embed{height:100vh}.studio-dropdown{position:absolute;top:38px;right:0;width:280px;background:#fff;color:#0f172a;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 12px 28px #0f172a38;padding:6px;z-index:60}.studio-dropdown-item{width:100%;text-align:left;padding:8px 10px;border:none;background:transparent;border-radius:6px;cursor:pointer;color:#0f172a;display:flex;flex-direction:column;gap:2px}.studio-dropdown-item:hover{background:#f1f5f9}.studio-dropdown-item strong{font-size:12.5px;font-weight:600}.studio-dropdown-item span{font-size:11px;color:#64748b}.studio-drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;z-index:70;display:flex;justify-content:flex-start}.studio-drawer{width:400px;max-width:92vw;height:100%;background:#fff;color:#0f172a;display:flex;flex-direction:column;box-shadow:8px 0 30px #0f172a40}.studio-drawer-header{padding:14px 16px;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between}.studio-drawer-header h2{margin:0;font-size:15px}.studio-drawer-toolbar{padding:12px 16px;border-bottom:1px solid #e2e8f0;display:flex;gap:8px;flex-wrap:wrap}.studio-search{width:100%;height:34px;padding:0 10px;border:1px solid #cbd5e1;border-radius:6px;font-size:13px}.studio-drawer-list{flex:1 1 auto;overflow-y:auto;padding:12px 16px;display:flex;flex-direction:column;gap:10px}.studio-diagram-card{border:1px solid #e2e8f0;border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:8px;background:#f8fafc}.studio-diagram-card.is-current{border-color:#3b82f6;background:#eff6ff}.studio-diagram-meta{font-size:11.5px;color:#64748b}.studio-card-actions{display:flex;gap:6px;flex-wrap:wrap}.studio-btn-light{height:26px;padding:0 9px;border-radius:5px;border:1px solid #cbd5e1;background:#fff;color:#1e293b;font-size:11.5px;font-weight:500;cursor:pointer}.studio-btn-light:hover{background:#f1f5f9}.studio-btn-danger{color:#b91c1c;border-color:#fecaca}.studio-btn-danger:hover{background:#fef2f2}.studio-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;z-index:80;display:flex;align-items:center;justify-content:center;padding:16px}.studio-modal{width:680px;max-width:100%;max-height:90vh;background:#fff;color:#0f172a;border-radius:10px;box-shadow:0 20px 50px #0f172a4d;display:flex;flex-direction:column;overflow:hidden}.studio-modal-header{padding:14px 18px;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between}.studio-modal-header h3{margin:0;font-size:15px}.studio-modal-body{padding:16px 18px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.studio-textarea{width:100%;min-height:240px;padding:10px;border:1px solid #cbd5e1;border-radius:6px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;resize:vertical}.studio-toast{position:fixed;bottom:16px;right:16px;max-width:440px;padding:10px 14px;border-radius:8px;background:#0f172a;color:#f8fafc;font-size:12.5px;box-shadow:0 10px 24px #0f172a47;border:1px solid #334155;z-index:90;display:flex;align-items:center;gap:10px}.studio-toast.is-error{background:#7f1d1d;border-color:#ef4444}.studio-loading{width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;color:#334155;font-size:14px}
