/* Clubforge Console — original dimensional fitness application. MIT.
   Local fonts and photographs only. Appearance is independent of demo runtime. */
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* 01 · Semantic surfaces, typography and accessible defaults. */
:root {
  color-scheme: light;
  --canvas: #f5f5f0;
  --surface: #ffffff;
  --surface-soft: #f0f2f8;
  --surface-raised: #fafbfe;
  --ink: #202b43;
  --muted: #5c677c;
  --line: #e0e4ed;
  --line-strong: #c5cddb;
  --accent: #505bc9;
  --accent-hover: #414cb4;
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;
  --mint: #c7e6d6;
  --nav: #202b4c;
  --nav-ink: #e7edfb;
  --good: #24634e;
  --good-soft: #eaf5ef;
  --bad: #a23c43;
  --bad-soft: #fcf0f1;
  --warm: #805a24;
  --warm-soft: #faf2e5;
  --brass: #626fdb;
  --brass-text: #4c56b8;
  --brass-soft: #eef0ff;
  --moss: #3f7562;
  --moss-soft: #eaf5ef;
  --clay: #a23c43;
  --clay-soft: #fcf0f1;
  --hover: #f3f5fb;
  --font: 'Inter', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --shadow: 0 2px 3px #202b4303, 0 5px 18px #202b4306;
  --shadow-lift: 0 5px 10px #202b4305, 0 14px 32px #202b4312;
  --shadow-dialog: 0 24px 90px #0b15334d, 0 4px 16px #0b15331a;
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-width: 252px;
  --modal-head: linear-gradient(120deg, #eef0fc, #f5f6fc);
  --modal-foot: #f6f7fb;
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--canvas);
  --bs-border-color: var(--line);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #151d30;
  --surface: #202b43;
  --surface-soft: #27344d;
  --surface-raised: #243049;
  --ink: #e9edf9;
  --muted: #b6c2d7;
  --line: #37445e;
  --line-strong: #53627e;
  --accent: #a7afff;
  --accent-hover: #bbc1ff;
  --accent-ink: #19233f;
  --accent-soft: #303a61;
  --mint: #9fcebb;
  --nav: #172038;
  --good: #a4dbc3;
  --good-soft: #243e3e;
  --bad: #ffbbc1;
  --bad-soft: #452f40;
  --warm: #efd09f;
  --warm-soft: #403b3c;
  --brass: #a7afff;
  --brass-text: #b9c0ff;
  --brass-soft: #303a61;
  --moss: #9bceb9;
  --moss-soft: #243e3e;
  --clay: #ffbbc1;
  --clay-soft: #452f40;
  --hover: #293650;
  --shadow: 0 3px 15px #0811271c;
  --shadow-lift: 0 8px 28px #0811274d;
  --shadow-dialog: 0 24px 90px #060d2266;
  --modal-head: linear-gradient(120deg, #303b60, #29354e);
  --modal-foot: #25324b;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  min-width: 360px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--mint);
  color: #203d35;
}
a {
  color: var(--brass-text);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--accent-hover);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
button:disabled {
  transform: none !important;
  box-shadow: none !important;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 10px;
  font-family: 'Sora', var(--font);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
h1 {
  font-size: 28px;
}
h2 {
  font-size: 17px;
}
h3 {
  font-size: 15px;
}
h4 {
  font-size: 14px;
}
p {
  margin: 0 0 14px;
}
p:last-child {
  margin-bottom: 0;
}
strong,
b {
  font-weight: 600;
}
small {
  font-size: 12px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  vertical-align: middle;
}
kbd {
  padding: 3px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted);
  font: 12px/1.3 var(--mono);
  box-shadow: 0 1px 1px #101a3010;
}
code,
pre,
.mono {
  font-family: var(--mono);
  font-size: 12px;
}
code {
  color: var(--brass-text);
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  opacity: 1;
  margin: 22px 0;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -90px;
  left: 20px;
  z-index: 1000;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 18px;
  box-shadow: var(--shadow-lift);
}
.skip-link:focus {
  top: 12px;
}
.subtle,
.muted,
.help-text,
.subtle-note {
  color: var(--muted);
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.025em;
}
.eyebrow span {
  font-weight: 400;
  letter-spacing: 0;
}
.required,
.danger {
  color: var(--bad);
}
.tiny {
  font-size: 12px;
}

/* 02 · Club navigation and compact working header. */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 24px 16px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #5e6b88 transparent;
  background:
    radial-gradient(ellipse at 0 0, #35416a 0, transparent 46%), linear-gradient(165deg, var(--nav), #1a2540);
  color: var(--nav-ink);
  border-right: 1px solid #ffffff0a;
}
:root[data-theme='dark'] .sidebar {
  background: radial-gradient(ellipse at 0 0, #263454, transparent 50%), var(--nav);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 24px;
  color: #f2f5ff;
  text-decoration: none;
  font:
    600 23px/1.2 'Sora',
    sans-serif;
  letter-spacing: -1.1px;
}
.brand:hover {
  color: #fff;
}
.brand small {
  display: block;
  margin-top: 5px;
  color: #bbc7e2;
  font: 500 12px/1.1 var(--font);
  letter-spacing: 2.8px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid #ffffff2b;
  border-radius: 13px;
  background: linear-gradient(145deg, #7982e4, #4c58bd);
  box-shadow:
    0 4px 12px #101a3940,
    inset 0 1px #ffffff26;
}
.brand-mark .icon {
  width: 22px;
  height: 22px;
}
.club-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 10px;
  margin-bottom: 14px;
  color: #edf1ff;
  background: #ffffff07;
  border: 1px solid #ffffff25;
  border-radius: 11px;
  text-decoration: none;
  font-size: 12px;
  transition: background 0.18s;
}
.club-switch:hover {
  color: #fff;
  background: #ffffff10;
}
.club-switch > span:nth-child(2) {
  flex: 1;
}
.club-switch small,
.user-profile small {
  display: block;
  color: #bbc8e0;
  font-size: 12px;
  font-weight: 400;
}
.workspace-monogram {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid #ffffff15;
  background: #ffffff0b;
  border-radius: 8px;
  font-weight: 600;
}
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  min-height: 40px;
  margin-bottom: 8px;
  color: #cbd5ed;
  background: #101a2e35;
  border: 1px solid #ffffff18;
  border-radius: 8px;
  font-size: 12px;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.sidebar-search:hover {
  background: #ffffff0e;
  border-color: #ffffff3b;
}
.sidebar-search kbd {
  margin-left: auto;
  color: #d2dcf0;
  border-color: #ffffff24;
  background: #ffffff09;
}
.sidebar nav {
  flex: 1;
}
.sidebar {
  height: 100dvh;
  overflow: hidden;
}
.sidebar > .brand,
.sidebar > .club-switch,
.sidebar > .sidebar-search,
.sidebar-footer {
  flex-shrink: 0;
}
.sidebar nav {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #60708f transparent;
  margin-right: -5px;
  padding-right: 5px;
}
.nav-section {
  margin: 17px 0 20px;
}
.nav-label {
  display: block;
  margin: 0 11px 7px;
  color: #aab9d5;
  font-size: 12px;
  font-weight: 500;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 9px 11px;
  margin: 3px 0;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #d2dbef;
  font-size: 13px;
  font-weight: 450;
  text-decoration: none;
  transition:
    background 0.16s,
    color 0.16s,
    border-color 0.16s;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
  color: #aebedb;
}
.nav-item.active {
  color: #fff;
  background: linear-gradient(110deg, #6d79db45, #6d79db22);
  border-color: #a2b1ff26;
  box-shadow:
    inset 3px 0 var(--mint),
    0 3px 8px #0b173412;
}
.nav-item.active .icon {
  color: var(--mint);
}
.nav-item:hover,
.nav-item:focus-visible {
  background: #ffffff0c;
  color: #fff;
  border-color: #ffffff18;
}
.sidebar :focus-visible {
  outline-color: #b9c5ff;
}
.secondary-nav {
  padding-top: 13px;
  border-top: 1px solid #ffffff18;
}
.sidebar .count-pill {
  margin-left: auto;
  background: #ffffff09;
  color: #d2ddf4;
  border-color: #ffffff20;
  padding: 2px 6px;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 16px 3px 0;
  border-top: 1px solid #ffffff20;
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f0f3ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}
.user-profile:hover {
  color: #fff;
}
.sidebar-footer .icon-btn {
  color: #d5def3;
  background: #ffffff07;
  border-color: #ffffff20;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--surface-soft), var(--surface));
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.sidebar-footer .avatar {
  color: #203f38;
  background: linear-gradient(135deg, #dceee3, #b7dac9);
  border-color: #d9efe22e;
}
.avatar.large {
  width: 66px;
  height: 66px;
  border-radius: 19px;
  font-size: 22px;
}
.avatar.small {
  width: 30px;
  height: 30px;
}
.app-shell {
  margin-left: var(--sidebar-width);
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding: 13px 30px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.topbar-location {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}
.topbar-location a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-location > span:first-of-type {
  color: var(--line-strong);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.mobile-menu,
.nav-scrim,
.header-search {
  display: none;
}
main {
  max-width: 1690px;
  min-width: 0;
  margin: auto;
  padding: 29px 30px 24px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading h1 {
  margin: 5px 0 7px;
}
.page-heading p {
  max-width: 710px;
  margin: 0;
  color: var(--muted);
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.heading-actions:empty {
  display: none;
}
.actions,
.context-bar,
.form-actions,
.between {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.context-bar {
  margin-bottom: 20px;
}
.context-bar > .subtle {
  margin-left: auto;
  font-size: 12px;
}
.period-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.period-toolbar > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}
.period-toolbar p {
  margin: 0;
}
.period-toolbar .subtle {
  font-size: 12px;
}
.period-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
}
.period-label select {
  width: auto;
  min-width: 150px;
}

/* 03 · Actions and states. Bootstrap remains bundled, with Clubforge tokens. */
.btn,
.icon-btn,
.tabs button,
.segmented button,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
  font: 500 13px/1.45 var(--font);
  text-decoration: none;
  white-space: normal;
  box-shadow: 0 1px 2px #19243b05;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s var(--ease);
}
.btn:hover,
.icon-btn:hover,
.file-button:hover {
  color: var(--ink);
  background: var(--hover);
  border-color: var(--brass);
  box-shadow: 0 2px 6px #202b430a;
}
.btn.primary {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-color: var(--accent);
  box-shadow:
    0 3px 7px #505bc922,
    inset 0 1px #ffffff14;
}
.btn.primary:hover {
  color: var(--accent-ink);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 12px #505bc933;
}
.btn.danger {
  color: var(--bad);
}
.btn.danger:hover {
  background: var(--bad-soft);
  border-color: var(--bad);
}
.btn.quiet {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.btn.quiet:hover {
  background: var(--hover);
  border-color: var(--line);
}
.btn:active,
.icon-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}
.btn:focus-visible,
.icon-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: none;
}
.icon-btn {
  width: 40px;
  flex: 0 0 auto;
  padding: 8px;
}
.topbar .mobile-menu,
.topbar .header-search {
  display: none;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  color: var(--brass-text);
  background: none;
  font-size: inherit;
  text-align: left;
  text-decoration: none;
}
.text-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.badge,
.tag,
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--ink);
  font: 500 12px/1.4 var(--font);
  text-decoration: none;
  white-space: nowrap;
}
.badge.good,
.tag.good {
  color: var(--good);
  background: var(--good-soft);
  border-color: color-mix(in srgb, var(--good) 18%, var(--surface));
}
.badge.warm,
.tag.warm {
  color: var(--warm);
  background: var(--warm-soft);
  border-color: color-mix(in srgb, var(--warm) 18%, var(--surface));
}
.badge.bad,
.tag.bad {
  color: var(--bad);
  background: var(--bad-soft);
  border-color: color-mix(in srgb, var(--bad) 20%, var(--surface));
}
.count-pill {
  border-radius: 6px;
  padding: 2px 7px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 4px var(--good-soft);
}

/* 04 · Dimensional cards and business-specific workspaces. */
.panel {
  min-width: 0;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 13px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, var(--surface), var(--surface-raised));
}
.panel-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.025em;
}
.panel-head h2 .count-pill {
  margin-left: 6px;
  vertical-align: middle;
}
.panel-head .eyebrow {
  display: block;
  margin-bottom: 6px;
}
.card-content,
.business-form,
.stack-form,
.prose,
.note-card {
  padding: 22px;
}
.prose {
  line-height: 1.8;
}
.prose .prose {
  padding: 0;
}
.prose h2:not(:first-child),
.prose h3:not(:first-child) {
  margin-top: 26px;
}
.prose p {
  color: var(--muted);
}
.prose li {
  margin-bottom: 7px;
}
.prose blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--brass);
  background: var(--accent-soft);
  border-radius: 0 9px 9px 0;
  color: var(--ink);
}
.readable {
  max-width: 860px;
}
.card-content > .business-form,
.card-content > .stack-form {
  padding: 0;
}
.card-content > .detail-list,
.booking-summary .detail-list,
.roster-session-summary .detail-list {
  padding: 8px 0;
}
.panel > p:not([class]),
.panel > .text-link,
.panel > .subtle-note {
  margin: 0 22px 20px;
}
.panel > .display-number {
  padding-bottom: 6px;
}
.panel > .btn {
  margin: 0 22px 22px;
}
.two-col,
.dashboard-main,
.report-workspace,
.form-layout,
.checkin-workspace,
.roster-workspace,
.split-workspace,
.component-layout,
.settings-grid,
.ai-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}
.dashboard-main,
.form-layout,
.checkin-workspace,
.ai-workspace {
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}
.three-col > .panel {
  display: flex;
  flex-direction: column;
}
.three-col > .panel > .card-content {
  flex: 1;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi {
  position: relative;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--surface-raised));
  box-shadow: var(--shadow);
}
.kpi::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  top: -35px;
  right: -30px;
  border: 12px solid color-mix(in srgb, var(--accent) 6%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.kpi-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.kpi-number {
  display: block;
  margin: 10px 0 8px;
  font:
    600 clamp(25px, 2.1vw, 32px) / 1.2 'Sora',
    sans-serif;
  letter-spacing: -1.15px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.kpi-foot {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
body[data-family='dashboard'] .kpi:first-child {
  color: #fff;
  background:
    radial-gradient(ellipse at 90% 100%, #7982df66, transparent 65%),
    linear-gradient(120deg, #424fae, #505bc9);
  border-color: #505bc9;
  box-shadow: 0 6px 18px #505bc922;
}
body[data-family='dashboard'] .kpi:first-child :is(.kpi-label, .kpi-foot) {
  color: #ffffff;
}
body[data-family='dashboard'] .kpi:first-child::after {
  border-color: #ffffff0a;
  width: 140px;
  height: 140px;
  right: -50px;
  top: -40px;
  border-width: 22px;
}
:root[data-theme='dark'] body[data-family='dashboard'] .kpi:first-child {
  background:
    radial-gradient(ellipse at 90% 100%, #6d7dd34d, transparent 70%),
    linear-gradient(120deg, #35457e, #414f92);
  border-color: #6270bb;
}
.mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.mini-kpis > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(130deg, var(--surface), var(--surface-soft));
}
.mini-kpis strong,
.mini-kpis small {
  display: block;
}
.mini-kpis strong {
  margin: 7px 0;
  font:
    600 24px/1.3 'Sora',
    sans-serif;
}
.mini-kpis small {
  color: var(--muted);
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 7px 0 16px;
}
.section-label h2 {
  margin: 0;
}
.section-label > span {
  color: var(--muted);
  font-size: 12px;
}
.card-photo {
  width: 100%;
  height: 184px;
  flex-shrink: 0;
  object-fit: cover;
}
.card-photo[src$='fitness-coach.webp'] {
  object-position: center 12%;
}
.card-content .card-photo,
.prose .card-photo {
  margin: 17px 0;
  border-radius: 11px;
  height: 200px;
}
.class-card {
  isolation: isolate;
}
.class-card .card-photo {
  height: 175px;
  object-position: center 40%;
  transition:
    transform 0.4s var(--ease),
    filter 0.3s;
}
.class-card .card-content {
  position: relative;
  padding: 19px;
  background: var(--surface);
}
.class-card h3 {
  margin: 8px 0 7px;
}
.class-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.class-card p {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 12px;
}
.card-topline,
.capacity-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
}
.card-topline > span:last-child {
  color: var(--muted);
}
.capacity-line {
  margin: 14px 0 8px;
}
.capacity-line strong {
  color: var(--good);
  font-weight: 600;
}
.class-card .actions {
  margin-top: 18px;
  gap: 8px;
}
.class-card .btn {
  flex: 1;
  padding-inline: 10px;
  font-size: 12px;
}
progress {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--surface-soft);
  accent-color: var(--accent);
}
progress::-webkit-progress-bar {
  border-radius: 10px;
  background: var(--surface-soft);
}
progress::-webkit-progress-value {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--brass));
  transition: width 0.25s var(--ease);
}
progress::-moz-progress-bar {
  border-radius: 10px;
  background: var(--accent);
}
.session-overview,
.trainer-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}
.session-photo {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center;
}
.trainer-photo {
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center 23%;
}
.session-overview .card-content,
.trainer-overview .card-content {
  align-self: center;
  padding: 26px;
}
.profile-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: radial-gradient(ellipse at 85% 20%, var(--accent-soft), transparent 65%), var(--surface);
}
.identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.identity h2,
.identity h3 {
  margin: 4px 0;
}
.identity p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.display-number {
  display: block;
  padding: 20px 22px;
  font:
    600 38px/1.3 'Sora',
    sans-serif;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
}
.member-access-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--moss) 26%, var(--line));
  border-radius: 12px;
  background: linear-gradient(115deg, var(--good-soft), var(--surface));
}
.member-access-card > div {
  flex: 1;
  min-width: 170px;
}
.member-access-card .avatar {
  background: var(--surface);
}
.member-access-card h3 {
  margin: 0 0 4px;
}
.member-access-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.booking-summary,
.membership-summary {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(120deg, var(--surface-soft), var(--surface-raised));
}
.membership-summary h3 {
  color: var(--brass-text);
}
.checkin-side .panel:first-child {
  background: radial-gradient(ellipse at 100% 100%, var(--accent-soft), transparent 80%), var(--surface);
}
.checkin-main .business-form > .actions {
  margin-top: 5px;
}
.action-list {
  margin: 0;
  padding: 0 22px;
  list-style: none;
}
.action-list li {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.action-list li:last-child {
  border-bottom: 0;
}
.action-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
  transition: color 0.18s;
}
.action-list a .icon {
  color: var(--brass-text);
  width: 17px;
  transition: transform 0.18s;
}
.action-list a:hover {
  color: var(--brass-text);
}
.action-list a:hover .icon {
  transform: translateX(3px);
}
.action-list p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.detail-list {
  margin: 0;
  padding: 13px 22px;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.detail-list > div:last-child {
  border-bottom: 0;
}
.detail-list dt {
  color: var(--muted);
  font-weight: 400;
}
.detail-list dd {
  max-width: 65%;
  margin: 0;
  text-align: right;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* 05 · Forms, validation, uploads and multi-step enrollment. */
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
}
label:has(> .required) {
  display: block;
}
label:has(> .required) > :is(input, select, textarea, .password-wrap) {
  display: block;
  margin-top: 7px;
}
input:not([type='checkbox']):not([type='radio']),
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background-color: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0 1px 2px #202b4303;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background-color 0.18s;
}
input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong));
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
textarea {
  min-height: 105px;
  line-height: 1.7;
  resize: vertical;
}
input[type='checkbox'],
input[type='radio'] {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--accent);
  vertical-align: middle;
  cursor: pointer;
}
input[type='range'] {
  padding-inline: 0 !important;
  accent-color: var(--accent);
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}
input[type='file'] {
  padding: 6px !important;
}
input::file-selector-button {
  margin-right: 10px;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink);
  font: 500 12px var(--font);
  cursor: pointer;
}
input[readonly],
textarea[readonly] {
  background: var(--surface-soft);
}
[aria-invalid='true'],
.was-validated input:invalid {
  border-color: var(--bad) !important;
}
.business-form,
.stack-form,
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.business-form > p,
.stack-form > p {
  margin: 0;
}
.business-form > .btn,
.stack-form > .btn {
  align-self: flex-start;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.kpi-grid.register-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-block: 16px 20px;
}
.register-summary .kpi {
  min-height: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(115deg, var(--surface), var(--surface-soft));
}
.register-summary .kpi-label {
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
}
.register-summary .kpi-number {
  margin-top: 5px;
  font-size: clamp(18px, 2.2vw, 25px);
  overflow-wrap: anywhere;
}
.kpi-grid.register-summary > .kpi:nth-child(3):last-child {
  grid-column: auto;
}
@media (max-width: 540px) {
  .kpi-grid.register-summary {
    gap: 7px;
  }
  .register-summary .kpi {
    padding: 12px 10px;
  }
  .register-summary .kpi-label {
    font-size: 12px;
  }
}
.form-grid .full {
  grid-column: 1 / -1;
}
.check-label,
.switch-label {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.65;
  cursor: pointer;
}
.check-label input,
.switch-label input {
  margin-top: 3px;
}
.check-label:has(input:checked) {
  color: var(--ink);
}
.help-text {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
}
.form-result,
[data-form-result]:not([hidden]),
[data-auth-result]:not([hidden]),
[data-goal-result]:not([hidden]) {
  padding: 15px 17px;
  border: 1px solid color-mix(in srgb, var(--moss) 30%, var(--line));
  border-radius: 10px;
  background: var(--good-soft);
  color: var(--good);
  font-size: 13px;
}
.form-result.bad,
[data-form-result].bad {
  color: var(--bad);
  background: var(--bad-soft);
  border-color: var(--bad);
}
.form-actions,
.form-footer {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.conditional-fields {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}
.tag-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag-preview:empty {
  display: none;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 48px !important;
}
.password-wrap .icon-btn {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 37px;
  min-height: 37px;
  border: 0;
  background: transparent;
}
.input-icon {
  position: relative;
}
.input-icon > .icon {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--muted);
}
.input-icon input {
  padding-left: 40px !important;
}
.wizard-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
}
.wizard-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wizard-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 15px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  font-size: 13px;
}
.wizard-steps li > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  background: var(--surface-soft);
  border-radius: 8px;
  font-size: 12px;
}
.wizard-steps li.active {
  color: var(--brass-text);
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
}
.wizard-steps li.active > span {
  color: var(--accent-ink);
  background: var(--accent);
}
.wizard-steps li.completed {
  color: var(--good);
}
.wizard-steps li.completed > span {
  background: var(--good-soft);
}
.wizard-step {
  padding: 26px;
}
.wizard-step h2 {
  margin-top: 10px;
  font-size: 21px;
}
.wizard-step p {
  color: var(--muted);
  margin-bottom: 23px;
}
.wizard-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: var(--surface-raised);
}
.wizard-actions > span {
  margin-right: auto;
  font-size: 12px;
  color: var(--muted);
}
.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 38px 22px;
  margin: 22px;
  border: 2px dashed var(--line-strong);
  border-radius: 13px;
  background: linear-gradient(120deg, var(--surface), var(--surface-soft));
  text-align: center;
}
.upload-zone .icon {
  width: 30px;
  height: 30px;
  color: var(--brass-text);
}
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.upload-zone input {
  max-width: 360px;
}
.upload-list {
  padding: 0 22px 22px;
}
.upload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.upload-item > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.upload-item small {
  color: var(--muted);
}
.file-button {
  position: relative;
  overflow: hidden;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* 06 · Registers, comfortable table controls and local import previews. */
.table-toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 22px;
}
.data-panel {
  overflow: visible;
}
.data-panel > .panel-head {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
.data-panel > .table-bottom {
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 185px;
}
.search-field .icon {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--muted);
}
.search-field input {
  padding-left: 39px !important;
}
.filter-field {
  min-width: 140px;
}
.filter-field > span {
  font-size: 12px;
}
.table-scroll {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) var(--surface-soft);
}
.records-table,
.simple-table,
.permission-table,
.permissions-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.records-table,
.simple-table {
  white-space: nowrap;
}
table select {
  min-width: 140px;
}
.permission-table select,
.permissions-table select {
  min-width: 112px;
}
td > .actions {
  flex-wrap: nowrap;
}
td,
th {
  padding: 14px 19px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.records-table th,
.simple-table th,
.permission-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
th button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
th button:hover {
  color: var(--brass-text);
}
th button span {
  color: var(--muted);
}
tbody tr {
  transition: background 0.14s;
}
tbody tr:hover {
  background: var(--hover);
}
tbody tr:last-child td {
  border-bottom: 0;
}
.records-table td:first-child,
.simple-table td:first-child {
  font-weight: 500;
}
.records-table .check-cell {
  width: 35px;
  padding-right: 0;
}
.records-table tr:has(input[type='checkbox']:checked) {
  background: var(--accent-soft);
}
.row-actions {
  display: flex;
  gap: 6px;
}
.row-actions .btn {
  min-height: 33px;
  padding: 6px 10px;
  font-size: 12px;
}
.table-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(100deg, var(--surface), var(--surface-raised));
  color: var(--muted);
  font-size: 12px;
}
.table-bottom label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
}
.table-bottom select {
  width: 70px;
  min-height: 35px;
  padding: 5px 8px;
  font-size: 12px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ink);
}
.pagination .btn {
  min-height: 35px;
  padding: 7px 11px;
  font-size: 12px;
}
.column-menu {
  position: relative;
}
.column-menu summary {
  list-style: none;
}
.column-menu summary::-webkit-details-marker {
  display: none;
}
.column-menu[open] summary {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.column-menu .popover {
  display: block;
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 20;
  width: 220px;
  max-height: 330px;
  overflow-y: auto;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
  font: 13px var(--font);
}
.popover label {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  margin: 4px 0;
  padding: 7px 3px;
  font-size: 13px;
  font-weight: 400;
}
.bulk-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 13px 22px;
  border-block: 1px solid var(--line);
  color: var(--brass-text);
  background: var(--accent-soft);
  font-size: 13px;
}
.empty-inline {
  padding: 30px 22px;
  color: var(--muted);
  text-align: center;
}
.permission-table input,
.permissions-table input {
  margin: 0;
}
.permission-table th:not(:first-child),
.permission-table td:not(:first-child),
.permissions-table td {
  text-align: center;
}

