.studio-dashboard {
  display: grid;
  gap: 24px;
}
.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.insight-grid > article,
.analytics-card {
  border: 1px solid var(--line);
  padding: 26px;
  background: #fffbf7;
}
.insight-grid h2,
.analytics-card h2,
.calendar-header h2,
.analytics-heading h2,
.settings-section h2 {
  font: 400 22px var(--serif);
  margin: 0 0 20px;
}
.insight-grid > article > strong {
  display: block;
  font: 64px var(--serif);
  margin: 8px 0;
}
.insight-grid article > p,
.notification-status p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 0;
  font-size: 13px;
}
.metric-row progress {
  grid-column: 1/-1;
  width: 100%;
  height: 6px;
  accent-color: var(--gold);
}
.analytics-heading,
.calendar-header {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.analytics-heading span {
  font-size: 11px;
  color: var(--muted);
}
.trend-chart {
  display: flex;
  align-items: end;
  gap: 7px;
  min-height: 160px;
  overflow: auto;
}
.trend-column {
  flex: 1;
  min-width: 14px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: end;
  gap: 7px;
}
.trend-bar {
  display: block;
  background: #b45d78;
  width: 100%;
  min-height: 3px;
}
.trend-column small,
.trend-value {
  font-size: 9px;
  color: var(--muted);
}
.chart-data {
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}
.chart-data summary {
  cursor: pointer;
  min-height: 40px;
}
.notification-status {
  padding: 22px;
  border: 1px dashed #c3b9a7;
}
.calendar-controls {
  display: flex;
  gap: 9px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.week-heading {
  background: #f2e7e5;
  text-align: center;
  padding: 14px;
  font-size: 12px;
  color: var(--muted);
}
.calendar-day {
  min-height: 110px;
  background: #fffbf7;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  transition: background 0.2s;
}
.calendar-day.outside {
  opacity: 0.55;
}
.calendar-day.selected {
  background: #efdce1;
  box-shadow: inset 0 0 0 1px #a85670;
}
.calendar-day.today .day-number {
  color: #8d3b59;
  font-weight: 600;
}
.day-number {
  font-size: 14px;
}
.calendar-chip {
  font-size: 9px;
  line-height: 1.6;
  background: #e6e8dd;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
  padding: 3px 5px;
}
.calendar-chip.pending {
  background: #f2e7d5;
}
.calendar-day > small {
  font-size: 9px;
  color: var(--muted);
}
.day-agenda {
  margin-top: 32px;
}
.agenda-item {
  display: flex;
  gap: 22px;
  width: 100%;
  padding: 19px;
  border: 1px solid var(--line);
  align-items: center;
  text-align: left;
  margin-bottom: 8px;
}
.agenda-item > span:nth-child(2) {
  flex: 1;
  font-size: 14px;
}
.agenda-item small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.agenda-item > strong {
  font: 24px var(--serif);
  min-width: 64px;
}
.studio-settings {
  max-width: 820px;
}
.settings-section {
  margin-bottom: 36px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.service-settings {
  margin-top: 28px;
}
.location-settings {
  padding: 20px;
  border: 1px solid var(--line);
}
.location-coordinate-note {
  margin: 14px 0 0;
  line-height: 1.8;
}
.service-settings h3,
.schedule-form h3 {
  font-size: 14px;
  font-weight: 500;
}
.staff-line {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 25px;
  align-items: center;
}
.reset-code {
  display: block;
  border: 1px solid var(--line);
  padding: 22px;
  word-break: break-all;
  font-size: 18px;
  margin: 20px 0;
}
.schedule-form {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.admin-sidebar nav button {
  min-height: 49px;
}
.admin-sidebar nav {
  overflow: auto;
  max-height: calc(100vh - 275px);
}
@media (max-width: 900px) {
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .calendar-day {
    min-height: 90px;
    padding: 8px;
  }
  .calendar-chip {
    font-size: 8px;
  }
  .analytics-heading {
    align-items: start;
    flex-direction: column;
    gap: 0;
  }
  .admin-sidebar nav {
    max-height: none;
  }
  .staff-line {
    grid-template-columns: 1fr;
  }
  .calendar-header h2 {
    font-size: 20px;
  }
  .calendar-header .small-button {
    padding: 8px 11px;
  }
}
@media (max-width: 600px) {
  .calendar-day {
    min-height: 72px;
    padding: 5px;
  }
  .calendar-chip {
    display: none;
  }
  .calendar-day:has(.calendar-chip):after {
    content: "•";
    color: var(--gold);
  }
  .week-heading {
    padding: 10px 0;
  }
  .agenda-item {
    gap: 13px;
    padding: 14px;
  }
  .agenda-item > strong {
    font-size: 20px;
    min-width: 46px;
  }
  .agenda-item > span:nth-child(2) {
    font-size: 12px;
  }
  .agenda-item small {
    font-size: 10px;
  }
  .calendar-controls {
    gap: 5px;
  }
  .trend-chart {
    gap: 4px;
  }
  .insight-grid > article,
  .analytics-card {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.date-slot-panel {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  background: #fffbf7;
}
.date-slot-heading,
.date-slot-draft-heading,
.date-slot-editor-actions,
.date-slot-editor-actions > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.date-slot-heading h2 {
  margin: 9px 0 0;
  font: 400 22px var(--serif);
}
.date-slot-picker { width: 178px; margin: 0; }
.date-slot-picker input { width: 100%; min-height: 44px; }
.date-slot-status { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; font-size: 12px; color: var(--muted); }
.date-slot-state { display: inline-flex; padding: 6px 11px; border-radius: 4px; color: #576448; background: #e6e8dc; }
.date-slot-state.custom { color: #6d573b; background: #eee2cd; }
.date-slot-state.closed { color: #78736b; background: #e8e4dc; }
.date-slot-effective,
.date-slot-edit-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.date-slot-chip { display: inline-flex; align-items: center; min-height: 40px; border: 1px solid #d5dac8; background: #eef1e6; color: #516241; border-radius: 6px; padding: 8px 13px; font-size: 13px; gap: 8px; font-variant-numeric: tabular-nums; }
.date-slot-effective p,
.date-slot-empty-draft { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.date-slot-editor { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); max-width: none; }
.date-slot-draft-heading { margin-bottom: 18px; }
.date-slot-draft-heading > strong { font-size: 14px; font-weight: 500; }
.date-slot-draft-status { font-size: 11px; color: var(--muted); }
.date-slot-edit-chips .date-slot-chip { background: #fffdf7; padding: 3px 4px 3px 13px; }
.date-slot-chip button { min-width: 34px; min-height: 38px; display: inline-flex; justify-content: center; align-items: center; padding: 5px; color: #7c836f; border-radius: 4px; font-size: 19px; }
.date-slot-chip button:hover { background: #ecefe0; color: #394c2b; }
.date-slot-input-row { display: flex; gap: 14px; align-items: flex-end; margin-top: 22px; }
.date-slot-input-row > label { flex: 1; margin: 0; }
.date-slot-input-row textarea { min-height: 84px; width: 100%; font-variant-numeric: tabular-nums; }
.date-slot-input-row .small-button { min-height: 44px; margin-bottom: 1px; white-space: nowrap; }
.date-slot-editor-actions { margin-top: 24px; flex-wrap: wrap; }
.date-slot-editor-actions > div { gap: 22px; flex-wrap: wrap; }
.date-slot-editor-actions .text-link { min-height: 44px; font-size: 12px; }
.date-slot-editor-actions .button { min-height: 44px; padding: 14px 22px; }
.date-slot-readonly,
.date-slot-closed-note { color: #7b725f; font-size: 12px; line-height: 1.8; margin: 16px 0 0; }
.date-slot-closed-note { padding: 12px; background: #f2e8d9; margin: 0 0 18px; }
.calendar-slot-note { color: #6c7c54 !important; }
.date-slot-panel:focus-within { border-color: #b7c09e; }
@media (max-width: 700px) {
  .date-slot-panel { padding: 20px; }
  .date-slot-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
  .date-slot-picker { width: 100%; }
  .date-slot-heading h2 { font-size: 20px; }
  .date-slot-input-row { align-items: stretch; flex-direction: column; gap: 10px; }
  .date-slot-input-row .small-button { align-self: flex-start; }
  .date-slot-editor-actions { align-items: stretch; flex-direction: column; }
  .date-slot-editor-actions .button { width: 100%; }
  .date-slot-draft-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
}
.date-slot-reload[hidden] { display: none !important; }
