:root {
  color-scheme: light;
  --ink: #121417;
  --muted: #62686f;
  --paper: #f5f1e8;
  --ivory: #fffaf0;
  --line: #d8d0c0;
  --champagne: #c7a35a;
  --olive: #495949;
  --clay: #9c5f45;
  --graphite: #11151a;
  --graphite-2: #1d2328;
  --white: #ffffff;
  --success: #2f7d58;
  --warning: #b9852f;
  --danger: #b34b3e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

button {
  min-height: 40px;
  border: 1px solid rgba(17, 21, 26, 0.16);
  border-radius: 4px;
  padding: 0 14px;
  background: var(--champagne);
  color: var(--graphite);
  cursor: pointer;
  font-weight: 850;
}

button:hover {
  filter: brightness(1.04);
}

.ghost-button {
  background: transparent;
  color: var(--graphite);
}

.ghost-button:hover {
  background: rgba(17, 21, 26, 0.06);
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid rgba(17, 21, 26, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.language-switch.compact {
  margin-bottom: 0;
}

.language-switch button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1;
}

.performance-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #161b20, #24201c);
  color: var(--ivory);
}

.performance-dashboard-head h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
}

.performance-dashboard-head p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.72);
}

.performance-admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.performance-admin-columns {
  align-items: stretch;
}

.performance-session-list,
.performance-operations {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.performance-session-list > div {
  display: grid;
  grid-template-columns: 64px minmax(150px, 0.8fr) minmax(180px, 1.2fr);
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--white);
}

.performance-session-list time {
  color: var(--clay);
  font-weight: 850;
}

.performance-session-list span,
.performance-operations p {
  color: var(--muted);
}

.performance-operations > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.6fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
}

.performance-operations p {
  margin: 0;
}

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

@media (max-width: 720px) {
  .performance-dashboard-head {
    flex-direction: column;
  }

  .performance-admin-metrics {
    grid-template-columns: 1fr;
  }

  .performance-session-list > div,
  .performance-operations > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.language-switch button.is-active {
  background: var(--graphite);
  color: var(--ivory);
}

.flag-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 15px;
  overflow: hidden;
  border: 1px solid rgba(17, 21, 26, 0.22);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.flag-at {
  background: linear-gradient(to bottom, #ed2939 0 33.333%, #fff 33.333% 66.666%, #ed2939 66.666% 100%);
}

.flag-us {
  background: repeating-linear-gradient(to bottom, #b22234 0 7.692%, #fff 7.692% 15.384%);
}

.flag-us::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 54%;
  background: #3c3b6e;
}

.is-hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--champagne);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.74rem;
  font-weight: 850;
}

.login-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 104px 24px 24px;
  background:
    linear-gradient(90deg, rgba(17, 21, 26, 0.86), rgba(17, 21, 26, 0.62)),
    url("../assets/lounge-1600.webp") center / cover no-repeat,
    var(--graphite);
}

.login-header {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ivory);
}

.login-header strong {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.login-header .language-switch {
  border-color: rgba(255, 250, 240, 0.24);
  background: rgba(17, 21, 26, 0.56);
}

.login-header .language-switch button {
  color: rgba(255, 250, 240, 0.78);
}

.login-header .language-switch button.is-active {
  background: var(--ivory);
  color: var(--graphite);
}

.login-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.login-panel {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.login-panel h1,
.topbar h2,
.panel h3,
.metric strong {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1;
}

.login-panel h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  margin-bottom: 28px;
}

.login-panel form {
  display: grid;
  gap: 14px;
}

.login-cancel {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 21, 26, 0.18);
  border-radius: 4px;
  background: transparent;
  color: var(--graphite);
  text-decoration: none;
  font-weight: 850;
}

.login-cancel:hover {
  background: rgba(17, 21, 26, 0.06);
}

.login-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.login-panel input,
.search {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.error-message {
  display: none;
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 750;
}

.error-message.is-visible {
  display: block;
}

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: var(--graphite);
  color: var(--ivory);
  overflow-y: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 850;
  text-transform: uppercase;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar nav {
  display: grid;
  gap: 6px;
  margin: 34px 0;
}

.sidebar nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 4px;
  color: rgba(255, 250, 240, 0.76);
  text-decoration: none;
  font-weight: 750;
}

