:root {
  --bg: #F4FDF4;
  --panel: #ffffff;
  --panel-soft: #eaf7ea;
  --ink: #111111;
  --muted: #444444;
  --muted-light: #777777;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(26, 154, 181, 0.3);
  --navy: #10385C;
  --cyan: #1a9ab5;
  --cyan-light: #2ab8d4;
  --purple: #5c3d7a;
  --purple-light: #7a55a0;
  --red: #c0392b;
  --green: #27ae60;
  --accent: var(--cyan);
  --accent-ink: var(--navy);
  --accent-soft: rgba(26, 154, 181, 0.08);
  --green-soft: #eaf7ea;
  --amber: #d97706;
  --amber-soft: #fff8ea;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Barlow, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.brand-name,
.login-brand h1,
.page-head h2,
.panel h3,
.panel-head h3,
.module-card h4,
.balance-preview h3,
.event-card h4,
.event-profile h3,
.visual-card h3,
.buyer-card h2 {
  font-family: Sacramento, cursive;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
}

.notice-card {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 32px;
}

.login-brand,
.brand-lockup,
.user-chip {
  display: flex;
  align-items: center;
}

.login-brand {
  gap: 14px;
  margin-bottom: 24px;
}

.login-brand h1 {
  margin: 0;
  color: var(--navy);
  font-family: Sacramento, cursive;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.1;
}

.login-brand p,
.page-head p,
.panel-head p,
.module-card p,
.planned-panel p,
.metric-card span {
  color: var(--muted);
}

.login-brand p,
.page-head p,
.panel-head p,
.module-card p,
.planned-panel p {
  margin: 6px 0 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 56, 92, 0.18);
}

.brand-mark img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.brand-mark.small {
  width: 44px;
  height: 44px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  padding: 10px 12px;
}

input[type="file"] {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 10px;
}

input[type="file"]::file-selector-button {
  min-height: 34px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-right: 12px;
  padding: 7px 12px;
}

input[type="file"]::file-selector-button:hover {
  background: var(--cyan);
  border-color: var(--cyan);
}

.sales-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
}

.sales-main,
.sales-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.sales-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.sales-game-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.sales-game-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
}

.sales-game-card p,
.sales-card-meta,
.sales-order-card small,
.sales-order-card span {
  color: var(--muted);
}

.sales-game-card strong,
.sales-order-card b {
  color: var(--navy);
  font-size: 18px;
}

.sales-stock-row,
.sales-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sales-stock-row span,
.sales-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.sales-stock-row span.empty {
  border-color: var(--line);
  background: var(--panel-soft);
  color: var(--muted);
}

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

.sales-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.sales-order-card > div {
  display: grid;
  gap: 4px;
}

.sales-order-card button {
  min-height: 34px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  padding: 6px 10px;
}

.sales-side-panel .filter-block.vertical {
  align-items: stretch;
}

.sales-side-panel .filter-block.vertical .filter-chip {
  justify-content: center;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg);
  padding: 10px 12px;
}

.inline-check input {
  width: auto;
  min-height: auto;
}

@media (max-width: 980px) {
  .sales-layout {
    grid-template-columns: 1fr;
  }

  .sales-order-card {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

textarea {
  min-height: 96px;
  resize: vertical;
}

select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 154, 181, 0.12);
}

input[readonly] {
  background: var(--panel-soft);
  color: var(--navy);
  cursor: default;
  font-weight: 800;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.button.primary:hover {
  background: var(--cyan);
  border-color: var(--cyan);
}

.button.secondary {
  background: transparent;
  color: var(--cyan);
  border-color: var(--line-strong);
}

.button.secondary:hover {
  background: rgba(26, 154, 181, 0.08);
  color: var(--navy);
}

.button.danger {
  border-color: rgba(192, 57, 43, 0.32);
  background: #fff4f2;
  color: var(--red);
}

.button.danger:hover {
  border-color: var(--red);
  background: #ffe8e4;
}

.button.full {
  width: 100%;
}

.form-alert {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 14px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 2px solid var(--cyan);
  background: var(--navy);
  padding: 22px 18px;
}

.nav-scrim,
.sidebar-close {
  display: none;
}

.brand-lockup {
  gap: 12px;
}

.brand-name {
  color: var(--cyan-light);
  font-family: Sacramento, cursive;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 14px rgba(42, 184, 212, 0.36);
}

.brand-caption {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 5px;
}

.nav-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.68);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-item:hover {
  background: rgba(42, 184, 212, 0.18);
  color: var(--cyan-light);
}

.nav-item.active {
  background: var(--cyan-light);
  color: var(--navy);
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  text-align: center;
  font-weight: 950;
}

.nav-icon svg,
.action-strip svg,
.calendar-month-button svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.sidebar-logout {
  margin-top: auto;
}

.sidebar .button.secondary {
  border-color: rgba(42, 184, 212, 0.45);
  color: var(--cyan-light);
}

.sidebar .button.secondary:hover {
  background: var(--cyan-light);
  color: var(--navy);
}

.workspace {
  min-width: 0;
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid var(--cyan);
  background: var(--navy);
  padding: 0 28px;
}

.topbar-spacer {
  flex: 1;
}

.menu-button {
  display: none;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  cursor: pointer;
}

.branch-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.branch-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.branch-pill {
  border: 1px solid rgba(42, 184, 212, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan-light);
  padding: 5px 9px;
}

.status-pill {
  background: var(--amber-soft);
  color: var(--amber);
  padding: 5px 10px;
}

.status-pill.next {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.built {
  background: var(--accent-soft);
  color: var(--cyan);
  border: 1px solid var(--line-strong);
}

.user-chip {
  gap: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cyan-light);
  color: var(--navy);
  font-weight: 800;
}

.content {
  width: 100%;
  max-width: none;
  padding: 28px;
}

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

.page-head h2 {
  margin: 0;
  color: var(--navy);
  font-family: Sacramento, cursive;
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.08;
}

.page-head p {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card,
.panel,
.module-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
}

.metric-card p {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--navy);
  font-size: 34px;
  line-height: 1;
}

.metric-card span {
  line-height: 1.45;
}

.dashboard-metric {
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.dashboard-metric:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 22px rgba(16, 56, 92, 0.12);
  transform: translateY(-1px);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.dashboard-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  gap: 18px;
}

