:root {
  color-scheme: light;
  --ink: #202521;
  --ink-soft: #46514b;
  --muted: #65736d;
  --line: #dfe7e2;
  --line-strong: #b9c8c0;
  --paper: #f4f7f4;
  --paper-soft: #fafbf9;
  --panel: #ffffff;
  --teal: #72877d;
  --teal-soft: #e8f0ec;
  --sage: #91a69d;
  --sage-dark: #6f8378;
  --sage-deep: #53675e;
  --moss: #496f5e;
  --coral: #bf6f55;
  --coral-soft: #fae4dc;
  --gold: #ffcf3f;
  --gold-soft: #fff3c4;
  --green: #496f5e;
  --green-soft: #e1eee7;
  --blue: #657f8d;
  --blue-soft: #e2ecf0;
  --danger: #b73737;
  --danger-soft: #ffe1e1;
  --focus: #8a6a00;
  --shadow: 0 1px 2px rgba(32, 37, 33, 0.04), 0 12px 30px rgba(83, 103, 94, 0.08);
  --shadow-soft: 0 1px 2px rgba(32, 37, 33, 0.04), 0 8px 18px rgba(83, 103, 94, 0.06);
  --radius: 8px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0) 280px),
    var(--paper);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(138, 106, 0, 0.34);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 100vh;
}

body[data-auth="signed-out"] .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

body[data-auth="signed-out"] .sidebar,
body[data-auth="signed-out"] .topbar {
  display: none;
}

body[data-auth="signed-out"] .content {
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

body[data-auth="signed-out"] .view-root {
  display: grid;
  align-items: center;
  width: 100%;
  max-width: none;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 18px 14px;
  color: #ffffff;
  background: var(--sage-dark);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.1);
}

.brand {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(37, 37, 34, 0.18));
}

.brand-copy,
.nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.08;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: #f5f7f4;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin-top: 28px;
}

.nav-item {
  position: relative;
  display: grid;
  place-items: center;
  align-items: center;
  width: 46px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #f4f7f5;
  background: transparent;
  text-align: center;
  font-weight: 780;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.is-active {
  color: #ffffff;
  background: transparent;
}

.nav-item.is-active::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--sage-dark);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #ffffff;
  background: transparent;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.nav-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item:hover .nav-icon,
.nav-item:focus-visible .nav-icon {
  color: #ffffff;
  background: rgba(179, 203, 192, 0.24);
  box-shadow: 0 0 0 1px rgba(214, 228, 221, 0.16);
  transform: translateY(-1px);
}

.nav-item.is-active .nav-icon {
  color: var(--gold);
  background: rgba(179, 203, 192, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 207, 63, 0.24);
}

.sidebar-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.role-switcher {
  display: grid;
  width: 100%;
  gap: 6px;
}

.role-switcher span,
.role-note {
  color: #f5f7f4;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.role-select {
  width: 100%;
  min-height: 38px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 207, 63, 0.48);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
}

.role-note {
  letter-spacing: 0;
  text-transform: none;
}

.role-note,
.sidebar .muted {
  display: none;
}

.role-badge,
.status-pill,
.tag,
.date-chip,
.api-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.role-badge {
  color: var(--ink);
  background: var(--gold);
}

.muted {
  color: var(--muted);
}

.sidebar .muted {
  color: #f5f7f4;
}

.content {
  min-width: 0;
  padding: 26px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 18px;
  max-width: 1440px;
  padding: 2px 0 6px;
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.login-view {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 48px);
}

.login-card {
  display: grid;
  gap: 24px;
  width: min(100%, 456px);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.login-card img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.login-card h2 {
  margin: 4px 0 8px;
  font-size: 1.8rem;
  line-height: 1.1;
}

.login-card p {
  margin: 0;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-error {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--danger-soft));
  border-radius: var(--radius);
  color: var(--danger);
  background: var(--danger-soft);
  font-weight: 750;
}

.date-chip,
.time-chip,
.api-chip {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.api-chip span {
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.api-chip.is-ok span {
  background: var(--green);
}

.api-chip.is-down span {
  background: var(--danger);
}

.topbar .date-chip,
.topbar .time-chip,
.topbar .api-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 800;
}

.topbar .api-chip span {
  width: 7px;
  height: 7px;
  margin-right: 0;
}

.topbar .api-chip {
  width: 22px;
  justify-content: center;
  padding-inline: 0;
}

.view-root {
  max-width: 1440px;
  margin: 0 auto;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-head h2 {
  margin: 2px 0 0;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.page-head.is-actions-only {
  justify-content: flex-end;
}

.page-head.is-actions-only .page-actions {
  margin-left: auto;
}

.page-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn,
.icon-btn,
.icon-button,
.slot-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  font-weight: 750;
}

.btn:hover,
.icon-btn:hover,
.icon-button:hover,
.slot-button:hover {
  border-color: #a4b4ad;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.btn:disabled,
.icon-btn:disabled,
.icon-button:disabled,
.slot-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
  transform: none;
}

.btn.primary {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 8px 18px rgba(255, 207, 63, 0.23);
}

.btn.coral {
  color: #ffffff;
  border-color: var(--sage-deep);
  background: var(--sage-deep);
}

.btn.subtle {
  background: #f8faf8;
}

.btn:disabled,
.slot-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.icon-btn,
.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  padding: 0;
  font-weight: 850;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 18px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-card,
.panel,
.detail-panel,
.table-panel,
.booking-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric-card {
  --metric-accent: var(--gold);
  position: relative;
  display: block;
  width: 100%;
  padding: 7px 16px 8px 18px;
  color: var(--ink);
  text-align: left;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.metric-card:first-child {
  border-left: 0;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--metric-accent);
}

.metric-card[type="button"] {
  cursor: pointer;
}

.metric-card[type="button"]:hover,
.metric-card[type="button"]:focus-visible {
  background: var(--paper-soft);
  box-shadow: none;
  transform: none;
}

.metric-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.metric-card b {
  display: block;
  margin-top: 4px;
  font-size: 1.24rem;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.metric-label {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.metric-card .status-pill {
  display: inline-flex;
  margin-top: 0;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.7rem;
  background: transparent;
}

.metric-card.ok {
  --metric-accent: #7fb092;
  background: transparent;
}

.metric-card.warning {
  --metric-accent: var(--gold);
  background: transparent;
}

.metric-card.birthday {
  --metric-accent: #e78aae;
  background: transparent;
}

.metric-card.danger {
  --metric-accent: #b84c4c;
  background: transparent;
}

.metric-card.paused {
  --metric-accent: #7b9188;
  background: transparent;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.dashboard-grid.reception-day-grid {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-main-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.panel,
.detail-panel,
.table-panel,
.booking-panel {
  padding: 20px;
}

.detail-panel {
  position: sticky;
  top: 22px;
  align-self: start;
  max-height: calc(100vh - 44px);
  overflow: auto;
}

.panel h3,
.detail-panel h3,
.booking-panel h3,
.table-panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0;
}

.dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.dashboard-card-head h3 {
  margin-bottom: 2px;
}

.dashboard-card-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-day-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
}

.dashboard-day-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.dashboard-day-tab small {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
}

.dashboard-day-tab:hover,
.dashboard-day-tab:focus-visible {
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.dashboard-day-tab.is-active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(37, 45, 40, 0.08);
}

.dashboard-day-tab.is-active small {
  color: #6b5520;
  background: var(--gold);
}

.day-trainer-tabs {
  max-width: min(48vw, 480px);
  overflow-x: auto;
  scrollbar-width: none;
}

.day-trainer-tabs[aria-busy="true"] {
  opacity: 0.72;
}

.day-trainer-tabs .dashboard-day-tab {
  flex: 0 0 auto;
}

.day-trainer-tabs::-webkit-scrollbar {
  display: none;
}

.day-range-tabs {
  flex: 0 0 auto;
}

.dashboard-date-tabs {
  max-width: min(50vw, 560px);
  overflow-x: auto;
  scrollbar-width: none;
}

.dashboard-date-tabs::-webkit-scrollbar {
  display: none;
}

.dashboard-slot-agenda {
  display: grid;
  gap: 16px;
}

.dashboard-slot-agenda.is-week {
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.dashboard-slot-day {
  display: grid;
  gap: 8px;
}

.dashboard-slot-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.dashboard-slot-day-head > div {
  display: grid;
  gap: 2px;
}

.dashboard-slot-list {
  display: grid;
  gap: 4px;
}

.dashboard-slot-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(223, 231, 226, 0.72);
}

.dashboard-slot-row:last-child {
  border-bottom: 0;
}

.dashboard-slot-row.is-blocked {
  opacity: 0.78;
}

.dashboard-slot-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dashboard-slot-appointments,
.dashboard-slot-free {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.dashboard-slot-appointment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--service-border), transparent 34%);
  border-radius: var(--radius);
  color: var(--service-text);
  background: color-mix(in srgb, var(--service-bg), #ffffff 24%);
  text-align: left;
  box-shadow: 0 1px 0 rgba(32, 37, 33, 0.03);
}

.dashboard-slot-appointment:hover,
.dashboard-slot-appointment:focus-visible {
  border-color: var(--service-border);
  background: color-mix(in srgb, var(--service-bg), #ffffff 10%);
  outline: none;
}

.dashboard-slot-appointment > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dashboard-slot-appointment strong,
.dashboard-slot-appointment small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-free-pill {
  border: 1px solid color-mix(in srgb, var(--service-border), transparent 36%);
  color: var(--service-text);
  background: color-mix(in srgb, var(--service-bg), #ffffff 28%);
  cursor: pointer;
}

.dashboard-free-pill:hover,
.dashboard-free-pill:focus-visible {
  border-color: var(--service-border);
  background: var(--service-bg);
  outline: none;
}

.dashboard-week-shell {
  max-height: 640px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  scrollbar-width: thin;
}

.dashboard-week-grid {
  display: grid;
  grid-template-columns: 56px repeat(var(--dashboard-day-count), minmax(118px, 1fr));
  min-width: 100%;
}

.dashboard-week-shell.is-day {
  max-height: 560px;
}

.dashboard-week-shell.is-day .dashboard-week-grid {
  grid-template-columns: 56px minmax(0, 1fr);
}

.dashboard-week-shell.is-day .dashboard-week-cell {
  min-height: 50px;
}

.dashboard-week-shell.is-day .dashboard-week-free {
  gap: 4px;
}

.dashboard-week-corner,
.dashboard-week-head,
.dashboard-week-time,
.dashboard-week-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dashboard-week-corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 4;
  display: grid;
  place-items: end center;
  min-height: 58px;
  padding: 8px;
  color: var(--muted);
  background: #fbfcfb;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-week-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 1px;
  min-height: 58px;
  padding: 7px 8px;
  border-top: 0;
  border-left: 0;
  color: var(--ink);
  background: #fbfcfb;
  text-align: left;
}

.dashboard-week-head:hover,
.dashboard-week-head:focus-visible {
  background: var(--paper-soft);
  outline: none;
}

.dashboard-week-head.is-today {
  background: var(--gold-soft);
}

.dashboard-week-head strong {
  font-size: 0.82rem;
  line-height: 1.1;
}

.dashboard-week-head small,
.dashboard-week-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-week-head em {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
}

.dashboard-week-time {
  position: sticky;
  left: 0;
  z-index: 2;
  display: grid;
  align-items: start;
  min-height: 58px;
  padding: 6px 8px;
  color: var(--muted);
  background: #fbfcfb;
  font-size: 0.68rem;
  font-weight: 850;
}

.dashboard-week-cell {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 58px;
  padding: 4px;
  background: #ffffff;
}

.dashboard-week-cell.is-closed {
  background: repeating-linear-gradient(
    -45deg,
    #f6f8f6,
    #f6f8f6 6px,
    #fbfcfb 6px,
    #fbfcfb 12px
  );
}

.dashboard-week-cell.is-blocked {
  background: var(--danger-soft);
}

.dashboard-week-appointment {
  display: grid;
  gap: 1px;
  width: 100%;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid color-mix(in srgb, var(--service-border), transparent 30%);
  border-radius: 6px;
  color: var(--service-text);
  background: var(--service-bg);
  box-shadow: inset 3px 0 0 var(--service-accent);
  text-align: left;
}

.dashboard-week-appointment:hover,
.dashboard-week-appointment:focus-visible {
  border-color: var(--service-border);
  filter: saturate(1.04);
  outline: none;
}

.dashboard-week-appointment strong,
.dashboard-week-appointment span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-week-appointment strong {
  font-size: 0.68rem;
  line-height: 1.1;
}

.dashboard-week-appointment span {
  color: var(--service-text);
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.1;
  opacity: 0.84;
}

.dashboard-week-free {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.dashboard-week-free-chip {
  min-height: 20px;
  padding: 2px 5px;
  border: 1px solid color-mix(in srgb, var(--service-border), transparent 36%);
  border-radius: 999px;
  color: var(--service-text);
  background: color-mix(in srgb, var(--service-bg), #ffffff 28%);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
}

.dashboard-week-free-chip:hover,
.dashboard-week-free-chip:focus-visible {
  border-color: var(--service-border);
  background: var(--service-bg);
  outline: none;
}

.dashboard-week-note {
  overflow: hidden;
  color: #8b2424;
  font-size: 0.6rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-week-empty {
  grid-column: 1 / -1;
  margin: 12px;
}

.compact-month-field {
  width: 168px;
}

.compact-month-field span {
  font-size: 0.7rem;
}

.billing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
}

.billing-summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.billing-summary-strip strong,
.billing-summary-strip span {
  display: block;
}

.billing-table td strong,
.billing-table td small {
  display: block;
}

.billing-table td small {
  margin-top: 2px;
}

.billing-history-panel {
  align-self: start;
}

.billing-history-list {
  margin: var(--space-4) 0;
}

.billing-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.85fr) minmax(280px, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.billing-chart-card {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.billing-chart-card.has-warning {
  border-color: color-mix(in srgb, var(--gold) 58%, var(--line));
}

.billing-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.billing-chart-head strong,
.billing-chart-head span {
  display: block;
}

.billing-chart-head strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 850;
}

.billing-chart-head > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.billing-bar-stack,
.billing-low-list,
.billing-legend {
  display: grid;
  gap: var(--space-3);
}

.billing-bar-row {
  --billing-bar: var(--moss);
  display: grid;
  grid-template-columns: minmax(120px, 0.95fr) minmax(120px, 1.25fr) 88px;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 760;
}

.billing-bar-row.completed {
  --billing-bar: var(--gold);
}

.billing-bar-row.delta {
  --billing-bar: var(--sage-deep);
}

.billing-bar-row.invoice {
  --billing-bar: #c99259;
}

.billing-bar-row strong {
  color: var(--ink);
  font-size: 0.82rem;
  text-align: right;
}

.billing-bar-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: var(--paper);
}

.billing-bar-track i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--billing-bar);
}

.billing-donut-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.billing-donut {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: conic-gradient(var(--moss) 0 var(--contract-share), var(--gold) var(--contract-share) 100%);
}

.billing-donut::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: inherit;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}

.billing-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 740;
}

.billing-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--moss);
}

