/* The per-page styles preserve the reference. These rules support local interactions. */
[hidden] { display: none !important; }
a[href="/signup"], button[aria-label="Sign up"] { display: none !important; }
header button.css-ulcce1:not([data-menu-wired]) { display: none; }
.photo-copyright, .photo-description { max-width: 700px; margin: 0 0 16px; color: #bbb; font: 400 14px/1.7 Poppins,sans-serif; overflow-wrap: anywhere; }
.lightbox-caption span { min-width: 0; max-width: 700px; text-align: center; overflow-wrap: anywhere; }
.lightbox-caption p { margin: 0 0 8px; }
.lightbox-caption strong, .lightbox-caption small, .lightbox-caption time, .gallery-photo time { display: block; }
.gallery-photo figcaption p { margin: 0 0 8px; overflow-wrap: anywhere; }
/* Admin views reuse the gallery page tokens (gallery.css) and local-dialog inputs. */
.admin-page { max-width: 1920px; margin: auto; padding: 32px 48px 64px; box-sizing: border-box; color: #f9f9f9; font: 400 14px/1.6 Poppins,sans-serif; }
.admin-page h1 { margin: 24px 0 24px; font-size: clamp(28px,3vw,40px); font-weight: 500; line-height: 1.25; }
.admin-page p { color: #aaa; }
.admin-page a { color: inherit; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 8px 0 24px; margin-bottom: 24px; border-bottom: 1px solid #292929; }
.admin-toolbar h1 { margin: 0; }
body[data-page="admin"] header nav { display: flex; } /* captured CSS hides header nav on narrow screens; admin has no mobile menu */
.admin-toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-left: auto; }
.admin-page button:not(.admin-preview) { min-height: 44px; padding: 10px 20px; border: 1px solid #555; border-radius: 24px; background: transparent; color: #f9f9f9; font: 400 14px/1.5 Poppins,sans-serif; }
.admin-page button:not(.admin-preview):hover { background: #292929; }
.admin-page button.local-primary { border-color: #f9f9f9; background: #f9f9f9; color: #131313; font-weight: 500; }
.admin-page button.local-primary:hover { border-color: #ddd; background: #ddd; }
.admin-page button:disabled { opacity: .4; cursor: default; }
.admin-page label { display: block; margin: 0 0 6px; color: #aaa; }
.admin-page input { display: block; width: 100%; max-width: 480px; box-sizing: border-box; padding: 12px 14px; margin: 0 0 32px; background: #090909; color: #fff; border: 1px solid #333; border-radius: 12px; font: inherit; }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,260px),1fr)); gap: 32px 24px; }
.admin-photos article { min-width: 0; }
.admin-photos img, .admin-photos video { display: block; width: 100%; aspect-ratio: 1.45; height: auto; object-fit: cover; }
.admin-photos .admin-preview { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: #111; overflow: hidden; cursor: zoom-in; }
.admin-preview img, .admin-preview video { transition: transform .4s ease; }
.admin-preview:hover img, .admin-preview:hover video, .admin-preview:focus-visible img, .admin-preview:focus-visible video { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .admin-preview img, .admin-preview video { transition: none; } }
.admin-photos article > div { padding: 10px 0 0; overflow-wrap: anywhere; }
.admin-photos article strong { display: block; font-weight: 400; font-size: 14px; }
.admin-photos article p { margin: 0 0 12px; font-size: 12px; }
.admin-photos article button + button { margin-left: 8px; }
.admin-photos article button:not(.admin-preview) { min-height: 36px; padding: 6px 16px; font-size: 13px; }
.admin-users { overflow-x: auto; border: 1px solid #292929; border-radius: 12px; }
.admin-users table { width: 100%; min-width: 600px; border-collapse: collapse; }
.admin-users th, .admin-users td { padding: 16px 20px; text-align: left; border-bottom: 1px solid #292929; }
.admin-users thead th { color: #aaa; font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.admin-users tbody th { font-weight: 500; overflow-wrap: anywhere; }
.admin-users td { color: #aaa; white-space: nowrap; }
.admin-users tbody tr:hover { background: #1d1d1d; }
.admin-users tbody tr:last-child > * { border-bottom: 0; }
.admin-users th:last-child { text-align: right; }
.admin-users td:last-child { width: 1%; }
.admin-user-actions { display: flex; justify-content: flex-end; gap: 8px; }
.admin-page .admin-status { color: #f36576; }
.admin-page .admin-status:empty { display: none; }
.admin-loading { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: #000000b3; }
.admin-loading::after { content: ""; width: 48px; height: 48px; box-sizing: border-box; border: 4px solid #ffffff33; border-top-color: #f9f9f9; border-radius: 50%; animation: admin-spin .8s linear infinite; }
@keyframes admin-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .admin-page { padding: 20px 24px 40px; } }
@media (max-width: 600px) { .admin-page { padding: 16px 16px 32px; } .admin-toolbar-actions { margin-left: 0; } }
html { scroll-behavior: smooth; }
body { margin: 0; }
body { overflow-x: clip; }
button, [role="button"], [role="tab"], [data-track-id="creator_avatar"], [data-track-id="share_btn"] { cursor: pointer; }
:focus-visible { outline: 2px solid #b4eef0 !important; outline-offset: 4px; }
header [data-header-navigation] > [data-header-highlight] { height: 40px; transition: transform .3s cubic-bezier(.4,.8,.3,1), width .3s cubic-bezier(.4,.8,.3,1), opacity .2s; }
header [data-nav-item="More"] { display: flex; } /* reference hides it >=1280px, but it holds Upload / Guest uploads */
header [data-header-chevron] { transition: transform .18s; }
header [aria-expanded="true"] [data-header-chevron] { transform: rotate(180deg); }
header [data-nav-item]:has([aria-expanded="true"]) a,
header [data-nav-item] [aria-expanded="true"] { color: var(--mui-palette-brandCyan-main,#2b9cb3) !important; }
header [data-nav-item]:has([aria-expanded="true"]) svg path { fill: var(--mui-palette-brandCyan-main,#2b9cb3) !important; }
:has(> .css-1loatah) { display: none !important; } /* captured infinite-scroll spinner; the clone never loads more */
[data-masonry-outer] { width: 100% !important; overflow: visible !important; height: auto !important; }
[data-masonry-host] { width: 100% !important; height: auto !important; }
[data-masonry-grid] { width: 100% !important; max-height: none !important; overflow: visible !important; pointer-events: auto !important; }
[data-masonry-item] { pointer-events: auto; }
[data-photo-card] { position: relative; width: 100%; height: 100%; }
button.local-photo-share { position: absolute; top: 8px; right: 8px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #000a; color: #fff; opacity: 0; pointer-events: none; }
[data-photo-card]:hover .local-photo-share, button.local-photo-share:focus-visible { opacity: 1; pointer-events: auto; }
button.local-photo-share:hover { background: #000; }
[data-photo-card] img { width: 100%; height: 100%; object-fit: cover; }
.card-media-scale img { opacity: 1 !important; }
[data-photo-author-header] { padding: 24px 24px 0; box-sizing: border-box; }
.local-quest-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.local-quest-grid > [data-quest-card] { width: 100% !important; min-width: 0; }
.local-quest-grid [data-quest-card] img { opacity: 1 !important; }
[data-quests-filter-bar] { flex-wrap: wrap; gap: 16px; }
[data-photo-card] [data-track-id="creator_avatar"] { position: relative; z-index: 3; }
.photo-container[role="button"][aria-pressed="true"] > .photo-container { outline: 3px solid white; outline-offset: -3px; }
.photo-container[role="button"][aria-pressed="true"]::after { content: '✓'; position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: #f9f9f9; color: #131313; text-align: center; line-height: 28px; font-weight: 600; }
.photo-container[role="button"] { position: relative; }
.local-menu { position: fixed; z-index: 1500; padding: 8px; min-width: 200px; max-width: calc(100vw - 24px); background: #171717; color: #f9f9f9; border: 1px solid #303030; border-radius: 14px; box-shadow: 0 8px 32px #0008; font: 400 14px/1.5 Poppins, sans-serif; }
.local-menu { transform-origin: top left; }
.local-menu a, .local-menu button { display: block; width: 100%; padding: 11px 14px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-decoration: none; text-align: left; white-space: nowrap; }
.local-menu a:hover, .local-menu button:hover, .local-menu a:focus, .local-menu button:focus { background: #2b2b2b; }
.local-menu hr { border: 0; border-top: 1px solid #333; margin: 6px 8px; }
.local-header-menu { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; border-radius: 12px; background: #131313; box-shadow: 0 8px 10px -6px #0000001a, 0 20px 25px -5px #0000001a; font-family: inherit; font-size: 16px; line-height: 24px; }
.local-header-menu a, .local-header-menu button { display: flex; align-items: center; padding: 10px 12px; transition: border-radius .15s; }
.local-header-menu a:hover, .local-header-menu button:hover, .local-header-menu a:focus, .local-header-menu button:focus { background: #1d1d1d; border-radius: 12px; }
.local-toast { position: fixed; z-index: 3000; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 13px 22px; border: 1px solid #444; border-radius: 12px; max-width: calc(100% - 32px); width: max-content; box-sizing: border-box; background: #242424; color: #f9f9f9; box-shadow: 0 6px 30px #0006; font: 400 14px/1.6 Poppins,sans-serif; }
.local-dialog { border: 1px solid #303030; border-radius: 22px; padding: 30px; background: #131313; color: #f9f9f9; max-width: min(480px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; font: 400 14px/1.6 Poppins,sans-serif; }
.local-dialog::backdrop { background: #0009; }
.local-dialog h2 { margin: 0 32px 24px 0; font-size: 22px; line-height: 1.4; font-weight: 500; }
.local-dialog p { color: #aaa; }
.local-dialog:not(.local-auth) label { display: block; margin: 16px 0 6px; }
.local-dialog:not(.local-auth) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), .local-dialog select, .local-dialog textarea { width: 100%; border: 1px solid #333; border-radius: 12px; padding: 12px 14px; box-sizing: border-box; background: #090909; color: white; font: inherit; }
.local-dialog input[type="checkbox"], .local-dialog input[type="radio"] { accent-color: white; }
.local-dialog #admin-date {
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-size: 20px 20px;
  background-repeat: no-repeat;
}
.local-dialog #admin-date::-webkit-calendar-picker-indicator { width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.local-dialog button.primary, .local-primary { border: 0; border-radius: 12px; background: #f9f9f9; color: #111; padding: 12px 20px; font: 500 14px/1.5 Poppins,sans-serif; cursor: pointer; }
.local-dialog button.primary:disabled { opacity: .4; cursor: default; }
.local-dialog button.secondary { border: 1px solid #444; border-radius: 12px; background: #292929; color: white; padding: 10px 16px; font: inherit; }
.local-close { position: absolute; right: 16px; top: 12px; border: 0; padding: 6px 10px; background: transparent; color: #aaa; font-size: 25px; line-height: 1; cursor: pointer; }
.local-dialog:not(.local-auth) form > button[type="submit"] { margin-top: 22px; width: 100%; }
.upload-mode { display: flex; gap: 20px; margin: 16px 0 0; padding: 0; border: 0; }
.local-dialog .upload-mode label { display: flex; align-items: center; gap: 8px; margin: 0; }
.upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.local-dialog:not(.local-auth) label.upload-pick { display: inline-block; margin: 4px 0 0; border: 1px solid #444; border-radius: 12px; background: #292929; color: #fff; padding: 10px 16px; font-size: 14px; cursor: pointer; }
.upload-input:focus-visible + .upload-pick { outline: 2px solid #f9f9f9; outline-offset: 2px; }
.upload-input:disabled + .upload-pick { opacity: .4; cursor: default; }
.local-dialog .upload-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0 0; font-size: 13px; }
.local-dialog .upload-summary[hidden] { display: none; }
.upload-clear { border: 0; padding: 0; background: none; color: #b4eef0; font: inherit; text-decoration: underline; cursor: pointer; }
.upload-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; max-height: 320px; overflow-y: auto; margin: 10px 0 0; padding: 0; list-style: none; }
.upload-row { position: relative; display: grid; align-content: start; gap: 2px; min-width: 0; font-size: 12px; line-height: 1.4; }
.upload-preview { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #262626; }
.upload-thumb { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb-icon { color: #888; font-weight: 600; letter-spacing: .05em; }
.upload-play { position: absolute; left: 6px; bottom: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #000a; color: #fff; font-size: 10px; }
.upload-remove { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #000b; color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.upload-remove:hover, .upload-remove:focus-visible { background: #000; outline: 2px solid #f9f9f9; }
.upload-remove:disabled, .upload-clear:disabled { opacity: .4; cursor: default; }
.upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-size, .upload-status { color: #aaa; }
.upload-row.bad .upload-status, .local-dialog .upload-msg.bad { color: #f36576; }
button.upload-preview { width: 100%; border: 0; padding: 0; color: #fff; cursor: pointer; }
button.upload-preview:disabled { cursor: default; }
button.upload-preview:focus-visible { outline: 2px solid #f9f9f9; outline-offset: 2px; }
.upload-cover-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: #0009; opacity: 0; transition: opacity .15s; }
.upload-cover-overlay svg { box-sizing: content-box; padding: 8px; border: 1px solid #fff6; border-radius: 50%; background: #000a; }
button.upload-preview:not(:disabled):is(:hover, :focus-visible) .upload-cover-overlay { opacity: 1; }
.upload-cover-dialog { width: min(640px, calc(100vw - 32px)); max-width: none; }
.cover-preview { display: block; width: 100%; max-height: 50dvh; border-radius: 12px; background: #000; object-fit: contain; }
.cover-scrub { position: relative; height: 56px; margin-top: 16px; }
.cover-strip { display: flex; height: 100%; overflow: hidden; border-radius: 8px; background: #262626; }
.cover-strip canvas { flex: 1; min-width: 0; height: 100%; object-fit: cover; opacity: .6; }
.cover-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; appearance: none; background: none; cursor: pointer; }
.cover-range::-webkit-slider-runnable-track { height: 100%; background: none; }
.cover-range::-webkit-slider-thumb { appearance: none; box-sizing: border-box; width: 16px; height: 56px; border: 3px solid #f9f9f9; border-radius: 6px; background: transparent; box-shadow: 0 0 0 1px #000a, inset 0 0 0 1px #000a; }
.cover-range::-moz-range-track { background: none; }
.cover-range::-moz-range-thumb { box-sizing: border-box; width: 16px; height: 56px; border: 3px solid #f9f9f9; border-radius: 6px; background: transparent; box-shadow: 0 0 0 1px #000a, inset 0 0 0 1px #000a; }
.cover-range:focus-visible { outline: 2px solid #f9f9f9; outline-offset: 4px; border-radius: 8px; }
.local-dialog .cover-time { margin: 8px 0 0; color: #f9f9f9; text-align: center; font-variant-numeric: tabular-nums; }
.cover-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.upload-row progress { width: 100%; height: 6px; accent-color: #f9f9f9; }
.local-dialog .upload-msg { margin: 14px 0 0; color: #f9f9f9; }
.upload-msg a { color: #b4eef0; text-decoration: underline; }
.local-auth { padding: 0; width: 408px; border: none; background: transparent; max-width: calc(100vw - 32px); }
.local-auth [role="dialog"] { margin: 0 !important; width: 100% !important; max-width: 100% !important; max-height: none !important; }
.local-auth [data-auth-scope] { position: static !important; inset: auto !important; z-index: auto !important; }
.local-auth form { margin: 0; }
.local-auth form button[type="submit"] { margin-top: 24px; }
.local-auth .auth-notice { margin: 0 32px 24px; font-size: 12px; color: #aaa; text-align: center; }
.local-auth .auth-notice:empty { display: none; }
.local-auth .MuiIconButton-root path { fill: currentColor; }
.local-auth input:focus-visible { outline: none !important; }
.local-auth .MuiOutlinedInput-root:focus-within fieldset { border-color: #f9f9f9; border-width: 2px; }
.local-auth button:focus-visible { outline: 2px solid #f9f9f9; outline-offset: 2px; }
.local-auth form button[type="submit"]:disabled { opacity: .5; cursor: progress; }
.local-liked, .local-liked svg path { color: #f36576 !important; fill: #f36576 !important; }
.local-saved, .local-saved svg path { color: #b4eef0 !important; fill: #b4eef0 !important; }
.local-active { background: #2a2a2a !important; border-radius: 10px; }
.local-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 24px 0; }
.local-grid a { color: white; text-decoration: none; }
.local-grid img, .local-grid video { display: block; width: 100%; aspect-ratio: 1.45; object-fit: cover; background: #111; }
.gallery-photos { columns: 3; column-gap: 24px; }
.gallery-photos.guest-wide { position: relative; columns: auto; }
.gallery-photos.guest-wide > .gallery-photo { margin: 0; min-width: 0; }
.local-profile-panel .gallery-photos { margin-top: 24px; }
.gallery-photo { position: relative; margin: 0 0 24px; break-inside: avoid; }
.gallery-photo > a, .gallery-photo > button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; overflow: hidden; }
.gallery-photo img, .gallery-photo video { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.gallery-photo > :hover img, .gallery-photo > :hover video, .gallery-photo > :focus-visible img, .gallery-photo > :focus-visible video { transform: scale(1.05); }
.gallery-photo video { aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.gallery-media { position: relative; }
.gallery-play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: #000a; color: #fff; display: grid; place-items: center; pointer-events: none; }
.gallery-photo figcaption { padding: 10px 0 0; font-size: 12px; color: #aaa; }
.gallery-photo figcaption strong { display: block; font-weight: 400; color: #f9f9f9; font-size: 14px; }
.local-guest-avatar { width: 100%; height: 100%; border-radius: 50%; background: #242424; display: grid; place-items: center; font-weight: 600; }
.local-grid p { margin: 10px 0 4px; }
.local-grid small { color: #999; }
.local-empty { padding: 60px 20px; text-align: center; color: #999; font: 400 15px Poppins,sans-serif; }
.local-gallery-layout { padding: 32px 0; }
.local-collection-card { position: relative; }
.local-album { position: relative; }
.local-album > a { display: block; }
button.local-delete { position: absolute; top: 8px; left: 8px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #000a; color: #fff; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.local-delete[hidden] { display: none; }
.local-delete:hover, .local-lightbox .local-delete:hover { background: #d32f2f; }
.gallery-photo:hover .local-delete, .local-album:hover .local-delete, .local-delete:focus-visible { opacity: 1; }
@media (hover: none) { button.local-delete { opacity: 1; } }
.local-collection-card > span { position: absolute; bottom: 15px; left: 15px; color: #fff; text-shadow: 0 1px 8px #000; font-size: 18px; }
.local-comment-form { display: flex; width: 100%; gap: 10px; }
.local-comment-form input { border: 0; outline: 0; flex: 1; min-width: 0; color: #fff; background: transparent; font: inherit; }
.local-comment-form button { border: 0; background: none; color: white; font: inherit; }
.local-new-comment { padding: 16px 0; border-bottom: 1px solid #222; color: #ddd; }
.local-new-comment strong { display: block; margin-bottom: 6px; color: white; }
.local-lightbox { max-width: calc(100vw - 32px); width: max-content; height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #050505; }
.local-lightbox[open] { display: flex; flex-direction: column; justify-content: center; }
.lightbox-description { width: 0; min-width: 100%; box-sizing: border-box; max-height: 22dvh; overflow-y: auto; padding: 16px 72px 12px; color: #ddd; font: 400 14px/1.7 Poppins,sans-serif; text-align: center; overflow-wrap: anywhere; }
.local-lightbox img, .local-lightbox video { display: block; flex: 0 1 auto; min-width: 0; min-height: 0; width: 100%; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.local-lightbox .lightbox-description, .local-lightbox .lightbox-caption { flex: 0 0 auto; }
.local-lightbox .lightbox-caption { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; max-height: 40dvh; overflow-y: auto; box-sizing: border-box; padding: 12px 18px; }
.lightbox-caption time { align-self: center; color: #aaa; font-size: 12px; text-align: center; }
.local-lightbox button { background: #222; color: white; border: 0; border-radius: 8px; padding: 6px 14px; font: inherit; }
.local-lightbox [data-slide] { position: fixed; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; background: #0009; }
.local-lightbox [data-slide]:is(:hover,:focus-visible) { background: #444; }
.local-lightbox [data-slide="previous"] { left: 8px; }
.local-lightbox [data-slide="next"] { right: 8px; }
.local-lightbox .local-close { background: #0008; z-index: 2; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; font-size: 36px; line-height: 1; }
.local-lightbox .local-delete { opacity: 1; top: 12px; left: 16px; width: 48px; height: 48px; padding: 0; border-radius: 50%; background: #0008; }
.local-upload-preview { display: block; max-width: 100%; max-height: 240px; margin-top: 16px; object-fit: contain; }
.local-selection { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 16px 0; }
.local-selection button { border: 2px solid transparent; padding: 0; background: transparent; border-radius: 6px; overflow: hidden; cursor: pointer; }
.local-selection button[aria-pressed="true"] { border-color: #b4eef0; }
.local-selection img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
[data-leaderboard-host], [data-leaderboard-list], [data-leaderboard-rows] { width: 100% !important; height: auto !important; max-width: none !important; max-height: none !important; overflow: visible !important; }
[data-leaderboard-list], [data-leaderboard-rows] { pointer-events: auto !important; }
[data-leaderboard-view] a { color: inherit; text-decoration: none; }
[data-leaderboard-view] .row-thumb-container img { opacity: 1 !important; }
[data-leaderboard-strip] { flex-shrink: 0; }
.local-mobile-nav { display: none; }
@media (min-width: 1280px) {
  .local-grid.guest-wide { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .local-quest-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .local-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .gallery-photos { columns: 2; column-gap: 16px; }
  .gallery-photo { margin-bottom: 20px; }
}
@media (max-width: 600px) {
  .local-quest-grid { grid-template-columns: minmax(0,1fr); }
  [data-photo-author-header] { padding: 16px 16px 0; }
  .local-dialog { padding: 24px; }
  .local-auth, .local-lightbox { padding: 0; }
  .local-toast { bottom: 16px; font-size: 12px; }
  .local-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-photos { column-gap: 10px; }
  .gallery-photo { margin-bottom: 18px; }
  .gallery-photo figcaption strong { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* "Log in" becomes "My account" once the session loads; reserve its width so the header does not shift */
html.signed-in header button.css-ulcce1 { min-width: 126.5625px; }
/* Hide onboarding while a saved session redirects to Discover. */
html.signed-in body[data-page="welcome"] { visibility: hidden; }