.action-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 14px;
}

.action-strip a {
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eefbfe 100%);
  padding: 12px;
  box-shadow: 0 8px 20px rgba(16, 56, 92, 0.06);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.action-strip a:hover {
  border-color: var(--cyan);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(16, 56, 92, 0.12);
  transform: translateY(-1px);
}

.action-strip span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--cyan-light);
  font-weight: 900;
}

.action-strip strong {
  min-width: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.2;
}

.queue-actions,
.calendar-month-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.button.compact {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 11px;
}

.calendar-month-button {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--navy);
}

.admin-action-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.quick-action {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 14px;
  transition: border-color 150ms ease, background 150ms ease;
}

.quick-action:hover {
  border-color: var(--cyan);
  background: #e8f9fc;
}

.quick-action span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--navy);
  color: var(--cyan-light);
  font-weight: 800;
}

.quick-action strong {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.2;
}

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

.branch-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 14px;
}

.branch-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.branch-card-head strong {
  color: var(--navy);
}

.branch-code {
  width: 42px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

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

.branch-stats span {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 2px;
  border-radius: 9px;
  background: #ffffff;
  color: var(--muted-light);
  padding: 8px 10px;
  font-size: 12px;
}

.branch-stats b {
  color: var(--navy);
  font-size: 17px;
}

.plan-list,
.stack-list {
  display: grid;
  gap: 10px;
}

.plan-row {
  display: grid;
  grid-template-columns: 92px 1fr 40px;
  gap: 10px;
  align-items: center;
}

.plan-row strong,
.stack-item strong {
  display: block;
  color: var(--navy);
}

.plan-row span,
.stack-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 12px;
}

.plan-row b {
  color: var(--cyan);
  font-size: 13px;
  text-align: right;
}

.plan-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

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

.stack-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px;
}

.stack-item em {
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  padding: 4px 8px;
}

.module-progress {
  margin-top: 18px;
}

.compact-modules .module-card {
  min-height: 136px;
}

.membership-summary {
  margin-bottom: 18px;
}

.membership-panel {
  display: grid;
  gap: 18px;
}

.membership-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.membership-tab {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--navy);
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.membership-tab strong {
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  padding: 3px 9px;
}

.membership-tab.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--cyan-light);
}

.membership-tab.active strong {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.membership-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr);
  gap: 12px;
}

.search-field,
.sort-field {
  display: grid;
  gap: 8px;
}

.search-field span,
.sort-field span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-block {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--cyan-light);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.member-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.member-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 22px rgba(16, 56, 92, 0.12);
  transform: translateY(-1px);
}

.member-card.member-balance-green {
  border-color: rgba(39, 174, 96, 0.68);
  border-left: 7px solid var(--green);
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.2), #ffffff 58%);
  box-shadow: 0 10px 26px rgba(39, 174, 96, 0.14);
}

.member-card.member-balance-amber {
  border-color: rgba(224, 123, 42, 0.72);
  border-left: 7px solid var(--amber);
  background: linear-gradient(135deg, rgba(224, 123, 42, 0.22), #ffffff 58%);
  box-shadow: 0 10px 26px rgba(224, 123, 42, 0.15);
}

.member-card.member-balance-red {
  border-color: rgba(192, 57, 43, 0.78);
  border-left: 7px solid var(--red);
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.23), #ffffff 58%);
  box-shadow: 0 10px 26px rgba(192, 57, 43, 0.16);
}

.member-card.member-balance-green .member-plan-row strong {
  color: var(--green);
}

.member-card.member-balance-amber .member-plan-row strong {
  color: var(--amber);
}

.member-card.member-balance-red .member-plan-row strong {
  color: var(--red);
}

.member-card-head,
.member-plan-row,
.member-foot,
.detail-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.member-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
}

.member-card h3,
.game-card h3,
.whatsapp-card h4 {
  font-family: Barlow, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

.member-card p,
.member-foot,
.detail-split span {
  margin: 4px 0 0;
  color: var(--muted-light);
  font-size: 12px;
}

.member-plan-row {
  align-items: center;
}

.member-plan-row strong,
.detail-split strong {
  color: var(--navy);
}

.member-status,
.plan-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 27px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.member-status.active {
  background: var(--green-soft);
  color: var(--green);
}

.member-status.expiring {
  background: var(--amber-soft);
  color: var(--amber);
}

.member-status.paused {
  background: rgba(92, 61, 122, 0.1);
  color: var(--purple);
}

.member-status.expired {
  background: rgba(176, 45, 45, 0.12);
  color: #b02d2d;
}

.member-status.inactive {
  background: rgba(176, 45, 45, 0.14);
  color: #9d2525;
}

.plan-badge {
  border: 1px solid var(--line-strong);
  color: var(--cyan);
}

.plan-badge.solo-mode {
  background: #e8f9fc;
}

.plan-badge.multiplayer-mode {
  background: rgba(92, 61, 122, 0.08);
  color: var(--purple);
  border-color: rgba(122, 85, 160, 0.35);
}

.usage-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

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

.usage-bar.large {
  height: 11px;
  width: 100%;
  margin: 16px 0 10px;
}

.empty-card {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.member-detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.member-profile {
  display: grid;
  justify-items: start;
}

.profile-avatar-large {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  background: rgba(26, 154, 181, 0.12);
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}

.member-profile h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}

.member-profile p {
  margin: 4px 0 14px;
  color: var(--muted-light);
}

.detail-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-table {
  display: grid;
  gap: 0;
}

.game-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
}

.detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.detail-row:first-child {
  padding-top: 0;
}

.detail-row span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-row strong {
  color: var(--ink);
  font-weight: 600;
}

.detail-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
}

.membership-form-panel {
  max-width: 860px;
}

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

.membership-form .wide,
.membership-form .form-actions {
  grid-column: 1 / -1;
}

.form-actions span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.hours-summary {
  margin-bottom: 18px;
}

.hours-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.hours-main,
.hours-side {
  display: grid;
  gap: 18px;
}

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

.hours-form .wide,
.hours-form .form-actions {
  grid-column: 1 / -1;
}

.modal-scrim {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(16, 56, 92, 0.48);
  padding: 24px;
}

