:root{--bg: #1c1714;--surface: #2a231e;--surface-2: #362d27;--text: #f4ead8;--muted: #b8a993;--accent: #d9894a;--accent-text: #1c1714;--danger: #e2685a;--ok: #8fbf7f;--radius: 14px;--safe-bottom: env(safe-area-inset-bottom, 0px);color-scheme:dark;font-family:ui-rounded,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}img{display:block}h1,h2,h3{margin:0 0 .5rem;line-height:1.2}p{line-height:1.5}.muted{color:var(--muted)}.error-text{color:var(--danger)}.warning-text{color:var(--accent)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;background:var(--accent);color:var(--accent-text);border:1px solid var(--accent);border-radius:999px;padding:.65rem 1.2rem;font-weight:600;text-decoration:none}.btn.ghost{background:transparent;color:var(--text);border-color:var(--surface-2)}.btn.small{padding:.35rem .8rem;font-size:.9rem}.btn.danger{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 40%,transparent)}.link{background:none;border:none;padding:.25rem;color:var(--accent);text-decoration:underline}.icon-btn{background:var(--surface);border:none;border-radius:999px;width:48px;height:48px;font-size:1.4rem}.row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}input:not([type=checkbox]){width:100%;padding:.7rem .9rem;border-radius:10px;border:1px solid var(--surface-2);background:var(--bg);color:var(--text);font:inherit;font-size:16px}label{display:block;margin:.8rem 0 .3rem;color:var(--muted)}.center-screen{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem}.message-screen{text-align:center;gap:.5rem;max-width:28rem;margin:0 auto}.spinner{width:40px;height:40px;border-radius:50%;border:4px solid var(--surface-2);border-top-color:var(--accent);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.guest-app{height:100%;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:calc(env(safe-area-inset-top,0px) + .6rem) 1rem .6rem}.topbar h1{font-size:1.1rem;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.film-counter{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:1.3rem;font-weight:700;background:var(--surface);border:1px solid var(--surface-2);border-radius:8px;padding:.2rem .6rem;display:inline-flex;align-items:baseline;gap:.3rem;color:var(--accent)}.film-counter small{font-size:.7rem;color:var(--muted)}.status-strip{background:var(--surface);padding:.45rem 1rem;font-size:.9rem;display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.status-strip.error{background:color-mix(in srgb,var(--danger) 20%,var(--surface))}.guest-main{flex:1;min-height:0;overflow-y:auto}.tabbar{display:grid;grid-template-columns:1fr 1fr;background:var(--surface);padding-bottom:var(--safe-bottom)}.tabbar button{background:none;border:none;padding:.9rem;font-weight:600;color:var(--muted);border-top:3px solid transparent}.tabbar button.active{color:var(--text);border-top-color:var(--accent)}.camera{height:100%;display:flex;flex-direction:column;padding:0 .75rem .5rem}.viewfinder{position:relative;flex:1;min-height:240px;background:#000;border-radius:var(--radius);overflow:hidden}.viewfinder video{width:100%;height:100%;object-fit:cover}.viewfinder video.mirrored{transform:scaleX(-1)}.viewfinder-message,.viewfinder-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:2rem}.viewfinder-overlay{background:#0009;font-weight:600}.flash{position:absolute;inset:0;background:#fff;animation:flash .18s ease-out forwards}@keyframes flash{0%{opacity:.9}to{opacity:0}}.camera-controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:1rem .5rem .25rem}.camera-controls .icon-btn{justify-self:end}.last-shot img{width:52px;height:52px;object-fit:cover;border-radius:10px;border:2px solid var(--text)}.shutter{width:78px;height:78px;border-radius:50%;border:4px solid var(--text);background:transparent;padding:5px}.shutter span{display:block;width:100%;height:100%;border-radius:50%;background:var(--text);transition:transform .1s}.shutter:active:not(:disabled) span{transform:scale(.88);background:var(--accent)}.fallback-link{align-self:center;font-size:.85rem}.gallery{padding:.5rem .5rem 1rem}.gallery-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 .25rem .5rem;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:4px}.tile{position:relative;padding:0;border:none;background:var(--surface);aspect-ratio:1;overflow:hidden;border-radius:4px}.tile img{width:100%;height:100%;object-fit:cover}.sentinel{height:1px}.empty-state{text-align:center;color:var(--muted);padding:3rem 1.5rem}.empty-state h2{color:var(--text)}.lightbox{position:fixed;inset:0;background:#000;z-index:20;display:flex;flex-direction:column}.lightbox-bar{display:flex;align-items:center;gap:.75rem;padding:calc(env(safe-area-inset-top,0px) + .5rem) .75rem .5rem}.lightbox-meta{flex:1;color:var(--muted);font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lightbox-stage{flex:1;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;touch-action:pan-y}.lightbox-stage img{max-width:100%;max-height:100%;object-fit:contain}.lightbox-stage .nav{position:absolute;top:50%;transform:translateY(-50%);background:#0006;border:none;font-size:2.2rem;width:44px;height:64px}.lightbox-stage .prev{left:0;border-radius:0 10px 10px 0}.lightbox-stage .next{right:0;border-radius:10px 0 0 10px}.lightbox-actions{display:flex;gap:.5rem;justify-content:center;padding:.75rem .75rem calc(var(--safe-bottom) + .75rem)}.modal-backdrop{position:fixed;inset:0;background:#000000a6;display:flex;align-items:flex-end;justify-content:center;z-index:30;padding:1rem}.modal{background:var(--surface);border-radius:var(--radius);padding:1.4rem;width:100%;max-width:28rem;margin-bottom:var(--safe-bottom)}.modal-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1.2rem}.toast{position:fixed;left:50%;bottom:calc(var(--safe-bottom) + 5rem);transform:translate(-50%);background:var(--surface-2);padding:.7rem 1.1rem;border-radius:999px;z-index:40;max-width:calc(100% - 2rem);text-align:center}@media(min-width:700px){.modal-backdrop{align-items:center}.grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}}.admin{max-width:60rem;margin:0 auto;padding:1rem}.admin-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem;padding-bottom:1rem;border-bottom:1px solid var(--surface-2);margin-bottom:1rem}.admin-header h1{font-size:1.2rem;margin:0}.admin-signin{text-align:center;padding:3rem 1rem}.admin-body h2{margin-top:1.5rem}.card{background:var(--surface);border-radius:var(--radius);padding:1.2rem;margin:1rem 0}.card .row input{flex:1;min-width:12rem}.event-list{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}.event-list button{width:100%;text-align:left;background:var(--surface);border:1px solid var(--surface-2);border-radius:var(--radius);padding:.9rem 1rem;display:grid;gap:.25rem}.settings label.check{display:flex;gap:.6rem;align-items:center;color:var(--text)}.settings label:not(.check) input{display:block;margin-top:.35rem}.settings input[type=number]{max-width:10rem}.qr-card{margin-bottom:1rem}.qr-card img{background:#fff;border-radius:10px;margin:.75rem 0;width:256px;height:256px;max-width:100%}.filters{margin-bottom:.75rem}.admin-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.6rem}.admin-grid .tile{aspect-ratio:auto;display:flex;flex-direction:column;background:var(--surface-2);border-radius:8px}.admin-grid .tile-img{padding:0;border:none;background:none;aspect-ratio:1}.admin-grid .tile-img img{width:100%;height:100%;object-fit:cover}.admin-grid .tile.status-hidden img{opacity:.35}.tile-meta{display:flex;justify-content:space-between;gap:.3rem;font-size:.8rem;padding:.4rem .5rem 0;color:var(--muted)}.tile-actions{display:flex;flex-wrap:wrap;gap:.3rem;padding:.4rem .5rem .5rem}.tile-actions .btn.small{padding:.25rem .55rem;font-size:.8rem}.badge{border-radius:999px;padding:0 .45rem;font-size:.72rem;background:var(--surface)}.badge.pending{color:var(--accent)}.badge.visible{color:var(--ok)}.badge.hidden{color:var(--danger)}
