:root {
  --accent: #4b4e2f;
  --accent-dark: #383a22;
  --cream: #f3ead3;
  --surface: #fffdf7;
  --charcoal: #232016;
  --text: #2c2c2c;
  --muted: #6a6a6a;
  --border: #e5dcc4;
  --radius: 14px;
  --success: #4f6b43;
  --error: #a14b42;
  --font-body: 'Lato', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', 'Georgia', serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
}

header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  background: var(--charcoal);
  color: var(--cream);
}

header img { height: 56px; flex-shrink: 0; }

.brand-text { display: flex; flex-direction: column; }
header h1 {
  font-family: var(--font-display);
  font-size: 40px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.1;
  color: var(--cream);
}
header #siteTagline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
  margin: 6px 0 0;
  color: #cdbf8f;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.admin-main { max-width: 1240px; }

main h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

main > section { margin-bottom: 36px; }

/* A step the customer hasn't reached yet - visible so they can see what's
   coming, but greyed out and inert until the step before it is done. */
.section-disabled {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s;
}

main h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin: 20px 0 10px;
}
.card h3:not(:first-of-type) {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.collapsible-heading { display: flex; justify-content: space-between; align-items: center; }
.hide-btn { padding: 4px 12px; font-size: 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(35, 32, 22, 0.06);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tab {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
}
.tab:hover { border-color: var(--accent); background: rgba(75, 78, 47, 0.06); }
.tab.active { background: var(--accent); color: var(--cream); border-color: var(--accent); }

.dashboard-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-bottom: 4px;
}
.dashboard-tabs .tab { flex: 1 0 170px; white-space: nowrap; }
.admin-tools { margin-top: 28px; }
.admin-tools,
#adminToolsContent,
.admin-tools .card,
.service-skill-group {
  min-width: 0;
}
.admin-tools .card,
.service-skill-group {
  max-width: 100%;
}
.admin-tools > summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
}
.admin-tools[open] > summary { margin-bottom: 20px; }
.settings-list {
  display: grid;
  gap: 10px;
}
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(243, 234, 211, 0.28);
  cursor: pointer;
}
.settings-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.settings-item-title {
  font-weight: 700;
  color: var(--text);
}
.settings-item-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.settings-item input[type="checkbox"] {
  flex: 0 0 auto;
}
.settings-message {
  min-height: 18px;
  margin: 8px 2px 0;
}
.admin-tools #settingsSection,
.admin-tools #serviceManagerSection,
.admin-tools #scheduleManagerSection,
.admin-tools #availabilitySection {
  box-shadow: none;
  margin-bottom: 18px;
}
.section-help {
  max-width: 720px;
  margin-top: -4px;
  margin-bottom: 16px;
  line-height: 1.45;
}
.range-roster-booking {
  display: block;
  padding: 6px 8px;
  margin: 3px 0;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: rgba(75, 78, 47, 0.08);
  font-size: 12px;
  line-height: 1.35;
}

