:root{--bg:#16131a;--surface:#221e2b;--surface-2:#2d2838;--text:#f7f3ee;--muted:#b4abc0;--brand:#ffb86b;--brand-ink:#1a1208;--accent:#ff2d55;--border:#3a3346;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0}html,body{height:100%}body{background:var(--bg);color:var(--text);overscroll-behavior:none;-webkit-font-smoothing:antialiased;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5;overflow:hidden}button,a.btn{font:inherit;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.5;cursor:not-allowed}:focus-visible{outline-offset:2px;outline:3px solid #5ac8fa}.sr-only{clip:rect(0, 0, 0, 0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app{width:100%;height:100vh;flex-direction:column;height:100dvh;display:flex;position:relative}.btn{border:1px solid var(--border);min-height:48px;color:var(--text);background:0 0;border-radius:12px;justify-content:center;align-items:center;gap:8px;width:100%;padding:12px 18px;font-size:16px;font-weight:600;text-decoration:none;display:inline-flex}.btn:hover{background:#ffffff14}.btn.primary{background:var(--brand);color:var(--brand-ink);border-color:#0000}.btn.primary:hover{background:#ffc78a}.btn.ghost{color:var(--muted);border-color:#0000}.btn.danger{color:#ff6b6b;border-color:#ff6b6b}.btn.small{background:#00000059;width:auto;min-height:44px;padding:8px 14px;font-size:14px}.pill{min-height:40px;color:var(--text);-webkit-backdrop-filter:blur(6px);background:#0000008c;border:none;border-radius:20px;align-items:center;gap:8px;padding:6px 14px;font-size:14px;font-weight:600;display:inline-flex}.pill.rec{color:var(--accent);background:#ff2d5533;border:1px solid #ff2d5580}.dot{background:var(--accent);border-radius:50%;width:10px;height:10px;animation:1.5s infinite pulse}@keyframes pulse{0%{box-shadow:0 0 #ff2d55b3}70%{box-shadow:0 0 0 10px #ff2d5500}to{box-shadow:0 0 #ff2d5500}}.banner{color:#fff;pointer-events:auto;background:#b3261e;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;font-size:14px;display:flex}.banner.info{background:#0a4a8f}.banner .x{color:inherit;background:0 0;border:none;min-width:32px;min-height:32px;font-size:18px}.offline-pill{z-index:50;top:calc(8px + var(--safe-top));border:1px solid var(--border);pointer-events:none;background:#000000bf;border-radius:16px;align-items:center;gap:6px;padding:4px 12px;font-size:12px;display:flex;position:absolute;left:50%;transform:translate(-50%)}.offline-dot{background:#34c759;border-radius:50%;width:8px;height:8px}.meta{color:var(--muted);font-size:13px}.error-text{color:#ff6b6b;font-size:14px}.control-label{color:var(--muted);font-size:13px}.segmented{border:1px solid var(--border);background:var(--bg);border-radius:10px;flex-wrap:wrap;gap:2px;padding:3px;display:inline-flex}.segmented button{min-height:34px;color:var(--muted);font:inherit;background:0 0;border:0;border-radius:7px;padding:5px 10px;font-size:12px}.segmented button.active{background:var(--brand);color:var(--brand-ink)}.pace-control{gap:7px;display:grid}.screen{width:100%;max-width:760px;min-height:0;padding:calc(16px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));flex-direction:column;flex:1;gap:12px;margin:0 auto;display:flex}.app-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.app-header h1{font-size:24px;font-weight:700}.app-header .pill{background:var(--surface)}textarea{resize:none;background:var(--surface);width:100%;min-height:120px;color:var(--text);border:1px solid var(--border);font:inherit;border-radius:12px;flex:1;padding:16px;font-size:18px;line-height:1.5}.panel{background:var(--surface);border-radius:14px;flex-direction:column;gap:16px;padding:16px;display:flex}.sliders{grid-template-columns:1fr;gap:6px;display:grid}.sliders label{color:var(--muted);justify-content:space-between;font-size:14px;display:flex}.sliders output{color:var(--text);font-variant-numeric:tabular-nums}input[type=range]{width:100%;accent-color:var(--brand);min-height:28px}.result{overflow-y:auto}.player{background:#000;border-radius:12px;width:100%;max-height:55dvh}.filename{color:var(--muted);word-break:break-all;overflow-wrap:anywhere;font-family:ui-monospace,monospace;font-size:13px}.stack{flex-direction:column;gap:10px;display:flex}.modal{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:16px;max-width:min(92vw,420px);margin:auto;padding:24px}.modal::backdrop{background:#000000a6}.modal h2{margin-bottom:12px;font-size:18px}.modal ol{gap:6px;margin-bottom:16px;padding-left:20px;display:grid}.recovery-prompt{border:1px solid var(--border);background:var(--surface);border-radius:16px;gap:14px;width:min(92vw,420px);margin:auto;padding:24px;display:grid}.recovery-prompt h2{font-size:20px}.recovery-actions{gap:10px;display:grid}.stage{-webkit-user-select:none;user-select:none;background:#000;flex:1;min-height:0;position:relative;overflow:hidden}.camera{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.camera.mirrored{transform:scaleX(-1)}.overlay{pointer-events:none;position:absolute;inset:0}.reading-zone{border-top:2px dashed #ffffff4d;border-bottom:2px dashed #ffffff4d;height:15%;position:absolute;top:30%;left:0;right:0}.viewport{position:absolute;inset:0;overflow:hidden;-webkit-mask-image:linear-gradient(#0000 10%,#000 30% 70%,#0000 90%);mask-image:linear-gradient(#0000 10%,#000 30% 70%,#0000 90%)}.script{padding:40vh 20px 60vh;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;text-shadow:0 2px 6px #000000d9,0 0 2px #000;will-change:transform;max-width:800px;margin:0 auto;padding:40dvh 20px 60dvh;font-weight:600;line-height:1.4}.chrome{z-index:3;pointer-events:none;padding:calc(12px + var(--safe-top)) 16px calc(20px + var(--safe-bottom));flex-direction:column;justify-content:space-between;gap:8px;display:flex;position:absolute;inset:0}.chrome>*{pointer-events:auto}.top{justify-content:space-between;align-items:center;gap:8px;min-height:40px;display:flex}.bottom{-webkit-backdrop-filter:blur(10px);background:#0000008c;border-radius:18px;justify-content:space-between;align-items:center;gap:12px;width:100%;max-width:640px;min-height:64px;margin:0 auto;padding:12px 16px;display:flex}.bottom:empty{display:none}.speed{flex:1;align-items:center;gap:12px;font-size:14px;display:flex}.speed span{font-variant-numeric:tabular-nums;min-width:52px}.group{flex-wrap:wrap;gap:8px;display:flex}.rec-btn{background:0 0;border:4px solid #fff;border-radius:50%;flex:none;place-items:center;width:64px;height:64px;display:grid}.rec-dot{background:var(--accent);border-radius:50%;width:46px;height:46px}.stop-sq{background:var(--accent);border-radius:5px;width:24px;height:24px}.center-msg{text-align:center;background:#000000b3;border-radius:14px;flex-direction:column;align-self:center;align-items:center;gap:12px;padding:14px 20px;display:flex}.center-msg.error{max-width:440px}.stage-error-actions{flex-direction:column;gap:8px;width:100%;margin-top:4px;display:flex}.stage-error-actions .btn{justify-content:center;width:100%}@media (min-width:500px){.stage-error-actions{flex-flow:wrap;justify-content:center}.stage-error-actions .btn{width:auto}}.countdown{text-shadow:0 4px 16px #000c;align-self:center;font-size:120px;font-weight:800;line-height:1}@media (min-width:700px){.sliders{grid-template-columns:1fr 1fr;column-gap:24px}}@media (prefers-reduced-motion:reduce){.dot{animation:none}*{transition:none!important}}.script-library{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex:none;min-height:0;max-height:min(28vh,230px);padding:10px;overflow:hidden}.scripts-toolbar{justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;display:flex}.scripts-toolbar h2{font-size:14px}.scripts-toolbar h2 span{color:var(--muted);font-weight:400}.scripts-toolbar .pill,.script-actions .pill,.rename-form .pill{background:var(--surface-2);min-height:34px;padding:4px 10px;font-size:12px}.script-list{flex-direction:column;gap:6px;max-height:calc(min(28vh,230px) - 58px);list-style:none;display:flex;overflow-y:auto}.script-list li{border:1px solid #0000;border-radius:9px;align-items:center;gap:8px;padding:6px;display:flex}.script-list li.active{border-color:var(--brand);background:#ffb86b14}.script-select{min-width:0;color:var(--text);text-align:left;font:inherit;background:0 0;border:0;flex-direction:column;flex:1;align-items:flex-start;gap:1px;display:flex}.script-select span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:14px;font-weight:600;overflow:hidden}.script-select small{color:var(--muted);font-size:11px}.script-actions{flex:none;gap:4px;display:flex}.rename-form{align-items:center;gap:6px;width:100%;display:flex}.rename-form input{border:1px solid var(--border);background:var(--bg);min-width:0;min-height:38px;color:var(--text);font:inherit;border-radius:8px;flex:1;padding:6px 9px}.storage-warning{flex:none;padding:2px 4px}@media (max-width:460px){.script-list li{flex-direction:column;align-items:flex-start}.script-select{width:100%}.script-actions{flex-wrap:wrap;width:100%}}.script-transfer{color:var(--text);flex:none}.script-transfer summary{width:-moz-fit-content;width:fit-content;color:var(--muted);cursor:pointer;padding:3px 2px;font-size:13px}.transfer-panel{border:1px solid var(--border);background:var(--surface);border-radius:10px;gap:10px;max-height:36dvh;padding:10px;display:grid;overflow-y:auto}.transfer-buttons{flex-wrap:wrap;gap:6px;display:flex}.transfer-buttons .pill,.paste-import .pill,.backup-preview .pill{background:var(--surface-2);min-height:36px;padding:5px 10px;font-size:12px}.paste-import{gap:6px;display:grid}.paste-import label{color:var(--muted);font-size:13px}.paste-import textarea{flex:none;min-height:72px;max-height:140px;padding:10px;font-size:14px}.backup-preview{border:1px solid var(--border);background:#ffffff0a;border-radius:9px;gap:8px;padding:10px;font-size:13px;display:grid}.viewport{-webkit-mask-image:none;mask-image:none}.script{padding-top:0;padding-bottom:0}.script-mirror{text-shadow:0 2px 6px #000000d9,0 0 2px #000;display:block}.script-vertical{transform-origin:50%;display:block}.marker-anchor{vertical-align:top;width:0;height:0;display:inline-block;overflow:hidden}.script-highlight{-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:.12em;padding:0 .12em}.display-section{flex:none;gap:6px;display:grid}.display-options summary{width:-moz-fit-content;width:fit-content;color:var(--muted);cursor:pointer;font-size:13px}.display-controls{border:1px solid var(--border);background:var(--surface);border-radius:10px;grid-template-columns:minmax(0,1fr) minmax(120px,.8fr);align-items:center;gap:7px 12px;margin-top:8px;padding:10px;display:grid}.display-controls>label{color:var(--muted);font-size:13px}.display-controls output{color:var(--text);font-variant-numeric:tabular-nums}.display-controls select{border:1px solid var(--border);background:var(--bg);min-height:38px;color:var(--text);font:inherit;border-radius:8px;padding:5px 9px}.display-controls input[type=range]{min-height:32px}.display-controls .display-toggle{min-height:36px;color:var(--text);grid-column:1/-1;align-items:center;gap:9px;display:flex}.display-controls input[type=checkbox]{width:20px;height:20px;accent-color:var(--brand)}.display-preview{border:1px solid var(--border);white-space:pre-wrap;background:#0f0d13;border-radius:10px;align-items:center;min-height:48px;padding:6px 12px;font-weight:600;display:flex;overflow:hidden}.display-preview-text{-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:.12em;max-width:100%;padding:0 .12em;display:inline-block}@media (max-width:460px){.display-controls{grid-template-columns:minmax(0,1fr) minmax(110px,.9fr)}}.recording-options{flex:none}.recording-options summary{width:-moz-fit-content;width:fit-content;color:var(--muted);cursor:pointer;font-size:13px}.recording-controls{border:1px solid var(--border);background:var(--surface);border-radius:10px;grid-template-columns:minmax(0,1fr) minmax(145px,1.2fr);align-items:center;gap:8px 12px;margin-top:8px;padding:10px;display:grid}.recording-controls>label{color:var(--muted);font-size:13px}.recording-controls select{border:1px solid var(--border);background:var(--bg);width:100%;min-height:38px;color:var(--text);font:inherit;border-radius:8px;padding:5px 9px}.format-choice{gap:4px;display:grid}.format-choice small,.camera-choice-note{color:var(--muted);font-size:11px;line-height:1.35}.camera-choice-note{grid-column:1/-1}.stage-camera-actions{justify-content:flex-end;align-items:center;gap:6px;display:flex}.stage-camera-actions .pill{min-height:38px;padding:5px 10px;font-size:12px}.stage-tools{pointer-events:auto;background:#0000008c;border-radius:12px;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;margin:0 auto;padding:7px 10px;display:flex}.stage-tools .segmented button{min-height:30px;padding:4px 8px}.pace-readout{font-variant-numeric:tabular-nums}.audio-meter{background:#222;border:1px solid #777;border-radius:8px;width:72px;height:8px;overflow:hidden}.audio-meter span{background:#34c759;min-width:0;height:100%;transition:width .1s linear;display:block}.audio-warning{color:#fc0;font-size:12px}.help-button{justify-content:center;min-width:40px}.shortcut-help{color:#fff;pointer-events:auto;background:#000000db;border:1px solid #666;border-radius:12px;align-self:center;gap:5px;max-width:min(92vw,430px);padding:14px 18px;font-size:13px;display:grid}@media (max-width:420px){.recording-controls{grid-template-columns:minmax(0,1fr) minmax(130px,1fr);gap:7px}}.ironhelix-footer{padding:8px 16px calc(8px + var(--safe-bottom));color:var(--muted);background:var(--bg);border-top:1px solid var(--border);text-align:center;z-index:10;flex-direction:column;flex:none;justify-content:center;align-items:center;gap:6px;font-size:11px;display:flex}.ironhelix-tagline{letter-spacing:.02em;font-weight:500}.ironhelix-links{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.ironhelix-links a{color:var(--muted);text-decoration:none;transition:color .15s}.ironhelix-links a:hover{color:var(--brand);text-decoration:underline}.ironhelix-links .sep{color:var(--border);-webkit-user-select:none;user-select:none}@media (min-width:600px){.ironhelix-footer{padding:8px 24px calc(8px + var(--safe-bottom));flex-direction:row;justify-content:space-between}}.editor{padding-bottom:0;overflow-y:auto}.start-bar{z-index:5;width:calc(100% + 32px);padding:10px 16px calc(12px + var(--safe-bottom));background:var(--bg);border-top:1px solid var(--border);flex:none;margin:0 -16px;position:sticky;bottom:0}.stage-camera-actions .pill,.stage-tools .segmented button{min-height:44px}
