:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-card: #252525;
  --text-primary: #f5f0e8;
  --text-muted: #a89f94;
  --accent: #dbaa9f;
  --accent-hover: #e6bdb3;
  --border-color: #3a3a3a;
  --danger: #e74c3c;
  --success: #27ae60;
  --btn-on-accent: #302532;
  --accent-soft: rgba(219, 170, 159, 0.18);
  color-scheme: only dark;
}

html {
  background-color: var(--bg-primary);
}

/* Soft graphite + rose gold — no pure white, easier on the eyes */
html.theme-light {
  --bg-primary: #efe8e4;
  --bg-secondary: #e5dbd6;
  --bg-card: #f6f1ed;
  --text-primary: #322a2f;
  --text-muted: #7d7074;
  --accent: #b8897e;
  --accent-hover: #a67469;
  --border-color: #d4c8c3;
  --danger: #c05a52;
  --success: #3d8f6a;
  --btn-on-accent: #302532;
  --accent-soft: rgba(184, 137, 126, 0.16);
  color-scheme: only light;
  forced-color-adjust: none;
  background-color: var(--bg-primary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

.text-muted {
  color: var(--text-muted) !important;
}

.card,
.session-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
}

.form-control {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.form-control:focus {
  background-color: var(--bg-secondary);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem var(--accent-soft);
}

.form-label {
  color: var(--text-muted);
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--btn-on-accent);
  font-weight: 600;
  min-height: 44px;
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--btn-on-accent);
}

.btn-outline-accent {
  border-color: var(--accent);
  color: var(--accent);
  min-height: 44px;
}

.btn-outline-accent:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--btn-on-accent);
}

.badge-accent {
  background-color: var(--accent-soft);
  color: var(--accent);
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
}

/* Client mobile layout */
.client-app {
  min-height: 100vh;
  padding-bottom: 80px;
}

.client-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.875rem 0;
}

.client-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  color: var(--accent);
  text-decoration: none;
  border-radius: 0.75rem;
  overflow: hidden;
  background: transparent;
  border: none;
  padding: 0;
}

.client-brand:hover {
  opacity: 0.9;
}

.client-brand-icon {
  width: 2.65rem;
  height: 2.65rem;
  display: block;
  object-fit: cover;
  border-radius: 0.75rem;
}

.client-main {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.client-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  z-index: 100;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  min-width: 72px;
  border: none;
  background: transparent;
}

.bottom-nav-item .admin-nav-svg {
  margin-bottom: 0.1rem;
}

.bottom-nav-item.active {
  color: var(--accent);
}

.bottom-nav-item:hover {
  color: var(--accent);
}

/* Admin layout */
.admin-app {
  display: flex;
  min-height: 100vh;
}

.admin-mobile-app {
  flex-direction: column;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.admin-main-mobile {
  flex: 1;
  padding: 0.75rem 1rem 1rem;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.admin-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 0.45rem 0 calc(0.45rem + env(safe-area-inset-bottom));
  z-index: 200;
}

.admin-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 68px;
  padding: 0.25rem 0.35rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.68rem;
  line-height: 1.1;
  cursor: pointer;
}

.admin-bottom-nav-item.active {
  color: var(--accent);
}

.admin-bottom-nav-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.admin-more-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 210;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.admin-more-backdrop.open {
  opacity: 1;
}

.admin-more-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom));
  z-index: 220;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-radius: 16px 16px 0 0;
  padding: 0.5rem 1rem 1rem;
  transform: translateY(110%);
  transition: transform 0.22s ease;
}

.admin-more-sheet.open {
  transform: translateY(0);
}

.admin-more-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-color);
  margin: 0.25rem auto 0.85rem;
}

.admin-more-sheet-links {
  display: grid;
  gap: 0.5rem;
}

.admin-more-sheet-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.75rem;
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.admin-more-sheet-link:hover {
  color: var(--accent);
}

.admin-more-push {
  justify-content: space-between;
  cursor: default;
}

.admin-more-push-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.admin-more-push-copy small {
  font-weight: 400;
  font-size: 0.75rem;
}

.admin-more-sheet-icon {
  font-size: 1.25rem;
}

