:root {
  --ink: #14332d;
  --muted: #687773;
  --line: #dfe8e4;
  --canvas: #f4f8f6;
  --brand: #14745e;
  --brand-dark: #0f5b4a;
  --mint: #dff3eb;
  --priority: #6f4dcc;
  --danger: #a13a3a;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 15% 0%, rgba(177,226,207,.38), transparent 34rem), var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.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; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 24px; border-bottom: 1px solid rgba(20,51,45,.08); background: rgba(255,255,255,.84); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 760; text-decoration: none; letter-spacing: -.02em; }
.brand-centered { justify-content: center; margin-bottom: 24px; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: #fff; background: var(--brand); box-shadow: 0 8px 20px rgba(20,116,94,.18); }
.demo-badge { padding: 4px 7px; border-radius: 999px; color: #725308; background: #fff0b8; font-size: .64rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.logout-button { appearance: none; padding: 8px 11px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: .86rem; font-weight: 720; }
.logout-button:hover { color: var(--brand-dark); background: var(--mint); }
.dashboard, .customer-page { width: min(100% - 32px, 980px); margin: 0 auto; padding: 76px 0 64px; }
.dashboard { max-width: 720px; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
h1 { margin: 0; max-width: 680px; font-size: clamp(2.05rem, 6vw, 3.45rem); line-height: 1.04; letter-spacing: -.045em; }
.count-card { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 20px; margin-top: 42px; padding: 34px; border: 1px solid rgba(20,116,94,.13); border-radius: 30px; color: #fff; background: linear-gradient(145deg, var(--brand), var(--brand-dark)); box-shadow: 0 22px 55px rgba(20,83,69,.2); text-decoration: none; transition: transform 150ms ease, box-shadow 150ms ease; }
.count-card:hover { transform: translateY(-2px); box-shadow: 0 26px 65px rgba(20,83,69,.25); }
.dashboard-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 42px; }
.dashboard-cards .count-card { margin-top: 0; min-width: 0; }
.dashboard-cards .count-number { font-size: clamp(3.5rem, 12vw, 5.4rem); }
.light-card { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.94); box-shadow: 0 16px 40px rgba(20,51,45,.09); }
.light-card .count-action { color: var(--brand-dark); background: var(--mint); }
.count-card:focus-visible { outline: 3px solid #f3bd4e; outline-offset: 4px; }
.count-number { font-size: clamp(4.7rem, 18vw, 7.5rem); font-weight: 780; line-height: .86; letter-spacing: -.07em; }
.count-label { grid-column: 1; font-size: 1.05rem; opacity: .78; }
.count-action { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 13px 16px; border-radius: 999px; background: rgba(255,255,255,.13); font-weight: 700; }
.status-note { margin: 18px 8px 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.push-panel { margin-top: 38px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 12px 34px rgba(20,51,45,.06); }
.push-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.push-heading h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.035em; }
.push-dot { width: 12px; height: 12px; margin-top: 8px; border-radius: 50%; background: #c7d1ce; box-shadow: 0 0 0 5px rgba(104,119,115,.1); }
.push-dot[data-state="active"] { background: #25a37e; box-shadow: 0 0 0 5px rgba(37,163,126,.12); }
.push-dot[data-state="error"] { background: #c95454; box-shadow: 0 0 0 5px rgba(201,84,84,.12); }
.push-dot[data-state="waiting"] { background: #e4a82e; box-shadow: 0 0 0 5px rgba(228,168,46,.13); }
.push-status { margin: 16px 0 0; color: var(--muted); line-height: 1.55; }
.push-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.primary-button, .secondary-button, .text-button { appearance: none; min-height: 44px; padding: 11px 15px; border-radius: 12px; cursor: pointer; font-weight: 760; }
.primary-button { border: 1px solid var(--brand); color: #fff; background: var(--brand); }
.primary-button:hover { background: var(--brand-dark); }
.secondary-button { border: 1px solid var(--line); color: var(--brand-dark); background: #fff; }
.secondary-button:hover { border-color: var(--brand); background: var(--mint); }
.text-button { border: 0; color: var(--muted); background: transparent; }
.primary-button:disabled, .secondary-button:disabled, .text-button:disabled { cursor: wait; opacity: .55; }
.push-help { margin: 17px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; line-height: 1.55; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--brand); font-weight: 750; text-decoration: none; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.total-pill { flex: none; padding: 9px 13px; border-radius: 999px; color: var(--brand-dark); background: var(--mint); font-size: .86rem; font-weight: 760; }
.search-field { display: block; margin-bottom: 18px; }
.search-field input { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; outline: none; color: var(--ink); background: rgba(255,255,255,.9); }
.search-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20,116,94,.12); }
.customer-list { display: grid; gap: 14px; }
.customer-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 9px 24px rgba(20,51,45,.045); }
.customer-card[hidden] { display: none; }
.customer-main { display: flex; justify-content: space-between; gap: 24px; padding: 23px 24px 20px; }
.customer-main h2 { margin: 12px 0 4px; font-size: 1.18rem; letter-spacing: -.025em; }
.customer-main p { margin: 0; color: var(--muted); font-size: .91rem; }
.customer-price { display: flex; flex: none; flex-direction: column; align-items: end; justify-content: center; gap: 5px; }
.customer-price strong { white-space: nowrap; font-size: .96rem; }
.customer-price span { color: var(--muted); font-size: .76rem; }
.plan-badge { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: .68rem; font-weight: 830; text-transform: uppercase; letter-spacing: .08em; }
.plan-badge.visible { color: var(--brand-dark); background: var(--mint); }
.plan-badge.priority { color: #fff; background: var(--priority); }
.plan-badge.basic { color: #596662; background: #edf1ef; }
.practitioner-card { display: block; color: inherit; text-decoration: none; }
.practitioner-row { display: flex; gap: 16px; align-items: center; padding: 18px; }
.profile-thumb, .profile-preview { display: grid; flex: none; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(145deg, var(--brand), #58a890); font-weight: 800; }
.profile-thumb { width: 58px; height: 58px; border-radius: 18px; font-size: 1.35rem; }
.profile-thumb img, .profile-preview img { width: 100%; height: 100%; object-fit: cover; }
.practitioner-summary { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.practitioner-summary h2 { margin: 8px 0 4px; font-size: 1.08rem; }
.practitioner-summary p { margin: 2px 0; color: var(--muted); font-size: .84rem; }
.edit-arrow { flex: none; color: var(--brand); font-size: .84rem; font-weight: 750; }
.edit-page { width: min(100% - 32px, 820px); margin: 0 auto; padding: 60px 0 110px; }
.edit-form { margin-top: 28px; }
.photo-editor { display: flex; align-items: center; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.profile-preview { width: 92px; height: 92px; border-radius: 26px; font-size: 2rem; }
.photo-editor h2 { margin: 0 0 5px; font-size: 1.1rem; }.photo-editor p { margin: 0 0 12px; color: var(--muted); font-size: .85rem; }
.upload-button { display: inline-block; padding: 10px 13px; border-radius: 11px; color: var(--brand-dark); background: var(--mint); cursor: pointer; font-weight: 750; }.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: .8rem; font-weight: 730; }.form-grid input, .form-grid textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; outline: none; }.form-grid input:focus, .form-grid textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20,116,94,.1); }.full-field { grid-column: 1 / -1; }.split-fields { display: grid; grid-template-columns: .7fr 1.3fr; gap: 10px; }.check-field { display: flex !important; grid-template-columns: auto 1fr; align-items: center; color: var(--ink) !important; }.check-field input { width: 20px; height: 20px; }
.sticky-save { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); }.success-message { margin-top: 20px; padding: 14px 17px; border-radius: 14px; color: var(--brand-dark); background: var(--mint); font-weight: 700; }.login-hint { margin: 12px 0 0; color: var(--muted); }
.customer-contact { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 15px 24px 16px; border-top: 1px solid var(--line); color: var(--muted); background: #fbfdfc; font-size: .86rem; }
.customer-contact a { color: var(--brand-dark); text-underline-offset: 3px; }
.edit-customer-link { margin-left: auto; font-weight: 750; }
.empty-state, .error-message, .no-search-results { margin-top: 26px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.9); }
.empty-state h2 { margin: 0 0 6px; font-size: 1.1rem; }
.empty-state p, .no-search-results { margin-bottom: 0; color: var(--muted); }
.error-message { color: var(--danger); border-color: rgba(161,58,58,.2); background: #fff8f8; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-shell { width: min(100%, 420px); }
.login-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 20px 55px rgba(20,51,45,.12); }
.login-card h1 { font-size: 2.25rem; }
.login-card .error-message { margin: 20px 0 0; padding: 13px; font-size: .9rem; }
.login-form { display: grid; gap: 17px; margin-top: 25px; }
.login-form label { display: grid; gap: 7px; font-size: .84rem; font-weight: 730; }
.login-form input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #fff; }
.login-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20,116,94,.12); }
.login-form button { padding: 14px 18px; border: 0; border-radius: 12px; color: #fff; background: var(--brand); cursor: pointer; font-weight: 780; }
.login-form button:hover { background: var(--brand-dark); }

@media (max-width: 640px) {
  .topbar { min-height: 64px; padding: 0 16px; }
  .dashboard, .customer-page { width: min(100% - 24px, 980px); padding-top: 48px; }
  .count-card { grid-template-columns: 1fr; padding: 28px; border-radius: 25px; }
  .dashboard-cards { grid-template-columns: 1fr; }
  .count-action { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 16px; }
  .page-heading { align-items: start; flex-direction: column; }
  .customer-main { flex-direction: column; gap: 15px; }
  .customer-price { align-items: start; }
  .customer-contact { flex-direction: column; }
  .edit-customer-link { margin-left: 0; }
  .form-grid { grid-template-columns: 1fr; padding: 18px; }.full-field { grid-column: auto; }.practitioner-row { align-items: flex-start; }.edit-arrow { display: none; }.photo-editor { align-items: flex-start; }.profile-preview { width: 78px; height: 78px; }.edit-page { width: min(100% - 24px, 820px); padding-top: 44px; }
}
