/* BUFF OS v55 — progress photos: three angles, one row */
.p55-row { display: flex; gap: 9px; margin-top: 2px; }
.p55-tile { position: relative; flex: 1; min-width: 0; aspect-ratio: 3 / 4; padding: 0;
  border-radius: 14px; overflow: hidden; cursor: pointer; font-family: inherit;
  background: var(--elev2); border: 1px dashed var(--line2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform .15s var(--spring); }
.p55-tile.has { border-style: solid; border-color: rgba(var(--accent-rgb), .4); }
.p55-tile:active { transform: scale(.96); }
.p55-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p55-ph { font-size: 26px; opacity: .5; margin-bottom: 22px; }
.p55-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 6px 6px;
  display: flex; flex-direction: column; gap: 1px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82)); }
.p55-cap b { font-size: 11.5px; font-weight: 800; color: #fff; }
.p55-cap small { font-size: 9.5px; font-weight: 700; color: rgba(255,255,255,.62); }
.p55-n { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 9px;
  background: rgba(0,0,0,.6); color: #fff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.p55-foot { margin-top: 10px; font-size: 10.5px; font-weight: 600; color: var(--txt3); text-align: center; }

/* the side-by-side sheet */
.p55-block { margin-bottom: 20px; }
.p55-bh { font-size: 15px; font-weight: 800; margin-bottom: 9px; }
.p55-bh span { font-size: 10.5px; font-weight: 700; color: var(--txt3); margin-left: 6px; }
.p55-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.p55-shot { position: relative; flex: 0 0 auto; width: 46%; margin: 0; scroll-snap-align: start; }
.p55-shot img { width: 100%; border-radius: 12px; display: block; border: 1px solid var(--line2); }
.p55-shot figcaption { margin-top: 5px; font-size: 10.5px; font-weight: 700; color: var(--txt3);
  text-align: center; }
.p55-x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.62); border: 0; color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }

/* ---- in-app camera: self-timer, so the phone can be propped up ---- */
.p55-lib { display: block; width: 100%; margin-top: 12px; padding: 10px;
  background: none; border: 0; font-family: inherit; font-size: 12.5px; font-weight: 700;
  color: var(--accent); cursor: pointer; }
.p55-cam { position: fixed; inset: 0; z-index: 950; display: none; background: #000; }
.p55-cam.on { display: block; }
#p55Vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p55-guide { position: absolute; left: 12%; right: 12%;
  top: calc(var(--buff-top-clearance, 34px) + 96px); bottom: 190px;
  border: 1.5px dashed rgba(255,255,255,.28); border-radius: 18px; pointer-events: none; }
.p55-camtop { position: absolute; left: 0; right: 0; top: 0;
  padding: calc(var(--buff-top-clearance, 34px) + 12px) 16px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.62), transparent); }
.p55-camttl { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.p55-cx { width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 16px; cursor: pointer; }
.p55-hint2 { position: absolute; left: 20px; right: 20px;
  top: calc(var(--buff-top-clearance, 34px) + 62px); text-align: center;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.8);
  text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.p55-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 116px; font-weight: 800; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.6);
  pointer-events: none; font-variant-numeric: tabular-nums; }
.p55-cambot { position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 16px calc(var(--buff-bottom-clearance, 0px) + 18px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent); }
.p55-delays { display: flex; gap: 8px; }
.p55-d { min-width: 52px; padding: 8px 0; border-radius: 100px; font-family: inherit;
  font-size: 12.5px; font-weight: 800; cursor: pointer;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.p55-d.on { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.p55-shoot { width: 72px; height: 72px; border-radius: 50%; padding: 0; cursor: pointer;
  background: none; border: 4px solid rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center; }
.p55-shoot span { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: block;
  transition: transform .15s var(--spring); }
.p55-shoot:active span { transform: scale(.86); }
.p55-camfoot { font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.55); }
/* first vs latest is the shot that actually shows change */
.p55-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.p55-pair figure { margin: 0; }
.p55-pair img { width: 100%; border-radius: 12px; display: block; border: 1px solid var(--line2); }
.p55-pair figcaption { margin-top: 5px; font-size: 10.5px; font-weight: 700; color: var(--txt3); text-align: center; }
.p55-save { position: absolute; top: 6px; right: 32px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.62); border: 0; color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }

/* v55.1 — upload-first */
.p55-lib-row { display: flex; gap: 6px; margin-top: 10px; }
.p55-lib-row .p55-lib { flex: 1; margin: 0; }
.p55-cambtn { display: block; width: 100%; margin-top: 8px; padding: 9px; border: 0; background: none;
  color: var(--txt3); font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.p55-inbox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding: 11px 13px;
  border-radius: 14px; background: rgba(91, 185, 140, .1); border: 1px solid rgba(91, 185, 140, .35); }
.p55-inbox b { font-size: 13.5px; font-weight: 800; }
.p55-inbox small { font-size: 11.5px; font-weight: 600; color: var(--txt3); }
.p55-inbox .p55-lib { margin: 0 0 0 auto; }
