/* Look v2's moments (SPEC 1 rules 2, 7 and 8; D31, D36): the live card and its track, the visit clock, photos large
   and small, the photo viewer, the first run's street photo, and the activity list with its composer. ui.js draws them;
   every rule sits under .v2. The card, the track and the clock read the same visit fields with the same maths. */

/* ---------------------------------------------------------------- the live card (on site only, D36) */
.v2 .v-livec { position: relative; display: block; margin-top: 22px; padding: 18px 20px 16px; border-radius: var(--v-r-surf);
  background: var(--v-white); box-shadow: var(--v-lift); }
.v2 .v-lc-k { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.v2 .v-lc-t { margin-top: 8px; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.2px; }
.v2 .v-lc-a::after { content: ""; position: absolute; inset: 0; border-radius: var(--v-r-surf); }
html.kbd .v2 .v-lc-a:focus-visible { outline: none; }
html.kbd .v2 .v-lc-a:focus-visible::after { outline: 2px solid var(--v-ink); outline-offset: 2px; }
.v2 .v-lc-p { margin-top: 2px; }
.v2 .v-lc-line { margin-top: 14px; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--v-ink-2); }
.v2 .v-lc-note { margin-top: 6px; color: var(--v-ink-2); }
.v2 .v-lc-f { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--v-hair); }
.v2 .v-lc-sw { position: relative; z-index: 1; }
.v2 .v-lc-more { min-height: 44px; margin: -10px 0; font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--v-hair-2); text-underline-offset: 3px; }
.v2 .v-lc-tabs { position: relative; z-index: 1; display: flex; gap: 18px; margin-top: 10px; border-bottom: 1px solid var(--v-hair); }
.v2 .v-lc-tab { min-height: 44px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--v-mute); box-shadow: inset 0 -2px 0 transparent; }
.v2 .v-lc-tab[aria-pressed="true"] { color: var(--v-ink); box-shadow: inset 0 -2px 0 var(--v-ink); }
@media (min-width: 1024px) {
  .v2 .v-livec { padding: 22px 26px 18px; }
  .v2 .v-lc-t { font-size: 24px; line-height: 30px; }
  .v2 .v-lc-more, .v2 .v-lc-tab { min-height: 36px; }
}

/* ---------------------------------------------------------------- the track: the window, ink from arrival to now */
.v2 .v-trk { position: relative; height: 56px; margin: 16px 0 2px; }
.v2 .v-trk-bar { position: absolute; left: 0; right: 0; top: 24px; height: 8px; border-radius: 4px; background: var(--v-fill);
  box-shadow: inset 0 0 0 1px var(--v-hair); }
.v2 .v-trk-fill { position: absolute; top: 24px; height: 8px; border-radius: 4px; background: var(--v-ink);
  transition: width var(--v-slow) var(--v-ease); }
.v2 .v-trk-gap { position: absolute; top: 24px; width: 2px; height: 8px; margin-left: -1px; background: var(--v-white); }
.v2 .v-trk-now { position: absolute; top: 18px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%;
  background: var(--v-orange); border: 4px solid var(--v-white); box-shadow: 0 1px 4px rgba(14, 17, 22, .3);
  transition: left var(--v-slow) var(--v-ease); }
.v2 .v-trk-lab { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; color: var(--v-ink); font-weight: 700; }
.v2 .v-trk-lab.v-at-start { transform: translateX(-10px); }
.v2 .v-trk-lab.v-at-end { transform: translateX(calc(-100% + 10px)); }
.v2 .v-trk-end { position: absolute; top: 38px; left: 0; white-space: nowrap; }
.v2 .v-trk-end.v-trk-end-r { left: auto; right: 0; }

/* ---------------------------------------------------------------- the visit clock: the fan, one segment per hour */
.v2 .v-clock { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; overflow: visible; }
.v2 .v-clock .v-ck-rest { fill: var(--v-arc); }
.v2 .v-clock .v-ck-on { fill: var(--v-ink); }
.v2 .v-clock .v-ck-now { fill: var(--v-orange); stroke: var(--v-white); stroke-width: 5; }
.v2 .v-clock text { font-family: var(--v-sans); }
.v2 .v-clock .v-ck-lab { font-size: 15px; font-weight: 700; fill: var(--v-ink); }
.v2 .v-clock .v-ck-end { font-size: 14px; font-weight: 600; fill: var(--v-mute); }
.v2 .v-clock .v-ck-h { font-family: var(--v-din); font-size: 60px; font-weight: 700; fill: var(--v-ink); }
.v2 .v-clock .v-ck-sub { font-size: 16px; font-weight: 600; fill: var(--v-mute); }
@media (min-width: 1024px) { .v2 .v-clock { margin: 0; } }

