/* The album of a real app (templates/memories/_album.html, album.js; 2026-10-16). The app's own colours
   (--bg, --ink, --accent-text, --surface, --line on <body>). */
.al { display: grid; gap: 12px; }
.al .mv-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.al-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.al-empty { display: grid; gap: 10px; padding: 18px 16px; border: 1px dashed var(--line, #e2dbcf); border-radius: 14px; }
.al-empty p { margin: 0; }
.al-waiting { display: flex; align-items: center; gap: 10px; }
.al-waiting-n { margin: 0; }
.al-waiting-n strong { font-size: 1.4rem; }
.al-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.al-chip { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line, #e2dbcf); border-radius: 999px;
  background: transparent; color: inherit; font: inherit; font-size: .9rem; cursor: pointer; }
.al-chip[aria-pressed="true"] { background: var(--accent-text, #7a5f33); border-color: var(--accent-text, #7a5f33); color: var(--bg, #fff); }
.al-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
@media (min-width: 700px) { .al-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.al-tile { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--surface, #f4efe6); }
.al-tile[hidden] { display: none; }
.al-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.al-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-who { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: .68rem; line-height: 1.2;
  color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; pointer-events: none; }
.al-tile .mv-heart { position: absolute; top: 2px; right: 2px; }
.al-tile.is-hidden .al-open img { opacity: .35; filter: grayscale(1); }
.al-tag { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 6px; font-size: .66rem;
  background: rgba(0, 0, 0, .65); color: #fff; }
.al-settings summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .3rem; }
.al-reveal-form { display: grid; gap: 10px; margin-top: 8px; }
.al-choices { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.al-choices legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.al-choice { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line, #e2dbcf);
  border-radius: 10px; cursor: pointer; }
.al-choice input { margin-top: 3px; }
.al-choice span { display: grid; }
.al-choice small { opacity: .75; }
.al-when { display: grid; gap: 4px; }
.al-when[hidden] { display: none; }
.al-when input { min-height: 44px; padding: 0 10px; border: 1px solid var(--line, #e2dbcf); border-radius: 10px; font: inherit;
  background: var(--bg, #fff); color: inherit; }
.dm-more-settings { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line, #e2dbcf); }

/* the viewer: the whole screen */
.al-viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; }
.al-viewer[open] { display: grid; grid-template-rows: 1fr auto auto; }
.al-viewer::backdrop { background: #000; }
.al-viewer-img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.al-viewer-info { padding: 6px 16px 0; }
.al-viewer-info p { margin: 0; }
.al-viewer-who { font-weight: 600; }
.al-viewer-when, .al-viewer-caption { font-size: .85rem; opacity: .8; }
.al-viewer-bar { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); }
.al-viewer-bar .mv-icon-btn { color: #fff; min-width: 44px; min-height: 44px; }
.al-viewer-hide { min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; background: none;
  color: #fff; font: inherit; cursor: pointer; }

/* Part D: Share slideshow */
.al-share summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .3rem; }
.al-share-form { display: grid; gap: 10px; margin-top: 8px; }
.al-switch { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.al-share-link { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.al-share-link input { flex: 1 1 100%; min-width: 0; min-height: 44px; padding: 0 10px; border: 1px solid var(--line, #e2dbcf); border-radius: 10px;
  font: inherit; background: var(--bg, #fff); color: inherit; }

/* Part B: people, time, the person's bar, wishes beside their person */
.al-people { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.al-person { flex: none; display: grid; justify-items: center; gap: 4px; width: 76px; min-height: 44px; padding: 0; border: 0;
  background: none; color: inherit; font: inherit; cursor: pointer; }
.al-av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-weight: 600; font-size: .95rem;
  background: hsl(var(--h, 30) 45% 86%); color: hsl(var(--h, 30) 40% 26%); border: 2px solid transparent; }
.al-av-all { background: var(--surface, #f4efe6); color: inherit; font-size: .8rem; }
.al-person[aria-pressed="true"] .al-av { border-color: var(--accent-text, #7a5f33); }
.al-pname { font-size: .72rem; line-height: 1.2; text-align: center; max-width: 76px; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.al-time { display: grid; gap: 10px; }
.al-time[hidden] { display: none; }
.al-time-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.al-saved { display: inline-flex; align-items: center; }
.al-inline { display: inline; margin: 0; }
.al-x { min-width: 32px; min-height: 40px; border: 0; background: none; color: inherit; font-size: 1.1rem; cursor: pointer; }
.al-custom { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.al-custom label { display: grid; gap: 2px; font-size: .8rem; min-width: 0; flex: 1 1 140px; }
.al-custom input { min-height: 44px; padding: 0 8px; border: 1px solid var(--line, #e2dbcf); border-radius: 10px; font: inherit;
  background: var(--bg, #fff); color: inherit; min-width: 0; width: 100%; box-sizing: border-box; }
.al-person-bar { display: grid; gap: 8px; }
.al-person-bar[hidden] { display: none; }
.al-person-title { margin: 0; }
.al-merge { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 0; }
.al-merge[hidden] { display: none; }
.al-merge label { display: grid; gap: 2px; font-size: .8rem; }
.al-merge select { min-height: 44px; border: 1px solid var(--line, #e2dbcf); border-radius: 10px; font: inherit; background: var(--bg, #fff);
  color: inherit; max-width: 100%; }
.al-unmerge { margin: 0; font-size: .85rem; }
.al-unmerge[hidden] { display: none; }
.al-linkbtn { border: 0; background: none; color: var(--accent-text, #7a5f33); text-decoration: underline; font: inherit; cursor: pointer;
  min-height: 44px; }
.al-wish { position: relative; grid-column: span 3; display: grid; gap: 6px; padding: 12px 40px 12px 12px; border-radius: 10px;
  background: var(--surface, #f4efe6); }
@media (min-width: 700px) { .al-wish { grid-column: span 5; } }
.al-wish[hidden] { display: none; }
.al-wish.is-hidden { opacity: .55; }
.al-wish-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.al-wish-text { margin: 0; font-style: italic; }
.al-wish-who { margin: 0; font-size: .8rem; opacity: .8; }
.al-wish .mv-heart { position: absolute; top: 6px; right: 6px; }

/* The party screen's phone page (memories/tv_host.html, 2026-10-16) */
.tvh .gi-card { display: grid; gap: 10px; }
.tvh h2 { margin: 0; }
.tvh-digits { margin: 0; font-size: 2.6rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; font-weight: 600; }
.tvh-inline { display: inline; margin: 0; }
.tvh-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tvh-controls .gi-btn, .tvh-controls .gi-chip { min-height: 44px; }
.tvh-label { margin: 4px 0 0; font-size: .85rem; opacity: .8; }
.tvh-start { display: grid; gap: 12px; }
.tvh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tvh-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.tvh-list li:has(form + form) { grid-template-columns: 56px minmax(0, 1fr) auto auto; }
.tvh-list img, .tvh-wish { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface, #f4efe6); font-size: 1.6rem; }
.tvh-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvh-list .gi-btn--sm { min-height: 40px; }
/* the setup's option cards: radio, then the title with its line under it, all on the left */
.tvh .al-choices { text-align: left; }
.tvh .al-choices legend { margin-bottom: 6px; }
.tvh .al-choice { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 10px; text-align: left;
  padding: 12px; border-radius: 12px; }
.tvh .al-choice input { margin: 3px 0 0; width: 18px; height: 18px; justify-self: start; }
.tvh .al-choice span { display: grid; gap: 2px; justify-items: start; }
.tvh .al-choice small { font-size: .85rem; line-height: 1.35; }
.tvh button { font-family: inherit; }  /* the start button in the app's own font */

/* Slideshow music (slideshow_music.py, 2026-10-18) */
.al-music-form { display: grid; gap: 10px; }
.al-music-tracks { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.al-music-tracks legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.al-music-mood { margin: 8px 0 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.al-music-track { align-items: center; }
.al-music-track span { flex: 1; }
.al-music-play { min-width: 44px; min-height: 44px; padding: 0; }
.al-music-volume { display: grid; gap: 4px; font-weight: 600; }
.al-music-volume input { width: 100%; min-height: 44px; }
/* Share in one tap (2026-10-18) */
.al-share-go { width: 100%; min-height: 52px; font-size: 1.05rem; }
.al-share-status { margin: 10px 0 0; font-weight: 600; }
.al-share-qr { display: block; margin: 12px auto 0; background: #fff; padding: 8px; border-radius: 10px; }
.al-share-qr[hidden] { display: none; }
.ah-share { display: grid; gap: 8px; }
.ah-share-status { margin: 0; font-weight: 600; }
