:root{--bg: #0f0f10;--surface: #18181a;--surface-2: #222225;--border: #2c2c30;--text: #ececec;--muted: #9a9aa0;--accent: #e8d5b5;--accent-text: #1a1610;--danger: #ff8a80;--radius: 10px;color-scheme:dark;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}a{color:inherit}h1,h2{font-weight:500;letter-spacing:.01em;margin:0}.muted{color:var(--muted);margin:0}.error{color:var(--danger);margin:0}.empty{color:var(--muted);text-align:center;padding:64px 16px}.btn{font:inherit;border-radius:var(--radius);padding:9px 16px;border:1px solid transparent;cursor:pointer;transition:background .15s,border-color .15s}.btn:disabled{opacity:.6;cursor:default}.btn-primary{background:var(--accent);color:var(--accent-text);font-weight:600}.btn-primary:hover:not(:disabled){background:#f3e3c7}.btn-ghost{background:transparent;color:var(--text);border-color:var(--border)}.btn-ghost:hover:not(:disabled){background:var(--surface-2)}.login-page{min-height:100vh;display:grid;place-items:center;padding:16px}.login-card{width:100%;max-width:360px;display:flex;flex-direction:column;gap:16px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:32px 28px}.login-card h1{font-size:1.6rem;text-align:center}.login-card>.muted{text-align:center;margin-top:-8px}.login-card label{display:flex;flex-direction:column;gap:6px;font-size:.9rem;color:var(--muted)}.login-card input{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px}.login-card input:focus{outline:none;border-color:var(--accent)}.page-loading{min-height:100vh}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;background:#0f0f10d9;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}.brand{text-decoration:none;font-size:1.15rem;font-weight:500}.topbar-right{display:flex;align-items:center;gap:12px}.whoami{color:var(--muted);font-size:.9rem}.badge{margin-left:8px;font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;background:var(--surface-2);color:var(--accent);padding:2px 7px;border-radius:99px}.content{max-width:1280px;margin:0 auto;padding:32px 24px 64px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.shooting-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}.shooting-card{text-decoration:none;background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden;transition:transform .15s,border-color .15s}.shooting-card:hover{transform:translateY(-2px);border-color:#3d3d43}.shooting-cover{aspect-ratio:4 / 3;background:linear-gradient(135deg,var(--surface-2),#2a2622)}.shooting-info{padding:14px 16px 16px;display:flex;flex-direction:column;gap:4px}.shooting-info h2{font-size:1.05rem}.shooting-info .muted{font-size:.88rem}@media(max-width:600px){.topbar{padding:10px 16px}.whoami{display:none}.content{padding:24px 16px 48px}}.small{font-size:.82rem}.btn-block{width:100%}.shooting-cover{overflow:hidden}.shooting-cover img{width:100%;height:100%;object-fit:cover;display:block}.back-link{display:inline-block;color:var(--muted);text-decoration:none;font-size:.9rem;margin-bottom:16px}.back-link:hover{color:var(--text)}.gallery-header{margin-bottom:20px}.gallery-header h1{font-size:1.7rem}.gallery-toolbar{position:sticky;top:68px;z-index:5;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;margin-bottom:12px;background:var(--bg)}.toolbar-actions{display:flex;gap:8px}.admin-note{font-size:.85rem;color:var(--muted);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:8px 12px;margin-bottom:16px}.admin-note summary{cursor:pointer}.segmented{display:inline-flex;background:var(--surface);border:1px solid var(--border);border-radius:99px;padding:3px;gap:2px}.segmented button{font:inherit;font-size:.9rem;color:var(--muted);background:transparent;border:0;border-radius:99px;padding:6px 14px;cursor:pointer;white-space:nowrap}.segmented button.active{background:var(--accent);color:var(--accent-text);font-weight:600}.segmented button:disabled{opacity:.35;cursor:default}.segmented .count{opacity:.7;font-size:.8em;margin-left:2px}.segmented-dark{background:#0006;border-color:#ffffff1f}.justified{--row-h: 220px;display:flex;flex-wrap:wrap;gap:6px}.justified-tall{--row-h: 320px}.justified:after{content:"";flex-grow:999999}.tile{position:relative;padding:0;border:0;background:var(--surface-2);border-radius:4px;overflow:hidden;cursor:pointer}.tile img{display:block;width:100%;height:auto;transition:transform .2s,opacity .2s}.tile:hover img{opacity:.88}.tile.is-selecting img{transform:scale(.96)}.tile.is-selected img{transform:scale(.88);opacity:.75}.tile.is-selected{outline:2px solid var(--accent);outline-offset:-2px}.tile .check{position:absolute;top:8px;left:8px;width:24px;height:24px;border-radius:50%;border:2px solid #fff;background:#00000059;box-shadow:0 1px 4px #0006}.tile.is-selected .check{background:var(--accent);border-color:var(--accent)}.tile.is-selected .check:after{content:"✓";position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:var(--accent-text);font-size:14px;font-weight:700}.selection-bar{position:fixed;left:50%;bottom:20px;transform:translate(-50%);z-index:20;display:flex;align-items:center;gap:16px;padding:10px 10px 10px 20px;background:var(--surface-2);border:1px solid var(--border);border-radius:99px;box-shadow:0 8px 30px #00000080;white-space:nowrap}.selection-bar .btn{border-radius:99px}.lightbox{--bar-h: 64px;--stage-h: calc(100dvh - 2 * var(--bar-h) - 16px);position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#080809f7;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none}.lightbox-top,.lightbox-bottom{height:var(--bar-h);flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px}.lightbox-bottom{justify-content:center}.lightbox-counter{color:var(--muted);font-size:.9rem;min-width:60px}.icon-btn{font:inherit;font-size:1.2rem;width:40px;height:40px;border-radius:50%;border:0;background:#ffffff14;color:var(--text);cursor:pointer}.icon-btn:hover{background:#ffffff29}.lightbox-stage{position:relative;flex:1;display:flex;align-items:center;justify-content:center;padding:8px 64px;min-height:0}.lightbox-image{position:relative;max-height:var(--stage-h)}.lightbox-image img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain}.lightbox-placeholder{filter:blur(6px);transform:scale(1.01)}.lightbox-preview{opacity:0;transition:opacity .25s}.lightbox-preview.is-loaded{opacity:1}.nav-btn{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:0;background:#ffffff14;color:var(--text);font-size:2rem;line-height:1;cursor:pointer}.nav-btn:hover{background:#ffffff29}.nav-prev{left:8px}.nav-next{right:8px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#0009;display:grid;place-items:center;padding:16px}.modal{width:100%;max-width:420px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:14px}.modal h2{font-size:1.2rem}.modal-choices{display:flex;flex-direction:column;gap:10px}.modal-actions{display:flex;justify-content:flex-end}.progress{height:6px;background:var(--surface-2);border-radius:99px;overflow:hidden}.progress-bar{height:100%;background:var(--accent);transition:width .2s}@media(max-width:600px){.justified{--row-h: 120px;gap:3px}.justified-tall{--row-h: 200px}.gallery-toolbar{top:58px}.segmented button{padding:6px 10px}.lightbox-stage{padding:8px 0}.nav-btn{display:none}.lightbox-top .segmented button{padding:5px 9px;font-size:.82rem}}a.btn{text-decoration:none;display:inline-block}.btn-danger{background:transparent;color:var(--danger);border-color:#ff8a8066}.btn-danger:hover{background:#ff8a801a}.gallery-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.tabs{display:flex;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:99px;padding:3px}.tabs a{text-decoration:none;color:var(--muted);padding:6px 14px;border-radius:99px;font-size:.9rem;white-space:nowrap}.tabs a.active{background:var(--accent);color:var(--accent-text);font-weight:600}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.badge-off{color:var(--danger)}.notice{color:#9be3b0;margin:0 0 12px}.user-list{display:flex;flex-direction:column;gap:8px}.user-row{display:flex;align-items:center;gap:14px;padding:12px 16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-decoration:none}.user-row:hover{border-color:#3d3d43}.user-row.is-disabled{opacity:.55}.user-main{flex:1;min-width:0}.user-count{white-space:nowrap}.avatar{width:38px;height:38px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);color:var(--accent);font-weight:600}.panel{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px 20px;margin-bottom:16px}.panel h2{font-size:1.05rem;margin-bottom:12px}.panel-toggle{all:unset;box-sizing:border-box;width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer}.panel-body{margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}.shooting-access-list .panel{margin-bottom:8px;padding:14px 18px}.shooting-access-list .panel.is-open{border-color:#4a4538}.chips{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.chip{font-size:.8rem;background:var(--surface-2);border-radius:99px;padding:3px 10px}.form{display:flex;flex-direction:column;gap:14px}.field{display:flex;flex-direction:column;gap:6px;font-size:.9rem;color:var(--muted)}.field-row{display:flex;flex-wrap:wrap;gap:8px}.field-row input{flex:1;min-width:160px}.form input,.field-row input,.access-list .search{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:9px 12px}.form input:focus,.field-row input:focus,.access-list .search:focus{outline:none;border-color:var(--accent)}.modal-actions.gap{gap:8px}.credentials{margin:0;white-space:pre-wrap;word-break:break-all;font-size:.88rem;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:12px}.access-list-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:10px}.access-list .search{flex:1;min-width:180px;max-width:320px}.access-list ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:6px}.access-list label{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--border);border-radius:var(--radius);cursor:pointer}.access-list label.is-checked{border-color:var(--accent);background:#e8d5b50f}.access-list input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px;flex-shrink:0}@media(max-width:600px){.page-header,.section-head{flex-direction:column;align-items:stretch}.tabs{align-self:flex-start}.panel-toggle{flex-direction:column;align-items:flex-start}.chips{justify-content:flex-start}}.btn-small{padding:5px 12px;font-size:.85rem}.filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:16px}.filters select{font:inherit;font-size:.9rem;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:8px 10px;max-width:100%}.checkbox{display:inline-flex;align-items:center;gap:8px;font-size:.9rem;color:var(--muted);cursor:pointer}.checkbox input{accent-color:var(--accent)}.stats{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.stat{display:flex;align-items:baseline;gap:6px;background:var(--surface-2);border-radius:var(--radius);padding:10px 14px}.stat strong{font-size:1.4rem;font-weight:600;color:var(--accent)}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:.92rem}.table th{text-align:left;font-weight:500;color:var(--muted);font-size:.82rem;padding:8px 10px;border-bottom:1px solid var(--border);white-space:nowrap}.table td{padding:10px;border-bottom:1px solid var(--border);vertical-align:middle}.table tr:last-child td{border-bottom:0}.table .num{text-align:right;white-space:nowrap}.panel-title-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.panel-title-row h2{margin:0}.journal{list-style:none;margin:0 0 12px;padding:0}.journal-item{display:flex;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}.journal-item:last-child{border-bottom:0}.journal-icon{width:28px;height:28px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:var(--surface-2);font-size:.85rem}.type-download_image .journal-icon{background:#e8d5b526;color:var(--accent)}.type-login_failed .journal-icon{background:#ff8a801f;color:var(--danger)}.journal-text{flex:1;min-width:0;overflow-wrap:anywhere}.journal-text a{color:var(--accent)}.journal-item time{white-space:nowrap}.detail-filter{flex-wrap:wrap;margin-bottom:16px;border-radius:14px}.activity-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.activity-tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.activity-tile img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.activity-tile.is-untouched img{opacity:.35}.activity-tile-info{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 8px}.tag{font-size:.75rem;border-radius:99px;padding:2px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tag-download{background:var(--accent);color:var(--accent-text);font-weight:600}.tag-view{background:var(--surface-2)}@media(max-width:600px){.filters select{flex:1 1 100%}.activity-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.tabs a{padding:6px 10px}}.signature{display:block;flex-shrink:0;background-color:var(--accent);-webkit-mask:url(/api/signature) center / contain no-repeat;mask:url(/api/signature) center / contain no-repeat}.signature-placeholder{display:block}.brand{display:flex;align-items:center;min-height:36px}.topbar{height:68px;padding-top:0;padding-bottom:0}.signature-topbar{height:48px;transition:opacity .15s}.brand:hover .signature-topbar{opacity:.8}.signature-placeholder.signature-topbar{width:110px}.login-card h1{display:flex;justify-content:center;min-height:72px;align-items:center}.signature-login{height:72px}@media(max-width:600px){.topbar{height:58px}.signature-topbar{height:38px}}.skeleton{position:relative;overflow:hidden;background:var(--surface-2)}.skeleton:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.05),transparent);animation:skeleton-shine 1.4s ease-in-out infinite}@keyframes skeleton-shine{to{transform:translate(100%)}}.skeleton-card{pointer-events:none}.skeleton-card .shooting-info{gap:10px;padding-top:16px}.skeleton-line{height:14px;border-radius:7px}.skeleton-line-small{height:11px;margin-top:8px}.skeleton-title{height:30px;border-radius:8px}.skeleton-pill{height:38px;border-radius:99px;max-width:45%}.skeleton-fill{position:absolute;top:0;right:0;bottom:0;left:0}.tile.skeleton{cursor:default}.shooting-cover{position:relative}.fade-image{opacity:0;transition:opacity .35s ease}.fade-image.is-loaded{opacity:1}@media(prefers-reduced-motion:reduce){.skeleton:after{animation:none}.fade-image{transition:none}}.gallery-admin{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.switch{display:inline-flex;align-items:center;gap:10px;font-size:.9rem;cursor:pointer;-webkit-user-select:none;user-select:none}.switch input{position:absolute;opacity:0;pointer-events:none}.switch-track{position:relative;width:38px;height:22px;flex-shrink:0;border-radius:99px;background:var(--surface-2);border:1px solid var(--border);transition:background .15s}.switch-track:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--muted);transition:transform .15s,background .15s}.switch input:checked+.switch-track{background:var(--accent);border-color:var(--accent)}.switch input:checked+.switch-track:after{transform:translate(16px);background:var(--accent-text)}.switch input:focus-visible+.switch-track{outline:2px solid var(--accent);outline-offset:2px}.switch input:disabled+.switch-track{opacity:.5}.panel-switch{margin-bottom:16px}.raw-note{font-size:.88rem;color:var(--muted)}.protected,.protected img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.protected img{pointer-events:none}.tile.protected{pointer-events:auto}.protect-layer{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.tile-open{all:unset;display:block;width:100%;cursor:pointer}.tile-open:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.like-btn{position:absolute;right:6px;bottom:6px;z-index:3;width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:50%;background:#00000073;color:#fff;cursor:pointer;opacity:0;transition:opacity .15s,transform .15s,color .15s}.tile:hover .like-btn,.like-btn:focus-visible,.like-btn.is-liked{opacity:1}.like-btn:active{transform:scale(.88)}.like-btn.is-liked{color:#ff5a6e}@media(hover:none){.like-btn{opacity:.85;width:30px;height:30px}}.like-badge{position:absolute;right:6px;bottom:6px;z-index:3;font-size:.78rem;font-weight:600;padding:3px 8px;border-radius:99px;background:#0009;color:#ff8a98;pointer-events:auto}.btn-fav.is-active{background:#ff5a6e24;border-color:#ff5a6e80;color:#ff8a98}.btn-like{display:inline-flex;align-items:center;gap:8px}.btn-like.is-liked{color:#ff5a6e;border-color:#ff5a6e80}.like-badge-inline{color:#ff8a98;font-size:.9rem}.lightbox-bottom{gap:12px}.like-burst{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:grid;place-items:center;color:#ff5a6e;pointer-events:none;animation:like-burst .8s ease-out forwards}.like-burst svg{width:96px;height:96px;filter:drop-shadow(0 4px 16px rgba(0,0,0,.5))}@keyframes like-burst{0%{opacity:0;transform:scale(.4)}20%{opacity:1;transform:scale(1.1)}40%{transform:scale(1)}to{opacity:0;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.like-burst{animation-duration:.01s}}.liked-count{color:#ff8a98;font-weight:600}.tag-like{background:#ff5a6e2e;color:#ff8a98;font-weight:700}.activity-tile-info{flex-wrap:wrap}.type-like_image .journal-icon{background:#ff5a6e24;color:#ff8a98}.access-list li.access-row{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:var(--radius);padding-right:10px}.access-list li.access-row.is-checked{border-color:var(--accent);background:#e8d5b50f}.access-list li.access-row>label:first-child{flex:1;min-width:0;border:0;background:transparent}.switch-small{gap:6px;font-size:.78rem;font-weight:600;color:var(--muted);flex-shrink:0}.switch-small .switch-track{width:30px;height:18px}.switch-small .switch-track:after{width:12px;height:12px}.switch-small input:checked+.switch-track:after{transform:translate(12px)}.panel-hint{margin:0 0 12px}.access-list .switch-small{border:0;padding:0;background:none}
