.bubble-page { --bb-ink:#f3f7fb; --bb-muted:#bdcbd6; --bb-panel:#18252e; --bb-field:#223540; --bb-border:#3a535d; --bb-accent:#b2ffe2; }
.bubble-intro { margin:10px 0 24px; }
.bubble-intro h1 { font-size:clamp(2.2rem,5.7vw,4.1rem); letter-spacing:-.06em; line-height:1.04; margin:0; }
.bubble-intro p { color:var(--muted); margin:11px 0 0; max-width:68ch; }
.bubble-studio { color:var(--bb-ink); background:var(--bb-panel); border:1px solid var(--bb-border); border-radius:18px; overflow:hidden; margin-bottom:24px; color-scheme:dark; }
.bubble-studio :focus-visible { outline:2px solid var(--bb-accent); outline-offset:3px; }
.bubble-toolbar,.bubble-actions { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.bubble-toolbar { padding:11px 14px; justify-content:space-between; border-bottom:1px solid var(--bb-border); }
.bubble-studio button,.bubble-studio select { min-height:38px; padding:7px 10px; border-radius:8px; background:var(--bb-field); border:1px solid var(--bb-border); color:inherit; font:inherit; font-size:.875rem; cursor:pointer; }
.bubble-studio button:hover { filter:brightness(1.14); }
.bubble-studio .bubble-primary,.bubble-actions button[data-bubble-tool][aria-pressed=true],.bubble-pick button[aria-pressed=true] { background:var(--bb-accent); color:#13362c; border-color:var(--bb-accent); font-weight:700; }
.bubble-studio [data-play-area-record][aria-pressed=true] { color:#ffd3cb; border-color:#ff9d90; }
.bubble-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(225px,260px); }
.bubble-workbench,.bubble-settings { min-width:0; }
.bubble-workbench { display:flex; flex-direction:column; background:#0f1a24; }
.bubble-stage { display:grid; place-items:center; flex:1; padding:clamp(8px,1.2vw,15px); }
.bubble-stage canvas { display:block; width:100%; height:auto; min-width:0; aspect-ratio:1200/690; background:#102632; border-radius:8px; box-shadow:0 0 0 1px #46666b,0 10px 26px #0005; touch-action:none; cursor:crosshair; }
.bubble-status { display:flex; flex-wrap:wrap; gap:5px 12px; min-height:42px; padding:9px 14px; align-items:center; color:var(--bb-muted); font-size:.82rem; border-top:1px solid var(--bb-border); }
#bubbleCount { color:var(--bb-ink); }
.bubble-settings { display:grid; align-content:start; gap:9px; padding:14px; border-left:1px solid var(--bb-border); }
.bubble-settings h2 { font-size:1rem; margin:3px 0 0; }
.bubble-pick { display:flex; gap:6px; }
.bubble-pick button { flex:1; padding-inline:7px; }
.bubble-settings label { display:flex; justify-content:space-between; align-items:center; gap:6px; font-size:.84rem; color:var(--bb-muted); }
.bubble-settings .bubble-check { justify-content:flex-start; }
.bubble-settings input { accent-color:var(--bb-accent); }
.bubble-settings input[type=range] { width:100%; margin:0 0 4px; }
.bubble-studio:fullscreen { display:flex; flex-direction:column; margin:0; border-radius:0; overflow:auto; }
.bubble-studio:fullscreen canvas { width:min(100%,calc(83svh * 1.739)); }
@media(max-width:740px) {
    .bubble-layout { grid-template-columns:minmax(0,1fr); }
    .bubble-settings { border-left:0; border-top:1px solid var(--bb-border); }
}
@media(pointer:coarse) { .bubble-studio button { min-height:44px; } }