.admin-page-mobile-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.admin-schedule-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-schedule-top {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-schedule-month-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
}

.admin-schedule-month-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.admin-schedule-nav-btn,
.admin-schedule-today-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.75rem;
  white-space: nowrap;
}

.admin-schedule-nav-btn {
  width: 32px;
  padding: 0;
}

.admin-schedule-nav-btn:hover,
.admin-schedule-today-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.admin-schedule-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-schedule-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.admin-schedule-chip,
.client-schedule-today-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-schedule-chip-accent {
  border-color: var(--accent);
  background: rgba(201, 169, 110, 0.15);
  color: var(--accent);
}

.admin-schedule-count {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.admin-schedule-count-detail {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

.admin-kind-filter {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-kind-filter.active {
  border-color: var(--accent);
  background: rgba(201, 169, 110, 0.15);
  color: var(--accent);
}

.client-schedule-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.client-schedule-top {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.client-schedule-month-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.4rem;
}

.client-schedule-month-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.client-schedule-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
}

.client-calendar-2week {
  margin-top: 0.15rem;
}

.admin-calendar-2week {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.admin-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.25rem;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: lowercase;
}

.admin-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.admin-calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
}

.admin-calendar-day:hover {
  background: var(--bg-card);
}

.admin-calendar-day.is-today .admin-calendar-day-num {
  color: var(--accent);
  font-weight: 700;
}

.admin-calendar-day.is-selected {
  background: var(--accent);
  color: var(--btn-on-accent);
}

.admin-calendar-day.is-selected.is-today .admin-calendar-day-num {
  color: var(--btn-on-accent);
}

.admin-calendar-day-dot {
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.admin-calendar-day.is-selected .admin-calendar-day-dot {
  background: var(--btn-on-accent);
}

.admin-schedule-day-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.admin-schedule-day-date {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.admin-schedule-day-weekday {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-hourly-timeline {
  max-height: none;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
}

.admin-schedule-alert {
  margin-bottom: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
}

@media (min-width: 769px) {
  .admin-main-mobile {
    max-width: 720px;
    padding: 1rem 1.25rem 1.25rem;
  }

  .admin-bottom-nav {
    max-width: 640px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
  }

  .admin-more-sheet {
    max-width: 640px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(110%);
  }

  .admin-more-sheet.open {
    transform: translateX(-50%) translateY(0);
  }
}

.admin-sidebar {
  width: 240px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
}

.admin-brand {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  display: block;
  color: var(--text-primary);
  text-decoration: none;
}

.admin-brand:hover {
  color: var(--accent);
}

.admin-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.admin-nav li {
  margin-bottom: 0.5rem;
}

.admin-nav a {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
}

.admin-nav a:hover {
  background: var(--bg-card);
  color: var(--accent);
}

.admin-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-header {
  padding: 1.5rem 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.admin-page-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.admin-main {
  padding: 1.5rem 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 768px) {
  .admin-app {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .admin-nav li {
    margin-bottom: 0;
  }
}

.admin-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-primary);
}

.admin-login-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: min(100% - 2rem, 420px);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 0;
  box-sizing: border-box;
}

.admin-login-card {
  width: 100%;
}

.admin-login-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  padding-top: calc(0.875rem + env(safe-area-inset-top));
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.admin-login-header-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.admin-login-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.admin-login-home-link .admin-nav-svg {
  width: 16px;
  height: 16px;
}

.admin-login-home-link:hover,
.admin-login-home-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(201, 169, 110, 0.08);
}

.client-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
}

.client-theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
}

.session-list {
  padding-bottom: 0.5rem;
}

.session-time .session-date {
  font-weight: 600;
  color: var(--accent);
}