/* 07 · Scheduling, enrollment board and team work. */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  align-items: start;
  gap: 16px;
  max-width: 100%;
  padding-bottom: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.board-column {
  min-width: 0;
  min-height: 380px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-soft) 80%, var(--canvas));
}
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 3px 12px;
}
.board-head h2 {
  margin: 0;
  font-size: 13px;
}
.board-total {
  padding: 0 3px 15px;
  color: var(--muted);
  font-size: 12px;
}
.board-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.board-total span {
  font-size: 12px;
}
.board-drop {
  min-height: 270px;
  border-radius: 10px;
  transition:
    background 0.16s,
    box-shadow 0.16s;
}
.board-drop.dragover,
.board-column.drag-over {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.deal-card {
  position: relative;
  padding: 17px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(140deg, var(--surface), var(--surface-raised));
  box-shadow: var(--shadow);
  cursor: grab;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.deal-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.deal-card.dragging {
  opacity: 0.55;
  cursor: grabbing;
  transform: rotate(-1deg);
}
.deal-card h3 {
  margin-top: 8px;
  font-size: 14px;
}
.deal-card > strong {
  display: block;
  margin-bottom: 11px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.deal-card p,
.deal-card label {
  color: var(--muted);
  font-size: 12px;
}
.deal-card p {
  display: flex;
  align-items: center;
  gap: 7px;
}
.deal-card label {
  margin-top: 12px;
}
.deal-stage-label {
  margin-bottom: 7px;
}
.deal-card > div:has(.avatar) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-block: 10px;
  font-size: 12px;
}
.deal-card .avatar.tiny {
  width: auto;
  height: auto;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 7px;
}
.deal-card select {
  min-height: 37px;
  padding: 7px 9px;
  font-size: 12px;
}
.deal-card .btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}
.task-row:last-child {
  border-bottom: 0;
}
.task-row > div:first-of-type,
.task-main {
  flex: 1;
  min-width: 0;
}
.task-row strong {
  display: block;
  margin-bottom: 3px;
}
.task-row small {
  display: block;
  color: var(--muted);
}
.task-row:has(input:checked) strong,
.task-row.completed strong {
  text-decoration: line-through;
  color: var(--muted);
}
.task-row .btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
.project-card .card-photo {
  height: 190px;
}
.project-card .card-content > .badge {
  margin-bottom: 13px;
}
.project-card .card-content p {
  color: var(--muted);
}
.checklist {
  counter-reset: preparation;
  list-style: none;
  margin: 0;
  padding: 6px 22px;
}
.checklist li {
  counter-increment: preparation;
  position: relative;
  padding: 17px 0 17px 40px;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child {
  border-bottom: 0;
}
.checklist li::before {
  content: counter(preparation, decimal-leading-zero);
  position: absolute;
  top: 17px;
  left: 0;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--brass-text);
  font: 12px var(--mono);
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays {
  background: var(--surface-raised);
}
.calendar-weekdays span {
  padding: 13px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
:is(.calendar-day, .calendar-grid > div) {
  position: relative;
  min-width: 0;
  min-height: 116px;
  padding: 8px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--surface);
}
:is(.calendar-day, .calendar-grid > div):nth-child(7n) {
  border-right: 0;
}
:is(.calendar-day, .calendar-grid > div):is(.other-month, .outside) {
  background: var(--surface-soft);
}
:is(.calendar-day, .calendar-grid > div) .day-number {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  padding: 3px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
:is(.calendar-day, .calendar-grid > div) .day-number:hover {
  color: var(--brass-text);
  background: var(--accent-soft);
}
:is(.calendar-day, .calendar-grid > div).today .day-number {
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 600;
}
:is(.calendar-day, .calendar-grid > div).today {
  box-shadow: inset 0 0 0 1px var(--brass);
}
.calendar-event {
  display: block;
  width: 100%;
  margin: 4px 0;
  padding: 6px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-left: 3px solid var(--brass);
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.calendar-event:hover {
  background: var(--hover);
  border-color: var(--brass);
}
.calendar-agenda {
  margin-top: 0;
}
.agenda-event {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  text-align: left;
  transition: background 0.18s;
}
.agenda-event:hover {
  background: var(--hover);
}
.agenda-event strong,
.agenda-event small {
  display: block;
}
.agenda-event small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.agenda-event > time {
  flex: 0 0 170px;
  color: var(--brass-text);
  font-size: 12px;
}
.agenda-event > strong {
  flex: 1;
  font-size: 13px;
}
.agenda-event > span {
  color: var(--muted);
  font-size: 12px;
}
.calendar-event-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brass);
}
.timeline {
  padding: 24px 24px 3px;
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 17px;
  padding: 0 0 26px;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 13px;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: var(--line-strong);
}
.timeline-dot {
  position: relative;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  flex-shrink: 0;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.timeline-item h3 {
  margin: 6px 0;
}
.timeline-item p {
  margin-bottom: 9px;
  color: var(--muted);
}
.approval-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.approval-row:last-child {
  border: 0;
}
.approval-row h3 {
  margin-bottom: 5px;
}
.approval-row p {
  color: var(--muted);
  font-size: 12px;
}

/* 08 · Reporting surfaces, legible charts and planning tools. */
.chart-canvas {
  position: relative;
  height: 265px;
  min-width: 0;
  margin: 20px 22px 18px;
}
.chart-canvas.tall {
  height: 360px;
}
.chart-canvas canvas {
  max-width: 100%;
}
.chart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 17px 22px 0;
  color: var(--muted);
  font-size: 12px;
}
.chart-meta strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.chart-accessible-summary {
  margin: 10px 22px 20px;
  font-size: 12px;
  color: var(--muted);
}
.chart-accessible-summary details {
  max-height: 180px;
  overflow-y: auto;
}
.chart-accessible-summary summary {
  padding: 8px 0;
}
.goal-list,
.funnel-list {
  padding: 0 22px;
  margin: 0;
  list-style: none;
}
.goal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  gap: 13px 20px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.goal-card:last-child {
  border: 0;
}
.goal-card h3 {
  margin-bottom: 7px;
}
.goal-card p {
  color: var(--muted);
  font-size: 12px;
}
.goal-card progress {
  grid-column: 1 / -1;
}
.goal-card > .btn {
  justify-self: end;
}
.funnel-list {
  padding-block: 20px;
}
.funnel-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(110deg, var(--accent-soft), var(--surface));
}
.funnel-list li:last-child {
  margin-bottom: 0;
}
.funnel-list strong {
  font:
    600 24px/1.2 'Sora',
    sans-serif;
}
.funnel-list progress {
  flex-basis: 100%;
}
.heat-cell {
  display: block;
  min-width: 44px;
  padding: 11px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--ink);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.heat-cell[data-intensity='2'] {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.heat-cell[data-intensity='3'] {
  background: color-mix(in srgb, var(--accent) 21%, var(--surface));
}
.heat-cell[data-intensity='4'] {
  background: color-mix(in srgb, var(--accent) 28%, var(--surface));
}
.heat-cell[data-intensity='5'] {
  background: color-mix(in srgb, var(--accent) 33%, var(--surface));
}
.cohort-matrix td:not(:first-child) {
  font-variant-numeric: tabular-nums;
}
.cohort-matrix td:nth-child(n + 3) {
  color: var(--brass-text);
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}
.forecast-result {
  padding: 8px 0;
  background: linear-gradient(120deg, var(--surface), var(--accent-soft));
}
.score-preview .display-number {
  padding: 18px 0;
  color: var(--brass-text);
}
.score-preview p {
  margin-top: 20px;
  color: var(--muted);
  line-height: 2;
}
[data-club-report-preview] {
  padding: 22px;
}
[data-club-report-preview] .table-scroll {
  margin-inline: -22px;
}
[data-club-report-preview] p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

/* 09 · Communications, documents, invoices and account settings. */
.mail-layout {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.mail-folders,
.mail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
}
.folder,
.mail-sidebar button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}
.folder.active,
.mail-sidebar button.active {
  background: var(--surface);
  border-color: var(--line);
  color: var(--brass-text);
  box-shadow: var(--shadow);
}
.folder:hover {
  background: var(--hover);
  color: var(--ink);
}
.folder > span {
  font-size: 12px;
}
.mail-folders > .btn {
  margin-top: 15px;
}
.mail-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s;
}
.mail-row:hover {
  background: var(--hover);
}
.mail-row:last-child {
  border-bottom: 0;
}
.mail-row > a {
  display: block;
  flex: 1;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.mail-row h3 {
  margin: 4px 0;
  font: 500 14px/1.5 var(--font);
  letter-spacing: 0;
}
.mail-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.mail-row time {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.star-button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 23px;
}
.star-button:hover,
.star-button[aria-pressed='true'] {
  color: var(--warm);
  background: var(--warm-soft);
}
.email-body {
  padding: 26px;
}
.email-content {
  padding: 25px 0;
  line-height: 1.9;
}
.email-body .identity {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.notebook-list {
  display: grid;
  gap: 14px;
  padding: 20px;
}
.note-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(140deg, var(--surface), var(--surface-raised));
}
.note-card h3 {
  margin: 8px 0;
}
.note-card p {
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.file-grid,
.notes-grid,
.export-grid,
.document-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.file-grid,
.notes-grid,
.export-grid {
  padding: 20px;
}
.file-card,
.export-card,
.document-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, var(--surface), var(--surface-raised));
}
.document-card h2,
.file-card h2 {
  font-size: 15px;
}
.document-card p,
.document-card small,
.export-card p {
  color: var(--muted);
}
.document-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--brass-text);
  font: 12px var(--mono);
}
.document-card .between {
  margin-top: 23px;
}
.export-card h3 {
  margin-top: 14px;
}
.saved-presets {
  padding: 18px 22px;
}
.saved-presets > div,
.saved-presets > article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.invoice-sheet {
  padding: 32px;
  background: linear-gradient(165deg, var(--surface), var(--surface-raised));
}
.invoice-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 27px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.invoice-heading .display-number {
  padding: 0 0 10px;
  font-size: 30px;
}
.invoice-address {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 22px 0;
}
.invoice-address p {
  margin-top: 8px;
}
.invoice-items {
  width: 100%;
}
.package-brand h2 {
  margin: 5px 0 8px;
}
.package-brand p {
  color: var(--muted);
}
.package-reference {
  flex: 0 0 auto;
  text-align: right;
}
.package-reference h3 {
  margin: 5px 0 10px;
}
.package-selection {
  margin-bottom: 24px;
}
.coaching-package .invoice-address {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
}
.coaching-package .invoice-address p {
  overflow-wrap: anywhere;
}
.package-items {
  table-layout: fixed;
  min-width: 620px;
}
.package-description-col {
  width: auto;
}
.package-quantity-col {
  width: 100px;
}
.package-price-col {
  width: 125px;
}
.package-amount-col {
  width: 110px;
}
.package-action-col {
  width: 105px;
}
.package-items td {
  vertical-align: top;
  padding: 14px 8px;
  white-space: normal;
}
.package-items th {
  padding-inline: 8px;
}
.package-items input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.package-items textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  resize: vertical;
}
.package-items .btn {
  min-width: 0;
  width: 100%;
  padding-inline: 9px;
}
.package-items [data-line-total] {
  padding-top: 25px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1100px) {
  .coaching-package .table-scroll {
    overflow: visible;
  }
  .package-items,
  .package-items tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .package-items colgroup,
  .package-items thead {
    display: none;
  }
  .package-items tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }
  .package-items td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .package-items td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
  }
  .package-items td:first-child {
    grid-column: 1 / -1;
  }
  .package-items [data-line-total] {
    align-self: center;
    padding: 0;
  }
  .package-items .package-line-action {
    align-self: end;
  }
  .package-items .package-line-action::before {
    display: none;
  }
}
@media (max-width: 600px) {
  .coaching-package .invoice-heading {
    flex-direction: column;
  }
  .package-reference {
    text-align: left;
  }
  .coaching-package .invoice-address {
    padding: 16px;
  }
  .invoice-sheet.coaching-package .table-scroll {
    margin-inline: 0;
    max-width: 100%;
  }
  .package-items tr {
    padding: 16px;
  }
}
.invoice-total,
.invoice-totals {
  max-width: 350px;
  margin: 22px 0 0 auto;
}
.invoice-total .detail-list {
  padding-inline: 0;
}
.invoice-total .detail-list > div:last-child {
  font-size: 17px;
}
.detail-list > .total {
  padding-block: 17px;
  font-size: 18px;
}
.detail-list > .total dt {
  color: var(--ink);
  font-weight: 600;
}
.invoice-terms {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.preference-row:last-child {
  border-bottom: 0;
}
.preference-row h3 {
  margin-bottom: 5px;
}
.preference-row p {
  color: var(--muted);
  font-size: 12px;
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.security-status {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  background: var(--good-soft);
  border-radius: 11px;
  color: var(--good);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.plan-card {
  padding: 24px;
}
.plan-card > p {
  color: var(--muted);
}
.plan-card ul {
  list-style: none;
  padding: 12px 0;
  margin: 0 0 20px;
}
.plan-card li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 13px;
}
.plan-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--good);
}
.plan-price {
  display: block;
  margin-bottom: 15px;
  font:
    600 33px/1.2 'Sora',
    sans-serif;
  letter-spacing: -1px;
}
.plan-price small {
  margin-left: 5px;
  font: 400 12px var(--font);
  letter-spacing: 0;
  color: var(--muted);
}
.plan-grid > .panel:has(.badge.good) {
  border-color: var(--brass);
  box-shadow: 0 5px 18px #505bc915;
}

