:root{color-scheme:dark;--accent:#ffd760;--muted:#96969c;--line:#303033;--surface:#1b1b1e}*{box-sizing:border-box}html,body{margin:0;background:#000;color:#fff;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Apple SD Gothic Neo',sans-serif;overscroll-behavior:none}button,a,select{-webkit-tap-highlight-color:transparent}button{font:inherit;border:0;background:none;color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.38}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.camera-screen{height:100dvh;min-height:480px;display:flex;flex-direction:column;align-items:center;overflow:hidden;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.topbar{height:66px;display:flex;align-items:center;gap:6px;width:100%;max-width:540px;padding:0 17px;flex-shrink:0}.icon-button{width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:50%;font-size:23px;position:relative}.icon-button[aria-pressed=true]{color:var(--accent)}#timer-value{position:absolute;font-size:8px;bottom:0;letter-spacing:.5px;line-height:12px}#timer-value:empty{display:none}#help{font-size:17px;margin-left:2px;color:#9b9b9f}.film-selector{display:flex;align-items:center;gap:9px;margin:auto;border-radius:22px;background:#1d1d20;padding:10px 14px;font-size:12px;font-weight:500;white-space:nowrap}.film-selector svg{width:17px;height:17px;color:var(--accent)}.chevron{color:#a0a0a5;font-size:15px;margin-left:4px}.viewfinder{width:min(100%,calc((100dvh - 286px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * var(--frame-ratio,.75)));aspect-ratio:3/4;position:relative;flex-shrink:0;background:#101012;overflow:hidden;isolation:isolate;max-width:650px}.viewfinder video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none;background:#101012}.finder-message{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#111113;text-align:center}.empty-camera{width:40px;height:40px;stroke-width:1;color:#68686c;margin-bottom:15px}.finder-message h1{font-size:17px;font-weight:500;margin:0 0 9px;letter-spacing:-.4px}.finder-message p{font-size:12px;color:#85858b;margin:0 0 24px}.finder-message button{background:#efeff2;color:#141416;padding:11px 20px;border-radius:24px;font-size:13px;font-weight:600;min-height:44px}.finder-top,.finder-bottom{position:absolute;left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;z-index:4;pointer-events:none;text-shadow:0 1px 4px #0008}.finder-top{top:18px;color:#ffffffa0;font-size:9px;letter-spacing:1.2px;font-weight:500}.finder-bottom{bottom:16px;color:#ffffffb0;font-size:10px;letter-spacing:.3px}.roll-indicator{display:flex;align-items:center;gap:5px;color:#fff;font-size:12px;font-variant-numeric:tabular-nums;background:#0005;border-radius:18px;padding:7px 10px;backdrop-filter:blur(6px)}.roll-indicator svg{height:12px;width:12px;color:var(--accent);margin-right:3px}.roll-indicator b{font-weight:500}.roll-indicator>span,.roll-indicator small{color:#bcbcc2;font-size:10px}.bottom-controls{flex:1;display:flex;flex-direction:column;align-items:center;width:100%;max-width:540px;min-height:220px;padding:0 24px}.roll-status{display:flex;align-items:center;justify-content:center;gap:9px;height:42px;font-size:10px;color:#8b8b92;width:100%;flex-shrink:0}.roll-status>span:first-child{color:#bdbdc1;white-space:nowrap}.roll-status>span+span:before{content:'·';margin-right:9px}.roll-status button{padding:7px 12px;border-radius:16px;background:var(--accent);color:#111;font-size:11px;font-weight:600}.mode-switch{display:flex;align-items:center;justify-content:center;gap:30px;height:40px;flex-shrink:0}.mode-switch button{font-size:13px;letter-spacing:1px;font-weight:500;color:#99999e;min-height:40px;position:relative;padding:0 6px}.mode-switch button.selected{color:var(--accent)}.mode-switch button.selected:after{content:'';position:absolute;bottom:3px;left:calc(50% - 2px);height:4px;width:4px;border-radius:50%;background:var(--accent)}.capture-controls{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;justify-items:center;width:100%;height:96px;flex-shrink:0}.library-button{height:48px;width:48px;background:#202023;border:1px solid #37373b;border-radius:9px;position:relative;display:flex;align-items:center;justify-content:center;color:#a4a4ac}.library-button svg{width:21px;height:21px}.library-button span{position:absolute;right:3px;bottom:3px;font-size:8px;color:#bbb;padding:0 2px}.flip-button{width:48px;height:48px;border-radius:50%;background:#222225;display:grid;place-items:center}.flip-button svg{width:25px;height:25px}#shutter{width:78px;height:78px;border:3px solid #f4f4f5;border-radius:50%;padding:4px;display:block;transition:transform .15s}#shutter span{display:block;width:100%;height:100%;background:#fff;border-radius:50%;transition:background .15s,border-radius .15s,transform .15s}#shutter:active{transform:scale(.94)}#shutter:disabled{opacity:.45}body.video-mode #shutter span{background:#ff4a42}body.is-recording #shutter span{transform:scale(.55);border-radius:8px!important}body.is-recording .mode-switch{opacity:.5}.bottom-labels{display:grid;grid-template-columns:1fr 1fr 1fr;width:100%;text-align:center;color:#77777f;font-size:9px;height:21px}.bottom-labels span:nth-child(2){color:#b5b5ba}.home-indicator{margin:auto 0 7px;width:120px;height:4px;border-radius:4px;background:#f2f2f4;flex-shrink:0}.grid-lines{position:absolute;inset:0;z-index:2;pointer-events:none}.grid-lines i{position:absolute;background:#ffffff42}.grid-lines i:nth-child(1),.grid-lines i:nth-child(2){height:100%;width:1px;top:0}.grid-lines i:nth-child(1){left:33.333%}.grid-lines i:nth-child(2){left:66.666%}.grid-lines i:nth-child(3),.grid-lines i:nth-child(4){width:100%;height:1px;left:0}.grid-lines i:nth-child(3){top:33.333%}.grid-lines i:nth-child(4){top:66.666%}.focus-reticle{position:absolute;height:68px;width:68px;border:1px solid var(--accent);pointer-events:none;z-index:6;transform:translate(-50%,-50%);animation:focus .22s ease-out}@keyframes focus{from{transform:translate(-50%,-50%) scale(1.25);opacity:.3}to{transform:translate(-50%,-50%) scale(1);opacity:1}}#flash-overlay{position:absolute;inset:0;background:#000;opacity:0;pointer-events:none;z-index:8}#flash-overlay.flash{animation:flash .2s}@keyframes flash{0%{opacity:.8}100%{opacity:0}}#recording{position:absolute;z-index:6;left:50%;top:14px;transform:translateX(-50%);padding:8px 12px;border-radius:7px;background:#c8302bd9;font-size:13px;display:flex;align-items:center;gap:8px;font-variant-numeric:tabular-nums}#recording b{font-weight:500}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:white}.timer-count{background:transparent;color:var(--accent);font-size:80px;pointer-events:none}.bottom-sheet{margin:auto auto 0;width:100%;max-width:540px;border:1px solid #303034;border-bottom:0;border-radius:25px 25px 0 0;padding:12px 22px calc(24px + env(safe-area-inset-bottom));background:#1b1b1eed;color:#fff;max-height:85dvh;overflow-y:auto;backdrop-filter:blur(25px);overscroll-behavior:contain}.bottom-sheet::backdrop{background:#0008}.sheet-grab{width:34px;height:4px;background:#55555d;border-radius:3px;margin:0 auto 20px}.sheet-heading{display:flex;align-items:center;justify-content:space-between}.eyebrow{font-size:9px;letter-spacing:2px;color:#93939c}.sheet-heading h2{font-size:22px;margin:8px 0;font-weight:600;letter-spacing:-.8px}.close-button{width:36px;height:36px;border-radius:50%;background:#303034;color:#bebec4;font-size:26px;line-height:1}.setting-note{color:#92929a;font-size:11px;line-height:1.8;margin:8px 0 20px}.setting-heading{font-size:12px;color:#b0b0b7;font-weight:500;margin:22px 0 10px}.camera-options{display:flex;gap:8px}.camera-option{padding:14px 10px;background:#2a2a2e;border:1px solid transparent;border-radius:12px;flex:1;text-align:center;position:relative;min-height:65px}.camera-option h3{font-size:12px;font-weight:500;margin:0}.camera-option p{font-size:9px;line-height:1.5;color:#9999a2;margin:6px 0 0}.camera-art{display:none}.camera-option.selected{border-color:var(--accent);background:#373328}.camera-check{display:none}.film-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.film-option{display:flex;align-items:center;gap:10px;text-align:left;padding:14px 12px;border-radius:12px;background:#2a2a2e;border:1px solid transparent;position:relative;min-height:68px}.film-option.selected{border-color:var(--accent);background:#373328}.mini-film{width:26px;height:35px;border-top:5px solid #111;border-radius:3px 3px 5px 5px;display:grid;place-items:center;font-size:8px;color:#fff;flex-shrink:0}.film-option h3{font-size:12px;margin:0;font-weight:500}.film-option p{font-size:8px;color:#a0a0a7;margin:6px 0 0;line-height:1.4}.film-option small{position:absolute;right:6px;top:5px;font-size:6px;color:var(--accent)}.size-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #35353a;margin-top:22px;padding:18px 0;font-size:13px}.size-row select{border:0;background:#303034;color:var(--accent);border-radius:8px;padding:9px 12px;font-size:12px}.settings-footer{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#85858f;margin:2px 0 22px}.settings-footer button{font-size:10px;color:#bebec6}.primary{background:#f3f3f5;color:#101012;padding:13px 18px;border-radius:13px;font-size:13px;font-weight:600;min-height:44px}#settings-done{width:100%}#dialog .close-button{position:absolute;right:18px;top:18px}#dialog-content{padding-top:8px}#dialog h2{font-size:23px;font-weight:600}#dialog p,#dialog li{font-size:13px;line-height:1.9;color:#a0a0a9}#dialog ol{padding-left:20px}.library-screen{min-height:100dvh;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);max-width:900px;margin:auto;background:#101012}.library-header{height:75px;padding:0 20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #28282d}.library-header h1{font-size:20px;flex:1;font-weight:600}.library-header>span{font-size:9px;color:#8b8b93;letter-spacing:2px}.library-content{padding:22px}.roll-card{padding:21px 18px;border:1px solid #2d2d32;background:#1b1b1e;border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.roll-card h3{font-size:19px;font-weight:500;margin:10px 0}.roll-card p{font-size:11px;color:#9999a1;line-height:1.8;margin:0}.roll-card button{font-size:11px;background:#333338;padding:12px;border-radius:10px;white-space:nowrap;color:var(--accent)}.empty{text-align:center;padding:100px 0}.empty h2{font-size:18px;font-weight:500}.empty p{font-size:12px;line-height:1.9;color:#9a9aa1;margin-bottom:25px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:25px 0 15px}.section-heading h2{font-size:15px;font-weight:500}.text-button{font-size:12px;color:var(--accent)}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.gallery-item{background:#1d1d21;border-radius:10px;overflow:hidden}.gallery-item img,.gallery-item video{width:100%;aspect-ratio:3/4;object-fit:contain;background:#101012;display:block}.gallery-item a{display:block;padding:13px 10px;font-size:10px;color:#b0b0b8}#toast{position:fixed;left:50%;top:calc(env(safe-area-inset-top) + 80px);transform:translateX(-50%);z-index:50;background:#28282deb;color:#e5e5e9;backdrop-filter:blur(12px);padding:12px 17px;max-width:calc(100% - 35px);width:max-content;border:1px solid #45454b55;border-radius:25px;font-size:12px;line-height:1.6;text-align:center;pointer-events:none;opacity:0;transition:opacity .2s}#toast.visible{opacity:1}@media(max-height:660px){.camera-screen{min-height:400px}.topbar{height:52px}.viewfinder{width:min(100%,calc((100dvh - 246px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * var(--frame-ratio,.75)))}.bottom-controls{min-height:194px}.roll-status{height:33px}.mode-switch{height:35px}.capture-controls{height:82px}#shutter{width:68px;height:68px}.home-indicator{margin-bottom:4px}.bottom-labels{height:17px}}@media(min-width:700px){.topbar{height:74px}.camera-screen{background:#080809}.bottom-controls{background:#000;border-radius:0 0 20px 20px}.viewfinder{border-radius:8px;width:calc((100dvh - 304px) * var(--frame-ratio,.75));max-width:600px}.home-indicator{display:none}.roll-status{height:45px}.bottom-controls{max-width:540px;flex:0;height:230px}.bottom-sheet{margin:auto;border-radius:25px;border:1px solid #303034}.camera-screen:before{content:'FILMER';position:absolute;left:30px;top:27px;font-size:11px;letter-spacing:3px;color:#74747c}}@media(max-width:420px){.topbar{padding:0 10px;gap:0}.film-selector{font-size:11px;padding:10px 12px}.bottom-controls{padding:0 17px}.camera-option p{font-size:8px}.film-option p{font-size:7px}.gallery-grid{grid-template-columns:1fr 1fr}.roll-card{padding:18px 14px}.roll-card h3{font-size:17px}.roll-card button{font-size:10px}}@media(orientation:landscape) and (max-height:550px){.camera-screen{min-height:100dvh;display:grid;grid-template-columns:70px 1fr 190px;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.topbar{height:100%;width:70px;flex-direction:column;justify-content:center;padding:6px;gap:14px}.film-selector{padding:9px;margin:0}.film-selector span{display:none}.viewfinder{height:100%;width:auto;max-height:100dvh;aspect-ratio:3/4;justify-self:center;border-radius:0}.bottom-controls{height:100%;min-height:0;max-width:190px;padding:0 10px;justify-content:center}.roll-status{height:auto;flex-direction:column;padding:10px 0;gap:5px}.roll-status>span+span{font-size:8px}.roll-status>span+span:before{content:none}.mode-switch{gap:15px}.capture-controls{height:90px;gap:8px}.library-button,.flip-button{height:35px;width:35px}#shutter{height:65px;width:65px}.bottom-labels{display:none}.home-indicator{display:none}.camera-screen:before{display:none}}
