/* Photo viewer, rendered by src/ui/album-photo-viewer.tsx. Desktop ("Lichttisch"): the
   photo with its neighbours on the left, a details column on the right. Phone: see
   below. Both show the photo as a framed print on the album pages' paper, in sepia
   EB Garamond, not in the leather of the album reader. */

.album-photo-dialog.is-desktop {
  --pv-ink: #4e3f2c;
  --pv-muted: #6b5a42;
  --pv-faint: #8a7a5e;
  --pv-line: rgb(91 74 53 / 0.2);
  --pv-ground: #f3ecdb;
  --pv-panel: #faf5e8;
  --pv-hover: rgb(91 74 53 / 0.07);
  --pv-serif: "EB Garamond", Georgia, serif;
  width: min(1560px, 97vw);
  height: 95dvh;
  padding: 0;
  border-radius: 12px;
  background:
    url(/album-textures/paper.jpg) 0 0 / 256px 256px,
    var(--pv-ground);
  color: var(--pv-ink);
  font: 400 16px/1.5 var(--pv-serif);
  box-shadow: 0 30px 80px rgb(40 30 18 / 0.35);
}
.album-photo-dialog.is-desktop[open] {
  flex-direction: row;
  gap: 0;
}
.album-photo-dialog.is-desktop::backdrop {
  background: rgb(40 30 18 / 0.55);
}
.is-desktop svg.lucide {
  width: 18px;
  height: 18px;
  flex: none;
}
.is-desktop button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.is-desktop button:focus-visible,
.is-desktop a:focus-visible {
  outline: 2px solid var(--pv-muted);
  outline-offset: 2px;
}

/* Photo column */
.photo-viewer-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  /* Quick clicks on the arrows must not select the viewer's text. */
  user-select: none;
  -webkit-user-select: none;
}
.photo-viewer-bar {
  height: 60px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 24px;
  color: var(--pv-muted);
  font-size: 15px;
}
.photo-viewer-album {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--pv-ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.photo-viewer-album:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.photo-viewer-open-album {
  border: 1px solid var(--pv-line);
  border-radius: 99px;
  padding: 6px 14px;
}
.photo-viewer-album-action {
  flex: none;
}
.photo-viewer-album-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.is-phone .photo-viewer-open-album:focus-visible {
  outline: 2px solid var(--album-gold, #dcc48e);
  outline-offset: 2px;
}
.is-desktop .album-photo-position {
  flex: none;
  margin: 0;
  font-size: 15px;
  line-height: 1;
  color: var(--pv-muted);
  font-variant-numeric: tabular-nums;
}
.photo-viewer-grow {
  flex: 1;
}
.photo-viewer-faces {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--pv-line);
  border-radius: 99px;
  background: none;
  color: var(--pv-muted);
  font-size: 15px;
}
.photo-viewer-faces[hidden] {
  display: none;
}
.photo-viewer-faces:hover {
  color: var(--pv-ink);
  border-color: rgb(91 74 53 / 0.4);
}
.photo-viewer-faces[aria-pressed="true"] {
  background: var(--pv-ink);
  border-color: var(--pv-ink);
  color: #f3ecdb;
}
.is-desktop .album-zoom-body {
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 0;
  /* Room around the photo for the print border and its shadow. */
  padding: 20px 76px 24px;
}
.is-desktop .album-photo-canvas {
  /* Sized to the fitted photo in code (fitDesktop), so the print border hugs it. */
  flex: none;
  position: relative;
  overflow: visible;
}
.is-desktop .album-photo-canvas img {
  position: relative;
  z-index: 1;
  filter: sepia(0.06);
}
.is-desktop .album-zoom-prev,
.is-desktop .album-zoom-next {
  position: absolute;
  top: 50%;
  z-index: 4;
  translate: 0 -50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pv-muted);
}
.is-desktop .album-zoom-prev svg.lucide,
.is-desktop .album-zoom-next svg.lucide {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}
.is-desktop .album-zoom-prev {
  left: 16px;
}
.is-desktop .album-zoom-next {
  right: 16px;
}
.is-desktop .album-zoom-prev:hover:not(:disabled),
.is-desktop .album-zoom-next:hover:not(:disabled) {
  color: var(--pv-ink);
}
.is-desktop .album-zoom-prev:disabled,
.is-desktop .album-zoom-next:disabled {
  opacity: 0.2;
}
.photo-viewer-strip {
  height: 78px;
  flex: none;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px 18px;
  overflow: hidden;
}
.photo-viewer-strip button {
  width: 50px;
  height: 50px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: #f6f1e6;
  box-shadow: 0 0 0 1px var(--pv-line);
  opacity: 0.6;
}
.photo-viewer-strip button:hover {
  opacity: 0.85;
}
.photo-viewer-strip button[aria-current] {
  opacity: 1;
  outline: 1px solid var(--pv-ink);
  outline-offset: 2px;
}
.photo-viewer-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 2px;
  box-sizing: border-box;
}

