:root {
  color-scheme: light;
  --bg: #f4f5f1;
  --ink: #18201f;
  --muted: #66706d;
  --line: #d7ddd8;
  --surface: #ffffff;
  --surface-2: #eef4f2;
  --accent: #0b7f78;
  --accent-dark: #065a55;
  --danger: #b83232;
  --shadow: 0 16px 40px rgba(19, 34, 32, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.location-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #102321;
}

.location-picker {
  width: min(860px, 100%);
  color: #fff;
}

.location-picker h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.location-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.location-card {
  min-height: 180px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.location-logo-frame {
  display: grid;
  aspect-ratio: 900 / 430;
  min-height: 112px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
  padding: 14px;
}

.location-logo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.location-card strong {
  align-self: end;
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
}

.location-card span {
  color: var(--muted);
  font-weight: 800;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(16px, 4vw, 42px);
  background: #102321;
  color: #fff;
}

.eyebrow {
  margin: 0 0 4px;
  color: #a8c8c4;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h2 {
  font-size: 1.15rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.active-location-logo {
  width: 86px;
  height: 54px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  padding: 7px;
}

.icon-button,
.text-button {
  min-height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
}

.icon-button {
  display: grid;
  width: 48px;
  place-items: center;
  font-size: 1.5rem;
}

.text-button {
  padding: 0 16px;
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px clamp(12px, 3vw, 28px) 36px;
}

.date-band,
.tabs,
.panel {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.date-band {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  align-items: end;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

label,
.payment-group {
  display: grid;
  gap: 8px;
}

label span,
legend {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 127, 120, 0.16);
}

.selected-worker {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--accent-dark);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line);
}

.tab {
  min-height: 54px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.tab.is-active {
  color: var(--accent-dark);
  box-shadow: inset 0 -4px 0 var(--accent);
}

.panel {
  display: none;
  padding: 18px;
}

.panel.is-active {
  display: block;
}

.lineup-layout,
.client-layout,
.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
  gap: 16px;
}

.lineup-section,
.setup-block {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.master-schedule-section {
  margin-bottom: 16px;
}

.quick-book-form {
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) minmax(160px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(8, 117, 111, 0.14);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.quick-book-form label {
  display: grid;
  gap: 6px;
}

.quick-book-form label span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.master-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.master-staff-card {
  display: grid;
  gap: 12px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 12px;
}

.master-staff-card.is-open {
  background: #f8fbfa;
}

.master-staff-card.is-busy {
  border-color: rgba(42, 100, 177, 0.28);
}

.master-staff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.master-staff-head > span {
  border-radius: 999px;
  background: #eef3f1;
  color: var(--muted);
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.master-staff-card.is-open .master-staff-head > span {
  background: #e9f7ef;
  color: #247245;
}

.master-staff-card.is-busy .master-staff-head > span {
  background: #edf3ff;
  color: #2f5c9f;
}

.master-now-next {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.master-staff-times {
  display: grid;
  gap: 8px;
}

.master-staff-times p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.master-time-row,
.master-day-row {
  display: grid;
  gap: 3px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
}

.master-time-row.is-booked,
.master-day-row.is-booked {
  border-left-color: #238a52;
  background: #f0faf4;
}

.master-time-row.is-finished {
  border-left-color: #3567b7;
  background: #f2f6ff;
}

.master-time-row strong,
.master-day-row strong {
  color: var(--accent-dark);
  font-size: 0.95rem;
}

.master-time-row span,
.master-day-row span {
  color: var(--ink);
  font-weight: 900;
}

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

.master-day-list h3 {
  margin: 0;
  font-size: 1rem;
}

#masterAppointmentList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#settingsPanel.is-locked .setup-block {
  opacity: 0.62;
}

#settingsPanel.is-locked::before {
  content: "Boss passcode required to change employees or services.";
  display: block;
  margin-bottom: 14px;
  border: 1px solid rgba(8, 117, 111, 0.16);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent-dark);
  padding: 12px 14px;
  font-weight: 900;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.secondary-button,
.count-pill {
  min-height: 40px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent-dark);
  padding: 0 12px;
  font-weight: 900;
}

.count-pill {
  display: inline-flex;
  align-items: center;
}

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

.employee-card,
.worker-button,
.lineup-person {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.employee-card {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 14px;
}

.employee-card.is-selected {
  border-color: var(--accent);
  background: var(--surface-2);
}

.employee-badge {
  display: inline-grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background: var(--employee-color);
  color: #fff;
  padding: 8px;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.employee-badge-small {
  width: 58px;
  height: 58px;
  font-size: 0.78rem;
}

.employee-badge-tiny {
  width: 42px;
  height: 42px;
  font-size: 0.68rem;
}

.employee-card strong {
  font-size: 1.2rem;
}

.employee-card small {
  color: var(--muted);
  font-weight: 800;
}

.lineup-list {
  display: grid;
  gap: 10px;
}

.lineup-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.lineup-person {
  min-height: 74px;
  display: grid;
  grid-template-columns: 36px 64px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-align: left;
}

.lineup-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.lineup-actions {
  display: flex;
  gap: 6px;
}

.lineup-actions button,
.delete-button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent-dark);
  font-weight: 900;
}

.lineup-actions button:last-child,
.delete-button {
  background: #f8e8e8;
  color: var(--danger);
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-action {
  min-height: 38px;
  white-space: nowrap;
}

.empty-lineup,
.empty-state {
  color: var(--muted);
  text-align: center;
}

.empty-lineup {
  display: grid;
  min-height: 110px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
}

.client-layout {
  grid-template-columns: 270px minmax(0, 1fr);
}

.worker-rail {
  display: grid;
  align-content: start;
  gap: 10px;
}

.worker-button {
  min-height: 76px;
  display: grid;
  grid-template-columns: 28px 64px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-align: left;
}

.worker-button > span:first-child {
  color: var(--muted);
  font-weight: 900;
}

.row-action {
  color: var(--muted);
  font-weight: 900;
}

.worker-button.is-active {
  border-color: var(--accent);
  background: var(--surface-2);
}

.visit-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.form-title {
  padding: 10px 0 0;
}

.wide {
  grid-column: span 2;
}

.payment-group {
  grid-column: span 2;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-group legend {
  grid-column: 1 / -1;
  padding: 0;
}

.payment-group label {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: #fff;
}

.payment-group input {
  width: 20px;
  min-height: 20px;
}

.total-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface-2);
}

.employee-summary {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.employee-summary h3 {
  margin: 0;
  font-size: 1rem;
}

.money-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.settlement-line {
  margin: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent-dark);
  padding: 12px;
  font-weight: 900;
}

.employee-visit-list {
  display: grid;
  gap: 10px;
}

.employee-visit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 12px;
}

.employee-visit-row.is-editing {
  border-color: var(--accent);
  background: var(--surface-2);
}

.employee-visit-row strong,
.employee-visit-row span {
  display: block;
}

.employee-visit-row span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.total-strip span {
  display: block;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.total-strip strong {
  display: block;
  margin-top: 2px;
  font-size: 1.8rem;
}

.primary-button,
.setup-block button {
  min-height: 52px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 0 22px;
  font-weight: 900;
}

.primary-button:disabled {
  background: #aab4b1;
  cursor: not-allowed;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  min-width: 0;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fff;
}

.metric span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: #fff;
}

.boss-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 16px;
  margin-bottom: 16px;
}

.boss-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.danger-soft {
  border-color: rgba(174, 54, 54, 0.24);
  background: #fff7f7;
  color: #9f2f2f;
}

.danger-soft:hover {
  background: #ffecec;
}

.boss-lock {
  display: grid;
  min-height: 520px;
  place-items: center;
}

.entry-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(198, 164, 93, 0.16), transparent 32%),
    #102321;
}

