:root {
  --blue: #004aad;
  --blue-dark: #003779;
  --coral: #ff6254;
  --navy: #08143d;
  --logo-navy: #144175;
  --white: #fbfdfe;
  --ice: #edf6fc;
  --muted: #64718a;
  --line: #d8e8f4;
  --success: #18865d;
  --warning: #c57a15;
  --danger: #c94343;
  --shadow: 0 18px 48px rgba(8, 20, 61, .1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body { margin: 0; color: var(--navy); background: #f3f8fc; font-family: "Manrope", sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "Sora", sans-serif; letter-spacing: -.03em; }
h1 { font-size: clamp(1.65rem, 2.6vw, 2.35rem); }
h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.eyebrow { color: var(--coral); font-size: .67rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; display: flex; flex-direction: column; color: white; background: var(--logo-navy); }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; }
.tracker-brand { display: flex; align-items: center; gap: 11px; }
.tracker-brand img { width: 68px; height: 68px; padding: 8px 4px; object-fit: contain; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; background: white; box-shadow: 0 7px 18px rgba(8,20,61,.15); }
.tracker-brand span { display: flex; flex-direction: column; }
.tracker-brand strong { font-family: "Sora", sans-serif; font-size: .92rem; }
.tracker-brand small { color: #bfd2e5; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.app-nav { margin-top: 44px; display: grid; gap: 8px; }
.nav-button { width: 100%; min-height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 13px; border: 0; border-radius: 13px; color: #dbe9f5; background: transparent; font-weight: 700; text-align: left; cursor: pointer; }
.nav-button span { width: 23px; color: #8fb3d6; font-size: 1.15rem; text-align: center; }
.nav-button:hover, .nav-button.is-active { color: white; background: rgba(255,255,255,.12); }
.nav-button.is-active span { color: var(--coral); }
.sidebar-footer { margin-top: auto; display: grid; gap: 12px; color: #bfd2e5; font-size: .8rem; }
.mode-badge { width: max-content; padding: 6px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff1ef; background: rgba(255,98,84,.14); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-close, .mobile-menu { display: none !important; }

.workspace { min-width: 0; }
.topbar { min-height: 112px; padding: 24px clamp(22px, 4vw, 58px); display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(251,253,254,.92); backdrop-filter: blur(14px); }
.topbar > div:nth-child(2) { display: grid; gap: 4px; }
.topbar-actions { margin-left: auto; display: flex; gap: 10px; }
.main-content { padding: clamp(22px, 3.5vw, 48px); }
.view { display: none; }
.view.is-active { display: block; }

.button { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 10px 22px rgba(0,74,173,.18); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--logo-navy); border-color: var(--line); background: white; }
.text-button { padding: 0; border: 0; color: var(--blue); background: transparent; font-weight: 800; cursor: pointer; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--navy); background: var(--ice); font-size: 1.35rem; cursor: pointer; }

.stat-grid { margin-bottom: 24px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.payment-stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.stat-card { min-height: 142px; padding: 22px; border: 1px solid rgba(216,232,244,.95); border-radius: 20px; background: white; box-shadow: 0 10px 28px rgba(8,20,61,.055); }
.stat-card::before { width: 32px; height: 3px; margin-bottom: 18px; display: block; border-radius: 3px; background: var(--coral); content: ""; }
.stat-card strong { display: block; font: 800 clamp(1.65rem, 3vw, 2.35rem) "Sora", sans-serif; }
.stat-card span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.75fr); gap: 24px; }
.panel { padding: clamp(20px, 2.5vw, 30px); overflow: hidden; border: 1px solid rgba(216,232,244,.95); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.panel-heading { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-heading > div:first-child { display: grid; gap: 6px; }
.panel-heading-wrap { flex-wrap: wrap; }
.report-toolbar { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.report-toolbar > div:first-child { display: grid; gap: 5px; }
.report-actions { display: flex; align-items: end; gap: 10px; }
.month-field { display: grid; gap: 5px; color: var(--muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.month-field input { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--navy); background: white; font-weight: 700; }
.report-month-field input { min-width: 164px; }
.monthly-panel { margin-bottom: 24px; }
.report-panel + .report-panel { margin-top: 24px; }
.session-list, .attention-list { display: grid; gap: 10px; }
.session-item { padding: 15px; display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.session-time { color: var(--logo-navy); font-family: "Sora", sans-serif; font-weight: 800; }
.session-item h3 { font-size: .96rem; }
.session-item p { margin-top: 2px; color: var(--muted); font-size: .76rem; }
.today-session-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.status { width: max-content; padding: 5px 9px; border-radius: 999px; font-size: .65rem; font-weight: 800; text-transform: capitalize; }
.status-scheduled { color: var(--blue); background: rgba(0,74,173,.09); }
.status-completed { color: var(--success); background: rgba(24,134,93,.1); }
.status-cancelled, .status-missed { color: var(--danger); background: rgba(201,67,67,.09); }
.status-neutral { color: var(--muted); background: rgba(100,113,138,.1); }
.session-number { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; padding: 5px 7px; border-radius: 8px; color: var(--blue); background: rgba(0,74,173,.10); font: 800 .66rem "Sora", sans-serif; letter-spacing: .02em; white-space: nowrap; }
.history-date .session-number { margin-right: 4px; vertical-align: middle; }
.attention-item { padding: 15px; border-left: 3px solid var(--coral); border-radius: 4px 13px 13px 4px; background: var(--ice); }
.attention-item strong { display: block; font-size: .87rem; }
.attention-item span { color: var(--muted); font-size: .74rem; }
.empty-state { padding: 28px 16px; color: var(--muted); text-align: center; }

.session-filters { display: grid; gap: 9px; }
.filter-row { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.filter-label { min-width: 44px; color: var(--muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: .75rem; font-weight: 800; cursor: pointer; }
.chip.is-active { color: white; border-color: var(--logo-navy); background: var(--logo-navy); }
.payment-tabs { margin: 26px 0 14px; padding: 5px; display: inline-flex; gap: 5px; border: 1px solid var(--line); border-radius: 13px; background: var(--ice); }
.payment-tabs button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: .72rem; font-weight: 800; cursor: pointer; }
.payment-tabs button.is-active { color: white; background: var(--logo-navy); box-shadow: 0 6px 15px rgba(20,65,117,.17); }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: #7a879c; font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: .83rem; }
tbody tr:hover { background: #f8fbfd; }
.table-action { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--blue); background: white; font-size: .72rem; font-weight: 800; cursor: pointer; }
.table-status { min-width: 112px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: .75rem; }

.search-field input { width: min(280px, 70vw); min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.client-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.client-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.client-card-top { display: flex; align-items: center; gap: 12px; }
.avatar { width: 43px; height: 43px; display: grid; flex: 0 0 auto; overflow: hidden; place-items: center; border-radius: 50%; color: white; background: var(--logo-navy); font-family: "Sora", sans-serif; font-weight: 800; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.client-card h3 { font-size: .95rem; }
.client-card .goal { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.progress-row { margin-top: 19px; display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; font-weight: 700; }
.progress { height: 7px; margin: 8px 0 15px; overflow: hidden; border-radius: 8px; background: var(--line); }
.progress i { height: 100%; display: block; border-radius: inherit; background: var(--blue); }
.client-meta { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; color:var(--muted); font-size:.7rem; }
.client-card-actions { margin-top: 17px; padding-top: 14px; display: flex; border-top: 1px solid var(--line); }
.client-card-actions .table-action { width: 100%; }
.consistency-mini { margin: 12px 0; padding: 10px 11px; display: grid; gap: 3px; border-radius: 11px; color: #bc4036; background: #fff1ef; }
.consistency-mini strong { font-size: .74rem; }
.consistency-mini span { color: var(--muted); font-size: .68rem; }

.modal { width: min(720px, calc(100% - 24px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; border: 0; border-radius: 24px; color: var(--navy); background: white; box-shadow: 0 30px 80px rgba(8,20,61,.3); }
.modal::backdrop { background: rgba(8,20,61,.72); backdrop-filter: blur(5px); }
.modal-card { padding: clamp(22px, 4vw, 34px); }
.modal-heading { margin-bottom: 24px; display: flex; justify-content: space-between; gap: 20px; }
.modal-heading > div:not(.profile-heading) { display: grid; gap: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label, .auth-form label { display: grid; gap: 6px; color: var(--logo-navy); font-size: .75rem; font-weight: 800; }
.form-grid input, .form-grid select, .form-grid textarea, .auth-form input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--navy); background: white; font-weight: 500; }
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .auth-form input:focus { outline: 3px solid rgba(0,74,173,.12); border-color: var(--blue); }
.form-wide { grid-column: 1 / -1; }
.check-label { display: flex !important; align-items: center; grid-template-columns: none !important; }
.check-label input { width: 18px; min-height: 18px; margin-right: 9px; accent-color: var(--blue); }
.modal-actions { margin-top: 28px; display: flex; justify-content: flex-end; gap: 10px; }
.payment-modal-card { width: min(620px, 100%); }
.payment-pending { margin-top: 15px; padding: 11px 13px; border-radius: 11px; color: var(--logo-navy); background: var(--ice); font-size: .76rem; font-weight: 800; }
.profile-page-shell { min-height: 100vh; padding: clamp(18px, 4vw, 48px); background: #f3f8fc; }
.profile-page-card { width: min(1040px, 100%); margin: 0 auto; padding: clamp(22px, 4vw, 42px); border: 1px solid rgba(216,232,244,.95); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.profile-heading { display: flex; align-items: center; gap: 17px; }
.profile-heading-copy { display: grid; gap: 5px; }
.profile-photo-picker { display: grid; justify-items: center; gap: 5px; cursor: pointer; }
.profile-photo-frame { width: 76px; height: 76px; display: grid; overflow: hidden; place-items: center; border: 3px solid white; border-radius: 50%; color: white; background: var(--logo-navy); box-shadow: 0 0 0 1px var(--line), 0 8px 18px rgba(8,20,61,.14); font: 800 1.25rem "Sora", sans-serif; }
.profile-photo-frame > * { grid-area: 1 / 1; }
.profile-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-action { color: var(--blue); font-size: .66rem; font-weight: 800; }
.profile-tabs { position: sticky; z-index: 2; top: 0; margin: -5px 0 22px; padding: 6px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; border: 1px solid var(--line); border-radius: 15px; background: rgba(237,246,252,.96); backdrop-filter: blur(10px); }
.profile-tabs button { min-height: 42px; padding: 7px 10px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: .75rem; font-weight: 800; cursor: pointer; }
.profile-tabs button span { margin-left: 5px; padding: 2px 6px; border-radius: 999px; color: var(--logo-navy); background: rgba(20,65,117,.09); font-size: .62rem; }
.profile-tabs button.is-active { color: white; background: var(--logo-navy); box-shadow: 0 8px 18px rgba(20,65,117,.18); }
.profile-tabs button.is-active span { color: white; background: rgba(255,255,255,.16); }
.profile-section { padding: 24px 0; border-top: 1px solid var(--line); }
.profile-section:first-of-type { padding-top: 4px; border-top: 0; }
.profile-section-heading { margin-bottom: 18px; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.profile-section-heading > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--logo-navy); font-size: .65rem; font-weight: 800; }
.profile-section-heading h3 { font-size: 1rem; }
.profile-section-heading p { margin-top: 3px; color: var(--muted); font-size: .74rem; }
.privacy-note { padding: 13px 15px; border-left: 3px solid var(--coral); border-radius: 5px 12px 12px 5px; color: var(--muted); background: var(--ice); font-size: .76rem; }
.privacy-note strong { color: var(--navy); }
.profile-related-panel { min-height: 300px; padding: 6px 0 24px; }
.related-heading { margin-bottom: 18px; }
.related-heading-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.related-heading h3 { font-size: 1.05rem; }
.related-heading p { margin-top: 4px; color: var(--muted); font-size: .76rem; }
.profile-history-list, .profile-package-list { display: grid; gap: 10px; }
.history-card { padding: 16px; display: grid; grid-template-columns: 105px minmax(0,1fr) auto; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.history-date { font-family: "Sora", sans-serif; font-size: .78rem; font-weight: 800; }
.history-date span { display: block; margin-top: 3px; color: var(--muted); font-family: "Manrope", sans-serif; font-size: .7rem; }
.history-card h4 { margin: 0; font-size: .83rem; }
.history-card p { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.history-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.more-button { width: 34px; height: 34px; display: inline-grid; flex: 0 0 34px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--logo-navy); background: white; font-size: 1.15rem; font-weight: 800; line-height: 1; cursor: pointer; }
.more-button:hover { border-color: var(--blue); color: var(--blue); }
.package-status-actions { display: flex; align-items: center; gap: 7px; }
.action-menu { width: min(300px, calc(100% - 32px)); margin: auto; padding: 0; border: 0; border-radius: 16px; color: var(--navy); background: white; box-shadow: 0 24px 60px rgba(8,20,61,.28); }
.action-menu::backdrop { background: rgba(8,20,61,.45); }
.action-menu-card { padding: 8px; display: grid; gap: 3px; }
.action-menu-card button { min-height: 44px; padding: 0 13px; border: 0; border-radius: 10px; color: var(--logo-navy); background: transparent; text-align: left; font: 800 .8rem "Manrope", sans-serif; cursor: pointer; }
.action-menu-card button:hover { background: var(--ice); }
.action-menu-card .danger-action { color: var(--danger); }
.profile-record-actions { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 7px; }
.danger-action { color: var(--danger); border-color: rgba(201,67,67,.26); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.package-card { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.package-card-top, .package-stats { display: flex; justify-content: space-between; gap: 15px; }
.package-card h4 { margin: 0; font: 700 .92rem "Sora", sans-serif; }
.package-card-top p { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.package-card-actions { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 8px; }
.package-card-actions .button { min-height: 34px; padding: 7px 12px; font-size: .68rem; }
.optional-label { color: var(--muted); font-size: .65rem; font-weight: 600; }
.activation-options { padding: 0; display: grid; gap: 9px; border: 0; }
.activation-options legend { margin-bottom: 8px; font-size: .72rem; font-weight: 800; }
.activation-options label { padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--ice); cursor: pointer; }
.activation-options input { width: auto; margin-top: 3px; }
.activation-options span { display: grid; gap: 3px; }
.activation-options strong { font-size: .74rem; }
.activation-options small { color: var(--muted); font-size: .67rem; line-height: 1.4; }
.compact-modal-card { width: min(480px, calc(100vw - 32px)); }
.consistency-row { margin-top: 14px; padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 12px; background: var(--ice); }
.consistency-row > div { display: grid; gap: 5px; }
.consistency-row p, .consistency-row small { color: var(--muted); font-size: .69rem; }
.consistency-row small { text-align: right; }
.package-stats { margin-top: 16px; padding-top: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); }
.package-stats div { display: grid; gap: 2px; }
.package-stats span { color: var(--muted); font-size: .63rem; font-weight: 700; text-transform: uppercase; }
.package-stats strong { font-size: .82rem; }
.package-sessions { margin-top: 15px; border-top: 1px solid var(--line); }
.package-sessions summary { padding: 14px 2px 2px; color: var(--blue); font-size: .74rem; font-weight: 800; cursor: pointer; list-style-position: inside; }
.package-sessions[open] summary { margin-bottom: 11px; }
.package-session-list { display: grid; gap: 8px; }
.package-session-list .history-card { padding: 13px; grid-template-columns: 98px minmax(0,1fr) auto; box-shadow: none; }
.package-session-list .history-card h4 { font-size: .76rem; }
.unassigned-note { padding: 13px; border-radius: 12px; color: var(--muted); background: var(--ice); font-size: .74rem; }
.terms-confirmation { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--ice); }
.terms-status { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: var(--ice); }
.terms-status input:disabled { opacity: 1; }

.auth-screen { min-height: 100vh; padding: 24px; display: grid; place-items: center; background: radial-gradient(circle at 80% 15%, rgba(0,74,173,.14), transparent 34%), var(--ice); }
.auth-card { width: min(440px, 100%); padding: clamp(28px, 5vw, 44px); display: grid; gap: 32px; border: 1px solid white; border-radius: 28px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.auth-card .tracker-brand strong { color: var(--logo-navy); }
.auth-card .tracker-brand small { color: var(--muted); }
.auth-card > div { display: grid; gap: 10px; }
.auth-form { display: grid; gap: 16px; }
.form-error { padding: 10px 12px; border-radius: 10px; color: var(--danger); background: rgba(201,67,67,.08); font-size: .78rem; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(360px, calc(100% - 48px)); padding: 13px 17px; border-radius: 13px; color: white; background: var(--navy); box-shadow: var(--shadow); font-size: .82rem; font-weight: 700; }

@media (max-width: 1050px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .payment-stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 780px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 80; left: 0; width: min(290px, 86vw); transform: translateX(-105%); transition: transform .25s ease; }
  .sidebar.is-open { transform: none; }
  .sidebar-close, .mobile-menu { display: grid !important; }
  .sidebar-close { color: white; background: rgba(255,255,255,.12); }
  .sidebar-scrim { position: fixed; z-index: 70; inset: 0; background: rgba(8,20,61,.55); }
  .topbar { min-height: auto; padding: 17px 18px; flex-wrap: wrap; }
  .topbar > div:nth-child(2) { flex: 1; }
  .topbar-actions { width: 100%; margin: 3px 0 0; }
  .topbar-actions .button { flex: 1; padding-inline: 13px; font-size: .77rem; }
  .main-content { padding: 18px 14px 28px; }
  .session-filters { width: 100%; }
  .filter-row { display: grid; justify-content: stretch; }
  .report-toolbar, .report-actions { align-items: stretch; }
  .report-toolbar { flex-direction: column; }
  .report-actions { flex-wrap: wrap; }
  .report-actions .month-field { flex: 1; }
  .client-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 118px; padding: 16px; }
  .session-item { grid-template-columns: 58px minmax(0,1fr); }
  .today-session-actions { grid-column: 2; justify-content:flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .modal-actions .button { flex: 1; }
  .profile-tabs { grid-template-columns: 1fr; position: static; }
  .profile-page-shell { padding: 0; }
  .profile-page-card { border: 0; border-radius: 0; box-shadow: none; }
  .modal-heading { align-items: flex-start; }
  .profile-heading { align-items: flex-start; }
  .profile-photo-frame { width: 64px; height: 64px; }
  .history-card { grid-template-columns: 85px minmax(0,1fr); }
  .history-actions { grid-column: 2; align-items: center; justify-content: flex-start; }
  .package-stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .payment-stat-grid { grid-template-columns: 1fr; }
  .consistency-row { align-items: flex-start; flex-direction: column; }
  .consistency-row small { text-align: left; }
  .package-session-list .history-card { grid-template-columns: 78px minmax(0,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.training-days { border:1px solid var(--line); border-radius:12px; display:flex; flex-wrap:wrap; gap:14px; padding:14px; }
.training-days label { display:flex; align-items:center; gap:6px; }
.training-days input { width:18px; min-height:18px; }
