/* Vannatter Ventures gallery — quiet, grayscale, photo-first.
   Only color on the page: the red logo mark and the photos themselves. */
:root {
  --bg: #111315;
  --bg-raise: #16191b;
  --bg-pop: #1b1e21;
  --line: #262a2e;
  --line-2: #33383d;
  --hover: #202427;
  --active: #2a2e33;
  --text: #b4b8bc;
  --text-hi: #cfd2d5;      /* brightest text on the page — never pure white */
  --text-2: #8a8f94;
  --muted: #62676c;
  --sel: #8ea2b6;
  --heart: #e0262b;        /* brand red (logo), used only for hearted photos */
  --tile: 200px;
  --radius: 2px;
  --head: 48px;
  --sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --track: 0.18rem;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 300 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body { background: var(--bg) url("/assets/bg.jpg") center / cover fixed; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: rgba(13, 15, 17, 0.72); }
body.noscroll { overflow: hidden; }
a { color: inherit; }
strong, b { font-weight: 600; }
svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
[hidden] { display: none !important; }
kbd { font: 400 10px var(--sans); border: 1px solid var(--line-2); border-radius: 3px; padding: 0 4px; margin: 0 1px; color: var(--text-2); }
::selection { background: var(--active); }

/* ---------- controls */
.ibtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 30px; height: 30px; padding: 0 7px; border: 0; border-radius: 4px;
  background: transparent; color: var(--text-2); font: 400 12px var(--sans); cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s;
}
.ibtn:hover { background: var(--hover); color: var(--text-hi); }
.ibtn.on { color: var(--text-hi); background: var(--active); }
.tbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 3px;
  background: transparent; color: var(--text); font: 400 10.5px var(--sans); letter-spacing: .12rem; text-transform: uppercase;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.tbtn:hover { background: var(--hover); border-color: #444a50; color: var(--text-hi); }
.tbtn:disabled { opacity: .35; cursor: default; }
.tbtn.strong { background: var(--active); border-color: #444a50; color: var(--text-hi); }
.tbtn.strong:hover { background: #33383d; }
.tbtn.block { display: flex; width: 100%; height: 36px; margin-top: 22px; }
.tbtn.block span { color: var(--muted); letter-spacing: .05rem; }

/* ---------- header (one slim row) */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px;
  height: var(--head); padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: rgba(14, 16, 18, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand-logo { flex: none; display: flex; align-items: center; opacity: .95; transition: opacity .2s; }
.brand-logo:hover { opacity: 1; }
.brand-logo img { height: 30px; width: auto; display: block; }
.brand-title { flex: none; margin: 0; font: 400 11.5px/1 var(--sans); letter-spacing: .26rem; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.albumbar { display: flex; align-items: center; gap: 2px; min-width: 0; height: 100%; overflow-x: auto; scrollbar-width: none; margin-left: 8px; }
.albumbar::-webkit-scrollbar { display: none; }
.albumbar button {
  flex: none; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 10px;
  border: 0; background: none; color: var(--muted); font: 400 11px var(--sans); letter-spacing: var(--track); text-transform: uppercase; cursor: pointer;
  transition: color .15s;
}
.albumbar button span { letter-spacing: 0; color: var(--muted); opacity: .8; font-size: 10.5px; }
.albumbar button:hover { color: var(--text); }
.albumbar button.active { color: var(--text-hi); }
.albumbar button.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 1px; background: var(--text-2); }
.albumbar .pick svg { width: 11px; height: 11px; opacity: .8; }
.bar-sep { flex: none; width: 1px; height: 14px; background: var(--line-2); margin: 0 8px; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: none; }
.views { display: flex; gap: 0; margin-right: 6px; }
.views button { min-width: 28px; height: 28px; padding: 0 6px; border: 0; border-radius: 3px; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color .15s, background .15s; }
.views button:hover { color: var(--text); }
.views button.active { color: var(--text-hi); background: var(--hover); }
.views svg { width: 15px; height: 15px; }
#favFilter svg { width: 14px; height: 14px; }

/* menus */
.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 210px; padding: 6px;
  background: var(--bg-pop); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
}
.menu-pop a, .menu-pop button {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 4px; background: none;
  color: var(--text); font: 400 13px var(--sans); text-align: left; text-decoration: none; cursor: pointer;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--hover); color: var(--text-hi); }
.menu-pop form { margin: 0; }
.menu-label { display: block; padding: 8px 10px 4px; font-size: 10px; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-note { padding: 6px 10px 4px; font-size: 11px; color: var(--muted); }
.menu-radio button::before { content: ""; width: 12px; flex: none; }
.menu-radio button.on::before { content: "✓"; color: var(--text-2); }
.menu-pop input[type=range] { width: calc(100% - 20px); margin: 4px 10px 8px; accent-color: #7d8288; }

/* organize bar (admin) */
.orgbar {
  position: sticky; top: var(--head); z-index: 15; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 8px 16px; background: rgba(22, 25, 27, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); font-size: 13px;
}
.org-sel { color: var(--text-2); min-width: 110px; }
.org-targets, .org-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.org-actions { margin-left: auto; }
#orgTargets .tbtn:not(:disabled) { border-color: var(--sel); color: var(--text-hi); }

/* proofing note (families) */
.proof-note { display: flex; align-items: center; gap: 12px; margin: 12px 12px 0; padding: 9px 8px 9px 14px; border: 1px solid var(--line); border-radius: 3px; background: rgba(20, 23, 25, .7); }
.proof-note p { flex: 1; margin: 0; font-size: 13px; color: var(--text-2); }
.proof-note strong { color: var(--text); font-weight: 400; letter-spacing: .03rem; }
@media (max-width: 760px) { .proof-note { margin: 8px 6px 0; } .proof-note p { font-size: 12.5px; } }

/* ---------- views */
main { padding: 12px 12px; min-height: calc(100vh - var(--head) - 90px); }
.empty { text-align: center; padding: 80px 0; letter-spacing: .1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--tile), 45vw), 1fr)); gap: 6px; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: #181b1e; cursor: zoom-in; }
.grid .tile { aspect-ratio: 1; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.grid .tile:hover img, .gallery .tile:hover img { transform: scale(1.025); }
.tile figcaption {
  position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; gap: 8px; padding: 26px 10px 7px;
  font-size: 11px; color: #c3c6c9; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); opacity: 0; transition: opacity .2s; pointer-events: none;
}
.tile figcaption span:last-child { color: #9a9ea2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile:hover figcaption { opacity: 1; }
.fav {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(10, 12, 14, .42); color: #c3c6c9; cursor: pointer; opacity: 0; transition: opacity .2s, transform .15s;
}
.fav svg, #lbFav svg, #sliderFav svg, #favFilter svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.fav svg { width: 15px; height: 15px; }
.fav.on svg, #lbFav.on svg, #sliderFav.on svg, #favFilter.on svg { fill: currentColor; }
.tile:hover .fav, .fav.on { opacity: 1; }
.fav.on { color: var(--heart); background: rgba(10, 12, 14, .6); }
#lbFav.on, #sliderFav.on, #favFilter.on, #favFilter svg { color: var(--heart); }
.albumbar .pick svg { color: var(--heart); opacity: 1; }
/* hearted tiles: a thin red line along the bottom so they read at a glance in any view */
.tile:has(.fav.on)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--heart); pointer-events: none; }
.list tr.tile:has(.fav.on)::after { display: none; }
.list tr.tile:has(.fav.on) td:first-child { box-shadow: inset 2px 0 0 var(--heart); }
.fav:active { transform: scale(.88); }
@media (hover: none) { .fav { opacity: .9; } .tile figcaption { display: none; } .hide-touch { display: none !important; } }

/* who favorited (admin) */
.picks { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 3px; }
.picks span { position: relative; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(12, 14, 16, .78); color: var(--text-hi); font: 600 10px var(--sans); }
.picks b { position: absolute; top: -1px; right: -1px; width: 6px; height: 6px; border-radius: 50%; background: #9aa0a6; box-shadow: 0 0 0 1.5px rgba(12, 14, 16, .9); }

.gallery .jrow { display: flex; gap: 6px; margin-bottom: 6px; }
.gallery .tile { flex: none; height: 100%; }

/* organize state */
.check { display: none; position: absolute; top: 7px; left: 7px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c3c6c9; background: rgba(0, 0, 0, .3); place-items: center; }
.check svg { width: 14px; height: 14px; opacity: 0; }
.organizing .tile { cursor: pointer; }
.organizing .check { display: grid; }
.organizing .fav, .organizing .picks { display: none; }
.tile.sel { outline: 2px solid var(--sel); outline-offset: -2px; }
.tile.sel .check { background: var(--sel); border-color: var(--sel); color: #111; }
.tile.sel .check svg { opacity: 1; }
.organizing .tile.sel img { transform: scale(.95); }
.badges { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.badges span { font-size: 10px; letter-spacing: .05rem; padding: 1px 7px; border-radius: 999px; background: rgba(12, 14, 16, .8); color: var(--text-hi); }
.badges span.none { color: var(--muted); }

/* slider view */
.slider { display: flex; flex-direction: column; height: calc(100vh - var(--head) - 36px); height: calc(100dvh - var(--head) - 36px); min-height: 380px; }
.slider-stage { position: relative; flex: 1; min-height: 0; background: rgba(8, 9, 10, .6); border-radius: var(--radius); overflow: hidden; }
.slider-track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .4s ease; cursor: zoom-in; }
.slide.in { opacity: 1; }
.slider-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 2px; }
.slider-caption { font-size: 13px; color: var(--text-2); }
.slider-caption strong { color: var(--text); font-weight: 400; }
.slider-actions { display: flex; gap: 2px; }
.filmstrip { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.filmstrip img { height: 64px; width: auto; border-radius: 2px; opacity: .35; cursor: pointer; scroll-snap-align: center; transition: opacity .2s; }
.filmstrip img:hover { opacity: .7; }
.filmstrip img.active { opacity: 1; }

.nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10, 12, 14, .35); color: #a5a9ad; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s;
}
.nav svg { width: 22px; height: 22px; fill: none; }
.slider-stage:hover .nav, .lb-stage:hover .nav { opacity: .8; }
.nav:hover { opacity: 1 !important; background: rgba(10, 12, 14, .6); }
.nav.prev { left: 12px; } .nav.next { right: 12px; }
@media (hover: none) { .nav { display: none; } }

/* details list */
.list table { width: 100%; border-collapse: collapse; font-size: 13px; }
.list th { text-align: left; font-weight: 400; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: var(--track); padding: 8px; border-bottom: 1px solid var(--line); }
.list td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text-2); }
.list td strong { color: var(--text); font-weight: 400; }
.list tr.tile { display: table-row; background: none; cursor: pointer; }
.list tr.tile:hover td { background: rgba(32, 36, 39, .6); }
.list td img { width: 56px; height: 56px; object-fit: cover; border-radius: 2px; display: block; }
.list .row-actions { display: flex; gap: 2px; align-items: center; justify-content: flex-end; height: 68px; }
.list .fav { position: static; opacity: 1; background: none; color: var(--text-2); }
.list .fav.on { color: var(--heart); background: none; }
.list tr.sel td { background: rgba(142, 162, 182, .12); }
@media (max-width: 800px) { .list th:nth-child(n+4), .list td:nth-child(n+4):not(.row-actions) { display: none; } }