.session-time .session-hours {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.session-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.badge-group {
  background: rgba(201, 169, 110, 0.15);
  color: var(--accent);
}

.badge-personal {
  background: rgba(39, 174, 96, 0.15);
  color: var(--success);
}

.badge-booked {
  background: rgba(201, 169, 110, 0.25);
  color: var(--accent);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.badge-muted {
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.session-card-past {
  opacity: 0.75;
}

/* Profile: unified account card */
.profile-account-card .card-body {
  padding: 1.1rem 1.15rem;
}

.profile-account-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.profile-account-name {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--text-primary);
}

.profile-account-login {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.profile-account-status {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  line-height: 1;
}

.profile-account-status--ok {
  background: rgba(39, 174, 96, 0.14);
  color: var(--success);
}

.profile-account-status--wait {
  background: rgba(201, 169, 110, 0.16);
  color: var(--accent);
}

.profile-account-hint {
  margin-top: -0.35rem;
}

.profile-account-actions {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.profile-account-actions .btn {
  justify-self: start;
}

/* Bookings history: compact elegant list */
.booking-history {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
}

.booking-history-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--border-color);
}

.booking-history-row:last-child {
  border-bottom: 0;
}

.booking-history-main {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.booking-history-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.booking-history-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.booking-history-status {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.alert-success {
  background: rgba(39, 174, 96, 0.15);
  border-color: rgba(39, 174, 96, 0.3);
  color: var(--success);
}

.alert-danger {
  background: rgba(231, 76, 60, 0.15);
  border-color: rgba(231, 76, 60, 0.3);
  color: var(--danger);
}

.alert-soft {
  background: rgba(219, 170, 159, 0.14);
  border: 1px solid rgba(219, 170, 159, 0.35);
  color: var(--text-primary);
  border-radius: 0.5rem;
}

.btn-outline-danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-outline-danger:hover {
  background: var(--danger);
  color: #fff;
}

.auth-section {
  max-width: 420px;
  margin: 0 auto;
}

.admin-table {
  color: var(--text-primary);
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
  --bs-table-border-color: var(--border-color);
}

.admin-table thead th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
}

.badge-active {
  background: rgba(39, 174, 96, 0.15);
  color: var(--success);
}

.badge-warning {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
}

.badge-info {
  background: rgba(52, 152, 219, 0.2);
  color: #5dade2;
}

.badge-danger {
  background: rgba(231, 76, 60, 0.2);
  color: var(--danger);
}

.session-kind-counts {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.session-kind-count-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.session-kind-count-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.session-kind-count-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.schedule-month-stats {
  padding: 1rem 1.25rem;
}

.schedule-month-stats-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.schedule-month-stats-title {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.schedule-month-stats-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.schedule-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
}

.schedule-stat-chip-label {
  color: var(--text-muted);
}

.schedule-stat-chip-value {
  font-weight: 700;
  color: var(--accent);
}

.schedule-calendar-layout,
.admin-schedule-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-schedule-calendar-card .card-body {
  padding: 0.85rem 1rem;
}

.admin-schedule-calendar-card .calendar-day {
  min-height: 38px;
  padding: 0.25rem;
  border-radius: 8px;
}

.admin-schedule-calendar-card .calendar-day-number {
  font-size: 0.82rem;
}

.admin-schedule-calendar-card .calendar-weekdays {
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
}

.admin-schedule-calendar-card .calendar-grid {
  gap: 0.25rem;
}

.admin-schedule-calendar-filters {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.admin-schedule-day-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-schedule-day-placeholder .card-body {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hourly-schedule-timeline {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

.hourly-session-card {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

a.hourly-session-card:hover,
a.hourly-session-card:focus-visible {
  border-color: var(--accent);
  background: var(--bg-card);
  color: inherit;
}

.hourly-session-card + .hourly-session-card {
  margin-top: 0.45rem;
}

.hourly-session-card-group {
  border-left: 3px solid #2ecc71;
}

.hourly-session-card-personal {
  border-left: 3px solid var(--accent);
}

.hourly-session-card-split {
  border-left: 3px solid #5dade2;
}

.hourly-session-card-main {
  min-width: 0;
  flex: 1;
}

.hourly-session-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.hourly-session-card-title strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

html.theme-light .hourly-session-card-title strong {
  color: #141210;
}

.hourly-session-card-spots {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.hourly-kind-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid var(--border-color);
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hourly-session-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hourly-session-card-time {
  font-weight: 600;
  color: var(--accent);
}

.hourly-session-card-clients {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.25;
}

.hourly-session-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex-shrink: 0;
}

.hourly-session-card-actions .badge {
  font-size: 0.68rem;
}

.hourly-session-card-actions .btn {
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
}

.schedule-calendar-compact .card-body {
  padding: 0.5rem 0.75rem !important;
}

.calendar-weekdays-compact {
  margin-bottom: 0.25rem;
  font-size: 0.65rem;
}

.calendar-day-compact {
  min-height: 40px !important;
  padding: 0.2rem !important;
  border-radius: 8px;
}

.calendar-day-compact .calendar-day-number {
  font-size: 0.85rem;
}

.calendar-day-compact .calendar-day-dot {
  width: 4px;
  height: 4px;
  margin-top: 0.1rem;
}

.schedule-calendar-week .calendar-day-compact {
  min-height: 40px;
}

.calendar-week-label {
  font-size: 0.85rem;
  text-transform: capitalize;
}

.section-title-compact {
  font-size: 1rem;
  margin-bottom: 0.5rem !important;
}

.schedule-hourly-panel {
  min-width: 0;
}

.schedule-hourly-panel .hourly-schedule {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

.hourly-session-item + .hourly-session-item {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.hourly-session-actions .btn {
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
}

.hourly-session-actions .badge {
  font-size: 0.7rem;
}

@media (max-width: 992px) {
  .schedule-calendar-layout,
  .admin-schedule-layout {
    grid-template-columns: 1fr;
  }

  .schedule-hourly-panel .hourly-schedule,
  .hourly-schedule-timeline {
    max-height: none;
  }
}

@media (max-width: 576px) {
  .schedule-page-header-top {
    flex-direction: column;
    align-items: stretch !important;
  }

  .schedule-month-stats-inline {
    justify-content: flex-start;
  }
}

.stats-compare .compare-kind-block:last-of-type {
  margin-bottom: 0 !important;
}

.compare-kind-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.compare-metric {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.compare-metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.compare-bar-track {
  height: 10px;
  background: var(--bg-secondary);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.compare-bar-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
  transition: width 0.3s ease;
}

.compare-bar-group {
  background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.compare-bar-personal {
  background: linear-gradient(90deg, #b8897e, #dbaa9f);
}

.compare-bar-split {
  background: linear-gradient(90deg, #5dade2, #85c1e9);
}

.compare-bar-dimmed {
  opacity: 0.65;
}

.compare-bar-outline {
  background: transparent !important;
  border: 2px solid currentColor;
  box-sizing: border-box;
}

.compare-bar-group.compare-bar-outline { color: #2ecc71; }
.compare-bar-personal.compare-bar-outline { color: #d4b87a; }
.compare-bar-split.compare-bar-outline { color: #85c1e9; }

.compare-metric-value {
  font-weight: 700;
  text-align: right;
  color: var(--accent);
}

.compare-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.compare-legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

@media (max-width: 576px) {
  .compare-metric {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .compare-metric-value {
    text-align: left;
  }
}

.stat-card a {
  color: var(--accent);
  text-decoration: none;
}

.stat-card a:hover {
  text-decoration: underline;
}

.home-btn {
  min-height: 36px;
}

.day-check {
  min-width: 48px;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.day-check .form-check-input {
  margin-right: 0.35rem;
}

.admin-logout {
  margin-top: auto;
  padding-top: 1rem;
}

.progress {
  background-color: var(--bg-secondary);
}

.progress-bar.bg-accent {
  background-color: var(--accent) !important;
}

.freeze-form {
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

.schedule-toolbar .btn-group .btn {
  min-height: 40px;
}

.schedule-calendar .calendar-header h2 {
  text-transform: capitalize;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  background: var(--bg-secondary);
}

.calendar-day:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.calendar-day-outside {
  opacity: 0.35;
}

.calendar-day-today {
  background: rgba(201, 169, 110, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.calendar-day-today .calendar-day-number {
  color: var(--accent);
}

.calendar-day-selected.calendar-day-today {
  background: rgba(201, 169, 110, 0.3);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.calendar-day-selected {
  background: rgba(201, 169, 110, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

.calendar-day-number {
  font-weight: 600;
  line-height: 1.2;
}

.calendar-day-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.2rem;
}

.calendar-day-has-sessions .calendar-day-number {
  color: var(--accent);
}

.calendar-grid-week {
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekdays-7 {
  grid-template-columns: repeat(7, 1fr);
}

.schedule-calendar-week .calendar-day:not(.calendar-day-compact) {
  min-height: 72px;
}

.calendar-day-weekday {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: lowercase;
}

.hourly-schedule-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  align-items: start;
}

.hourly-schedule-row:last-child {
  border-bottom: none;
}

.hourly-schedule-row-filled {
  background: rgba(201, 169, 110, 0.05);
}

.hourly-schedule-time {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.8rem;
  padding-top: 0.1rem;
}

.hourly-slot-link {
  color: var(--accent);
  text-decoration: none;
}

.hourly-slot-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.hourly-schedule-row-empty {
  cursor: pointer;
  min-height: 32px;
  opacity: 0.75;
}

.hourly-schedule-row-empty:hover {
  background: rgba(201, 169, 110, 0.08);
}

.hourly-slot-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

.hourly-slot-add:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: rgba(201, 169, 110, 0.08);
}

.hourly-session-item + .hourly-session-item {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

.activity-feed-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.activity-feed-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.client-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 0.25rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-secondary);
}

.client-search-results .list-group-item {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
  text-align: left;
}

.client-search-results .list-group-item:hover,
.client-search-results .list-group-item:focus {
  background-color: var(--bg-card);
  color: var(--accent);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.telegram-login-slot {
  display: flex;
  justify-content: center;
  min-height: 0;
}

.profile-push-card .profile-push-switch {
  width: 2.75rem;
  height: 1.4rem;
  margin: 0;
  cursor: pointer;
}

.profile-push-card .form-check-input {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.profile-push-card .form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-check-label {
  color: var(--text-muted);
}

/* Light theme landing + toggle */
.landing-top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.landing-lead {
  max-width: 540px;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.landing-hero {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Admin mobile header */
.admin-mobile-header {
  position: sticky;
  top: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.admin-home-btn,
.admin-theme-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.admin-home-btn:hover,
.admin-theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.admin-mobile-header-title {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-nav-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.admin-bottom-nav-item .admin-nav-svg {
  margin-bottom: 0.15rem;
}

.admin-more-sheet-link .admin-nav-svg {
  flex-shrink: 0;
}

/* Compact dashboard */
.dashboard-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-stat-grid {
  display: grid;
  gap: 0.55rem;
}

.dashboard-stat-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.dashboard-stat-pair-subs .dashboard-stat-row {
  gap: 0.25rem 0.55rem;
  font-size: 0.82rem;
}

.dashboard-stat-pair-subs .dashboard-stat-card {
  min-width: 0;
}

.dashboard-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.dashboard-stat-card-accent .dashboard-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.dashboard-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.dashboard-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  font-size: 0.82rem;
}

.dashboard-stat-row span {
  color: var(--text-muted);
}

.dashboard-stat-row strong {
  color: var(--accent);
  margin-right: 0.35rem;
}

.dashboard-stat-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.dashboard-stat-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dashboard-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.dashboard-compare .card-body {
  padding: 0.85rem;
}

.dashboard-compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
}

.dashboard-compare-row:last-of-type {
  border-bottom: none;
}

.dashboard-compare-label {
  color: var(--text-muted);
}

.dashboard-compare-values strong,
.dashboard-compare-values span:not(.text-muted) {
  font-weight: 700;
  color: var(--accent);
}

.dashboard-compare-hint {
  font-size: 0.68rem;
  margin: 0.45rem 0 0;
}

.dashboard-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dashboard-activity-item {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dashboard-activity-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.dashboard-activity-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.dashboard-activity-name {
  font-size: 0.88rem;
}

.dashboard-activity-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

/* Clients mobile cards */
.clients-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.clients-search-wrap .form-control {
  border-radius: 10px;
}

.client-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.client-card-item {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.client-card-item:hover,
.client-card-item:focus {
  border-color: var(--accent);
  color: inherit;
}

.client-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.client-card-name {
  font-size: 0.92rem;
}

.client-card-phone {
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.client-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.client-card-dot {
  margin: 0 0.15rem;
}

/* Light theme: soft graphite + rose gold (no harsh white) */
html.theme-light,
html.theme-light body,
html.theme-light .client-app,
html.theme-light .admin-mobile-app,
html.theme-light .admin-login {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary);
  color-scheme: only light;
  forced-color-adjust: none;
}

html.theme-light .client-header,
html.theme-light .client-bottom-nav,
html.theme-light .admin-bottom-nav,
html.theme-light .admin-mobile-header {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color);
  color: var(--text-primary);
}

html.theme-light .admin-mobile-header-title,
html.theme-light .admin-schedule-month-title {
  color: var(--text-primary);
}

html.theme-light .admin-main-mobile,
html.theme-light .client-main {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary);
}

html.theme-light .admin-calendar-2week,
html.theme-light .admin-calendar-weekdays,
html.theme-light .admin-calendar-days,
html.theme-light .admin-calendar-day {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color);
  color: var(--text-primary);
}

html.theme-light .admin-calendar-weekdays {
  color: var(--text-muted);
}

html.theme-light .admin-calendar-day:hover {
  background-color: var(--bg-secondary) !important;
}

html.theme-light .admin-calendar-day.is-today .admin-calendar-day-num {
  color: var(--accent);
}

html.theme-light .admin-calendar-day.is-selected {
  background-color: var(--accent) !important;
  color: var(--btn-on-accent);
}

html.theme-light .admin-calendar-day.is-selected .admin-calendar-day-num,
html.theme-light .admin-calendar-day.is-selected.is-today .admin-calendar-day-num {
  color: var(--btn-on-accent);
}

html.theme-light .admin-calendar-day.is-selected .admin-calendar-day-dot {
  background: var(--btn-on-accent);
}

html.theme-light .hourly-schedule-timeline,
html.theme-light .admin-hourly-timeline,
html.theme-light .hourly-schedule-row {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color);
  color: var(--text-primary);
}

html.theme-light .hourly-schedule-row-filled {
  background-color: var(--bg-secondary) !important;
}

html.theme-light .hourly-schedule-row-empty:hover {
  background-color: var(--accent-soft) !important;
}

html.theme-light .hourly-schedule-time,
html.theme-light .hourly-slot-link,
html.theme-light .hourly-slot-add {
  color: var(--accent);
}

html.theme-light .hourly-slot-link:hover,
html.theme-light .hourly-slot-add:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

html.theme-light .hourly-slot-add {
  background-color: var(--bg-card);
  border-color: var(--border-color);
}

html.theme-light .card,
html.theme-light .session-card,
html.theme-light .stat-card,
html.theme-light .dashboard-stat-card,
html.theme-light .client-card-item {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 1px 3px rgba(50, 42, 47, 0.06);
}

html.theme-light .form-control {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

html.theme-light .form-control:focus {
  background-color: var(--bg-card);
  border-color: var(--accent);
  color: var(--text-primary);
}

html.theme-light .hourly-session-card,
html.theme-light .admin-more-sheet {
  background-color: var(--bg-secondary);
}

html.theme-light .admin-kind-filter,
html.theme-light .admin-schedule-nav-btn,
html.theme-light .admin-schedule-today-btn,
html.theme-light .admin-schedule-chip,
html.theme-light .client-schedule-nav-btn,
html.theme-light .client-schedule-today-btn,
html.theme-light .theme-toggle-btn,
html.theme-light .admin-home-btn,
html.theme-light .admin-theme-btn {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color);
  color: var(--text-primary);
}

html.theme-light .admin-schedule-chip-accent {
  background-color: var(--accent-soft) !important;
  border-color: var(--accent);
  color: var(--accent);
}

html.theme-light .admin-kind-filter {
  color: var(--text-muted);
}

html.theme-light .admin-kind-filter.active {
  background-color: var(--bg-secondary) !important;
  border-color: var(--accent);
  color: var(--accent);
}

html.theme-light .admin-nav-svg,
html.theme-light .admin-home-btn .admin-nav-svg,
html.theme-light .admin-theme-btn .admin-nav-svg,
html.theme-light .admin-bottom-nav-item .admin-nav-svg {
  color: inherit;
  stroke: currentColor;
  fill: none;
}

html.theme-light .admin-bottom-nav-item,
html.theme-light .bottom-nav-item {
  color: var(--text-muted);
}

html.theme-light .admin-bottom-nav-item.active,
html.theme-light .bottom-nav-item.active {
  color: var(--accent);
}

html.theme-light .text-muted {
  color: var(--text-muted) !important;
}

html.theme-light a {
  color: var(--accent);
}

html.theme-light a:hover {
  color: var(--accent-hover);
}

html.theme-light .btn-outline-accent {
  color: var(--accent);
  border-color: var(--accent);
}

html.theme-light .btn-outline-accent:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--btn-on-accent);
}

html.theme-light .btn-accent {
  color: var(--btn-on-accent);
}

html.theme-light .landing-hero {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 55%, var(--bg-secondary) 100%);
}

html.theme-light .filter-bar,
html.theme-light .form-select,
html.theme-light .form-check-input {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

html.theme-light .form-select:focus {
  background-color: var(--bg-card);
  border-color: var(--accent);
  color: var(--text-primary);
}

html.theme-light .client-theme-btn,
html.theme-light .admin-login-header,
html.theme-light .admin-login-home-link {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-muted);
}

html.theme-light .admin-login-home-link:hover,
html.theme-light .admin-login-home-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--bg-secondary);
}

html.theme-light .calendar-day,
html.theme-light .calendar-weekdays,
html.theme-light .schedule-stat-chip,
html.theme-light .alert-success,
html.theme-light .alert-danger,
html.theme-light .alert-soft {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

html.theme-light .alert-soft {
  background: rgba(184, 137, 126, 0.12);
  border-color: rgba(184, 137, 126, 0.28);
}

html.theme-light .calendar-day.has-sessions {
  background-color: var(--bg-secondary);
}

html.theme-light .progress {
  background-color: var(--bg-secondary);
}

html.theme-light .admin-more-sheet-link {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  html.theme-light,
  html.theme-light body,
  html.theme-light .client-app,
  html.theme-light .admin-mobile-app,
  html.theme-light .admin-login,
  html.theme-light .admin-main-mobile,
  html.theme-light .client-main {
    background-color: var(--bg-primary) !important;
  }

  html.theme-light .client-header,
  html.theme-light .client-bottom-nav,
  html.theme-light .admin-bottom-nav,
  html.theme-light .admin-mobile-header,
  html.theme-light .admin-login-header {
    background-color: var(--bg-card) !important;
  }

  html.theme-light .admin-calendar-2week,
  html.theme-light .admin-calendar-day,
  html.theme-light .hourly-schedule-row,
  html.theme-light .hourly-schedule-timeline {
    background-color: var(--bg-card) !important;
  }

  html:not(.theme-light),
  html:not(.theme-light) body,
  html:not(.theme-light) .client-app,
  html:not(.theme-light) .admin-mobile-app {
    background-color: #1a1a1a;
  }

  html:not(.theme-light) .client-header,
  html:not(.theme-light) .client-bottom-nav,
  html:not(.theme-light) .admin-bottom-nav,
  html:not(.theme-light) .admin-mobile-header {
    background-color: #2d2d2d;
  }
}

/* Client surname search picker (admin session create) */
.client-picker {
  position: relative;
}

.client-picker-results {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.25rem 0;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.client-picker-results li {
  margin: 0;
}

.client-picker-option {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text-primary);
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.client-picker-option:hover,
.client-picker-option:focus {
  background: rgba(201, 169, 110, 0.15);
  outline: none;
}

.client-picker-empty {
  padding: 0.55rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.client-picker-chosen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.92rem;
}

.client-picker-clear {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.client-picker-clear:hover {
  color: var(--danger);
}

html.theme-light .client-picker-results,
html.theme-light .client-picker-chosen {
  background-color: var(--bg-card);
  border-color: var(--border-color);
}
