:root{--paper:#f8f9f5;--ink:#183f36;--muted:#717c72;--line:#dde3d9;--lime:#ddf291}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:28px}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}a:focus-visible{outline:3px solid #668925;outline-offset:6px;border-radius:4px}.container{max-width:1240px;margin:auto;padding-left:48px;padding-right:48px}.header{display:flex;align-items:center;justify-content:space-between;min-height:116px}.brand{display:flex;align-items:center;gap:12px;font-size:29px;letter-spacing:-1.2px}.brand-mark{display:block;width:48px;height:48px;flex-shrink:0}.brand-wordmark{font-style:italic;font-weight:800;letter-spacing:-1.4px}.brand-wordmark small{font-style:normal}.brand-bold{font-weight:800}.brand small{display:block;margin-top:4px;font-size:8px;font-weight:700;letter-spacing:1.4px}.header nav{display:flex;gap:32px;align-items:center;font-size:13px;font-weight:600}.nav-button{border:1px solid var(--line);padding:12px 18px;border-radius:7px}.nav-button span{margin-left:18px}.hero{display:grid;grid-template-columns:1.06fr 1fr;gap:38px;align-items:center;padding:40px 0 70px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;line-height:1.6}.hero-copy>.eyebrow{display:flex;align-items:center;gap:8px}.status-dot,.card-dot{height:6px;width:6px;border-radius:50%;background:#819d43;flex-shrink:0}h1{font-size:clamp(42px,4.5vw,62px);letter-spacing:-2.7px;line-height:1.07;margin:26px 0 24px;font-weight:600}h1>span{color:#819777}.hero-description{max-width:410px;font-size:16px;line-height:1.8;color:#657267;margin:0 0 30px}.primary-button{display:inline-flex;align-items:center;gap:28px;padding:18px 23px;background:var(--ink);color:white;font-size:13px;font-weight:600;border-radius:7px;transition:background .2s,transform .2s}.primary-button:hover{background:#2e5d48;transform:translateY(-2px)}.primary-button span{font-size:19px}.hero-note{font-size:11px;color:var(--muted);margin-top:18px}.hero-note span{margin-right:6px;color:#75915a}.hero-art{height:450px;background:var(--lime);border-radius:16px;position:relative;overflow:hidden;isolation:isolate}.art-grid{position:absolute;inset:0;background-image:linear-gradient(#183f3608 1px,transparent 1px),linear-gradient(90deg,#183f3608 1px,transparent 1px);background-size:32px 32px}.art-topline,.art-bottomline{position:absolute;left:28px;right:28px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.2px;font-weight:700;z-index:2}.art-topline{top:26px}.art-bottomline{bottom:25px;align-items:center}.art-bottomline>span:last-child{font-size:32px}.orbit{position:absolute;border:1.5px solid #183f3640;width:310px;height:620px;border-radius:180px;transform:rotate(34deg);top:-60px;left:192px}.orbit-two{width:360px;height:670px;top:-85px;left:167px}.orbit-three{width:410px;height:720px;top:-110px;left:142px}.orbit-four{width:460px;height:770px;top:-135px;left:117px}.art-word{position:absolute;top:100px;left:40px;font-size:78px;line-height:.97;letter-spacing:-5px;font-weight:900;transform:rotate(-8deg)}.art-word em{font-style:normal;-webkit-text-stroke:1.5px var(--ink);color:var(--lime)}.club-card{position:absolute;left:30px;right:30px;bottom:90px;display:flex;align-items:center;gap:13px;background:#faffedf2;padding:19px;border-radius:10px;box-shadow:0 15px 25px #183f3610;transform:rotate(-3deg)}.club-icon{display:grid;place-items:center;background:var(--ink);color:var(--lime);height:40px;width:40px;border-radius:9px;font-size:22px}.club-card strong{display:block;font-size:13px}.club-card div>span{display:block;font-size:10px;color:var(--muted);margin-top:6px}.club-card .card-dot{margin-left:auto;background:#718f37}.features{border-top:1px solid var(--line);padding:38px 0 42px;scroll-margin-top:20px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:25px}.section-heading .eyebrow{color:var(--muted);margin:0 0 10px}h2{margin:0;font-size:27px;letter-spacing:-.8px;font-weight:600}.section-note{font-size:11px;color:var(--muted);padding-bottom:4px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature-card{border:1px solid var(--line);border-radius:11px;padding:25px;background:#fff9}.feature-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.feature-icon{display:grid;place-items:center;background:#eef2e7;width:40px;height:40px;border-radius:10px;font-size:24px}.feature-number{font-size:11px;color:#929b8e;font-family:monospace}.feature-card h3{margin:0 0 12px;font-size:19px;letter-spacing:-.3px}.feature-card p{font-size:13px;line-height:1.75;color:var(--muted);margin:0 0 21px;max-width:280px}.feature-tag{font-size:9px;letter-spacing:.4px;border:1px solid var(--line);border-radius:20px;padding:5px 9px;color:var(--muted)}.start-panel{display:flex;gap:25px;align-items:center;border-radius:12px;background:#eaf0e3;padding:32px;margin:0 0 45px;scroll-margin-top:20px}.start-symbol{font-size:55px;color:#7c935d}.start-panel .eyebrow{font-size:9px;color:#718360;margin:0 0 8px}.start-panel h2{font-size:23px}.start-panel p:last-child{font-size:12px;color:var(--muted);margin:12px 0 0;line-height:1.7}.version{margin-left:auto;white-space:nowrap;font-size:9px;letter-spacing:1px;color:#718360;border:1px solid #cad5bf;padding:9px 12px;border-radius:5px}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;padding-top:24px;padding-bottom:28px;font-size:10px;color:var(--muted)}@media(min-width:1400px){.hero{padding-top:60px;padding-bottom:85px}}@media(max-width:950px){.container{padding-left:28px;padding-right:28px}.hero{gap:24px}h1{font-size:44px;letter-spacing:-1.8px}.hero-art{height:420px}.art-word{font-size:65px;left:25px}.club-card{left:20px;right:20px;padding:14px}.club-card strong{font-size:11px}.section-note{display:none}.start-panel{gap:18px}.start-panel h2{font-size:21px}.version{display:none}}@media(max-width:680px){.container{padding-left:22px;padding-right:22px}.header{min-height:90px}.brand{font-size:25px}.brand-mark{width:38px;height:38px}.brand small{font-size:6px}.header nav>a:first-child{display:none}.header nav{gap:0}.nav-button{font-size:11px;padding:10px 12px}.nav-button span{margin-left:8px}.hero{grid-template-columns:1fr;padding-top:24px;padding-bottom:40px;gap:35px}h1{font-size:clamp(38px,8.6vw,55px);margin-top:22px}.hero-description{font-size:15px}.hero-art{height:360px}.art-word{top:80px;font-size:72px;left:32px}.club-card{bottom:65px}.art-bottomline{bottom:17px}.art-topline{font-size:7px}.feature-grid{grid-template-columns:1fr;gap:12px}.section-heading h2{font-size:24px}.feature-card{padding:22px}.feature-top{margin-bottom:16px}.feature-card p{max-width:none}.start-panel{padding:24px;align-items:flex-start}.start-symbol{font-size:32px}.start-panel h2{font-size:20px;line-height:1.3}.footer{flex-wrap:wrap;gap:16px}.footer>span:nth-child(2){order:3;width:100%}.footer>a{margin-left:auto}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.primary-button{transition:none}}

/* Clients */
[hidden]{display:none!important}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.clients-main{min-height:calc(100vh - 194px);padding-top:30px;padding-bottom:50px}.clients-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.clients-heading h1{font-size:44px;margin:12px 0;letter-spacing:-1.6px}.clients-heading .eyebrow{color:var(--muted);margin:0}.clients-description{color:var(--muted);font-size:15px;line-height:1.7;margin:0}.demo-badge{font-size:11px;background:#eaf0e3;border:1px solid var(--line);padding:10px 13px;border-radius:20px;white-space:nowrap}.clients-panel{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}.client-search{padding:26px 28px 20px}.client-search label{display:block;font-size:13px;font-weight:600;margin-bottom:10px}.search-controls{display:flex;gap:10px}.search-controls input{min-width:0;flex:1;border:1px solid #cbd5c5;border-radius:7px;font:inherit;font-size:15px;padding:14px 16px;color:var(--ink);background:var(--paper)}.search-controls input:focus-visible{outline:2px solid #819d43;outline-offset:2px}.search-controls button{cursor:pointer;font-family:inherit}.search-controls .primary-button{border:0;padding:14px 24px}.search-clear{border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);padding:12px;font-size:12px}.search-clear:focus-visible,.search-controls button:focus-visible{outline:2px solid #819d43;outline-offset:2px}.client-search p{font-size:12px;color:var(--muted);line-height:1.6;margin:10px 0 0}.results-summary{padding:14px 28px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.table-scroll{overflow-x:auto}#client-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}#client-table th{padding:14px 28px;background:#f1f4ec;font-weight:600;font-size:11px;color:#657267}#client-table td{padding:20px 28px;border-top:1px solid #edf0e8}#client-table td:last-child{white-space:nowrap;color:#657267;font-variant-numeric:tabular-nums}#client-table tbody tr:hover{background:#f8faf5}#client-table strong{font-weight:600}.clients-empty{text-align:center;padding:40px 24px;border-top:1px solid var(--line)}.clients-empty>span{font-size:35px;color:#819777}.clients-empty h2{font-size:22px;margin:12px 0}.clients-empty p{font-size:13px;line-height:1.7;color:var(--muted)}.clients-empty a{display:inline-block;font-size:13px;text-decoration:underline;text-underline-offset:4px;margin-top:10px}.clients-footnote{font-size:12px;line-height:1.7;color:var(--muted);margin:18px 0 0}@media(max-width:680px){.clients-heading{align-items:flex-start;flex-direction:column}.clients-heading h1{font-size:38px}.clients-main{padding-top:18px}.client-search{padding:20px}.search-controls{flex-wrap:wrap}.search-controls input{flex-basis:100%}.search-controls .primary-button{margin-left:auto}.results-summary{padding:14px 20px}#client-table th,#client-table td{padding:16px 20px}.header .clients-nav>a:first-child{display:block}.header .clients-nav{gap:18px}}

#client-table mark{background:#ffe46b;color:inherit;border-radius:2px;padding:0}

/* Registration */
.back-link{display:inline-block;font-size:13px;color:var(--muted);margin-bottom:26px}.registration-panel{max-width:820px;border:1px solid var(--line);border-radius:14px;background:white;padding:32px}.registration-panel h2{font-size:23px}.form-help{font-size:12px;color:var(--muted);margin:10px 0 26px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px 22px}.form-field label{display:block;font-size:13px;font-weight:600;margin-bottom:10px}.form-field label span{color:#7c935d}.form-field input,.form-field select{width:100%;min-width:0;min-height:48px;border:1px solid #cbd5c5;border-radius:7px;padding:12px 14px;font:inherit;font-size:15px;background:var(--paper);color:var(--ink)}.form-field input:focus-visible,.form-field select:focus-visible{outline:2px solid #819d43;outline-offset:2px}.form-field [aria-invalid=true]{border-color:#a6372d}.field-hint,.field-error{font-size:12px;line-height:1.6;margin:8px 0 0}.field-hint{color:var(--muted)}.field-error{color:#a6372d}.form-alert{background:#fff0e9;color:#903229;border:1px solid #f0c9bc;border-radius:8px;padding:16px;font-size:14px;line-height:1.6;margin-bottom:24px}.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}.form-actions button{font-family:inherit;cursor:pointer;border:0}.form-actions button:focus-visible{outline:3px solid #668925;outline-offset:4px}.form-actions button:disabled{opacity:.65;cursor:wait}.success-notice{background:#eaf0e3;border:1px solid #cad5bf;border-radius:8px;padding:16px;font-size:14px;margin:0 0 20px}@media(max-width:680px){.registration-panel{padding:22px}.form-grid{grid-template-columns:1fr;gap:22px}.form-actions{flex-wrap:wrap}.form-actions .primary-button{padding:15px 18px;gap:15px}}

/* Authentication */
.login-main{min-height:calc(100vh - 194px);padding-top:35px;padding-bottom:60px}.login-heading,.login-panel{max-width:460px;margin-left:auto;margin-right:auto}.login-heading .eyebrow{color:var(--muted)}.login-heading h1{font-size:36px;letter-spacing:-1.2px;margin:14px 0}.login-heading>p:last-child{color:var(--muted);font-size:14px;line-height:1.7;margin:0 0 28px}.login-panel .form-field{margin-bottom:22px}.login-panel .primary-button{width:100%;justify-content:space-between;border:0;font-family:inherit;cursor:pointer}.login-panel .primary-button:focus-visible,.logout-button:focus-visible{outline:3px solid #668925;outline-offset:4px}.login-panel .form-help{margin:18px 0 0}.clients-nav .logout-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;font:inherit;color:var(--ink);background:transparent;cursor:pointer}.clients-nav .logout-button:hover{background:#f1f4ec}.clients-nav .logout-button svg{display:block;flex:none}.clients-nav form{margin:0}@media(max-width:680px){.header .clients-nav{gap:10px}.header .clients-nav>a:first-child{display:none}.clients-nav .nav-button{padding:10px}.login-heading h1{font-size:32px}}

/* Search pages */
.pagination{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 28px;border-top:1px solid var(--line);font-size:12px}.pagination [aria-disabled=true]{color:#9ba497;cursor:default}.pagination a:hover{background:#eef2e7}#client-results>.form-alert{margin:16px 20px}@media(max-width:680px){.pagination{padding:18px 20px;gap:10px}.pagination .nav-button{padding:10px}.pagination>span:not(.nav-button){font-size:11px}}

.form-field textarea{width:100%;min-width:0;border:1px solid #cbd5c5;border-radius:7px;padding:12px 14px;font:inherit;font-size:15px;background:var(--paper);color:var(--ink);resize:vertical;min-height:130px}.form-field textarea:focus-visible{outline:2px solid #819d43;outline-offset:2px}.form-field textarea[aria-invalid=true]{border-color:#b54b38}.form-field-wide{grid-column:1/-1}#client-table .client-phone{white-space:nowrap;color:#657267;font-variant-numeric:tabular-nums}#client-table .client-actions{width:70px;padding:10px 14px}.client-edit{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:white;opacity:1}.client-edit:focus-visible{outline:2px solid #819d43;outline-offset:2px}.client-edit:hover{background:#eaf0e3}@media(hover:hover) and (pointer:fine){.client-edit{opacity:0}#client-table tr:hover .client-edit,#client-table tr:focus-within .client-edit{opacity:1}}

.client-comment{margin:7px 0 0;font-size:13px;font-style:italic;font-weight:400;line-height:1.5;color:#849087;white-space:pre-wrap;overflow-wrap:anywhere;max-width:36rem}

/* Authenticated navigation */
.crm-header{gap:20px}.crm-header .clients-nav{flex-wrap:wrap;justify-content:flex-end;gap:12px}.crm-header .clients-nav [aria-current=page]{background:#eaf0e3}.crm-header .clients-nav form{margin:0}@media(max-width:680px){.crm-header{flex-wrap:wrap;gap:16px;padding-top:20px;padding-bottom:18px}.crm-header .clients-nav{width:100%;justify-content:flex-start;gap:10px}.crm-header .clients-nav>a:first-child{display:block}.crm-header .clients-nav form{margin-left:auto}}

.attendance-badge {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 100;
  padding: 14px 22px;
  border-radius: 999px;
  background: #183f36;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px #183f3633;
}
.attendance-badge[hidden] { display: none; }
.attendance-badge:focus-visible { outline: 3px solid #d5ae58; outline-offset: 3px; }
.client-visit { min-width: 160px; }
.client-visit form { margin: 0; }
.entry-time { display: block; font-size: .8rem; color: #65766e; margin-bottom: 6px; }
.visit-button { cursor: pointer; white-space: nowrap; }
.visit-exit { background: #f8eee2; color: #765222; }
body { padding-bottom: 76px; }

.visit-button:disabled { cursor: wait; opacity: .7; }
.visit-form[aria-busy="true"] .visit-button::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: visit-loading .7s linear infinite;
}
@keyframes visit-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .visit-form[aria-busy="true"] .visit-button::before { animation: none; }
}

#client-table tr[data-client-url] { cursor: pointer; }
#client-table tr[data-client-url]:focus-within { background: #f0f5e9; }
.client-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.client-profile-icon { display: inline-block; flex: 0 0 18px; order: -1; width: 18px; height: 18px; margin-right: 4px; vertical-align: middle; fill: currentColor; color: #718372; }
.client-back { display: inline-block; margin-bottom: 26px; font-size: 14px; }
.client-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.client-card-panel { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.client-data-panel { position: relative; display: flex; flex-direction: column; }
.client-edit-button { position: absolute; top: 12px; right: 12px; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); }
.client-edit-button:hover { border-color: #91a88a; background: #f0f5e9; }
.client-edit-button:focus-visible { outline: 2px solid #819d43; outline-offset: 2px; }
.client-edit-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.client-card-panel h2 { font-size: 23px; }
.client-data-panel h2 { max-width: calc(100% - 38px); overflow-wrap: anywhere; }
.client-details { margin: 24px 0 0; }
.client-details > div + div { margin-top: 24px; }
.client-details dt { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.client-details dd { margin: 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.client-card-grid .client-details .client-card-comment { color: #000; font-size: 16px; font-style: italic; line-height: 1.45; white-space: pre-wrap; }
.client-profile-actions { margin-top: auto; padding-top: 18px; flex-wrap: nowrap; gap: 8px; }
.client-profile-actions a { display: inline-flex; flex: 1 1 0; min-width: 0; height: 40px; align-items: center; justify-content: center; padding: 8px; border-radius: 7px; }
.client-profile-actions a svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-top-up-link { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; margin-left: 7px; padding: 5px; vertical-align: middle; }
.account-top-up-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.client-visit-status { display: inline-block; padding: 8px 12px; border-radius: 20px; background: #eaf0e3; font-size: 13px; }
.client-card-panel .form-alert { margin-top: 24px; }
.client-card-panel .account-top-up-notice { margin: 16px 0 0; }
.client-card-panel .form-help { margin-top: 24px; }
@media(max-width: 680px) { .client-card-grid { grid-template-columns: 1fr; } .client-card-panel { padding: 22px; } .clients-heading h1 { overflow-wrap: anywhere; } }
.client-card-panel .visit-form { margin-top: 24px; }
.client-card-grid { align-items: stretch; gap: 16px; }
.client-card-grid .client-card-panel { padding: 18px 20px; color: #000; }
.client-card-grid .client-card-panel h2 { font-size: 20px; }
.client-card-grid > section[aria-labelledby="client-visit-title"] { display: flex; flex-direction: column; }
.client-visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; }
.client-visit-actions .visit-form { display: flex; margin: 0; }
.client-visit-actions .client-visit-delete-form { align-self: auto; margin: 0 0 0 auto !important; }
.active-membership-card { display: flex; flex-direction: column; }

/* Global top-right notices */
.toast-region { position: fixed; z-index: 2000; top: max(20px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); display: grid; gap: 10px; width: min(340px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto; }
.toast-region .toast-notice { position: relative; inset: auto; display: flex; align-items: flex-start; gap: 18px; width: 100%; margin: 0; padding: 16px 14px 16px 18px; border: 1px solid #cad5bf; border-radius: 9px; background: #f4f8ed; color: var(--ink); box-shadow: 0 10px 32px #183f3626; font-size: 14px; line-height: 1.55; animation: toast-notice-enter .2s ease-out; }
.toast-region .toast-notice-error { border-color: #f0c9bc; background: #fff0e9; color: #903229; }
.toast-region .toast-notice-success { border-color: #cad5bf; background: #eaf0e3; color: var(--ink); }
.toast-notice-content { flex: 1; min-width: 0; }
.toast-notice-content p { margin: 0; }
.toast-notice-close { display: inline-flex; flex: 0 0 30px; width: 30px; height: 30px; align-items: center; justify-content: center; margin: -5px -4px 0 auto; padding: 5px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.toast-notice-close:hover { background: #e7eddd; color: var(--ink); }
.toast-notice-close:focus-visible { outline: 2px solid #819d43; outline-offset: 2px; }
.toast-notice-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.toast-close-all { justify-self: end; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.toast-close-all:hover { background: #eaf0e3; color: var(--ink); }
.toast-close-all:focus-visible { outline: 2px solid #819d43; outline-offset: 2px; }
@keyframes toast-notice-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width:680px) { .toast-region { top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); width: min(340px, calc(100vw - 20px)); max-height: calc(100vh - 20px); } }
@media(prefers-reduced-motion:reduce) { .toast-region .toast-notice { animation: none; } }
.client-details .client-profile-icon { order: initial; margin: 0 0 0 8px; vertical-align: -3px; }
.active-membership-current { background: #f4f8ec; }
.active-membership-frozen { background: #eef7fa; }
.client-card-grid .client-details { margin-top: 12px; }
.client-card-grid .client-details > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.client-card-grid .client-details > .client-phone-row { grid-template-columns: minmax(0, 1fr); }
.client-card-grid .client-details > .client-comment-row { grid-template-columns: minmax(0, 1fr); }
.client-card-grid .client-phone-row dd { font-size: 16px; font-weight: 600; }
.client-card-grid .client-details > div + div { margin-top: 8px; }
.client-card-grid .client-details dt { margin: 0; color: #000; font-size: 14px; line-height: 1.5; }
.client-card-grid .client-details dd { color: #000; font-size: 16px; line-height: 1.5; }
.client-card-grid .client-details > .client-phone-row dd { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.client-phone-line { display: inline-flex; align-items: center; gap: 6px; color: #000; font-size: 16px; font-weight: 400; }
.client-phone-line svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.client-card-grid .client-visit-status { align-self: flex-start; margin: 12px 0 0; padding: 5px 9px; font-size: 12px; }
.client-card-grid .form-help, .client-card-grid .form-alert, .client-card-grid .visit-form { margin-top: 12px; }
.client-card-grid .visit-button { padding: 8px 14px; }
.client-card-grid .no-active-membership { display: flex; min-height: 220px; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #eef0eb; color: #000; text-align: center; text-decoration: none; cursor: pointer; }
.client-card-grid .no-active-membership:hover { background: #e6e9e3; color: #000; }
.no-active-membership svg { width: 72px; height: 72px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.no-active-membership span { font-size: 16px; }
.active-membership-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.active-membership-heading h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.active-membership-card > p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; }
.active-membership-card > .form-help { margin-top: 7px; }
.active-membership-card .membership-freeze-status, .membership-freeze-end { color: #24779a; }
.membership-freeze-end { font-weight: 600; }
.active-membership-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; }
.active-membership-actions .visit-form { display: flex; margin: 0; }
.active-membership-actions .membership-delete-form { margin-left: auto; }
.membership-icon-button { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); cursor: pointer; }
.membership-icon-button:hover { border-color: #91a88a; background: #f0f5e9; }
.membership-icon-button:focus-visible { outline: 2px solid #819d43; outline-offset: 2px; }
.membership-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.membership-icon-button.membership-delete-action { color: #9b382b; }
.active-membership-extend > summary::-webkit-details-marker { display: none; }
.active-membership-extend > summary::marker { content: ""; }
.active-membership-extend[open] .membership-extend-form { position: absolute; z-index: 10; margin-top: 7px; box-shadow: 0 8px 24px #183f3620; }
@media(max-width: 680px) {
  .client-card-grid .client-card-panel { padding: 16px; }
  .client-card-grid .client-details > div { grid-template-columns: 96px minmax(0, 1fr); }
}
.client-memberships { margin-top: 24px; }
.client-memberships-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.client-memberships h3 { margin: 30px 0 18px; }
.client-membership-archive { margin-top: 16px; }
.client-membership-archive h3 { margin: 0 0 12px; font-size: 19px; }
.owned-membership { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 18px 0; }
.client-memberships > .owned-membership:first-of-type, .client-membership-archive > .owned-membership:first-of-type { border-top: 0; }
.owned-membership h4 { font-size: 17px; margin: 0 0 6px; overflow-wrap: anywhere; }
.membership-title { display: flex; align-items: center; gap: 9px; }
.membership-title > span:last-child { min-width: 0; }
.membership-state { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid; border-radius: 50%; }
.membership-state svg { display: block; }
.membership-state-pending { color: #927019; background: #fff5d6; border-color: #eddda7; }
.membership-state-active { color: #39713c; background: #e5f4cb; border-color: #b9d994; box-shadow: 0 0 0 3px #e5f4cb66; }
.membership-state-frozen { color: #24779a; background: #e0f5fc; border-color: #9bd6e8; box-shadow: 0 0 0 3px #e0f5fc66; }
.owned-membership .form-help { margin: 0; }
.owned-membership p { font-size: 14px; }
.owned-membership-archived { color: var(--muted); }
.membership-row-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.client-memberships .membership-row-actions .visit-form { display: flex; margin: 0; }
.membership-row-actions .visit-button { padding: 10px 14px; }
.membership-sale-panel { max-width: 680px; }
.client-memberships .membership-sale-panel { max-width: none; }
.membership-sale-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.membership-sale-heading h2 { font-size: 22px; }
.membership-sale-cancel { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 24px; line-height: 1; }
.membership-sale-cancel:hover { background: #f1f4ec; color: var(--ink); }
.membership-sale-form .form-field { margin-bottom: 22px; }
@media(max-width:900px) { .client-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:680px) { .client-card-grid { grid-template-columns: 1fr; } .owned-membership { align-items: flex-start; flex-direction: column; } }
.crm-header { flex-wrap: wrap; gap: 18px; padding-top: 24px; padding-bottom: 24px; }
.crm-header .clients-nav { margin-left: auto; }
@media(max-width:680px){.crm-header .clients-nav{margin-left:0}}
.header .clients-nav { flex-wrap: wrap; gap: 10px; }
.header .clients-nav a[aria-current="page"] { background: #eaf0e3; border-color: #bdcbb2; }

/* Four primary sections on the welcome page. */
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card { position: relative; transition: border-color .2s, box-shadow .2s; }
.feature-card:hover { border-color: #a6b68c; box-shadow: 0 8px 28px #183f360b; }
.feature-card:focus-within { border-color: #819d43; }
.feature-card p { max-width: 420px; }
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-tag { display: inline-block; }
.feature-tag:hover { background: #eaf0e3; color: var(--ink); }
@media(max-width: 680px) { .feature-grid { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion: reduce) { .feature-card { transition: none; } }

/* Full-width measuring line behind the welcome-page branding. */
.welcome-page { position: relative; isolation: isolate; }
.welcome-page::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  right: 0;
  height: 26px;
  z-index: -1;
  pointer-events: none;
  opacity: .13;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 24px) 0 0 / 100% 9px no-repeat,
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 120px) 0 0 / 100% 22px no-repeat;
}
@media(max-width: 680px) { .welcome-page::before { top: 44px; opacity: .1; } }
.client-sale-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.membership-delete { color: #a13d32; border-color: #e6c6c1; background: #fff8f6; }
.membership-delete:hover { background: #fbe9e5; }
.membership-delete[data-icon-only="true"] { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; }
.product-icon-button[data-icon-only="true"] { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; }
.visit-form[aria-busy="true"] .product-icon-button[data-icon-only="true"] svg { display: none; }
.visit-form[aria-busy="true"] .product-icon-button[data-icon-only="true"]::before { margin-right: 0; }
.visit-form[aria-busy="true"] .membership-delete[data-icon-only="true"] svg { display: none; }
.visit-form[aria-busy="true"] .membership-delete[data-icon-only="true"]::before { margin-right: 0; }

#client-table .membership-warning { color: #986313; font-weight: 600; }
.membership-warning-icon { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; color: #83520a; background: #ffedbd; border: 1px solid #e6bd63; font-size: 12px; font-weight: 800; }
#client-table .membership-warning-danger { color: #a13d32; }
.membership-warning-icon.membership-warning-danger { background: #fbe9e5; border-color: #e6b4aa; }
.recent-client-views { width: 100%; margin: 12px 0 0; padding: 24px 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.recent-client-views-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.recent-client-views-heading .eyebrow { margin: 0 0 7px; color: var(--muted); }
.recent-client-views-heading h2 { font-size: 21px; }
.recent-client-views-heading > span { color: var(--muted); font-size: 12px; }
.recent-client-views ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.recent-client-views li a { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #f8faf4; font-size: 13px; }
.recent-client-views li a:hover { background: #eaf0e3; }
@media(max-width:680px) { .recent-client-views { padding: 20px; } .recent-client-views-heading { align-items: start; flex-direction: column; gap: 8px; } }
.company-context { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0; color: var(--muted); font-size: 12px; }
.company-context form { position: relative; margin: 0; }
.crm-header .clients-nav .company-context form { margin-left: 0; }
.company-context select { min-width: 190px; min-height: 42px; padding: 0 34px 0 14px; appearance: none; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.company-context form::after { position: absolute; top: 16px; right: 14px; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); content: ""; pointer-events: none; transform: rotate(45deg); }
.company-context select:hover { background: #f1f4ec; }
.company-context select:focus-visible { outline: 2px solid #819d43; outline-offset: 3px; }
.company-context a { color: var(--ink); }
.clients-nav .header-icon-button { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0; }
.clients-nav .header-icon-button svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.clients-nav .header-icon-button:hover { background: #f1f4ec; }
.clients-nav .header-icon-button:focus-visible { outline: 2px solid #819d43; outline-offset: 3px; }
.not-found-main { display: grid; min-height: calc(100vh - 232px); place-items: center; padding-top: 32px; padding-bottom: 48px; }
.not-found-card { position: relative; width: min(100%, 760px); overflow: hidden; padding: clamp(30px, 6vw, 64px); border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 20px 60px #183f360c; }
.not-found-code { position: absolute; top: 12px; right: 28px; color: #eef2e7; font-size: clamp(100px, 18vw, 190px); font-weight: 800; letter-spacing: -12px; line-height: 1; pointer-events: none; }
.not-found-card .eyebrow, .not-found-card h1, .not-found-card > p:not(.eyebrow), .not-found-card .primary-button { position: relative; }
.not-found-card .eyebrow { margin: 0 0 12px; color: #718668; }
.not-found-card h1 { max-width: 520px; margin: 0 0 18px; font-size: clamp(32px, 5vw, 46px); letter-spacing: -1.8px; }
.not-found-card > p:not(.eyebrow) { max-width: 520px; margin: 0 0 28px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.not-found-card .primary-button { padding: 14px 18px; }
@media(max-width:680px) { .not-found-main { min-height: calc(100vh - 210px); } .not-found-card { padding: 28px 22px; } .not-found-code { top: 18px; right: 16px; font-size: 100px; letter-spacing: -7px; } .not-found-card h1 { font-size: 32px; } }
.impersonation-banner { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 8px 0; color: #8b4e12; font-size: 12px; }
.impersonation-banner form { margin: 0; }
.impersonation-banner button { padding: 7px 10px; border: 1px solid #e3ca9b; border-radius: 6px; background: #fff7e8; color: #77420e; font: inherit; font-weight: 600; cursor: pointer; }
.impersonation-banner button:hover { background: #ffedc8; }
@media(max-width: 760px) { .impersonation-banner { justify-content: flex-start; flex-wrap: wrap; } }

.client-edit-layout { display: grid; gap: 24px; align-items: start; }
.client-edit-layout > .registration-panel { min-width: 0; }
.client-edit-layout > form > h2 { margin-bottom: 26px; }
#client-card-scan { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 12px; }
#client-card-scan > .form-field { flex-basis: 100%; min-width: 0; }
#client-card-scan > .primary-button { border: 0; font-family: inherit; cursor: pointer; }
#card-scan-status { flex-basis: 100%; margin: 0; }
@media (min-width: 951px) {
  .client-edit-layout-with-cards { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .client-edit-layout-with-cards > .registration-panel { max-width: none; }
}

.membership-choice-dialog { width:min(560px,calc(100% - 32px)); padding:24px; border:1px solid var(--line); border-radius:14px; color:var(--ink); background:var(--paper); }
.membership-choice-dialog::backdrop { background:#183f3666; }
.membership-choice-dialog h2 { margin-bottom:24px; font-size:23px; }
.membership-choice-dialog select { max-width:100%; }
.membership-choice-dialog .nav-button { font:inherit; color:var(--ink); cursor:pointer; }

.membership-card-pending { background:#fffdf6; border-color:#e8dfc2; }
.active-membership-actions > .visit-form > .primary-button { padding:10px 14px; }

.catalog-tabs { display: flex; gap: 8px; padding: 16px 24px 0; overflow-x: auto; border-bottom: 1px solid #dce5df; }
.catalog-tabs > a { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 12px 16px; border-bottom: 3px solid transparent; color: #667c72; font-weight: 600; text-decoration: none; white-space: nowrap; }
.catalog-tabs > a:hover { color: #183f36; }
.catalog-tabs > a[aria-current="page"], .catalog-tabs > a[aria-selected="true"] { color: #183f36; border-bottom-color: #183f36; }
.catalog-tabs > a:focus-visible { outline: 2px solid #183f36; outline-offset: -2px; }
.catalog-tabs > a > span { padding: 0 6px; border-radius: 6px; background: #edf2ef; font-size: 12px; }

/* Keep the CRM logo and navigation on one compact row. */
.crm-header { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; min-height: 84px; padding-top: 16px; padding-bottom: 16px; }
.crm-header .brand { gap: 8px; font-size: 24px; white-space: nowrap; }
.crm-header .brand-mark { width: 36px; height: 36px; }
.crm-header .brand-wordmark small { font-size: 6px; letter-spacing: 1px; }
.crm-header .clients-nav { flex-wrap: nowrap; justify-content: flex-start; justify-self: end; width: max-content; max-width: 100%; min-width: 0; gap: 4px; margin-left: 0; padding: 4px; overflow-x: auto; scrollbar-width: thin; }
.crm-header .clients-nav > * { flex-shrink: 0; }
.crm-header .clients-nav .nav-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 8px; font-size: 12px; line-height: 16px; white-space: nowrap; }
.crm-header .clients-nav .header-icon-button, .crm-header .clients-nav .logout-button { width: 34px; height: 34px; padding: 0; }
.crm-header .clients-nav .header-icon-button svg, .crm-header .clients-nav .logout-button svg { width: 18px; height: 18px; }
.crm-header .clients-nav > form { margin: 0; }
.crm-header .company-context:empty { display: none; }
.crm-header .company-context select { width: 160px; min-width: 0; min-height: 34px; height: 34px; padding: 0 26px 0 10px; font-size: 12px; text-overflow: ellipsis; }
.crm-header .company-context form::after { top: 12px; right: 11px; width: 6px; height: 6px; }
.crm-header .impersonation-banner { grid-column: 1 / -1; }
@media (max-width: 680px) {
  .crm-header { gap: 8px; min-height: 68px; padding: 12px 16px; }
  .crm-header .brand-wordmark { display: none; }
  .crm-header .brand-mark { width: 32px; height: 32px; }
}

.clients-workspace { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); align-items:start; gap:20px; }
.clients-workspace > * { min-width:0; }
.clients-panel > .client-search { width:100%; padding:20px; }
.clients-search-panel #client-table { font-size:14px; }
.clients-search-panel #client-table th, .clients-search-panel #client-table td { padding:9px 10px; vertical-align:middle; }
.clients-search-panel #client-table th { font-size:12px; }
.clients-search-panel #client-table .client-row-number { width:1%; min-width:0; padding-left:14px; padding-right:8px; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.clients-search-panel #client-table th:nth-child(2), .clients-search-panel #client-table td:nth-child(2) { min-width:280px; width:49%; }
.clients-search-panel #client-table th:nth-child(3), .clients-search-panel #client-table td:nth-child(3) { width:32%; }
.clients-search-panel #client-table th:nth-child(4), .clients-search-panel #client-table td:nth-child(4) { width:18%; }
.clients-search-panel #client-table .form-help { font-size:13px; line-height:1.4; margin:2px 0 0; }
.clients-search-panel #client-table .client-phone { padding-left:20px; margin:2px 0 0; font-size:13px; line-height:1.4; color:var(--muted); white-space:nowrap; }
.clients-search-panel #client-table .client-comment { padding-left:20px; margin-top:3px; font-size:14px; line-height:1.4; }
.clients-search-panel #client-table .entry-time { margin-top:3px; margin-bottom:0; font-size:13px; line-height:1.4; text-align:right; }
.clients-search-panel #client-table .visit-form { display:flex; justify-content:flex-end; margin:0; }
.clients-search-panel #client-table .visit-button { padding:6px 10px; min-height:34px; font-size:14px; }
.clients-search-panel .results-summary { padding:12px 20px; }
.clients-search-panel .pagination { padding:14px 20px; flex-wrap:wrap; gap:10px; }
.clients-search-panel .search-controls { flex-wrap:wrap; }
.clients-search-panel .search-controls input { flex:1 1 160px; }
.clients-search-panel .search-controls .primary-button { padding:12px 18px; }
.daily-visits-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:20px; }
.daily-visits-heading h2 { font-size:19px; }
.daily-visits-heading .membership-icon-button { width:30px; height:30px; padding:5px; }
.monthly-visits-filter { display:flex; align-items:end; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.monthly-visits-filter label { display:grid; gap:6px; }
.monthly-visits-filter input, .monthly-visits-filter select { border:1px solid var(--line); border-radius:7px; padding:10px 12px; font:inherit; color:var(--ink); background:white; }
.monthly-visits-filter input { width:110px; }
.monthly-visits-filter button { border:0; cursor:pointer; padding:12px 18px; }
.monthly-visits-layout { display:grid; grid-template-columns:340px minmax(0,1fr); gap:24px; align-items:start; }
.monthly-visits-calendar, .monthly-visits-day { min-width:0; margin:0; }
.monthly-visits-calendar .monthly-visits-filter { gap:10px; margin:18px 0; }
.monthly-visits-calendar .monthly-visits-filter label { font-size:12px; flex:1; }
.monthly-visits-calendar .monthly-visits-filter input { width:100%; min-width:0; }
.monthly-visits-calendar .monthly-visits-filter button { width:100%; justify-content:center; }
.monthly-visits-calendar-grid { width:100%; table-layout:fixed; border-collapse:separate; border-spacing:3px; }
.monthly-visits-calendar-grid th { padding:6px 0; text-align:center; color:var(--muted); font-size:11px; }
.monthly-visits-calendar-grid td { padding:0; height:54px; }
.monthly-visits-calendar-grid a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:54px; border:1px solid var(--line); border-radius:7px; background:#f8f9f5; }
.monthly-visits-calendar-grid a strong { font-size:13px; }
.monthly-visits-calendar-grid a span { font-size:10px; color:var(--muted); }
.monthly-visits-calendar-grid a:hover { background:#edf2e7; border-color:#91a88a; }
.monthly-visits-calendar-grid a[aria-current="date"] { background:var(--ink); border-color:var(--ink); color:white; }
.monthly-visits-calendar-grid a[aria-current="date"] span { color:#ddf291; }
.monthly-visits-day .visit-history-table { min-width:520px; font-size:12px; }
.monthly-visits-day .visit-history-table th, .monthly-visits-day .visit-history-table td { padding:10px 8px; }
@media(max-width:1050px) { .monthly-visits-layout { grid-template-columns:300px minmax(0,1fr); gap:16px; } }
@media(max-width:800px) { .monthly-visits-layout { grid-template-columns:minmax(0,1fr); } .monthly-visits-calendar { width:100%; max-width:380px; } }
.daily-visits-heading > span { margin-left:auto; color:var(--muted); font-size:11px; }
.daily-visits-section { border-top:1px solid var(--line); }
.daily-visits-section h3 { margin:0; padding:14px 20px; font-size:13px; background:#f4f7f0; }
.daily-visits-summary { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 12px; padding:14px 20px; background:#f4f7f0; }
.daily-visits-summary h3 { padding:0; }
.daily-visits-toggle { padding:0; border:0; background:transparent; color:var(--muted); font:inherit; font-size:12px; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.daily-visits-exited h3 { background:#f8f9f5; color:var(--muted); }
.daily-visits-table { width:100%; border-collapse:collapse; font-size:12px; text-align:left; }
.daily-visits-table thead th { padding:9px 12px; color:var(--muted); font-size:11px; font-weight:500; }
.daily-visits-table tbody th, .daily-visits-table td { padding:11px 12px; border-top:1px solid #edf0e8; }
.daily-visits-table th:first-child { padding-left:20px; font-weight:500; }
.daily-visits-table th:not(:first-child), .daily-visits-table td { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.daily-visits-table th:last-child, .daily-visits-table td:last-child { padding-right:20px; }
.daily-visits-table a:hover { text-decoration:underline; text-underline-offset:3px; }
.daily-visit-card { display:inline; margin-left:6px; color:var(--muted); font-size:11px; white-space:nowrap; }
.daily-visit-membership { margin:0; color:var(--muted); font-size:11px; font-weight:400; overflow-wrap:anywhere; }
.daily-visits-table .visit-form { margin:0; }
.daily-visits-table .visit-button { padding:4px 10px; font-size:12px; }
.daily-visits-exited tbody { color:var(--muted); }
.daily-visits-empty { padding:16px 20px; margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.daily-visits-refresh-error { margin:0; padding:12px 20px; background:#fff0e9; color:#903229; font-size:12px; }
@media (max-width: 900px) {
 .clients-workspace { grid-template-columns:minmax(0,1fr); }
}

.clients-search-panel .client-add-button { display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; min-height:46px; padding:0; }
.clients-search-panel .client-add-button:hover { background:#eaf0e3; }
.clients-search-panel .client-add-button svg { display:block; }

.client-view-tabs { display:flex; align-items:center; gap:6px; padding:12px 20px; border-bottom:1px solid var(--line); }
.client-view-tabs > a:not(.client-add-button) { padding:9px 13px; border-radius:8px; font-size:13px; color:var(--muted); }
.client-view-tabs > a[aria-current=page] { background:#eaf0e3; color:var(--ink); font-weight:600; }
.client-view-tabs > a:hover { background:#f1f4ec; }
.client-view-tabs > .client-add-button { margin-left:auto; min-height:34px; height:34px; flex-basis:34px; width:34px; }

.visit-history-month { margin-bottom:20px; }
.visit-history-table { width:100%; border-collapse:collapse; text-align:left; font-size:14px; }
.visit-history-table th, .visit-history-table td { padding:12px; border-bottom:1px solid #edf0e8; vertical-align:top; }
.visit-history-table th { color:var(--muted); font-size:12px; }
.visit-history-table time { white-space:nowrap; }

.client-visit-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.client-visit-heading h2 { margin:0; }
.client-visit-history-link { display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; width:32px; height:32px; padding:0; }
.client-visit-history-link svg { display:block; }

.visit-history-tabs { padding:0; margin:20px 0; }

.visit-history-times { white-space:nowrap; }

.shift-panel { position: relative; width: 100%; margin-bottom: 1rem; padding: 1rem 4.75rem 1rem 1.25rem; }
.shift-panel p:first-child { margin-top: 0; }
.shift-panel .nav-button { background: white; color: var(--ink); cursor: pointer; font: inherit; font-size: 13px; }
.shift-panel .primary-button { border: 0; cursor: pointer; }
.shift-panel .shift-history-link { position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; }

.client-card-grid .form-help, .client-membership-archive .form-help { color: #000; font-size: 16px; line-height: 1.5; }
.client-membership-archive, .client-membership-archive .owned-membership-archived { color: #000; }
.client-membership-archive .owned-membership p { font-size: 16px; line-height: 1.5; }

.daily-visit-trainer, .client-details .client-trainer { color:#86512f; }
.daily-visit-trainer { margin:0; font-size:11px; font-weight:400; overflow-wrap:anywhere; }

.client-profile-comment { margin-top:auto; padding-top:24px; }

.daily-visit-entry { display:block; margin-bottom:6px; }

.daily-visit-details { margin:4px 0 0; white-space:nowrap; }
.daily-visit-details > span { overflow-wrap:normal; }
.daily-visit-checkout { display:inline-flex; flex-direction:column; align-items:center; }
.daily-visits-section:not(.daily-visits-exited) .daily-visits-table td { vertical-align:top; }

.daily-visit-duration { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