#rosterTable th:first-child,
#rosterTable td:first-child,
#rosterRangeTable th:first-child,
#rosterRangeTable td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
}
#rosterTable thead th,
#rosterRangeTable thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
}
#rosterTable { min-width: 720px; }
#rosterRangeTable { min-width: 760px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.service {
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.service:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(35, 32, 22, 0.1); }
.service.selected { border-color: var(--accent); background: #f3f1e6; }
.service h3 { margin: 0 0 6px; font-weight: 700; }
.service .price { color: var(--accent); font-weight: 700; }

select, input, button, textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

select[multiple] { border-radius: 8px; }

textarea {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  resize: vertical;
  margin: 14px 0;
}

.promo-input {
  max-width: 220px;
}

input[type="checkbox"], input[type="radio"] {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

button {
  background: var(--accent);
  color: var(--cream);
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 10px 20px;
  transition: background 0.15s, opacity 0.15s;
}
button:hover { background: var(--accent-dark); }
button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
button.secondary:hover { background: rgba(75, 78, 47, 0.08); }

button.btn-loading { opacity: 0.6; cursor: progress; }
button.btn-success, button.secondary.btn-success { background: var(--success) !important; color: var(--cream) !important; border-color: var(--success) !important; }
button.btn-error, button.secondary.btn-error { background: var(--error) !important; color: var(--cream) !important; border-color: var(--error) !important; }

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.slot {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}
.slot:hover { border-color: var(--accent); background: #f3f1e6; }
.slot.selected { border-color: var(--accent); background: #f3f1e6; font-weight: 700; }
.slot.taken { color: var(--muted); background: #ece6d6; cursor: not-allowed; border-color: var(--border); }

#confirmationDetails { line-height: 1.7; margin: 0 0 16px; }

.booking-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--cream);
}
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.summary-total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 8px;
  font-weight: 700;
  color: var(--accent);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#bookingCalHeading {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 4px;
}
#bookingCalNav { margin: 16px 0 20px; }
#bookingCalList { margin-top: 4px; }
.cal-day-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cal-day-row:last-child { border-bottom: none; }
.cal-day-header {
  flex: 0 0 70px;
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.4;
}
.cal-day-list { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.cal-booking {
  position: relative;
  flex: 0 1 220px;
  min-width: 160px;
  padding: 8px 48px 8px 10px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  background: rgba(75, 78, 47, 0.08);
  font-size: 13px;
  line-height: 1.4;
}
.cal-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(35, 32, 22, 0.15);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cal-delete-btn:hover { background: var(--error); color: var(--cream); }
.cal-day-empty { color: var(--muted); font-size: 13px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
tr:last-child td { border-bottom: none; }
th { background: var(--cream); font-weight: 700; }

#rosterTable { margin-top: 14px; }
.roster-cell.free { color: var(--muted); }
.roster-cell.booked { background: rgba(75, 78, 47, 0.08); font-weight: 600; border-left: 4px solid var(--accent); }
.roster-cell.off { color: var(--muted); background: var(--border); }
.roster-row-now td:first-child { color: var(--accent); font-weight: 700; position: relative; }
.roster-row-now td:first-child::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}

.roster-stats {
  font-size: 14px;
  margin-top: 10px;
  color: var(--text);
}

.roster-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
  font-size: 13px;
}
.legend-item { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 2px solid;
  display: inline-block;
}

#availWeeklyRow, #availSlotGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}
#availWeeklyRow label, #availSlotGrid label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
#availWeeklyRow label:hover, #availSlotGrid label:hover { border-color: var(--accent); }
#availWeeklyRow label:has(input:checked), #availSlotGrid label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(75, 78, 47, 0.08);
  font-weight: 600;
}

#employeeList {
  display: grid;
  gap: 12px;
  margin: 14px 0 20px;
}
.employee-card {
  display: block;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--border);
}
.employee-card:last-child { border-bottom: none; }
.employee-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.employee-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}
.employee-name { font-weight: 700; }
.employee-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) 150px;
  gap: 8px;
  align-items: start;
}
.employee-services > .muted {
  grid-column: 1 / -1;
  font-weight: 700;
  color: var(--accent);
}
.employee-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.75);
}
.employee-skill-chip:has(input:checked) {
  border-color: rgba(75, 78, 47, 0.35);
  background: rgba(75, 78, 47, 0.07);
}
.employee-service-status {
  min-width: 58px;
  font-style: italic;
  grid-column: 1 / -1;
}
.employee-actions {
  display: grid;
  gap: 8px;
  align-self: start;
  grid-column: -2 / -1;
  grid-row: 2 / span 2;
  margin-top: 0;
}
.employee-actions button {
  width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}
button.secondary.danger {
  color: var(--error);
  border-color: var(--error);
}
button.secondary.danger:hover { background: rgba(161, 75, 66, 0.08); }

#availWeekTable { margin: 14px 0 18px; }
#availWeekTable th, #availWeekTable td { text-align: center; padding: 12px 8px; }
#availWeekTable th:first-child, #availWeekTable td:first-child { text-align: left; }

