.admin-shell {
  --admin-bg: #f5f3ef;
  --admin-panel: #fffefa;
  --admin-line: #e6e1d8;
  --admin-muted: #676056;
  --admin-ink: #211e19;
  --admin-bronze: #8a6339;
  --admin-side: #211f1b;
  --admin-radius: 12px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--admin-bg);
  color: var(--admin-ink);
  font-size: .875rem;
  line-height: 1.45;
}

.admin-shell h1, .admin-shell h2, .admin-shell h3, .admin-shell p { margin: 0; }
.admin-shell svg { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.admin-shell a, .admin-shell button { -webkit-tap-highlight-color: transparent; }
.admin-shell :is(a, button, input, select, summary):focus-visible {
  outline: 2px solid #9f7945;
  outline-offset: 3px;
}
.admin-shell :is(button, input, select) { font: inherit; }
.admin-shell .admin-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admin-shell .admin-nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }

.admin-shell .admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 27px 15px 17px;
  background: var(--admin-side);
  color: #f3eee6;
}

.admin-shell .admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 6px 35px;
  color: #fff9ee;
  text-decoration: none;
}

.admin-shell .admin-brand-mark {
  display: grid;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid #8e7253;
  border-radius: 9px;
  background: #332c23;
  color: #dfbd8f;
  font: 500 1.35rem/1 Georgia, serif;
}

.admin-shell .admin-brand strong { display: block; font-size: .92rem; font-weight: 650; letter-spacing: -.015em; }
.admin-shell .admin-brand small { display: block; margin-top: 2px; color: #c4b9a9; font-size: .7rem; }
.admin-shell .admin-nav-label {
  margin: 0 10px 9px;
  color: #c6b69f;
  font-size: .65rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.admin-shell .admin-nav { display: grid; gap: 5px; }

.admin-shell .admin-nav-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d6cec1;
  text-align: left;
  font-weight: 560;
  white-space: nowrap;
}

.admin-shell .admin-nav-btn:hover { background: #302d27; color: #fff9ee; }
.admin-shell .admin-nav-btn[aria-pressed=true] {
  border-color: #544434;
  background: #373026;
  color: #fff7e9;
  box-shadow: inset 3px 0 #bd945e;
}
.admin-shell .admin-nav-btn[aria-pressed=true] svg { color: #dfbd8f; }
.admin-shell .admin-side-footer { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid #443d32; }
.admin-shell .admin-side-footer strong { display: flex; align-items: center; gap: 6px; color: #efe5d6; }
.admin-shell .admin-side-footer svg { width: 15px; height: 15px; color: #dfbd8f; }
.admin-shell .admin-side-footer small { display: block; padding-top: 5px; color: #b9aa96; font-size: .7rem; }

.admin-shell .admin-workspace { min-width: 0; }
.admin-shell .admin-topline {
  display: flex;
  min-height: 55px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 27px;
  border-bottom: 1px solid var(--admin-line);
  background: var(--admin-panel);
  color: var(--admin-muted);
}
.admin-shell .admin-crumb, .admin-shell .admin-venue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
}
.admin-shell .admin-crumb strong, .admin-shell .admin-venue strong { color: var(--admin-ink); font-weight: 640; }
.admin-shell .admin-venue { padding: 5px 8px; border: 1px solid var(--admin-line); border-radius: 7px; }
.admin-shell .admin-venue svg { width: 14px; height: 14px; color: var(--admin-bronze); }
.admin-shell .admin-content {
  width: min(100%, 1570px);
  min-width: 0;
  margin: 0 auto;
  padding: 28px clamp(14px, 3vw, 38px) 42px;
}
.admin-shell .admin-pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 23px;
}
.admin-shell .admin-kicker {
  color: var(--admin-bronze);
  font-size: .68rem;
  font-weight: 720;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.admin-shell .admin-pagehead h1 {
  margin: 4px 0 6px;
  font: 500 clamp(2rem, 3vw, 2.7rem)/1.08 Georgia, 'Times New Roman', serif;
  letter-spacing: -.04em;
}
.admin-shell .admin-pagehead p:not(.admin-kicker) { color: var(--admin-muted); font-size: .84rem; }
.admin-shell .admin-head-action { display: flex; flex: none; align-items: center; gap: 8px; }
.admin-shell .admin-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  padding: 10px 12px;
  border: 1px solid #b7cbb8;
  border-radius: 8px;
  background: #edf4eb;
  color: #28533b;
  font-weight: 620;
}

.admin-shell .admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.admin-shell .admin-stat {
  min-width: 0;
  padding: 13px 14px 12px;
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-radius);
  background: var(--admin-panel);
}
.admin-shell .admin-stat-label {
  display: flex;
  min-height: 25px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--admin-muted);
  font-size: .73rem;
  font-weight: 650;
}
.admin-shell .admin-stat-label svg {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  padding: 5px;
  border-radius: 6px;
  background: #f1e9dc;
  color: var(--admin-bronze);
}
.admin-shell .admin-stat-value {
  display: block;
  margin-top: 3px;
  color: var(--admin-ink);
  font-size: 1.54rem;
  font-weight: 670;
  letter-spacing: -.048em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.admin-shell .admin-stat-foot { display: block; margin-top: 1px; color: var(--admin-muted); font-size: .69rem; }

.admin-shell .admin-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-radius);
  background: var(--admin-panel);
}
.admin-shell .admin-content > .admin-panel + .admin-panel, .admin-shell .admin-panel + .admin-split, .admin-shell .admin-split + .admin-panel {
  margin-top: 15px;
}
.admin-shell .admin-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 13px;
}
.admin-shell .admin-panel-header h2 {
  color: var(--admin-ink);
  font-size: 1.05rem;
  font-weight: 680;
  letter-spacing: -.022em;
}
.admin-shell .admin-panel-header p { margin-top: 4px; color: var(--admin-muted); font-size: .76rem; }
.admin-shell .admin-panel-header svg { color: var(--admin-bronze); }
.admin-shell .admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(245px, 1fr);
  align-items: start;
  gap: 15px;
}
.admin-shell .admin-split > * { min-width: 0; }