.table-reservation-scrim {
  background: rgba(16, 56, 92, 0.78);
}

.member-hour-modal,
.game-tracking-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  margin: 0;
}

.member-hour-modal .panel-head,
.game-tracking-modal .panel-head {
  align-items: center;
}

.member-hour-modal .modal-close,
.game-tracking-modal .modal-close {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--navy);
}

.member-hour-modal .modal-close:hover,
.game-tracking-modal .modal-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.balance-preview {
  display: grid;
  justify-items: start;
}

.balance-preview h3 {
  margin-top: 0;
}

.balance-preview p {
  margin: 4px 0 0;
  color: var(--muted-light);
}

.balance-meta {
  display: grid;
  gap: 3px;
  width: 100%;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.balance-meta span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.balance-meta strong {
  color: var(--navy);
}

.balance-list,
.hour-log-list {
  display: grid;
  gap: 10px;
}

.balance-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px;
}

.balance-row strong {
  display: block;
  color: var(--navy);
}

.balance-row small {
  display: block;
  color: var(--muted-light);
  margin-top: 3px;
}

.hour-log-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 13px;
}

.hour-log-row strong {
  display: block;
  color: var(--navy);
}

.hour-log-row span,
.hour-log-meta small {
  display: block;
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 12px;
}

.hour-log-meta {
  display: grid;
  justify-items: end;
  flex: 0 0 auto;
}

.hour-log-meta b {
  color: var(--cyan);
  font-size: 18px;
}

.table-wrap {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 13px;
}

.history-table thead {
  background: var(--navy);
}

.history-table th {
  color: var(--cyan-light);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.history-table th,
.history-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
}

.history-table td {
  color: var(--ink);
}

.tracking-summary {
  margin-bottom: 18px;
}