/* Face boxes (phone and desktop): hidden until the viewer turns them on. A hovered name, the selected
   face and a face being marked stay visible either way. */
.album-photo-dialog .photo-face-overlay rect {
  stroke: rgb(255 255 255 / 0.85);
  stroke-width: 1.5;
  rx: 4px;
  filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.6));
  transition: opacity 0.15s;
}
.album-photo-dialog .photo-face-overlay g.is-unknown rect {
  stroke: #dcc48e;
  stroke-dasharray: 4 3;
}
.album-photo-dialog .photo-face-overlay rect.selected {
  stroke: #dcc48e;
  stroke-width: 2.5;
  stroke-dasharray: none;
}
.album-photo-dialog .photo-face-overlay text {
  font-family: "Instrument Sans", var(--sans, sans-serif);
  font-weight: 600;
  fill: #fff;
  stroke: rgb(0 0 0 / 0.5);
  stroke-width: 3px;
}
.album-photo-dialog .photo-face-overlay g.is-hot rect {
  stroke-width: 2.5;
}
.album-photo-dialog:not(.faces-shown)
  .photo-face-overlay:not(.is-marking)
  g:not(.is-hot, .is-selected) {
  visibility: hidden;
}
/* SVG `pointer-events: all` ignores visibility; hidden boxes must not take taps or clicks. */
.album-photo-dialog:not(.faces-shown)
  .photo-face-overlay:not(.is-marking)
  g:not(.is-hot, .is-selected)
  rect {
  pointer-events: none;
}

/* Details column */
.photo-viewer-details {
  width: 380px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--pv-panel);
  border-left: 1px solid var(--pv-line);
  border-radius: 0 12px 12px 0;
}
.photo-viewer-details-head {
  height: 60px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
}
.is-desktop .album-zoom-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--pv-muted);
  font-size: inherit;
}
.is-desktop .album-zoom-close:hover {
  background: var(--pv-hover);
  color: var(--pv-ink);
}
.photo-viewer-details-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 30px 28px;
}
.photo-viewer-when {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pv-faint);
}
.photo-viewer-caption {
  margin: 0 0 14px;
  font: 400 30px/1.15 var(--pv-serif);
  color: #3f3222;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.is-desktop .album-page-memory {
  margin: 0 0 14px;
  font:
    italic 18px/1.45 "EB Garamond",
    Georgia,
    serif;
  color: var(--pv-muted);
  white-space: pre-wrap;
}
.photo-viewer-section {
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--pv-line);
}
.photo-viewer-details-body > .photo-viewer-section:first-of-type {
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
}
.photo-viewer-label {
  margin: 0 0 12px;
  font: 400 12px/1 var(--pv-serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pv-faint);
}