.billing-legend i.cards,
.billing-legend i.completed {
  background: var(--gold);
}

.billing-legend i.delta {
  background: var(--sage-deep);
}

.billing-legend i.invoice {
  background: #c99259;
}

.billing-low-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: 9px 0;
  color: inherit;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.billing-low-row:first-child {
  border-top: 0;
}

.billing-low-row:hover,
.billing-low-row:focus-visible {
  color: var(--ink);
  background: var(--paper-soft);
}

.billing-empty-note {
  display: grid;
  gap: 4px;
  padding-top: var(--space-2);
}

.billing-empty-note strong {
  font-size: 0.92rem;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.customer-insight-grid,
.employee-insight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insight-card {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.insight-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.insight-card-head strong,
.insight-card-head span {
  display: block;
}

.insight-card-head strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.18;
}

.insight-card-head > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.insight-kpi {
  display: grid;
  gap: 2px;
}

.insight-kpi strong {
  font-size: 2rem;
  font-weight: 880;
  line-height: 1;
}

.insight-kpi span,
.insight-mini-row,
.insight-empty span,
.insight-row small {
  color: var(--muted);
  font-size: 0.78rem;
}

.insight-meter {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: var(--paper);
}

.insight-meter span {
  display: block;
  width: 0;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--moss);
}

.insight-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-weight: 780;
}

.insight-bar-list,
.insight-list {
  display: grid;
  gap: var(--space-2);
}

.insight-list.compact {
  gap: 0;
}

.insight-bar-item,
.insight-row {
  display: grid;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.insight-bar-item {
  grid-template-columns: auto minmax(82px, 0.72fr) minmax(82px, 1fr) auto;
  gap: var(--space-2);
}

.insight-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
}

.insight-row.standalone {
  border-bottom: 1px solid var(--line);
}

.insight-bar-item:first-child,
.insight-row:first-child {
  border-top: 0;
}

.insight-bar-item:hover,
.insight-bar-item:focus-visible,
.insight-row:hover,
.insight-row:focus-visible {
  background: var(--paper-soft);
  outline: none;
}

.insight-bar-item > span:not(.service-color-dot),
.insight-row strong,
.insight-bar-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-row span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.insight-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--service-accent);
  box-shadow: 0 0 0 3px var(--service-bg);
}

.insight-empty {
  display: grid;
  gap: 3px;
  padding: var(--space-2) 0;
}

.insight-empty strong {
  font-size: 0.9rem;
}

.insight-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.insight-split button {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 74px;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper-soft);
  text-align: left;
}

.insight-split button:hover,
.insight-split button:focus-visible {
  border-color: var(--line-strong);
  background: #ffffff;
  outline: none;
}

.insight-split strong {
  font-size: 1rem;
  font-weight: 850;
}

.insight-split span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.birthday-modal {
  max-width: min(760px, calc(100vw - 32px));
}

.birthday-detail-list {
  display: grid;
  gap: var(--space-4);
}

.birthday-detail-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.birthday-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.birthday-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.birthday-detail-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.birthday-detail-grid small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 780;
}

.birthday-detail-grid strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-range-stack {
  display: grid;
  gap: var(--space-4);
}

.day-range-group {
  display: grid;
  gap: 2px;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
}

.day-range-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.day-range-group.is-today .day-range-head strong {
  color: var(--moss);
}

.day-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 40px;
  padding: 0 8px;
}

.day-range-head strong,
.day-range-head small {
  display: block;
}