.sidebar nav a:hover,
.sidebar nav a.is-active {
  color: var(--ivory);
  background: rgba(255, 250, 240, 0.09);
}

.development-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}

.development-intro > div {
  max-width: 820px;
}

.development-intro h3,
.section-heading h3,
.strategy-focus h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

.development-intro h3 {
  font-size: 2rem;
}

.development-intro > div > p:last-child {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
}

.development-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h3 {
  font-size: 1.5rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.audience-card {
  min-height: 190px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.45);
}

.audience-card > span {
  color: var(--champagne);
  font-size: 0.75rem;
  font-weight: 850;
}

.audience-card h4 {
  margin: 24px 0 10px;
  font-size: 1rem;
}

.audience-card p,
.idea-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.strategy-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.7fr);
  gap: 32px;
  padding: 30px;
  border-left: 4px solid var(--champagne);
  background: var(--graphite);
  color: var(--ivory);
}

.strategy-focus h3 {
  max-width: 720px;
  font-size: 1.7rem;
}

.strategy-focus p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 250, 240, 0.72);
}

.strategy-focus > strong {
  align-self: center;
  padding: 18px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  color: var(--champagne);
  font-size: 0.9rem;
  line-height: 1.5;
}

.development-roadmap-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.development-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.development-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot,
.priority-marker {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.priority-high {
  background: var(--clay);
}

.priority-medium {
  background: var(--champagne);
}

.priority-later {
  background: var(--olive);
}

.effort-low {
  background: rgba(47, 125, 88, 0.12);
  color: var(--success);
}

.effort-medium {
  background: rgba(185, 133, 47, 0.14);
  color: #805b1e;
}

.effort-high {
  background: rgba(179, 75, 62, 0.12);
  color: var(--danger);
}

.development-groups {
  display: grid;
  gap: 22px;
}

.idea-group {
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.35);
}

.idea-group > header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.idea-group > header h4 {
  margin: 0;
  font-size: 0.95rem;
}

.idea-group > header small {
  margin-left: auto;
  color: var(--muted);
}

.idea-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.idea-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  min-height: 132px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.idea-item:nth-child(even) {
  border-right: 0;
}

.idea-item h5 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.effort-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 3px;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 850;
}

.sidebar-card {
  padding: 18px;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.07);
}

.sidebar-card span,
.metric span,
.report-card span,
.facility-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.sidebar-card span {
  color: rgba(255, 250, 240, 0.66);
}

.sidebar-card strong {
  display: block;
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  font-weight: 500;
}

.sidebar-card p {
  margin: 4px 0 0;
  color: rgba(255, 250, 240, 0.7);
}

.workspace {
  min-width: 0;
  padding: 22px;
}

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: -22px -22px 22px;
  padding: 18px 22px;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar h2 {
  font-size: clamp(2.1rem, 4vw, 4.4rem);
}