/* ---------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: #0a0b0c; display: grid; grid-template-columns: 1fr; }
.lightbox.with-info { grid-template-columns: 1fr 300px; }
.lb-stage { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 48px 12px 12px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; transition: opacity .25s; }
.lb-stage img.loading { opacity: .2; }
.lb-stage.zoomed { overflow: auto; display: block; padding: 0; cursor: grab; }
.lb-stage.zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-stage.zoomed .nav { display: none; }
.lb-spinner { position: absolute; width: 28px; height: 28px; border: 1.5px solid rgba(160, 165, 170, .2); border-top-color: #8a8f94; border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  height: 48px; padding: 0 8px 0 16px; padding-top: env(safe-area-inset-top);
}
.with-info .lb-top { right: 300px; }
.lb-pos { font-size: 12px; color: var(--text-2); letter-spacing: .05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pos .of { color: var(--muted); }
.lb-pos .lb-name { color: var(--muted); margin-left: 14px; }
.lb-actions { display: flex; gap: 2px; flex: none; }
.lb-actions .ibtn { width: 34px; height: 34px; color: #8a8f94; }
.lb-actions .ibtn svg { width: 17px; height: 17px; }
.lb-actions .ibtn:hover { color: var(--text-hi); background: rgba(40, 44, 48, .7); }
#lbPlay.on, #lbInfo.on, #lbZoom.on { color: var(--text-hi); background: rgba(40, 44, 48, .7); }

.lb-info { background: #0f1113; border-left: 1px solid #1d2023; padding: 18px 22px 28px; overflow-y: auto; font-size: 12.5px; color: var(--text-2); }
.lb-info h3 { margin: 6px 0 18px; font: 400 11px var(--sans); letter-spacing: var(--track); text-transform: uppercase; color: var(--text-2); word-break: break-all; }
.lb-info h4 { display: flex; justify-content: space-between; margin: 22px 0 8px; font: 400 10px var(--sans); letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.lb-info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.lb-info dt { color: var(--muted); }
.lb-info dd { margin: 0; text-align: right; color: var(--text-2); }
.lb-info a { color: var(--text-2); }
.lb-info .hint { color: var(--muted); font-style: italic; margin: 20px 0 0; }
.lb-info .saved { color: var(--text-2); letter-spacing: .05rem; text-transform: none; }
.note {
  width: 100%; resize: vertical; min-height: 64px; padding: 8px 10px; border-radius: 3px; border: 1px solid var(--line-2);
  background: #15181a; color: var(--text); font: 300 13.5px/1.45 var(--sans);
}
.note:focus { outline: 0; border-color: #4a5056; }
.note::placeholder { color: var(--muted); }
.pickers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pickers li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; }
.pickers li span { color: var(--text); }
.pickers time { color: var(--muted); font-size: 11px; }
.pickers q { grid-column: 1 / -1; color: var(--text-2); font-style: italic; quotes: "“" "”"; }
.kbd-help { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 2.1; }
.lb-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #4a5056; z-index: 6; }
.lightbox:not(.playing) .lb-progress { display: none; }
.lightbox.playing .lb-stage img { transition: opacity .6s; }

/* ---------- dialog, toast, footer */
.dlg { width: min(420px, calc(100% - 32px)); background: var(--bg-pop); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: 22px; }
.dlg::backdrop { background: rgba(0, 0, 0, .6); }
.dlg h2 { margin: 0 0 8px; font: 400 12px var(--sans); letter-spacing: var(--track); text-transform: uppercase; color: var(--text-2); }
.dlg p { font-size: 13px; margin: 0 0 14px; }
.album-row { display: flex; gap: 6px; margin: 6px 0; }
.album-row input { flex: 1; height: 34px; padding: 0 10px; border-radius: 3px; border: 1px solid var(--line-2); background: #15181a; color: var(--text); font: 300 15px var(--sans); }
.album-row input:focus { outline: 0; border-color: #4a5056; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 18px; }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200;
  background: var(--bg-pop); color: var(--text-hi); border: 1px solid var(--line-2); padding: 8px 16px; border-radius: 4px;
  font-size: 12.5px; letter-spacing: .03rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); white-space: nowrap;
}