.entry-lock-box {
  border-color: rgba(255, 255, 255, 0.16);
}

.entry-lock-box h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.boss-lock-box {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.pin-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pin-display span {
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.pin-display span.is-filled {
  background: var(--accent);
  border-color: var(--accent);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.keypad button {
  min-height: 70px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
}

.keypad button:active {
  background: #dfe9e6;
}

.pin-message {
  min-height: 22px;
  margin: 0;
  color: var(--danger);
  font-weight: 900;
  text-align: center;
}

.boss-summary {
  margin-bottom: 0;
}

.location-summary-list {
  display: grid;
  gap: 10px;
}

.location-summary-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.location-summary-row span {
  color: var(--muted);
  font-weight: 800;
}

.boss-table {
  margin-top: 16px;
}

.boss-chart-section {
  margin-bottom: 16px;
}

.boss-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.boss-therapist-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.boss-therapist-card.is-free {
  border-color: rgba(11, 127, 120, 0.4);
  background: #f3fbf8;
}

.boss-therapist-card.is-busy {
  border-color: rgba(184, 50, 50, 0.28);
  background: #fff7f7;
}

.boss-therapist-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 10px;
}

.boss-therapist-head strong {
  display: block;
  font-size: 1.1rem;
}

.boss-therapist-head span {
  color: var(--muted);
  font-weight: 900;
}

.is-free .boss-therapist-head span {
  color: var(--accent-dark);
}

.is-busy .boss-therapist-head span {
  color: var(--danger);
}

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

.boss-appointment-list p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.boss-appointment-row {
  display: grid;
  gap: 3px;
  border-radius: 8px;
  background: var(--surface-2);
  padding: 9px;
}

.boss-appointment-row strong {
  color: var(--accent-dark);
}

.boss-appointment-row span {
  color: var(--muted);
  font-weight: 800;
}

.boss-report {
  margin-top: 16px;
}

.report-picker {
  min-width: 180px;
}

.report-picker select {
  min-height: 42px;
}

.report-table {
  margin-top: 14px;
}

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

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.setup-grid {
  grid-template-columns: repeat(2, 1fr);
}

.pill-list {
  display: grid;
  gap: 8px;
  min-height: 38px;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px 8px 12px;
  color: var(--ink);
  font-weight: 800;
}

.pill > span {
  min-width: 0;
}

.pill button {
  min-height: 32px;
  border: 1px solid rgba(174, 54, 54, 0.24);
  border-radius: 8px;
  background: #fff7f7;
  color: #9f2f2f;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.pill button:hover {
  background: #ffecec;
  border-color: rgba(174, 54, 54, 0.4);
}

.idle-board {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #102321;
  color: #fff;
}

.edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(16, 35, 33, 0.72);
  padding: 22px;
}

.edit-card {
  width: min(980px, 100%);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.edit-card .eyebrow {
  color: var(--accent-dark);
}

.edit-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.edit-wide {
  grid-column: span 2;
}

.edit-payment {
  grid-column: span 2;
}

.edit-actions {
  margin-top: 2px;
}

.edit-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-buttons .delete-button {
  width: auto;
  padding: 0 16px;
}

.idle-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.idle-board-body {
  overflow: auto;
  padding: clamp(18px, 4vw, 44px);
}

.idle-board-grid {
  display: grid;
  gap: 14px;
  width: min(1060px, 100%);
  margin: 0 auto;
}

.idle-appointment {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 108px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 18px;
  box-shadow: var(--shadow);
}

.idle-appointment.is-booked {
  border: 2px solid rgba(11, 127, 120, 0.34);
}

.idle-time {
  display: grid;
  gap: 4px;
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

.idle-time strong {
  color: var(--accent-dark);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.idle-time span {
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 900;
}

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

.idle-detail strong {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.idle-detail span {
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 800;
}

.idle-empty {
  display: grid;
  min-height: 420px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #d8e5e2;
  text-align: center;
}

.idle-empty h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.idle-empty p {
  margin: 0;
  color: #a8c8c4;
  font-weight: 800;
}

.station-booking-panel {
  display: grid;
  gap: 16px;
  width: min(1060px, 100%);
  margin: 18px auto 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 18px;
  box-shadow: var(--shadow);
}

.station-booking-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.station-booking-form label {
  display: grid;
  gap: 6px;
}

.station-booking-form label span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.station-booking-form input,
.station-booking-form select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
  background: #fbfcfb;
  color: var(--ink);
}

.station-booking-form button {
  align-self: end;
}

.station-booking-list {
  display: grid;
  gap: 10px;
}

.station-booking-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 12px;
}

.station-booking-row strong,
.station-booking-row span {
  display: block;
}

.station-booking-row span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 920px) {
  .location-cards,
  .lineup-layout,
  .client-layout,
  .setup-grid,
  .summary-grid,
  .money-grid,
  .boss-chart-grid,
  .boss-layout,
  .quick-book-form,
  .master-time-grid,
  #masterAppointmentList,
  .station-booking-form,
  .edit-form-grid,
  .location-summary-row {
    grid-template-columns: 1fr;
  }

  .edit-wide,
  .edit-payment {
    grid-column: auto;
  }

  .worker-rail {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: max(18px, env(safe-area-inset-top));
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .text-button {
    flex: 1;
  }

  .date-band,
  .visit-form,
  .employee-grid,
  .worker-rail {
    grid-template-columns: 1fr;
  }

  .wide,
  .payment-group,
  .edit-wide,
  .edit-payment {
    grid-column: auto;
  }

  .edit-overlay {
    align-items: start;
    padding: 12px;
  }

  .tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel {
    padding: 12px;
  }

  .idle-board-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .idle-appointment {
    grid-template-columns: 1fr;
  }

  .station-booking-row {
    grid-template-columns: 1fr;
  }

  .idle-time {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 12px;
  }
}

@media (max-width: 520px) {
  .total-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .lineup-item {
    grid-template-columns: 1fr;
  }
}

/* Professional polish layer */
:root {
  --bg: #f6f7f4;
  --ink: #17201e;
  --muted: #6d7673;
  --line: #dfe5e0;
  --surface: #ffffff;
  --surface-2: #f2f7f5;
  --accent: #08756f;
  --accent-dark: #064f4b;
  --danger: #b73333;
  --gold: #c6a45d;
  --shadow: 0 18px 46px rgba(20, 38, 35, 0.11);
  --soft-shadow: 0 8px 22px rgba(20, 38, 35, 0.08);
}

body {
  background:
    linear-gradient(180deg, #eef3f0 0, var(--bg) 220px),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

button:active {
  transform: translateY(1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(8, 117, 111, 0.22);
  outline-offset: 2px;
}

.location-screen,
.app-header,
.idle-board {
  background: #102321;
}

.location-picker {
  width: min(980px, 100%);
}

.location-picker h1 {
  max-width: 780px;
  line-height: 1.02;
}

.location-card {
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.location-card:hover,
.employee-card:hover,
.worker-button:hover,
.lineup-person:hover,
.boss-therapist-card:hover {
  border-color: rgba(8, 117, 111, 0.44);
  box-shadow: var(--soft-shadow);
}

.location-logo-frame {
  background: #fbfcfb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.app-header {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 34px rgba(0, 0, 0, 0.18);
}

.eyebrow {
  color: #bfd5d1;
  letter-spacing: 0.08em;
}

.active-location-logo {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.icon-button,
.text-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
}

.icon-button:hover,
.text-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.app-shell {
  padding-top: 22px;
}

.date-band,
.tabs,
.panel {
  border: 1px solid rgba(223, 229, 224, 0.92);
  box-shadow: var(--soft-shadow);
}

.date-band {
  border-radius: 8px 8px 0 0;
}

.tabs {
  box-shadow: none;
}

.tab {
  border-right: 1px solid var(--line);
  font-size: 0.95rem;
}

.tab:last-child {
  border-right: 0;
}

.tab:hover {
  background: #f7faf9;
  color: var(--accent-dark);
}

.panel {
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.lineup-section,
.setup-block,
.employee-summary,
.boss-lock-box {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), var(--soft-shadow);
}

input,
select {
  border-color: #d9e1dc;
  background-color: #fbfcfb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

label span,
legend {
  letter-spacing: 0.01em;
}

.primary-button,
.setup-block > button[type="submit"] {
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(8, 117, 111, 0.22);
}

.primary-button:hover,
.setup-block > button[type="submit"]:hover {
  background: #096b66;
}

.secondary-button,
.count-pill {
  border: 1px solid rgba(8, 117, 111, 0.12);
}

.employee-card,
.worker-button,
.lineup-person,
.boss-therapist-card,
.metric,
.location-summary-row,
.idle-appointment {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.employee-card.is-selected,
.worker-button.is-active {
  box-shadow: inset 0 0 0 1px rgba(8, 117, 111, 0.18), var(--soft-shadow);
}

.employee-badge {
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.22),
    0 10px 22px rgba(20, 38, 35, 0.16);
}

.payment-group label {
  background: #fbfcfb;
}

.payment-group label:has(input:checked) {
  border-color: var(--accent);
  background: var(--surface-2);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(8, 117, 111, 0.12);
}

.payment-group label:has(input:disabled) {
  opacity: 0.58;
}

.total-strip,
.settlement-line,
.boss-appointment-row {
  border: 1px solid rgba(8, 117, 111, 0.1);
}

.metric strong,
.total-strip strong {
  color: var(--ink);
}

.table-wrap {
  background: #fff;
  box-shadow: var(--soft-shadow);
}

th {
  background: #f8faf8;
  letter-spacing: 0.04em;
}

tbody tr:hover td {
  background: #fbfdfc;
}

.delete-button {
  border: 1px solid rgba(184, 50, 50, 0.14);
}

.boss-therapist-card.is-free {
  background: #f2fbf7;
}

.boss-therapist-card.is-busy {
  background: #fff6f6;
}

.pin-display span,
.keypad button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.keypad button:hover {
  background: #e7f0ed;
}

.idle-board-header {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.idle-appointment {
  border: 1px solid rgba(255, 255, 255, 0.72);
}
