/* Photos. Since photos-v19 (the owner picked "Both"): MUSIC'S SHAPE ON GEMS' GROUND — Music's heavy large title, the
 * initial in a circle and the chips; Gems' cool slate ground (deep navy at night), small tracked capitals for section
 * labels and rounded numbers; one accent, APPLE'S SYSTEM BLUE (the owner: "apple uses a more blue blue" — not Music's
 * pink, not the icon's purple-blue). Was Scan's tokens (myjp cloud's teal) until v18.
 *
 * THE STAGE (photos-v11, ~/claude/IOS.md §25 — News' and Music's recipe): the document never scrolls
 * under a finger. #page scrolls inside a screen-tall #stage, and the DOCK, the VIEWER and the SHEETS are
 * its siblings, absolute in the stage — never position: fixed (a fixed layer is clipped a status bar
 * short, §15) — so a tap on the dock is never eaten by a grid still coasting after a flick. Every top
 * inset goes through --top once (§1). Solid bars, no backdrop-filter (§24).
 */
:root {
  --bg: #e4e8ef; --panel: #fff; --line: rgba(60,60,67,.16); --ink: #000; --ink-2: #3c3c43; --dim: #8a8a8e; --pill: #d6dce6;
  --accent: #007aff; --on-accent: #fff; --bad: #e5322b; --r: 20px; --tile-bg: #d3d9e3; --seg-on: #fff;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.06);
  --font: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-round: "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --glass-t: 20px;
  --sb: 0px;                           /* installed: the status bar's height (IOS.md §25), set by app.js seat() */
  --top: calc(env(safe-area-inset-top, 0px) + var(--sb) + var(--glass-t));
  --bottom: env(safe-area-inset-bottom, 0px);
  --dock-h: 0px; --kb: 0px;            /* set by app.js: the dock's height; what the keyboard covers */
  --tile: 124px;                       /* the grid's tile size: pinch the grid to change it (app.js setZoom) */
  --ease: cubic-bezier(.22,.8,.24,1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f151d; --panel: #1a222c; --line: rgba(120,140,170,.22); --ink: #fff; --ink-2: #d7d7db; --dim: #98a1ae; --pill: #26303c;
          --accent: #0a84ff; --on-accent: #fff; --bad: #ff453a; --tile-bg: #1a222c; --seg-on: #3a4553; --shadow: none; }
}
* { box-sizing: border-box; }
/* No double-tap zoom anywhere (IOS.md §27: touch-action is not inherited past a scroller) */
*, *::before, *::after { touch-action: manipulation; }
[hidden] { display: none !important; }

/* THE STAGE. Installed, the body is the screen's height and app.js holds the document scrolled by the
   status bar (seat()), so the stage's top is the screen's top. In a browser tab the body is the visible area. */
html { overflow: hidden; overscroll-behavior: none; background: var(--bg); }
body { position: relative; height: 100vh; height: 100dvh; overflow: hidden; margin: 0; background: var(--bg); color: var(--ink);
       font: 16px/1.4 var(--font); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
@media (display-mode: standalone) {
  :root { --sb: calc(100lvh - 100dvh); }
  body { height: 100vh; height: 100lvh; height: var(--stage-h, 100lvh); }
}
#stage { position: absolute; inset: 0; overflow: hidden; }
#page { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
button { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; }
/* chrome is not text: no selecting a label, no callout on a long press */
button, .dock, .bar, .seg, .found, .view, .row, .day, .album { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

.app { max-width: 1100px; margin: 0 auto; padding: 0 16px calc(28px + max(var(--dock-h), var(--kb))); }
.screen { display: none; padding-top: calc(4px + var(--top)); }
.screen.on { display: block; }

/* ── the large title at the top of each screen (Photos' own: the title, a count under it) ── */
.bar { display: flex; align-items: flex-end; gap: 10px; min-height: 52px; padding: 6px 0 10px; }
.bar-title { flex: 1; min-width: 0; }
.bar h1 { font: 800 34px/1.12 var(--font); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .sub { margin: 2px 0 0; color: var(--dim); font: 600 14px var(--font-round); min-height: 1em; }
/* the initial in a circle (Music's): your account and storage, in More */
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; margin-bottom: 6px; display: grid; place-items: center;
      background: var(--accent); color: var(--on-accent); font: 700 16px var(--font); cursor: pointer; }
.pill-btn { flex: none; border: 0; border-radius: 999px; padding: 7px 15px; margin-bottom: 4px; background: var(--pill); color: var(--ink);
            font-size: 15px; font-weight: 600; cursor: pointer; }
.pill-btn.on { background: var(--accent); color: var(--on-accent); }

.dim { color: var(--dim); font-size: 14px; }
.icon-btn { background: none; border: 0; color: var(--accent); padding: 6px; font: inherit; font-size: 18px; cursor: pointer; }
.card { background: var(--panel); border-radius: var(--r); padding: 16px; margin: 12px 0; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 8px; font-size: 20px; } .card h3 { margin: 0 0 10px; font-size: 17px; }
.centre { text-align: center; padding: 28px 20px; max-width: 420px; margin: 40px auto; }
.note { color: var(--ink-2); font-size: 14.5px; margin: 6px 0; }
.btn { display: inline-block; background: var(--panel); color: var(--accent); border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; margin-top: 10px; }
.btn.small { padding: 5px 11px; font-size: 14px; border-radius: 9px; }
.btn.danger { color: var(--bad); }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 15px; letter-spacing: .06em; background: var(--bg); padding: 3px 7px; border-radius: 6px; user-select: all; -webkit-user-select: all; }
.steps { padding-left: 20px; margin: 0; } .steps li { margin: 8px 0; font-size: 15px; }
.addr { text-align: center; color: var(--dim); font-size: 13px; margin-top: 24px; }

/* ── tools under the title: Days · Months (Library), the search field (Search) ── */
.tools { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; }
.seg { display: flex; background: var(--pill); border-radius: 999px; padding: 3px; flex: none; }
.seg button { border: 0; background: none; color: var(--ink-2); font-size: 14px; font-weight: 600; padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.seg button[aria-selected="true"], .seg.keep button[aria-checked="true"] { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg.keep { margin: 4px 0 8px; width: max-content; max-width: 100%; }
.search { flex: 1; min-width: 0; position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.search input { width: 100%; font: inherit; font-size: 17px; padding: 10px 12px 10px 36px; border-radius: 12px; border: 0; background: var(--pill); color: var(--ink); -webkit-appearance: none; appearance: none; outline: none; }
.found { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--ink-2); font-size: 14px; margin: 0 0 10px; }
.found-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.found-acts:empty { display: none; }
.inline-edit { display: block; margin-top: 8px; width: 100%; font: inherit; font-size: 16px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.hints .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hints .chips button { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--panel); color: var(--ink); font-size: 15px; cursor: pointer; box-shadow: 0 0 0 .5px var(--line); }

/* ── THE GRID: edge to edge on a phone, square tiles, hairline gaps (Apple's Photos) ── */
#grid { display: block; }
.day { margin: 18px 0 7px; font-size: 15px; font-weight: 700; color: var(--ink); }
/* a section's label (Gems'): small tracked capitals — Pinned, My albums, Media Types, Utilities, Settings */
.day.lbl { margin: 22px 4px 8px; font: 600 12.5px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.day.lbl:first-child { margin-top: 4px; }
/* the chips under Albums' title (Music's Library chips): the places people go most */
.chips-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 6px; padding: 2px 16px 4px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chips-row button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--panel);
                    color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.chips-row svg { width: 17px; height: 17px; color: var(--accent); }
.day small { font-weight: 500; color: var(--dim); font-size: 13px; margin-left: 6px; }
.day:first-child { margin-top: 4px; }
.row { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile), 1fr)); gap: 2px; }
@media (max-width: 700px) { .row { margin: 0 -16px; } }
.row button { position: relative; padding: 0; border: 0; background: var(--tile-bg); aspect-ratio: 1; overflow: hidden; cursor: pointer; display: block; width: 100%; }
.row img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .18s; -webkit-user-drag: none; }
.row img.in { opacity: 1; }
.row .wait { animation: wait 1.4s ease-in-out infinite alternate; cursor: default; }
@keyframes wait { from { opacity: .45; } to { opacity: 1; } }
.row .bad { color: var(--bad); font-weight: 700; font-size: 20px; }
.row .dur { position: absolute; right: 5px; bottom: 4px; color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 0 3px rgba(0,0,0,.7); }
.row button.lift { opacity: 0; }       /* the tile the viewer grew from, while the viewer is over it */
.sentinel { height: 1px; }
#grid.months .day { font-size: 20px; margin-top: 22px; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; }
#grid.months .day::after { content: '›'; color: var(--dim); font-size: 22px; font-weight: 400; }
#grid.months .dur { display: none; }
#grid.months .row { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 1px; }
/* Select: a ring and a tick, the rest a shade dimmer */
.row button.picked::after { content: ''; position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  box-shadow: 0 0 0 1.5px #fff; }
.row button.picked img { opacity: .72; }
body.selecting .row button:not(.picked)::after { content: ''; position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #fff, 0 0 3px rgba(0,0,0,.35); }

/* the date of the top row, over the grid (Apple's All Photos) */
.when-pill { position: absolute; z-index: 20; top: calc(var(--top) - 8px); left: 50%; transform: translateX(-50%); margin: 0; pointer-events: none;
             padding: 6px 14px; border-radius: 999px; background: var(--panel); color: var(--ink); font-size: 14px; font-weight: 700;
             box-shadow: 0 0 0 .5px var(--line), 0 3px 12px rgba(0,0,0,.14); white-space: nowrap; }

/* ── Albums ── */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.album { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; min-width: 0; }
.album .cover { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--tile-bg); margin-bottom: 6px; }
.album .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album .cover.plus { display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--accent); background: var(--panel); border: 1.5px dashed var(--line); }
.album b { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album .dim { font: 500 13px var(--font-round); }

.album .dim.busy { color: var(--accent); }
/* Duplicates and Similar (photos-v12): a heading per set, its tiles under it */
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 7px; font-size: 15px; font-weight: 700; }
.group-head small { font-weight: 500; color: var(--dim); font-size: 13px; margin-left: 6px; }
.group-head .btn { flex: none; }
.row button .tag { position: absolute; left: 5px; top: 5px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; }