.admin-shell .admin-cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  margin: 0 0 12px;
}
.admin-shell .admin-cal-date, .admin-shell .admin-cal-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-shell .admin-cal-date { flex-wrap: wrap; color: var(--admin-muted); font-weight: 620; }
.admin-shell .admin-cal-date input {
  width: auto;
  min-width: 124px;
  min-height: 34px;
  padding: 5px 7px;
  font-variant-numeric: tabular-nums;
}
.admin-shell .admin-cal-controls { flex-wrap: wrap; }
.admin-shell .admin-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  align-items: center;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  color: var(--admin-muted);
  font-size: .69rem;
}
.admin-shell .admin-cal-legend > * { display: inline-flex; gap: 5px; align-items: center; }
.admin-shell .admin-legend-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border: 1px solid var(--admin-tone-border, #ccc1b2);
  border-radius: 50%;
  background: var(--admin-tone-bg, #eee8df);
}

.admin-shell .admin-calendar-scroll {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--admin-line);
  border-radius: 9px;
  scrollbar-color: #c7b8a4 #f4f0e8;
}
.admin-shell .admin-calendar { min-width: max(100%, calc(62px + var(--staff-count, 1) * 154px)); }
.admin-shell .admin-cal-head, .admin-shell .admin-cal-body {
  display: grid;
  grid-template-columns: 62px repeat(var(--staff-count, 1), minmax(154px, 1fr));
}
.admin-shell .admin-cal-head { background: #f6f3ed; border-bottom: 1px solid var(--admin-line); }
.admin-shell .admin-cal-head > *, .admin-shell .admin-cal-body > * {
  min-width: 0;
  border-right: 1px solid var(--admin-line);
}
.admin-shell .admin-cal-head > :last-child, .admin-shell .admin-cal-body > :last-child { border-right: 0; }
.admin-shell .admin-cal-axis-head {
  display: grid;
  place-items: center;
  color: var(--admin-muted);
  font-size: .68rem;
  font-weight: 640;
}
.admin-shell .admin-cal-person { display: flex; align-items: center; gap: 7px; padding: 9px; }
.admin-shell .admin-cal-person strong {
  display: block;
  color: var(--admin-ink);
  font-size: .75rem;
  overflow-wrap: anywhere;
}
.admin-shell .admin-cal-person small { display: block; color: var(--admin-muted); font-size: .64rem; }
.admin-shell .admin-cal-avatar, .admin-shell .admin-profile-avatar {
  display: grid;
  flex: none;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: #ece1d0;
  color: #634722;
  font-size: .7rem;
  font-weight: 700;
}
.admin-shell .admin-profile-avatar { width: 39px; height: 39px; border-radius: 9px; font-size: .8rem; }
.admin-shell .admin-cal-body { --hour-size: 47px; min-height: calc(var(--hour-count, 1) * var(--hour-size)); }
.admin-shell .admin-cal-axis, .admin-shell .admin-cal-track {
  position: relative;
  min-height: calc(var(--hour-count, 1) * var(--hour-size));
  background-color: #fffefa;
}
.admin-shell .admin-cal-axis { background-color: #f9f7f1; }
.admin-shell .admin-cal-tick {
  position: absolute;
  right: 8px;
  padding: 1px 0;
  transform: translateY(-50%);
  color: var(--admin-muted);
  font-size: .65rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.admin-shell .admin-cal-tick:first-child { transform: translateY(3px); }
.admin-shell .admin-cal-tick:last-child { transform: translateY(calc(-100% - 3px)); }
.admin-shell .admin-cal-track { background-color: #f9f7f3; }
.admin-shell .admin-cal-track .admin-cal-tick, .admin-shell .admin-cal-gridline {
  position: absolute;
  z-index: 1;
  right: 0;
  left: 0;
  width: 100%;
  height: 0;
  padding: 0;
  border-top: 1px solid var(--admin-line);
  transform: none;
  pointer-events: none;
}
.admin-shell .admin-cal-slot {
  position: absolute;
  right: 4px;
  left: 4px;
  z-index: 3;
  overflow: hidden;
  padding: 2px 5px;
  border: 1px solid var(--admin-tone-border, #d2cabf);
  border-left-width: 3px;
  border-radius: 4px;
  background: var(--admin-tone-bg, #eee9e0);
  color: var(--admin-tone-text, #504539);
  font-size: .65rem;
  line-height: 1.2;
}
.admin-shell .admin-cal-slot strong, .admin-shell .admin-cal-slot small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-shell .admin-cal-slot small { margin-top: 2px; font-size: .59rem; }
.admin-shell button.admin-cal-slot { text-align: left; cursor: pointer; }
.admin-shell button.admin-cal-slot:hover { filter: brightness(.95); }
.admin-shell .admin-cal-slot:is([data-tone=working], [data-tone=available]) {
  right: 0;
  left: 0;
  z-index: 0;
  border: 0;
  border-radius: 0;
}
.admin-shell .admin-cal-slot:is([data-tone=open], [data-tone=closed]) { z-index: 2; }
.admin-shell [data-tone=working], .admin-shell [data-tone=available] {
  --admin-tone-bg: #eaf0e7;
  --admin-tone-border: #b7c7b1;
  --admin-tone-text: #3d573b;
}
.admin-shell [data-tone=closed], .admin-shell [data-tone=cancelled], .admin-shell [data-tone=inactive] {
  --admin-tone-bg: #eae4dc;
  --admin-tone-border: #c7b7a5;
  --admin-tone-text: #615649;
}
.admin-shell [data-tone=open], .admin-shell [data-tone=active] {
  --admin-tone-bg: #e9f1e8;
  --admin-tone-border: #b9cdb8;
  --admin-tone-text: #2f583c;
}
.admin-shell [data-tone=confirmed] {
  --admin-tone-bg: #d9e8df;
  --admin-tone-border: #74a38d;
  --admin-tone-text: #244d3c;
}
.admin-shell [data-tone=held] {
  --admin-tone-bg: #f6e7cb;
  --admin-tone-border: #d3ad6c;
  --admin-tone-text: #674614;
}
.admin-shell [data-tone=completed] {
  --admin-tone-bg: #dce7ed;
  --admin-tone-border: #89a8b6;
  --admin-tone-text: #2f5565;
}
.admin-shell [data-tone=no_show], .admin-shell [data-tone=no-show] {
  --admin-tone-bg: #f5e5e0;
  --admin-tone-border: #d5aca2;
  --admin-tone-text: #783d32;
}

.admin-shell .admin-table-wrap { position: relative; width: 100%; min-width: 0; overflow: auto; container-type: inline-size; }
.admin-shell .admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .86rem; }
.admin-shell .admin-table th, .admin-shell .admin-table td {
  padding: 9px 7px;
  border-bottom: 1px solid var(--admin-line);
  vertical-align: middle;
}
.admin-shell .admin-table th {
  background: #f6f3ed;
  color: var(--admin-muted);
  font-size: .76rem;
  font-weight: 670;
  white-space: nowrap;
}
.admin-shell .admin-table tr:last-child td { border-bottom: 0; }
.admin-shell .admin-table td { overflow-wrap: anywhere; }
.admin-shell .admin-cell-label { display: none; }
.admin-shell .admin-table td strong { font-weight: 650; }
.admin-shell .admin-table td small {
  display: block;
  margin-top: 2px;
  color: var(--admin-muted);
  font-size: .82rem;
}
.admin-shell .admin-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid var(--admin-tone-border, #d8d0c5);
  border-radius: 5px;
  background: var(--admin-tone-bg, #f0ede7);
  color: var(--admin-tone-text, #60584d);
  font-size: .64rem;
  font-weight: 650;
  white-space: nowrap;
}
.admin-shell .admin-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 92px;
  padding: 16px;
  border: 1px dashed #dfd5c6;
  border-radius: 8px;
  background: #faf7f1;
  color: var(--admin-muted);
  text-align: center;
  font-size: .76rem;
}
.admin-shell .admin-empty svg { color: var(--admin-bronze); }
.admin-shell .admin-empty strong { color: var(--admin-ink); }
.admin-shell .admin-rule-list { display: grid; gap: 5px; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--admin-line); }
.admin-shell .admin-rule-list h3 { font-size: .78rem; }
.admin-shell .admin-rule-list p { color: var(--admin-muted); font-size: .73rem; }
.admin-shell .admin-rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--admin-line);
}
.admin-shell .admin-rule-row:last-child { border-bottom: 0; }
.admin-shell .admin-rule-row > div { min-width: 0; overflow-wrap: anywhere; }
.admin-shell .admin-rule-row p, .admin-shell .admin-rule-row small {
  color: var(--admin-muted);
  font-size: .73rem;
}
.admin-shell .admin-rule-row small { display: block; margin: 2px 0 3px; }

.admin-shell .admin-button, .admin-shell .admin-icon-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #d9cfc0;
  border-radius: 7px;
  background: var(--admin-panel);
  color: var(--admin-ink);
  font-size: .83rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.admin-shell .admin-button:hover, .admin-shell .admin-icon-button:hover {
  border-color: #a78e71;
  background: #f5efe4;
}
.admin-shell .admin-button[data-variant=primary] { border-color: #3c3024; background: #3c3024; color: #fff8ee; }
.admin-shell .admin-button[data-variant=primary]:hover { border-color: #5e472e; background: #5e472e; }
.admin-shell .admin-button[data-variant=ghost] {
  border-color: transparent;
  background: transparent;
  color: var(--admin-bronze);
}
.admin-shell .admin-button[data-variant=ghost]:hover { border-color: var(--admin-line); background: #f5efe4; }
.admin-shell .admin-button:disabled, .admin-shell .admin-icon-button:disabled { opacity: .48; cursor: default; }
.admin-shell .admin-icon-button { width: 34px; padding: 4px; }
.admin-shell .admin-button svg, .admin-shell .admin-icon-button svg {
  width: 14px;
  height: 14px;
  color: currentColor;
}

.admin-shell .admin-form { display: grid; gap: 12px; }
.admin-shell .admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-shell .admin-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.admin-shell .admin-field {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--admin-muted);
  font-size: .82rem;
  font-weight: 650;
}
.admin-shell .admin-field input, .admin-shell .admin-field select, .admin-shell .admin-inline-form select, .admin-shell .admin-cal-date input {
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #d8cfc1;
  border-radius: 6px;
  background: #fffefa;
  color: var(--admin-ink);
  font-size: .85rem;
  font-weight: 480;
}
.admin-shell .admin-field input, .admin-shell .admin-field select { width: 100%; }
.admin-shell .admin-check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--admin-ink);
  font-size: .76rem;
  font-weight: 620;
}
.admin-shell input[type=checkbox] { width: 15px; height: 15px; flex: none; margin: 0; accent-color: #765636; }
.admin-shell .admin-inline-form { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 5px; }
.admin-shell .admin-inline-form select { min-height: 29px; }
.admin-shell .admin-inline-form button { min-height: 29px; padding: 4px 7px; }

.admin-shell .admin-customer-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--admin-ink);
  text-align: left;
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #c4ae93;
  text-underline-offset: 3px;
  cursor: pointer;
}
.admin-shell .admin-customer-link:hover { color: var(--admin-bronze); }
.admin-shell .admin-customer-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin: 0 0 16px;
}
.admin-shell .admin-customer-search .admin-field { flex: 1 1 0; max-width: 330px; }
.admin-shell .admin-customer-create { margin: 0 0 16px; padding: 13px; border: 1px solid var(--admin-line); border-radius: 8px; background: #f9f6ee; }
.admin-shell .admin-customer-create h3 { margin: 0 0 3px; font-size: .89rem; }
.admin-shell .admin-customer-create p { margin: 0; color: var(--admin-muted); font-size: .77rem; }
.admin-shell .admin-customer-identity { display: flex; gap: 10px; align-items: center; }
.admin-shell .admin-customer-identity > div { min-width: 0; overflow-wrap: anywhere; }
.admin-shell .admin-customer-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
.admin-shell .admin-customer-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.admin-shell .admin-customer-summary .admin-profile-avatar {
  width: 46px;
  height: 46px;
  font-size: .9rem;
}
.admin-shell .admin-customer-summary h2 { font-size: 1.12rem; line-height: 1.3; }
.admin-shell .admin-customer-summary p { color: var(--admin-muted); font-size: .82rem; }
.admin-shell .admin-customer-detail > .admin-panel + .admin-split { margin-top: 0; }
.admin-shell .admin-customer-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 155px), 1fr));
  gap: 10px;
}
.admin-shell .admin-customer-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 9px;
}
.admin-shell .admin-customer-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee8de;
}
.admin-shell .admin-customer-image:focus-visible { outline-offset: -3px; }
.admin-shell .admin-customer-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-shell .admin-customer-photo figcaption { padding: 8px 9px; overflow-wrap: anywhere; }
.admin-shell .admin-customer-photo figcaption strong { font-size: .77rem; }
.admin-shell .admin-customer-photo figcaption p { margin: 4px 0; color: var(--admin-muted); font-size: .77rem; }
.admin-shell .admin-customer-photo figcaption button { margin: 4px 0 0; color: #783d32; }
.admin-shell .admin-photo-consent { align-items: flex-start; line-height: 1.4; }

.admin-shell .admin-profile {
  margin: 0 0 8px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 9px;
  background: #fffefa;
}
.admin-shell .admin-profile:last-child { margin-bottom: 0; }
.admin-shell .admin-profile-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 8px 10px;
  list-style: none;
  cursor: pointer;
}
.admin-shell .admin-profile-summary::-webkit-details-marker { display: none; }
.admin-shell .admin-profile-summary::after {
  width: 6px;
  height: 6px;
  flex: none;
  margin-left: auto;
  border: solid var(--admin-muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  content: '';
}
.admin-shell .admin-profile[open] .admin-profile-summary {
  border-bottom: 1px solid var(--admin-line);
  background: #f9f6ee;
}
.admin-shell .admin-profile[open] .admin-profile-summary::after { transform: rotate(225deg); }
.admin-shell .admin-profile-meta { display: grid; gap: 1px; min-width: 0; }
.admin-shell .admin-profile-meta strong { overflow-wrap: anywhere; font-size: .81rem; }
.admin-shell .admin-profile-meta small { color: var(--admin-muted); font-size: .71rem; }
.admin-shell .admin-profile-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 8px 10px;
  color: var(--admin-muted);
  font-size: .71rem;
}
.admin-shell .admin-offer-form, .admin-shell .admin-shift-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.25fr) repeat(2, minmax(65px, 1fr)) auto;
  align-items: end;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--admin-line);
}
.admin-shell .admin-offer-form .admin-check, .admin-shell .admin-shift-row .admin-check { align-self: center; }
.admin-shell .admin-offer-form small, .admin-shell .admin-weekday small { display: block; color: var(--admin-muted); font-size: .66rem; font-weight: 500; }
.admin-shell .admin-shift-row { grid-template-columns: minmax(70px, 1fr) repeat(2, minmax(78px, 1fr)) repeat(2, auto); padding-inline: 0; }
.admin-shell .admin-weekday { align-self: center; font-size: .8rem; font-weight: 650; }
.admin-shell .admin-shift-total { padding-bottom: 9px; color: var(--admin-ink); font-size: 1.15rem; font-weight: 670; }
.admin-shell .admin-shift-total span { color: var(--admin-bronze); }
.admin-shell aside.admin-panel > p:not(.admin-shift-total) { margin: 0 0 12px; color: var(--admin-muted); }

