.chrome-studio{max-width:1180px;margin:auto}.chrome-stage{position:relative;aspect-ratio:16/9;min-height:300px;background:#09090d;border-radius:22px;overflow:hidden}.chrome-stage canvas{display:block;width:100%;height:100%;touch-action:pan-y;cursor:grab}.chrome-stage canvas:active{cursor:grabbing}.chrome-stage-label{position:absolute;left:26px;top:24px;font:10px/1.5 ui-monospace,monospace;letter-spacing:.18em;color:#70627c;pointer-events:none}#chrome-loading,.chrome-error{position:absolute;inset:0;display:grid;place-content:center;padding:24px;text-align:center;color:#40344f}.chrome-view-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 20px;font-size:12px}.chrome-view-controls>div{display:flex;gap:8px}.chrome-view-controls button{min-width:44px;min-height:44px}
#chrome-controls{margin:0;padding:24px;border:1px solid var(--glass-border);border-radius:22px;background:var(--glass-face)}.chrome-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.chrome-presets{display:flex;gap:8px;margin-bottom:22px}.chrome-presets button{min-height:44px;padding:8px 24px}.chrome-presets button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.chrome-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 100px;gap:24px}.chrome-fields label{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin-bottom:12px}.chrome-fields input[type=range]{width:100%;margin:0}.chrome-fields input[type=color]{width:100%;height:32px;padding:3px;border-radius:8px}.chrome-toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:24px}.chrome-toolbar label{display:flex;gap:8px;align-items:center;min-height:44px;font-size:13px}.chrome-toolbar input{width:18px;height:18px}.chrome-toolbar button{min-height:44px;font-size:13px}.chrome-note{font-size:12px;color:var(--muted)}.chrome-prompt{margin-top:36px}.chrome-prompt h2{font-size:18px;font-weight:500}.chrome-prompt pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9;padding:24px}#chrome-saved{margin-top:24px}#chrome-saved img{width:100%;border-radius:18px}#chrome-download{text-decoration:underline;text-underline-offset:5px}
@media(max-width:760px){.chrome-stage{aspect-ratio:4/3;min-height:0}.chrome-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.chrome-stage-label{top:18px;left:18px;font-size:9px}#chrome-controls{padding:18px}.chrome-presets button{flex:1;padding:8px}.chrome-toolbar{gap:8px}.chrome-view-controls>span{max-width:220px}}

.chrome-stage:not([data-background=light]) .chrome-stage-label{color:#b8adca}.chrome-stage:not([data-background=light]) #chrome-loading,.chrome-stage:not([data-background=light]) .chrome-error{color:#e8e1f0}

.chrome-custom{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;margin-bottom:24px}.chrome-custom label{display:block;font-size:13px;margin-bottom:10px}.chrome-custom input,.chrome-custom select{box-sizing:border-box;width:100%;min-height:46px;padding:10px 14px;border:1px solid var(--glass-border);border-radius:12px;background:var(--glass-face);color:var(--ink);font:inherit}.chrome-custom input[aria-invalid=true]{border-color:#a04438}.chrome-custom .chrome-note{margin:8px 0 0;line-height:1.6}@media(max-width:760px){.chrome-custom{grid-template-columns:1fr;gap:16px}}

.chrome-flow{display:grid;grid-template-columns:1fr 2fr;gap:24px;align-items:center;margin-top:24px;padding-top:20px;border-top:1px solid var(--glass-border)}.chrome-flow label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;min-height:30px}.chrome-flow>label{justify-content:flex-start}.chrome-flow input[type=checkbox]{width:18px;height:18px}.chrome-flow input[type=range]{width:100%;margin:8px 0 0}@media(max-width:760px){.chrome-flow{grid-template-columns:1fr;gap:8px}}