#abServiceSections { margin-bottom: 20px; }
.ab-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 16px;
  margin-bottom: 8px;
}
.abServiceOption {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: 16px;
}
.ab-service-option-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.ab-service-option-name,
.ab-service-option-value {
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.ab-service-option-name { font-weight: 700; }
.ab-service-option-value { color: var(--muted); font-size: 14px; }
.ab-service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ab-service-item:hover { border-color: var(--accent); }
.ab-service-item:has(input:checked) {
  border-color: var(--accent);
  background: rgba(75, 78, 47, 0.08);
}
.ab-service-item span:nth-child(2) { flex: 1; }

.service-manager-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}
.service-manager-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.service-manager-summary span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(75, 78, 47, 0.06);
  color: var(--accent);
  font-size: 12px;
}
.status-pill.on {
  border-color: rgba(79, 107, 67, 0.35);
  background: rgba(79, 107, 67, 0.12);
  color: var(--success);
}
.status-pill.off {
  border-color: rgba(161, 75, 66, 0.25);
  background: rgba(161, 75, 66, 0.08);
  color: var(--error);
}
.empty-state {
  padding: 22px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(243, 234, 211, 0.35);
}
.service-skill-group {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(243, 234, 211, 0.28);
}
.service-skill-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.service-skill-heading h4 {
  margin: 0;
  color: var(--accent);
  font-size: 15px;
}
.service-editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  max-width: 620px;
}
.service-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.service-admin-table {
  table-layout: fixed;
  min-width: 1040px;
  border: none;
  border-radius: 0;
}
.service-admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}
.service-admin-table td,
.service-admin-table th {
  vertical-align: top;
  padding: 10px;
}
.service-admin-table tr.is-disabled {
  opacity: 0.58;
}
.service-admin-table input,
.service-admin-table select,
.service-admin-table textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  line-height: 1.25;
  white-space: normal;
  text-overflow: ellipsis;
}
.service-select-value {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  color: var(--accent);
}
.service-admin-table textarea {
  height: auto;
  min-height: 58px;
  margin: 0;
  overflow: hidden;
  resize: vertical;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.service-admin-table .service-enabled-col {
  width: 92px;
}
.service-admin-table .service-action-col {
  width: 92px;
}
.service-admin-table th:nth-child(2),
.service-admin-table td:nth-child(2) {
  width: 29%;
}
.service-admin-table th:nth-child(3),
.service-admin-table td:nth-child(3) {
  width: 140px;
}
.service-admin-table th:nth-child(4),
.service-admin-table td:nth-child(4) {
  width: 92px;
}
.service-admin-table th:nth-child(5),
.service-admin-table td:nth-child(5) {
  width: 98px;
}
.service-admin-table th:nth-child(6),
.service-admin-table td:nth-child(6) {
  width: 240px;
}
.service-admin-table button {
  min-height: 44px;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}
.table-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  white-space: nowrap;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.table-check input {
  width: 20px;
  height: 20px;
}
.service-row-meta {
  display: flex;
  gap: 6px 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.service-editor-grid input,
.service-editor-grid select {
  width: 100%;
  min-width: 0;
}
.service-editor-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.service-editor-grid label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.service-editor-grid .inline-check {
  display: flex;
  justify-content: flex-start;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.8);
}
.service-editor-grid button {
  min-height: 42px;
  align-self: stretch;
}
.service-empty-line {
  margin: 0;
  padding: 10px 2px;
}
#scheduleManagerSection > .row:first-of-type {
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(243, 234, 211, 0.28);
}
#scheduleManagerSection #availStaffLabel {
  width: 100%;
}
#scheduleManagerSection #availStaffSelect {
  min-width: 260px;
  max-width: 100%;
}

.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#availStaffLabel { font-weight: 600; font-size: 14px; color: var(--text); }
.login-row input { flex: 1 1 200px; min-width: 0; }