.admin-shell .admin-manual { margin-bottom: 16px; border-color: #d8c1a4; }
.admin-shell .admin-manual-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}
.admin-shell .admin-manual-services {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
}
.admin-shell .admin-manual-option {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  font-size: .75rem;
}
.admin-shell .admin-manual-option > span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.admin-shell .admin-manual-option small { display: block; color: var(--admin-muted); }
.admin-shell .admin-manual-option > span:last-child { color: var(--admin-ink); text-align: right; white-space: nowrap; }
.admin-shell .admin-manual-option:has(input:checked) { border-color: #aa8b66; background: #f6eee1; }
.admin-shell .admin-manual-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  margin-top: 3px;
  padding: 8px 3px 1px;
  border-top: 1px solid var(--admin-line);
  font-size: .77rem;
}
.admin-shell .admin-manual-total output { color: var(--admin-bronze); font-weight: 670; font-variant-numeric: tabular-nums; }

@container (max-width: 570px) {
  .admin-shell .admin-table,
  .admin-shell .admin-table tbody { display: grid; gap: 9px; }
  .admin-shell .admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .admin-shell .admin-table tbody > tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    padding: 12px;
    border: 1px solid var(--admin-line);
    border-radius: 9px;
    background: #fbf9f4;
  }
  .admin-shell .admin-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .admin-shell .admin-table td:not([data-layout=meta]) { grid-column: 1 / -1; }
  .admin-shell .admin-table [data-layout=heading] { font-size: .95rem; }
  .admin-shell .admin-cell-label {
    display: block;
    margin-bottom: 2px;
    color: var(--admin-muted);
    font-size: .72rem;
    font-weight: 650;
  }
  .admin-shell .admin-table [data-layout=action] .admin-button {
    width: 100%;
    min-height: 44px;
    border-color: var(--admin-line);
    background: var(--admin-panel);
  }
  .admin-shell .admin-table [data-layout=action] .admin-button:hover { border-color: #a78e71; }
  .admin-shell .admin-table .admin-status { max-width: 100%; white-space: normal; }
}

