.miake-dab {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  max-width: 1180px;
  margin: 32px auto;
  padding: 18px;
  border: 1px solid #ead4dc;
  border-radius: 8px;
  background: #fff7fa;
  color: #211922;
  box-shadow: 0 22px 60px rgba(91, 41, 60, 0.12);
}

.miake-dab__panel {
  border: 1px solid #f1cbd7;
  border-radius: 8px;
  background: #fff;
}

.miake-dab__intro {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: linear-gradient(145deg, #fff, #fff3f7 58%, #f8fbff);
}

.miake-dab__eyebrow {
  margin: 0 0 10px;
  color: #bd2f60;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.miake-dab h2 {
  max-width: 560px;
  margin: 0 0 12px;
  color: #151217;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.miake-dab h3 {
  margin: 0;
  color: #151217;
  font-size: 24px;
  line-height: 1.2;
}

.miake-dab p {
  margin: 0;
  color: #5f5360;
  font-size: 16px;
  line-height: 1.7;
}

.miake-dab__features {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.miake-dab__features span {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(189, 47, 96, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #372b35;
  font-size: 14px;
  font-weight: 700;
}

.miake-dab__form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.miake-dab__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.miake-dab label,
.miake-dab-admin__card form {
  display: grid;
  gap: 8px;
}

.miake-dab label span,
.miake-dab-admin__card label span,
.miake-dab__field-label {
  color: #332631;
  font-size: 13px;
  font-weight: 800;
}

.miake-dab__field-label {
  display: block;
  margin-bottom: 8px;
}

.miake-dab-doctors {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.miake-dab-doctor-card {
  display: grid;
  align-items: center;
  gap: 12px;
  grid-template-columns: 68px 1fr;
  min-height: 92px;
  padding: 12px;
  border: 1px solid #ead4dc;
  border-radius: 8px;
  background: #fff;
  color: #211922;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.miake-dab-doctor-card:hover,
.miake-dab-doctor-card[data-selected="1"] {
  border-color: #bd2f60;
  background: #fff8fb;
  box-shadow: 0 0 0 3px rgba(189, 47, 96, 0.12);
}

.miake-dab-doctor-card__image {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff3f7;
  color: #bd2f60;
  font-size: 26px;
  font-weight: 900;
}

.miake-dab-doctor-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.miake-dab-doctor-card__body {
  display: grid;
  gap: 3px;
}

.miake-dab-doctor-card__body strong {
  color: #211922;
  font-size: 15px;
}

.miake-dab-doctor-card__body small,
.miake-dab-doctor-card__body em {
  color: #6d5e68;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.miake-dab input,
.miake-dab select,
.miake-dab textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #e5cbd4;
  border-radius: 8px;
  background: #fff;
  color: #211922;
  font: inherit;
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.miake-dab input:focus,
.miake-dab select:focus,
.miake-dab textarea:focus {
  border-color: #bd2f60;
  box-shadow: 0 0 0 3px rgba(189, 47, 96, 0.14);
}

.miake-dab textarea {
  min-height: 120px;
  resize: vertical;
}

.miake-dab__note {
  padding: 12px 14px;
  border: 1px solid #f0d2da;
  border-radius: 8px;
  background: #fff8f6;
  font-size: 14px;
}

.miake-dab__calendar-wrap {
  display: grid;
  gap: 8px;
}

.miake-dab__calendar-wrap > span {
  color: #332631;
  font-size: 13px;
  font-weight: 800;
}

.miake-dab-calendar {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #ead4dc;
  border-radius: 8px;
  background: #fff;
}

.miake-dab-calendar p {
  margin: 0;
  font-size: 14px;
}

.miake-dab-calendar__header {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: 40px 1fr 40px;
}

.miake-dab-calendar__header strong {
  text-align: center;
}

.miake-dab-calendar__header button,
.miake-dab-calendar__day {
  min-height: 38px;
  padding: 0;
  border: 1px solid #ead4dc;
  border-radius: 8px;
  background: #fff;
  color: #332631;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.miake-dab-calendar__header button:hover,
.miake-dab-calendar__day:hover {
  border-color: #bd2f60;
  background: #fff3f7;
  color: #bd2f60;
  transform: none;
}

.miake-dab-calendar__header button:disabled,
.miake-dab-calendar__day:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.miake-dab-calendar__grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.miake-dab-calendar__weekday {
  color: #7b6b75;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.miake-dab-calendar__blank {
  min-height: 38px;
}

.miake-dab-calendar__day[data-available="1"] {
  border-color: #bd2f60;
  background: #fff3f7;
  color: #bd2f60;
}

.miake-dab-calendar__day[data-selected="1"] {
  border-color: #bd2f60;
  background: #bd2f60;
  color: #fff;
}

.miake-dab-calendar--admin .miake-dab-calendar__day:disabled {
  cursor: pointer;
  opacity: 1;
}

.miake-dab__form > button {
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: #bd2f60;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background 0.18s ease, transform 0.18s ease;
}

.miake-dab__form > button:hover {
  background: #98294f;
  transform: translateY(-1px);
}

.miake-dab__message {
  min-height: 26px;
  margin: 0;
  font-weight: 800;
}

.miake-dab__message[data-type="success"] {
  color: #166534;
}

.miake-dab__message[data-type="error"] {
  color: #b42318;
}

.miake-dab-admin__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0 20px;
}

.miake-dab-admin__card {
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #fff;
}

.miake-dab-admin__wide {
  max-width: 1180px;
}

.miake-dab-admin__card h2 {
  margin-top: 0;
}

.miake-dab-admin__card input,
.miake-dab-admin__card select,
.miake-dab-admin__card textarea {
  max-width: 100%;
}

.miake-dab-admin__card p {
  margin: 6px 0;
  color: #646970;
}

.miake-dab-admin-image {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #c3c4c7;
  border-radius: 8px;
  background: #f6f7f7;
}

.miake-dab-admin-image:empty::before {
  content: "No photo";
  color: #646970;
  font-size: 12px;
}

.miake-dab-admin-image img,
.miake-dab-admin-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
}

.miake-dab-admin-thumb {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
}

.miake-dab-admin-thumb--empty {
  background: #fff3f7;
  color: #bd2f60;
  font-weight: 900;
}

.miake-dab-admin__inline,
.miake-dab-admin__google-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.miake-dab-admin__connected {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: #ecfdf3;
  color: #166534;
  font-weight: 700;
}

.miake-dab-admin table {
  margin-bottom: 28px;
}

.miake-dab-admin td form {
  display: inline-grid;
  gap: 6px;
}

@media (max-width: 900px) {
  .miake-dab,
  .miake-dab__grid,
  .miake-dab-doctors,
  .miake-dab-admin__grid,
  .miake-dab-admin__inline,
  .miake-dab-admin__google-grid {
    grid-template-columns: 1fr;
  }

  .miake-dab {
    margin: 18px auto;
    padding: 12px;
  }

  .miake-dab__intro,
  .miake-dab__form {
    padding: 20px;
  }
}