/* ── Settings ── */
.row-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.row-btn::after { content: '›'; color: var(--dim); font-size: 22px; margin-left: 8px; }
.row-btn .dim { margin-left: auto; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.switch-row .note { margin: 2px 0 0; display: inline-block; }
.switch-row.sep { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.switch-row input { flex: none; width: 2.6em; height: 1.5em; accent-color: var(--accent); }

/* ── THE DOCK (News' shape, newsapp-v10): one solid pill, a Back circle beside it on an album or the bin.
   The page's SIBLING, absolute at the stage's bottom (§25); the page keeps --dock-h free under its last row. ── */
.dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; pointer-events: none; display: flex; flex-direction: column;
        padding: 8px calc(12px + env(safe-area-inset-right, 0px)) calc(6px + max(0px, var(--bottom) - 12px)) calc(12px + env(safe-area-inset-left, 0px)); }
.dock > * { pointer-events: auto; }
.dock-row { display: flex; gap: 8px; align-items: center; width: 100%; max-width: 520px; margin: 0 auto; }
.dock-back { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); border: 0; cursor: pointer;
             background: var(--panel); box-shadow: 0 0 0 .5px var(--line), 0 4px 18px rgba(0,0,0,.12); }
.dock-back svg { width: 24px; height: 24px; }
.tabbar { flex: 1; min-width: 0; display: flex; height: 58px; padding: 4px; border-radius: 999px; background: var(--panel);
          box-shadow: 0 0 0 .5px var(--line), 0 4px 18px rgba(0,0,0,.12); }