.time-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-grid,
.single-column,
.two-column,
.three-column {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.page-tools,
.filter-row {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.page-tools {
  grid-template-columns: minmax(240px, 360px);
}

.filter-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-tools label,
.filter-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.page-tools input,
.filter-row input,
.filter-row select,
.points-settings input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 11px;
  background: var(--white);
  color: var(--ink);
}

.slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.time-edit {
  display: grid;
  grid-template-columns: repeat(2, minmax(86px, 1fr));
  gap: 6px;
}

.table-input,
.time-edit input {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 9px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.date-nav {
  display: grid;
  grid-template-columns: 42px minmax(180px, 1fr) 42px;
  gap: 8px;
  align-items: end;
}

.date-nav label {
  display: grid;
  gap: 6px;
}

.date-nav button {
  min-height: 42px;
  padding: 0;
  font-size: 1.2rem;
}

input:disabled,
select:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.panel-grid {
  grid-template-columns: repeat(3, 1fr);
}

.two-column {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.single-column {
  grid-template-columns: minmax(0, 1fr);
}

.three-column {
  grid-template-columns: repeat(3, 1fr);
}

.panel,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
}

.metric {
  min-height: 132px;
  padding: 18px;
}

.metric.is-clickable {
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.metric.is-clickable:hover {
  border-color: rgba(199, 163, 90, 0.72);
  transform: translateY(-1px);
}

.metric strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.metric small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.metric .delta {
  margin-top: 14px;
  color: var(--success);
  font-weight: 850;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.panel h3 {
  font-size: clamp(1.35rem, 2.2vw, 2.25rem);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.status.good {
  color: #0f3f2b;
  background: rgba(47, 125, 88, 0.16);
}

.status.warn {
  color: #5a3b06;
  background: rgba(185, 133, 47, 0.18);
}

.status.danger {
  color: #661c15;
  background: rgba(179, 75, 62, 0.16);
}

.booking-list,
.gastro-list,
.trainer-list,
.alert-list,
.customer-list,
.facility-grid,
.report-grid {
  display: grid;
  gap: 10px;
}

.booking-item,
.gastro-item,
.trainer-item,
.alert-item,
.customer-item,
.report-card,
.facility-card {
  border: 1px solid rgba(17, 21, 26, 0.08);
  border-radius: 6px;
  padding: 12px;
  background: var(--white);
}

.booking-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.booking-item time,
.booking-item strong,
.customer-item strong,
.trainer-item strong {
  font-weight: 850;
}

.booking-item p,
.gastro-item p,
.trainer-item p,
.alert-item p,
.customer-item p,
.report-card p,
.facility-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece7dc;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--olive), var(--champagne));
}

.booking-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tab-label {
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.booking-tabs button {
  min-height: 36px;
  border-color: rgba(17, 21, 26, 0.12);
  background: var(--white);
  color: var(--muted);
}

.booking-tabs button.is-active {
  border-color: rgba(199, 163, 90, 0.65);
  background: var(--graphite);
  color: var(--ivory);
}

.court-tabs {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.booking-controls {
  display: grid;
  grid-template-columns: minmax(240px, 360px);
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}

.booking-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.booking-controls input,
.booking-controls select,
.facility-control select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 11px;
  background: var(--white);
  color: var(--ink);
}

.date-state {
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(17, 21, 26, 0.08);
  border-radius: 4px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.schedule-wrap {
  overflow-x: auto;
}

.schedule-table {
  min-width: 960px;
}

.schedule-table tbody tr.is-free {
  background: rgba(47, 125, 88, 0.1);
}

.schedule-table tbody tr.is-booked {
  background: rgba(156, 95, 69, 0.14);
}

.schedule-table td:first-child,
.schedule-table th:first-child {
  width: 110px;
  font-weight: 850;
}

.schedule-table td:nth-child(2),
.schedule-table th:nth-child(2) {
  width: 130px;
}

.booking-name {
  display: block;
  font-weight: 850;
}

.booking-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.slot-action {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.slot-action[disabled] {
  cursor: not-allowed;
  filter: grayscale(0.4);
  opacity: 0.55;
}

.audit-log {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.audit-entry {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(17, 21, 26, 0.08);
  border-radius: 6px;
  padding: 10px;
  background: var(--white);
}

.audit-entry time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.audit-entry p {
  margin: 0;
  color: var(--ink);
}

.occupancy-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.occupancy-group h4,
.facility-control h4 {
  margin: 0;
  font-size: 1rem;
}

.occupancy-group h4 {
  text-align: center;
  font-size: 1.16rem;
  margin-bottom: 8px;
}

.occupancy-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.gastro-item strong {
  display: block;
}

.gastro-item ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.facility-grid {
  grid-template-columns: repeat(3, 1fr);
}

.facility-control {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(17, 21, 26, 0.08);
  border-radius: 6px;
  padding: 12px;
  background: var(--white);
}

.facility-control label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.facility-control small {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.76rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ece7dc;
  color: var(--graphite);
  font-size: 0.78rem;
  font-weight: 850;
}

.pill.danger {
  background: rgba(179, 75, 62, 0.13);
  color: var(--danger);
}

.pill.warn {
  background: rgba(185, 133, 47, 0.16);
  color: #6a4308;
}

.customer-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rich-list {
  gap: 14px;
}

.customer-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(17, 21, 26, 0.08);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
}

.customer-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.customer-summary::-webkit-details-marker {
  display: none;
}

.customer-summary h3 {
  margin: 0;
}

.customer-summary p {
  margin: 0;
  color: var(--muted);
}

.customer-summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--graphite);
  font-weight: 900;
}

.customer-card[open] .customer-summary::after {
  content: "-";
}

.customer-summary-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.customer-title {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.customer-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-name-row button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.alpha-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.alpha-filter button {
  min-width: 28px;
  min-height: 28px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(245, 241, 232, 0.7);
  color: var(--graphite);
  font-size: 0.78rem;
}

.alpha-filter button.is-active {
  background: var(--graphite);
  color: var(--ivory);
}

.customer-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.customer-editor label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 850;
  color: var(--muted);
}

.customer-editor input,
.customer-editor select,
.point-adjuster input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: var(--ivory);
  color: var(--graphite);
  font: inherit;
}

.customer-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.customer-facts div,
.points-settings label {
  border: 1px solid rgba(17, 21, 26, 0.08);
  border-radius: 6px;
  padding: 10px;
  background: rgba(245, 241, 232, 0.5);
}

.customer-facts span,
.points-settings span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.points-settings small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.customer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.point-adjuster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  border: 1px solid rgba(17, 21, 26, 0.08);
  border-radius: 6px;
  padding: 10px;
  background: rgba(245, 241, 232, 0.5);
}

.point-adjuster span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.point-adjuster input {
  width: 76px;
  min-height: 38px;
}

.customer-log {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.transactions {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.transactions summary {
  cursor: pointer;
  font-weight: 850;
}

.points-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.report-grid,
.facility-grid {
  grid-template-columns: repeat(2, 1fr);
}

.compact-filter {
  grid-template-columns: minmax(180px, 260px) minmax(180px, 260px);
  margin-bottom: 12px;
}

.management-form {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(245, 241, 232, 0.45);
}

.management-form > summary {
  position: relative;
  padding: 14px 46px 14px 16px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 900;
}

.management-form > summary::-webkit-details-marker {
  display: none;
}

.management-form > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 1.25rem;
}

.management-form[open] > summary::after {
  content: "-";
}

.management-form[open] > summary {
  border-bottom: 1px solid var(--line);
}

.management-form > form {
  margin: 0;
  padding: 16px;
}

.user-form,
.event-form,
.member-form,
.price-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.user-form label,
.event-form label,
.member-form label,
.price-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.user-form input,
.user-form select,
.event-form input,
.event-form select,
.event-form textarea,
.member-form input,
.member-form select,
.price-form input,
.price-form textarea {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 11px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.event-form textarea,
.price-form textarea {
  min-height: 104px;
  padding: 11px;
  resize: vertical;
}

.user-form button,
.event-form button,
.member-form button,
.price-form button {
  align-self: end;
  min-height: 42px;
}

.event-form .full-span,
.price-form .full-span {
  grid-column: 1 / -1;
}

.event-form .checkbox-field {
  align-content: center;
  grid-template-columns: auto 1fr;
  gap: 10px;
  color: var(--ink);
}

.event-form .checkbox-field input {
  min-height: auto;
  width: auto;
}

.user-grid,
.event-admin-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.user-card,
.event-admin-card,
.price-card {
  border: 1px solid rgba(17, 21, 26, 0.08);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
}

.user-card header,
.event-admin-card header,
.price-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.event-admin-card h4,
.price-card h4 {
  margin: 4px 0 0;
  font-size: 1.08rem;
}

.event-admin-card p,
.price-card p {
  color: var(--muted);
}

.event-admin-card.is-muted {
  opacity: 0.68;
  background: rgba(245, 241, 232, 0.72);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.empty-state p {
  margin: 6px 0 0;
  color: var(--muted);
}

.price-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.1;
}

.price-card.is-muted {
  opacity: 0.62;
}

.price-grid {
  display: block;
}

.price-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(17, 21, 26, 0.08);
  border-radius: 8px;
  background: var(--white);
}

.price-matrix {
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
}

.price-matrix th,
.price-matrix td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(17, 21, 26, 0.08);
  text-align: left;
  vertical-align: top;
}

.price-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f2e9;
  color: var(--ink);
}

