/* Captured Flow host adaptation; uses existing locally bundled fonts. */
@font-face{font-family:'Google Sans Text';src:url('./fonts/google-sans-text-regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Google Sans Text';src:url('./fonts/google-sans-text-medium.woff2') format('woff2');font-weight:500;font-display:swap}
:root{--flow-text-secondary:rgba(218,220,224,.75);--flow-surface:rgba(22,23,24,.96);--flow-control:rgba(218,220,224,.10)}
body{font-family:'Google Sans Text',Arial,sans-serif;font-size:13px}
.recording-status{display:inline-flex;align-items:center;font-size:11px;color:rgb(218 220 224 / 75%);max-width:100%}
footer .recording-action,footer .recording-download{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid rgb(218 220 224 / 14%);border-radius:12px;background:rgb(218 220 224 / 10%);color:#fff;font:500 12px/16px 'Google Sans Text',Arial,sans-serif;white-space:nowrap;text-decoration:none;flex-shrink:0}
footer .recording-download:hover,footer .recording-action:hover{background:rgb(218 220 224 / 18%)}
footer .recording-download:focus-visible{outline:2px solid #007aff;outline-offset:3px}
footer .recording-action:disabled{opacity:.4;cursor:wait}
[hidden]{display:none!important}
aside{inset:16px auto auto 16px;width:284px;max-height:calc(100dvh - 104px);border:0;border-radius:16px;background:var(--flow-surface);scrollbar-width:thin}
aside header{padding:16px 16px 12px;border:0}aside h1{font-size:18px;font-weight:500}aside header p{display:none}
aside details{border-top:1px solid #ffffff12}aside summary{min-height:44px;cursor:pointer;padding:12px 16px;font-size:13px;font-weight:500;color:#eee}aside details[open]>summary{padding-bottom:8px}
aside section{padding:0 16px 12px;border:0}aside section h2{display:none}aside section .hint{font-size:11px;line-height:1.45;margin:6px 0;color:var(--flow-text-secondary)}
aside label{min-height:32px;gap:8px;font-size:12px;color:var(--flow-text-secondary);margin:0}
/* Colour pickers: one label column so the Front and Rear swatches line up. */
aside label:has(> input[type=color]){display:grid;grid-template-columns:72px 56px;justify-content:start}aside input[type=color]{width:56px;height:28px;padding:0;border:1px solid #ffffff24;border-radius:8px;background:none;cursor:pointer}
/* Timeline: the whole 44 px row is the hit area, like the buttons beside it. */
footer #phase{height:44px;margin:0;cursor:pointer}
aside .hint{text-wrap:pretty}
/* Saved presets: name field and its actions share the select's geometry. */
aside .preset-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin:0 0 6px}aside .preset-row:has(#preset-rename){grid-template-columns:1fr 1fr}
aside input[type=text]{min-height:32px;min-width:0;border:0;border-radius:12px;background:var(--flow-control);color:#fff;font:12px 'Google Sans Text',Arial,sans-serif;padding:6px 10px}
aside input[type=text]::placeholder{color:var(--flow-text-secondary)}aside #preset-status:empty{display:none}
aside select,aside button{min-height:32px;border:0;border-radius:12px;background:var(--flow-control);font-size:12px;padding:6px 10px}
aside select{margin-bottom:6px}aside input[type=range]{display:block;width:100%;height:24px;margin:0 0 6px;cursor:pointer;accent-color:#dadce0}
aside input[type=checkbox]{margin:0;accent-color:#dadce0}aside output{margin-left:auto;font:11px 'Google Sans Text',Arial,sans-serif;color:#fff;font-variant-numeric:tabular-nums}
aside .slider-label{display:flex;justify-content:space-between;min-height:24px}aside .advanced{margin-top:8px}aside .advanced summary{padding:10px 0;color:var(--flow-text-secondary)}aside .advanced .hint{overflow-wrap:anywhere}
aside .toggles{display:grid;grid-template-columns:1fr 1fr;gap:0 8px}aside .toggles label{min-height:36px}aside .camera-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}aside .camera-row select{margin:0}
#stage{margin-left:316px;width:calc(100% - 316px);height:calc(100dvh - 76px)}footer{min-height:76px;padding:12px 20px;background:#0c0c0c}footer #play{background:#eee;color:#121317;border-color:transparent}footer button,footer select{font-size:13px;border-radius:12px}#metrics{font-size:10px;color:#666}
summary:focus-visible{outline:2px solid #8ab4f8;outline-offset:-2px;border-radius:8px}
/* Phone: the scene and the playback bar come first (DOM order), the controls follow in the page's own scroll. */
@media(max-width:700px){aside{position:relative;inset:auto;width:calc(100% - 24px);margin:12px;max-height:none;overflow:visible;display:block}aside header{width:auto}aside section{min-width:0}#stage{margin:0;width:100%;height:52dvh}footer{padding:10px;gap:8px}footer output{font-size:11px}}
.comparison-embed aside,.comparison-embed footer,.comparison-embed #metrics{display:none}.comparison-embed #stage{margin:0;width:100%;height:100dvh}
html.scene-dragging,html.scene-dragging *{cursor:none!important}
#stage canvas{cursor:none}
