.photo-face-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.photo-face-overlay rect {
  fill: transparent;
  stroke: #f8d973;
  stroke-width: 2;
  pointer-events: all;
  cursor: pointer;
}
.photo-face-overlay rect.selected {
  stroke: #82f6cd;
  stroke-width: 4;
}
.photo-face-overlay text {
  fill: #fff;
  stroke: #15281c;
  stroke-width: 1;
  paint-order: stroke;
  pointer-events: none;
}
.photo-people-panel {
  margin-top: 1rem;
  border-top: 1px solid #b7c4b9;
  padding-top: 0.65rem;
  text-align: left;
  color: #263c30;
}
.photo-people-panel h3 {
  margin: 0.25rem 0;
}
.photo-people-panel > p:first-of-type {
  margin: 0.35rem 0 0.65rem;
}
.photo-people-panel p {
  font-size: 0.9rem;
}
.face-choices,
.person-tag > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.photo-people-panel button,
.people-processing button,
#photo-people-review > button {
  padding: 0.6rem 0.8rem;
  background: #f5f4e9;
  color: #203e2c;
  border: 1px solid #718b76;
  border-radius: 0.5rem;
  cursor: pointer;
  font: inherit;
}
.face-choices [aria-pressed="true"] {
  background: #284c38;
  color: white;
}
.person-suggestion {
  display: grid;
  gap: 0.45rem;
  margin: 0.45rem 0;
}
.person-suggestion label,
.people-processing label {
  display: grid;
  gap: 0.3rem;
}
.person-suggestion input,
.person-suggestion textarea,
.person-suggestion select,
.people-processing input {
  font: inherit;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem;
  border: 1px solid #899c8b;
  border-radius: 0.4rem;
}
.person-suggestion textarea {
  min-height: 42px;
  resize: vertical;
}
.suggestion-note {
  font-size: 0.9rem;
}
.suggestion-note summary {
  cursor: pointer;
  color: #526656;
}
.suggestion-note label {
  margin-top: 0.4rem;
}
.person-tag small {
  display: block;
  margin: 0.25rem 0 0.45rem;
}
.tag-status {
  margin: 0.35rem 0;
}
.tag-status:empty {
  display: none;
}
.people-image-wrap {
  position: relative;
  min-width: 0;
  background: #17251c;
}
.people-image {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.people-image:focus {
  outline: none;
}
.people-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.people-review-dialog {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  width: min(1200px, 96vw);
  height: min(860px, 94vh);
  max-height: 94vh;
  padding: 0.5rem;
  border: 0;
  border-radius: 1rem;
  background: #fffef8;
  overflow: hidden;
}
.people-review-dialog:focus {
  outline: none;
}
.people-dialog-close {
  position: absolute;
  z-index: 5;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border: 1px solid #ffffff80 !important;
  border-radius: 50% !important;
  background: #203e2cd9 !important;
  color: #fff !important;
  box-shadow: 0 2px 10px #10201855;
  cursor: pointer;
}
.people-dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.people-review-dialog::backdrop {
  background: #13291ed9;
}
#photo-people-review {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: system-ui, sans-serif;
  color: #233d2d;
}
#photo-people-review a {
  color: inherit;
}
.people-review-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
}
.people-review-photo {
  background: #f4f4ed;
  border: 1px solid #b5c2b4;
  border-radius: 0.7rem;
  padding: 0.6rem;
  cursor: pointer;
  text-align: left;
  min-width: 0;
}
.people-review-photo img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}
.people-review-photo span,
.people-review-photo small {
  display: block;
  margin-top: 0.4rem;
}
.people-processing {
  padding: 1rem;
  background: #eff2e9;
  margin: 1rem 0;
}
.people-processing form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.people-processing label {
  flex: 1 1 140px;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.album-people-link {
  margin: 0 1rem;
}
.people-editor {
  min-width: 0;
  overflow: auto;
  padding: 0.1rem 0.65rem 0.5rem;
}
@media (max-width: 800px) {
  .people-review-dialog {
    display: block;
    width: min(1000px, 96vw);
    height: auto;
    max-height: 94vh;
    padding: 0.35rem;
    overflow: auto;
  }
  .people-image-wrap {
    height: 42vh;
    min-height: 240px;
  }
  .people-editor {
    overflow: visible;
    padding: 0.1rem 0.35rem 0.5rem;
  }
  .photo-people-panel button {
    font-size: 0.85rem;
  }
  .people-dialog-close {
    top: 0.65rem;
    right: 0.65rem;
  }
}
.people-review-dialog {
  font-family: system-ui, sans-serif;
}
.manual-face-box {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border: 1px solid #acbcad;
}
.manual-face-box label {
  flex: 1 1 90px;
}
.people-face-card {
  min-width: 0;
}
.people-face-card > .people-review-photo {
  width: 100%;
}
.people-face-thumbnail {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 0.6rem;
  margin: 0.5rem auto;
  object-fit: contain;
}
.face-bulk-choice {
  display: block;
  padding: 0.5rem;
  font-size: 0.9rem;
}
.people-bulk {
  padding: 1rem;
  background: #e6edde;
  border-radius: 0.7rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
}
.people-bulk label {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}
.people-bulk select {
  font: inherit;
  padding: 0.6rem;
  max-width: 100%;
}
.people-bulk button {
  font: inherit;
  padding: 0.7rem;
}
.people-bulk p {
  flex-basis: 100%;
  margin: 0;
}
.people-review-views {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.people-review-views button {
  font: inherit;
  padding: 0.75rem 1rem;
  border: 1px solid #78947e;
  border-radius: 0.6rem;
  background: #f4f5ef;
  color: #294132;
  cursor: pointer;
}
.people-review-views [aria-pressed="true"] {
  background: #294f39;
  color: #fff;
}
.people-review-views span {
  font-size: 0.85em;
  margin-left: 0.5rem;
}
.people-detection-summary {
  font-weight: 600;
}
.people-photo-preview {
  position: relative;
  height: 170px;
}
.people-photo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.people-photo-preview .photo-face-overlay rect {
  pointer-events: none;
}
.people-review-photo.is-face {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.people-review-photo.is-face .people-face-thumbnail {
  order: -1;
  width: 160px;
  height: 160px;
  max-width: 100%;
}
.people-review-photo.is-face .people-photo-preview {
  height: 80px;
}
.people-review-photo.is-face .people-photo-preview img {
  height: 100%;
}
.people-group-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 1rem;
}
.people-group-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid #9eafa0;
  border-radius: 0.8rem;
  background: #f1f4ec;
  color: #243e2d;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.group-face-previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.group-crop {
  position: relative;
  display: block;
  aspect-ratio: 1;
}
.group-crop img {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.group-crop canvas {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
}
.people-group-detail .people-photo-preview {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  overflow: hidden;
}
.people-group-detail .people-review-photo {
  position: relative;
}
.people-group-detail .people-review-photo[aria-pressed="true"] {
  outline: 3px solid #315f42;
}
.people-group-detail .people-review-photo small {
  display: none;
}
.face-original,
[data-groups-back] {
  font: inherit;
  padding: 0.65rem;
  border: 1px solid #95a594;
  border-radius: 0.5rem;
  background: #fffef8;
  cursor: pointer;
  margin: 0.4rem 0;
}
.people-group-detail .people-review-photos {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
}
.person-choice-context {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  color: #38513e;
}
.person-choice-context:empty,
.person-picker > p[role="status"]:empty {
  display: none;
}
.people-bulk .person-choice-context {
  flex-basis: 100%;
}
.people-bulk select {
  min-width: 0;
  width: 100%;
}
.face-selection-tools {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  flex-basis: 100%;
}
.face-exclude,
.face-restore {
  font: inherit;
  padding: 0.6rem;
  margin: 0.35rem 0;
  border: 1px solid #a7aaa0;
  border-radius: 0.5rem;
  background: #fffaf1;
  cursor: pointer;
}
.face-excluded-note,
.selection-help {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #555f50;
}
.person-picker {
  min-width: 0;
  width: 100%;
}
.person-picker label,
.person-search-label {
  display: grid;
  gap: 0.4rem;
}
.person-picker input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
.person-search-results {
  max-height: 19rem;
  overflow: auto;
  display: grid;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.person-search-results:empty {
  display: none;
}
.person-search-results > p {
  font-size: 0.85rem;
  margin: 0.25rem 0;
}
.person-search-results button {
  display: grid;
  gap: 0.3rem;
  text-align: left;
  white-space: normal;
  width: 100%;
  padding: 0.65rem 0.8rem;
}
.person-search-result small {
  font-weight: normal;
  line-height: 1.4;
}
.person-search-add {
  border-style: dashed !important;
}
.person-picker [hidden],
.person-suggestion label[hidden],
.people-bulk label[hidden] {
  display: none;
}

.person-search-field {
  position: relative;
  display: block;
}
.person-picker input[type="search"] {
  font: inherit;
  min-height: 44px;
  padding: 0.65rem 2.6rem 0.65rem 0.8rem;
  border: 1px solid var(--fz-control-line, #adbba6);
  border-radius: 8px;
  background: #fff;
  color: #243f30;
}
.person-picker input[type="search"]::-webkit-search-cancel-button {
  display: none;
}
.person-picker button {
  font: inherit;
  border: 1px solid var(--fz-control-line, #adbba6);
  border-radius: 8px;
  background: #fff;
  color: #243f30;
  overflow-wrap: anywhere;
}
.person-picker button:hover {
  background: #f3f5ef;
  border-color: var(--fz-control-hover, #7e927d);
  outline: none;
}
.person-picker button:focus-visible {
  background: #f3f5ef;
  border-color: var(--fz-control-focus, #345944);
  outline: none;
}
.person-picker .person-search-clear {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.person-search-clear svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.completed-groups-toggle {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.7rem 0;
}
.completed-groups-toggle input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.group-review-status {
  font-weight: 600;
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  background: #f0f1e9;
}
.people-group-card.is-complete {
  border-color: #658c70;
  background: #eef5eb;
}
.people-group-card.is-complete .group-review-status {
  background: #d8e9d3;
  color: #234b2c;
}
.people-group-card.is-partial .group-review-status {
  background: #fff0cd;
  color: #654a13;
}
.group-face-correction button {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
}
.group-face-correction p {
  line-height: 1.4;
}
.person-search-result:has(.person-search-portrait) {
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 0.75rem;
}
.person-search-portrait {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  grid-row: 1 / 3;
}
.person-search-result:has(.person-search-portrait) strong,
.person-search-result:has(.person-search-portrait) small {
  grid-column: 2;
}
.group-face-correction summary {
  cursor: pointer;
  font-weight: 600;
}
.group-face-correction label {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}
.group-face-correction select {
  font: inherit;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.6rem;
  border: 1px solid #899c8b;
  border-radius: 0.4rem;
}
.face-choices button {
  overflow-wrap: anywhere;
  max-width: 100%;
}
.people-face-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  align-items: center;
}
.people-face-card > .face-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin: 0.4rem 0.3rem 0.2rem 0;
  background: #fffef8;
}
.face-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.people-face-card > .face-exclude {
  margin-left: auto;
  margin-right: 0;
  color: #a52d2d;
  border-color: #d7abab;
}
.people-face-card > .face-exclude:hover {
  background: #fbe9e7;
}
.face-icon:focus-visible {
  outline: 3px solid #315f42;
  outline-offset: 2px;
}
.people-review-photo span:empty {
  display: none;
}
.people-review-photo[data-bulk-face] {
  position: relative;
}
.people-review-photo[data-bulk-face][aria-pressed="true"] {
  outline: 3px solid #315f42;
}
.people-review-photo[data-bulk-face][aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #315f42;
  color: white;
  font-weight: bold;
}
.people-group-detail .people-review-photo > span {
  display: none;
}

.people-face-card > .face-excluded-note,
.people-face-card > .face-restore {
  flex-basis: 100%;
}
.identity-question {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1 0 100%;
  gap: 0.45rem;
  margin: 0.5rem 0;
  padding: 0.6rem;
  border-radius: 0.55rem;
  background: #f4f7ec;
}
.identity-question strong {
  grid-column: 1/-1;
}
.identity-question button {
  padding: 0.45rem 0.6rem;
}
.identity-review-card {
  overflow: hidden;
  border: 1px solid #b5c2b4;
  border-radius: 0.7rem;
  background: #f4f4ed;
}
.identity-review-card .identity-photo-context {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #e5e8de;
  cursor: pointer;
}
.identity-review-card .identity-photo-context img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
}
.identity-review-card .identity-face-question {
  padding: 0.55rem;
}
.identity-face-question .person-open-face {
  display: block;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.identity-face-question [data-suggested-crop] {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 8px;
}
.selected-face-context {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #d6dfd4;
}
.selected-face-context h4 {
  margin: 0 0 0.55rem;
}
.selected-face-context canvas {
  display: block;
  width: 100%;
  max-height: 250px;
  border-radius: 0.65rem;
  background: #17251c;
  object-fit: contain;
}
.group-conflict-summary {
  padding: 0.8rem;
  border: 1px solid #d7b66c;
  border-radius: 0.65rem;
  background: #fff4d8;
}
.group-conflict-summary strong {
  color: #674b12;
}
.exclude-unresolved {
  justify-self: start;
  padding: 0.7rem 0.9rem;
  border: 1px solid #a94a43;
  border-radius: 0.65rem;
  background: #fff7f5;
  color: #812d28;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.exclude-unresolved:disabled {
  cursor: wait;
  opacity: 0.65;
}
.people-face-card > .face-icon {
  box-sizing: border-box;
  border: 1px solid #95a594;
  border-radius: 0.5rem;
  color: #294132;
}
.people-face-card > .face-exclude {
  border-color: #d7abab;
  color: #a52d2d;
}
.people-face-card > .face-portrait[aria-pressed="true"] {
  background: #e1eddb;
}
.current-portrait-badge {
  display: inline-block;
  align-self: center;
  font:
    600 0.75rem system-ui,
    sans-serif;
  font-style: normal;
  color: #315f42;
  background: #e1eddb;
  border-radius: 5px;
  padding: 4px 7px;
  margin: 5px 0;
}
.face-select-control {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0.4rem 0.3rem 0.2rem 0;
  cursor: pointer;
}

.family-review-heading {
  max-width: 760px;
  margin: 1.25rem auto 0;
  padding: 0 0.25rem;
}
.family-review-heading h1 {
  margin: 0;
}
.family-review-heading p {
  margin: 0.5rem 0 0;
  max-width: 62ch;
  color: #526456;
}
.family-review-total {
  max-width: 760px;
  margin: 1.25rem auto 0;
  padding: 0 0.25rem;
}
.family-review-total > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.family-review-total strong {
  color: #294132;
}
.family-review-total span {
  color: #526456;
  font-size: 0.9rem;
}
.family-review-total progress {
  display: block;
  width: 100%;
  height: 0.6rem;
  accent-color: #315d3d;
}
.family-review-back {
  max-width: 760px;
  margin: 0.85rem auto 0;
  padding: 0 0.25rem;
}
.family-review-back button {
  color: #345944;
}
.family-review-back button:disabled {
  opacity: 0.5;
  cursor: default;
}
.family-question-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.7rem;
}
.family-question-footer .family-unsure {
  margin: 0;
}
.face-review-owner-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 1100px;
  margin: 1.25rem auto 0;
  padding: 0 0.25rem;
}
.face-review-owner-nav button[aria-pressed="true"],
.owner-suggestion-toolbar button[aria-pressed="true"] {
  background: #e7efe4;
  border-color: #8ca58b;
  color: #294f39;
}
.owner-suggestion-review {
  max-width: 1100px;
  margin: 1.25rem auto 4rem;
  padding: 0 0.25rem;
}
.owner-suggestion-review > header p {
  margin: 0.5rem 0 0;
  color: #526456;
}
.owner-suggestion-toolbar,
.owner-suggestion-toolbar > div,
.owner-suggestion-selection,
.owner-suggestion-card-actions,
.owner-suggestion-pages,
.owner-suggestion-dialog-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.owner-suggestion-toolbar {
  justify-content: space-between;
  margin: 1.5rem 0 1rem;
}
.owner-suggestion-selection {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 0.7rem;
  border: 1px solid #b9c9b6;
  border-radius: 0.65rem;
  background: #f7f9f3;
}
.owner-suggestion-selection span {
  margin-right: auto;
  font-weight: 600;
}
.owner-suggestion-message,
.owner-suggestion-empty {
  margin: 1rem 0;
  color: #526456;
}
.owner-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}
.owner-suggestion-card {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid #d4ded0;
  border-radius: 0.75rem;
  background: #fffefa;
}
.owner-suggestion-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.owner-suggestion-preview .selected-face-context {
  margin: 0;
  padding: 0;
  border: 0;
}
.owner-suggestion-preview .selected-face-context h4 {
  display: none;
}
.owner-suggestion-preview canvas {
  width: 100%;
  height: auto;
  max-height: none;
  background: transparent;
  object-fit: fill;
}
.owner-suggestion-context {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  margin: 0.65rem 0;
}
.owner-suggestion-context > .face-marked-image {
  height: 68px;
}
.owner-suggestion-context strong,
.owner-suggestion-context small {
  display: block;
}
.owner-suggestion-context small {
  color: #627165;
  font-size: 0.75rem;
}
.owner-suggestion-context .owner-suggestion-warning {
  color: #885d17;
}
.owner-suggestion-card-actions {
  justify-content: space-between;
  padding-top: 0.6rem;
  border-top: 1px solid #e1e7dd;
}
.owner-suggestion-card-actions label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  cursor: pointer;
}
.owner-suggestion-card-actions input {
  width: 18px;
  height: 18px;
  accent-color: #315d3d;
}
.owner-suggestion-pages {
  justify-content: center;
  margin-top: 1.5rem;
}
.owner-suggestion-dialog {
  width: min(1000px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 1rem;
}
.owner-suggestion-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.owner-suggestion-dialog h2 {
  margin: 0;
  font-size: 1.2rem;
}
.owner-suggestion-dialog > .face-marked-image {
  height: min(65dvh, 660px);
}
.owner-suggestion-dialog-actions {
  justify-content: flex-end;
  margin-top: 0.8rem;
}
.family-current-assignment {
  margin: 0 0 0.4rem;
  color: #526456;
  font-size: 0.88rem;
}
.family-review-loading {
  max-width: 760px;
  margin: 1.5rem auto;
  padding: 0 0.25rem;
}
.family-review-loading-bar,
.family-review-loading-cards > span {
  display: block;
  border-radius: 0.65rem;
  background: #e9eee7;
  animation: family-review-pulse 1.6s ease-in-out infinite alternate;
}
.family-review-loading-bar {
  width: 38%;
  height: 0.7rem;
  margin-bottom: 1.5rem;
}
.family-review-loading-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.family-review-loading-cards > span {
  height: 180px;
}
@keyframes family-review-pulse {
  to {
    background: #dce6da;
  }
}
@media (prefers-reduced-motion: reduce) {
  .family-review-loading-bar,
  .family-review-loading-cards > span {
    animation: none;
  }
}
.family-review-overview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.family-review-card {
  display: block;
  flex: 0 1 290px;
  min-width: min(100%, 190px);
  max-width: min(100%, 290px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #294132;
  font: inherit;
  cursor: pointer;
}
.family-review-card:hover,
.family-review-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px #9caf9c;
}
.family-review-card:focus-visible {
  box-shadow: 0 0 0 2px #7e927d;
}
.family-review-overview .selected-face-context {
  margin: 0;
  padding: 0;
  border: 0;
}
.family-review-overview .selected-face-context h4 {
  display: none;
}
.family-review-overview .selected-face-context canvas,
.family-face-focus .selected-face-context canvas {
  width: 100%;
  height: auto;
  max-height: none;
  background: transparent;
  object-fit: fill;
}
.family-card-original {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem;
  color: #526456;
  font-size: 0.8rem;
}
.family-card-original span {
  text-decoration: underline;
}
.family-card-original > img {
  display: block;
  width: 60px;
  height: 44px;
  object-fit: contain;
}
.family-face-review {
  max-width: 760px;
  margin: 1.25rem auto 0;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #c9d5c8;
  border-radius: 1rem;
  background: #f7f8f3;
}
.family-face-review > h2,
.family-review-progress {
  text-align: center;
}
.family-review-progress {
  color: #667468;
  font-size: 0.9rem;
}
.family-face-focus {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}
.family-face-focus .selected-face-context {
  width: min(100%, 520px);
  margin: 0;
  padding: 0;
  border: 0;
}
.family-face-focus .identity-photo-context {
  position: relative;
  display: block;
  width: min(100%, 300px);
  height: 110px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c3cec2;
  border-radius: 0.6rem;
  background: #e5e8de;
  cursor: pointer;
}
.family-face-focus .identity-photo-context img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.face-marked-image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.face-marked-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.face-marked-image .identity-photo-face-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.face-marked-image .identity-photo-face-mark rect {
  fill: rgb(232 196 66 / 6%);
  stroke: rgb(255 255 255 / 82%);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px rgb(23 41 29 / 65%));
}
.family-know-actions,
.family-name-choice {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 0.7rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.family-know-actions {
  gap: 2.5rem;
}
.family-know-actions button,
.family-name-choice > button {
  padding: 0.75rem 1rem;
  border: 1px solid #6d8b72;
  border-radius: 0.65rem;
  background: #fff;
  color: #294132;
  font: inherit;
  cursor: pointer;
}
.family-know-actions button.fz-button {
  min-height: 44px;
  padding: 0.7rem 1rem;
}
.family-name-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
  margin: 1rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #d7dfd5;
}
.family-name-choice > .family-assign-name {
  justify-self: end;
  background: #315d3d;
  color: white;
}
.family-name-choice > .family-assign-name:disabled {
  opacity: 0.45;
  cursor: default;
}
.family-name-choice .person-choice-context,
.family-name-choice .person-picker > p:empty {
  display: none;
}
.family-photo-dialog {
  width: min(1100px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  box-sizing: border-box;
  padding: 1rem;
  border: 1px solid #c9d5c8;
  border-radius: 0.8rem;
  background: #f7f8f3;
}
.family-photo-dialog::backdrop {
  background: rgb(16 25 18 / 75%);
}
.family-photo-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.family-photo-dialog h2 {
  margin: 0;
  font-size: 1.1rem;
}
.family-photo-stage {
  position: relative;
  display: grid;
  place-items: center;
}
.family-photo-stage > .selected-face-context {
  width: min(100%, 560px);
  margin: 0;
  padding: 0;
  border: 0;
}
.family-photo-stage > .selected-face-context h4 {
  display: none;
}
.family-photo-stage > .selected-face-context canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  background: transparent;
}
.family-photo-stage > .face-marked-image {
  width: 100%;
  height: min(58dvh, 680px);
}
.family-photo-stage > .face-marked-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.family-photo-arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 2.8rem;
  height: 4rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0.4rem;
  background: rgb(247 248 243 / 88%);
  color: #294132;
  font: 2.3rem/1 serif;
  cursor: pointer;
}
.family-photo-arrow--previous {
  left: 0.7rem;
}
.family-photo-arrow--next {
  right: 0.7rem;
}
.family-photo-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}
.family-modal-person {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(280px, 560px);
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}
.family-modal-person--photo-only {
  grid-template-columns: minmax(0, 220px);
}
.family-modal-photo-preview {
  display: grid;
  grid-template-rows: 116px auto;
  width: 220px;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c3cec2;
  border-radius: 0.6rem;
  background: #fff;
  color: #294132;
  font: inherit;
  cursor: pointer;
}
.family-modal-photo-preview > span:last-child {
  padding: 0.35rem 0.4rem;
  font-size: 0.8rem;
  text-decoration: underline;
}
.family-modal-person .family-name-choice {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
.family-name-choice .person-picker {
  flex: 1 1 320px;
}
.family-face-review > .identity-question {
  justify-content: center;
}
.family-unsure {
  display: block;
  margin: 0.7rem auto 0;
  padding: 0.55rem 0.8rem;
  border: 0;
  background: transparent;
  color: #526456;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.family-review-complete {
  max-width: 620px;
  margin: 3rem auto;
  text-align: center;
}
@media (max-width: 620px) {
  .family-review-loading-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .family-review-loading-cards > span:last-child {
    display: none;
  }
  .family-face-focus .identity-photo-context {
    height: 88px;
  }
  .family-photo-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    padding: 0.7rem;
  }
  .family-photo-stage > .face-marked-image {
    height: min(48dvh, 480px);
  }
  .family-photo-arrow {
    width: 2.3rem;
    height: 3.4rem;
  }
  .family-modal-person {
    grid-template-columns: minmax(0, 1fr);
  }
  .family-modal-photo-preview {
    width: min(210px, 100%);
    margin: 0 auto;
  }
}
.face-select-control input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #315f42;
  cursor: pointer;
}
.people-face-card.is-selected > .people-review-photo {
  outline: 3px solid #315f42;
}
.group-relationship {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #a8b8a0;
  border-radius: 0.7rem;
  background: #f4f7ef;
}
.group-relationship summary {
  cursor: pointer;
  font-weight: 600;
}
.group-relationship form {
  display: grid;
  gap: 0.8rem;
  max-width: 650px;
  margin-top: 1rem;
}
.group-relationship label {
  display: grid;
  gap: 0.4rem;
}
.group-relationship select,
.group-relationship input {
  box-sizing: border-box;
  max-width: 100%;
  padding: 0.6rem;
  font: inherit;
  border: 1px solid #8c9d86;
  border-radius: 6px;
}
.group-relationship [hidden] {
  display: none;
}
.group-relationship button {
  font: inherit;
  padding: 0.65rem;
  border: 1px solid #8c9d86;
  border-radius: 6px;
  background: white;
  cursor: pointer;
}
.group-relationship .directory-show-all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.group-relationship [data-relation-status] {
  color: #315f42;
}
.group-filter-control {
  display: grid;
  gap: 0.4rem;
  max-width: 350px;
  margin: 0.8rem 0;
}
.group-filter-control select {
  font: inherit;
  padding: 0.65rem;
  border: 1px solid #8c9d86;
  border-radius: 6px;
  background: white;
  color: #294132;
}
.group-identity-status {
  font-size: 0.85rem;
  color: #4b6149;
}
.group-identity-status:empty {
  display: none;
}
.group-name-suggestion {
  flex-basis: 100%;
  padding: 0.8rem;
  background: #f4f7ec;
  border: 1px solid #acbda0;
  border-radius: 8px;
}
.group-name-suggestion p {
  margin: 0 0 0.6rem;
}
.assignment-editor {
  margin: 0.35rem 0;
}
.assignment-editor > summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #405a47;
}
.assignment-editor:not(.has-assignment) > summary {
  display: none;
}
.assignment-editor.has-assignment[open] > summary {
  margin-bottom: 0.45rem;
}
.person-tag {
  font-size: 0.94rem;
  line-height: 1.4;
}
.person-tag > strong {
  font-size: 1rem;
}
.person-tag > div {
  gap: 0.35rem;
}
.group-face-correction summary {
  font-size: 0.9rem;
}