.timer-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.timer-summary-card {
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(16, 56, 92, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.timer-summary-card span,
.timer-summary-card small {
  display: block;
  color: var(--muted);
}

.timer-summary-card strong {
  display: block;
  margin: 6px 0;
  color: var(--navy);
  font-size: 32px;
  line-height: 1;
}

.timer-notice {
  margin-bottom: 16px;
}

.timer-alarm-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(185, 28, 28, 0.2);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff4f4, #ffe2e2);
  box-shadow: 0 18px 44px rgba(185, 28, 28, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #7f1d1d;
}

.timer-alarm-panel strong,
.timer-alarm-panel span {
  display: block;
}

.timer-section {
  width: 100%;
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid rgba(16, 56, 92, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 250, 0.94));
  box-shadow: 0 20px 52px rgba(16, 56, 92, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.timer-section-head {
  margin-bottom: 16px;
}

.timer-section-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(16, 56, 92, 0.08);
  color: var(--navy);
  font-weight: 800;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.active-timer-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.inactive-timer-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.table-timer-filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.table-timer-filter-panel h3,
.table-timer-filter-panel p {
  margin: 0;
}

.timer-branch-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.timer-branch-launch {
  min-width: 230px;
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(26, 154, 181, 0.32);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, #155f8f 100%);
  color: #ffffff;
  padding: 16px 18px;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(16, 56, 92, 0.18);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.timer-branch-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(16, 56, 92, 0.24);
}

.timer-branch-launch strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.1;
}

.timer-branch-launch span {
  color: var(--cyan-light);
  font-size: 12px;
  font-weight: 900;
}

.timer-card {
  position: relative;
  overflow: hidden;
  min-height: 292px;
  padding: 20px;
  border: 1px solid rgba(16, 56, 92, 0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 56, 92, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.compact-inactive-timer {
  min-height: 118px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.compact-inactive-timer .timer-table-name {
  font-size: 22px;
}

.compact-timer-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
}

.compact-timer-meta strong {
  color: var(--navy);
}

.timer-start-modal {
  width: min(720px, calc(100vw - 32px));
  margin: 5vh auto 0;
}

.timer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68), inset 0 -22px 44px rgba(16, 56, 92, 0.05);
}

.timer-card-top,
.timer-game-line,
.timer-meta-row,
.timer-actions,
.timer-footer-actions,
.timer-custom-extend,
.timer-duration-row {
  position: relative;
  z-index: 1;
}

.timer-card-top,
.timer-game-line,
.timer-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.timer-table-name {
  display: block;
  color: var(--navy);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.timer-card small,
.timer-meta-row,
.timer-game-line span {
  color: var(--muted);
}

.timer-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(16, 56, 92, 0.08);
  color: var(--navy);
  font-weight: 800;
  white-space: nowrap;
}

.timer-status.ready {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.timer-clock {
  position: relative;
  z-index: 1;
  margin: 18px 0 14px;
  color: var(--navy);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.timer-game-line strong {
  color: var(--text);
  font-size: 18px;
}

.timer-meta-row {
  margin-top: 12px;
  font-size: 13px;
}

.timer-actions,
.timer-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.timer-custom-extend {
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.timer-custom-extend label,
.timer-duration-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.timer-custom-extend input {
  min-width: 0;
}

.timer-start-form [hidden] {
  display: none !important;
}

.timer-start-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.timer-start-form .field {
  margin: 0;
}

.timer-duration-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 12px;
}

.timer-duration-row label {
  display: grid;
  gap: 7px;
}

.timer-duration-row label[hidden] + label {
  grid-column: 1 / -1;
}

.timer-start-actions {
  margin-top: 2px;
}

.timer-green {
  background: linear-gradient(145deg, #f0fff6, #ffffff);
  border-color: rgba(22, 163, 74, 0.24);
}

.timer-green .timer-status {
  background: rgba(22, 163, 74, 0.13);
  color: #166534;
}

.timer-amber {
  background: linear-gradient(145deg, #fffbeb, #ffffff);
  border-color: rgba(217, 119, 6, 0.24);
}

.timer-amber .timer-status {
  background: rgba(217, 119, 6, 0.14);
  color: #92400e;
}

.timer-red {
  background: linear-gradient(145deg, #fff1f2, #ffffff);
  border-color: rgba(220, 38, 38, 0.25);
}

.timer-red .timer-status {
  background: rgba(220, 38, 38, 0.14);
  color: #991b1b;
}

.timer-open {
  background: linear-gradient(145deg, #eef8ff, #ffffff);
  border-color: rgba(42, 184, 212, 0.28);
}

.timer-open .timer-status {
  background: rgba(42, 184, 212, 0.15);
  color: #075985;
}

.tracking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.tracking-main,
.tracking-side {
  display: grid;
  gap: 18px;
}

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

.tracking-form .wide,
.tracking-form .form-actions {
  grid-column: 1 / -1;
}

.tracking-session-list,
.branch-load-list,
.guru-list {
  display: grid;
  gap: 10px;
}

.reservations-layout,
.reservation-tables-layout,
.tables-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.reservations-main,
.reservations-side,
.reservation-tables-main,
.reservation-tables-side,
.tables-main,
.tables-side,
.reservation-list,
.table-card-grid {
  display: grid;
  gap: 12px;
}

.reservations-main,
.reservations-side,
.reservation-tables-main,
.reservation-tables-side,
.tables-main,
.tables-side {
  gap: 18px;
}

.tables-summary {
  margin-bottom: 18px;
}

.table-branch-panel {
  margin-bottom: 18px;
}

.table-branch-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  align-items: start;
}

.table-area-section {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px;
}

.table-area-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.table-area-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
}

.table-area-head p {
  margin: 2px 0 0;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 800;
}

.table-area-section .table-card-grid {
  gap: 8px;
}

.table-area-section .table-card {
  gap: 8px;
  padding: 10px;
}

.table-area-section .table-card-main {
  gap: 3px;
}

.table-area-section .table-card-main strong {
  font-size: 15px;
}

.table-area-section .table-card-main span,
.table-area-section .table-card-main small {
  font-size: 11px;
  line-height: 1.25;
}

.table-area-section .table-card-actions {
  gap: 5px;
}

.table-area-section .table-card button {
  min-height: 26px;
  padding: 5px 8px;
  font-size: 10px;
}

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

.reservation-earliest-note {
  margin-bottom: 14px;
  border: 1px solid rgba(26, 154, 181, 0.22);
  border-radius: 10px;
  background: rgba(26, 154, 181, 0.08);
  color: var(--navy);
  font-weight: 800;
  padding: 10px 12px;
}

.reservation-form .wide,
.reservation-form .form-actions {
  grid-column: 1 / -1;
}

.reservation-card,
.table-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 14px;
}

.reservation-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.reservation-card h4 {
  margin: 0;
  color: var(--navy);
  font-family: Barlow, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.15;
}

.reservation-card p,
.reservation-request,
.table-card span,
.table-card small {
  margin: 4px 0 0;
  color: var(--muted-light);
  font-size: 12px;
}

.reservation-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.reservation-tabs-panel {
  margin-bottom: 14px;
}

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

.reservation-tab {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--navy);
  padding: 12px 14px;
  cursor: pointer;
}

.reservation-tab span {
  font-size: 13px;
  font-weight: 900;
}

.reservation-tab strong {
  display: inline-grid;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--cyan);
  font-size: 15px;
}

.reservation-tab.active {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(38, 185, 205, 0.12), #ffffff);
  box-shadow: 0 12px 26px rgba(16, 56, 92, 0.08);
}

.notice-text {
  margin: 10px 0 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.reservation-archive-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.reservation-highlight-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(160px, 1.3fr);
  gap: 10px;
}

.reservation-highlight-box {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(38, 185, 205, 0.26);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(38, 185, 205, 0.12), rgba(255, 255, 255, 0.96));
  padding: 10px 12px;
}

.reservation-highlight-box b {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reservation-highlight-box strong {
  min-width: 0;
  overflow: hidden;
  color: var(--navy);
  font-size: 20px;
  font-weight: 950;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reservation-meta-grid span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.reservation-meta-grid b {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reservation-meta-grid strong,
.table-card strong {
  color: var(--navy);
  font-size: 12px;
}

.reservation-status {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
}

.reservation-status.confirmed,
.reservation-status.completed {
  background: var(--green-soft);
  color: var(--green);
}

.reservation-status.pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.reservation-status.cancelled {
  background: rgba(192, 57, 43, 0.1);
  color: var(--red);
}

.reservation-status.deleted {
  background: rgba(16, 56, 92, 0.1);
  color: var(--navy);
}

.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reservation-actions a,
.reservation-actions button,
.table-card button {
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  color: var(--navy);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.reservation-actions button:hover,
.reservation-actions a:hover,
.table-card button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.table-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.special-table-card {
  border-color: rgba(197, 112, 33, 0.55);
  background: linear-gradient(135deg, rgba(255, 244, 230, 0.95), #ffffff);
  box-shadow: 0 12px 28px rgba(197, 112, 33, 0.12);
}

.lounge-table-card {
  border-color: rgba(126, 34, 206, 0.56);
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.96), #ffffff);
  box-shadow: 0 12px 28px rgba(126, 34, 206, 0.14);
}

.table-card-main {
  display: grid;
  gap: 5px;
}

.table-card-main strong {
  font-size: 18px;
  line-height: 1.1;
}

.table-card-main span,
.table-card-main small {
  display: block;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.table-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.table-floor {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(rgba(16, 56, 92, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 56, 92, 0.055) 1px, transparent 1px),
    var(--panel-soft);
  background-size: 34px 34px;
  margin-bottom: 12px;
}

.floor-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.floor-table {
  position: absolute;
  width: var(--table-width, 124px);
  height: var(--table-height, 82px);
  transform: translate(-50%, -50%);
  cursor: grab;
  user-select: none;
}

.floor-table[draggable="false"] {
  cursor: default;
}

.floor-table-core {
  position: absolute;
  inset: 16px 20px;
  display: grid;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 56, 92, 0.13);
  text-align: center;
}

.floor-table-core strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
}

.floor-table-core small {
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 800;
}

.floor-table em {
  position: absolute;
  right: 2px;
  bottom: -5px;
  max-width: 104px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  padding: 3px 7px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floor-reservation-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--amber);
  color: #ffffff;
  padding: 4px 7px;
  box-shadow: 0 8px 16px rgba(16, 56, 92, 0.18);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.chair {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 2px 6px rgba(16, 56, 92, 0.15);
}

.chair-0 { top: 4px; left: 30px; }
.chair-1 { top: 4px; right: 30px; }
.chair-2 { bottom: 4px; left: 30px; }
.chair-3 { bottom: 4px; right: 30px; }
.chair-4 { top: 34px; left: 1px; }
.chair-5 { top: 34px; right: 1px; }
.chair-6 { top: 34px; left: 19px; }
.chair-7 { top: 34px; right: 19px; }

.floor-table.available .floor-table-core {
  border-color: var(--green);
}

.floor-table.has-upcoming .floor-table-core {
  border-color: var(--amber);
  box-shadow: 0 12px 26px rgba(197, 112, 33, 0.2);
}

.floor-table.special-table .floor-table-core {
  border-color: var(--amber);
  border-width: 3px;
  background: linear-gradient(135deg, #fff6e8, #ffffff);
  box-shadow: 0 16px 32px rgba(197, 112, 33, 0.24);
}

.floor-table.special-table::after {
  content: "Special";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.floor-table.lounge-table .floor-table-core {
  border-color: #7e22ce;
  border-width: 3px;
  background: linear-gradient(135deg, #f5f3ff, #ffffff);
  box-shadow: 0 16px 32px rgba(126, 34, 206, 0.24);
}

.floor-table.lounge-table .floor-table-core strong {
  color: #4c1d95;
}

.floor-table.lounge-table .chair {
  background: #7e22ce;
}

.floor-table.lounge-table::after {
  content: "Lounge";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #7e22ce;
  color: #ffffff;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.floor-table.active .floor-table-core,
.floor-table.reserved .floor-table-core {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.floor-table.maintenance .floor-table-core {
  border-color: var(--red);
  background: rgba(192, 57, 43, 0.08);
}

.floor-table.hidden {
  opacity: 0.45;
}

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

.reservation-block-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 12px;
}

.reservation-block-card strong,
.reservation-block-card span,
.reservation-block-card small {
  display: block;
}

.reservation-block-card strong {
  color: var(--navy);
  font-size: 14px;
}

.reservation-block-card span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.reservation-block-card small {
  color: var(--muted-light);
  font-size: 12px;
}

.reservation-block-card button {
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  color: var(--red);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.table-reservation-modal {
  max-width: 760px;
}

.tracking-session-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 13px;
}

.table-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 900;
}

.tracking-session-row strong,
.guru-row strong {
  display: block;
  color: var(--navy);
}

.tracking-session-row span,
.tracking-session-row small,
.guru-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 12px;
}

.tracking-session-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.session-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.session-status.active {
  background: var(--green-soft);
  color: var(--green);
}

.session-status.completed {
  background: var(--accent-soft);
  color: var(--cyan);
}

.session-status.reserved {
  background: var(--amber-soft);
  color: var(--amber);
}

.session-status.cancelled {
  background: rgba(192, 57, 43, 0.1);
  color: var(--red);
}

.session-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.session-actions button {
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
}

.session-actions button:hover {
  border-color: var(--cyan);
  background: var(--accent-soft);
  color: var(--cyan);
}

.branch-load-row,
.guru-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px;
}

.branch-load-row span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--cyan);
  font-weight: 900;
}

.branch-load-row strong {
  color: var(--navy);
}

.guru-row {
  justify-content: flex-start;
}

.calendar-summary {
  margin-bottom: 18px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.calendar-main,
.calendar-side {
  display: grid;
  gap: 18px;
}

.calendar-panel {
  overflow: hidden;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.weekday-row {
  margin-bottom: 8px;
}

.weekday-row span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 6px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 10px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.calendar-day:hover {
  border-color: var(--cyan);
  background: #ffffff;
  transform: translateY(-1px);
}

.calendar-day.today {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(26, 154, 181, 0.18);
}

.calendar-day.blank {
  background: transparent;
  border-color: transparent;
}

.calendar-day span {
  color: var(--navy);
  font-weight: 900;
}

.calendar-day small {
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--cyan);
  padding: 5px 6px;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day em {
  color: var(--muted-light);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.calendar-stat-card {
  min-height: 190px;
}

.calendar-stat-foot {
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 700;
}

.calendar-day-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  margin: 0;
}

.calendar-day-modal .panel-head {
  align-items: center;
}

.calendar-day-modal .modal-close {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--navy);
}

.calendar-day-modal .modal-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.calendar-day-event-list {
  margin-top: 4px;
}

.event-list,
.event-type-list {
  display: grid;
  gap: 10px;
}

.event-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px;
}

.event-card:hover {
  border-color: var(--cyan);
  background: #ffffff;
}

.event-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
}

.event-card p {
  margin: 4px 0 0;
  color: var(--muted-light);
  font-size: 12px;
}

.event-card > strong {
  color: var(--cyan);
  white-space: nowrap;
}

.event-date-box {
  width: 50px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: #ffffff;
  line-height: 1;
}

.event-date-box strong {
  font-size: 20px;
}

.event-date-box span {
  color: var(--cyan-light);
  font-size: 11px;
  font-weight: 900;
}

.event-date-box.large {
  width: 74px;
  height: 80px;
}

.event-date-box.large strong {
  font-size: 30px;
}

.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.event-type,
.event-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
}

.event-type {
  background: var(--accent-soft);
  color: var(--cyan);
}

.event-color-cyan {
  background: var(--accent-soft) !important;
  color: var(--cyan) !important;
}

.event-color-green {
  background: var(--green-soft) !important;
  color: var(--green) !important;
}

.event-color-amber {
  background: var(--amber-soft) !important;
  color: var(--amber) !important;
}

.event-color-purple {
  background: rgba(92, 61, 122, 0.1) !important;
  color: var(--purple) !important;
}

.event-color-navy {
  background: rgba(16, 56, 92, 0.1) !important;
  color: var(--navy) !important;
}

.event-status.confirmed {
  background: var(--green-soft);
  color: var(--green);
}

.event-status.tentative {
  background: var(--amber-soft);
  color: var(--amber);
}

.event-status.cancelled {
  background: rgba(192, 57, 43, 0.1);
  color: var(--red);
}

.event-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px;
}

.event-type-row span,
.event-type-row strong {
  color: var(--navy);
  font-weight: 900;
}

.event-type-row span[class*="event-color-"] {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
}

.calendar-form-panel {
  max-width: 900px;
}

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

.calendar-form .wide,
.calendar-form .form-actions {
  grid-column: 1 / -1;
}

.calendar-detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.event-action-panel {
  max-width: 920px;
}

.event-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.event-postpone-field {
  margin: 0;
}

.event-action-note {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.event-profile {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.event-profile h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}

.event-profile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.whatsapp-summary {
  margin-bottom: 18px;
}

.whatsapp-tabs-panel {
  margin-bottom: 14px;
}

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

.whatsapp-tab {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--navy);
  padding: 12px 14px;
  cursor: pointer;
}

.whatsapp-tab span {
  font-size: 13px;
  font-weight: 900;
}

.whatsapp-tab strong {
  display: inline-grid;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--cyan);
  font-size: 15px;
}

