.doctor-master-page .span-2 {
  grid-column: 1 / -1;
}

.doctor-master-form input[type="number"] {
  text-align: right;
}

.doctor-master-form input[type="time"] {
  min-height: 42px;
}

.doctor-master-form .master-message {
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #991b1b;
  font-weight: 600;
  padding: 10px 12px;
}

.doctor-grid-photo {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  color: #fff;
}

.doctor-grid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-photo-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.doctor-photo-preview {
  width: 112px;
  height: 112px;
  border: 1px solid #bfdbfe;
  border-radius: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  color: #fff;
  box-shadow: inset 0 -18px 36px rgba(15, 23, 42, 0.18);
}

.doctor-photo-preview i {
  font-size: 34px;
}

.doctor-photo-preview span {
  margin-top: -18px;
  font-size: 12px;
  font-weight: 900;
}

.doctor-photo-preview.has-photo {
  background: #eff6ff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.doctor-photo-preview img,
.doctor-camera-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-photo-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.doctor-photo-copy strong {
  color: #0f172a;
  font-size: 15px;
}

.doctor-photo-copy > span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.doctor-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doctor-photo-actions .danger {
  color: #b91c1c;
}

.doctor-camera-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 14px;
  background: #eff6ff;
}

.doctor-camera-panel[hidden] {
  display: none;
}

.doctor-camera-panel video {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  background: #0f172a;
}

@media (max-width: 720px) {
  .doctor-photo-panel,
  .doctor-camera-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .doctor-photo-preview,
  .doctor-camera-panel video {
    width: 100%;
    max-width: 240px;
    height: auto;
    aspect-ratio: 1;
  }

  .doctor-photo-actions > * {
    flex: 1 1 150px;
  }
}
