:root{--paper:#f7f6f1;--ink:#151b20;--quiet:#4f595f;--line:#ccd0cb;--blue:#254abe;--night:#101315;--pad:clamp(18px,5vw,36px);font:16px/1.5 system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--paper);color-scheme:light}
*{box-sizing:border-box}body{margin:0;padding:env(safe-area-inset-top) max(var(--pad),env(safe-area-inset-right)) env(safe-area-inset-bottom) max(var(--pad),env(safe-area-inset-left))}header,main{max-width:740px;margin:auto}header,.section-top,.actions{display:flex;align-items:center;justify-content:space-between;gap:12px}header{height:66px;border-bottom:1px solid var(--line)}.brand{display:inline-flex;align-items:center;gap:9px;font-size:21px;font-weight:720;letter-spacing:-.065em}.brand i{display:inline-block;width:19px;height:19px;border:2px solid currentColor;border-radius:50%;position:relative}.brand i:after{content:"";position:absolute;inset:3px;border:2px solid currentColor;border-radius:50%}
button,select,input{font:inherit}button,select{color:inherit}button{min-height:44px;padding:8px 14px;border:0;border-radius:7px;background:#e4e6e1;font-weight:600;cursor:pointer;transition:opacity .12s,transform .12s}button:active{transform:scale(.98)}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #5678ff;outline-offset:3px}button[hidden],[hidden]{display:none!important}#privacy{width:44px;background:transparent;font-size:25px}.sliders{display:block;line-height:1}section{padding:24px 0}h1,h2,p{margin-top:0}h1{font-size:clamp(32px,6vw,48px);font-weight:640;letter-spacing:-.055em;line-height:1.05;margin-bottom:18px}h2{letter-spacing:-.035em}p{color:var(--quiet)}a{color:var(--blue);text-underline-offset:3px}main>h1:first-child{margin-top:36px}#welcome{max-width:540px;margin:auto;padding:clamp(26px,7vh,72px) 0 32px}#welcome h1{font-size:clamp(56px,10vw,82px);line-height:.97;margin-bottom:19px}.title-dot{color:var(--blue)}#welcome>p:first-of-type{font-size:17px;line-height:1.45;max-width:36ch;margin-bottom:26px}#welcome label{display:grid;grid-template-columns:24px 1fr;gap:12px;border-top:1px solid var(--line);padding:20px 0 8px}#welcome input{width:22px;height:22px;margin:3px 0;accent-color:var(--blue)}#welcome label+p{margin:6px 0 24px 36px}#start,#save{background:var(--blue);color:white}#start{width:100%;height:52px}#start:disabled{background:#dfe2df;color:#535a60;opacity:1}
body:has(#camera:not([hidden])),body:has(#preview:not([hidden])),body:has(#library:not([hidden])){background:var(--night);color:#f3f4f1;min-height:100dvh;color-scheme:dark}body:has(#camera:not([hidden])) header{position:fixed;top:env(safe-area-inset-top);left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));max-width:none;border:0;color:white;z-index:2;pointer-events:none}body:has(#camera:not([hidden])) header>*{pointer-events:auto;background:#14181ced;border-radius:6px;padding:4px 9px}body:has(#camera:not([hidden])) #privacy{background:#14181ced}
#camera{position:fixed;inset:0;padding:0;background:#090b0d}.finder,.finder video{width:100%;height:100%;display:block}.finder video{object-fit:contain}#gps{position:absolute;top:calc(env(safe-area-inset-top) + 64px);left:max(18px,env(safe-area-inset-left));background:#15191eee;color:#f9f9f5;font:600 13px/1.6 ui-monospace,monospace;padding:3px 8px;border-radius:4px}#gps:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#ffc64d;margin-right:7px}.controls{position:absolute;left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 82px 1fr;align-items:center;gap:5px}.controls button{background:#14181cee;color:white}.controls #shutter{grid-column:2;width:78px;height:78px;padding:5px;background:#f8f8ef;border:4px solid #161a1d;outline:2px solid #f7f8f3;border-radius:50%;justify-self:center}.controls #shutter:focus-visible{outline-color:#7897ff}.controls #album{justify-self:start;display:grid;justify-items:center;font-size:12px;gap:2px;padding:6px 9px}.gallery-symbol{width:19px;height:15px;border:1.5px solid currentColor;border-radius:2px;box-shadow:-3px -3px #14181c,-4px -4px currentColor}.controls #retry{justify-self:end;font-size:13px}.section-top h1{margin:0}.section-top{margin-bottom:15px}#photo{display:block;width:100%;height:calc(100dvh - 270px);min-height:120px;object-fit:contain}#preview .actions{justify-content:center;flex-wrap:wrap;margin-top:12px}#preview button,#library button{color:#f7f8f3;background:#292f33}#preview #save{background:#f6f6ec;color:#171b1f}#library p,#status{color:inherit;font-size:14px}#tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}#tiles button{padding:0;text-align:left;background:transparent;border-radius:0}#tiles img{display:block;width:100%;aspect-ratio:1;object-fit:cover}#tiles span{display:block;font-size:11px;padding:4px 0;color:#d3d6d5}#moreTiles{margin:12px 0}
#settings label{display:grid;gap:6px;margin:12px 0}input:not([type=checkbox]),select{border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);padding:9px;min-height:44px;max-width:100%}#settings button{margin:5px 2px}#erase,#revoke{color:#912d25}body:has(#camera:not([hidden])) #status:not(:empty){position:fixed;bottom:calc(106px + env(safe-area-inset-bottom));left:var(--pad);right:var(--pad);background:#171b20ed;color:white;padding:9px 12px;border-radius:6px}#status:empty{display:none}body:has(#preview:not([hidden])) #status{text-align:center;color:#c5cac8}
@media(orientation:landscape) and (max-height:550px){.controls{left:auto;right:max(20px,env(safe-area-inset-right));top:12px;bottom:12px;grid-template-columns:80px;grid-template-rows:1fr 80px 1fr;justify-items:center}.controls #shutter{grid-column:1;grid-row:2}.controls #album,.controls #retry{justify-self:center}body:has(#camera:not([hidden])) header{right:120px}#photo{height:58dvh}#welcome{padding-top:20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
#privacy .sliders{position:relative;width:20px;height:12px;border-block:2px solid currentColor;margin:auto}
.sliders:before,.sliders:after{content:"";position:absolute;width:4px;height:7px;background:currentColor;border-radius:1px}.sliders:before{left:4px;top:-4px}.sliders:after{right:4px;bottom:-4px}
body:has(#shutter:enabled) #gps:before{background:#94dfb8}
#preview #enlarge{width:100%;display:block;padding:0;background:transparent;cursor:zoom-in}#viewer{position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;padding:0;background:#080a0c;color:#fff}#viewer img{width:100%;height:100%;object-fit:contain}#viewer #collapse{position:absolute;right:max(16px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));z-index:1}
h1,h2{overflow-wrap:anywhere}