.whatsapp-tab.active {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(38, 185, 205, 0.12), #ffffff);
  box-shadow: 0 12px 26px rgba(16, 56, 92, 0.08);
}

.whatsapp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.whatsapp-main,
.whatsapp-side {
  display: grid;
  gap: 18px;
}

.whatsapp-message-list,
.template-list {
  display: grid;
  gap: 10px;
}

.whatsapp-card,
.template-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 13px;
}

.membership-whatsapp-panel {
  border-color: rgba(39, 174, 96, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f0faf2 100%);
}

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

.whatsapp-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
}

.whatsapp-card p,
.template-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.whatsapp-card-head p {
  margin-top: 4px;
  color: var(--muted-light);
  font-size: 12px;
}

.whatsapp-message-preview {
  border-left: 3px solid var(--cyan);
  background: #ffffff;
  padding: 10px 12px;
  white-space: pre-line;
}

.whatsapp-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.whatsapp-status.pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.whatsapp-status.sent {
  background: var(--green-soft);
  color: var(--green);
}

.whatsapp-status.skipped {
  background: rgba(192, 57, 43, 0.1);
  color: var(--red);
}

.whatsapp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.whatsapp-actions button {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
  padding: 10px 12px;
}

.whatsapp-actions button:hover {
  border-color: var(--cyan);
  background: var(--accent-soft);
  color: var(--cyan);
}

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