@media (max-width: 1120px) {
  .admin-shell { grid-template-columns: 192px minmax(0, 1fr); }
  .admin-shell .admin-sidebar { padding-right: 11px; padding-left: 11px; }
  .admin-shell .admin-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .admin-shell { display: block; }
  .admin-shell .admin-sidebar { position: static; height: auto; padding: 12px 12px 7px; }
  .admin-shell .admin-brand { margin: 0 0 9px; }
  .admin-shell .admin-brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .admin-shell .admin-nav-label { display: none; }
  .admin-shell .admin-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding-block: 2px 5px; }
  .admin-shell .admin-nav-btn {
    min-height: 48px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 5px 1px;
    font-size: clamp(.68rem, 2.55vw, .86rem);
    text-align: center;
    white-space: normal;
  }
  .admin-shell .admin-nav-btn svg { width: 16px; height: 16px; }
  .admin-shell .admin-nav-btn[aria-pressed=true] { box-shadow: none; }
  .admin-shell .admin-side-footer { display: none; }
  .admin-shell .admin-topline { min-height: 43px; padding: 7px 12px; }
  .admin-shell .admin-content { padding: 15px 12px 28px; }
  .admin-shell .admin-pagehead { flex-wrap: wrap; align-items: flex-start; margin-bottom: 13px; }
  .admin-shell .admin-pagehead h1 { font-size: clamp(1.85rem, 7vw, 2.3rem); }
  .admin-shell .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 11px; }
  .admin-shell .admin-stat { padding: 9px; }
  .admin-shell .admin-stat-value { font-size: 1.3rem; }
  .admin-shell .admin-stat-foot { font-size: .65rem; }
  .admin-shell .admin-panel { padding: 12px; }
  .admin-shell .admin-panel-header { flex-wrap: wrap; }
  .admin-shell .admin-button, .admin-shell .admin-icon-button { min-height: 44px; }
  .admin-shell .admin-icon-button { width: 44px; }
  .admin-shell .admin-field input, .admin-shell .admin-field select,
  .admin-shell .admin-inline-form select, .admin-shell .admin-cal-date input {
    min-height: 44px;
    font-size: 16px;
  }
  .admin-shell .admin-cal-axis-head, .admin-shell .admin-cal-axis { position: sticky; left: 0; z-index: 4; }
  .admin-shell .admin-cal-axis-head { background: #f6f3ed; }
  .admin-shell .admin-cal-body { --hour-size: 41px; }
  .admin-shell .admin-manual-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 500px) {
  .admin-shell .admin-cal-controls { gap: 4px; }
  .admin-shell .admin-offer-form, .admin-shell .admin-shift-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-shell .admin-offer-form > div, .admin-shell .admin-weekday {
    grid-column: 1 / -1;
  }
  .admin-shell .admin-offer-form .admin-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .admin-shell .admin-shift-row .admin-button { justify-self: end; }
  .admin-shell .admin-customer-create .admin-form-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-shell .admin-customer-summary > .admin-button { width: 100%; }
}