/* People: the face editor as a quiet list */
.is-desktop .photo-people-panel {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--pv-ink);
}
.is-desktop .photo-people-panel > h3 {
  display: none;
}
.is-desktop .photo-people-panel p {
  font-size: 14px;
}
.is-desktop .face-choices {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
}
.is-desktop .face-choices [data-face] {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 12px;
  align-items: center;
  width: calc(100% + 16px);
  max-width: none;
  margin: 0 -8px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--pv-ink);
  text-align: left;
}
.is-desktop .face-choices [data-face]:hover,
.is-desktop .face-choices [data-face].is-hot {
  background: var(--pv-hover);
}
.is-desktop .face-choices [data-face][aria-pressed="true"] {
  background: rgb(91 74 53 / 0.11);
  color: var(--pv-ink);
}
.is-desktop .face-choices .face-number {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(91 74 53 / 0.3);
  border-radius: 99px;
  font-size: 12px;
  color: var(--pv-faint);
  opacity: 1;
}
.is-desktop .face-choices .face-name {
  font-size: 18px;
  line-height: 1.25;
}
.is-desktop .face-choices .face-state {
  font-size: 12px;
  line-height: 1.3;
  color: var(--pv-faint);
  opacity: 1;
}
.is-desktop .face-choices [data-state="suggested"] .face-name {
  color: var(--pv-muted);
}
.is-desktop .face-choices [data-state="unknown"] .face-name {
  color: #9c614c;
}
.is-desktop .photo-people-panel > [data-mark] {
  align-self: flex-start;
  margin-top: 16px;
  padding: 7px 0;
  border: 0;
  background: none;
  color: var(--pv-muted);
  font-size: 16px;
}
.is-desktop .photo-people-panel > [data-mark]:hover {
  color: var(--pv-ink);
}
.is-desktop .tag-status {
  color: var(--pv-muted);
}
.is-desktop .photo-people-panel button.fz-button,
.is-desktop .photo-people-panel button.fz-icon-button,
.is-desktop .person-picker button,
.is-desktop .photo-people-panel button[type="submit"] {
  background: transparent;
  border: 1px solid #a8987a;
  color: var(--pv-ink);
}
.is-desktop .photo-people-panel button.fz-button:hover,
.is-desktop .photo-people-panel button.fz-icon-button:hover,
.is-desktop .person-picker button:hover {
  background: var(--pv-hover);
  border-color: var(--pv-muted);
}
.is-desktop .person-picker input[type="search"],
.is-desktop .person-suggestion input,
.is-desktop .person-suggestion textarea {
  background: #fffdf6;
  border-color: #c9bea5;
  color: #3f3222;
}
.is-desktop .assignment-editor > summary,
.is-desktop .person-choice-context,
.is-desktop .manual-face-box legend {
  color: var(--pv-muted);
}
.is-desktop .viewer-assignment {
  margin-top: 12px;
}
.is-desktop .viewer-assignment-question {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--pv-muted);
}
.is-desktop .viewer-assignment-cancel {
  margin-top: 6px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--pv-muted);
  font-size: 16px;
}
.is-desktop .viewer-assignment-cancel:hover {
  color: var(--pv-ink);
}

/* Memories */
.is-desktop .album-contributions {
  max-width: none;
  margin: 0;
  text-align: left;
}
.is-desktop .album-contributions article {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 16px;
  padding: 0 0 0 16px;
  border: 0;
  border-left: 2px solid rgb(156 97 76 / 0.4);
}
.is-desktop .album-contributions article strong {
  order: 2;
  font-size: 13px;
  font-weight: 400;
  color: var(--pv-faint);
}
.is-desktop .album-contributions article p {
  margin: 0;
  font:
    italic 18px/1.45 "EB Garamond",
    Georgia,
    serif;
  color: var(--pv-ink);
}
.is-desktop .album-contribution-editor summary {
  display: inline-block;
  padding: 7px 0;
  font-size: 16px;
  color: var(--pv-muted);
}
.is-desktop .album-contribution-editor summary:hover {
  color: var(--pv-ink);
}
.is-desktop .album-contribution-editor form {
  grid-template-columns: 1fr;
  margin-top: 8px;
}
.is-desktop .album-contribution-editor label {
  color: var(--pv-muted);
}

@media (max-width: 1100px) {
  .photo-viewer-details {
    width: 320px;
  }
  .photo-viewer-details-body {
    padding: 0 22px 24px;
  }
  .is-desktop .album-zoom-body {
    padding: 4px 64px 12px;
  }
}

/* "ca." inside the capital date lines (phone and desktop) */
.photo-approx {
  text-transform: none;
  letter-spacing: 0.04em;
}

/* ── Phone: a photo on the album pages' paper, not the leather album reader ──────────────────────
   Photo and lettering are placed in code (phoneLayout in src/phone-photo-layout.ts);
   these rules only size and colour them. */