.tabbar button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
                 border: 0; background: none; border-radius: 999px; color: var(--ink-2); cursor: pointer; padding: 0; }
.tabbar button svg { width: 23px; height: 23px; }
.tabbar button span { font-size: 10.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; letter-spacing: -.01em; }
.tabbar button.on { color: var(--accent); background: color-mix(in srgb, var(--ink) 7%, transparent); }
@media (prefers-color-scheme: dark) { .tabbar, .dock-back { box-shadow: 0 0 0 .5px var(--line); } }
/* the selection's toolbar, in the pill's place */
.selbar { align-items: center; padding: 4px 6px; }
.selbar .sel-text { flex: none; padding: 0 14px; height: 100%; color: var(--accent); font-size: 16px; font-weight: 600; flex-direction: row; }
.selbar .sel-count { flex: 1; min-width: 0; text-align: center; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selbar .sel-ico { flex: none; width: 50px; height: 100%; color: var(--accent); }
.selbar .sel-ico.danger { color: var(--bad); }
.selbar .sel-ico.armed { background: var(--bad); color: #fff; }
.selbar .sel-ico:disabled { color: var(--dim); opacity: .5; cursor: default; }

/* ── THE VIEWER: absolute over the whole stage, black; the strip moves under the finger ── */
.view { position: absolute; inset: 0; z-index: 40; overflow: hidden; touch-action: none; color: #fff; }
.view * { touch-action: none; }
.view-bg { position: absolute; inset: 0; background: #000; opacity: 1; }
.strip { position: absolute; inset: 0; will-change: transform; }
.slide { position: absolute; inset: 0; overflow: hidden; }
.slide img, .slide video { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 50% 50%; will-change: transform; -webkit-user-drag: none; background: #111; }
.slide img { object-fit: contain; }
.slide video { object-fit: contain; background: #000; }
.view.anim .strip, .view.anim .slide img, .view.anim .slide video, .view.anim .view-bg { transition: transform .3s var(--ease), opacity .3s var(--ease), clip-path .3s var(--ease); }
.view-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px;
            padding: calc(var(--top) - 12px) 12px 18px; background: linear-gradient(rgba(0,0,0,.55), transparent); transition: opacity .2s; pointer-events: none; }
.view-top > *, .view-foot > * { pointer-events: auto; }
.v-circle { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; color: #fff; background: rgba(40,40,42,.82); cursor: pointer; }
.v-circle svg { width: 22px; height: 22px; }
.v-spacer { flex: none; width: 44px; }
.view-when { flex: 1; min-width: 0; text-align: center; display: flex; flex-direction: column; line-height: 1.25; text-shadow: 0 0 4px rgba(0,0,0,.4); }
.view-when b { font-size: 16px; }
.view-when span { font-size: 12.5px; color: rgba(255,255,255,.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px calc(10px + max(0px, var(--bottom) - 8px)); display: flex; justify-content: center;
             background: linear-gradient(transparent, rgba(0,0,0,.5)); transition: opacity .2s; pointer-events: none; }
.v-bar { display: flex; gap: 4px; align-items: center; height: 54px; padding: 4px 8px; border-radius: 999px; background: rgba(40,40,42,.86); }
.v-btn { flex: none; min-width: 52px; height: 46px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: none; color: #fff; cursor: pointer; text-decoration: none; padding: 0 10px; }
.v-btn svg { width: 23px; height: 23px; }
.v-btn.text { font-size: 15px; font-weight: 600; color: var(--accent); }
@media (prefers-color-scheme: light) { .v-btn.text { color: #0a84ff; } }
.v-btn.danger { color: #ff6b63; }
.v-btn.danger span { font-size: 15px; font-weight: 600; }
.v-btn.danger span:empty { display: none; }
.v-btn.armed { background: #ff453a; color: #fff; }
.view.bare .view-top, .view.bare .view-foot, .view.bare .nav, .view.drag .view-top, .view.drag .view-foot, .view.drag .nav { opacity: 0; pointer-events: none; }
.view.bare .view-top > *, .view.bare .view-foot > *, .view.drag .view-top > *, .view.drag .view-foot > * { pointer-events: none; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(40,40,42,.6); color: #fff; border: 0; font-size: 34px; line-height: 1; width: 44px; height: 64px; border-radius: 12px; cursor: pointer; transition: opacity .2s; }
.nav.prev { left: 10px; } .nav.next { right: 10px; }
.nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .nav { display: none; } }
/* details, from a swipe up or ⓘ: a sheet over the bottom of the picture */
.view-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-height: 55%; overflow: auto; color: var(--ink);
             background: var(--panel); border-radius: 18px 18px 0 0; padding: 8px 18px calc(18px + var(--bottom)); box-shadow: 0 -6px 30px rgba(0,0,0,.3);
             transform: translateY(0); transition: transform .28s var(--ease); touch-action: pan-y; }
.view-info * { touch-action: pan-y; }
.view-info.off { transform: translateY(105%); }
.view-info .grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.v-desc { font-size: 17px; line-height: 1.4; margin: 0 0 10px; }
.v-desc:empty { display: none; }
.v-meta { color: var(--ink-2); font-size: 14px; margin: 0 0 12px; white-space: pre-line; }
.v-lost { font-size: 14px; color: var(--ink-2); background: var(--bg); border-radius: 10px; padding: 8px 10px; margin: 0 0 12px; }
.v-all { margin-top: 12px; font-size: 13px; }
.v-all summary { font-weight: 600; color: var(--accent); cursor: pointer; padding: 4px 0; }
.v-all dl { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 3px 10px; margin: 8px 0 0; }
.v-all dt { color: var(--dim); overflow-wrap: anywhere; }
.v-all dd { margin: 0; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }

/* ── the sheets that rise from the bottom: Add to album, Share this album ── */
.overlay { position: absolute; inset: 0; z-index: 50; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; }
.overlay .panel { background: var(--bg); width: 100%; max-width: 560px; max-height: 80%; overflow: auto; border-radius: 16px 16px 0 0; padding: 0 16px calc(var(--bottom) + 18px + var(--kb)); }
.sheet-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 6px; font-size: 18px; }
#pick-list .row-btn { border-bottom: 1px solid var(--line); padding: 12px 0; font-weight: 500; }
.new-album { display: flex; gap: 8px; margin-top: 14px; }
.new-album input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.new-album .btn.primary { margin-top: 0; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt input { margin-top: 4px; accent-color: var(--accent); }
.opt > span { display: flex; flex-direction: column; }
.opt .note { margin: 2px 0 0; }
#share-url { word-break: break-all; }
.prog { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.prog i { display: block; height: 100%; background: var(--accent); width: 0; }

/* ── photos-v15: Apple's Media Types and Utilities as rows, the Pinned tiles, the heart, the Map ── */
.coll-list { background: var(--panel); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.coll-row { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; padding: 11px 14px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.coll-row + .coll-row { border-top: .5px solid var(--line); }
.coll-row .ico { flex: none; width: 24px; height: 24px; color: var(--accent); }
.coll-row .ico svg { width: 24px; height: 24px; display: block; }
.coll-row .nm { flex: 1; min-width: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coll-row .dim { flex: none; font: 500 15px var(--font-round); }
.coll-row::after { content: '›'; color: var(--dim); font-size: 22px; line-height: 1; margin-left: 2px; }
.coll-note { margin-top: 10px; color: var(--dim); }
.album .cover.glyph { display: flex; align-items: center; justify-content: center; background: var(--panel); color: var(--accent); }
.album .cover.glyph svg { width: 44%; height: 44%; }
.pin-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.row button .heart { position: absolute; left: 5px; bottom: 5px; width: 15px; height: 15px; filter: drop-shadow(0 0 2px rgba(0,0,0,.6));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-8.5-5-8.5-11A4.6 4.6 0 0 1 12 6.9a4.6 4.6 0 0 1 8.5 2.6c0 6-8.5 11-8.5 11z' fill='white'/%3E%3C/svg%3E") center/contain no-repeat; }
#grid.months .heart { display: none; }
.v-btn.fav[aria-pressed="true"] svg { fill: currentColor; }
.photo-map { border-radius: 14px; overflow: hidden; background: var(--tile-bg); margin: 0 0 8px; }
@media (max-width: 700px) { .photo-map { margin: 0 -16px 8px; border-radius: 0; } }
.pile { background: none; border: 0; }
.leaflet-container .leaflet-marker-pane .pile img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); display: block; background: var(--tile-bg); }
.pile b { position: absolute; right: -8px; top: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--on-accent);
  font: 700 12px/22px var(--font); text-align: center; box-shadow: 0 0 0 2px #fff; }
.leaflet-container { font: 12px var(--font); }