.price-matrix thead th span {
  display: block;
  font-weight: 900;
}

.price-matrix thead th small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.price-matrix tbody th {
  width: 31%;
  background: rgba(247, 242, 233, 0.54);
  color: var(--ink);
  font-weight: 850;
}

.price-matrix tbody td {
  color: var(--muted);
  font-weight: 750;
  white-space: pre-line;
}

.price-matrix tr:last-child th,
.price-matrix tr:last-child td {
  border-bottom: 0;
}

.price-benefit-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.price-benefit-notes .price-card {
  min-height: 100%;
}

.event-type {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.permission-list {
  margin-top: 10px;
  color: var(--muted);
}

.compact-details {
  padding: 0;
  border-top: 0;
}

.compact-details summary,
.payment-actions > button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
}

.payment-transactions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.payment-transactions div {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(17, 21, 26, 0.08);
  border-radius: 6px;
  padding: 8px;
  background: rgba(245, 241, 232, 0.55);
}

.payment-transactions div.is-cancelled {
  opacity: 0.68;
}

.payment-transactions div.is-cancelled strong,
.payment-transactions div.is-cancelled time,
.payment-transactions div.is-cancelled span {
  color: var(--muted);
}

.payment-transactions div.is-cancelled strong {
  font-weight: 850;
}

