/* Sender photo fields and preview controls. */
.photo-picker {
  min-width: 0;
}
.photo-controls {
  min-width: 0;
}
.photo-crop-canvas {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: 14px auto;
  background: #fff;
  border: 8px solid #fffdf8;
  box-shadow: 0 3px 14px #243b3320;
  touch-action: none;
  cursor: grab;
}
.photo-controls input[type="file"] {
  max-width: 100%;
  font-size: 0.8rem;
  white-space: normal;
}
.photo-controls input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: #214c3e;
}
.photo-local-notice {
  font-size: 0.8rem;
  line-height: 1.7;
  padding: 12px 14px;
  border: 1px solid #dac9a4;
  border-radius: 10px;
  background: #fbf2df;
}
.photo-status {
  font-size: 0.8rem;
  line-height: 1.7;
  color: #214c3e;
  overflow-wrap: anywhere;
}
.photo-status:empty {
  display: none;
}
.photo-thumbnail {
  display: block;
  max-width: min(100%, 192px);
  max-height: 150px;
  object-fit: contain;
  margin-block: 12px;
  padding: 5px;
  border: 1px solid #d9cbb6;
  background: #fffdf8;
}
.photo-thumbnail[hidden] { display: none; }
.photo-picker input[type="file"] { width: 100%; max-width: 100%; }
.custom-cover-controls { background: #faf6ed; border-color: #ded2bf; }
.card-photo-switch { min-height: 44px; display: block; margin: 12px auto; }
.card-photo-switch[hidden] { display: none; }

.cover-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.cover-option-grid .field { min-width: 0; }
.cover-option-grid select { min-width: 0; padding-inline: 10px; }
#photoError:empty { display: none; }

[data-custom-studio] #birthdayControls { display: none; }
