:root{color-scheme:light;--navy:#15365a;--blue:#185abd;--pale:#eef4fc;--border:#dce5ef;--text:#24364b;--muted:#65758a}*{box-sizing:border-box}html,body{height:100%;margin:0;font:14px 'Segoe UI',Arial,sans-serif;color:var(--text);background:#f4f7fb}button,input,a{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #c77b10;outline-offset:2px}button{min-height:36px;border:1px solid var(--border);border-radius:7px;background:#fff;color:var(--navy);padding:7px 12px}button:hover{background:#eaf1fb;border-color:#a3bddf}button:active{background:#d8e7fb}button:disabled{opacity:.5;cursor:default}a{color:var(--blue);text-decoration:none}.studio-header{height:64px;background:#fff;display:flex;align-items:center;gap:14px;padding:0 20px;border-bottom:1px solid var(--border)}.studio-brand{display:flex;align-items:center;gap:9px;font-weight:750;white-space:nowrap;color:var(--navy)}.studio-logo{background:var(--blue);color:white;border-radius:9px;display:grid;place-items:center;width:38px;height:38px;font-size:13px}.studio-separator{height:30px;width:1px;background:var(--border)}.studio-heading{min-width:0;flex:1}.studio-heading h1{margin:0;font-size:18px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio-crumb{font-size:12px;margin-top:4px;color:var(--muted)}.studio-author{font-size:12px;color:var(--muted);text-align:right;line-height:1.5}.studio-ribbon{height:52px;display:flex;align-items:center;gap:8px;padding:8px 20px;background:#f9fbfe;border-bottom:1px solid var(--border)}.ribbon-sep{height:26px;border-left:1px solid var(--border);margin:0 4px}.view-tabs{display:flex;gap:3px;padding:3px;border:1px solid var(--border);border-radius:9px;background:#edf2f8}.view-tabs a{display:block;min-height:30px;line-height:30px;padding:0 14px;color:var(--muted);border-radius:6px;font-size:12px;font-weight:650}.view-tabs a.selected{background:white;color:var(--blue);box-shadow:0 1px 4px #17365a18}.ribbon-space{flex:1}.studio-workspace{height:calc(100dvh - 148px);position:relative;background:#f1f5fa;padding:10px}.studio-frame{width:100%;height:100%;border:1px solid var(--border);border-radius:10px;background:white;display:block}.studio-status{height:32px;display:flex;align-items:center;gap:12px;padding:0 20px;background:#fff;border-top:1px solid var(--border);font-size:11px;color:var(--muted)}.studio-status span:last-child{margin-left:auto}.status-dot{width:6px;height:6px;background:#185abd;border-radius:50%;display:inline-block;margin-right:6px}.drawer-backdrop{position:fixed;inset:116px 0 32px;background:#162f4f36;z-index:30;display:none}.studio-drawer{position:absolute;left:0;top:0;bottom:0;width:330px;background:#fff;box-shadow:10px 0 40px #18385f24;display:flex;flex-direction:column}.drawer-backdrop.open{display:block}.drawer-head{padding:16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.drawer-head strong{font-size:16px}.drawer-search{margin:12px 16px 8px;padding:10px 12px;min-height:42px;border:1px solid #bdcde0;border-radius:8px;width:calc(100% - 32px)}.drawer-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 16px 10px;font-size:11px;color:var(--muted)}.drawer-tools button{min-height:28px;font-size:11px;padding:4px 8px}.catalog-tree{padding:0 12px 20px;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;flex:1}.catalog-tree details{margin:3px 0}.catalog-tree summary{list-style:none;display:flex;gap:8px;align-items:center;cursor:pointer;border-radius:7px;padding:11px 8px;line-height:1.4;user-select:none;min-height:42px;font-weight:650}.catalog-tree summary::-webkit-details-marker{display:none}.catalog-tree summary:before{content:'›';color:#71839a;width:13px;flex-shrink:0;transition:transform .15s}.catalog-tree details[open]>summary:before{transform:rotate(90deg)}.catalog-tree summary:hover{background:#eef4fc}.catalog-tree details details{padding-left:14px}.catalog-tree details details>summary{font-weight:550;font-size:12px}.catalog-link{display:block;color:#435975;padding:10px 10px 10px 24px;line-height:1.45;font-size:12px;border-radius:7px;min-height:38px;margin:2px 0}.catalog-link:hover{background:#f0f5fb;color:var(--blue)}.catalog-link.active{background:#e5efff;color:#174f9f;border-left:3px solid var(--blue);font-weight:650}.catalog-group{font-size:10px;font-weight:750;color:#7b8a9d;letter-spacing:.06em;text-transform:uppercase;padding:16px 8px 4px}.catalog-empty{padding:20px 10px;color:var(--muted)}.studio-dialog{width:min(620px,92vw);max-height:85dvh;overflow:auto;border:1px solid var(--border);border-radius:14px;padding:24px;color:var(--text);line-height:1.65}.studio-dialog::backdrop{background:#15365a70}.studio-dialog h2{font-size:20px;margin:0 0 14px;color:var(--navy)}.studio-dialog .dialog-actions{display:flex;justify-content:flex-end;margin-top:20px}.dialog-warning{background:#fff6e2;border:1px solid #e5cb8e;padding:12px;border-radius:8px}.frame-loading{position:absolute;inset:10px;display:grid;place-items:center;background:#fff;color:var(--muted);border-radius:10px;pointer-events:none}.frame-loading[hidden]{display:none}@media(max-width:700px){.studio-header{height:72px;padding:8px 12px;gap:8px}.studio-brand>span:last-child,.studio-author,.studio-separator{display:none}.studio-heading h1{font-size:15px;white-space:normal;line-height:1.3;max-height:40px}.studio-crumb{font-size:10px}.studio-ribbon{height:92px;flex-wrap:wrap;gap:6px;padding:6px 10px;align-content:center}.studio-ribbon button{font-size:12px;padding:6px 9px}.ribbon-space,.ribbon-sep{display:none}.view-tabs a{padding:0 9px}.studio-workspace{height:calc(100dvh - 194px);padding:5px}.studio-status{height:30px;padding:0 10px;gap:5px;font-size:10px}.studio-status .status-long{display:none}.drawer-backdrop{top:164px;bottom:30px}.studio-drawer{width:min(340px,92vw)}.studio-frame{border-radius:7px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