@media (max-width: 820px) {
  .admin-tools > summary {
    line-height: 1.35;
  }
  .admin-tools .card {
    padding: 16px;
  }
  .admin-tools .row > input,
  .admin-tools .row > select,
  .admin-tools .row > textarea {
    flex: 1 1 220px;
    min-width: 0;
  }
  #scheduleManagerSection #availStaffSelect {
    width: 100%;
  }
  .settings-item {
    align-items: flex-start;
  }
  .employee-services {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
  .employee-services > .muted {
    grid-column: 1 / -1;
  }
  .employee-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
  }
  .service-manager-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .service-manager-toolbar button {
    width: 100%;
  }
  .service-table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
  }
  .service-admin-table,
  .service-admin-table thead,
  .service-admin-table tbody,
  .service-admin-table tr,
  .service-admin-table th,
  .service-admin-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .service-admin-table {
    border: none;
    background: transparent;
    min-width: 0;
  }
  .service-admin-table thead {
    display: none;
  }
  .service-admin-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
  }
  .service-admin-table td {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    align-items: stretch;
    padding: 8px 0;
    border-bottom: 1px solid rgba(229, 220, 196, 0.65);
  }
  .service-admin-table td:nth-child(n) {
    width: 100%;
  }
  .service-admin-table td:last-child {
    border-bottom: none;
  }
  .service-admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .service-admin-table td > input,
  .service-admin-table td > select,
  .service-admin-table td > textarea,
  .service-admin-table td > .table-check,
  .service-admin-table td > button {
    width: 100%;
  }
  .service-admin-table .service-enabled-col,
  .service-admin-table .service-action-col {
    width: 100%;
  }
  .service-admin-table .service-action-col button {
    width: 100%;
  }
  .service-admin-table input,
  .service-admin-table select,
  .service-admin-table textarea,
  .service-admin-table button {
    min-height: 44px;
  }
  .service-admin-table input,
  .service-admin-table select,
  .service-admin-table textarea {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .service-admin-table select,
  .service-editor-grid select,
  #availStaffSelect {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  header { padding: 16px 20px; flex-wrap: wrap; row-gap: 10px; }
  header img { height: 40px; }
  header h1 { font-size: 28px; }
  header #siteTagline { font-size: 10px; letter-spacing: 2px; }
  main { padding: 24px 16px 48px; }
  .card { padding: 16px; }
  .dashboard-tabs .tab { flex-basis: 145px; padding: 10px 12px; }
  #rosterTable, #rosterRangeTable { font-size: 12px; }
  #rosterTable th, #rosterTable td,
  #rosterRangeTable th, #rosterRangeTable td { padding: 7px 6px; }
  .employee-card { grid-template-columns: 1fr; gap: 12px; }
  .employee-services { grid-template-columns: 1fr; }
  .employee-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
  .employee-actions button { min-height: 44px; }
  .employee-actions button { padding: 9px 8px; font-size: 12px; }
  .service-editor-grid { grid-template-columns: 1fr; }
  .settings-item {
    gap: 12px;
    padding: 12px;
  }
  .settings-item-title { font-size: 14px; }
  .settings-item-help { font-size: 12px; }

  /* Stack inputs/selects full-width instead of squeezing several onto one line. */
  .row > input, .row > select, .row > textarea { flex: 1 1 100%; min-width: 0; }
  .promo-input { max-width: none; }

  /* Buttons already wrap via .row, but give them room to breathe when stacked. */
  button { padding: 10px 16px; }

  .ab-service-grid { grid-template-columns: 1fr; }
  .service-skill-group { padding: 12px; }
  .service-admin-table tr { padding: 10px; }
  .service-skill-heading { flex-wrap: wrap; }
  .service-skill-heading h4 { overflow-wrap: anywhere; }

  /* Stack the date above its bookings instead of beside them, for max width. */
  .cal-day-row { flex-direction: column; gap: 4px; }
  .cal-day-header { flex: none; }
}