.day-range-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-row,
.appointment-row,
.customer-row,
.alert-row,
.field-row {
  display: grid;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.timeline-row {
  grid-template-columns: 74px minmax(0, 1fr) auto;
}

.dashboard-appointment-row {
  width: 100%;
  grid-template-columns: 74px 36px minmax(0, 1fr);
  min-height: 60px;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.dashboard-appointment-row:hover,
.dashboard-appointment-row:focus-visible {
  background: var(--paper-soft);
}

.timeline-more {
  width: 100%;
  min-height: 40px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
}

.timeline-more:hover,
.timeline-more:focus-visible {
  color: var(--ink);
  border-color: var(--sage);
  background: var(--paper-soft);
  outline: none;
}

.timeline-row:first-child,
.appointment-row:first-child,
.customer-row:first-child,
.alert-row:first-child,
.field-row:first-child {
  border-top: 0;
}

.appointment-row {
  border-radius: var(--radius);
  padding-inline: 8px;
}

.appointment-row.customer-appointment.done {
  border-color: rgba(82, 136, 105, 0.28);
  background: linear-gradient(90deg, rgba(82, 136, 105, 0.18), rgba(255, 255, 255, 0));
}

.appointment-row.cancelled {
  opacity: 0.72;
  background: rgba(184, 76, 76, 0.08);
}

.appointment-row.moved {
  background: rgba(66, 118, 179, 0.1);
}

.appointment-row.first-appointment {
  border-color: rgba(225, 189, 61, 0.4);
  background: linear-gradient(90deg, rgba(255, 206, 72, 0.22), rgba(255, 255, 255, 0));
}

.time {
  color: var(--ink);
  font-weight: 850;
}

.person {
  min-width: 0;
}

.person strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.appointment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.appointment-note {
  margin-top: 7px;
}

.status-pill.service-ems {
  color: #745000;
  background: var(--gold-soft);
}

.status-pill.service-lymph-drainage {
  color: #245f54;
  background: var(--teal-soft);
}

.status-pill.service-relax {
  color: #385e4d;
  background: var(--green-soft);
}

.status-pill.service-metabolism {
  color: #8b3c24;
  background: #ffe4d6;
}

.status-pill.service-reformer-pilates,
.status-pill.service-category-pilates {
  color: #5f4a31;
  background: #efe3d0;
}

.status-pill.service-category-ems {
  color: #315f52;
  background: #dfeee7;
}

.status-pill.service-category-lymph {
  color: #8a4c1f;
  background: #ffe8cc;
}

.status-pill.service-prospect {
  color: #425a50;
  background: var(--paper-soft);
}

.status-pill.service-color,
.tag.service-color {
  color: var(--service-text);
  border: 1px solid color-mix(in srgb, var(--service-border) 44%, transparent);
  background: var(--service-bg);
}

.status-pill.suit-pill {
  border: 1px solid transparent;
}

.status-pill.suit-size-s {
  color: #385e4d;
  background: var(--green-soft);
}

.status-pill.suit-size-m {
  color: #2457aa;
  background: var(--blue-soft);
}

.status-pill.suit-size-l {
  color: #805300;
  background: var(--gold-soft);
}

.status-pill.suit-size-xl {
  color: #8b3c24;
  background: #ffe4d6;
}

.status-pill.suit-size-open {
  color: #6a6258;
  background: var(--paper-soft);
}

.status-pill.source-direct {
  color: var(--ink-soft);
  background: var(--paper-soft);
}

.status-pill.source-wellhub {
  color: #2457aa;
  background: var(--blue-soft);
}

.status-pill.source-wellpass {
  color: #745000;
  background: var(--gold-soft);
}

.status-pill.neutral {
  color: var(--ink-soft);
  background: var(--paper-soft);
}

.status-pill.confirmed,
.status-pill.active,
.status-pill.ok,
.status-pill.done {
  color: #385e4d;
  background: var(--green-soft);
}

.status-pill.open,
.status-pill.warning {
  color: #805300;
  background: var(--gold-soft);
}

.status-pill.birthday {
  color: #7b3150;
  background: #ffe3f0;
}

.status-pill.paused,
.status-pill.moved,
.status-pill.inactive {
  color: #2457aa;
  background: var(--blue-soft);
}

.status-pill.cancelled,
.status-pill.danger,
.status-pill.archived {
  color: #8b2424;
  background: var(--danger-soft);
}

.metric-card .status-pill {
  color: var(--ink-soft);
  background: transparent;
}

.alert-row {
  grid-template-columns: 18px minmax(0, 1fr) auto;
  min-height: 62px;
}

.alert-task {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.alert-button {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.alert-task-open {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  border: 0;
  padding: 0;
}

.alert-button:hover,
.alert-button:focus-visible {
  background: var(--paper-soft);
}

.alert-confirm-button {
  align-self: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--ink-soft);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.alert-confirm-button:hover,
.alert-confirm-button:focus-visible {
  color: var(--ink);
  border-color: var(--sage);
  background: var(--paper-soft);
  outline: none;
  transform: translateY(-1px);
}

.dashboard-attention-empty {
  min-height: 96px;
}

.alert-button strong,
.alert-button small {
  display: block;
}

.alert-button small {
  margin-top: 2px;
  color: var(--muted);
}

.alert-button.warning,
.alert-button.open,
.alert-button.birthday,
.alert-button.danger,
.alert-button.paused,
.alert-button.ok {
  background: transparent;
}

.alert-dot {
  align-self: start;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--gold);
}

.alert-button.danger .alert-dot {
  background: #b84c4c;
}

.alert-button.ok .alert-dot {
  background: #7fb092;
}

.alert-button.paused .alert-dot {
  background: #7b9188;
}

.alert-button.birthday .alert-dot {
  background: #e78aae;
}

.alert-button .status-pill {
  align-self: start;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.7rem;
}

.split-view {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.7fr);
  gap: 14px;
}

.dashboard-grid > *,
.split-view > *,
.calendar-layout > *,
.public-layout > * {
  min-width: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--line-strong);
}

.input,
.select {
  padding: 0 11px;
}

.textarea {
  min-height: 88px;
  padding: 10px 11px;
  resize: vertical;
}

.toolbar .input {
  flex: 1 1 240px;
}

.toolbar .select {
  flex: 0 1 190px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper-soft);
  font-size: 0.78rem;
  font-weight: 820;
}

.active-filter-chip:hover,
.active-filter-chip:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: var(--paper-soft);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.data-table tbody tr:first-child td {
  border-top: 0;
}

.data-table tr:hover td {
  background: var(--paper-soft);
}

.data-table tr.is-selected td {
  background: var(--teal-soft);
}

.dashboard-today-panel {
  margin-top: 0;
}

.dashboard-today-table th:first-child,
.dashboard-today-table td:first-child {
  width: 84px;
}

.dashboard-today-table th:last-child,
.dashboard-today-table td:last-child {
  width: 52px;
}

.dashboard-today-table td {
  padding-block: 10px;
}

.dashboard-today-table tr.done td {
  background: linear-gradient(90deg, rgba(82, 136, 105, 0.12), rgba(255, 255, 255, 0));
}

.dashboard-today-table tr.cancelled td {
  color: var(--muted);
  background: rgba(184, 76, 76, 0.07);
}

.dashboard-today-table tr.moved td {
  background: rgba(66, 118, 179, 0.08);
}

.dashboard-today-table tr.first-appointment td {
  box-shadow: inset 3px 0 0 var(--gold);
}

.dashboard-table-pills {
  margin-top: 0;
}

.table-action-cell {
  text-align: right;
}

.row-button {
  width: 100%;
  min-height: 44px;
  padding: 2px 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.detail-list {
  display: grid;
  gap: 8px;
}

.employee-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.employee-form.compact {
  gap: 8px;
}

.customer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.employee-form .full,
.customer-form .full {
  grid-column: 1 / -1;
}

.customer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

.tab-button.is-active {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.customer-panel {
  display: grid;
  gap: 12px;
}

.customer-list-view,
.employee-list-view {
  display: grid;
  gap: 14px;
}

.master-table-stack {
  display: grid;
  gap: 14px;
}

.master-group-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.master-group-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 72px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.master-group-tab:hover,
.master-group-tab:focus-visible {
  border-color: var(--moss-light);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 45, 39, 0.08);
  outline: 0;
  transform: translateY(-1px);
}

.master-group-tab.is-active {
  border-color: rgba(255, 204, 67, 0.75);
  background: linear-gradient(180deg, rgba(255, 204, 67, 0.18), rgba(255, 255, 255, 0.92));
}

.master-group-tab span,
.master-group-tab strong,
.master-group-tab small {
  display: block;
}

.master-group-tab strong {
  font-size: 0.88rem;
  font-weight: 900;
}

.master-group-tab small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.35;
}

.master-group-tab em {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: var(--moss);
  background: var(--paper-soft);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 900;
}

.master-group-stack {
  display: grid;
  gap: var(--space-6);
}

.master-section-group {
  display: grid;
  gap: var(--space-3);
}

.master-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 2px 0;
}

.master-group-head span:first-child {
  display: block;
  color: var(--moss);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.master-group-head h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
}

.master-group-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.master-accordion {
  gap: var(--space-2);
}

.table-panel.master-accordion-item {
  padding: 0;
  overflow: hidden;
}

.master-section-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 64px;
  padding: 14px var(--space-5);
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.master-section-trigger:hover,
.master-section-trigger:focus-visible {
  background: var(--paper-soft);
  outline: 0;
}

.master-section-trigger strong,
.master-section-trigger small {
  display: block;
}

.master-section-trigger strong {
  font-size: 0.96rem;
  font-weight: 850;
}

.master-section-trigger small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.master-section-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 900;
}

.master-section-trigger:hover .master-section-icon,
.master-section-trigger:focus-visible .master-section-icon,
.master-accordion-item.is-open .master-section-icon {
  color: var(--moss);
  background: var(--paper-soft);
}

.master-section-body {
  display: grid;
  gap: var(--space-4);
  padding: 0 var(--space-5) var(--space-5);
}

.master-note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.master-note-row.is-compact {
  min-height: 0;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.master-note-row strong,
.master-note-row span {
  display: block;
}

.master-note-row strong {
  font-weight: 850;
}

.master-note-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.master-note-row .status-pill,
.master-note-row .retro-theme-switch {
  flex: 0 0 auto;
}

.service-color-control {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 180px;
}

.service-color-swatch {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--service-border) 48%, transparent);
  border-radius: 999px;
  background: var(--service-bg);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.service-color-input {
  width: 34px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.service-color-input::-webkit-color-swatch-wrapper {
  padding: 3px;
}

.service-color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 999px;
}