/* ---------------------------------------------------------------- photos: large where the work is shown (rule 7) */
.v2 .v-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.v2 .v-pair-f { display: block; min-width: 0; text-align: left; cursor: zoom-in; }
.v2 .v-pair-f img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--v-r-surf); background: var(--v-fill); }
.v2 .v-pair-c { display: block; padding-top: 6px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--v-mute); }
.v2 .v-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.v2 .v-strip-b { flex: none; width: 72px; height: 72px; border-radius: var(--v-r-ctl); overflow: hidden; background: var(--v-fill); cursor: zoom-in; }
.v2 .v-strip-b img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .v2 .v-pair { gap: 10px; }
  .v2 .v-pair-f img { aspect-ratio: 4 / 3; }
  .v2 .v-strip-b { width: 96px; height: 96px; }
}

/* ---------------------------------------------------------------- the full screen photo viewer */
.v2.v-viewer { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--v-ink); color: var(--v-white); }
.v2.v-viewer:focus { outline: none; }
.v2 .v-vw-top { display: flex; justify-content: flex-end; padding: calc(4px + env(safe-area-inset-top)) 8px 0; }
.v2 .v-vw-top .v-icon-btn { color: var(--v-white); }
.v2 .v-vw-top .v-icon-btn:hover { background: rgba(255, 255, 255, .12); }
.v2 .v-vw-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 8px; }
.v2 .v-vw-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.v2 .v-vw-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 50%; background: rgba(14, 17, 22, .6); color: var(--v-white); }
.v2 .v-vw-prev { left: 8px; }
.v2 .v-vw-next { right: 8px; }
.v2 .v-vw-foot { display: flex; justify-content: space-between; gap: 16px; padding: 14px var(--v-gut) calc(16px + env(safe-area-inset-bottom));
  font-size: 15px; line-height: 21px; font-weight: 500; }
.v2 .v-vw-when, .v2 .v-vw-count { color: #C9CED4; font-size: 14px; line-height: 20px; }
html.kbd .v2.v-viewer :focus-visible { outline-color: var(--v-white); }

/* ---------------------------------------------------------------- the first run's street photo (sign in, set up, pay) */
.v2 .v-frp { position: relative; height: 280px; overflow: hidden; background: var(--v-fill); }
.v2 .v-frp-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; }
.v2 .v-frp-sample { display: none; }
@media (min-width: 1024px) {
  .v2 .v-frp { position: sticky; top: 0; height: 100vh; height: 100dvh; }
  .v2 .v-frp-img { object-position: 50% 50%; }
  .v2 .v-frp-sample { display: block; position: absolute; left: 48px; bottom: 48px; width: 380px; max-width: calc(100% - 96px); }
  .v2 .v-frp-sample .v-livec { margin-top: 0; }
  .v2 .v-frp-cap { display: block; margin-bottom: 6px; }
}

/* ---------------------------------------------------------------- activity: day headings and rows */
.v2 .v-act-day { padding: 20px 0 6px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--v-mute); }
.v2 .v-ev { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 16px; padding: 11px 0 12px;
  border-bottom: 1px solid var(--v-hair); font-size: 15px; line-height: 22px; }
.v2 .v-ev > time { text-align: right; color: var(--v-mute); font-weight: 500; white-space: nowrap; }
.v2 .v-ev-w { font-weight: 500; color: var(--v-ink); }
.v2 .v-ev-x { margin-top: 2px; color: var(--v-ink-2); white-space: pre-line; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- the composer */
.v2 .v-comp { margin-top: 14px; padding: 10px 8px 8px 14px; border-radius: var(--v-r-ctl); box-shadow: inset 0 0 0 1px var(--v-field); }
.v2 .v-comp:focus-within { box-shadow: inset 0 0 0 2px var(--v-ink); }
.v2 .v-comp-in { display: block; width: 100%; min-height: 44px; max-height: 220px; padding: 2px 6px 0 0; border: 0; outline: none;
  background: none; resize: none; font-size: 16px; line-height: 22px; color: var(--v-ink); }
.v2 .v-comp-in::placeholder { color: var(--v-mute); }
html.kbd .v2 .v-comp-in:focus-visible { outline: none; }
.v2 .v-comp-bar { display: flex; align-items: center; justify-content: space-between; margin-left: -10px; }
.v2 .v-comp-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
