:root{--accent:#ff4f8b;--rec:#ff3040;--glass:#1414188c;--glass-strong:#121216eb;--text:#fff;--muted:#ffffffa6;--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}html,body{height:100%;color:var(--text);overscroll-behavior:none;-webkit-user-select:none;user-select:none;touch-action:manipulation;background:#000;margin:0;font:15px/1.35 -apple-system,BlinkMacSystemFont,SF Pro Text,system-ui,sans-serif;overflow:hidden}button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;padding:0}#stage{place-items:center;display:grid;position:fixed;inset:0;overflow:hidden}#cam{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}#view{width:max(100vw,56.25dvh);height:max(100dvh,177.778vw);display:block}#view.mirror-preview{transform:scaleX(-1)}#grid{pointer-events:none;background:linear-gradient(90deg,#0000 calc(33.33% - .5px),#ffffff59 calc(33.33% - .5px) calc(33.33% + .5px),#0000 calc(33.33% + .5px) calc(66.66% - .5px),#ffffff59 calc(66.66% - .5px) calc(66.66% + .5px),#0000 calc(66.66% + .5px)),linear-gradient(#0000 calc(33.33% - .5px),#ffffff59 calc(33.33% - .5px) calc(33.33% + .5px),#0000 calc(33.33% + .5px) calc(66.66% - .5px),#ffffff59 calc(66.66% - .5px) calc(66.66% + .5px),#0000 calc(66.66% + .5px));position:absolute;inset:0}#countdown{text-shadow:0 4px 30px #00000080;pointer-events:none;place-items:center;font-size:140px;font-weight:700;display:grid;position:absolute;inset:0}[hidden]{display:none!important}#top{padding:calc(var(--safe-top) + 10px) 14px 10px;z-index:5;background:linear-gradient(#00000059,#0000);justify-content:space-between;align-items:center;display:flex;position:fixed;top:0;left:0;right:0}.top-right{gap:8px;display:flex}.icon{background:var(--glass);-webkit-backdrop-filter:blur(12px);border-radius:50%;place-items:center;width:44px;height:44px;display:grid}.icon svg{fill:none;stroke:#fff;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.icon.on{background:#ffffffe6}.icon.on svg{stroke:#111}.icon.accent{background:var(--accent)}.icon:disabled{opacity:.35}#timer{background:var(--glass);font-variant-numeric:tabular-nums;border-radius:20px;align-items:center;gap:8px;padding:6px 12px;font-weight:600;display:flex}#timer .dot{background:var(--rec);border-radius:50%;width:9px;height:9px;animation:1s infinite blink}#timer.over60{color:#111;background:#ffaa00d9}@keyframes blink{50%{opacity:.2}}#fps{top:calc(var(--safe-top) + 64px);z-index:5;background:var(--glass);border-radius:8px;padding:4px 8px;font:600 12px ui-monospace,monospace;position:fixed;left:14px}#fps.slow{background:#ff3c3ccc}#toast{left:50%;top:calc(var(--safe-top) + 70px);z-index:20;background:var(--glass-strong);text-align:center;border-radius:14px;max-width:calc(100vw - 32px);padding:10px 16px;position:fixed;transform:translate(-50%)}#bottom{padding:16px 22px calc(var(--safe-bottom) + 22px);z-index:5;background:linear-gradient(#0000,#00000059);grid-template-columns:1fr auto 1fr;align-items:center;display:grid;position:fixed;bottom:0;left:0;right:0}.thumb{background:var(--glass);border:2px solid #ffffffd9;border-radius:12px;justify-self:start;width:46px;height:46px;overflow:hidden}.thumb img{object-fit:cover;width:100%;height:100%;display:block}.right-col{justify-self:end;gap:10px;display:flex}#btn-rec{border:5px solid #fff;border-radius:50%;place-items:center;width:82px;height:82px;display:grid}#btn-rec span{background:var(--rec);border-radius:50%;width:64px;height:64px;transition:all .18s}#btn-rec.recording span{border-radius:7px;width:30px;height:30px}.sheet{z-index:10;padding:14px 16px calc(var(--safe-bottom) + 16px);background:var(--glass-strong);-webkit-backdrop-filter:blur(20px);border-radius:20px 20px 0 0;max-height:70dvh;position:fixed;bottom:0;left:0;right:0;overflow-y:auto}#beauty-panel{background:#0e0e12b8}.sheet.full{max-height:none;padding-top:calc(var(--safe-top) + 12px);border-radius:0;top:0}.sheet-head{justify-content:space-between;align-items:center;min-height:40px;margin-bottom:12px;display:flex}.sheet-head h2{margin:0;font-size:20px}.close{color:var(--accent);padding:8px 0;font-weight:600}.presets{scrollbar-width:none;gap:8px;padding-bottom:10px;display:flex;overflow-x:auto}.presets::-webkit-scrollbar{display:none}.chip{white-space:nowrap;background:#ffffff1f;border-radius:18px;flex:none;padding:8px 14px;font-weight:500}.chip.active{background:var(--accent)}.tabs{gap:18px;margin:4px 0 8px;display:flex}.tab{color:var(--muted);padding:4px 0;font-weight:600}.tab.active{color:#fff;border-bottom:2px solid var(--accent)}.slider{grid-template-columns:92px 1fr 36px;align-items:center;gap:10px;height:44px;display:grid}.slider label{color:var(--muted)}.slider output{text-align:right;font-variant-numeric:tabular-nums}input[type=range]{width:100%;accent-color:var(--accent);height:30px}.sheet-actions{justify-content:space-between;margin-top:8px;display:flex}.ghost{color:var(--muted);padding:10px 0}.primary{background:var(--accent);color:#fff;border-radius:14px;padding:14px 20px;font-weight:600}.primary.big{width:100%;margin:8px 0;font-size:17px}.danger{color:#ff6b6b;padding:14px 20px}.row{border-bottom:1px solid #ffffff14;justify-content:space-between;align-items:center;gap:12px;min-height:52px;display:flex}.row select{color:#fff;font:inherit;background:#ffffff1a;border:0;border-radius:10px;padding:8px 10px}.row input[type=checkbox]{width:24px;height:24px;accent-color:var(--accent)}.note{color:var(--muted);white-space:pre-line;font-size:13px}#save-prompt p{text-align:center;margin:4px 0 6px;font-weight:600}#save-prompt .ghost{width:100%}#gallery-grid{grid-template-columns:repeat(3,1fr);gap:4px;display:grid}.cell{aspect-ratio:9/16;background:#222;border-radius:6px;position:relative;overflow:hidden}.cell img{object-fit:cover;width:100%;height:100%;display:block}.cell .dur{text-shadow:0 1px 4px #000;font-size:12px;font-weight:600;position:absolute;bottom:6px;right:6px}.cell .unsaved{background:var(--accent);border-radius:6px;padding:2px 6px;font-size:11px;font-weight:600;position:absolute;top:6px;left:6px}.empty{color:var(--muted);text-align:center;grid-column:1/-1;padding:40px 0}#clip-video{background:#000;border-radius:12px;width:100%;max-height:65dvh}#clip-meta{color:var(--muted);font-size:13px}.clip-actions{justify-content:space-between;margin-top:14px;display:flex}#error{z-index:30;text-align:center;background:#000;place-content:center;gap:16px;padding:32px;display:grid;position:fixed;inset:0}#error button{justify-self:center}
