.booking-dialog { width: min(30rem, calc(100vw - 2rem)); }

.booking-dialog-body {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.booking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.booking-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.booking-heading .prof-avatar {
  width: 2rem;
  height: 2rem;
  font-size: 0.85rem;
}

.booking-dialog .prof-avatar,
.invite-inner .prof-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    hsl(354 85% 48%) 0%,
    hsl(354 90% 58%) 30%,
    hsl(0 80% 65%) 55%,
    hsl(0 85% 65%) 100%
  );
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.booking-heading-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.booking-heading-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}

.booking-heading-email {
  font-weight: 700;
  color: var(--color-base);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.booking-heading-email {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: color 140ms ease;
}

a.booking-heading-email svg {
  color: var(--color-muted);
  flex-shrink: 0;
  display: block;
  transform: translateY(1px);
  transition: color 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  a.booking-heading-email:hover { color: var(--color-accent); }
  a.booking-heading-email:hover svg { color: var(--color-accent); }
}

.booking-slots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 22rem;
  overflow: auto;
}

.booking-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-elevated);
  transition: border-color 160ms ease, background 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .booking-slot:hover { border-color: var(--color-border-strong); }
}

.booking-slot.is-booked {
  opacity: 0.6;
}

.booking-slot-when {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.booking-slot-date { font-weight: 600; font-size: 0.88rem; }
.booking-slot-time { font-size: 0.78rem; color: var(--color-muted); }

.booking-empty {
  padding: 0.8rem;
  color: var(--color-muted);
  font-size: 0.86rem;
  text-align: center;
}

.booking-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: space-between;
  flex-wrap: wrap;
}


.invite-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  justify-content: center;
}

.invite-inner {
  width: min(34rem, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.invite-inner .booking-dialog-body {
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-elevated);
  box-shadow: var(--card-shadow);
}

.invite-error {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-elevated);
  color: var(--color-muted);
  text-align: center;
}

.booking-request-wrap {
  margin-top: 0.25rem;
}

.booking-request-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.62rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--color-accent) 38%, var(--color-border));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-accent) 7%, var(--color-elevated));
  color: var(--color-base);
  font-family: var(--main-font), sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.04);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, var(--press-transition);
}

.booking-request-btn svg {
  flex-shrink: 0;
  color: color-mix(in srgb, var(--color-accent) 72%, var(--color-muted));
}

@media (hover: hover) and (pointer: fine) {
  .booking-request-btn:hover {
    border-color: color-mix(in srgb, var(--color-accent) 52%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent) 11%, var(--color-elevated));
    box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.06);
  }
}

.booking-request-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-elevated), 0 0 0 4px var(--focus-shadow);
}

.request-dialog {
  width: min(28rem, calc(100vw - 2rem));
}

.request-dialog .dialog-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  width: 100%;
}

.request-dialog .dialog-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.request-dialog .dialog-field-warning {
  font-size: 0.6875rem;
  font-weight: 500;
  color: light-dark(hsl(40 80% 45%), hsl(40 70% 55%));
  text-align: right;
  max-width: 68%;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.request-time-picker {
  width: 100%;
}

.requesting-preview {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 2rem;
  margin-right: auto;
}

.requesting-preview-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.requesting-preview-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-base);
  line-height: 1.1;
  min-height: 1.1em;
}

.request-dialog .dialog-footer {
  align-items: flex-end;
  gap: 0.45rem;
}

.request-message-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-surface) 88%, var(--color-elevated));
  color: var(--color-base);
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.45;
  resize: vertical;
  height: 5rem;
  box-shadow: inset 0 1px 2px hsl(0 0% 0% / 0.06);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

:root[data-theme="dark"] .request-message-input {
  box-shadow: inset 0 1px 3px hsl(0 0% 0% / 0.35);
}

.request-message-input::placeholder {
  color: var(--color-muted);
  opacity: 0.85;
}

.request-message-input:hover:not(:focus) {
  border-color: color-mix(in srgb, var(--color-border) 70%, var(--color-base));
}

.request-message-input:focus {
  outline: none;
  border-color: hsl(var(--accent-h) 55% 52% / 0.85);
  box-shadow: inset 0 1px 2px hsl(0 0% 0% / 0.06), 0 0 0 3px var(--focus-shadow);
}

.primary-button.request-send-btn {
  padding: 0.45rem 1rem;
  border: 1px solid hsl(var(--accent-h) 55% 40%);
  background: linear-gradient(
    180deg,
    hsl(var(--accent-h) 72% 48%) 0%,
    hsl(var(--accent-h) 78% 42%) 100%
  );
  box-shadow: 0 1px 0 hsl(0 0% 0% / 0.14), inset 0 1px 0 hsl(0 0% 100% / 0.12);
  transition: border-color 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease, var(--press-transition);
}

@media (hover: hover) and (pointer: fine) {
  .primary-button.request-send-btn:hover:not(:disabled) {
    border-color: hsl(var(--accent-h) 55% 34%);
    filter: brightness(1.04);
  }
}

.primary-button.request-send-btn:active:not(:disabled) {
  filter: brightness(0.97);
  box-shadow: inset 0 1px 1px hsl(0 0% 0% / 0.14);
}

.primary-button.request-send-btn:disabled {
  opacity: 0.5;
  filter: none;
  cursor: not-allowed;
}