.whatsapp-compose-form .wide,
.whatsapp-compose-form .form-actions {
  grid-column: 1 / -1;
}

.template-card strong {
  display: block;
  color: var(--navy);
}

.template-card span {
  display: block;
  margin-top: 4px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.template-card p {
  font-size: 12px;
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-actions a,
.template-actions button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
  padding: 7px 10px;
  text-decoration: none;
}

.template-actions button {
  color: var(--red);
}

.whatsapp-template-form-panel {
  max-width: 900px;
}

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

.whatsapp-template-form .wide,
.whatsapp-template-form .form-actions {
  grid-column: 1 / -1;
}

.template-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.template-token-row span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cyan);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
}

.admin-summary {
  margin-bottom: 18px;
}

.sync-status {
  margin-bottom: 18px;
  border-color: rgba(39, 174, 96, 0.2);
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.sync-status.error {
  border-color: rgba(192, 57, 43, 0.18);
  background: rgba(192, 57, 43, 0.08);
  color: var(--red);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.admin-main,
.admin-side {
  display: grid;
  gap: 18px;
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-table-list,
.admin-stack-list {
  display: grid;
  gap: 10px;
}

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

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-actions a,
.admin-row-actions button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
}

.admin-row-actions a:hover,
.admin-row-actions button:hover {
  border-color: var(--cyan);
  background: var(--accent-soft);
  color: var(--cyan);
}

.admin-row strong,
.admin-branch-card strong,
.admin-mini-card strong {
  display: block;
  color: var(--navy);
}

.admin-row span,
.admin-branch-card small,
.admin-mini-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 12px;
}

.admin-mini-card span.event-type {
  display: inline-flex;
  margin-top: 8px;
}

.admin-mini-card small {
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 800;
}

.role-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--cyan) !important;
  padding: 5px 9px;
  font-size: 11px !important;
  font-weight: 900;
}

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

.admin-branch-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px;
}

.admin-mini-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px;
}

.admin-mini-card b {
  color: var(--cyan);
  font-size: 12px;
}

.admin-form-panel {
  max-width: 900px;
}

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

.admin-form .wide,
.admin-form .form-actions {
  grid-column: 1 / -1;
}

.color-input-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 10px;
}

.color-input-row input[type="color"] {
  width: 42px;
  height: 32px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.color-input-row span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.analytics-filter-panel,
.analytics-summary {
  margin-bottom: 18px;
}

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

.analytics-visual-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.analytics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.analytics-main,
.analytics-side,
.analytics-row-list,
.analytics-table-list,
.analytics-insight-grid {
  display: grid;
  gap: 10px;
}

.analytics-main,
.analytics-side {
  gap: 18px;
}

.analytics-row,
.analytics-game-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 58px 90px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px;
}

.analytics-game-row {
  grid-template-columns: minmax(0, 1fr) 150px 46px 80px;
}

.analytics-row strong,
.analytics-game-row strong,
.insight-tile strong {
  display: block;
  color: var(--navy);
}

.analytics-row span,
.analytics-game-row span,
.insight-tile span,
.insight-tile small {
  display: block;
  color: var(--muted-light);
  font-size: 12px;
}

.analytics-row b,
.analytics-game-row b {
  color: var(--cyan);
  font-size: 15px;
}

.analytics-row small,
.analytics-game-row small {
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.analytics-bar {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 56, 92, 0.09);
}

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

.analytics-master-list .guru-row {
  align-items: flex-start;
}

.analytics-master-list .guru-row > div {
  width: 100%;
}

.analytics-master-list .analytics-bar {
  margin-top: 8px;
}

.visual-card {
  min-height: 170px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.visual-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
}

.visual-card p {
  margin: 6px 0 0;
  color: var(--muted-light);
  font-size: 12px;
}

.donut-chart {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) var(--value), rgba(16, 56, 92, 0.1) 0);
}

.donut-chart.green {
  background: conic-gradient(var(--green) var(--value), rgba(16, 56, 92, 0.1) 0);
}

.donut-chart span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  font-size: 19px;
  font-weight: 900;
}

.pie-card {
  grid-template-columns: minmax(0, 0.9fr) auto;
}

.pie-chart {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--pie));
}

