:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#090909;color:#ddd}*{box-sizing:border-box}body{margin:0}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible{outline:2px solid #b8d99c;outline-offset:4px}[hidden]{display:none!important}.preview-stage{min-height:100dvh;padding:28px 24px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}.preview-window{position:relative;width:min(100%,1560px);aspect-ratio:1990/1332;height:auto;max-height:calc(100dvh - 92px);min-height:400px;display:flex;flex-direction:column;border:1px solid #333;border-radius:12px;overflow:hidden;background:#151515;box-shadow:0 20px 64px #0008}.preview-titlebar{display:flex;align-items:center;position:absolute;inset:0 0 auto;height:56px;gap:12px;padding:0 14px;background:transparent;pointer-events:none;z-index:2;user-select:none}.traffic-lights{display:flex;align-items:center;gap:8px;z-index:1;pointer-events:auto}.traffic-lights button{width:12px;height:12px;padding:0;border:1px solid #0002;border-radius:50%;background:#ff5f57}.traffic-lights button:nth-child(2){background:#febc2e}.traffic-lights button:nth-child(3){background:#28c840}.preview-window iframe{width:100%;flex:1;min-height:0;border:0;background:#151515}.preview-window[data-state=expanded]{width:100%;height:calc(100dvh - 56px);max-width:none;max-height:none;aspect-ratio:auto}.preview-stage:has(.preview-window[data-state=expanded]){padding:8px}.preview-caption{font-size:12px;color:#999;text-align:center;margin:0}.preview-restore{display:flex;flex-direction:column;align-items:center;gap:16px;min-height:240px;justify-content:center}.preview-restore button{background:#222;border:1px solid #555;padding:10px 18px;border-radius:6px}@media(max-width:700px){.preview-stage{padding:8px;justify-content:flex-start}.preview-window{height:calc(100dvh - 60px);min-height:320px;max-height:none;aspect-ratio:auto;border-radius:8px}.preview-titlebar{padding:0 10px}.preview-caption{font-size:11px}}@media(prefers-reduced-motion:no-preference){.preview-window{transition:width .15s,height .15s}}