.site-foot { text-align: center; padding: 26px 16px calc(30px + env(safe-area-inset-bottom)); }
.site-foot a { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--muted); font-size: 10px; letter-spacing: var(--track); text-transform: uppercase; transition: color .2s; }
.site-foot a:hover { color: var(--text-2); }
.site-foot img { height: 16px; width: auto; opacity: .7; }

/* ---------- login */
.login-body { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-wrap { display: flex; flex-direction: column; align-items: center; width: min(420px, 100%); }
.login-logo img { height: 64px; width: auto; display: block; }
.login-stem { width: 1px; height: 2.6rem; background: var(--line-2); }
.login-card { width: 100%; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 2.2rem 1.25rem; text-align: center; }
.login-card h1 { margin: 0 0 .5rem; padding-left: .4rem; font: 300 1.6rem/1.3 var(--sans); letter-spacing: .4rem; text-transform: uppercase; color: var(--text-hi); }
.login-card > p:not(.login-error):not(.login-note) { margin: 0 auto; font-size: .72rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.login-card input {
  width: 100%; height: 42px; margin: 1.6rem 0 10px; padding: 0 12px; border-radius: 3px; border: 1px solid var(--line-2);
  background: #15181a; color: var(--text-hi); font: 300 16px var(--sans); text-align: center; letter-spacing: .05rem;
}
.login-card input::placeholder { color: var(--muted); }
.login-card input:focus { outline: 0; border-color: #4a5056; }
.login-card .tbtn.block { margin-top: 0; height: 40px; }
.login-error { color: #b98a8a; font-size: 13px; margin: 0 0 10px; }
.login-note { margin: 1rem auto 0; max-width: 320px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.login-foot { margin: .9rem 0 0; font-size: .65rem; letter-spacing: var(--track); text-transform: uppercase; }
.login-foot a { color: var(--muted); text-decoration: none; }
@media (max-width: 480px) { .login-card h1 { font-size: 1.25rem; letter-spacing: .28rem; } .login-logo img { height: 52px; } }

/* ---------- tablet / phone */
@media (max-width: 900px) {
  .lightbox.with-info { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .with-info .lb-top { right: 0; }
  .lb-info { max-height: 44vh; max-height: 44dvh; border-left: 0; border-top: 1px solid #1d2023; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .lb-pos .lb-name { display: none; }
}
@media (max-width: 760px) {
  :root { --head: 46px; }
  /* row 1: logo · title · tools   row 2: album tabs */
  .topbar { flex-wrap: wrap; height: auto; gap: 0 12px; padding-top: env(safe-area-inset-top); }
  .brand-logo, .brand-title, .tools { height: var(--head); display: flex; align-items: center; }
  .brand-logo img { height: 26px; }
  .brand-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; letter-spacing: .2rem; }
  .views { margin-right: 2px; }
  .views button { min-width: 30px; height: 32px; }
  .ibtn { min-width: 32px; height: 32px; }
  .albumbar { order: 5; flex: 1 0 100%; height: 38px; margin: 0 -16px; padding: 0 10px; border-top: 1px solid var(--line); }
  .orgbar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 40; padding-bottom: calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); border-bottom: 0; }
  .org-actions { margin-left: 0; }
  body.organizing main { padding-bottom: 150px; }
  main { padding: 6px; }
  .grid { gap: 3px; }
  .gallery .jrow { gap: 3px; margin-bottom: 3px; }
  .slider { height: auto; min-height: 0; }
  .slider-stage { flex: none; height: 64vh; height: 64dvh; }
  .filmstrip img { height: 52px; }
  .lb-stage { padding: 48px 0 0; }
  .note, .album-row input { font-size: 16px; } /* no iOS focus zoom */
  .menu-pop { position: fixed; top: auto; right: 8px; left: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); min-width: 0; border-radius: 10px; padding: 8px; }
  .menu-pop a, .menu-pop button { padding: 11px 12px; font-size: 15px; }
}