/* 10 · Tabs, components, secondary directory and empty states. */
.tabs,
.segmented {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}
.tabs {
  margin: 18px 22px 0;
}
.segmented {
  width: fit-content;
}
.tabs button,
.segmented button {
  min-height: 35px;
  padding: 7px 12px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.tabs button:hover,
.segmented button:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
}
.tabs button.active,
.tabs button[aria-selected='true'],
.segmented button.active,
.segmented button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--brass-text);
  border-color: var(--line);
  box-shadow: 0 2px 4px #202b4308;
}
[data-tab-panel] {
  padding: 22px;
}
[data-tab-panel] .table-scroll {
  margin: -22px;
}
.component-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr);
}
.component-specimen {
  padding: 24px;
}
.component-specimen .demo-row {
  padding: 0;
  margin-bottom: 20px;
}
.component-specimen .stack-form {
  padding: 0;
}
.component-specimen .tabs {
  margin-inline: 0;
}
.component-specimen .tab-content {
  padding-inline: 0;
}
.component-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 20px 22px;
}
.component-directory .tag {
  padding: 8px 11px;
  font-size: 12px;
}
.component-directory .tag:hover {
  color: var(--brass-text);
  background: var(--accent-soft);
  border-color: var(--brass);
}
.component-specimen fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.component-specimen legend {
  float: none;
  width: auto;
  margin: 0;
  padding-inline: 5px;
  font-size: 13px;
  font-weight: 500;
}
.demo-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 22px;
}
.demo-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}
.demo-breadcrumb a {
  text-decoration: none;
}
.color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
}
.color-swatch {
  min-height: 145px;
  padding: 15px;
  border-radius: 12px;
  text-align: left;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.color-swatch:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.color-swatch strong {
  display: inline-block;
  margin-bottom: 4px;
}
.color-swatch small {
  color: var(--muted);
}
.alert {
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 14px;
}
.alert.good {
  color: var(--good);
  background: var(--good-soft);
  border-color: color-mix(in srgb, var(--good) 30%, var(--line));
}
.alert.warm {
  color: var(--warm);
  background: var(--warm-soft);
}
.alert.bad {
  color: var(--bad);
  background: var(--bad-soft);
}
.accordion {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary::after {
  content: '+';
  font-size: 20px;
  color: var(--brass-text);
}
.accordion[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 9px 9px 0 0;
}
.accordion[open] summary::after {
  content: '−';
}
.accordion p {
  padding: 16px;
  margin: 0;
  color: var(--muted);
}
.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
}
.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--brass));
  transition: width 0.25s var(--ease);
}
.progress-examples {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.progress-examples > label {
  flex-direction: row;
  justify-content: space-between;
}
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: club-spin 1s linear infinite;
}
.skeleton-block {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.skeleton-block span {
  display: block;
  height: 12px;
  width: 90%;
  border-radius: 5px;
  background: var(--surface-soft);
}
.skeleton-block span:nth-child(2) {
  width: 67%;
}
.skeleton-block span:nth-child(3) {
  width: 80%;
}
.empty-example,
.empty-state {
  padding: 40px 20px;
  text-align: center;
}
.empty-example > .icon,
.empty-state > .icon {
  width: 38px;
  height: 38px;
  padding: 8px;
  margin-bottom: 17px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--brass-text);
}
.empty-example p,
.empty-state p {
  color: var(--muted);
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.directory-card {
  display: block;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, var(--surface), var(--surface-raised));
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.directory-card strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font:
    600 14px/1.5 'Sora',
    sans-serif;
  letter-spacing: -0.025em;
}
.directory-card strong .icon {
  width: 17px;
  color: var(--brass-text);
}
.directory-card p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
}
.directory-card small {
  color: var(--brass-text);
  font-size: 12px;
}
.directory-card:hover {
  color: var(--ink);
}
.directory-section {
  margin-bottom: 30px;
}
.search-panel .card-content {
  max-width: 720px;
}
.big-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px;
}
.search-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 20px;
}
.search-results,
.command-results {
  display: grid;
  gap: 3px;
}
.search-result,
.search-results > a,
.command-results > a {
  display: block;
  min-width: 0;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.search-result:hover,
.command-results > a:hover,
.command-results > a.active {
  color: var(--ink);
  background: var(--accent-soft);
}
.search-results small,
.search-result small,
.command-results small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 22px;
}
.resource-link {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}
.resource-link:hover {
  color: var(--brass-text);
  border-color: var(--brass);
  background: var(--hover);
}