.album-photo-dialog.is-phone {
  --pv-ink: #4e3f2c;
  --pv-muted: #6b5a42;
  --pv-faint: #8a7a5e;
  --pv-line: rgb(91 74 53 / 0.2);
  --pv-ground: #f3ecdb;
  --pv-panel: #faf5e8;
  --pv-accent: #4e3f2c;
  --pv-serif: "EB Garamond", Georgia, serif;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0 0 env(safe-area-inset-bottom);
  border-radius: 0;
  background:
    url(/album-textures/paper.jpg) 0 0 / 256px 256px,
    var(--pv-ground);
  color: var(--pv-ink);
  font-family: var(--pv-serif);
}
.album-photo-dialog.is-phone[open] {
  gap: 0;
}
.album-photo-dialog.is-phone::backdrop {
  background: var(--pv-ground);
}
/* No blue tap flash over the viewer. */
.album-photo-dialog.is-phone,
.album-photo-dialog.is-phone * {
  -webkit-tap-highlight-color: transparent;
}
.is-phone .album-photo-top {
  height: 58px;
  padding: 0 10px;
  gap: 4px;
}
.is-phone .album-zoom-close {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 99px;
  color: var(--pv-ink);
}
.is-phone .album-photo-position {
  flex: 1;
  margin: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
/* The photo's date heads the page in place of a counter. */
.is-phone .album-photo-date {
  flex: 1;
  min-width: 0;
  text-align: center;
  font: 400 14px/1 var(--pv-serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pv-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.is-phone .album-photo-top-end {
  width: 44px;
  height: 44px;
  flex: none;
}
.is-phone .album-zoom-body {
  position: relative;
  display: block;
  gap: 0;
  padding: 10px 20px 22px;
}
.is-phone .album-photo-canvas {
  position: absolute;
  overflow: visible;
}
/* A soft shadow under the photo; no print border. */
.album-photo-print {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* The cream border and soft shadow of the prints on the album pages, with a fine
     dark edge around the border. */
  box-shadow:
    0 0 0 6px #f6f1e6,
    0 0 0 7px rgb(91 74 53 / 0.45),
    0 1px 1px 7px rgb(60 45 25 / 0.2),
    0 6px 16px 7px rgb(60 45 25 / 0.2);
}
.is-phone .album-photo-canvas img {
  position: relative;
  z-index: 1;
  filter: sepia(0.06);
}
.album-zoom-body.has-photo-gestures {
  position: relative;
  overflow: hidden;
  touch-action: none;
}
.has-photo-gestures .album-photo-canvas {
  will-change: transform;
}

/* Place, caption, names and page note under the photo */
.sheet-open .album-photo-gold {
  display: none;
}
.album-photo-gold {
  position: absolute;
  left: 20px;
  right: 20px;
  /* Room kept below the photo for place, caption and names (read by phoneLayout);
     longer text is cut off at the toolbar, the page note first. */
  --lettering-room: 100px;
  /* Space between photo and lettering, read by phoneLayout. */
  --lettering-gap: 24px;
  overflow: hidden;
  text-align: center;
}
.album-photo-gold > p {
  margin: 0;
  overflow-wrap: anywhere;
}
.album-gold-facts {
  font: 400 12px/1.3 var(--pv-serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pv-faint);
}
.album-gold-caption {
  margin-top: 6px !important;
  font: 400 24px/1.15 var(--pv-serif);
  color: #3f3222;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.is-phone .album-photo-gold .album-page-memory {
  margin-top: 4px;
  font:
    italic 16px/1.35 "EB Garamond",
    Georgia,
    serif;
  color: var(--pv-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.is-phone .album-photo-people {
  /* One line is kept while the names load, so the photo does not move. */
  min-height: 1.35em;
  margin-top: 8px !important;
  font: italic 17px/1.35 var(--pv-serif);
  color: var(--pv-muted);
}
.is-phone .album-photo-people[data-empty="true"] {
  visibility: hidden;
}
.album-photo-people small {
  font-size: 0.78em;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.album-name-suggested {
  font-style: italic;
  opacity: 0.8;
}

/* Toolbar (Album, Details) and the details panel that opens above it */
.album-photo-sheet {
  flex: none;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin: 0 16px 14px;
  padding: 0;
  border: 1px solid var(--pv-line);
  border-radius: 12px;
  background: var(--pv-panel);
  box-shadow:
    0 1px 2px rgb(60 45 25 / 0.12),
    0 10px 26px rgb(60 45 25 / 0.14);
}
.album-photo-sheet:not([data-expanded="true"]) {
  border: 0;
  background: none;
  box-shadow: none;
}
.album-photo-sheet[data-expanded="true"] {
  /* A fixed height keeps the photo steady while people load. */
  height: 50dvh;
}
.album-sheet-more {
  order: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 18px 12px;
}
.album-photo-sheet:not([data-expanded="true"]) .album-sheet-more {
  display: none;
}
.album-photo-actions {
  order: 1;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 4px;
  padding: 0 6px;
  border: 1px solid var(--pv-line);
  border-radius: 99px;
  background: var(--pv-panel);
  color: var(--pv-ink);
  box-shadow: 0 3px 10px rgb(60 45 25 / 0.1);
}
.album-photo-sheet[data-expanded="true"] .album-photo-actions {
  align-self: stretch;
  margin-top: auto;
  border: 0;
  border-top: 1px solid var(--pv-line);
  border-radius: 0;
  box-shadow: none;
}
.is-phone
  .album-photo-actions
  :is(.album-sheet-toggle, .photo-viewer-open-album) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  margin: 0;
  border: 0;
  border-radius: 99px;
  background: none;
  color: inherit;
  font: 400 16px/1.2 var(--pv-serif);
  text-decoration: none;
  cursor: pointer;
}
.album-photo-actions .photo-viewer-album-action {
  font-weight: 400;
}
.album-photo-actions svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.album-photo-actions .album-sheet-toggle[aria-expanded="true"] {
  background: rgb(91 74 53 / 0.08);
}

/* Sections of the details panel, as on desktop */
.album-sheet-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--pv-line);
}
.album-sheet-more > .album-sheet-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.album-sheet-label {
  margin: 0 0 8px;
  font: 400 12px/1.3 var(--pv-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pv-faint);
}
/* «Auf dem Foto» with the face switch beside it */
.album-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.album-sheet-head .album-sheet-label {
  margin: 0;
}
.is-phone .photo-viewer-faces {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--pv-line);
  border-radius: 99px;
  background: none;
  color: var(--pv-muted);
  font: 400 15px/1 var(--pv-serif);
}
.is-phone .photo-viewer-faces[hidden] {
  display: none;
}
.is-phone .photo-viewer-faces[aria-pressed="true"] {
  background: var(--pv-accent);
  border-color: var(--pv-accent);
  color: #f3ecdb;
}
.is-phone .photo-viewer-faces svg {
  width: 16px;
  height: 16px;
}

/* People as numbered rows */
.is-phone .photo-people-panel {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--pv-ink);
}
.is-phone .photo-people-panel > h3 {
  display: none;
}
.is-phone .photo-people-panel p {
  font-size: 13px;
  line-height: 1.45;
}
.is-phone .face-choices {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
}
.is-phone .face-choices [data-face] {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 12px;
  align-items: center;
  width: calc(100% + 16px);
  max-width: none;
  min-height: 44px;
  margin: 0 -8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--pv-ink);
  text-align: left;
}
.is-phone .face-choices [data-face][aria-pressed="true"] {
  background: rgb(91 74 53 / 0.1);
  color: var(--pv-ink);
}
.is-phone .face-choices .face-number {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(91 74 53 / 0.3);
  border-radius: 99px;
  font: 12px/1 var(--pv-serif);
  color: var(--pv-faint);
  opacity: 1;
}
.is-phone .face-choices .face-name {
  font: 400 18px/1.25 var(--pv-serif);
}
.is-phone .face-choices .face-state {
  font-size: 12px;
  line-height: 1.3;
  color: var(--pv-faint);
  opacity: 1;
}
.is-phone .face-choices [data-state="unknown"] .face-name {
  color: #9c614c;
}
.is-phone .tag-status,
.is-phone .viewer-assignment-question {
  color: var(--pv-muted);
}
.is-phone .viewer-assignment {
  margin-top: 10px;
}
.is-phone .viewer-assignment-question {
  margin: 0 0 6px;
}
.is-phone .photo-people-panel button.fz-button {
  background: none;
  border-color: var(--pv-line);
  color: var(--pv-ink);
}
/* Quiet text actions: marking a face, cancelling a change */
.is-phone .photo-people-panel > [data-mark],
.is-phone .viewer-assignment-cancel {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pv-muted);
  font: 400 16px/1.3 var(--pv-serif);
}

/* Memories */
.is-phone .album-contributions {
  margin: 0;
  text-align: left;
}
.is-phone .album-contributions article {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 12px;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 2px solid rgb(156 97 76 / 0.4);
}
.is-phone .album-contributions article strong {
  order: 2;
  font: 400 13px/1.3 var(--pv-serif);
  color: var(--pv-faint);
}
.is-phone .album-contributions article p {
  margin: 0;
  font:
    italic 17px/1.4 "EB Garamond",
    Georgia,
    serif;
  color: var(--pv-ink);
}
.is-phone .album-contribution-editor summary {
  display: inline-block;
  padding: 6px 0;
  font: 400 16px/1.3 var(--pv-serif);
}
.is-phone .album-contribution-editor summary,
.is-phone .album-contribution-editor label {
  color: var(--pv-muted);
}
.is-phone .album-contribution-editor :is(input, textarea) {
  background: #fffdf6;
  color: #3f3222;
  border-color: #c9bea5;
}
.is-phone .album-contribution-editor button {
  color: #3f3222;
  border-color: #a8987a;
}