.service-color-input::-moz-color-swatch {
  border: 0;
  border-radius: 999px;
}

.service-color-control small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.master-split-notes,
.opening-editor-grid,
.master-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.master-form-grid .full {
  grid-column: 1 / -1;
}

.website-settings-stack {
  display: grid;
  gap: var(--space-4);
}

.website-settings-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.site-hero-admin-preview {
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.site-hero-admin-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.site-benefits-admin-preview {
  aspect-ratio: 1;
  min-height: 0;
}

.site-benefits-admin-preview img {
  min-height: 0;
}

.website-popup-admin-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.website-popup-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: var(--space-4);
  align-items: start;
}

.website-benefits-admin-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.site-benefits-editor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.site-benefit-editor-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.site-benefit-editor-card textarea {
  min-height: 96px;
}

.site-social-admin-list {
  display: grid;
  gap: var(--space-3);
}

.site-social-admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(140px, 0.45fr) minmax(180px, 0.55fr);
  gap: var(--space-3);
  align-items: end;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.site-social-admin-row .full {
  grid-column: 1 / -1;
}

.master-check-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.master-check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.master-check-row strong,
.master-check-row small {
  display: block;
}

.master-check-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-popup-admin-textarea {
  min-height: 132px;
}

.site-popup-admin-preview {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid color-mix(in srgb, var(--gold) 36%, var(--line));
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdf5 0%, var(--paper) 100%);
  box-shadow: var(--shadow-soft);
}

.site-popup-admin-kicker {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--gold) 72%, #755f20);
  background: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-popup-admin-preview strong {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.12;
}

.site-popup-admin-preview p,
.site-popup-admin-preview small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-popup-admin-button {
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.micro-copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.mail-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.mail-token-row code {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper-soft);
  font-size: 0.76rem;
  font-weight: 750;
}

.mail-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.mail-template-card {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.mail-template-textarea {
  min-height: 180px;
}

.mail-preview p {
  white-space: pre-wrap;
}

.invoice-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: var(--space-4);
}

