:root {
  color-scheme: light;
  --canvas: #f5f3ee;
  --paper: #fff;
  --ink: #20251f;
  --muted: #62685f;
  --line: #dedfd7;
  --soft: #f4f5f1;
  --accent: #ae4827;
  --accent-dark: #8d371c;
  --accent-pale: #fbede7;
  --green: #35856a;
  --green-pale: #e8f4ed;
  --yellow: #b57b2f;
  --yellow-pale: #faf1df;
  --red: #ba594b;
  --red-pale: #faeae8;
  --shadow: none;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgb(214 107 67 / 32%); outline-offset: 2px; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 8; display: flex; flex-direction: column; width: 250px; padding: 28px 17px 18px; background: var(--paper); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 34px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: white; background: var(--accent); }
.brand-mark svg { width: 31px; height: 31px; stroke-width: 1.6; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font: 800 19px/1 Manrope, sans-serif; letter-spacing: -.8px; }
.brand-copy strong span { color: var(--accent); }
.brand-copy small { color: #9a9e96; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.nav-caption { padding: 0 11px 11px; color: #a4a79f; font-size: 10px; font-weight: 700; letter-spacing: 1.25px; }
.nav-links { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 46px; padding: 0 11px; border: 0; border-radius: 9px; color: #656c62; background: transparent; text-align: left; font-size: 13px; font-weight: 600; cursor: pointer; transition: .18s ease; }
.nav-link:hover { background: #f7f7f5; color: var(--ink); }
.nav-link.active { color: var(--accent-dark); background: var(--accent-pale); }
.nav-icon svg { width: 19px; height: 19px; }
.nav-link .nav-count { display: grid; min-width: 22px; height: 22px; margin-left: auto; place-items: center; border-radius: 7px; color: #858a81; background: #eeefeb; font-size: 11px; }
.nav-link.active .nav-count { color: var(--accent-dark); background: #f7ded3; }
.sidebar-spacer { flex: 1; min-height: 24px; }
.side-tip { margin: 0 2px 19px; padding: 16px 14px; border: 1px solid #f0e9de; border-radius: 12px; background: #faf8f2; }
.tip-icon { display: grid; width: 29px; height: 29px; margin-bottom: 11px; place-items: center; border-radius: 9px; color: #b47a37; background: #f4ead6; }
.tip-icon svg { width: 17px; height: 17px; }
.side-tip strong { display: block; font: 700 12px/1.4 Manrope, sans-serif; }
.side-tip p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.profile-chip { display: flex; align-items: center; gap: 10px; padding: 12px 7px 3px; border-top: 1px solid var(--line); }
.avatar { display: inline-grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 11px; font-size: 11px; font-weight: 700; }
.avatar-amber { color: #a95d32; background: #f7e5d9; }
.avatar-mint { color: #33765f; background: #e3f1e9; }
.avatar-lilac { color: #6c5a97; background: #eee9f8; }
.avatar-blue { color: #486d97; background: #e5eef8; }
.profile-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.profile-copy strong { font-size: 12px; }
.profile-copy small { color: var(--muted); font-size: 10px; }
.more-button, .icon-button { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 10px; color: #777e74; background: transparent; cursor: pointer; }
.more-button:hover, .icon-button:hover { color: var(--ink); background: var(--soft); }
.more-button svg { width: 18px; }
.main-area { min-height: 100vh; margin-left: 250px; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgb(247 247 244 / 92%); backdrop-filter: blur(16px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #979c93; font-size: 12px; }
.breadcrumb strong { color: #42483f; font-weight: 600; }
.crumb-slash { color: #c6c9c2; }
.topbar-actions { display: flex; align-items: center; gap: 11px; }
.storage-pill { display: flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #e4e9e3; border-radius: 9px; color: #66756a; background: #f5f8f4; font-size: 10px; font-weight: 600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #66a17d; box-shadow: 0 0 0 3px #e5f1e8; }
.live-dot.reconnecting { background: #d09a47; box-shadow: 0 0 0 3px #f7eedf; }
.help-button { width: 31px; height: 31px; }
.help-button svg { width: 17px; height: 17px; }
.topbar-divider { width: 1px; height: 29px; margin: 0 4px; background: var(--line); }
.view-picker { position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 121px; padding-right: 20px; }
.view-picker select { width: 100%; padding: 0; border: 0; appearance: none; color: var(--ink); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.view-picker > svg { position: absolute; top: 14px; right: 0; width: 14px; height: 14px; color: #777e74; pointer-events: none; }
.view-label { color: #979c93; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.menu-toggle { display: none; }
.page-content { width: min(1200px, 100%); margin: 0 auto; padding: 34px 42px 55px; }
.preview-notice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; margin-bottom: 17px; padding: 11px 13px; border: 1px solid #eadfca; border-radius: 9px; color: #765b2e; background: #fbf7ee; font-size: 11px; line-height: 1.45; }
.preview-notice strong { font-weight: 700; }
.preview-notice span { color: #8a7350; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.heading-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 8px; }
.heading-actions > .button { white-space: nowrap; }
.eyebrow { margin: 0 0 7px; color: #92988e; font-size: 10px; font-weight: 700; letter-spacing: 1.25px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.page-heading h1 { margin: 0; font: 700 27px/1.25 Manrope, sans-serif; letter-spacing: -.75px; }
.page-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; transition: .16s ease; }
.button svg { width: 16px; height: 16px; }
.button-primary { color: white; background: var(--accent); box-shadow: 0 3px 7px rgb(214 107 67 / 15%); }
.button-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.button-secondary { border-color: var(--line); color: #4a5147; background: white; }
.button-secondary:hover { border-color: #d5d8d1; background: #fbfbf9; }
.button-soft { color: var(--accent-dark); background: var(--accent-pale); }
.button-soft:hover { background: #f7dfd5; }
.button-danger { color: var(--red); background: var(--red-pale); }
.button-small { min-height: 33px; padding: 0 11px; font-size: 11px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.owner-data-tools, .owner-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid #efd7cc; border-radius: 10px; background: #fff8f5; }
.owner-data-tools { margin-top: 18px; }
.owner-data-tools strong, .owner-danger-zone strong { display: block; margin-bottom: 4px; font-size: 13px; }
.owner-data-tools p, .owner-danger-zone p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.owner-data-tools .button, .owner-danger-zone .button { flex: 0 0 auto; }
.owner-delete-warning { padding: 14px; border: 1px solid #efd7cc; border-radius: 9px; background: #fff8f5; }
.owner-delete-warning strong { display: block; margin-bottom: 8px; color: #762f24; font-size: 14px; }
.owner-delete-warning p { margin: 7px 0 0; color: #6d635f; font-size: 12px; line-height: 1.55; }
.owner-delete-warning code { color: #762f24; font-weight: 700; }
.owner-delete-form .dialog-actions .button-danger { color: #fff; background: #a33c2b; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 20px; }
.stat-card { position: relative; min-height: 119px; padding: 17px 18px 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-label { color: #737a70; font-size: 11px; font-weight: 600; }
.stat-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; color: var(--accent); background: var(--accent-pale); }
.stat-icon svg { width: 16px; height: 16px; }
.stat-icon.green { color: var(--green); background: var(--green-pale); }
.stat-icon.yellow { color: var(--yellow); background: var(--yellow-pale); }
.stat-number { display: block; margin-top: 9px; font: 700 25px/1 Manrope, sans-serif; letter-spacing: -.7px; }
.stat-foot { display: block; margin-top: 6px; color: #999e95; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(265px, .9fr); gap: 16px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid #f0f0ed; }
.panel-heading { min-width: 0; }
.panel-header h2 { margin: 0; font: 700 14px/1.4 Manrope, sans-serif; letter-spacing: -.2px; }
.panel-header p { margin: 3px 0 0; color: #989d94; font-size: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; border: 0; color: var(--accent-dark); background: transparent; font-size: 10px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.text-link svg { width: 13px; height: 13px; }
.empty-state { display: flex; min-height: 181px; flex-direction: column; align-items: center; justify-content: center; padding: 28px 20px; text-align: center; }
.empty-icon { display: grid; width: 40px; height: 40px; margin-bottom: 11px; place-items: center; border-radius: 13px; color: var(--accent); background: var(--accent-pale); }
.empty-icon svg { width: 19px; height: 19px; }
.empty-state strong { font-size: 12px; }
.empty-state p { max-width: 270px; margin: 6px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.empty-state .button { min-height: 34px; }
.session-list { padding: 3px 18px; }
.session-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f1ed; }
.session-item:last-child { border-bottom: 0; }
.session-dot { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-pale); }
.session-dot svg { width: 15px; height: 15px; }
.session-dot.credit { color: var(--accent); background: var(--accent-pale); }
.session-item-copy { flex: 1; min-width: 0; }
.session-item-copy strong, .session-item-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-item-copy strong { font-size: 10px; }
.session-item-copy small { margin-top: 3px; color: #969b92; font-size: 9px; }
.session-amount { color: var(--green); font-size: 11px; font-weight: 700; }
.session-amount.credit { color: var(--accent-dark); }
.content-panel { overflow: hidden; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; }
.search-box { position: relative; display: flex; align-items: center; min-width: 210px; }
.search-box svg { position: absolute; left: 10px; width: 15px; height: 15px; color: #92988e; }
.search-box input { width: 100%; height: 36px; padding: 0 10px 0 32px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 11px; }
.filter-select { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #535a50; background: #fff; font-size: 11px; }
.client-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 15px; }
.client-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid #edeee9; border-radius: 10px; background: #fff; transition: .16s ease; }
.client-card:hover { border-color: #e4c4b6; box-shadow: 0 5px 15px rgb(32 37 31 / 5%); transform: translateY(-1px); }
.client-card-main { display: flex; width: 100%; flex-direction: column; gap: 13px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.record-visit-button { width: 100%; min-height: 40px; }
.client-card-head { display: flex; align-items: center; gap: 10px; }
.client-card-head .avatar { width: 36px; height: 36px; border-radius: 11px; }
.client-title { flex: 1; min-width: 0; }
.client-title strong, .client-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-title strong { font-size: 12px; }
.client-title small { margin-top: 4px; color: #91978e; font-size: 10px; }
.client-card-top-right { align-self: flex-start; }
.package-tag { flex: 0 0 auto; max-width: 116px; padding: 5px 8px; overflow: hidden; border-radius: 6px; color: #657064; background: #f1f4ef; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.credit-meter { display: block; padding: 10px 11px; border-radius: 8px; background: #f7f8f5; }
.credit-meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.credit-meter-top span { color: #777e74; font-size: 10px; }
.credit-meter-top strong { font: 700 13px Manrope, sans-serif; }
.meter-track { display: block; height: 4px; margin-top: 8px; overflow: hidden; border-radius: 4px; background: #e7e9e4; }
.meter-fill { height: 100%; border-radius: inherit; background: var(--green); }
.meter-fill.low { background: #dba34c; }
.meter-fill.empty { background: #cd7467; }
.credit-total { color: #92988e; font: inherit; }
.client-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #8f958c; font-size: 9px; }
.client-card-foot .pt-name { color: #647167; font-weight: 600; }
.client-last-change { display: flex; align-items: baseline; gap: 5px; padding-top: 9px; border-top: 1px solid #f0f1ed; color: #858c82; font-size: 10px; }
.client-last-change strong { color: #596257; font-size: 10px; font-weight: 600; }
.client-grid-empty { grid-column: 1 / -1; }
.balance-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px 17px; border-bottom: 1px solid #f0f0ed; }
.balance-heading h2 { margin: 0; font: 700 13px Manrope, sans-serif; }
.balance-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 12px 17px; border-bottom: 1px solid #f0f1ed; }
.balance-row:last-child { border-bottom: 0; }
.balance-open { cursor: pointer; }
.balance-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.balance-name .avatar { width: 29px; height: 29px; border-radius: 9px; font-size: 8px; }
.balance-name strong, .balance-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balance-name strong { font-size: 10px; }
.balance-name small { margin-top: 3px; color: #979c93; font-size: 9px; }
.balance-number { font: 700 12px Manrope, sans-serif; }
.balance-number.low { color: var(--yellow); }
.balance-number.empty { color: var(--red); }
.demo-reset { margin-top: 13px; padding: 12px 14px; border: 1px dashed #e4e4de; border-radius: 9px; color: #858b82; background: #fafaf8; font-size: 10px; line-height: 1.5; }
.demo-reset button { margin-left: 4px; padding: 0; border: 0; color: var(--accent-dark); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.app-dialog { width: min(465px, calc(100vw - 24px)); max-height: min(90vh, 850px); padding: 0; overflow: auto; border: 1px solid #e9eae5; border-radius: 16px; color: var(--ink); background: white; box-shadow: 0 20px 70px rgb(24 28 24 / 20%); }
.app-dialog::backdrop { background: rgb(28 31 27 / 38%); backdrop-filter: blur(3px); }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); background: white; }
.dialog-head h2 { margin: 0; font: 700 19px/1.3 Manrope, sans-serif; letter-spacing: -.4px; }
.dialog-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.dialog-close { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 8px; color: #7e847b; background: transparent; cursor: pointer; }
.dialog-close:hover { background: var(--soft); }
.dialog-close svg { width: 18px; height: 18px; }
.dialog-form { padding: 18px 22px 21px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #50574e; font-size: 10px; font-weight: 700; }
.form-field label span { color: #adb1aa; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 39px; padding: 0 10px; border: 1px solid #e4e6e0; border-radius: 8px; color: var(--ink); background: white; font-size: 11px; }
.form-field textarea { min-height: 70px; padding: 10px; resize: vertical; line-height: 1.5; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #adb1aa; }
.form-help { color: #93998f; font-size: 9px; line-height: 1.45; }
.form-error { grid-column: 1 / -1; margin: -2px 0 0; color: var(--red); font-size: 10px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #f0f0ed; }
.detail-body { padding: 20px 22px 22px; }
.detail-profile { display: flex; align-items: center; gap: 11px; padding-bottom: 18px; border-bottom: 1px solid #f0f0ed; }
.detail-profile .avatar { width: 43px; height: 43px; border-radius: 13px; font-size: 12px; }
.detail-profile-copy { flex: 1; min-width: 0; }
.detail-profile-copy strong { display: block; font: 700 15px Manrope, sans-serif; }
.detail-profile-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.detail-actions { display: flex; gap: 7px; }
.detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 15px 0; }
.detail-stat { padding: 11px 10px; border-radius: 9px; background: #f6f7f3; }
.detail-stat span { display: block; color: #868c83; font-size: 9px; }
.detail-stat strong { display: block; margin-top: 5px; font: 700 16px Manrope, sans-serif; }
.detail-section-title { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 7px; font: 700 11px Manrope, sans-serif; }
.detail-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 10px; }
.detail-info div { min-width: 0; }
.detail-info dt { margin-bottom: 4px; color: #949990; font-size: 9px; }
.detail-info dd { margin: 0; overflow-wrap: anywhere; color: #424940; font-size: 10px; font-weight: 600; }
.detail-note { margin-top: 12px; padding: 11px; border-radius: 8px; color: #666e63; background: #f7f8f5; font-size: 10px; line-height: 1.5; white-space: pre-wrap; }
.detail-history { max-height: 205px; overflow-y: auto; }
.history-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #f0f1ed; }
.history-row:last-child { border: 0; }
.history-row .history-icon { width: 16px; height: 16px; color: var(--green); }
.history-row.credit .history-icon { color: var(--accent); }
.history-row strong, .history-row small { display: block; }
.history-row strong { font-size: 10px; }
.history-row small { margin-top: 3px; color: #969c92; font-size: 9px; }
.history-row > span:last-child { font-size: 10px; font-weight: 700; }
.history-actions { display: flex; align-items: center; gap: 13px; }
.history-actions .text-link { min-height: 32px; }
.read-only-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 7px; color: #53675b; background: #edf4ee; font-size: 10px; font-weight: 700; white-space: nowrap; }
.read-only-pill > span { width: 6px; height: 6px; border-radius: 50%; background: #5f9971; }
.pt-mode .sidebar { display: none; }
.pt-mode .main-area { margin-left: 0; }
.pt-mode #mobile-menu, .pt-mode .breadcrumb > span:first-child, .pt-mode .crumb-slash { display: none; }
.pt-mode .topbar { padding-left: max(28px, calc((100vw - 1040px) / 2)); padding-right: max(28px, calc((100vw - 1040px) / 2)); }
.pt-mode .page-content { width: min(1040px, 100%); padding-top: 38px; }
.pt-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.pt-page-heading h1 { margin: 0; font: 700 27px/1.25 Manrope, sans-serif; letter-spacing: -.7px; }
.pt-page-heading .page-subtitle { margin-bottom: 0; }
.pt-tracker-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.pt-tracker-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 19px; border-bottom: 1px solid var(--line); }
.pt-tracker-toolbar > div { display: grid; gap: 4px; }
.pt-tracker-toolbar > div strong { font: 700 14px Manrope, sans-serif; }
.pt-tracker-toolbar > div > span { color: #858c82; font-size: 11px; }
.pt-tracker-toolbar .search-box { width: 225px; }
.pt-client-list { display: grid; gap: 10px; padding: 14px; }
.pt-client-card { padding: 15px 16px 12px; border: 1px solid #edf0e9; border-radius: 10px; background: white; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.pt-client-card:hover { border-color: #d9e1d7; background: #fcfdfb; }
.pt-client-main { display: flex; align-items: center; gap: 12px; }
.pt-client-main .avatar { width: 39px; height: 39px; border-radius: 11px; }
.pt-client-name { display: grid; flex: 1; gap: 4px; min-width: 0; }
.pt-client-name strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pt-client-name > span { overflow: hidden; color: #8b9189; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pt-credit { display: flex; align-items: baseline; gap: 6px; min-width: 108px; justify-content: flex-end; }
.pt-credit strong { color: var(--green); font: 700 21px Manrope, sans-serif; }
.pt-credit strong.low { color: var(--yellow); }
.pt-credit strong.empty { color: var(--red); }
.pt-credit span { color: #777f75; font-size: 10px; }
.pt-client-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 12px 0 0 51px; padding-top: 10px; border-top: 1px solid #f0f1ed; }
.pt-client-meta > span { display: grid; gap: 4px; min-width: 0; }
.pt-client-meta small { color: #999f96; font-size: 9px; }
.pt-client-meta strong { overflow: hidden; color: #50584e; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pt-tracker-note { margin: 12px 1px 0; color: #878e84; font-size: 10px; }
.toast-region { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 20; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 210px; max-width: min(390px, calc(100vw - 32px)); padding: 12px 15px; border: 1px solid #e5e9e1; border-radius: 10px; color: #3e5746; background: #fff; box-shadow: 0 9px 32px rgb(25 33 25 / 13%); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; animation: toast-in .2s ease-out; }
.toast::before { width: 7px; height: 7px; border-radius: 50%; background: #69a47d; content: ""; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.mobile-overlay { display: none; }
.topbar[hidden], .view-picker[hidden], .logout-button[hidden] { display: none !important; }
.live-mode .sidebar #role-menu-button, .live-mode .view-picker { display: none; }
.login-mode .sidebar, .login-mode .topbar { display: none; }
.login-mode .main-area { margin-left: 0; }
.login-mode .page-content { display: grid; width: 100%; min-height: 100vh; place-items: center; padding: 22px; }
.login-card { width: min(420px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 15px 55px rgb(32 37 31 / 8%); }
.login-mark { margin-bottom: 24px; }
.login-card .eyebrow { margin-bottom: 8px; }
.login-card h1 { margin: 0; font: 700 24px/1.3 Manrope, sans-serif; letter-spacing: -.6px; }
.login-copy { margin: 9px 0 22px; color: #737a70; font-size: 13px; line-height: 1.6; }
.login-form { display: grid; gap: 8px; }
.login-form label { margin-top: 6px; color: #52594f; font-size: 11px; font-weight: 700; }
.login-form input { min-height: 45px; padding: 0 12px; border: 1px solid #e0e3dc; border-radius: 9px; font-size: 13px; }
.login-form .button { width: 100%; margin-top: 12px; }
.login-link { justify-self: start; margin-top: 12px; padding: 4px 0; border: 0; color: #426b50; background: transparent; font: 600 12px/1.4 "DM Sans", sans-serif; text-align: left; cursor: pointer; }
.login-notice { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; color: #426b50; background: #f0f7f0; font-size: 11px; line-height: 1.5; }
.login-foot { margin: 16px 0 0; color: #92988e; font-size: 10px; line-height: 1.55; }
.login-foot code { color: #60695e; }
.login-error { margin: -7px 0 16px; padding: 10px 12px; border-radius: 8px; color: #99463b; background: var(--red-pale); font-size: 11px; line-height: 1.5; }
.access-card { max-width: 450px; }
.login-back { display: inline-block; margin: -6px 0 15px; color: #536e59; font-size: 12px; font-weight: 700; text-decoration: none; }
.access-options { display: grid; gap: 10px; }
.access-option { display: grid; gap: 5px; min-height: 74px; padding: 15px; border: 1px solid #e3e7df; border-radius: 10px; color: var(--ink); background: #fff; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.access-option:hover, .access-option:focus-visible { border-color: #86a08b; background: #f7faf6; outline: none; }
.access-option strong { font-size: 13px; }
.access-option span { color: #737a70; font-size: 11px; line-height: 1.45; }
.push-alert-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 18px; margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.push-alert-heading { grid-column: 1; grid-row: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; }
.push-alert-heading > strong { font: 700 13px Manrope, sans-serif; }
.push-alert-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; color: #687064; background: #f2f4f0; font-size: 10px; font-weight: 700; }
.push-alert-state::before { width: 6px; height: 6px; border-radius: 50%; background: #9aa194; content: ""; }
.push-alert-state[data-state="on"] { color: #416b4b; background: #eef5ef; }
.push-alert-state[data-state="on"]::before { background: #5f9971; }
.push-alert-state[data-state="blocked"], .push-alert-state[data-state="home-screen"], .push-alert-state[data-state="setup"], .push-alert-state[data-state="unsupported"], .push-alert-state[data-state="error"] { color: #875346; background: #fbf1ec; }
.push-alert-state[data-state="blocked"]::before, .push-alert-state[data-state="home-screen"]::before, .push-alert-state[data-state="setup"]::before, .push-alert-state[data-state="unsupported"]::before, .push-alert-state[data-state="error"]::before { background: #cc805f; }
.push-alert-card > p { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; color: #737a70; font-size: 11px; line-height: 1.5; }
.push-switch { grid-column: 2; grid-row: 1; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 28px; padding: 0; border: 1px solid #d9ddd5; border-radius: 999px; background: #e9ece6; cursor: pointer; transition: background .16s ease, border-color .16s ease; }
.push-switch[aria-checked="true"] { border-color: #5d8667; background: #5d8667; }
.push-switch:focus-visible { outline: 3px solid rgb(93 134 103 / 24%); outline-offset: 3px; }
.push-switch:disabled { cursor: not-allowed; opacity: .65; }
.push-switch-track { display: block; width: 42px; height: 22px; padding: 2px; border-radius: 999px; }
.push-switch-thumb { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(22 30 22 / 18%); transition: transform .16s ease; }
.push-switch[aria-checked="true"] .push-switch-thumb { transform: translateX(20px); }
.pt-mode .storage-pill { color: #4d7158; background: #f1f7f1; }

@media (min-width: 1500px) { .page-content { padding-top: 42px; } }
@media (max-width: 1150px) {
  .sidebar { width: 220px; }
  .main-area { margin-left: 220px; }
  .topbar { padding: 0 27px; }
  .page-content { padding: 29px 27px 45px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); }
}
@media (max-width: 840px) {
  .sidebar { z-index: 12; width: 258px; transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 15px 0 45px rgb(20 24 20 / 15%); }
  .mobile-overlay.visible { position: fixed; inset: 0; z-index: 11; display: block; background: rgb(23 27 22 / 35%); }
  .main-area { margin-left: 0; }
  .topbar { height: 64px; padding: 0 20px; }
  .menu-toggle { display: grid; width: 35px; height: 35px; margin-right: 10px; }
  .menu-toggle svg { width: 19px; height: 19px; }
  .breadcrumb { flex: 1; }
  .topbar-actions { gap: 6px; }
  .storage-pill { padding: 7px 8px; font-size: 9px; }
  .view-picker { min-width: 91px; }
  .topbar-divider { margin: 0 1px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .right-column { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .right-column .panel + .panel { margin-top: 0; }
}
@media (max-width: 590px) {
  .topbar { padding: 0 13px; }
  .menu-toggle { margin-right: 4px; }
  .breadcrumb { gap: 6px; font-size: 10px; }
  .breadcrumb > span:first-child, .crumb-slash, .help-button, .topbar-divider { display: none; }
  .storage-pill { padding: 7px; border: 0; background: transparent; }
  .storage-pill .live-dot { width: 6px; height: 6px; }
  .view-picker { min-width: 84px; }
  .view-label { font-size: 7px; }
  .view-picker select { font-size: 10px; }
  .view-picker > svg { top: 11px; width: 12px; height: 12px; }
  .page-content { padding: 25px 15px 35px; }
  .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 19px; }
  .page-heading h1 { font-size: 23px; }
  .page-subtitle { max-width: 260px; font-size: 12px; line-height: 1.55; }
  .page-heading { flex-wrap: wrap; }
  .heading-actions { width: 100%; justify-content: flex-start; }
  .heading-actions > .button { min-height: 40px; padding: 0 11px; font-size: 11px; }
  .heading-actions > .button svg { width: 14px; height: 14px; }
  .eyebrow { font-size: 9px; }
  .stats-grid { gap: 9px; margin-bottom: 13px; }
  .stat-card { min-height: 101px; padding: 13px 12px 11px; }
  .stat-label { font-size: 11px; }
  .stat-icon { width: 27px; height: 27px; border-radius: 8px; }
  .stat-icon svg { width: 14px; height: 14px; }
  .stat-number { margin-top: 7px; font-size: 23px; }
  .stat-foot { margin-top: 4px; font-size: 10px; }
  .panel-header { padding: 14px; }
  .panel-header h2 { font-size: 14px; }
  .panel-header p { font-size: 10px; }
  .session-item-copy strong { font-size: 11px; }
  .session-item-copy small { font-size: 10px; }
  .balance-name strong { font-size: 11px; }
  .balance-name small { font-size: 10px; }
  .demo-reset, .demo-reset button { font-size: 10px; }
  .right-column { grid-template-columns: 1fr; gap: 12px; }
  .toolbar { align-items: stretch; flex-direction: column; padding: 12px; }
  .toolbar-left { width: 100%; }
  .toolbar-right { justify-content: space-between; }
  .search-box { flex: 1; min-width: 0; }
  .search-box input { height: 38px; }
  .filter-select { max-width: 48%; }
  .client-cards { grid-template-columns: 1fr; gap: 9px; padding: 10px; }
  .app-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
  .dialog-head { padding: 17px 16px 13px; }
  .dialog-head h2 { font-size: 17px; }
  .dialog-form, .detail-body { padding: 15px 16px 17px; }
  .form-grid { gap: 12px 9px; }
  .form-field label { font-size: 12px; }
  .form-help { font-size: 10px; }
  .form-field input, .form-field select { min-height: 44px; font-size: 12px; }
  .detail-actions { flex-direction: column; }
  .detail-actions .button { min-height: 38px; padding: 0 9px; font-size: 10px; }
  .pt-mode .topbar { padding: 0 13px; }
  .pt-mode .page-content { padding: 26px 14px 35px; }
  .pt-page-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .pt-page-heading h1 { font-size: 23px; }
  .pt-page-heading .page-subtitle { max-width: 330px; }
  .push-alert-card { gap: 8px 12px; padding: 12px; }
  .push-alert-card > p { font-size: 10px; }
  .push-switch { margin-top: 1px; }
  .pt-tracker-toolbar { align-items: stretch; flex-direction: column; gap: 11px; padding: 13px; }
  .pt-tracker-toolbar .search-box { width: 100%; }
  .pt-client-list { gap: 8px; padding: 9px; }
  .pt-client-card { padding: 12px 11px 10px; }
  .pt-client-main { gap: 9px; }
  .pt-client-main .avatar { width: 36px; height: 36px; }
  .pt-client-name strong { font-size: 12px; }
  .pt-credit { min-width: 89px; gap: 4px; }
  .pt-credit strong { font-size: 19px; }
  .pt-credit span { font-size: 9px; }
  .pt-client-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-left: 45px; }
  .pt-client-meta > span:nth-child(3) { grid-column: 1 / -1; }
  .pt-client-meta small { font-size: 10px; }
  .pt-client-meta strong { font-size: 10px; }
  .pt-tracker-note { font-size: 10px; line-height: 1.5; }
  .client-last-change { align-items: flex-start; flex-direction: column; gap: 3px; }
  .client-last-change strong { font-size: 9px; }
  .login-card { padding: 24px 20px; }
  .login-card h1 { font-size: 22px; }
}

/* Spacious, date-first reading layout. */
body { min-width: 0; font-size: 16px; line-height: 1.5; }
.topbar { height: auto; min-height: 80px; padding-top: 14px; padding-bottom: 14px; background: var(--canvas); backdrop-filter: none; }
.page-content, .pt-mode .page-content { padding-top: 40px; padding-bottom: 64px; }
.page-heading, .pt-page-heading { margin-bottom: 32px; }
.page-heading h1, .pt-page-heading h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.2; letter-spacing: -1px; }
.eyebrow { font-size: 13px; color: var(--muted); letter-spacing: .7px; margin-bottom: 12px; }
.page-subtitle { font-size: 16px; line-height: 1.65; max-width: 540px; }
.button { min-height: 48px; padding: 12px 18px; font-size: 16px; border-radius: 8px; box-shadow: none; }
.button-primary:hover, .client-card:hover { transform: none; box-shadow: none; }
.button-small { min-height: 44px; font-size: 14px; padding: 10px 14px; }
.icon-button, .dialog-close { width: 44px; height: 44px; }
.breadcrumb, .view-picker select, .profile-copy strong { font-size: 15px; }
.storage-pill, .profile-copy small, .view-label, .nav-caption, .brand-copy small { font-size: 12px; }
.nav-link { min-height: 52px; font-size: 16px; }
.side-tip strong { font-size: 15px; }
.side-tip p { font-size: 14px; }
.stats-grid { gap: 16px; margin-bottom: 28px; }
.stat-card { min-height: 148px; padding: 24px; border-radius: 10px; }
.stat-label { font-size: 14px; color: var(--muted); }
.stat-number { font-size: 38px; margin-top: 16px; }
.stat-foot { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.stat-icon { display: none; }
.panel, .pt-tracker-panel { border-radius: 10px; box-shadow: none; }
.dashboard-grid { gap: 24px; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 1fr); }
.panel-header, .balance-heading { padding: 24px; }
.panel-header h2, .balance-heading h2 { font-size: 20px; }
.panel-header p, .pt-tracker-toolbar > div > span { font-size: 14px; color: var(--muted); line-height: 1.6; }
.text-link { min-height: 44px; font-size: 14px; white-space: normal; }
.session-list { padding: 0 24px; }
.session-item { align-items: flex-start; padding: 24px 0; }
.session-item-copy strong, .session-item-copy small { white-space: normal; overflow: visible; text-overflow: clip; }
.session-item-copy strong { font-size: 19px; margin-top: 16px; }
.session-item-copy small, .history-copy small { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; }
.activity-action { display: block; font-size: 16px; margin-top: 4px; }
.session-amount { font-size: 16px; margin-left: 6px; }
.activity-balance { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-top: 10px; font-variant-numeric: tabular-nums; }
.activity-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.record-date { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.record-date-label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .7px; }
.record-date-day { color: var(--ink); font: 700 20px/1.4 Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.record-date-time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.client-date-grid, .detail-date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.client-date-grid .record-date-day { font-size: 17px; }
.client-card { padding: 24px; gap: 20px; border-color: var(--line); border-radius: 10px; }
.client-card-main { gap: 20px; }
.client-cards { gap: 20px; padding: 24px; }
.client-title strong, .pt-client-name strong { font: 700 24px/1.35 Manrope, sans-serif; white-space: normal; overflow-wrap: anywhere; }
.client-title small, .pt-client-name > span { margin-top: 6px; font-size: 15px; color: var(--muted); white-space: normal; }
.credit-meter { padding: 20px; background: var(--soft); }
.credit-meter-top span { font-size: 14px; }
.credit-meter-top strong { font-size: 32px; font-variant-numeric: tabular-nums; }
.credit-meter-top .credit-total { font-size: 16px; color: var(--muted); }
.meter-track { height: 5px; margin-top: 14px; }
.client-card-foot { font-size: 14px; color: var(--accent-dark); }
.record-visit-button { min-height: 48px; }
.balance-status { display: block; width: fit-content; margin-top: 8px; padding: 5px 9px; color: #794909; background: #f9edcd; font-size: 13px; font-weight: 700; border-radius: 4px; }
.balance-status.empty { color: #9b3124; background: #fbe9e4; }
.pt-client-list { gap: 24px; padding: 24px; }
.pt-client-card { padding: 28px; border-color: var(--line); border-radius: 8px; }
.pt-client-main { align-items: flex-start; gap: 20px; }
.pt-credit { flex-direction: column; align-items: flex-end; min-width: 90px; gap: 0; }
.pt-credit strong { font-size: 36px; line-height: 1.1; color: var(--ink); }
.pt-credit span { margin-top: 6px; font-size: 13px; }
.pt-updated { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.view-history { display: flex; align-items: center; gap: 8px; color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.pt-client-meta { margin: 0; padding-top: 20px; gap: 20px; grid-template-columns: 1fr 1fr; border-top-color: var(--line); }
.pt-client-meta .record-date-day { font-size: 16px; }
.pt-client-meta > span:nth-child(3) { grid-column: auto; }
.pt-tracker-toolbar { padding: 24px; gap: 24px; }
.pt-tracker-toolbar > div strong { font-size: 20px; }
.pt-tracker-note, .demo-reset, .demo-reset button { font-size: 14px; line-height: 1.65; color: var(--muted); }
.push-alert-card { padding: 24px; gap: 12px 20px; margin-top: 28px; border-radius: 8px; }
.push-alert-heading > strong { font-size: 18px; }
.push-alert-card > p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.push-alert-state { font-size: 12px; }
.push-switch { width: 56px; height: 34px; }
.push-switch-track { width: 48px; height: 28px; }
.push-switch-thumb { width: 24px; height: 24px; }
.push-switch[aria-checked="true"] .push-switch-thumb { transform: translateX(20px); }
.toolbar { padding: 24px; }
.search-box input, .filter-select { min-height: 48px; font-size: 16px; }
.search-box input { padding-left: 38px; }
.search-box svg { left: 13px; width: 18px; height: 18px; }
.app-dialog { width: calc(100% - 24px); max-width: 640px; border-radius: 12px; }
.app-dialog::backdrop { backdrop-filter: none; }
.dialog-head { padding: 24px; }
.dialog-head h2 { font-size: 24px; }
.dialog-head p { font-size: 14px; line-height: 1.6; }
.dialog-form, .detail-body { padding: 24px; }
.form-grid { gap: 24px 16px; }
.form-field label, .detail-info dt { font-size: 14px; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea { min-height: 50px; font-size: 16px; padding: 12px; }
.form-help, .form-error { font-size: 14px; line-height: 1.6; }
.detail-profile { flex-wrap: wrap; gap: 16px; padding-bottom: 24px; }
.detail-profile .avatar { display: none; }
.detail-profile-copy strong { font-size: 26px; overflow-wrap: anywhere; }
.detail-profile-copy small { font-size: 14px; line-height: 1.6; }
.detail-actions { flex-direction: row; flex-wrap: wrap; }
.detail-stats { margin: 24px 0; gap: 12px; }
.detail-stat { padding: 18px 14px; }
.detail-stat span { font-size: 13px; color: var(--muted); }
.detail-stat strong { font-size: 28px; }
.detail-stat:last-child strong { font-size: 16px !important; overflow-wrap: anywhere; }
.detail-date-grid { margin-top: 24px; }
.detail-info { gap: 20px; margin: 0 0 24px; }
.detail-info dd { font-size: 16px; }
.detail-note { font-size: 15px; padding: 18px; }
.detail-section-title { flex-wrap: wrap; gap: 12px; margin-top: 32px; font-size: 18px; }
.detail-history { max-height: none; overflow: visible; }
.history-row { grid-template-columns: 1fr; align-items: start; gap: 16px; padding: 24px 0; border-bottom-color: var(--line); }
.history-row strong, .history-row > span:last-child { font-size: 18px; }
.history-amount { display: block; margin-top: 6px; font-size: 17px; font-weight: 700; }
.read-only-pill { font-size: 12px; }
.balance-row { padding: 20px 24px; }
.balance-name strong { font-size: 17px; white-space: normal; }
.balance-name small { font-size: 14px; }
.balance-number { font-size: 18px; }
.empty-state { padding: 40px 24px; }
.empty-state strong { font-size: 19px; }
.empty-state p { font-size: 15px; line-height: 1.65; max-width: 340px; }
.preview-notice { font-size: 14px; padding: 16px; }
.login-card { width: min(480px, 100%); padding: 40px; border-radius: 10px; box-shadow: none; }
.login-card h1 { font-size: 34px; }
.login-copy { font-size: 17px; margin-top: 16px; }
.login-form label, .login-foot, .login-back, .login-error { font-size: 14px; color: var(--muted); }
.login-form input { min-height: 54px; font-size: 18px; }
.access-options { gap: 16px; }
.access-option { gap: 10px; padding: 24px; }
.access-option strong { font-size: 21px; }
.access-option span { font-size: 15px; line-height: 1.6; }
.toast { font-size: 15px; padding: 18px; }
@media (max-width: 840px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .right-column { gap: 24px; }
  .topbar { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 590px) {
  .page-content, .pt-mode .page-content { padding: 32px 20px 48px; }
  .page-heading, .pt-page-heading { gap: 20px; }
  .heading-actions { flex-wrap: wrap; gap: 10px; }
  .heading-actions > .button { min-height: 48px; font-size: 15px; padding: 12px 16px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 20px 16px; min-height: 150px; }
  .stat-number { font-size: 34px; }
  .right-column { grid-template-columns: 1fr; }
  .panel-header { flex-wrap: wrap; gap: 8px; }
  .client-cards, .pt-client-list { padding: 16px; gap: 20px; }
  .client-card, .pt-client-card { padding: 20px; }
  .pt-client-name strong, .client-title strong { font-size: 22px; }
  .pt-tracker-toolbar { padding: 20px; }
  .pt-client-main { gap: 12px; }
  .pt-credit { min-width: 80px; }
  .pt-credit strong { font-size: 34px; }
  .pt-credit span { font-size: 12px; }
  .pt-updated { flex-wrap: wrap; }
  .client-date-grid, .detail-date-grid { gap: 16px; }
  .client-date-grid .record-date-day { font-size: 16px; }
  .push-alert-card { padding: 20px; }
  .push-alert-card > p { font-size: 14px; }
  .topbar-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .storage-pill { font-size: 12px; padding: 0; }
  .view-label { font-size: 11px; }
  .view-picker select { font-size: 14px; }
  .logout-button { font-size: 13px; min-height: 44px; }
  .toolbar, .dialog-head, .dialog-form, .detail-body { padding: 20px; }
  .detail-profile-copy { flex-basis: 100%; }
  .detail-stat { padding: 16px 10px; }
  .detail-stat strong { font-size: 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .login-card { padding: 32px 24px; }
  .filter-select { max-width: 100%; width: 100%; }
}
@media (max-width: 360px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .breadcrumb, .topbar-actions { min-width: 0; }
  .topbar-actions { flex: 1; }
  .page-content, .pt-mode .page-content { padding-left: 12px; padding-right: 12px; }
  .client-cards, .pt-client-list { padding: 10px; }
  .client-date-grid, .detail-date-grid, .pt-client-meta { grid-template-columns: 1fr; }
  .detail-stats { grid-template-columns: 1fr 1fr; }
  .detail-stat:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (max-width: 590px) {
  .detail-stats { grid-template-columns: 1fr 1fr; }
  .detail-stat:last-child { grid-column: 1 / -1; }
}

/* One balance summary, followed immediately by the dated history. */
.client-record-body { padding-top: 20px; }
.record-identity h3 { margin: 0; font: 700 25px/1.3 Manrope, sans-serif; overflow-wrap: anywhere; }
.record-identity p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.record-balance { display: flex; align-items: center; gap: 18px; margin: 20px 0; padding: 18px 20px; border-radius: 8px; background: var(--soft); }
.record-balance > strong { font: 700 44px/1 Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.record-balance > div { display: grid; gap: 5px; }
.record-balance span { font-size: 18px; font-weight: 600; }
.record-balance small { color: var(--muted); font-size: 14px; }
.record-primary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.record-primary-actions .button { flex: 1; }
.record-primary-actions .record-correction-action { flex-basis: 100%; min-height: 44px; padding: 0; }
.owner-danger-zone { margin-top: 26px; }
.record-history-heading { margin: 24px 0 16px; }
.record-history-heading h3 { margin: 0; font: 700 20px/1.3 Manrope, sans-serif; }
.record-history-heading p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.record-event { padding: 20px; border: 1px solid #d5d8ce; border-radius: 10px; background: var(--soft); }
.record-event + .record-event { margin-top: 18px; }
.record-event .record-date { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; padding-bottom: 12px; border-bottom: 1px solid #d5d8ce; }
.record-event .record-date-day { font-size: 17px; }
.record-event .record-date-time { font-size: 13px; }
.record-entry-time { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.record-visit { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.record-visit > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; grid-template-rows: auto auto; align-items: center; gap: 3px 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.record-visit > summary::-webkit-details-marker { display: none; }
.visit-row-chevron { grid-column: 3; grid-row: 1 / 3; align-self: center; color: var(--muted); }
.visit-row-chevron svg { width: 24px; height: 24px; }
.record-visit > summary:focus-visible { outline: 3px solid var(--accent-pale); outline-offset: 2px; border-radius: 10px; }
.visit-row-date { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.visit-row-date > svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.visit-row-amount { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.visit-row-balance { display: flex; align-items: center; gap: 5px; grid-column: 1; font-size: 13px; line-height: 1.5; color: var(--muted); }
.visit-row-balance svg { width: 14px; height: 14px; flex-shrink: 0; }
.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; }
.record-visit-details { margin: 0 16px; padding: 10px 0 14px; border-top: 1px solid var(--line); }
.record-visit-details .record-entry-time { margin-top: 0; }
.record-visit-details .visit-delete-action { margin-top: 6px; padding: 0; color: var(--red); }
.visit-detail-time { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.record-details > summary, .signature-note > summary, .visit-confirmation details > summary { display: flex; align-items: center; gap: 8px; list-style: none; }
.record-details > summary::-webkit-details-marker, .signature-note > summary::-webkit-details-marker, .visit-confirmation details > summary::-webkit-details-marker { display: none; }
.record-details > summary > svg, .signature-note > summary > svg, .visit-confirmation details > summary > svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.disclosure-icon { display: inline-flex; margin-left: auto; color: var(--muted); }
.disclosure-icon svg { width: 22px; height: 22px; }
details > summary .disclosure-collapse { display: none; }
details[open] > summary .disclosure-expand { display: none; }
details[open] > summary .disclosure-collapse { display: block; }
.history-tabs button, .login-back { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.history-tabs button svg, .text-link svg, .login-back svg { width: 16px; height: 16px; flex-shrink: 0; }
select, select.filter-select, .form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777e74' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.view-picker select { background-image: none; }
@media (max-width: 420px) {
  .record-visit > summary { padding: 12px; column-gap: 8px; }
  .visit-row-date { font-size: 14px; gap: 5px; }
  .visit-row-amount { font-size: 12px; }
}
.record-event-action { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 12px; }
.record-event-action > strong { font-size: 17px; }
.record-event-amount { font-size: 14px; font-weight: 700; color: var(--ink); }
.record-event-amount.credit { color: var(--green); }
.record-event-balance { margin: 6px 0 0; font-size: 15px; font-weight: 600; }
.record-event-actor, .record-event > small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.record-details { margin-top: 24px; border-top: 1px solid var(--line); }
.record-details summary { padding: 18px 0; font-size: 16px; font-weight: 600; cursor: pointer; min-height: 48px; }
.record-details summary:focus-visible { outline: 3px solid var(--accent-pale); outline-offset: 2px; }
.record-detail-list { margin: 0; }
.record-detail-list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.record-detail-list dt { font-size: 14px; color: var(--muted); }
.record-detail-list dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.record-secondary-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; }
.filter-field { display: grid; gap: 6px; min-width: 155px; }
.filter-field > span { color: var(--muted); font-size: 13px; font-weight: 600; }
.toolbar { align-items: flex-end; }
.toolbar-left { flex: 1; }
.toolbar-left .search-box { width: 100%; }
.toolbar-right { gap: 14px; }
.filter-field .filter-select { width: 100%; max-width: none; }
.filter-results { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 24px 0; color: var(--muted); font-size: 14px; }
.filter-results .text-link { min-height: 32px; }
@media (max-width: 700px) {
  .toolbar { flex-direction: column; align-items: stretch; gap: 16px; }
  .toolbar-right { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .filter-field { min-width: 0; }
  .filter-results { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 360px) {
  .toolbar-right { grid-template-columns: 1fr; }
  .record-event { padding: 15px; }
  .record-detail-list > div { grid-template-columns: 1fr; gap: 3px; }
}

[hidden] { display:none !important; }
.history-tabs { display:flex; gap:8px; margin:24px 0 8px; }
.history-tabs button { flex:1; border:1px solid #d5d8ce; background:#fff; color:#243029; padding:14px 10px; border-radius:8px; font:inherit; font-weight:700; cursor:pointer; }
.history-tabs button[aria-selected="true"] { background:#2f3a30; color:white; border-color:#2f3a30; }
.payment-badge { display:inline-block; padding:6px 12px; border-radius:6px; font-weight:700; margin:0 12px 12px 0; }
.payment-badge.paid { background:#dce9d8; color:#264a2a; }
.payment-badge.unpaid { background:#f7e3cc; color:#744718; }
.payment-badge.half { background:var(--accent-soft, #f7e3cc); color:#744718; }
.package-payment-balance { margin:12px 0 6px; font-size:14px; font-weight:600; }
.report-table-scroll { overflow-x:auto; margin-top:20px; }
.checkin-table { width:100%; border-collapse:collapse; min-width:440px; font-size:15px; }
.checkin-table th,.checkin-table td { padding:14px 12px; text-align:left; border:1px solid #d5d8ce; vertical-align:top; }
.checkin-table th { background:#2f3a30; color:white; }
.checkin-table tbody tr:nth-child(even) { background:#f5f6f1; }
.record-history > h3 { margin:20px 0; }

.checkin-table th:first-child, .checkin-table td:first-child, .checkin-table th:nth-child(2), .checkin-table td:nth-child(2) { white-space: nowrap; }

.confirmation-summary { background:#f5f6f1; padding:20px; border:1px solid #d5d8ce; border-radius:10px; margin-bottom:20px; }
.confirmation-summary strong { font-size:24px; display:block; margin:16px 0; }
#client-signature { display:block; width:100%; height:auto; aspect-ratio:2 / 1; touch-action:none; background:#fff; border:2px solid #626b5e; border-radius:8px; margin:10px 0; }
#clear-signature { margin-bottom:20px; }
.visit-confirmation { margin-top:14px; padding-top:14px; border-top:1px solid #d5d8ce; }
.visit-confirmation > strong { color:#264a2a; }
.visit-confirmation summary { cursor:pointer; }
.visit-confirmation > p { font-size:14px; }
.visit-confirmation > .text-link { margin-left:16px; }
.saved-signature { width:100%; max-width:300px; aspect-ratio:2 / 1; background:#fff; border:1px solid #d5d8ce; margin-top:10px; }
.saved-signature svg { width:100%; height:100%; }

.signature-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.signature-heading #clear-signature { margin:0; }
.signature-note { margin:16px 0; }
.signature-note summary { cursor:pointer; }
.signature-note .form-field { margin-top:12px; }

/* Compact front desk cards: balance first, supporting dates kept quiet. */
.client-card { padding: 18px; gap: 14px; }
.client-card-main { gap: 14px; }
.client-card .client-title strong { font-size: 22px; }
.client-card .client-title small { margin-top: 3px; }
.client-added { display: block; margin-top: 5px; }
.client-added .record-date { flex-direction: row; flex-wrap: wrap; gap: 4px; }
.client-added .record-date-label,
.client-added .record-date-day { color: var(--muted); font: 400 12px/1.5 Manrope, sans-serif; letter-spacing: 0; text-transform: none; }
.client-added .record-date-time { display: none; }
.client-card .credit-meter { padding: 14px 16px; }
.client-card .credit-meter-top strong { font-size: 30px; }
.client-card .meter-track { margin-top: 10px; }
.client-updated { display: block; }
.client-updated .record-date { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; }
.client-updated .record-date-label { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.client-updated .record-date-day { font-size: 13px; font-weight: 600; }
.client-updated .record-date-time { font-size: 12px; }
.client-card-foot { font-size: 13px; }

/* Coach cards share the front desk hierarchy without write controls. */
.pt-client-card { padding: 18px; border-radius: 10px; }
.pt-client-main { gap: 12px; align-items: flex-start; }
.pt-client-name { gap: 0; }
.pt-client-name strong { font-size: 21px; line-height: 1.35; }
.pt-client-name > span { margin-top: 3px; font-size: 14px; }
.pt-client-name .client-added { margin-top: 5px; }
.pt-credit { min-width: 76px; padding: 10px 8px; border-radius: 8px; background: var(--soft); align-items: center; flex-shrink: 0; }
.pt-credit strong { font-size: 30px; line-height: 1.1; }
.pt-credit span { margin-top: 4px; font-size: 11px; }
.pt-credit .credit-divider { margin: 0 2px; color: #8b9189; font-size: .78em; font-weight: 500; }
.pt-card-dates { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.pt-card-dates .record-date { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; }
.pt-card-dates .record-date-label { font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.pt-card-dates .record-date-day { font-size: 13px; font-weight: 600; }
.pt-card-dates .record-date-time { font-size: 12px; }
.pt-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; color: var(--accent-dark); font-size: 13px; font-weight: 600; }
.pt-card-footer svg { width: 18px; height: 18px; }
.pt-client-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Client record controls sized for phone use. */
@media (max-width: 590px) {
  .client-record-body { padding: 18px 16px 20px; }
  .record-identity h3 { font-size: 23px; }
  .record-balance { gap: 14px; margin: 16px 0; padding: 15px 16px; }
  .record-balance > strong { font-size: 40px; }
  .record-balance span { font-size: 16px; }
  .record-balance small { font-size: 13px; }
  .record-primary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
  .record-primary-actions .button { width: 100%; min-width: 0; min-height: 48px; padding: 10px 8px; justify-content: center; gap: 7px; font-size: 14px; line-height: 1.2; white-space: normal; }
  .record-primary-actions .record-correction-action { grid-column: 1 / -1; grid-row: 1; justify-content: flex-start; min-height: 44px; padding: 0 4px; font-size: 14px; }
  .record-primary-actions [data-action="record-visit"] { grid-row: 2; }
  .record-primary-actions [data-action="add-credit"] { grid-row: 2; }
  .owner-data-tools, .owner-danger-zone { align-items: stretch; flex-direction: column; }
  .owner-data-tools .button, .owner-danger-zone .button { width: 100%; min-height: 44px; }
  .history-tabs { position: sticky; top: 0; z-index: 2; gap: 6px; margin: 16px 0 8px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: #f7f8f5; }
  .history-tabs button { min-width: 0; min-height: 44px; padding: 9px 8px; gap: 7px; border-color: transparent; background: transparent; font-size: 14px; white-space: nowrap; }
  .history-tabs button[aria-selected="true"] { color: #fff; background: #2f3a30; }
  .record-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0 12px; }
  .record-history-title { min-width: 0; }
  .record-history-heading h3 { font-size: 19px; }
  .record-history-heading p { margin: 3px 0 0; font-size: 12px; }
  .record-history-heading .button { min-height: 40px; flex-shrink: 0; }
}

.client-details-section { margin-top: 14px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.client-details-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; padding: 10px 0; list-style: none; cursor: pointer; }
.client-details-section > summary::-webkit-details-marker { display: none; }
.client-details-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.client-details-heading > svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--muted); }
.client-details-heading > span { display: grid; gap: 3px; }
.client-details-heading strong { font-size: 14px; }
.client-details-heading small { color: var(--muted); font-size: 11px; font-weight: 400; }
.client-details-toggle { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; color: var(--accent-dark); font-size: 11px; font-weight: 600; }
.client-details-toggle .disclosure-icon { margin: 0; }
.client-details-toggle .disclosure-icon svg { width: 19px; height: 19px; }
.hide-details-label, .client-details-section[open] .show-details-label { display: none; }
.client-details-section[open] .hide-details-label { display: inline; }
.client-details-section .record-detail-list { padding: 10px 0 4px; border-top: 1px solid var(--line); }
.client-details-section .record-secondary-actions { padding-top: 8px; padding-bottom: 10px; }
.client-details-section > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.package-event { padding: 16px; }
.package-event-date { padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.package-event-date .record-date { padding-bottom: 0; border-bottom: 0; }
.package-event-date .record-date { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 12px; }
.package-event-date .record-date-label { font-size: 11px; letter-spacing: .3px; }
.package-event-date .record-date-day { grid-column: 2; grid-row: 1 / 3; font-size: 14px; }
.package-event-date .record-date-time { font-size: 11px; }
.package-event h3 { margin: 12px 0 6px; font: 700 18px/1.3 Manrope, sans-serif; }
.package-event-value { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; color: var(--muted); font-size: 13px; }
.package-event-value strong { color: var(--ink); font-size: 14px; }
.package-event-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.package-event .payment-badge { margin: 0; padding: 6px 10px; font-size: 12px; }
.package-event .button { min-height: 42px; }
.package-payment-method { color: var(--muted); font-size: 12px; text-align: right; }
.package-event-recorded { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }

@media (max-width: 590px) {
  .confirmation-form .dialog-actions { gap: 10px; }
  .confirmation-form .dialog-actions .button { min-height: 48px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
}

.confirmation-summary { margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.confirmation-client { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 10px; }
.confirmation-client h3 { margin: 0; font: 700 16px/1.35 Manrope, sans-serif; }
.confirmation-client p { margin: 0; color: var(--muted); font-size: 12px; }
.confirmation-change { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.confirmation-change-label { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.confirmation-value { justify-content: center; }
.confirmation-value { display: flex; align-items: baseline; gap: 5px; }
.confirmation-value strong { font: 700 25px/1.1 Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.confirmation-value span { color: var(--muted); font-size: 12px; }
.confirmation-arrow { color: var(--muted); font-size: 18px; }
.confirmation-used { margin: 7px 0 0; color: var(--accent-dark); font-size: 12px; font-weight: 600; }
@media (max-width: 590px) {
  .confirmation-summary { margin-bottom: 14px; padding: 12px 14px; }
  .confirmation-change { gap: 10px; margin-top: 9px; padding-top: 8px; }
  .confirmation-value strong { font-size: 23px; }
}

@media (min-width: 591px) {
  .confirmation-summary { margin-bottom: 22px; padding: 20px 22px; }
  .confirmation-client h3 { font-size: 19px; }
  .confirmation-client p { font-size: 14px; }
  .confirmation-change { gap: 8px 16px; margin-top: 16px; padding-top: 14px; }
  .confirmation-change-label { font-size: 13px; }
  .confirmation-value strong { font-size: 32px; }
  .confirmation-value span { font-size: 14px; }
  .confirmation-arrow { font-size: 22px; }
  .confirmation-used { margin-top: 10px; font-size: 14px; }
}

.visit-confirmation-pending { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.visit-confirmation-pending > .text-link { margin-left: 0; }

.balance-list { padding: 8px 14px 12px; }
.balance-list .balance-row { display: flex; width: 100%; box-sizing: border-box; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; padding: 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.balance-list .balance-row:last-child { border-bottom: 0; }
.balance-list .balance-row:hover { border-radius: 9px; background: #f8f8f5; }
.balance-list .balance-name { gap: 12px; }
.balance-list .balance-name .avatar { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; font-size: 11px; }
.balance-list .balance-name strong { max-width: 100%; font-size: 15px; }
.balance-list .balance-name small { margin-top: 4px; font-size: 12px; }
.balance-pill { display: flex; min-width: 96px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 9px; }
.balance-pill.low { color: #855412; background: #fbf1d9; }
.balance-pill.empty { color: #9c3828; background: #fbe9e4; }
.balance-pill .balance-number { color: inherit; font: 700 18px/1 Manrope, sans-serif; }
.balance-pill small { font-size: 11px; font-weight: 600; white-space: nowrap; }
@media (max-width: 590px) {
  .balance-heading { padding: 16px; }
  .balance-list { padding: 6px 10px 10px; }
  .balance-list .balance-row { min-height: 68px; padding: 10px 8px; }
  .balance-list .balance-name { gap: 9px; }
  .balance-list .balance-name .avatar { width: 36px; height: 36px; }
  .balance-list .balance-name strong { font-size: 14px; }
  .balance-pill { min-width: 90px; padding: 8px; }
  .balance-pill .balance-number { font-size: 16px; }
  .balance-pill small { font-size: 10px; }
}

.pt-page-heading h1 { font-size: clamp(34px, 3.2vw, 40px); line-height: 1.15; }
.pt-client-name > span:not(.client-added) { font-weight: 700; }
@media (max-width: 590px) {
  .pt-page-heading h1 { font-size: 34px; }
}

/* Keep the front desk overview dense while preserving clear, useful metrics. */
.overview-page { padding-top: 10px; }
.overview-page .page-heading { margin-bottom: 16px; }
.overview-page .page-heading h1 { font-size: clamp(26px, 2.2vw, 32px); }
.overview-page .eyebrow { margin-bottom: 5px; font-size: 11px; }
.overview-page .page-subtitle { margin-top: 4px; font-size: 13px; line-height: 1.45; }
.overview-page .heading-actions > .button { min-height: 42px; padding: 0 14px; font-size: 13px; }
.overview-page .stats-grid { gap: 10px; margin-bottom: 14px; }
.overview-page .stat-card { min-height: 98px; padding: 13px 15px 12px; border-radius: 9px; }
.overview-page .stat-icon { display: grid; width: 27px; height: 27px; border-radius: 8px; }
.overview-page .stat-icon svg { width: 14px; height: 14px; }
.overview-page .stat-number { margin-top: 7px; font-size: 27px; }
.overview-page .stat-foot { margin-top: 5px; font-size: 11px; line-height: 1.35; }
.overview-page .dashboard-grid { gap: 12px; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr); }
.overview-page .panel-header, .overview-page .balance-heading { padding: 14px 16px; }
.overview-page .panel-header h2, .overview-page .balance-heading h2 { font-size: 15px; }
.overview-page .panel-header p { margin-top: 2px; font-size: 11px; }
.overview-page .text-link { min-height: 34px; font-size: 11px; }
.overview-page .session-list { padding: 0 16px; }
.overview-page .session-item { padding: 13px 0; }
.overview-page .session-item-copy strong { margin-top: 4px; font-size: 14px; }
.overview-page .session-item-copy small, .overview-page .session-item-copy .record-date-label, .overview-page .session-item-copy .record-date-time { font-size: 10px; }
.overview-page .activity-action { margin-top: 2px; font-size: 11px; }
.overview-page .activity-balance { margin-top: 4px; font-size: 11px; }
.overview-page .activity-note { margin-top: 5px; font-size: 11px; }
.overview-page .right-column { gap: 12px; }
.overview-page .right-column .panel + .panel { margin-top: 0; }
.overview-page .empty-state { min-height: 120px; padding: 18px 16px; }
.overview-page .empty-state strong { font-size: 14px; }
.overview-page .empty-state p { margin: 5px 0 9px; font-size: 11px; }
.overview-page .demo-reset { margin-top: 12px; font-size: 11px; }
@media (max-width: 840px) {
  .overview-page .dashboard-grid { grid-template-columns: 1fr; }
  .overview-page .right-column { gap: 12px; }
}
@media (max-width: 590px) {
  .overview-page { padding-top: 0; }
  .overview-page .page-heading { margin-bottom: 14px; gap: 10px; }
  .overview-page .page-heading h1 { font-size: 24px; }
  .overview-page .page-subtitle { max-width: 300px; font-size: 12px; }
  .overview-page .heading-actions { width: auto; }
  .overview-page .heading-actions > .button { min-height: 40px; padding: 0 11px; font-size: 11px; }
  .overview-page .stats-grid { gap: 8px; margin-bottom: 12px; }
  .overview-page .stat-card { min-height: 88px; padding: 10px 11px; }
  .overview-page .stat-icon { display: none; }
  .overview-page .stat-label { font-size: 10px; }
  .overview-page .stat-number { margin-top: 5px; font-size: 23px; }
  .overview-page .stat-foot { margin-top: 4px; font-size: 10px; }
  .overview-page .right-column { grid-template-columns: 1fr; }
  .overview-page .panel-header, .overview-page .balance-heading { padding: 13px 14px; }
  .overview-page .session-list { padding: 0 14px; }
}