.pie-chart span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.pie-legend {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.pie-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pie-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.source-pie-card {
  grid-template-columns: minmax(0, 0.9fr) minmax(220px, 1.1fr);
}

.source-pie-wrap {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.source-pie {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--source-segments));
}

.source-pie span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.source-pie-legend {
  display: grid;
  gap: 7px;
}

.source-pie-legend div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 800;
}

.source-pie-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.source-pie-legend strong {
  color: var(--navy);
  font-size: 12px;
}

.visual-branch-bars {
  display: grid;
  gap: 10px;
}

.visual-branch-bars > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

.visual-branch-bars span,
.visual-branch-bars a,
.visual-branch-bars strong {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.visual-branch-bars a {
  text-decoration: none;
}

.visual-list-card {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.visual-list-card .visual-branch-bars > div {
  grid-template-columns: minmax(74px, 118px) minmax(0, 1fr) 36px;
}

.tug-card {
  align-content: start;
}

.tug-visual {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.tug-visual span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.tug-visual b {
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(16, 56, 92, 0.12);
  background: linear-gradient(90deg, var(--cyan) 0 var(--left), var(--green) var(--left) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.tug-values {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 8px;
  color: var(--navy);
}

.tug-values strong:last-child {
  text-align: right;
}

.tug-values small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.embedded-sales-panel {
  padding: 0;
  overflow: hidden;
  min-height: calc(100vh - 170px);
}

.embedded-sales-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - 170px);
  border: 0;
  background: #fff;
}

.visual-branch-bars .wide-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 56, 92, 0.09);
}

.visual-bar b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--cyan);
}

.visual-bar.green b {
  background: var(--green);
}

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

.event-swatch {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--navy);
  padding: 8px 10px;
  text-decoration: none;
}

.event-swatch b {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.event-swatch span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.event-swatch strong {
  color: var(--muted-light);
  font-size: 12px;
}

.rhythm-card,
.trend-card,
.bubble-card {
  grid-template-columns: minmax(0, 1fr);
}

.rhythm-bars {
  height: 96px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.rhythm-bars div {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 7px;
  align-items: end;
}

.rhythm-bars b {
  min-height: 8px;
  display: block;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--cyan), var(--green));
  box-shadow: 0 10px 18px rgba(26, 154, 181, 0.18);
}

.rhythm-bars span {
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.trend-wrap {
  display: grid;
  gap: 6px;
}

.trend-svg {
  width: 100%;
  height: 118px;
  overflow: visible;
}

.trend-fill {
  fill: rgba(26, 154, 181, 0.12);
  stroke: none;
}

.trend-line {
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.trend-svg circle {
  fill: #ffffff;
  stroke: var(--navy);
  stroke-width: 3;
}

.trend-labels {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.trend-labels span {
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 800;
}

.game-bubbles {
  min-height: 120px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.game-bubbles span {
  width: var(--size);
  height: var(--size);
  min-width: 48px;
  min-height: 48px;
  max-width: 92px;
  max-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(26, 154, 181, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffffff, #dff6f8 70%);
  box-shadow: 0 10px 22px rgba(16, 56, 92, 0.12);
  color: var(--navy);
  text-align: center;
}

.game-bubbles b {
  font-size: 17px;
  line-height: 1;
}

.game-bubbles small {
  max-width: 72px;
  overflow: hidden;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px;
}

.insight-tile strong {
  margin-top: 4px;
  font-size: 22px;
}

.insight-tile small {
  margin-top: 4px;
}

.games-summary {
  margin-bottom: 18px;
}

.games-panel {
  display: grid;
  gap: 18px;
}

.bulk-import-panel {
  border-color: rgba(26, 154, 181, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf4 100%);
}

.bulk-import-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.template-column-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.template-column-grid span {
  min-height: 40px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}

.games-toolbar {
  display: grid;
  gap: 12px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.game-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.game-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 22px rgba(16, 56, 92, 0.12);
  transform: translateY(-1px);
}

.game-cover {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-soft);
}

.game-cover.card {
  height: 122px;
}

.game-cover.detail {
  height: 230px;
}

.game-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.game-cover.placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(26, 154, 181, 0.16), rgba(39, 174, 96, 0.13)),
    var(--panel-soft);
}

.game-cover.placeholder span {
  color: var(--navy);
  font-size: 30px;
  font-weight: 900;
}

.game-card-head,
.game-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.game-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
}

.game-card p,
.game-foot {
  margin: 4px 0 0;
  color: var(--muted-light);
  font-size: 12px;
}

.game-foot strong {
  color: var(--navy);
}

.game-foot .game-unavailable-until {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.game-inventory-actions .admin-grid {
  gap: 42px;
}

.game-inventory-actions .admin-form {
  align-content: start;
}

.catalogue-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.catalogue-stats span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 8px;
}

.catalogue-stats small {
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalogue-stats b {
  color: var(--navy);
  font-size: 14px;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.game-tags span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--cyan);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.mechanic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mechanic-tags span {
  border: 1px solid rgba(92, 61, 122, 0.2);
  border-radius: 8px;
  background: rgba(92, 61, 122, 0.08);
  color: var(--purple);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
}

.complexity-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.complexity-badge.low {
  background: var(--green-soft);
  color: var(--green);
}

.complexity-badge.medium {
  background: var(--amber-soft);
  color: var(--amber);
}

.complexity-badge.heavy {
  background: rgba(192, 57, 43, 0.1);
  color: var(--red);
}

.copy-grid,
.copy-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--navy);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.copy-pill b {
  color: var(--cyan);
}

.copy-pill.empty {
  opacity: 0.48;
}

.game-detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.game-profile {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.game-profile h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}

.game-profile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.copy-detail-grid {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.game-form-panel {
  max-width: 900px;
}

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

.game-form .wide,
.game-form .form-actions {
  grid-column: 1 / -1;
}

.panel {
  padding: 20px;
  margin-bottom: 18px;
}

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

.panel h3,
.panel-head h3,
.planned-panel h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
}

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

.module-card {
  min-height: 158px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-content: start;
  padding: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.module-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 22px rgba(16, 56, 92, 0.12);
  transform: translateY(-1px);
}

.module-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

.module-card .status-pill {
  grid-column: 1 / -1;
  margin-top: auto;
}

.module-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--cyan);
  font-weight: 800;
}