.invoice-builder-card,
.invoice-items-panel {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.invoice-mode-tabs {
  width: fit-content;
}

.invoice-customer-results {
  display: grid;
  gap: var(--space-2);
}

.invoice-letterhead-preview {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 82px;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.invoice-letterhead-preview img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
}

.invoice-letterhead-preview span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.invoice-letterhead-preview small,
.invoice-summary-row small {
  display: block;
  color: var(--muted);
}

.invoice-items-table {
  min-width: 880px;
}

.invoice-items-table th:nth-child(3),
.invoice-items-table td:nth-child(3) {
  width: 88px;
}

.invoice-items-table th:nth-child(4),
.invoice-items-table td:nth-child(4),
.invoice-items-table th:nth-child(5),
.invoice-items-table td:nth-child(5) {
  width: 140px;
}

.compact-number-input {
  max-width: 72px;
}

.compact-price-input {
  max-width: 112px;
}

.invoice-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.billing-invoices-panel,
.invoice-archive-panel {
  margin-top: var(--space-4);
}

.invoice-history-table td strong,
.invoice-history-table td small {
  display: block;
}

.roster-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.roster-table td {
  vertical-align: top;
}

.roster-cell {
  display: grid;
  gap: var(--space-2);
  min-width: 210px;
}

.roster-cell-empty {
  align-content: start;
  min-height: 74px;
}

.roster-cell .select,
.roster-cell .input {
  min-height: 34px;
  padding: 7px 9px;
}

.roster-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.suit-stock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.suit-stock-control {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.suit-stock-control span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.suit-stock-control strong {
  font-size: 0.96rem;
}

.suit-stock-control small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.suit-stock-control.is-disabled {
  opacity: 0.55;
}

.opening-summary-cell {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.opening-summary-cell small {
  color: var(--muted);
  font-size: 0.8rem;
}

.table-action-trigger {
  margin-inline: auto;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(37, 45, 40, 0.44);
}

.customer-modal {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(920px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(37, 37, 34, 0.24);
  overflow: auto;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h3 {
  margin: 2px 0 0;
  font-size: 1.15rem;
}

.modal-close {
  flex: 0 0 auto;
  font-size: 1.35rem;
}

.modal-body {
  min-height: 220px;
}

.modal-actions {
  position: sticky;
  bottom: -20px;
  margin: 0 -20px -20px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.wizard-tabs {
  counter-reset: wizard-step;
}

.wizard-tabs .tab-button::before {
  counter-increment: wizard-step;
  content: counter(wizard-step);
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.wizard-tabs .tab-button.is-active::before {
  background: var(--gold);
}

.customer-snapshot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 12px;
}

.booking-customer-summary {
  display: grid;
  gap: 10px;
  margin: 2px 0 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.booking-customer-search {
  gap: 8px;
  margin-bottom: 12px;
}

.booking-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
}

.booking-mode-option {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.booking-mode-option:hover,
.booking-mode-option:focus-visible {
  color: var(--ink);
  background: #ffffff;
}

.booking-mode-option.is-active {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 6px 14px rgba(255, 207, 63, 0.22);
}

.customer-search-results {
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.customer-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.customer-search-result:hover,
.customer-search-result:focus-visible,
.customer-search-result.is-selected {
  border-color: var(--line-strong);
  background: var(--paper-soft);
}

.customer-search-result .person-line {
  min-width: 0;
}

.customer-search-result .status-pill {
  flex: 0 0 auto;
}

.customer-search-empty {
  display: grid;
  gap: 2px;
  padding: 10px;
  color: var(--ink-soft);
}

.upload-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.file-drop {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 14px;
  border: 1px dashed #9eafa7;
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: #ffffff;
}

.file-drop input {
  width: 100%;
}

.file-drop span {
  color: var(--ink);
  font-weight: 850;
}

.file-drop small {
  color: var(--muted);
}

.employee-summary {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.pricing-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 28px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.pricing-row strong {
  color: var(--ink);
  white-space: nowrap;
}

.pricing-row.total {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 850;
}

.master-settings {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.master-settings.is-plain {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

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

.employee-workflow {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.workflow-section {
  display: grid;
  gap: 10px;
}

.workflow-section + .workflow-section {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.workflow-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.workflow-head strong {
  font-size: 0.95rem;
}

.textarea.compact {
  min-height: 62px;
}

.tariff-price-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tariff-price-current {
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.tariff-price-comparison {
  display: inline-grid;
  gap: 3px;
  min-width: 116px;
}

.tariff-price-comparison del {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.tariff-price-comparison strong {
  justify-self: start;
  border-radius: 999px;
  padding: 3px 9px;
  color: #5c4212;
  background: var(--gold-soft);
  font-size: 0.9rem;
  line-height: 1.2;
}

.tariff-price-comparison small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.worklog-list {
  display: grid;
  gap: 8px;
}

.worklog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.worklog-row:first-child {
  border-top: 0;
}

.worklog-row strong,
.worklog-row small {
  display: block;
}

.worklog-row small {
  margin-top: 2px;
  color: var(--muted);
}

.schedule-table {
  display: grid;
  gap: 6px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 44px minmax(88px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.schedule-head {
  min-height: 34px;
  color: var(--muted);
  background: #f8faf8;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.checkbox-row.compact {
  align-items: center;
  margin: 0;
  font-size: 0.82rem;
}

.quota-panel,
.access-panel,
.password-box {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.quota-head,
.access-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quota-head strong,
.access-header strong {
  display: block;
  margin-bottom: 4px;
}

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

.quota-meter {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: var(--teal-soft);
}

.quota-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.quota-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.mail-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf8;
}

.mail-preview code {
  overflow-wrap: anywhere;
  padding: 8px;
  border-radius: 6px;
  color: var(--ink-soft);
  background: #ffffff;
}

.mail-preview p {
  margin: 0;
  color: var(--ink-soft);
}

.employee-actions {
  margin-top: 12px;
}

.customer-actions {
  margin-top: 12px;
}

.field-row {
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
}

.field-row span:first-child {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.document-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: #f8faf8;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.calendar-board {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.calendar-grid {
  display: grid;
  grid-template-columns: 72px minmax(320px, 1fr);
  min-width: 520px;
}

.calendar-head,
.calendar-time,
.calendar-cell {
  min-height: 68px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.calendar-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 50px;
  padding: 12px;
  border-top: 0;
  background: var(--paper-soft);
  font-weight: 850;
}

.calendar-head:first-child,
.calendar-time {
  border-left: 0;
}

.calendar-time {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  background: #fbfcfa;
}

.calendar-cell {
  padding: 7px;
}

.slot-stack {
  display: grid;
  gap: 8px;
  align-content: stretch;
}

.slot-appointment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px;
}

.slot-button {
  width: 100%;
  height: 100%;
  min-height: 52px;
  color: var(--sage-deep);
  background: var(--paper-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.slot-button.is-selected {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold-soft);
}

.appointment-pill {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  width: 100%;
  min-height: 58px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--teal-soft);
  text-align: left;
}

.appointment-pill.prospect {
  background: var(--gold-soft);
}

.appointment-pill.first-appointment {
  border-color: #e1bd3d;
  background: var(--gold-soft);
}

.appointment-pill.moved {
  background: var(--blue-soft);
}

.appointment-pill.done {
  border-color: rgba(82, 136, 105, 0.42);
  background: var(--green-soft);
}

.appointment-pill.cancelled {
  opacity: 0.58;
  background: var(--danger-soft);
}

.appointment-pill.service-color {
  color: var(--service-text);
  border-color: color-mix(in srgb, var(--service-border) 48%, transparent);
  background: var(--service-bg);
  box-shadow: inset 4px 0 0 var(--service-accent);
}

.appointment-pill.service-color:hover {
  border-color: var(--service-border);
}

.appointment-pill.service-color strong,
.appointment-pill.service-color small {
  color: var(--service-text);
}

.appointment-pill.is-moving-source {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 206, 72, 0.26);
}

.slot-button.move-slot {
  color: var(--muted);
  background: #f5f7f4;
}

.slot-button.move-slot.is-move-target {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold-soft);
}

.appointment-pill strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-pill small {
  color: var(--ink-soft);
}

.appointment-pill-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.selected-slot {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.booking-rules {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.booking-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.capacity-meter {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: var(--teal-soft);
}

.capacity-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label,
.form-field span {
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 800;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.public-month,
.suggestion-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.public-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.public-month-head strong {
  text-transform: capitalize;
}

.public-weekdays,
.public-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.public-weekdays span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.public-day {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 58px;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.public-day:not(:disabled):hover {
  border-color: var(--sage);
  background: var(--paper-soft);
  transform: translateY(-1px);
}

.public-day span {
  min-width: 0;
  max-width: 100%;
  font-weight: 900;
}

.public-day small {
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.public-day.is-muted {
  color: var(--muted);
  background: #f8faf8;
}

.public-day.is-today {
  border-color: var(--gold);
}

.public-day.is-selected {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.public-day:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.public-availability-block {
  display: grid;
  gap: 8px;
  margin: -4px 0 var(--space-4);
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.public-availability-block .quota-hero {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.public-availability-block .quota-meter {
  height: 8px;
}

.move-month-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.move-month {
  margin-bottom: 0;
}

.move-month-grid .public-day {
  min-height: 66px;
}

.move-day small {
  max-width: 100%;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.portal-quota-stack {
  display: grid;
  gap: 10px;
}

.portal-quota-block {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 10px 0 12px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portal-quota-block::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7fb092;
}

.portal-quota-block:has(.pilates-quota-hero)::before {
  background: #d884ad;
}

.quota-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 6px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.quota-hero strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.quota-hero span,
.quota-hero small {
  color: var(--ink-soft);
  font-weight: 850;
}

.quota-hero span {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.quota-hero small {
  font-size: 0.82rem;
}

.quota-summary-list {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}

.quota-summary-list .field-row {
  min-height: 34px;
  padding: 8px 0;
}

.slot-list {
  display: grid;
  gap: 8px;
}

.public-slot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}

.public-slot.is-selected {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.public-slot:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.appointment-row {
  grid-template-columns: 74px 42px minmax(0, 1fr) auto;
}

.appointment-avatar,
.table-avatar,
.timeline-avatar,
.summary-avatar,
.profile-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  color: #385e4d;
  background: var(--green-soft);
  font-weight: 900;
  letter-spacing: 0;
}

.person-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.person-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.person-copy strong,
.person-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-avatar {
  width: 42px;
  height: 42px;
  align-self: start;
  font-size: 0.86rem;
}

.appointment-avatar-small {
  width: 28px;
  height: 28px;
  align-self: start;
  font-size: 0.68rem;
}

.timeline-avatar,
.table-avatar {
  width: 38px;
  height: 38px;
  font-size: 0.78rem;
}

.timeline-avatar {
  width: 34px;
  height: 34px;
  align-self: center;
  font-size: 0.72rem;
}

.summary-avatar {
  width: 46px;
  height: 46px;
  font-size: 0.9rem;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  font-size: 1.2rem;
}

img.appointment-avatar,
img.table-avatar,
img.timeline-avatar,
img.summary-avatar,
img.profile-avatar {
  display: block;
  object-fit: cover;
}

.dashboard-appointment-row img.timeline-avatar.has-image,
.appointment-row img.appointment-avatar.has-image {
  position: relative;
  z-index: 0;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.dashboard-appointment-row:hover img.timeline-avatar.has-image,
.dashboard-appointment-row:focus-visible img.timeline-avatar.has-image,
.appointment-row:hover img.appointment-avatar.has-image,
.appointment-row:focus-within img.appointment-avatar.has-image {
  z-index: 2;
  transform: scale(1.22);
  box-shadow: 0 10px 24px rgba(32, 37, 33, 0.18);
}

.profile-image-field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.profile-image-field strong,
.profile-image-field span {
  display: block;
}

.profile-upload-button {
  margin-top: 10px;
}

.profile-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.context-menu {
  position: relative;
  justify-self: end;
}

.context-menu summary {
  list-style: none;
}

.context-menu summary::-webkit-details-marker {
  display: none;
}

.context-menu-trigger {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1;
}

.context-menu-trigger:hover {
  color: var(--ink);
  background: var(--paper-soft);
}

.context-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  display: grid;
  min-width: 212px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.context-menu-label {
  display: block;
  padding: 8px 10px 4px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.context-menu-list button {
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
}

.context-menu-list button:not(:disabled):hover {
  background: var(--paper-soft);
}

.context-menu-list button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.day-side-stack {
  display: grid;
  align-content: start;
  gap: 16px;
}

.suit-inventory-panel {
  align-self: start;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.suit-inventory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 9px 18px;
  border-bottom: 1px solid var(--line);
}

.suit-inventory-head h3 {
  margin-bottom: 2px;
}

.suit-inventory-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.suit-inventory-filter {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
}

.suit-filter-pill {
  display: inline-grid;
  min-width: 30px;
  min-height: 28px;
  place-items: center;
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  cursor: pointer;
}

.suit-filter-pill:hover,
.suit-filter-pill:focus-visible {
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.suit-filter-pill.is-active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(37, 45, 40, 0.08);
}

.suit-filter-pill.low {
  color: #9d174d;
  background: #fce7f3;
}

.suit-filter-pill.low.is-active {
  color: #831843;
  background: #fbcfe8;
}

.suit-filter-pill.warning {
  color: #805300;
  background: var(--gold-soft);
}

.suit-filter-pill.danger {
  color: #7f1d1d;
  background: var(--danger-soft);
}

.suit-inventory-list {
  display: grid;
  gap: 0;
}

.suit-inventory-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-height: 66px;
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid var(--line);
}

.suit-inventory-row:last-child {
  border-bottom: 0;
}

.suit-inventory-size {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper-soft);
  font-size: 0.76rem;
  font-weight: 950;
}

.suit-inventory-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.suit-inventory-copy strong,
.suit-inventory-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suit-inventory-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.suit-inventory-bar {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--teal-soft);
}

.suit-inventory-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.suit-inventory-count {
  display: inline-flex;
  min-width: 48px;
  justify-content: flex-end;
  padding-top: 4px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 950;
  white-space: nowrap;
}

.suit-inventory-row.ok .suit-inventory-size {
  background: var(--green-soft);
}

.suit-inventory-row.warning .suit-inventory-size {
  background: var(--gold-soft);
}

.suit-inventory-row.warning .suit-inventory-bar span {
  background: var(--gold);
}

.suit-inventory-row.low .suit-inventory-size {
  color: #9d174d;
  background: #fce7f3;
}

.suit-inventory-row.low .suit-inventory-bar span {
  background: #ec4899;
}

.suit-inventory-row.danger .suit-inventory-size {
  color: #7f1d1d;
  background: #fee2e2;
}

.suit-inventory-row.danger .suit-inventory-bar span {
  background: var(--danger);
}

.day-clock-panel {
  --clock-accent: #7fb092;
  position: relative;
  align-self: start;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.day-clock-panel::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--clock-accent);
}

.day-clock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  padding: 0 0 9px 18px;
  border-bottom: 1px solid var(--line);
}

.day-clock-head h3 {
  margin-bottom: 0;
}

.day-clock-head .status-pill {
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.7rem;
}

.clock-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.clock-focus span,
.clock-stat-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.clock-focus strong {
  font-size: 1.34rem;
  line-height: 1.05;
}

.clock-focus small,
.clock-hint {
  color: var(--ink-soft);
}

.clock-focus small {
  grid-column: 1 / -1;
}

.clock-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
}

.clock-stat-grid div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  min-height: 0;
  padding: 8px 0 8px 18px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.clock-stat-grid strong {
  font-size: 0.92rem;
}

.clock-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  padding: 12px 0 0 18px;
}

.clock-action-bar .btn {
  flex: 1 1 96px;
}

.clock-hint {
  margin-top: 9px;
  padding-left: 18px;
  font-size: 0.86rem;
}

/* Product polish layer: shared SaaS component finish */
.content {
  padding: var(--space-6);
}

.topbar {
  margin-bottom: var(--space-5);
  padding: 0 0 var(--space-2);
}

.topbar h1 {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0;
}

.topbar .date-chip,
.topbar .time-chip,
.topbar .api-chip {
  color: var(--muted);
  font-size: 0.78rem;
}

.page-head {
  margin-bottom: var(--space-4);
}

.page-head.is-actions-only {
  margin-top: calc(-1 * var(--space-2));
  margin-bottom: var(--space-4);
}

.page-actions,
.inline-actions {
  gap: var(--space-2);
}

.btn,
.icon-btn,
.icon-button,
.slot-button,
.public-day,
.public-slot,
.tab-button,
.context-menu-trigger,
.row-button {
  -webkit-tap-highlight-color: transparent;
}

.btn,
.icon-btn,
.icon-button,
.slot-button {
  min-height: 40px;
}

.btn {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 800;
}

.btn:hover,
.icon-btn:hover,
.icon-button:hover,
.slot-button:hover,
.public-day:not(:disabled):hover,
.public-slot:not(:disabled):hover,
.context-menu-trigger:hover {
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transform: none;
}

.btn.primary:hover {
  border-color: #e7b900;
  background: #ffd75c;
}

.btn.subtle {
  color: var(--ink-soft);
  background: #ffffff;
}

.btn.coral {
  color: #ffffff;
  border-color: #4c6258;
  background: #4c6258;
}

.role-badge,
.status-pill,
.tag,
.date-chip,
.time-chip,
.api-chip {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 800;
}

.tag {
  color: var(--ink-soft);
  background: var(--paper-soft);
}

.loading-tag {
  position: relative;
  padding-left: 22px;
}

.loading-tag::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 9px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 999px;
  background: var(--gold);
  animation: pulse-dot 1s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.metrics-grid {
  gap: 0;
  margin-bottom: var(--space-5);
  padding: var(--space-3) 0;
  border-color: var(--line);
}

.metric-card {
  min-height: 72px;
  padding: 8px 18px 8px 22px;
}

.metric-card::before {
  top: 15px;
  left: 9px;
}

.metric-card b {
  margin-top: 6px;
  font-size: 1.28rem;
  font-weight: 850;
}

.metric-card span {
  color: var(--muted);
}

.metric-label {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 820;
}

.panel,
.detail-panel,
.table-panel,
.booking-panel {
  padding: var(--space-5);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.panel h3,
.detail-panel h3,
.booking-panel h3,
.table-panel h3 {
  margin-bottom: var(--space-4);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
}

.booking-accordion {
  display: grid;
  gap: var(--space-2);
}

.booking-accordion-item {
  border-top: 1px solid var(--line);
}

.booking-accordion-item:first-child {
  border-top: 0;
}

.booking-accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 56px;
  padding: 10px 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.booking-accordion-trigger:hover,
.booking-accordion-trigger:focus-visible {
  color: var(--moss);
  outline: 0;
}

.booking-accordion-trigger strong,
.booking-accordion-trigger small {
  display: block;
}

.booking-accordion-trigger strong {
  font-size: 0.94rem;
  font-weight: 850;
}

.booking-accordion-trigger small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.booking-accordion-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 850;
}

.booking-accordion-trigger:hover .booking-accordion-icon,
.booking-accordion-trigger:focus-visible .booking-accordion-icon,
.booking-accordion-item.is-active .booking-accordion-icon {
  background: var(--paper-soft);
  color: var(--moss);
}

.booking-accordion-body {
  display: grid;
  gap: var(--space-4);
  padding: 2px 0 var(--space-4);
}

.compact-form-grid {
  gap: var(--space-3);
}

.calendar-blackout-panel .booking-accordion-trigger strong {
  color: var(--ink);
}

.calendar-release-panel .booking-accordion-trigger strong {
  color: var(--moss);
}

.blackout-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.blackout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 52px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.blackout-row strong,
.blackout-row small {
  display: block;
}

.blackout-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.release-row {
  align-items: center;
}

.release-row .status-pill {
  margin-left: auto;
}

.staff-prospect-form {
  margin-top: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.section-head h3 {
  margin: 0;
}

.section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.dashboard-grid,
.split-view,
.calendar-layout,
.public-layout,
.portal-layout {
  gap: var(--space-4);
}

.customer-list-view,
.employee-list-view,
.master-table-stack,
.customer-panel,
.timeline,
.slot-list,
.worklog-list {
  gap: var(--space-3);
}

.toolbar {
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.input,
.select,
.textarea {
  min-height: 42px;
  border-color: var(--line);
  color: var(--ink);
  background: #ffffff;
  font-size: 0.93rem;
}

.input,
.select {
  padding: 0 12px;
}

.textarea {
  padding: 10px 12px;
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  border-color: #b99a1b;
  box-shadow: 0 0 0 4px rgba(255, 207, 63, 0.22);
}

.form-field {
  gap: var(--space-2);
}

.form-field label,
.form-field span {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 820;
}

.table-scroll {
  border-color: var(--line);
  background: #ffffff;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
}

.data-table th {
  color: var(--muted);
  background: #fbfcfb;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.data-table tr:hover td {
  background: #fbfcfb;
}

.data-table tr.is-selected td {
  background: #edf5f1;
}

.row-button {
  min-height: 42px;
}

.row-button strong,
.person-copy strong,
.person strong {
  color: var(--ink);
  font-weight: 840;
}

.timeline-row,
.appointment-row,
.customer-row,
.alert-row,
.field-row,
.worklog-row {
  border-color: var(--line);
}

.dashboard-appointment-row,
.alert-button {
  margin-inline: calc(-1 * var(--space-2));
  padding-inline: var(--space-2);
  border-radius: var(--radius);
}

.alert-row {
  min-height: 64px;
}

.alert-dot {
  width: 8px;
  height: 8px;
}

.appointment-row {
  min-height: 64px;
  padding: 12px 8px;
}

.appointment-row.birthday-appointment {
  background: linear-gradient(90deg, rgba(255, 227, 240, 0.62), transparent 72%);
}

.birthday-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(231, 138, 174, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 227, 240, 0.42);
}

.birthday-notice small {
  grid-column: 2;
}

.appointment-pills {
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.status-pill.service-ems,
.status-pill.service-lymph-drainage,
.status-pill.service-relax,
.status-pill.service-metabolism,
.status-pill.service-reformer-pilates,
.status-pill.service-category-ems,
.status-pill.service-category-pilates,
.status-pill.service-category-lymph,
.status-pill.service-prospect,
.status-pill.service-color,
.tag.service-color,
.status-pill.suit-size-s,
.status-pill.suit-size-m,
.status-pill.suit-size-l,
.status-pill.suit-size-xl,
.status-pill.source-direct,
.status-pill.source-wellhub,
.status-pill.source-wellpass,
.status-pill.confirmed,
.status-pill.active,
.status-pill.ok,
.status-pill.done,
.status-pill.open,
.status-pill.warning,
.status-pill.birthday,
.status-pill.paused,
.status-pill.moved,
.status-pill.inactive,
.status-pill.cancelled,
.status-pill.danger,
.status-pill.archived {
  border: 1px solid rgba(32, 37, 33, 0.06);
}

.status-pill.service-color,
.tag.service-color {
  border-color: color-mix(in srgb, var(--service-border) 44%, transparent);
}

.calendar-board,
.booking-panel,
.public-layout > .panel,
.portal-layout > .panel {
  box-shadow: var(--shadow-soft);
}

.calendar-grid {
  grid-template-columns: 72px minmax(320px, 1fr);
}

.calendar-head {
  min-height: 48px;
  background: #fbfcfb;
  font-size: 0.8rem;
}

.calendar-time {
  background: #fbfcfb;
  font-size: 0.8rem;
}

.calendar-cell {
  padding: var(--space-2);
}

.slot-button {
  min-height: 54px;
  color: var(--ink-soft);
  border-color: transparent;
  background: #f9fbf9;
  font-size: 0.82rem;
  box-shadow: inset 0 0 0 1px var(--line);
}

.slot-button:not(:disabled):hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-soft);
}

.slot-button.is-selected,
.slot-button.move-slot.is-move-target {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.appointment-pill {
  min-height: 60px;
  border-color: rgba(32, 37, 33, 0.06);
  background: #edf5f1;
}

.appointment-pill:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.selected-slot {
  position: relative;
  gap: var(--space-2);
  min-height: 64px;
  padding: 14px 0 14px 18px;
  border-color: var(--line);
}

.selected-slot::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--line-strong);
}

.selected-slot strong {
  font-weight: 850;
}

.public-month-head .icon-btn,
.public-month-head .icon-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 999px;
  background: #ffffff;
}

.public-month-head .icon-btn:hover,
.public-month-head .icon-button:hover {
  background: var(--teal-soft);
}

.public-day {
  justify-self: center;
  align-self: center;
  width: clamp(52px, 7vw, 64px);
  min-height: auto;
  aspect-ratio: 1;
  padding: 5px;
  border-color: var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.move-month-grid .public-day {
  min-height: auto;
}

.public-day span {
  line-height: 1;
}

.public-day small {
  font-size: 0.66rem;
  line-height: 1.05;
}

.public-day:not(:disabled):hover,
.public-day.is-selected {
  border-color: var(--line-strong);
  background: #fbfcfb;
}

.public-day.is-selected {
  box-shadow: inset 0 0 0 1px var(--sage);
}

.public-day.is-today {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold);
  box-shadow: none;
}

.public-day.is-today small {
  color: var(--ink);
}

.public-day.is-selected.is-today {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: none;
}

.public-day.is-today:disabled {
  opacity: 1;
}

.public-slot {
  min-height: 48px;
  padding: 11px 12px;
}

.public-slot:not(:disabled):hover,
.public-slot.is-selected {
  border-color: var(--line-strong);
  background: #fbfcfb;
}

.public-slot.is-selected {
  box-shadow: inset 0 0 0 1px var(--sage);
}

.public-slot.service-color {
  color: var(--service-text);
  border-color: color-mix(in srgb, var(--service-border) 42%, transparent);
  background: var(--service-bg);
  box-shadow: inset 4px 0 0 var(--service-accent);
}

.public-slot.service-color strong,
.public-slot.service-color small,
.public-slot.service-color .muted {
  color: var(--service-text);
}

.public-slot.service-color:not(:disabled):hover,
.public-slot.service-color.is-selected {
  border-color: var(--service-border);
  background: var(--service-bg);
  box-shadow: inset 4px 0 0 var(--service-accent), 0 0 0 2px rgba(255, 206, 72, 0.22);
}

.context-menu-trigger {
  color: var(--muted);
}

.context-menu-list {
  border-color: var(--line);
  box-shadow: 0 14px 34px rgba(32, 37, 33, 0.14);
}

.modal-scrim {
  background: rgba(29, 37, 32, 0.46);
}

.customer-modal {
  gap: var(--space-4);
  padding: var(--space-5);
  box-shadow: 0 24px 70px rgba(32, 37, 33, 0.22);
}

.modal-head h3 {
  font-size: 1.18rem;
}

.profile-image-field,
.upload-panel,
.pricing-panel,
.mail-preview,
.schedule-row {
  background: #fbfcfb;
}

.quota-meter,
.capacity-meter {
  height: 8px;
  background: #edf2ef;
}

.toast {
  border-color: var(--line);
  box-shadow: 0 18px 44px rgba(32, 37, 33, 0.16);
}

.success-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #b9decf;
  border-radius: var(--radius);
  color: #176343;
  background: var(--green-soft);
  font-weight: 750;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(32, 37, 33, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .split-view,
  .calendar-layout,
  .insight-grid,
  .billing-layout,
  .billing-insights-grid,
  .website-settings-grid,
  .website-benefits-admin-grid,
  .site-social-admin-row,
  .website-popup-admin-grid,
  .public-layout,
  .portal-layout {
    grid-template-columns: 1fr;
  }

  .mail-template-grid {
    grid-template-columns: 1fr;
  }

  .invoice-builder-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
  }

  .sidebar-footer {
    display: none;
  }

  .content {
    padding: 16px;
  }

  .detail-panel {
    position: static;
    max-height: none;
  }

  .topbar,
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-day-tabs {
    width: 100%;
  }

  .day-trainer-tabs {
    max-width: none;
  }

  .dashboard-day-tab {
    flex: 1 1 0;
    justify-content: center;
  }

  .dashboard-slot-agenda.is-week {
    max-height: 70vh;
    padding-right: 0;
  }

  .dashboard-slot-day-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-slot-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
  }

  .dashboard-slot-appointment {
    width: 100%;
  }

  .dashboard-week-shell {
    max-height: 68vh;
    margin-right: -2px;
  }

  .dashboard-week-grid {
    grid-template-columns: 52px repeat(var(--dashboard-day-count), minmax(108px, 1fr));
  }

  .dashboard-week-corner,
  .dashboard-week-head,
  .dashboard-week-time,
  .dashboard-week-cell {
    min-height: 54px;
  }

  .billing-bar-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .billing-bar-row strong {
    text-align: left;
  }

  .billing-donut-row {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-3);
  }

  .insight-card {
    padding: var(--space-4);
  }

  .insight-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .insight-bar-item {
    grid-template-columns: auto minmax(0, 0.85fr) minmax(68px, 1fr) auto;
  }

  .insight-split {
    grid-template-columns: 1fr;
  }

  .birthday-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .birthday-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metrics-grid,
  .form-grid,
  .employee-form,
  .customer-form,
  .quota-grid,
    .master-split-notes,
    .opening-editor-grid,
    .master-form-grid,
    .website-settings-grid,
    .website-benefits-admin-grid,
    .site-social-admin-row,
    .website-popup-admin-grid,
    .site-benefits-editor-list,
    .mail-template-grid,
    .invoice-builder-grid,
    .master-group-nav,
    .suit-stock-grid {
    grid-template-columns: 1fr;
  }

  .invoice-summary-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .master-section-trigger {
    min-height: 58px;
    padding: 12px 16px;
  }

  .master-section-body {
    padding: 0 16px 16px;
  }

  .master-group-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .master-group-tab {
    min-height: 64px;
  }

  .master-note-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-table {
    min-width: 720px;
  }

  .modal-layer {
    align-items: stretch;
    padding: 12px;
  }

  .customer-modal {
    max-height: calc(100vh - 24px);
    padding: 16px;
  }

  .modal-actions {
    bottom: -16px;
    margin: 0 -16px -16px;
    padding: 12px 16px;
  }

  .table-scroll {
    overflow-x: auto;
  }

  .appointment-row,
  .timeline-row {
    grid-template-columns: 58px 42px minmax(0, 1fr);
  }

  .timeline-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .dashboard-appointment-row {
    grid-template-columns: 58px 34px minmax(0, 1fr);
  }

  .worklog-row {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: 44px 1fr 1fr;
  }

  .schedule-row .checkbox-row {
    grid-column: span 2;
  }

  .appointment-row .context-menu,
  .timeline-row .status-pill,
  .worklog-row .status-pill {
    grid-column: 1 / -1;
  }

  .appointment-row .context-menu {
    justify-self: end;
  }

  .appointment-row .context-menu-list {
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 32px));
  }

  .workflow-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    gap: var(--space-3);
    margin-bottom: var(--space-4);
  }

  .topbar h1 {
    font-size: 1.42rem;
  }

  .page-head.is-actions-only {
    align-items: stretch;
    margin-top: 0;
  }

  .page-head.is-actions-only .page-actions {
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
  }

  .page-actions .btn {
    flex: 1 1 148px;
  }

  .metrics-grid {
    gap: 0;
    margin-bottom: var(--space-4);
  }

  .metric-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metric-card:first-child {
    border-top: 0;
  }

  .panel,
  .detail-panel,
  .table-panel,
  .booking-panel {
    padding: var(--space-4);
  }

  .public-month-grid,
  .public-weekdays {
    gap: var(--space-1);
  }

  .public-day {
    width: min(44px, 100%);
    min-height: auto;
    padding: 4px;
  }

  .public-day small {
    font-size: 0.56rem;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.demo-theme-panel {
  margin-bottom: var(--space-5);
}

.retro-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: min(100%, 280px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  cursor: pointer;
}

.retro-theme-switch input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}

.retro-theme-switch strong,
.retro-theme-switch small {
  display: block;
}

.retro-theme-switch strong {
  font-size: 0.9rem;
  font-weight: 850;
}

.retro-theme-switch small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

/* UI polish layer: modern app finish */
body:not([data-retro="1994"]) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 320px),
    var(--paper);
}

body:not([data-retro="1994"]) .content {
  padding: clamp(20px, 3vw, 36px);
}

body:not([data-retro="1994"]) .topbar {
  align-items: center;
  min-height: 54px;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(185, 200, 192, 0.62);
}

body:not([data-retro="1994"]) .topbar h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.72rem);
  line-height: 1.12;
}

body:not([data-retro="1994"]) .topbar-actions {
  gap: 6px;
}

body:not([data-retro="1994"]) .date-chip,
body:not([data-retro="1994"]) .time-chip {
  border-color: rgba(185, 200, 192, 0.68);
  background: rgba(255, 255, 255, 0.72);
}

body:not([data-retro="1994"]) .view-root {
  max-width: 1480px;
}

body:not([data-retro="1994"]) .page-head {
  align-items: flex-start;
  margin-bottom: var(--space-5);
}

body:not([data-retro="1994"]) .page-head h2 {
  font-size: clamp(1.32rem, 2vw, 1.62rem);
  line-height: 1.16;
}

body:not([data-retro="1994"]) .btn,
body:not([data-retro="1994"]) .icon-btn,
body:not([data-retro="1994"]) .icon-button,
body:not([data-retro="1994"]) .slot-button {
  box-shadow: 0 1px 0 rgba(32, 37, 33, 0.03);
}

body:not([data-retro="1994"]) .btn:hover,
body:not([data-retro="1994"]) .icon-btn:hover,
body:not([data-retro="1994"]) .icon-button:hover,
body:not([data-retro="1994"]) .slot-button:hover {
  box-shadow: 0 1px 0 rgba(32, 37, 33, 0.04), 0 10px 22px rgba(83, 103, 94, 0.08);
}

body:not([data-retro="1994"]) .btn:active,
body:not([data-retro="1994"]) .icon-btn:active,
body:not([data-retro="1994"]) .icon-button:active,
body:not([data-retro="1994"]) .slot-button:active {
  transform: translateY(1px);
}

body:not([data-retro="1994"]) .btn.primary {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.42) inset, 0 10px 20px rgba(255, 207, 63, 0.18);
}

body:not([data-retro="1994"]) .panel,
body:not([data-retro="1994"]) .detail-panel,
body:not([data-retro="1994"]) .table-panel,
body:not([data-retro="1994"]) .booking-panel,
body:not([data-retro="1994"]) .customer-modal {
  border-color: rgba(185, 200, 192, 0.78);
  box-shadow: 0 1px 2px rgba(32, 37, 33, 0.035), 0 16px 42px rgba(83, 103, 94, 0.075);
}

body:not([data-retro="1994"]) .panel h3,
body:not([data-retro="1994"]) .detail-panel h3,
body:not([data-retro="1994"]) .booking-panel h3,
body:not([data-retro="1994"]) .table-panel h3 {
  line-height: 1.18;
}

body:not([data-retro="1994"]) .dashboard-card-head {
  gap: var(--space-4);
}

body:not([data-retro="1994"]) .metrics-grid {
  border-color: rgba(185, 200, 192, 0.72);
}

body:not([data-retro="1994"]) .metric-card[type="button"]:hover,
body:not([data-retro="1994"]) .metric-card[type="button"]:focus-visible {
  background: rgba(255, 255, 255, 0.58);
}

body:not([data-retro="1994"]) .input,
body:not([data-retro="1994"]) .select,
body:not([data-retro="1994"]) .textarea {
  border-color: rgba(185, 200, 192, 0.86);
  background: rgba(255, 255, 255, 0.94);
}

body:not([data-retro="1994"]) .input:focus-visible,
body:not([data-retro="1994"]) .select:focus-visible,
body:not([data-retro="1994"]) .textarea:focus-visible {
  border-color: #d5aa00;
  box-shadow: 0 0 0 4px rgba(255, 207, 63, 0.18);
  outline: none;
}

body:not([data-retro="1994"]) .table-scroll {
  border-color: rgba(185, 200, 192, 0.78);
  background: #ffffff;
}

body:not([data-retro="1994"]) .data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
}

body:not([data-retro="1994"]) .data-table tbody tr:hover td {
  background: #fbfcfb;
}

body:not([data-retro="1994"]) .customer-row,
body:not([data-retro="1994"]) .alert-row,
body:not([data-retro="1994"]) .field-row,
body:not([data-retro="1994"]) .appointment-row,
body:not([data-retro="1994"]) .timeline-row {
  transition: background 0.16s ease, border-color 0.16s ease;
}

body:not([data-retro="1994"]) .alert-button:hover,
body:not([data-retro="1994"]) .alert-button:focus-visible,
body:not([data-retro="1994"]) .dashboard-appointment-row:hover,
body:not([data-retro="1994"]) .appointment-row:hover {
  background: #f8faf8;
}

body:not([data-retro="1994"]) .selected-slot {
  border-color: rgba(185, 200, 192, 0.74);
  background: #fbfcfb;
}

body:not([data-retro="1994"]) .modal-scrim {
  background: rgba(37, 45, 40, 0.46);
  backdrop-filter: blur(4px);
}

body:not([data-retro="1994"]) .modal-actions {
  background: rgba(255, 255, 255, 0.92);
}

body:not([data-retro="1994"]) .clock-focus,
body:not([data-retro="1994"]) .clock-stat-grid div {
  padding-left: var(--space-4);
}

@media (max-width: 760px) {
  body:not([data-retro="1994"]) .content {
    padding: var(--space-4);
  }

  body:not([data-retro="1994"]) .topbar {
    align-items: flex-start;
    padding-bottom: var(--space-3);
  }

  body:not([data-retro="1994"]) .topbar-actions {
    width: 100%;
  }
}

body[data-retro="1994"] {
  color-scheme: light;
  --ink: #000000;
  --ink-soft: #000080;
  --muted: #000080;
  --line: #000000;
  --line-strong: #000000;
  --paper: #008080;
  --paper-soft: #ffffcc;
  --panel: #c0c0c0;
  --teal: #000080;
  --teal-soft: #00ffff;
  --sage: #c0c0c0;
  --sage-dark: #000080;
  --sage-deep: #000080;
  --coral: #ff00ff;
  --coral-soft: #ffccff;
  --gold: #ffff00;
  --gold-soft: #ffff99;
  --green: #008000;
  --green-soft: #ccffcc;
  --blue: #0000ff;
  --blue-soft: #ccccff;
  --danger: #ff0000;
  --danger-soft: #ffcccc;
  --focus: #ff00ff;
  --shadow: none;
  --shadow-soft: none;
  --radius: 0;
  background-color: #008080;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 16px);
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  -webkit-font-smoothing: auto;
  text-rendering: auto;
}

body[data-retro="1994"]::after {
  content: "Best viewed in 800x600";
  position: fixed;
  right: 8px;
  bottom: 8px;
  z-index: 9999;
  padding: 3px 7px;
  border: 2px outset #ffffff;
  background: #ffff00;
  color: #000080;
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  font-weight: 700;
}

body[data-retro="1994"] *,
body[data-retro="1994"] *::before,
body[data-retro="1994"] *::after {
  border-radius: 0 !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
}

body[data-retro="1994"] .content {
  background: transparent;
}

body[data-retro="1994"] .sidebar {
  color: #ffff00;
  border-right: 5px ridge #ffffff;
  background: #000080;
}

body[data-retro="1994"] .brand img {
  image-rendering: pixelated;
  filter: none;
}

body[data-retro="1994"] .brand-copy,
body[data-retro="1994"] .nav-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

body[data-retro="1994"] .nav-list {
  gap: 6px;
}

body[data-retro="1994"] .nav-item,
body[data-retro="1994"] .role-select,
body[data-retro="1994"] .btn,
body[data-retro="1994"] .icon-btn,
body[data-retro="1994"] .icon-button,
body[data-retro="1994"] .slot-button,
body[data-retro="1994"] .public-day,
body[data-retro="1994"] .public-slot,
body[data-retro="1994"] .tab-button,
body[data-retro="1994"] .context-menu-trigger,
body[data-retro="1994"] .booking-mode-option,
body[data-retro="1994"] .booking-accordion-trigger,
body[data-retro="1994"] .row-button {
  border: 3px outset #ffffff;
  background: #c0c0c0;
  color: #000080;
  text-decoration: none;
}

body[data-retro="1994"] .nav-item:hover,
body[data-retro="1994"] .nav-item.is-active,
body[data-retro="1994"] .btn.primary,
body[data-retro="1994"] .slot-button.is-selected,
body[data-retro="1994"] .public-day.is-selected,
body[data-retro="1994"] .public-slot.is-selected,
body[data-retro="1994"] .booking-mode-option.is-active {
  border-style: inset;
  background: #ffff00;
  color: #000000;
}

body[data-retro="1994"] .btn:active,
body[data-retro="1994"] .slot-button:active,
body[data-retro="1994"] .public-slot:active,
body[data-retro="1994"] .context-menu-trigger:active {
  border-style: inset;
}

body[data-retro="1994"] .topbar,
body[data-retro="1994"] .panel,
body[data-retro="1994"] .detail-panel,
body[data-retro="1994"] .table-panel,
body[data-retro="1994"] .booking-panel,
body[data-retro="1994"] .modal-layer .customer-modal,
body[data-retro="1994"] .selected-slot,
body[data-retro="1994"] .customer-modal,
body[data-retro="1994"] .context-menu-list {
  border: 4px ridge #ffffff;
  background: #c0c0c0;
  color: #000000;
}

body[data-retro="1994"] .topbar {
  padding: 12px;
  background: #ffff00;
}

body[data-retro="1994"] .topbar h1,
body[data-retro="1994"] h2,
body[data-retro="1994"] h3 {
  color: #000080;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  text-decoration: underline;
}

body[data-retro="1994"] .metric-card {
  margin: 2px;
  border: 3px outset #ffffff;
  background: #ffffff;
  color: #000000;
}

body[data-retro="1994"] .metric-card::before,
body[data-retro="1994"] .selected-slot::before,
body[data-retro="1994"] .loading-tag::before {
  display: none;
}

body[data-retro="1994"] .date-chip,
body[data-retro="1994"] .time-chip,
body[data-retro="1994"] .api-chip,
body[data-retro="1994"] .status-pill,
body[data-retro="1994"] .tag,
body[data-retro="1994"] .role-badge {
  border: 2px outset #ffffff;
  background: #ffff00;
  color: #000080;
}

body[data-retro="1994"] .status-pill.danger,
body[data-retro="1994"] .status-pill.warning,
body[data-retro="1994"] .metric-card.danger .status-pill {
  background: #ff0000;
  color: #ffffff;
}

body[data-retro="1994"] .status-pill.ok,
body[data-retro="1994"] .api-chip.is-ok {
  background: #00ff00;
  color: #000000;
}

body[data-retro="1994"] input,
body[data-retro="1994"] select,
body[data-retro="1994"] textarea,
body[data-retro="1994"] .input,
body[data-retro="1994"] .select,
body[data-retro="1994"] .textarea {
  border: 3px inset #ffffff;
  background: #ffffff;
  color: #000000;
}

body[data-retro="1994"] .data-table {
  border-collapse: separate;
  border-spacing: 2px;
  background: #000000;
}

body[data-retro="1994"] .data-table th {
  border: 2px outset #ffffff;
  background: #000080;
  color: #ffffff;
}

body[data-retro="1994"] .data-table td {
  border: 2px inset #ffffff;
  background: #ffffff;
  color: #000000;
}

body[data-retro="1994"] .data-table tr.is-selected td,
body[data-retro="1994"] .customer-row.is-selected,
body[data-retro="1994"] .schedule-row {
  background: #ffffcc;
}

body[data-retro="1994"] .calendar-grid {
  gap: 3px;
  padding: 4px;
  border: 4px ridge #ffffff;
  background: #000000;
}

body[data-retro="1994"] .calendar-head,
body[data-retro="1994"] .calendar-time,
body[data-retro="1994"] .calendar-cell,
body[data-retro="1994"] .public-month-grid,
body[data-retro="1994"] .suggestion-panel,
body[data-retro="1994"] .master-settings,
body[data-retro="1994"] .pricing-panel {
  border: 2px inset #ffffff;
  background: #ffffff;
  color: #000000;
}

body[data-retro="1994"] .appointment-row,
body[data-retro="1994"] .dashboard-appointment-row,
body[data-retro="1994"] .timeline-row,
body[data-retro="1994"] .alert-row,
body[data-retro="1994"] .field-row,
body[data-retro="1994"] .appointment-pill,
body[data-retro="1994"] .customer-search-result {
  border: 2px outset #ffffff;
  background: #ffffff;
  color: #000000;
}

body[data-retro="1994"] .appointment-avatar,
body[data-retro="1994"] .summary-avatar {
  border: 2px inset #ffffff;
  background: #000080;
  color: #ffff00;
}

body[data-retro="1994"] .quota-meter,
body[data-retro="1994"] .capacity-meter {
  border: 2px inset #ffffff;
  background: #000000;
}

body[data-retro="1994"] .quota-meter span,
body[data-retro="1994"] .capacity-meter span {
  background: #00ff00;
}

body[data-retro="1994"] .modal-scrim {
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 128, 0.75) 0 8px, rgba(0, 128, 128, 0.75) 8px 16px);
}

body[data-retro="1994"] .retro-theme-switch {
  border: 3px inset #ffffff;
  background: #ffff00;
}