.payment-transactions time,
.payment-transactions span {
  color: var(--muted);
  font-size: 0.78rem;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.inline-payment-panel {
  margin-top: 12px;
  border: 1px solid rgba(183, 148, 90, 0.28);
  border-radius: 6px;
  padding: 12px;
  background: rgba(183, 148, 90, 0.08);
}

.inline-payment-panel h4 {
  margin: 0 0 10px;
}

.report-card strong,
.facility-card strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--graphite);
  color: var(--ivory);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.operation-state {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 18px;
  max-width: min(480px, calc(100vw - 32px));
  transform: translate(-50%, -16px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(17, 21, 26, 0.18);
  font-size: 0.86rem;
  font-weight: 850;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.operation-state.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.operation-state.is-success {
  border-color: rgba(47, 125, 88, 0.45);
}

.operation-state.is-error {
  border-color: rgba(179, 75, 62, 0.52);
  color: #661c15;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .panel-grid,
  .three-column,
  .two-column,
  .booking-controls,
  .facility-grid,
  .page-tools,
  .filter-row,
  .user-form,
  .event-form,
  .member-form,
  .price-form,
  .user-grid,
  .event-admin-grid,
  .price-grid,
  .customer-editor,
  .customer-facts,
  .points-settings {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-benefit-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-focus {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  }

  .page-tools,
  .booking-controls {
    grid-template-columns: minmax(240px, 360px);
  }
}

@media (max-width: 720px) {
  .login-screen {
    padding: 96px 14px 14px;
  }

  .login-header {
    top: 14px;
    right: 14px;
    gap: 8px;
  }

  .login-header strong {
    max-width: 150px;
    font-size: 0.72rem;
    text-align: right;
  }

  .login-header img {
    width: 42px;
    height: 42px;
  }

  .login-panel {
    padding: 26px 22px;
  }

  .workspace {
    padding: 14px;
  }

  .topbar {
    position: static;
    margin: -14px -14px 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .sidebar nav,
  .panel-grid,
  .single-column,
  .three-column,
  .two-column,
  .report-grid,
  .facility-grid,
  .booking-controls,
  .audit-entry,
  .page-tools,
  .filter-row,
  .user-form,
  .event-form,
  .member-form,
  .price-form,
  .user-grid,
  .event-admin-grid,
  .price-grid,
  .customer-editor,
  .customer-facts,
  .points-settings {
    grid-template-columns: 1fr;
  }

  .price-benefit-notes {
    grid-template-columns: 1fr;
  }

  .development-intro,
  .development-roadmap-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .audience-grid,
  .strategy-focus,
  .idea-list,
  .idea-item {
    grid-template-columns: 1fr;
  }

  .idea-item {
    min-height: auto;
    border-right: 0;
  }

  .effort-badge {
    justify-self: start;
  }

  .booking-item {
    grid-template-columns: 1fr;
  }

  .customer-item {
    flex-direction: column;
  }

  .customer-summary,
  .customer-summary-meta {
    align-items: flex-start;
  }

  .customer-summary {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .customer-summary-meta {
    grid-column: 1 / -1;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .topbar-actions,
  .topbar-actions button {
    width: 100%;
  }

  .language-switch.compact,
  .language-switch.compact button {
    width: auto;
  }

  .point-adjuster {
    grid-template-columns: 1fr;
  }
}

/* Dashboard readability and layout refresh */
body {
  font-size: 15px;
  line-height: 1.55;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(199, 163, 90, 0.42);
  outline-offset: 2px;
}

.workspace {
  padding: 26px;
}

.topbar {
  margin: -26px -26px 24px;
  padding: 16px 26px;
}

.topbar h2 {
  font-size: clamp(2.15rem, 3vw, 3.15rem);
  line-height: 1.04;
}

.time-summary {
  margin-top: 7px;
  font-size: 0.84rem;
}

.page-tools,
.filter-row,
.panel-grid,
.single-column,
.two-column,
.three-column {
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  padding: 22px;
  border-radius: 10px;
}

.panel-head {
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.12;
}

.eyebrow {
  margin-bottom: 6px;
  letter-spacing: 0.055em;
  line-height: 1.25;
}

.metric {
  min-height: 122px;
  padding: 20px;
}

.metric strong {
  margin-top: 4px;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
}

.page-tools label,
.filter-row label,
.user-form label,
.event-form label,
.member-form label,
.price-form label,
.customer-editor label,
.facility-control label {
  gap: 7px;
  font-size: 0.84rem;
  line-height: 1.3;
}

.page-tools input,
.filter-row input,
.filter-row select,
.points-settings input,
.user-form input,
.user-form select,
.event-form input,
.event-form select,
.member-form input,
.member-form select,
.price-form input,
.customer-editor input,
.customer-editor select,
.facility-control select {
  min-height: 44px;
  border-radius: 6px;
}

.management-form {
  margin-bottom: 22px;
  border-radius: 8px;
}

.management-form > summary {
  min-height: 48px;
}

.user-form,
.event-form,
.member-form,
.price-form {
  gap: 16px;
  margin-bottom: 0;
}

.filter-row {
  padding: 16px;
  border: 1px solid rgba(17, 21, 26, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.schedule-wrap {
  max-height: min(68vh, 760px);
  overflow: auto;
  border: 1px solid rgba(17, 21, 26, 0.1);
  border-radius: 8px;
  background: var(--white);
}

.schedule-table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #f4eee2;
  box-shadow: 0 1px 0 var(--line);
}

.schedule-table td,
.schedule-table th {
  padding: 11px 12px;
}

.schedule-table tbody tr:hover {
  box-shadow: inset 3px 0 0 var(--champagne);
}

table {
  line-height: 1.4;
}

th,
td {
  padding: 13px 14px;
}

thead th {
  letter-spacing: 0.035em;
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background: rgba(245, 241, 232, 0.34);
}

tbody tr:hover {
  background: rgba(199, 163, 90, 0.08);
}

.alpha-filter {
  gap: 6px;
  margin-top: 14px;
}

.alpha-filter button {
  min-width: 32px;
  min-height: 32px;
  padding: 0 9px;
}

.customer-list {
  gap: 16px;
}

.customer-card {
  gap: 16px;
  padding: 18px;
  border-radius: 10px;
}

.customer-summary {
  gap: 18px;
}

.customer-summary h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.customer-name-row {
  gap: 7px;
}

.customer-editor {
  gap: 14px;
  padding-top: 18px;
}

.customer-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.customer-facts div,
.points-settings label {
  min-width: 0;
  padding: 12px;
}

.customer-facts strong {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.points-settings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.points-settings label {
  min-height: 138px;
  align-content: start;
}

.points-settings input {
  margin-top: 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.event-admin-grid,
.user-grid {
  gap: 16px;
}

.event-admin-card,
.user-card,
.price-card {
  padding: 18px;
  border-radius: 10px;
}

.event-admin-card header,
.user-card header,
.price-card header {
  align-items: flex-start;
  margin-bottom: 14px;
}

.event-admin-card h4,
.user-card h4,
.price-card h4 {
  margin: 4px 0 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.event-admin-card p,
.user-card p,
.price-card p {
  line-height: 1.55;
}

.event-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-facts strong {
  overflow-wrap: normal;
}

.event-actions {
  padding-top: 14px;
  border-top: 1px solid rgba(17, 21, 26, 0.08);
}

.user-card .customer-facts {
  grid-template-columns: minmax(125px, 1.25fr) minmax(70px, 0.65fr) minmax(105px, 1fr);
}

.user-card .customer-facts strong {
  white-space: nowrap;
  overflow-wrap: normal;
}

.user-card .status {
  flex: 0 0 auto;
  max-width: 46%;
  min-height: 28px;
  line-height: 1.2;
  text-align: center;
}

.user-card header p {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.permission-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(73, 89, 73, 0.1);
  color: #344334;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
}

.price-table-wrap {
  max-height: min(65vh, 680px);
}

.price-matrix thead th {
  z-index: 3;
}

.price-matrix tbody th {
  position: sticky;
  z-index: 1;
  left: 0;
  min-width: 250px;
  box-shadow: 1px 0 0 rgba(17, 21, 26, 0.08);
}

.price-matrix tbody td {
  min-width: 210px;
  line-height: 1.5;
}

.price-benefit-notes {
  gap: 16px;
  margin-top: 18px;
}

.facility-grid {
  gap: 14px;
}

.facility-control {
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
}

.facility-control h4 {
  font-size: 1.05rem;
}

.facility-control small {
  padding-top: 4px;
  border-top: 1px solid rgba(17, 21, 26, 0.07);
  line-height: 1.4;
}

.payments-table td:first-child {
  min-width: 220px;
  font-weight: 800;
}

.payments-table td:nth-child(2) {
  min-width: 210px;
}

.payments-table td:nth-child(4) {
  min-width: 210px;
}

.payment-actions {
  align-items: center;
}

.payment-transactions {
  min-width: 300px;
}

.payment-transactions div {
  padding: 11px;
}

.report-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.report-card {
  min-height: 132px;
  padding: 16px;
  border-radius: 8px;
}

.report-card strong {
  margin-top: 7px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.report-card p {
  margin: 7px 0 0;
  line-height: 1.4;
}

.development-intro {
  gap: 22px;
  padding: 18px 0 28px;
}

.development-intro h3 {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
}

.development-section {
  padding: 28px 0;
}

.audience-card {
  min-height: 165px;
  padding: 20px;
}

.audience-card h4 {
  margin: 18px 0 9px;
  line-height: 1.3;
}

.audience-card p,
.idea-item p {
  font-size: 0.92rem;
  line-height: 1.5;
}

.idea-item {
  min-height: 122px;
}

@media (max-width: 1180px) {
  .workspace {
    padding: 22px;
  }

  .topbar {
    margin: -22px -22px 22px;
    padding: 16px 22px;
  }

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

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .sidebar {
    padding: 14px;
  }

  .sidebar nav {
    display: flex;
    gap: 8px;
    margin: 18px -14px 0;
    padding: 0 14px 10px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .sidebar nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .sidebar-card {
    display: none;
  }

  .workspace {
    padding: 14px;
  }

  .topbar {
    margin: -14px -14px 14px;
    padding: 16px 14px;
  }

  .topbar h2 {
    font-size: 2rem;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
  }

  .topbar-actions > button {
    width: auto;
  }

  .panel {
    padding: 16px;
  }

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

  .panel h3 {
    font-size: 1.45rem;
  }

  .filter-row {
    padding: 12px;
  }

  .customer-facts,
  .event-facts,
  .user-card .customer-facts,
  .points-settings,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .points-settings label {
    min-height: auto;
  }

  .customer-card {
    padding: 14px;
  }

  .customer-name-row {
    align-items: stretch;
  }

  .customer-name-row h3 {
    flex-basis: 100%;
  }

  .price-matrix tbody th {
    min-width: 190px;
  }

  .schedule-wrap {
    max-height: 66vh;
  }

  .report-card {
    min-height: auto;
  }
}