/* 11 · Staff access demonstrations and alternate application layouts. */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 30px;
  align-items: stretch;
  margin: 12px 0 28px;
}
.auth-editorial {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 570px;
  padding: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #f5f7ff;
  background:
    linear-gradient(0deg, #16213bef 0%, #1d2c487d 60%, #1a29404d),
    url('../images/fitness-interior.webp') center / cover;
}
.auth-editorial h2 {
  max-width: 340px;
  margin: 16px 0;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.04em;
}
.auth-editorial p {
  max-width: 280px;
  color: #e1e9f6;
}
.auth-editorial .eyebrow,
.auth-editorial .mono {
  color: #d8e6e6;
  font-size: 12px;
}
.editorial-rule {
  width: 46px;
  height: 3px;
  background: var(--mint);
  margin: 20px 0;
  border-radius: 3px;
}
.auth-card {
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-card > h2 {
  margin-top: 13px;
  font-size: 24px;
}
.auth-card > p {
  color: var(--muted);
}
.auth-card .stack-form {
  padding: 15px 0 22px;
}
.auth-card .stack-form > .btn {
  align-self: stretch;
}
[data-auth-result].bad,
[data-goal-result].bad {
  color: var(--bad);
  background: var(--bad-soft);
  border-color: var(--bad);
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 17px 0;
  margin: 5px 0 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.error-layout,
.error-page,
.error-state {
  max-width: 650px;
  margin: 40px auto;
  padding: 40px 24px;
  text-align: center;
}
.error-code {
  display: block;
  margin-bottom: 18px;
  color: var(--brass-text);
  font:
    600 clamp(64px, 9vw, 108px) / 1.1 'Sora',
    sans-serif;
  letter-spacing: -0.07em;
}
.error-layout h2 {
  font-size: 26px;
}
.error-layout p {
  color: var(--muted);
}
.error-layout .actions {
  justify-content: center;
  margin-top: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font:
    600 21px 'Sora',
    sans-serif;
  letter-spacing: -0.8px;
}
.brand-symbol,
.brand-dot {
  display: inline-block;
  width: 14px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent);
}
.service-glyph {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--brass-text);
  background: var(--accent-soft);
}
.section-number {
  color: var(--brass-text);
  font: 12px var(--mono);
}
.padded {
  padding: 22px;
}
.divider-v {
  width: 1px;
  height: 24px;
  background: var(--line);
}
.focus-workspace {
  max-width: 810px;
  margin-inline: auto;
}
.compact-workspace td,
.compact-workspace th {
  padding-block: 10px;
}
.horizontal-workspace-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 13px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.layout-wide main {
  max-width: none;
}
.layout-compact .panel-head {
  padding-block: 15px;
}
.layout-focus .focus-workspace {
  margin-top: 8px;
}

/* 12 · Direct API controls: neutral idle, loading, error and upgrade states. */
.ai-output {
  min-height: 100px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: linear-gradient(120deg, var(--surface-soft), var(--surface-raised));
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.8;
}
.ai-output p:last-child {
  margin-bottom: 0;
}
.ai-output[data-ai-state='loading'] {
  border-color: var(--brass);
}
.ai-output[data-ai-state='error'],
.ai-error {
  color: var(--bad);
  background: var(--bad-soft);
  border-color: color-mix(in srgb, var(--bad) 50%, var(--line));
}
.ai-output[data-ai-state='success'] {
  border-color: color-mix(in srgb, var(--moss) 50%, var(--line));
  background: var(--good-soft);
}
.ai-upgrade-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--brass-text);
}
.ai-retry-button {
  margin-top: 12px;
}
.integration-state {
  padding: 17px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--accent-soft);
}
.integration-state strong,
.integration-state small {
  display: block;
}
.integration-state strong {
  margin-bottom: 5px;
}
.integration-state small {
  color: var(--muted);
  font-size: 12px;
}
.integration-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--brass-text);
}
.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* 13 · Native dialogs: related, visibly separated header/body/footer surfaces. */
.app-dialog,
.command-dialog {
  padding: 0;
  width: min(620px, calc(100% - 36px));
  max-width: calc(100vw - 36px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-dialog);
}
.app-dialog::backdrop,
.command-dialog::backdrop,
.contextual-copilot::backdrop {
  background: #111c3b80;
  backdrop-filter: blur(5px);
}
.app-dialog[open],
.command-dialog[open] {
  animation: club-dialog-in 0.2s var(--ease);
}
.app-dialog[open] {
  display: flex;
  flex-direction: column;
}
.dialog-head,
.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--modal-head);
}
.dialog-head h2 {
  margin: 0;
  font-size: 18px;
}
.app-dialog > .modal-header,
.app-dialog > .modal-footer {
  position: relative;
  flex-shrink: 0;
}
.modal-header .icon-btn {
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}
.modal-body {
  padding: 24px;
  color: var(--ink);
  background: var(--surface);
}
.app-dialog > .modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-body > .stack-form,
.modal-body > .prose {
  padding: 0;
}
.modal-body .prose .actions {
  margin-top: 22px;
  justify-content: flex-end;
}
.modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--modal-foot);
  color: var(--muted);
  font-size: 12px;
}
.modal-footer > * {
  margin: 0;
}
.drawer {
  inset: 0;
  width: min(560px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border-width: 0 0 0 1px;
  border-radius: 0;
}
.drawer[open] {
  animation: club-drawer-in 0.24s var(--ease);
}
.command-dialog {
  width: min(660px, calc(100% - 36px));
  max-height: min(680px, calc(100dvh - 40px));
}
.command-input {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--modal-head);
}
.command-input input {
  border-color: transparent !important;
  background: var(--surface) !important;
  box-shadow: none;
}
.command-input > .icon {
  color: var(--brass-text);
}
.command-results {
  padding: 7px;
}
.command-results > a {
  border: 0;
  border-radius: 8px;
  padding: 12px;
}
.command-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: var(--modal-foot);
  color: var(--muted);
  font-size: 12px;
}
.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(440px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: auto;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--brass);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
  opacity: 1;
  font-size: 13px;
  animation: club-toast-in 0.2s var(--ease);
}
.toast.bad {
  border-left-color: var(--bad);
}
.toast.warm {
  border-left-color: var(--warm);
}
.demo-note {
  margin: 22px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer a {
  color: var(--muted);
}
.footer a:hover {
  color: var(--brass-text);
}
.noscript {
  padding: 20px;
  background: var(--surface-soft);
  color: var(--ink);
}

/* 14 · Tactile feedback and restrained motion. Content is always visible. */
[data-premium-card],
.directory-card {
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    border-color 0.22s;
}
[data-premium-card]:focus-visible,
[data-premium-card]:focus-within,
.directory-card:focus-visible {
  border-color: var(--brass);
  box-shadow: var(--shadow-lift);
}
[data-reveal] {
  animation: club-rise-in 0.45s var(--ease) backwards;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s,
    border-color 0.22s;
}
.kpi[data-reveal]:nth-child(2) {
  animation-delay: 0.035s;
}
.kpi[data-reveal]:nth-child(3) {
  animation-delay: 0.07s;
}
.kpi[data-reveal]:nth-child(4) {
  animation-delay: 0.105s;
}
@media (hover: hover) and (pointer: fine) {
  [data-premium-card]:hover,
  .directory-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--brass) 35%, var(--line));
    box-shadow: var(--shadow-lift);
  }
  .class-card:hover .card-photo,
  .class-card:focus-within .card-photo {
    transform: scale(1.025);
    filter: saturate(1.04);
  }
}
@keyframes club-rise-in {
  from {
    opacity: 0.82;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes club-dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes club-drawer-in {
  from {
    opacity: 0.6;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes club-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes club-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 15 · Responsive application: readable controls, scrollable registers, mobile agenda. */
@media (min-width: 1600px) {
  main {
    padding-inline: 38px;
    padding-top: 32px;
  }
  .topbar {
    padding-inline: 38px;
  }
  .card-photo {
    height: 205px;
  }
  .class-card .card-photo {
    height: 195px;
  }
}
@media (max-width: 1279px) {
  :root {
    --sidebar-width: 232px;
  }
  .sidebar {
    padding-inline: 13px;
  }
  .brand {
    font-size: 21px;
  }
  main {
    padding: 25px 24px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .topbar-location > span:last-child {
    display: none;
  }
  .page-heading {
    gap: 15px;
  }
  .page-heading p {
    max-width: 580px;
  }
  .heading-actions {
    flex-shrink: 1;
  }
  .heading-actions .btn {
    min-width: 140px;
  }
  .three-col {
    gap: 15px;
  }
  .class-card .card-content {
    padding: 16px;
  }
  .class-card .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .class-card .actions .btn {
    flex: auto;
  }
  .class-card .card-topline {
    align-items: flex-start;
  }
  .form-layout,
  .dashboard-main,
  .checkin-workspace,
  .ai-workspace {
    grid-template-columns: minmax(0, 1.45fr) minmax(245px, 1fr);
    gap: 18px;
  }
  .directory-grid,
  .document-grid,
  .export-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel-head {
    padding-inline: 19px;
  }
  .kpi {
    padding: 18px;
  }
  .kpi-number {
    font-size: 27px;
  }
  body[data-family='table'] .kpi-number {
    font-size: 23px;
  }
  .auth-editorial {
    padding: 28px;
  }
  .auth-card {
    padding: 24px;
  }
  .plan-card {
    padding: 19px;
  }
  .plan-price {
    font-size: 28px;
  }
}
@media (min-width: 1024px) and (max-width: 1130px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    padding-top: 24px;
  }
  .component-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .topbar-location {
    font-size: 12px;
  }
}
@media (max-width: 1023px) {
  :root {
    --sidebar-width: 270px;
  }
  .sidebar {
    transform: translateX(-100%);
    padding: 22px 16px 18px;
    transition: transform 0.24s var(--ease);
  }
  .nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 20px 0 70px #0815303d;
  }
  .app-shell {
    margin-left: 0;
  }
  .topbar .mobile-menu,
  .topbar .header-search {
    display: inline-flex;
  }
  .nav-open .nav-scrim {
    position: fixed;
    display: block;
    inset: 0 0 0 var(--sidebar-width);
    z-index: 50;
    width: calc(100% - var(--sidebar-width));
    height: 100dvh;
    border: 0;
    background: #111c3b80;
    backdrop-filter: blur(3px);
    animation: club-rise-in 0.18s var(--ease);
  }
  .nav-open {
    overflow: hidden;
  }
  .sidebar .brand {
    font-size: 24px;
    padding-bottom: 21px;
  }
  .sidebar .nav-item {
    min-height: 42px;
    font-size: 14px;
  }
  .sidebar .nav-label {
    font-size: 12px;
  }
  .sidebar .nav-section {
    margin-block: 16px;
  }
  .sidebar-footer {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
  .topbar {
    padding: 13px 24px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .heading-actions {
    flex-shrink: 0;
  }
  .heading-actions .btn {
    min-width: 0;
  }
  .card-topline > span:last-child {
    font-size: 12px;
  }
}
@media (max-width: 800px) {
  main {
    padding: 24px 20px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .heading-actions {
    max-width: 180px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col,
  .report-workspace,
  .roster-workspace,
  .split-workspace,
  .component-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .form-layout,
  .dashboard-main,
  .checkin-workspace,
  .ai-workspace {
    grid-template-columns: minmax(0, 1.25fr) minmax(230px, 1fr);
    gap: 16px;
  }
  .three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .card-content,
  .business-form,
  .stack-form,
  .prose {
    padding: 19px;
  }
  .card-topline {
    flex-direction: column;
    gap: 8px;
  }
  .form-grid {
    gap: 16px;
  }
  :is(.calendar-day, .calendar-grid > div) {
    padding: 5px;
  }
  .calendar-event {
    padding: 5px;
  }
  .auth-layout {
    gap: 20px;
  }
  .auth-editorial {
    min-height: 520px;
    padding: 24px;
  }
}
@media (max-width: 680px) {
  html {
    scroll-padding-top: 15px;
  }
  main {
    padding: 22px 18px;
  }
  .topbar {
    padding: 12px 18px;
    min-height: 68px;
    gap: 10px;
  }
  .topbar-location {
    gap: 8px;
  }
  .topbar-location > span {
    display: none;
  }
  .topbar-actions {
    gap: 8px;
  }
  .topbar-actions .btn {
    padding-inline: 11px;
    font-size: 13px;
  }
  .check-in-shortcut {
    display: none;
  }
  .page-heading {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 21px;
  }
  .page-heading h1 {
    font-size: 25px;
    margin-block: 6px 8px;
  }
  .page-heading .eyebrow {
    font-size: 12px;
  }
  .heading-actions {
    width: 100%;
    max-width: none;
  }
  .heading-actions .btn {
    min-height: 39px;
  }
  .two-col,
  .dashboard-main,
  .report-workspace,
  .form-layout,
  .checkin-workspace,
  .roster-workspace,
  .split-workspace,
  .ai-workspace,
  .settings-grid,
  .security-grid,
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .three-col,
  .plan-grid,
  .document-grid,
  .file-grid,
  .notes-grid,
  .export-grid,
  .resource-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .document-card,
  .export-card {
    margin-bottom: 18px;
  }
  .three-col > .panel {
    display: block;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 20px;
  }
  .kpi-grid > .kpi:nth-child(3):last-child {
    grid-column: 1 / -1;
  }
  .kpi {
    padding: 17px 15px;
    border-radius: 13px;
  }
  .kpi-number {
    font-size: 26px;
    margin-block: 9px 7px;
  }
  body[data-family='table'] .kpi-number {
    font-size: 21px;
    line-height: 1.35;
  }
  .kpi-label,
  .kpi-foot {
    font-size: 12px;
  }
  .mini-kpis {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .panel {
    margin-bottom: 20px;
    border-radius: 14px;
  }
  .panel-head {
    padding: 17px 18px;
    gap: 12px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .card-content,
  .business-form,
  .stack-form,
  .prose {
    padding: 19px 18px;
  }
  .panel > p:not([class]),
  .panel > .text-link,
  .panel > .subtle-note {
    margin-inline: 18px;
  }
  .period-toolbar {
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 19px;
  }
  .period-toolbar > div,
  .period-toolbar > .actions {
    width: 100%;
  }
  .period-toolbar .actions {
    justify-content: space-between;
  }
  .period-label {
    flex: 1;
    font-size: 12px;
    justify-content: space-between;
  }
  body[data-family='chart'] .period-toolbar > .period-label {
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
  }
  .period-label select {
    flex: 1;
    min-width: 0;
    max-width: 185px;
    font-size: 13px;
  }
  .class-card {
    display: block;
  }
  .class-card .card-photo {
    height: 190px;
    object-position: center 42%;
  }
  .class-card .card-content {
    padding: 19px;
  }
  .class-card .card-topline {
    flex-direction: row;
    align-items: center;
  }
  .class-card .actions {
    flex-direction: row;
  }
  .class-card .actions .btn {
    flex: 1;
    font-size: 13px;
  }
  .class-card h3 {
    font-size: 17px;
  }
  .class-card p {
    font-size: 13px;
  }
  .session-overview,
  .trainer-overview {
    grid-template-columns: minmax(0, 1fr);
  }
  .session-photo {
    height: 230px;
    min-height: 0;
  }
  .trainer-photo {
    height: 340px;
    object-position: center 20%;
  }
  .session-overview .card-content,
  .trainer-overview .card-content {
    padding: 22px 18px;
  }
  .profile-overview {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 18px;
    gap: 16px;
  }
  .identity {
    gap: 12px;
  }
  .identity p {
    font-size: 12px;
  }
  .avatar.large {
    width: 56px;
    height: 56px;
    font-size: 19px;
    border-radius: 16px;
  }
  .detail-list {
    padding: 10px 18px;
  }
  .detail-list > div {
    gap: 14px;
    font-size: 13px;
  }
  .detail-list dd {
    max-width: 62%;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  input:not([type='checkbox']):not([type='radio']),
  select,
  textarea {
    font-size: 16px;
  }
  .business-form,
  .stack-form {
    gap: 20px;
  }
  .form-actions > .btn,
  .form-footer > .btn {
    min-height: 43px;
  }
  .form-actions {
    gap: 10px;
  }
  .booking-summary,
  .membership-summary {
    padding: 17px;
  }
  .member-access-card > .badge {
    margin-left: 49px;
  }
  .table-toolbar {
    align-items: flex-end;
    padding: 16px;
    gap: 11px;
  }
  .search-field {
    flex-basis: 100%;
    min-width: 0;
  }
  .filter-field {
    flex: 1;
    min-width: 160px;
  }
  .filter-field select {
    font-size: 14px;
  }
  .table-toolbar > .btn {
    flex: 1;
  }
  .table-toolbar .column-menu {
    flex: 0 0 auto;
  }
  .table-scroll {
    max-width: 100%;
  }
  .records-table td,
  .simple-table td,
  .records-table th,
  .simple-table th {
    padding: 14px;
    font-size: 12px;
  }
  .records-table .btn,
  .records-table button,
  .simple-table .btn {
    font-size: 12px;
    min-height: 34px;
    padding: 6px 10px;
  }
  .records-table th button {
    padding: 0;
    min-height: 28px;
  }
  .table-bottom {
    gap: 14px;
    padding: 15px 16px;
  }
  .table-bottom select {
    font-size: 13px;
  }
  .pagination {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .pagination .btn {
    min-height: 38px;
  }
  .bulk-bar {
    padding-inline: 16px;
  }
  .board {
    grid-template-columns: repeat(4, 270px);
    gap: 13px;
  }
  .calendar-weekdays,
  .calendar-grid {
    display: none;
  }
  .calendar-agenda {
    display: block;
  }
  body[data-family='calendar'] main > .panel:first-of-type {
    border-bottom: 0;
  }
  body[data-family='calendar'] main > .panel:first-of-type .panel-head {
    border-bottom: 0;
  }
  .calendar-agenda .panel-head {
    background: var(--surface-soft);
  }
  .agenda-event {
    padding: 16px 18px;
    font-size: 14px;
  }
  .agenda-event small {
    font-size: 12px;
  }
  .agenda-event {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .agenda-event > time,
  .agenda-event > strong {
    flex: auto;
    font-size: 14px;
  }
  .agenda-event > span {
    font-size: 12px;
  }
  .wizard-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  .wizard-steps {
    display: flex;
    gap: 8px;
  }
  .wizard-steps li {
    flex: 1;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 12px 10px;
    margin: 0;
    font-size: 12px;
  }
  .wizard-step {
    padding: 22px 18px;
  }
  .wizard-step h2 {
    font-size: 20px;
  }
  .wizard-actions {
    padding: 16px 18px;
    gap: 9px;
  }
  .wizard-actions .btn {
    font-size: 12px;
  }
  .wizard-actions > span {
    flex-basis: 100%;
  }
  .upload-zone {
    padding: 28px 16px;
    margin: 18px;
  }
  .chart-canvas {
    height: 250px;
    margin: 20px 13px 16px;
  }
  .chart-canvas.tall {
    height: 300px;
  }
  .chart-meta {
    padding-inline: 18px;
  }
  .chart-accessible-summary {
    margin-inline: 18px;
  }
  .goal-list,
  .funnel-list {
    padding-inline: 18px;
  }
  .goal-card {
    grid-template-columns: minmax(0, 1fr) 95px;
    gap: 12px;
  }
  .goal-card input {
    font-size: 14px !important;
  }
  .mail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  .mail-folders,
  .mail-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
  }
  .mail-folders .folder {
    font-size: 12px;
    padding: 9px 10px;
  }
  .mail-folders > .btn {
    margin: 0;
    font-size: 12px;
  }
  .mail-row {
    align-items: flex-start;
    gap: 9px;
    padding: 17px 13px;
  }
  .mail-row .avatar {
    display: none;
  }
  .mail-row .star-button {
    width: 25px;
  }
  .mail-row p {
    line-height: 1.7;
  }
  .mail-row time {
    font-size: 12px;
  }
  .mail-row > div:last-child {
    flex-shrink: 0;
  }
  .mail-row .tag {
    padding: 3px 6px;
  }
  .email-body {
    padding: 22px 18px;
  }
  .invoice-sheet {
    padding: 22px 18px;
  }
  .invoice-heading {
    flex-direction: column;
    gap: 18px;
  }
  .invoice-address {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .invoice-sheet .two-col {
    gap: 0;
  }
  .invoice-sheet .detail-list {
    padding-inline: 0;
  }
  .invoice-total {
    max-width: none;
  }
  .invoice-sheet .table-scroll {
    margin-inline: -18px;
    max-width: calc(100% + 36px);
  }
  .plan-grid {
    gap: 0;
  }
  .plan-price {
    font-size: 32px;
  }
  .directory-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .directory-card {
    padding: 18px;
  }
  .directory-card p {
    font-size: 13px;
  }
  .color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
  }
  .color-swatch {
    padding: 11px;
    font-size: 13px;
    min-height: 140px;
  }
  .component-specimen {
    padding: 20px 18px;
  }
  .component-directory {
    padding: 18px;
  }
  .component-specimen fieldset {
    gap: 14px;
  }
  .tabs {
    margin-inline: 18px;
    padding: 5px;
    gap: 3px;
  }
  .tabs button,
  .segmented button {
    padding: 8px 10px;
    min-height: 37px;
    font-size: 12px;
  }
  [data-tab-panel] {
    padding: 19px 18px;
  }
  [data-tab-panel] .table-scroll {
    margin: -19px -18px;
  }
  .tabs + [data-tab-panel] {
    margin-top: 5px;
  }
  .task-row {
    flex-wrap: wrap;
    padding: 17px 18px;
  }
  .task-row > div:first-of-type {
    flex-basis: calc(100% - 35px);
  }
  .task-row .actions {
    margin-left: 30px;
  }
  .auth-layout {
    gap: 20px;
  }
  .auth-editorial {
    min-height: 280px;
    padding: 24px;
  }
  .auth-editorial h2 {
    font-size: 27px;
  }
  .auth-editorial h2 br {
    display: none;
  }
  .auth-editorial p {
    max-width: 300px;
  }
  .auth-card {
    padding: 24px 20px;
  }
  .error-layout {
    margin-block: 20px;
    padding-inline: 12px;
  }
  .error-layout h2 {
    font-size: 23px;
  }
  .context-bar > .subtle {
    margin-left: 0;
  }
  .app-dialog,
  .command-dialog {
    width: calc(100% - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 15px;
  }
  .dialog-head,
  .modal-header {
    padding: 17px 18px;
  }
  .dialog-head h2 {
    font-size: 17px;
  }
  .modal-body {
    padding: 21px 18px;
  }
  .modal-footer {
    padding: 14px 18px max(14px, env(safe-area-inset-bottom));
  }
  .drawer {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }
  .command-input {
    padding: 14px;
    gap: 8px;
  }
  .command-input input {
    font-size: 15px;
    padding-inline: 9px;
  }
  .command-footer {
    font-size: 12px;
    padding: 12px 16px;
  }
  .toast-region {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: 16px;
    left: 16px;
    max-width: none;
  }
  .toast {
    font-size: 13px;
  }
  .footer {
    flex-direction: column;
    gap: 9px;
    padding-top: 18px;
    font-size: 12px;
  }
}
@media (max-width: 440px) {
  .topbar-location a {
    display: none;
  }
  .topbar-actions .btn.primary {
    min-height: 40px;
  }
  .page-heading p {
    line-height: 1.7;
  }
  .kpi-grid {
    gap: 10px;
  }
  .kpi {
    padding: 16px 14px;
  }
  .kpi-number {
    font-size: 25px;
  }
  .period-label {
    flex-wrap: wrap;
  }
  .period-label select {
    max-width: none;
  }
  .period-toolbar > .actions {
    gap: 9px;
  }
  .period-toolbar > .actions > .btn {
    padding-inline: 11px;
    font-size: 12px;
  }
  .card-content .card-photo,
  .prose .card-photo {
    height: 180px;
  }
  .member-access-card {
    padding: 15px;
  }
  .identity {
    align-items: flex-start;
  }
  .identity .avatar {
    margin-top: 3px;
  }
}
/* Club day: the class is the working surface; compact reporting supports it. */
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr);
  grid-template-areas: 'floor metrics' 'capacity desk' 'more arrivals';
  gap: 20px;
  align-items: start;
}
.overview-grid > *,
.overview-panels > * {
  min-width: 0;
}
.overview-panels {
  display: contents;
}
.overview-grid .panel {
  margin-bottom: 0;
}
.floor-feature {
  grid-area: floor;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-self: stretch;
  background: var(--surface);
}
.floor-feature .card-photo {
  height: 100%;
  min-height: 284px;
  object-position: 45% center;
}
.floor-feature .card-content {
  padding: 22px;
  background: radial-gradient(ellipse at 100% 0, var(--accent-soft), transparent 80%), var(--surface);
}
.floor-feature .eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
}
.floor-feature h2 {
  margin: 10px 0;
  font-size: 21px;
}
.floor-feature h2 a {
  color: var(--ink);
  text-decoration: none;
}
.floor-feature .card-topline {
  margin-bottom: 8px;
}
.floor-feature .card-content > p {
  margin-bottom: 16px;
}
.overview-metrics {
  grid-area: metrics;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: stretch;
  gap: 12px;
  margin: 0;
}
.overview-metrics .kpi {
  padding: 16px 18px;
}
.overview-metrics .kpi-number {
  margin-block: 8px 5px;
  font-size: 29px;
}
.overview-capacity {
  grid-area: capacity;
}
.overview-arrivals {
  grid-area: arrivals;
}
.overview-arrivals .chart-canvas {
  height: 175px;
  padding-top: 6px;
}
.overview-arrivals .chart-meta {
  padding-block: 12px 0;
}
.overview-desk {
  grid-area: desk;
}
.overview-desk .action-list {
  padding-top: 0;
}
.overview-desk .action-list li {
  padding-block: 15px;
}
.presence-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 18px 22px;
  margin-bottom: 2px;
  background: linear-gradient(120deg, var(--good-soft), var(--surface));
  font-size: 12px;
}
.presence-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}
.overview-more {
  grid-area: more;
}
.overview-more .section-label {
  margin-top: 0;
}
.overview-class-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.overview-class-list .class-card {
  display: block;
}
.overview-class-list .card-photo {
  height: 145px;
  min-height: 0;
}
.overview-class-list .card-content {
  padding: 16px;
}
.overview-more .section-label h2 {
  font-size: 15px;
}
.overview-more .section-label a {
  font-size: 12px;
}
.roster-workspace {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  grid-template-areas: 'session enroll' 'session confirmed';
  gap: 18px;
  margin-bottom: 22px;
}
.roster-workspace .panel {
  margin-bottom: 0;
}
.roster-session-card {
  grid-area: session;
}
.roster-enrollment-card {
  grid-area: enroll;
}
.roster-confirmed-card {
  grid-area: confirmed;
}
.roster-photo {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 42%;
}
.roster-session-card .panel-head {
  align-items: start;
  gap: 12px;
}
.roster-session-card .panel-head h2 {
  margin-top: 5px;
}
.roster-session-card .panel-head .btn {
  font-size: 12px;
  padding-inline: 10px;
  flex-shrink: 0;
}
.roster-session-summary .detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}
.roster-session-summary .detail-list > div {
  display: block;
  padding-block: 10px;
}
.roster-session-summary dd {
  margin-top: 3px;
  text-align: left;
}
.roster-enrollment-card .business-form {
  padding-block: 18px;
}
.eligibility-note {
  padding: 10px 12px;
  margin: 12px 0;
  color: var(--ink);
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 12px;
}
.roster-confirmed-card td {
  padding-block: 12px;
}
.roster-confirmed-card td:last-child .btn {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  padding: 4px 9px;
  min-height: 32px;
}
@media (max-width: 1200px) and (min-width: 901px) {
  .overview-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
  }
  .floor-feature {
    grid-template-columns: 1fr;
  }
  .floor-feature .card-photo {
    min-height: 0;
    height: 150px;
  }
  .overview-class-list .class-card {
    display: block;
  }
  .overview-class-list .card-photo {
    height: 160px;
    min-height: 0;
  }
}
@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'floor' 'metrics' 'capacity' 'desk' 'arrivals' 'more';
  }
  .overview-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .overview-metrics .kpi {
    padding: 16px 12px;
  }
  .roster-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'session' 'enroll' 'confirmed';
  }
  .roster-photo {
    height: 210px;
  }
}
@media (max-width: 600px) {
  .overview-grid {
    gap: 16px;
  }
  .floor-feature,
  .overview-class-list .class-card {
    display: block;
  }
  .floor-feature .card-photo {
    height: 190px;
    min-height: 0;
  }
  .floor-feature .card-content {
    padding: 20px;
  }
  .floor-feature h2 {
    font-size: 22px;
  }
  .overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-class-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .overview-class-list .card-photo {
    height: 180px;
    min-height: 0;
  }
  .roster-photo {
    height: 180px;
  }
  .roster-session-card .panel-head {
    flex-wrap: wrap;
  }
  .roster-session-summary .detail-list {
    column-gap: 12px;
  }
  .roster-confirmed-card .simple-table {
    min-width: 530px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-premium-card]:hover,
  .directory-card:hover,
  .class-card:hover .card-photo {
    transform: none;
  }
}
@media print {
  .sidebar,
  .topbar,
  .heading-actions,
  .context-bar,
  .no-print,
  .demo-note,
  .footer,
  .toast-region {
    display: none !important;
  }
  .app-shell {
    margin: 0;
  }
  main {
    max-width: none;
    padding: 0;
  }
  body {
    color: #202b43;
    background: #fff;
  }
  .panel {
    box-shadow: none;
    break-inside: avoid;
  }
  .table-scroll {
    overflow: visible;
  }
  .invoice-sheet {
    padding: 0;
  }
}
