/* Winmix Picture: cloned from Run a Moment's design, recoloured to the WINMIX Photography CI (black, white, off-white).
   The look is a placeholder until Bro! restyles it; the Winmix rules are at the end of this file. */
:root {
  --bg: #F8F8F8;
  --paper: #FFFFFF;
  --ink: #111111;
  --accent: #111111;
  --accent-2: #9A9A9A;
  --muted: #5F6670;
  --line: #DADCE0;
  --photo: #E4E5E7;
  --danger: #C62828;
  --ok: #2E7D4F;
  --radius: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 'Prompt', 'Sukhumvit Set', 'Noto Sans Thai', sans-serif;
}
.num { font-family: 'Montserrat', 'Prompt', sans-serif; }
a { color: var(--ink); }
img { max-width: 100%; display: block; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap;
  min-height: 56px; padding: 8px 20px; max-width: 960px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: 'Montserrat', 'Prompt', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.22em; }
.brand small { font-family: 'Prompt', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.top-link { font-size: 14px; color: var(--muted); text-decoration: none; }
.home-hero { text-align: center; padding: 6px 0 22px; }
.home-hero img { width: min(340px, 86%); margin: 0 auto; }
.by {
  font-family: 'Montserrat', 'Prompt', sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: 0.2em; color: var(--muted); text-decoration: none; text-transform: uppercase;
}
/* Keeps a longer name like WINMIX.PICTURE on the brand row on 390px phones. */
@media (max-width: 420px) { .by { letter-spacing: 0.1em; } }
main { max-width: 960px; margin: 0 auto; padding: 0 20px 120px; }
footer { max-width: 960px; margin: 0 auto; padding: 24px 20px 40px; color: var(--muted); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 18px; border-radius: 8px; border: 2px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer; font-weight: 600; font-size: 17px; text-decoration: none;
}
.btn svg { flex: none; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn.primary { background: var(--ink); color: #FFFFFF; }
.btn.big { min-height: 58px; font-size: 18px; width: 100%; }
.btn.ghost { border-color: var(--line); }
.btn.wide { width: 100%; }
.btn.small { min-height: 42px; padding: 6px 14px; font-size: 15px; border-width: 1.5px; }
.btn.danger { color: var(--danger); border-color: currentColor; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn { flex: 1 1 140px; }
.stack { display: grid; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 8px; min-height: 40px; font-size: 15px; }

/* race bib */
.bib { position: relative; background: var(--paper); border-radius: 12px; box-shadow: 0 10px 24px rgba(17, 17, 17, 0.16); overflow: hidden; }
.bib-band {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--ink); color: #FFFFFF;
  padding: 8px 28px; font-family: 'Montserrat', 'Prompt', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.22em;
}
.bib-band b { color: var(--accent-2); font-weight: 700; }
.bib-body { display: flex; align-items: center; gap: 14px; padding: 6px 28px 8px; }
.bib-no { display: flex; flex-direction: column; flex: none; }
.bib-no small { font-family: 'Montserrat', 'Prompt', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.22em; color: var(--muted); }
.bib-no strong { font-family: 'Montserrat', 'Prompt', sans-serif; font-size: 48px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.bib-name { font-size: 20px; font-weight: 600; line-height: 1.3; }
.bib-date { font-size: 14px; color: var(--muted); }
.bib-foot { display: flex; justify-content: space-between; gap: 10px; border-top: 2px dashed var(--line); padding: 7px 28px 9px; font-size: 14px; }
.bib-hole { position: absolute; width: 9px; height: 9px; border-radius: 5px; background: var(--bg); border: 1px solid var(--line); }
.bib-hole.tl { top: 40px; left: 9px; } .bib-hole.tr { top: 40px; right: 9px; }
.bib-hole.bl { bottom: 9px; left: 9px; } .bib-hole.br { bottom: 9px; right: 9px; }

/* home */
.album-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin-top: 4px; }
.album-card { display: block; text-decoration: none; color: inherit; }
.album-cover { height: 200px; border-radius: 12px; overflow: hidden; background: var(--photo); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card .bib { margin: -36px 12px 0; }

/* album page */
.hero-img { margin: 0 -20px; height: 250px; overflow: hidden; background: var(--photo); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-bib { margin-top: -44px; position: relative; }
@media (min-width: 700px) {
  .hero-img { margin: 0; height: 360px; border-radius: 12px; }
  .hero-bib { margin: -56px 24px 0; }
}
.actions { display: grid; gap: 10px; margin: 18px 0 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 6px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.time-head { font-size: 16px; font-weight: 600; margin: 14px 0 8px; }
.subhead { font-size: 15px; font-weight: 500; color: var(--muted); margin: 18px 0 8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 6px; }
.ph { position: relative; padding: 0; border: 0; background: var(--photo); aspect-ratio: 1; cursor: pointer; overflow: hidden; border-radius: 8px; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; left: 7px; bottom: 7px; background: var(--paper); color: var(--ink);
  font-family: 'Montserrat', 'Prompt', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.06em;
  padding: 2px 8px 2px 6px; border-radius: 4px; border-left: 4px solid var(--accent); line-height: 1.3;
}
.ph .tick {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #FFFFFF;
  background: rgba(17, 17, 17, 0.35); display: none; align-items: center; justify-content: center; color: #FFFFFF;
}
.selecting .ph .tick { display: flex; }
.ph.selected .tick { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.ph.selected img { opacity: 0.75; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.panel h2, .panel h3 { margin: 0 0 6px; }
.status { display: flex; align-items: center; gap: 12px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* The whole card is the tip button. */
.water-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; text-decoration: none; }
.water-card span.label { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 600; }
.water-card .chev { flex: none; color: var(--muted); }
.water { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.water h2 { margin: 0; }
.water-icon { flex: none; width: 52px; height: 52px; border-radius: 26px; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.water-card .water-icon { width: 44px; height: 44px; }
/* Same card shape as the matcha tip button, but its own colour so the two don't blend together -
   this one is an outbound link to Facebook, not an in-page action. */
.follow-card .water-icon { background: var(--ink); }
.account-box { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.account-box strong { font-size: 17px; overflow-wrap: anywhere; user-select: text; }
.account-box .btn { margin-top: 8px; justify-self: start; }

/* medal */
.medal { position: relative; width: 120px; height: 150px; margin: 8px auto 0; }
.medal svg { position: absolute; left: 0; top: 0; }
.medal-disc {
  position: absolute; left: 12px; top: 52px; width: 96px; height: 96px; border-radius: 48px; background: var(--accent);
  border: 5px solid var(--accent-2); display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', 'Prompt', sans-serif; font-weight: 700; font-size: 44px; line-height: 1;
}
.results-title { text-align: center; font-size: 26px; font-weight: 700; line-height: 1.3; margin-top: 8px; }
.results-sub { text-align: center; font-size: 15px; color: var(--muted); }

/* checkpoints */
.cp { display: flex; gap: 12px; align-items: flex-start; }
.cp-no {
  flex: none; width: 48px; height: 28px; border-radius: 6px; background: var(--ink); color: #FFFFFF; margin-top: 1px;
  font-family: 'Montserrat', 'Prompt', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.08em;
  display: flex; align-items: center; justify-content: center;
}
.saved-line {
  display: flex; align-items: center; gap: 10px; background: #E8F5EC; border-radius: 12px;
  padding: 10px 14px; margin-bottom: 14px; font-size: 16px; font-weight: 700; color: var(--ok);
}
.saved-badge { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: center;
}
.bar .btn { flex: 1; max-width: 320px; }
.bar .bar-note { align-self: center; font-size: 14px; color: var(--muted); }

/* bottom sheet */
/* While a sheet is open the page is pinned (top set in common.js) so it can't scroll behind it. */
body.sheet-open { position: fixed; left: 0; right: 0; width: 100%; }
.backdrop { position: fixed; inset: 0; background: rgba(17, 17, 17, 0.55); z-index: 40; touch-action: none; }
.sheet {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; max-height: 92vh; overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper); border-radius: 18px 18px 0 0; padding: 12px 22px calc(24px + env(safe-area-inset-bottom));
}
.sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 18px; }
.sheet h2 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.3; }
.lead { color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--bg); border-radius: 10px; margin-top: 18px; cursor: pointer; font-size: 15px; }
.check input { width: 24px; height: 24px; flex: none; margin: 2px 0 0; accent-color: var(--ink); }
.qrbox { background: #FFFFFF; border-radius: 12px; padding: 14px; width: min(280px, 100%); margin: 12px auto; border: 1px solid var(--line); }
.qrbox img { width: 100%; image-rendering: pixelated; }
label.field { display: grid; gap: 6px; margin: 12px 0; font-size: 15px; }
.field input, .field textarea { width: 100%; padding: 12px; border-radius: 8px; border: 1.5px solid var(--line); background: #FFFFFF; min-height: 48px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 46px; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; margin-top: 16px; }
.seg button { border: 0; background: transparent; cursor: pointer; font-size: 16px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; font-weight: 600; }
.cert-preview { display: block; width: 100%; max-width: 330px; margin: 14px auto 0; border-radius: 4px; box-shadow: 0 12px 28px rgba(17, 17, 17, 0.2); }

/* full-screen viewer */
.viewer { position: fixed; inset: 0; z-index: 30; background: #111111; color: #FFFFFF; display: flex; flex-direction: column; }
.viewer .stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; position: relative; }
.viewer .stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .vtop { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 15px; }
.viewer .vtop .num { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; }
.viewer .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: rgba(0, 0, 0, 0.35); color: #FFFFFF; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.viewer .nav.prev { left: 0; border-radius: 0 10px 10px 0; }
.viewer .nav.next { right: 0; border-radius: 10px 0 0 10px; }
.viewer .vbar { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.viewer .btn { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.45); }
.viewer .btn.primary { background: var(--accent); border-color: var(--accent); color: #111111; }
.viewer .vlinks { grid-column: 1 / -1; display: flex; justify-content: center; gap: 12px; }
.viewer .linkish { color: #C9D0DE; }

.prose { max-width: 680px; }
.prose h1 { font-size: 26px; margin: 8px 0; }
.prose h2 { font-size: 18px; margin-top: 14px; }
.prose p, .prose li { margin: 6px 0; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }

/* home page, no album published yet */
.soon-card { max-width: 460px; margin: 4px auto 0; background: var(--paper); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(17, 17, 17, 0.16); overflow: hidden; }
.soon-cover { height: 200px; background: var(--photo); overflow: hidden; }
.soon-cover img { width: 100%; height: 100%; object-fit: cover; }
.soon-body { padding: 22px 24px 26px; text-align: center; }
.soon-body h2 { margin: 0 0 8px; font-size: 22px; }
.soon-body p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }

/* toast sits at the top so it never covers buttons in a bottom sheet */
.toast {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: #FFFFFF; padding: 10px 18px; border-radius: 999px; font-weight: 600;
  max-width: calc(100% - 32px); text-align: center; box-shadow: 0 8px 20px rgba(17, 17, 17, 0.25);
}

/* back office */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 8px; }
.card { display: block; background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.card .cover { aspect-ratio: 16 / 9; background: var(--photo); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px 14px 14px; }
.card h2 { margin: 0 0 2px; font-size: 18px; }
.meta { color: var(--muted); font-size: 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tabs { display: flex; gap: 6px; margin: 4px 0 16px; flex-wrap: wrap; }
.tabs button { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 10px 0; }
.stat { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.stat b { display: block; font-family: 'Montserrat', 'Prompt', sans-serif; font-size: 22px; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 13px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; background: var(--bg); color: var(--muted); }
.badge.live { background: var(--accent); color: #FFFFFF; font-weight: 600; }
.progress { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.progress div { height: 100%; background: var(--accent); width: 0; transition: width 0.3s; }
.aph { position: relative; }
.aph .info { position: absolute; left: 4px; bottom: 4px; font-size: 12px; background: rgba(17, 17, 17, 0.75); color: #FFFFFF; padding: 1px 6px; border-radius: 6px; }
.aph .eye-flag { position: absolute; right: 4px; top: 4px; font-size: 11px; font-weight: 600; background: #FFF2D9; color: #6A3E00; padding: 2px 6px; border-radius: 6px; }
.eye-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #FFF2D9; color: #6A3E00; }
.aph.is-hidden img { opacity: 0.3; }
.req { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--line); padding: 12px 0; }
.req img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; }
.req .body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.error { color: var(--danger); }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; background: var(--paper); }
.speed-test { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.speed-copy { flex: 1; min-width: 0; }
.speed-copy b { display: block; margin-bottom: 2px; }
.speed-ok { color: var(--ok); }
.speed-loading { display: flex; align-items: center; gap: 12px; min-height: 52px; }
@media (max-width: 520px) {
  .speed-test { align-items: stretch; flex-direction: column; }
  .speed-test .btn { width: 100%; }
}
details.panel summary { cursor: pointer; font-weight: 600; min-height: 32px; }

/* back office: Facebook post set */
.post-entry h3 { margin: 0 0 4px; }
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0 14px; }
.strip span { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--photo); }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip .more { display: flex; align-items: center; justify-content: center; background: var(--ink); color: #FFFFFF; font-family: 'Montserrat', 'Prompt', sans-serif; font-weight: 700; }
.seg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg.three button { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.seg-label { font-size: 14px; color: var(--muted); margin: 16px 0 -8px; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.pgrid .ph { cursor: default; }
.ph-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.ord { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 12px; background: var(--accent); color: #FFFFFF;
  font: 700 13px 'Montserrat', sans-serif; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pgrid .rm, .pgrid .add { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 15px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.pgrid .rm { background: rgba(255, 255, 255, 0.94); color: var(--ink); }
.pgrid .add { background: var(--accent); color: #FFFFFF; font: 700 20px/1 'Montserrat', sans-serif; }
.why { position: absolute; left: 6px; bottom: 6px; background: rgba(17, 17, 17, 0.72); color: #FFFFFF; font-size: 11px; line-height: 1.3;
  padding: 2px 7px; border-radius: 6px; pointer-events: none; }
.wm-prev { margin-top: 14px; }
.wm-prev canvas { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--photo); }
textarea.caption { display: block; width: 100%; box-sizing: border-box; margin: 8px 0 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); font: inherit; font-size: 15px; line-height: 1.6; resize: vertical; color: var(--ink); }
#view.with-bar { padding-bottom: 96px; }

/* post set: drag to reorder, add from all photos */
.pgrid.sortable .ph { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.pgrid.sortable .ph img { -webkit-user-drag: none; }
.pgrid .ph.dragging { z-index: 20; pointer-events: none; box-shadow: 0 10px 28px rgba(17, 17, 17, 0.35); transition: none; }
.pgrid.is-sorting .ph:not(.dragging) { transition: transform 0.12s; }
.pgrid .add.is-in { display: flex; align-items: center; justify-content: center; background: var(--ink); cursor: default; font-size: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { border: 1.5px solid var(--line); background: var(--paper); border-radius: 18px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* album cover crop editor */
.cover-frames { display: grid; gap: 12px; margin: 12px 0 16px; }
.cover-frames figure { margin: 0; }
.cover-frame { width: 100%; overflow: hidden; border-radius: 10px; background: var(--photo); }
.cover-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-frame.editing { cursor: grab; touch-action: none; }
.cover-frame.editing:active { cursor: grabbing; }

/* System health page: one row per check, with a colour dot AND a word, never colour alone. */
.health-head { display: flex; align-items: center; gap: 10px; }
.health-head b { font-size: 18px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); }
.dot.warn { background: #E0A100; }
.dot.bad { background: var(--danger); }
.checks { list-style: none; margin: 12px 0 0; padding: 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--line); padding: 11px 0; }
.checks .dot { margin-top: 6px; }
.checks .txt { flex: 1; min-width: 0; }
.checks .txt b { display: block; font-weight: 500; }
.checks .txt span { color: var(--muted); font-size: 13px; display: block; }
.checks .val { font-family: 'Montserrat', 'Prompt', sans-serif; font-weight: 700; text-align: right; }
.checks .val small { display: block; font-family: 'Prompt', sans-serif; font-weight: 500; font-size: 12px; white-space: nowrap; }
.lbl-ok { color: var(--ok); }
.lbl-warn { color: #8A5A00; }
.lbl-bad { color: var(--danger); }

/* Time filter on the album page: one row that scrolls sideways, so a long shoot with many
   15-minute blocks never pushes the photos down the page. */
.tf-hint { margin: 2px 0 0; }
.time-chips {
  margin: 6px 0 2px; flex-wrap: nowrap; overflow-x: auto; gap: 6px;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 2px; margin-right: -20px; padding-right: 20px; /* let it run to the screen edge */
}
.time-chips::-webkit-scrollbar { display: none; }
.time-chips .chip {
  flex: none; padding: 5px 12px; font-size: 14px; border-radius: 16px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chip-n { margin-left: 5px; font-size: 11px; opacity: 0.65; }

/* Back to the album list. Runners arriving from a shared link (often inside the Facebook in-app
   browser) have no history to go back to, and few people try tapping the logo on a phone. */
.back-home { margin: 4px 0 8px; }
.back-home a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); font-size: 15px; text-decoration: none; }

/* Post set, two steps: heart the photos worth posting, then order them. */
.ps-steps { display: flex; gap: 8px; margin: 14px 0 0; }
.ps-steps span { flex: 1; text-align: center; font-size: 13px; padding: 7px 0; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.ps-steps span.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 600; }
.ps-count { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 14px 0 0; }
.ps-count b { font: 700 22px 'Montserrat', 'Prompt', sans-serif; }
.pgrid .heart { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border-radius: 18px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: rgba(17, 17, 17, 0.45); }
.pgrid .heart svg { fill: none; stroke: #FFFFFF; stroke-width: 2; }
.pgrid .heart.on { background: rgba(255, 255, 255, 0.95); }
.pgrid .heart.on svg { fill: var(--accent); stroke: var(--accent); }
.pgrid .ph.feed { outline: 3px solid var(--accent); outline-offset: -3px; }
.ps-divider { display: flex; align-items: center; gap: 8px; margin: 16px 0 -6px; font-size: 13px; color: var(--muted); }
.feedtag { background: #FFF2D9; color: #6A3E00; font-size: 12px; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
/* The album page in the order the job is actually done: upload, cull + cover, publish, post set.
   Only the current step is open; finished ones collapse to a line, later ones say what unlocks them. */
.ev-steps { display: flex; gap: 8px; margin: 16px 0 0; flex-wrap: wrap; }
.ev-steps button {
  flex: 1 1 140px; text-align: center; font: inherit; font-size: 13px; padding: 7px 4px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; cursor: pointer;
}
.ev-steps button.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 600; }
.ev-steps button.done { background: #EAF5EE; border-color: #BFE0CC; color: var(--ok); }
.ev-steps button:disabled { cursor: default; opacity: 0.55; }
.ev-card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 20px; margin: 14px 0; }
.ev-card h3 { margin: 0; font-size: 19px; }
.ev-card .lead { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.ev-now { display: inline-block; background: var(--accent); color: #FFFFFF; font: 600 12px 'Montserrat', 'Prompt', sans-serif; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.ev-row { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; margin: 8px 0; color: var(--muted); font-size: 15px; }
.ev-row .n { flex: none; width: 26px; height: 26px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font: 600 13px 'Montserrat', sans-serif; color: var(--muted); }
.ev-row.ok .n { background: #EAF5EE; border-color: #BFE0CC; color: var(--ok); }
.ev-row b { color: var(--ink); font-weight: 600; }
.ev-row .what { flex: 1; min-width: 0; overflow-wrap: anywhere; } /* the album URL is one long unbreakable word */
.ev-row .sum { flex: none; display: flex; gap: 8px; align-items: center; }
.ev-row .btn.small { min-height: 44px; font-size: 14px; padding: 4px 12px; }
.ev-row.locked { opacity: 0.55; }
.ev-row.tappable { cursor: pointer; }
.ev-drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px 16px; text-align: center; background: var(--bg); margin-top: 14px; }
.ev-drop .btn { max-width: 340px; margin: 0 auto; }
.ev-cover { display: flex; gap: 16px; align-items: flex-start; margin-top: 14px; flex-wrap: wrap; }
.ev-cover .cover-frame { flex: none; width: min(280px, 100%); border-radius: 10px; overflow: hidden; background: var(--photo); }
.ev-cover .cover-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-cover .acts { display: flex; flex-direction: column; gap: 10px; }
.ev-bar { display: flex; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ev-bar .btn { flex: 1 1 200px; }
.ev-eta { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.ev-note { background: #FFF7E8; border: 1px solid #F0DCB4; border-radius: 10px; padding: 10px 14px; font-size: 14px; color: #6A3E00; margin-top: 14px; }
/* (class names are namespaced: .top is the site header) How the first five sit in a Facebook feed post, roughly: two on top, three below, "+N" on the last. */
.fbp { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 6px; margin-top: 10px; }
.fbp-row { display: grid; gap: 3px; }
.fbp-a { aspect-ratio: 420 / 170; }
.fbp-a.n1 { aspect-ratio: 420 / 240; }
.fbp-b { aspect-ratio: 420 / 110; margin-top: 3px; }
.fbp-row.n1 { grid-template-columns: 1fr; } .fbp-row.n2 { grid-template-columns: 1fr 1fr; } .fbp-row.n3 { grid-template-columns: 1fr 1fr 1fr; }
.fbp-row > * { min-width: 0; min-height: 0; overflow: hidden; border-radius: 2px; }
.fbp img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.fbp .more { position: relative; }
.fbp .more span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.5); color: #FFFFFF; font: 700 26px 'Montserrat', sans-serif; }
/* Full-screen viewer for comparing photos at size. */
.psv { position: fixed; inset: 0; z-index: 60; background: #111111; color: #FFFFFF; display: flex; flex-direction: column; overscroll-behavior: contain; }
.psv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; }
.psv-top .num { font: 600 15px 'Montserrat', sans-serif; }
.psv-top .small { color: #B8BCC2; }
.psv-x { width: 44px; height: 44px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, 0.12); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.psv-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.psv-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; }
.psv-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 22px;
  background: rgba(255, 255, 255, 0.18); color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer; }
.psv-arr.l { left: 8px; } .psv-arr.r { right: 8px; }
.psv-actions { padding: 12px 16px 6px; }
.psv-actions .btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.psv-actions .btn:not(.like-on) { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }
.psv-actions .btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.psv-actions .btn.like-on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.psv-actions .btn.like-on svg { fill: #FFFFFF; stroke: #FFFFFF; }
.psv-note { margin: 4px 16px 8px; color: #B8BCC2; }
.psv-strip { display: flex; gap: 6px; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); overflow-x: auto; }
.psv-strip button { flex: none; padding: 0; border: 0; background: none; border-radius: 6px; overflow: hidden; opacity: 0.55; cursor: pointer; }
.psv-strip button.cur { opacity: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
.psv-strip img { width: 52px; height: 52px; object-fit: cover; display: block; }

/* tip thank-you sheet (after "โอนแล้ว") */
.btn.accent { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.ty-burst { position: relative; height: 0; }
.ty-burst i {
  position: absolute; top: 40px; left: 50%; width: 8px; height: 8px; border-radius: 2px; opacity: 0;
  background: var(--accent); animation: ty-pop 900ms ease-out forwards; animation-delay: calc(var(--i) * 25ms);
  --a: calc(var(--i) * 30deg);
}
.ty-burst i:nth-child(3n) { background: var(--ink); width: 6px; height: 6px; }
.ty-burst i:nth-child(3n+1) { background: var(--accent-2); }
@keyframes ty-pop {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(0.6); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-130px) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .ty-burst i { animation: none; } }
.ty-drink { width: 228px; margin: 0 auto; }
.ty-drink svg { display: block; overflow: visible; }
.ty-pour { transform-box: fill-box; transform-origin: 50% 50%; animation: ty-pour 2900ms ease-in-out forwards; }
/* Rests beside the cup at the end; pours from above it (lip over the rim) in between. */
@keyframes ty-pour {
  0% { opacity: 0; transform: translate(-34px, -122px) rotate(0deg); }
  12% { opacity: 1; transform: translate(-34px, -111px) rotate(-48deg); }
  72% { opacity: 1; transform: translate(-34px, -111px) rotate(-48deg); }
  90%, 100% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
}
.ty-stream { stroke-dasharray: 130; stroke-dashoffset: 130; opacity: 0; animation: ty-stream 2900ms linear forwards; }
@keyframes ty-stream {
  0%, 14% { stroke-dashoffset: 130; opacity: 0; }
  15% { opacity: 1; }
  26% { stroke-dashoffset: 0; }
  72% { stroke-dashoffset: 0; opacity: 1; }
  80%, 100% { stroke-dashoffset: -130; opacity: 0; }
}
.ty-lid { opacity: 0; transform: translateY(-26px); animation: ty-lid 380ms cubic-bezier(.3, 1.4, .5, 1) 2750ms forwards; }
@keyframes ty-lid { to { opacity: 1; transform: translateY(0); } }
.ty-fill { transform: translateY(98px); animation: ty-fill 1700ms cubic-bezier(.35, .1, .3, 1) 600ms forwards; }
@keyframes ty-fill { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .ty-stream { animation: none; opacity: 0; }
  .ty-pour { animation: none; opacity: 1; transform: none; }
  .ty-fill { animation: none; transform: none; }
  .ty-lid { animation: none; opacity: 1; transform: none; }
}
.sheet h2.ty-title { text-align: center; font-size: 28px; line-height: 1.25; margin-top: 14px; }
.ty-note { margin-top: 18px; background: var(--bg); border-radius: 12px; padding: 14px 16px; border-left: 4px solid var(--accent); }
.ty-sig { font-family: 'Montserrat', 'Prompt', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.14em; color: var(--muted); margin-top: 8px; text-transform: uppercase; }

/* Autopilot (Mac) folder rows */
.ap-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line, #e5e5e5); }
.ap-row:first-of-type { border-top: 0; }
.ap-row .btn { flex: none; }

/* Back-office photo viewer: big on open, click to zoom to full size, arrows to step */
.blur-flag { position: absolute; left: 6px; top: 6px; background: #c0392b; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 6px; }
.grid-sort { margin: 4px 0 8px; }
.pv { position: fixed; inset: 0; z-index: 60; background: #0d0d0d; color: #eee; display: grid; grid-template-rows: auto 1fr auto; }
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.pv-top .small { color: #ccc; white-space: pre-wrap; }
.pv-soft { color: #ff8a7a; }
.pv-x { background: none; border: 0; color: #fff; font-size: 22px; min-width: 44px; min-height: 44px; cursor: pointer; }
.pv-stage { overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 0; }
.pv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; }
.pv-stage.zoomed { overflow: auto; display: block; }
.pv-stage.zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.pv-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-size: 38px; cursor: pointer; }
.pv-nav.prev { left: 10px; } .pv-nav.next { right: 10px; }
.pv-nav:disabled { opacity: .25; cursor: default; }
.pv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #181818; }
.pv-bar .btn { background: #fff; }
.pv-bar .btn.danger { background: #fff; }
.pv-hint { color: #aaa; flex-basis: 100%; text-align: center; }
@media (max-width: 600px) { .pv-nav { width: 40px; height: 56px; font-size: 30px; } }

/* Shirt-colour filter and the "found them all?" question */
.color-chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.color-chips .chip { flex: none; white-space: nowrap; min-height: 34px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.25); }
.fb-panel { margin-top: 16px; }
.fb-panel h2 { font-size: 18px; margin: 0 0 10px; }
.fb-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-row .btn { flex: 1 1 30%; min-height: 44px; }
.fb-panel textarea { width: 100%; margin-top: 10px; min-height: 64px; border-radius: 10px; border: 1.5px solid var(--line); padding: 8px 10px; font: inherit; font-size: 15px; box-sizing: border-box; }

/* Autopilot page: status box, three stages, alerts, setup steps */
.ap-hero { background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 14px; }
.ap-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }
.ap-big { font-size: 24px; font-weight: 600; line-height: 1.3; margin: 6px 0; }
.ap-bar { height: 10px; background: #EEE; border-radius: 6px; overflow: hidden; margin-top: 14px; }
.ap-bar i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.ap-pipe { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; margin: 16px 0 12px; }
.ap-st { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; background: #fff; }
.ap-st b { display: block; font-size: 22px; font-family: 'Montserrat', 'Prompt', sans-serif; }
.ap-st.on { border-color: var(--ink); } .ap-st.done { border-color: var(--ok); } .ap-st.warn { border-color: #E0A800; background: #FFFBEA; }
.ap-arrow { color: var(--muted); }
.ap-ok { color: var(--ok); font-weight: 600; }
.ap-alert { background: #FFFBEA; border: 1.5px solid #E0A800; border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
.ap-alert h3 { margin: 0 0 6px; font-size: 17px; }
.ap-alert ol { margin: 6px 0 10px; padding-left: 20px; }
.ap-update { background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ap-update .btn { background: #fff; color: var(--ink); }
.ap-meter { display: flex; gap: 4px; margin: 8px 0; } .ap-meter i { width: 24px; height: 24px; border-radius: 6px; background: var(--ok); } .ap-meter i.x { background: #E6E6E6; }
.ap-steps { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; } .ap-steps span { flex: 1 1 0; min-width: 90px; text-align: center; font-size: 13px; padding: 6px; border-radius: 8px; background: #EEE; }
.ap-steps span.on { background: var(--ink); color: #fff; } .ap-steps span.done { background: #DCEFE3; }
.ap-fold { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0; background: #fff; }
@media (max-width: 600px) { .ap-pipe { grid-template-columns: 1fr; } .ap-arrow { display: none; } .ap-big { font-size: 20px; } }
.ap-hero .row { margin-top: 12px; gap: 10px; }
.bad { color: var(--danger); }
/* Phone view of the Mac autopilot: three counters side by side even on a narrow screen. */
.ap-pipe3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; }
.ap-pipe3 .ap-st b { font-size: 20px; }
.ap-cmds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ap-cmds .btn { min-height: 48px; }
/* Phone (8 Oct walk at 390px): rows with three buttons squeezed the album link into one letter per line, the
   album grid showed two photos a row (858 photos = 50,000px of scrolling), the viewer spoke of keys. */
@media (max-width: 520px) {
  .ev-row { flex-wrap: wrap; }
  .ev-row .sum { flex-wrap: wrap; width: 100%; padding-left: 38px; }
  #agrid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  #agrid .aph .info { font-size: 11px; padding: 0 4px; }
  .pv-bar .btn.small { min-height: 44px; padding: 6px 16px; }
}
.clean-box { border: 1.5px solid #E0A800; background: #FFFBEA; border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; display: grid; gap: 6px; }
.clean-box .chips { margin: 2px 0 0; }
.clean-box .chip { background: #fff; min-height: 40px; }
.clean-box[hidden] { display: none; }
/* Post set: what this album's suggestions should be (8 Oct). */
.ps-want { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; display: grid; gap: 8px; }
.ps-preset { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-want .chip { min-height: 40px; }
.ps-want .chips { margin: 0; }
.chip[aria-pressed="true"] .muted { color: #D0D0D0; }
/* Bad-photo check after an upload (8 Oct). */
.rv-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 4px; }
.rv .rv-only { position: absolute; left: 4px; top: 4px; font-size: 10px; font-weight: 600; background: var(--ok); color: #fff; padding: 1px 6px; border-radius: 6px; }
.clean-box .btn.primary { justify-self: start; min-height: 44px; }
.rv .tick { display: flex; }
.clean-box .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
/* Step 2 (8 Oct): cover choices, the bad-photo check inline, and its big view. */
.cover-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.cover-pick { border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 3 / 2; }
.cover-pick img { width: 100%; height: 100%; object-fit: cover; }
.cover-pick.on { border-color: var(--accent); }
#rvInline { margin-top: 14px; }
.rv-group { display: grid; gap: 6px; }
.rv-group .section-head { margin: 0; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.rv { position: relative; }
.rv .rv-open { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.rv .rv-open img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.rv .tick { display: flex; width: 34px; height: 34px; cursor: pointer; }
.rv-more { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: rgba(17, 17, 17, 0.75); color: #fff; padding: 1px 6px; border-radius: 6px; }
.rv-kinds summary { cursor: pointer; padding: 6px 0; }
.rv-bar { padding: 10px 16px 14px; display: grid; gap: 8px; background: #0d0d0d; }
.rv-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.rv-strip button { flex: none; width: 56px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; }
.rv-strip button.on { border-color: var(--accent); }
.rv-strip img { width: 100%; height: 100%; object-fit: cover; }
.rv-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv-acts .btn { min-height: 48px; }
#rvStage.zoomed { overflow: auto; display: block; }
#rvStage.zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.rv .rv-more, .rv .rv-only { pointer-events: none; }
.ph.rv { aspect-ratio: auto; }
.rv-bar .btn { background: #fff; color: var(--ink); border-color: #fff; }
.rv-bar .btn.primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.ps-show { align-items: center; }

/* ---------- Winmix Picture ---------- */
.brand .brand-logo { width: auto; height: 34px; }
.home-hero img { width: min(300px, 74%); }
.home-tag { text-align: center; color: var(--muted); font-size: 15px; margin: -8px 0 18px; }
.cat-chips { margin-bottom: 16px; }
.cat-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 2px 10px; border-radius: 10px; background: #EDEDED; color: var(--ink); }
.album-card .cat-tag { margin-top: 12px; }
.album-name { margin: 6px 0 2px; font-size: 18px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.album-meta { color: var(--muted); font-size: 14px; }
.album-head { padding: 16px 0 4px; }
.album-head h1 { font-size: 24px; line-height: 1.35; margin: 8px 0 4px; overflow-wrap: anywhere; }
.album-head .muted { font-size: 15px; }
.expiry-note { font-size: 14px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 4px 0 16px; }
.expiry-note b { color: var(--ink); }
.gate { max-width: 420px; margin: 32px auto 0; text-align: center; }
.gate-lock { width: 56px; height: 56px; border-radius: 50%; background: #EDEDED; display: grid; place-items: center; margin: 0 auto 14px; }
.gate h1 { font-size: 22px; line-height: 1.35; margin: 10px 0 6px; overflow-wrap: anywhere; }
.gate .muted { margin-bottom: 18px; }
.gate input { width: 100%; min-height: 54px; border-radius: 8px; border: 1.5px solid var(--line); background: #FFFFFF; padding: 12px; font-size: 20px; text-align: center; letter-spacing: 0.15em; }
.gate .error { min-height: 1.5em; margin: 8px 0; }
.consent-list { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.found-head { display: flex; align-items: center; gap: 14px; margin: 8px 0 4px; }
.found-n { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #FFFFFF; display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.found-head .results-title { text-align: left; margin: 0; font-size: 22px; }
.found-head .results-sub { text-align: left; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chip { min-height: 44px; display: inline-flex; align-items: center; }
.field-set { border: 0; padding: 0; margin: 12px 0; min-width: 0; }
.field-set legend { font-size: 15px; padding: 0; margin-bottom: 6px; }
.field-set .chips { margin-top: 0; }
label.chip { position: relative; }
label.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
label.chip:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; background: #FFFFFF; padding: 12px; margin-bottom: 8px; min-height: 48px; cursor: pointer; font-size: 15px; }
.opt:has(input:checked) { border-color: var(--ink); }
.opt input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.opt small { display: block; color: var(--muted); font-size: 13px; }
.field .small.muted { font-size: 13px; }
body.home .top .brand { visibility: hidden; } /* the home page shows the big logo itself */
.btn.small, .ev-steps button { min-height: 44px; }
.album-cover.locked { display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); font-size: 14px; }