.module-icon.large {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 14px;
  font-size: 20px;
}

.planned-panel {
  max-width: 720px;
}

.placeholder-actions {
  margin-top: 18px;
}

.foundation-notes {
  max-width: 760px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.check-list span {
  flex: 0 0 auto;
  color: var(--cyan);
  font-weight: 800;
}

h1,
h2,
h3,
h4,
.brand-name,
.login-brand h1,
.page-head h2,
.panel h3,
.panel-head h3,
.module-card h4,
.balance-preview h3,
.event-card h4,
.event-profile h3,
.visual-card h3 {
  color: var(--ink);
  font-family: Sacramento, cursive;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
}

.panel h3,
.panel-head h3,
.event-card h4,
.module-card h4 {
  font-size: 30px;
}

.sidebar .brand-name {
  color: var(--cyan-light);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 14px rgba(42, 184, 212, 0.36);
}

.login-panel,
.panel,
.metric-card,
.branch-card,
.quick-action,
.stack-item,
.member-card,
.tracking-session-row,
.event-card,
.whatsapp-card,
.admin-row,
.admin-mini-card,
.admin-branch-card,
.game-card,
.insight-tile,
.visual-card {
  border-radius: 8px;
}

@media (max-width: 1020px) {
  .metric-grid,
  .module-grid,
  .dashboard-visual-grid,
  .analytics-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .member-detail-grid {
    grid-template-columns: 1fr;
  }

  .hours-layout {
    grid-template-columns: 1fr;
  }

  .tracking-layout {
    grid-template-columns: 1fr;
  }

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

  .timer-grid,
  .active-timer-grid {
    grid-template-columns: 1fr;
  }

  .timer-alarm-panel,
  .timer-card-top,
  .timer-game-line,
  .timer-meta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-layout,
  .calendar-detail-grid,
  .event-action-grid,
  .reservations-layout,
  .reservation-tables-layout,
  .tables-layout,
  .whatsapp-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .game-detail-grid {
    grid-template-columns: 1fr;
  }

  .game-detail-columns {
    grid-template-columns: 1fr;
  }

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

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

  .sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: min(286px, 86vw);
    transform: translateX(-100%);
    transition: transform 180ms ease;
    box-shadow: var(--shadow);
    overflow-y: auto;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .nav-scrim {
    position: fixed;
    z-index: 25;
    inset: 0;
    display: none;
    border: 0;
    background: rgba(16, 56, 92, 0.42);
  }

  body.nav-open .nav-scrim {
    display: block;
  }

  .sidebar-close {
    position: absolute;
    top: 16px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(42, 184, 212, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--cyan-light);
    font-weight: 900;
    cursor: pointer;
  }

  .menu-button {
    display: inline-grid;
  }

  .content {
    padding: 22px 18px;
  }

  .branch-strip {
    display: none;
  }
}

@media (max-width: 620px) {
  .timer-summary-grid,
  .timer-duration-row,
  .timer-custom-extend {
    grid-template-columns: 1fr;
  }

  .timer-section {
    padding: 14px;
    border-radius: 22px;
  }

  .timer-card {
    min-height: 0;
    padding: 16px;
    border-radius: 22px;
  }

  .timer-clock {
    font-size: 44px;
  }

  .topbar {
    height: 54px;
    padding: 0 12px;
  }

  .content {
    padding: 16px 12px 28px;
  }

  .panel {
    padding: 16px;
    margin-bottom: 14px;
  }

  .login-panel {
    padding: 24px;
  }

  .page-head {
    display: grid;
    gap: 12px;
  }

  .page-head h2 {
    font-size: 28px;
  }

  .page-actions,
  .form-actions,
  .admin-head-actions,
  .detail-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-actions .button,
  .form-actions .button,
  .admin-head-actions .button,
  .detail-actions .button {
    width: 100%;
  }

  .queue-actions,
  .calendar-month-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .reservation-tabs,
  .whatsapp-tabs,
  .reservation-archive-filters,
  .reservation-highlight-row {
    grid-template-columns: 1fr;
  }

  .metric-card {
    padding: 16px;
  }

  .metric-card strong {
    font-size: 28px;
  }

  input,
  select,
  textarea,
  button {
    min-width: 0;
  }

  .metric-grid,
  .module-grid,
  .quick-grid,
  .action-strip,
  .admin-action-strip,
  .branch-grid,
  .member-grid,
  .membership-form,
  .hours-form,
  .tracking-form,
  .calendar-form,
  .reservation-form,
  .whatsapp-compose-form,
  .whatsapp-template-form,
  .admin-form,
  .game-grid,
  .game-form,
  .template-column-grid,
  .catalogue-stats {
    grid-template-columns: 1fr;
  }

  .tracking-session-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .tracking-session-meta {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .session-actions {
    justify-content: flex-start;
  }

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

  .weekday-row {
    display: none;
  }

  .calendar-day.blank {
    display: none;
  }

  .event-card {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .event-card > strong {
    grid-column: 1 / -1;
  }

  .calendar-day {
    min-height: 118px;
  }

  .admin-card-grid,
  .admin-row,
  .analytics-row,
  .analytics-game-row {
    grid-template-columns: 1fr;
  }

  .admin-row-actions,
  .session-actions,
  .whatsapp-actions,
  .reservation-meta-grid,
  .reservation-actions,
  .table-card {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .analytics-layout,
  .analytics-filter-grid,
  .analytics-visual-grid,
  .dashboard-visual-grid {
    grid-template-columns: 1fr;
  }

  .visual-card {
    grid-template-columns: 1fr;
  }

  .table-area-grid {
    grid-template-columns: 1fr;
  }

  .source-pie-card,
  .source-pie-wrap {
    grid-template-columns: 1fr;
  }

  .source-pie {
    justify-self: start;
  }

  .analytics-row small,
  .analytics-game-row small {
    text-align: left;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .table-floor {
    min-height: 360px;
  }

  .floor-table {
    width: calc(var(--table-width, 124px) * 0.82);
    height: calc(var(--table-height, 82px) * 0.82);
  }

  .floor-table-core {
    inset: 13px 16px;
  }

  .topbar {
    padding: 0 16px;
  }

  .user-chip span:last-child {
    display: none;
  }
}
