@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap";:root{color:#1c2a33;font-synthesis:none;--background:#fdfcfa;--foreground:#1c2a33;--card:#fff;--primary:#247c75;--primary-hover:#1d6762;--primary-foreground:#fff;--secondary:#f5f1eb;--muted:#6b7280;--accent:#f3e8dc;--accent-foreground:#8f5a3c;--border:#e8e4df;--sage:#e1f4df;--teal-ink:#244d54;--success:#3d9a6a;--destructive:#c2410c;--radius:12px;--shadow-card:0 4px 24px #4b44391a;--shadow-popover:0 20px 50px -12px #4b443924;background:#fdfcfa;font-family:Inter,system-ui,sans-serif}*{box-sizing:border-box}body{background:var(--background);-webkit-font-smoothing:antialiased;min-height:100vh;margin:0}button,input{font:inherit}a{color:inherit}h1,h2,p{margin-top:0}h1,h2{color:var(--foreground);letter-spacing:-.025em;font-family:inherit;font-weight:600}:focus-visible{outline:3px solid color-mix(in srgb, var(--primary) 42%, transparent);outline-offset:3px}::selection{color:var(--foreground);background:color-mix(in srgb, var(--primary) 20%, white)}.button{border-radius:var(--radius);cursor:pointer;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 18px;font-size:14px;font-weight:500;text-decoration:none;transition:transform .2s,background-color .2s,box-shadow .2s;display:inline-flex}.button:hover{transform:translateY(-1px)}.button:disabled{opacity:.58;cursor:wait;transform:none}.primary{color:var(--primary-foreground);background:var(--primary);box-shadow:0 8px 18px #2a91892b}.primary:hover{background:var(--primary-hover)}.secondary{color:var(--teal-ink);border-color:var(--border);background:var(--card)}.secondary:hover{background:var(--secondary)}.light{color:var(--teal-ink);background:#fff}.wide{width:100%}.icon-button{border-radius:var(--radius);width:44px;height:44px;color:var(--muted);cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid}.icon-button:hover{color:var(--foreground);background:var(--secondary)}.brand{color:var(--foreground);align-items:center;gap:11px;text-decoration:none;display:flex}.brand-mark{color:#fff;background:var(--primary);border-radius:50% 50% 50% 14px;place-items:center;width:40px;height:40px;display:grid}.brand>span:last-child{flex-direction:column;display:flex}.brand b{letter-spacing:-.2px;font-size:14px;font-weight:600}.brand small{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin-top:2px;font-size:10px;font-weight:500}.eyebrow{color:var(--primary-hover);letter-spacing:.12em;text-transform:uppercase;font-size:11px;font-weight:600}.auth-layout{grid-template-columns:minmax(400px,.85fr) 1.15fr;min-height:100vh;display:grid}.auth-intro{color:#fff;background:var(--teal-ink);flex-direction:column;justify-content:space-between;min-height:100vh;padding:42px clamp(40px,6vw,88px);display:flex;position:relative;overflow:hidden}.auth-intro:before,.auth-intro:after{content:"";pointer-events:none;border-radius:50%;position:absolute}.auth-intro:before{border:1px solid #ffffff21;width:420px;height:420px;top:-210px;right:-130px;box-shadow:0 0 0 58px #ffffff06,0 0 0 116px #ffffff05}.auth-intro:after{background:#f3e8dc14;width:230px;height:230px;bottom:95px;left:-90px}.auth-intro>*{z-index:1;position:relative}.auth-intro .brand{color:#fff}.auth-intro .brand-mark{color:var(--teal-ink);background:#fff}.auth-intro .brand small{color:#ffffff9e}.auth-intro .eyebrow{color:#ffffffad}.auth-intro h1{color:#fff;max-width:570px;margin:18px 0 30px;font-size:clamp(36px,4vw,56px);line-height:1.08}.auth-intro ul{gap:14px;margin:0;padding:0;list-style:none;display:grid}.auth-intro li{color:#ffffffd1;align-items:center;gap:10px;font-size:15px;display:flex}.auth-intro li svg{color:#a9d9d2;width:19px}.auth-intro>p{color:#ffffff8c;margin:0;font-size:12px}.auth-panel{background:var(--background);place-items:center;padding:32px;display:grid}.auth-card{border:1px solid var(--border);background:var(--card);width:min(480px,100%);box-shadow:var(--shadow-card);border-radius:20px;padding:clamp(22px,4vw,36px)}.auth-card h2{margin-bottom:6px;font-size:28px}.auth-card>p{color:var(--muted);font-size:13px;line-height:1.5}.auth-mobile-brand{margin-bottom:36px;display:none}.form{gap:17px;margin-top:28px;display:grid}.form.form-with-meta{gap:0;margin-top:18px}.form.two-column{grid-template-columns:1fr 1fr;align-items:start}.form .full{grid-column:1/-1}.form label,.form .form-field{color:#3d4d53;align-content:start;gap:8px;font-size:13px;font-weight:500;display:grid}.form .form-field>label{display:block}.form.form-with-meta label,.form.form-with-meta .form-field{gap:4px;font-size:12px}.form .field-footer,.form .field-feedback{align-items:flex-start;gap:3px;display:grid}.form .field-footer{min-height:28px}.form.form-with-meta .field-footer{min-height:18px}.form.form-with-meta .consent,.form.form-with-meta .button.full{margin-top:8px}.form input{border:1px solid var(--border);width:100%;height:48px;color:var(--foreground);background:#fff;border-radius:9px;outline:none;padding:0 14px;transition:border-color .2s,box-shadow .2s}.form.form-with-meta input{border-radius:8px;height:40px;padding:0 12px;font-size:14px}.form.form-with-meta .input-adorned input{padding-right:40px}.form.form-with-meta .input-adorned-toggle{width:32px;height:32px;right:4px}.form.form-with-meta .input-adorned-toggle svg{width:16px;height:16px}.form input:hover{border-color:#d6d0c9}.form input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #2a91891f}.form .input-adorned{display:block;position:relative}.form .input-adorned input{padding-right:46px}.form .input-adorned-toggle{width:36px;height:36px;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:7px;place-items:center;margin:0;padding:0;transition:color .2s,background .2s;display:grid;position:absolute;top:50%;right:6px;transform:translateY(-50%)}.form .input-adorned-toggle:hover{color:var(--foreground);background:var(--secondary)}.form .input-adorned-toggle svg{width:18px;height:18px}.form-error{border:1px solid color-mix(in srgb, var(--destructive) 25%, white);color:#8f3217;background:#fff5f1;border-radius:10px;padding:12px 14px;font-size:13px}.field-error{color:var(--destructive);font-size:11px;font-weight:500;line-height:1.4}.form.form-with-meta .field-error{font-size:10px;line-height:1.3}.field-hint{color:var(--muted);font-size:11px;font-weight:400;line-height:1.4}.form-error:focus-visible{outline-color:color-mix(in srgb, var(--destructive) 55%, transparent)}.form input[aria-invalid=true]{border-color:color-mix(in srgb, var(--destructive) 62%, var(--border))}.form input[aria-invalid=true]:focus{border-color:var(--destructive);box-shadow:0 0 0 3px color-mix(in srgb, var(--destructive) 14%, transparent)}.form-switch{text-align:center;margin:24px 0 0!important;font-size:13px!important}.form-switch a,.panel-heading a{color:var(--primary-hover);text-underline-offset:3px;font-weight:600}.auth-secondary-link{margin-top:16px!important}.auth-secondary-link+.form-switch{margin-top:10px!important}.recovery-notice{border:1px solid color-mix(in srgb, var(--primary) 24%, var(--border));color:var(--teal-ink);background:color-mix(in srgb, var(--sage) 56%, white);border-radius:10px;margin-top:22px;padding:13px 14px;font-size:12px;line-height:1.5}.recovery-inline-status{color:var(--primary-hover);font-size:12px;line-height:1.5}.recovery-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:18px;margin-top:18px;display:flex}.link-button{color:var(--primary-hover);font:inherit;text-underline-offset:3px;cursor:pointer;background:0 0;border:0;padding:2px;font-size:12px;font-weight:600;text-decoration:underline}.link-button:disabled{color:var(--muted);cursor:wait}.recovery-privacy-note{color:var(--muted);text-align:center;line-height:1.5;margin:14px 0 0!important;font-size:10px!important}.recovery-success{text-align:center;justify-items:center;gap:18px;margin-top:28px;display:grid}.recovery-success p{color:var(--muted);margin:0;font-size:13px;line-height:1.55}.recovery-success-icon{width:58px;height:58px;color:var(--success);background:color-mix(in srgb, var(--sage) 72%, white);border-radius:50%;place-items:center;display:grid}.recovery-success-icon svg{width:28px;height:28px}.consent{color:var(--muted);font-size:11px;line-height:1.5}.profile-completion-dialog{border:1px solid var(--border);width:min(620px,100% - 32px);max-height:calc(100vh - 32px);color:var(--foreground);background:var(--card);border-radius:20px;margin:auto;padding:clamp(24px,4vw,38px);overflow:auto;box-shadow:0 28px 80px #1830353d}.profile-completion-dialog::backdrop{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#15363b94}.profile-completion-heading{grid-template-columns:auto 1fr;align-items:start;gap:16px;display:grid}.profile-completion-heading h2{margin:5px 0 8px;font-size:clamp(24px,4vw,30px)}.profile-completion-heading p{color:var(--muted);margin:0;font-size:13px;line-height:1.55}.profile-completion-icon{width:48px;height:48px;color:var(--teal-ink);background:var(--sage);border-radius:13px;place-items:center;display:grid}.profile-completion-icon svg{width:22px;height:22px}.profile-completion-form{grid-template-columns:1fr 1fr;align-items:start}.profile-completion-form .full{grid-column:1/-1}.profile-completion-form label{min-width:0}.profile-completion-actions{justify-content:space-between;gap:12px;padding-top:4px;display:flex}.profile-completion-actions svg{width:16px;height:16px}.profile-completion-placeholder{border:1px solid var(--border);border-radius:var(--radius);background:linear-gradient(110deg, white 30%, var(--secondary) 50%, white 70%);opacity:.55;background-size:250% 100%;min-height:520px;animation:1.8s ease-in-out infinite profile-placeholder}[data-sonner-toaster][data-x-position=right]{right:22px}[data-sonner-toast].app-toast{border-color:var(--border);box-shadow:var(--shadow-popover);border-radius:12px;overflow:hidden}[data-sonner-toast].app-toast[data-styled=true]{padding-right:36px}[data-sonner-toast].app-toast[data-styled=true] [data-close-button]{left:unset;top:10px;right:10px;transform:none}[data-sonner-toast].app-toast:after{content:"";background:var(--primary);transform-origin:0;height:3px;animation:5.5s linear forwards toast-lifetime;position:absolute;bottom:0;left:0;right:0}[data-sonner-toast].app-toast[data-type=error]:after{background:var(--destructive)}[data-sonner-toast].app-toast[data-type=success]:after{background:var(--success)}[data-sonner-toast].app-toast:hover:after{animation-play-state:paused}.skip-link{z-index:100;color:var(--primary-foreground);background:var(--primary-hover);border-radius:10px;padding:10px 14px;font-size:13px;font-weight:600;text-decoration:none;transition:transform .16s;position:fixed;top:12px;left:12px;transform:translateY(calc(-100% - 20px))}.skip-link:focus{transform:translateY(0)}.app-layout{background:var(--background);grid-template-columns:252px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{border-right:1px solid var(--border);background:var(--card);z-index:20;flex-direction:column;height:100vh;padding:28px 18px;display:flex;position:sticky;top:0;overflow-y:auto}.sidebar-top{justify-content:space-between;align-items:center;padding:0 7px 28px;display:flex}.sidebar nav{gap:5px;display:grid}.sidebar nav a,.logout-link{border-radius:var(--radius);min-height:44px;color:var(--muted);cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;padding:0 13px;font-weight:500;text-decoration:none;display:flex}.sidebar nav a:hover{color:var(--teal-ink);background:var(--secondary)}.sidebar nav a.active{color:var(--teal-ink);background:var(--sage)}.logout-link{width:100%;margin-top:auto}.logout-link:hover{color:var(--destructive);background:#fff3ee}.app-content{min-width:0}.app-header{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);z-index:10;background:#fdfcfae0;border-bottom:1px solid #e8e4dfe6;align-items:center;height:76px;padding:0 clamp(24px,4vw,54px);display:flex;position:sticky;top:0}.header-spacer{flex:1}.profile-chip{align-items:center;gap:10px;min-width:0;display:flex}.profile-chip>span{color:#fff;background:var(--primary);border-radius:50%;place-items:center;width:38px;height:38px;font-weight:600;display:grid}.profile-chip div{min-width:0;display:grid}.profile-chip b{overflow-wrap:anywhere;font-size:12px;font-weight:600}.profile-chip small{color:var(--muted);font-size:10px}.page{width:min(1180px,100%);margin:0 auto;padding:48px clamp(24px,5vw,68px) 80px}.page-title{justify-content:space-between;align-items:end;gap:24px;margin-bottom:32px;display:flex}.page-title h1{margin:7px 0 8px;font-size:clamp(30px,4vw,42px);line-height:1.15}.page [data-page-heading]{scroll-margin-top:96px}.page-title p{color:var(--muted);margin:0;line-height:1.5}.visit-card{border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-card);background:#fff;grid-template-columns:auto 1fr auto;align-items:center;gap:28px;padding:26px;display:grid}.visit-date{border-radius:var(--radius);width:104px;height:112px;color:var(--teal-ink);background:var(--sage);flex-direction:column;justify-content:center;align-items:center;display:flex}.visit-date span{font-size:40px;font-weight:600;line-height:1}.visit-date small{text-align:center;margin-top:7px;line-height:1.4}.status-badge{color:#277453;letter-spacing:.07em;text-transform:uppercase;background:#e2f5e9;border-radius:9999px;padding:6px 10px;font-size:10px;font-weight:600;display:inline-block}.status-badge.neutral{color:var(--teal-ink);background:var(--sage)}.visit-main h2{margin:10px 0;font-size:24px}.visit-main p{color:var(--muted);align-items:center;gap:8px;margin:6px 0;font-size:13px;display:flex}.visit-main svg{width:15px;color:var(--primary)}.metric-grid{grid-template-columns:repeat(3,1fr);gap:18px;margin:22px 0;display:grid}.metric-card{border:1px solid var(--border);border-radius:var(--radius);background:#fff;flex-direction:column;padding:24px;display:flex}.metric-card strong{color:var(--teal-ink);font-size:29px;font-weight:600}.metric-card span{color:var(--muted);margin-top:5px;font-size:12px}.content-grid{grid-template-columns:1.35fr .65fr;gap:20px;display:grid}.panel{border:1px solid var(--border);border-radius:var(--radius);background:#fff;padding:26px}.panel h2{margin:6px 0 0;font-size:21px}.panel-heading{justify-content:space-between;align-items:start;gap:16px;display:flex}.timeline-item{gap:14px;margin-top:28px;display:flex}.timeline-dot{background:var(--primary);border-radius:50%;flex:none;width:10px;height:10px;margin-top:5px;box-shadow:0 0 0 5px #2a91891f}.timeline-item p,.timeline-item small{color:var(--muted);font-size:12px}.timeline-item p{margin:6px 0}.accent-panel{color:#fff;background:var(--teal-ink);border-color:#0000}.accent-panel h2{color:#fff}.accent-panel .eyebrow{color:#ffffffa8}.accent-panel p{color:#ffffffb8;line-height:1.6}.data-panel{grid-template-columns:auto 1fr;gap:24px;display:grid}.section-icon{border-radius:var(--radius);width:58px;height:58px;color:var(--teal-ink);background:var(--sage);place-items:center;display:grid}.data-list article{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:20px;min-height:76px;padding:14px 0;display:flex}.data-list article:first-child{padding-top:0}.data-list article:last-child{border-bottom:0}.data-list article>div:first-child{gap:5px;display:grid}.data-list span,.data-list small{color:var(--muted);font-size:12px}.row-meta{align-items:center;gap:8px;display:flex}.mock-note{color:var(--muted);margin:16px 0 0;font-size:11px}.screen-status{min-height:100vh;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:24px;display:flex}.screen-content-state{border:1px solid var(--border);border-radius:var(--radius);min-height:260px;color:var(--muted);text-align:center;background:#fff;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:32px;display:flex}.screen-content-state>svg{width:34px;height:34px;color:var(--primary)}.screen-content-state strong{color:var(--foreground)}.screen-content-state span{font-size:12px}.state-spinner{border:2px solid var(--border);border-top-color:var(--primary);border-radius:50%;width:25px;height:25px;animation:.8s linear infinite spin}.patient-profile-strip{border:1px solid var(--border);border-radius:var(--radius);background:#fff;align-items:center;gap:13px;margin-bottom:20px;padding:18px 20px;display:flex}.patient-profile-strip>span{width:40px;height:40px;color:var(--teal-ink);background:var(--sage);border-radius:10px;place-items:center;display:grid}.patient-profile-strip>span svg{width:18px;height:18px}.patient-profile-strip>div{flex:1;gap:3px;min-width:0;display:grid}.patient-profile-strip small,.patient-profile-strip p{color:var(--muted);font-size:10px}.patient-profile-strip p{margin:0}.patient-profile-strip>b{color:var(--muted);font-size:10px;font-weight:500}.profile-block-state>.state-spinner{background:0 0;width:25px;height:25px}.profile-block-state>svg{width:22px;height:22px;color:var(--primary)}.empty-visit .visit-date svg{width:34px;height:34px}.empty-visit .button svg{width:16px;height:16px}.visit-actions{align-items:center;gap:10px;display:flex}.visit-actions .dashboard-refresh{flex:none}.dashboard-visit-state{min-height:160px}.dashboard-visit-state>.dashboard-block-state,.dashboard-visit-state>.dashboard-block-error{grid-column:1/-1;width:100%}.dashboard-block-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0;display:grid}.dashboard-summary-card{border:1px solid var(--border);border-radius:var(--radius);background:#fff;flex-direction:column;min-width:0;min-height:250px;padding:22px;display:flex}.dashboard-summary-card>header{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;display:grid}.dashboard-summary-card>header small{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;font-size:9px;font-weight:600}.dashboard-summary-card>header h2{margin:3px 0 0;font-size:17px}.dashboard-summary-icon{width:38px;height:38px;color:var(--teal-ink);background:var(--sage);border-radius:10px;place-items:center;display:grid}.dashboard-summary-icon svg{width:18px;height:18px}.dashboard-refresh{border:1px solid var(--border);width:34px;height:34px;color:var(--muted);cursor:pointer;background:#fff;border-radius:9px;place-items:center;padding:0;display:grid}.dashboard-refresh:hover{color:var(--primary-hover);background:var(--secondary)}.dashboard-refresh svg{width:15px;height:15px}.dashboard-summary-content{flex:1;min-height:108px;padding:20px 0 14px}.dashboard-summary-value{color:var(--teal-ink);font-size:32px;font-weight:600;line-height:1;display:block}.dashboard-summary-value.compact{font-size:25px}.dashboard-summary-label{color:var(--muted);margin-top:6px;font-size:11px;display:block}.dashboard-summary-content p{color:var(--muted);overflow-wrap:anywhere;margin:15px 0 0;font-size:10px;line-height:1.5}.dashboard-summary-link{border-top:1px solid var(--border);color:var(--primary-hover);justify-content:space-between;align-items:center;gap:8px;padding-top:13px;font-size:11px;font-weight:600;text-decoration:none;display:flex}.dashboard-summary-link svg{width:14px;height:14px}.dashboard-block-state{min-height:90px;color:var(--muted);text-align:center;justify-content:center;align-items:center;gap:10px;font-size:11px;display:flex}.dashboard-block-state .state-spinner{width:20px;height:20px}.dashboard-block-error{min-height:90px;color:var(--destructive);flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;font-size:11px;line-height:1.5;display:flex}.dashboard-block-error .button{min-height:36px;padding-inline:12px;font-size:10px}.dashboard-block-empty{min-height:90px;color:var(--muted);flex-direction:column;justify-content:center;gap:7px;font-size:10px;line-height:1.5;display:flex}.dashboard-block-empty strong{color:var(--foreground);font-size:13px}.dashboard-services{margin-top:18px;display:grid}.dashboard-services article{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.dashboard-services article:last-child{border-bottom:0}.dashboard-services article>div{gap:3px;min-width:0;display:grid}.dashboard-services b{font-size:12px}.dashboard-services span{color:var(--muted);font-size:10px}.dashboard-services strong{color:var(--primary-hover);white-space:nowrap;font-size:12px}.accent-panel .button svg{width:16px;height:16px}.patient-service-search{border:1px solid var(--border);border-radius:var(--radius);background:#fff;align-items:center;gap:9px;width:min(420px,100%);min-height:44px;margin-bottom:20px;padding:0 13px;display:flex}.patient-service-search:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px #2a91891a}.patient-service-search svg{width:17px;color:var(--muted)}.patient-service-search input{background:0 0;border:0;outline:0;width:100%}.patient-service-grid{grid-template-columns:repeat(2,1fr);gap:16px;display:grid}.patient-service-grid>article{border:1px solid var(--border);border-radius:var(--radius);background:#fff;flex-direction:column;min-height:285px;padding:23px;display:flex}.patient-service-grid>article.flagship-service{border-color:color-mix(in srgb, var(--primary) 38%, var(--border));box-shadow:var(--shadow-card)}.patient-service-heading{justify-content:space-between;align-items:center;gap:12px;min-height:40px;display:flex}.patient-service-heading>span{width:40px;height:40px;color:var(--teal-ink);background:var(--sage);border-radius:10px;place-items:center;display:grid}.patient-service-heading svg{width:18px;height:18px}.patient-service-heading small{color:#745926;background:#fff5d8;border-radius:9999px;padding:5px 8px;font-size:9px;font-weight:600}.patient-service-grid h2{margin:18px 0 8px;font-size:20px}.patient-service-grid p{color:var(--muted);flex:1;font-size:12px;line-height:1.6}.service-meta{color:var(--muted);gap:6px;margin-bottom:18px;font-size:10px;display:grid}.service-meta span{align-items:center;gap:6px;display:flex}.service-meta svg{width:13px;height:13px}.service-footer{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding-top:16px;display:flex}.service-footer strong{color:var(--teal-ink);font-size:17px}.service-footer .button{min-height:38px;padding-inline:14px;font-size:11px}.honest-empty-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:330px;display:flex}.honest-empty-state .section-icon{margin-bottom:16px}.honest-empty-state h2{margin:0 0 8px}.honest-empty-state p{max-width:500px;color:var(--muted);margin:0 0 18px;font-size:12px;line-height:1.6}.data-source-note{color:var(--muted);margin:14px 0 0;font-size:10px}.family-current-banner{border:1px solid color-mix(in srgb, var(--primary) 24%, var(--border));border-radius:var(--radius);background:color-mix(in srgb, var(--sage) 48%, white);align-items:center;gap:14px;margin-bottom:22px;padding:20px 22px;display:flex}.family-current-banner>span,.family-card-icon{width:42px;height:42px;color:var(--teal-ink);background:var(--sage);border-radius:11px;flex:none;place-items:center;display:grid}.family-current-banner>span svg,.family-card-icon svg{width:20px;height:20px}.family-current-banner>div{gap:3px;min-width:0;display:grid}.family-current-banner small,.family-card-heading small{color:var(--muted);letter-spacing:.07em;text-transform:uppercase;font-size:9px;font-weight:600}.family-current-banner strong{overflow-wrap:anywhere;font-size:17px}.family-current-banner p,.family-card-heading p{color:var(--muted);margin:0;font-size:11px;line-height:1.5}.family-status{border:1px solid color-mix(in srgb, var(--success) 28%, var(--border));color:#286849;background:#f0faf4;border-radius:10px;margin-bottom:16px;padding:12px 14px;font-size:12px}.family-section{margin-top:30px}.family-section>.panel-heading{margin-bottom:15px}.family-loading{color:var(--muted);align-items:center;gap:8px;font-size:10px;display:flex}.family-loading .state-spinner{width:17px;height:17px}.family-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.family-profile-card{border:1px solid var(--border);border-radius:var(--radius);background:#fff;flex-direction:column;gap:17px;min-width:0;padding:22px;display:flex}.family-profile-card.current{border-color:color-mix(in srgb, var(--primary) 45%, var(--border));box-shadow:var(--shadow-card)}.family-card-heading{align-items:flex-start;gap:12px;display:flex}.family-card-heading>div{flex:1;min-width:0}.family-card-heading h2{overflow-wrap:anywhere;margin:4px 0 0;font-size:17px}.family-card-heading .status-badge{flex:none}.family-card-actions,.family-list-actions,.family-confirm>div{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.family-card-actions{justify-content:space-between;margin-top:auto}.family-card-actions .button{min-height:38px;font-size:11px}.family-text-action{color:var(--primary-hover);text-underline-offset:3px;cursor:pointer;background:0 0;border:0;padding:5px 0;font-size:11px;font-weight:600;text-decoration:underline}.family-text-action.danger{color:var(--destructive)}.family-text-action:disabled{opacity:.55;cursor:wait}.family-permissions{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.family-permissions li{color:var(--teal-ink);background:var(--secondary);border-radius:9999px;padding:5px 8px;font-size:9px;font-weight:500}.family-confirm{background:#fff5f1;border-radius:10px;padding:13px}.family-confirm p{color:#8f3217;margin:0 0 10px;font-size:11px;line-height:1.5}.family-confirm .button{min-height:36px;padding-inline:12px;font-size:10px}.danger-button{color:#fff;background:var(--destructive)}.family-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:start;gap:18px;margin-top:30px;display:grid}.family-request-panel>p{color:var(--muted);font-size:12px;line-height:1.6}.family-request-form{gap:10px;margin-top:20px;display:grid}.family-request-form>label,.family-request-form legend{color:var(--foreground);font-size:11px;font-weight:600}.family-request-form>input{border:1px solid var(--border);width:100%;height:44px;color:var(--foreground);background:#fff;border-radius:10px;outline:none;padding:0 13px}.family-request-form>input:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent)}.family-request-form fieldset{border:1px solid var(--border);border-radius:10px;gap:10px;margin:5px 0 8px;padding:13px;display:grid}.family-request-form legend{padding:0 5px}.family-request-form fieldset label{color:var(--muted);align-items:center;gap:9px;font-size:11px;display:flex}.family-request-form input[type=checkbox]{width:17px;height:17px;accent-color:var(--primary)}.family-request-form .button{margin-top:3px}.family-legal-note{border-top:1px solid var(--border);align-items:flex-start;gap:8px;padding-top:14px;display:flex;margin:15px 0 0!important;font-size:10px!important}.family-legal-note svg{width:15px;height:15px;color:var(--primary);flex:none}.family-side-stack{gap:18px;display:grid}.family-list{gap:13px;margin-top:15px;display:grid}.family-list>article{border-top:1px solid var(--border);gap:10px;padding-top:13px;display:grid}.family-list>article>div:first-child{gap:3px;display:grid}.family-list strong{font-size:12px}.family-list span{color:var(--muted);font-size:10px}.family-list-actions .button{min-height:34px;padding-inline:11px;font-size:9px}.family-empty{min-height:100px;color:var(--muted);text-align:center;justify-content:center;align-items:center;gap:9px;font-size:11px;display:flex}.family-empty svg{width:20px;height:20px;color:var(--primary)}.family-empty.large{flex-direction:column;min-height:180px}.family-empty.large strong{color:var(--foreground)}.family-empty.large span{font-size:10px}.appointments-section{margin-top:30px}.appointments-section>.panel-heading{margin-bottom:15px}.appointment-list{gap:14px;display:grid}.appointment-card{border:1px solid var(--border);border-radius:var(--radius);background:#fff;grid-template-columns:76px minmax(0,1fr);gap:20px;padding:22px;display:grid}.appointment-date{width:76px;height:76px;color:var(--teal-ink);background:var(--sage);border-radius:15px;flex-direction:column;justify-content:center;align-items:center;display:flex}.appointment-date strong{font-size:30px;line-height:1}.appointment-date span{text-transform:uppercase;margin-top:5px;font-size:10px}.appointment-body{gap:8px;min-width:0;display:grid}.appointment-heading{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.appointment-heading h2{overflow-wrap:anywhere;margin:9px 0 0;font-size:19px}.appointment-heading>strong{color:var(--teal-ink);font-size:20px}.appointment-body>p{color:var(--muted);align-items:center;gap:7px;margin:0;font-size:11px;display:flex}.appointment-body>p svg{width:14px;height:14px;color:var(--primary);flex:none}.appointment-actions{align-items:center;gap:14px;margin-top:7px;display:flex}.appointment-actions .button{min-height:36px;padding-inline:12px;font-size:10px}.appointment-actions .button svg{width:14px;height:14px}.appointment-cancel{background:#fff5f1;border-radius:10px;gap:9px;margin-top:8px;padding:14px;display:grid}.appointment-cancel label{color:#772c17;font-size:11px;font-weight:600}.appointment-cancel textarea{border:1px solid color-mix(in srgb, var(--destructive) 25%, var(--border));resize:vertical;border-radius:9px;outline:none;width:100%;min-height:76px;padding:10px 12px}.appointment-cancel textarea:focus{border-color:var(--destructive);box-shadow:0 0 0 3px color-mix(in srgb, var(--destructive) 12%, transparent)}.appointment-cancel p{color:#8f3217;margin:0;font-size:10px}.appointment-cancel>div{flex-wrap:wrap;gap:9px;display:flex}.appointment-cancel .button{min-height:36px;padding-inline:12px;font-size:10px}.appointment-permission-note{align-items:flex-start;gap:12px;margin-top:20px;display:flex}.appointment-permission-note>svg{width:20px;color:var(--primary);flex:none}.appointment-permission-note strong{font-size:13px}.appointment-permission-note p{color:var(--muted);margin:5px 0 0;font-size:11px;line-height:1.6}.appointment-booking-panel{margin-top:30px}.appointment-form{gap:20px;margin-top:22px;display:grid}.appointment-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.appointment-form-grid label{gap:7px;min-width:0;display:grid}.appointment-form-grid label>span,.appointment-slots legend{color:var(--foreground);font-size:11px;font-weight:600}.appointment-form-grid select,.appointment-form-grid input{border:1px solid var(--border);width:100%;height:44px;color:var(--foreground);background:#fff;border-radius:10px;outline:none;padding:0 12px}.appointment-form-grid select:focus,.appointment-form-grid input:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent)}.appointment-form-grid select:disabled,.appointment-form-grid input:disabled{color:var(--muted);background:var(--secondary)}.appointment-slots{border:1px solid var(--border);border-radius:12px;margin:0;padding:16px}.appointment-slots legend{padding:0 6px}.appointment-slots>p{color:var(--muted);margin:0;font-size:11px}.appointment-slot-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;display:grid}.appointment-slot-grid label{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:9px;gap:4px;min-width:0;padding:11px;display:grid}.appointment-slot-grid label:hover{border-color:color-mix(in srgb, var(--primary) 45%, var(--border))}.appointment-slot-grid label.selected{border-color:var(--primary);background:color-mix(in srgb, var(--sage) 55%, white);box-shadow:0 0 0 2px color-mix(in srgb, var(--primary) 10%, transparent)}.appointment-slot-grid input{opacity:0;pointer-events:none;position:absolute}.appointment-slot-grid label:has(input:focus-visible){outline:2px solid var(--primary);outline-offset:2px}.appointment-slot-grid strong{color:var(--teal-ink);font-size:14px}.appointment-slot-grid span{min-width:0;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.appointment-inline-state{min-height:70px;color:var(--muted);justify-content:center;align-items:center;gap:10px;font-size:11px;display:flex}.appointment-inline-state .state-spinner{width:18px;height:18px}.appointment-confirm-summary{color:var(--teal-ink);background:color-mix(in srgb, var(--sage) 60%, white);border-radius:11px;align-items:flex-start;gap:10px;padding:14px;display:flex}.appointment-confirm-summary>svg{flex:none;width:19px;height:19px}.appointment-confirm-summary>div{gap:4px;display:grid}.appointment-confirm-summary strong{font-size:12px}.appointment-confirm-summary span{color:var(--muted);font-size:10px;line-height:1.5}.appointment-form-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.appointment-empty{min-height:220px}.appointment-empty h3{margin:0;font-size:18px}.appointment-history-list{gap:12px;display:grid}.appointment-history-list>article{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.appointment-history-list h3{margin:9px 0 5px;font-size:16px}.appointment-history-list p{color:var(--muted);margin:0;font-size:10px}.appointment-history-list details{width:min(360px,100%)}.appointment-history-list summary{color:var(--primary-hover);cursor:pointer;font-size:11px;font-weight:600}.appointment-history-list ol{gap:10px;margin:12px 0 0;padding-left:18px;display:grid}.appointment-history-list li{padding-left:4px}.appointment-history-list li strong,.appointment-history-list li span,.appointment-history-list li small{display:block}.appointment-history-list li strong{font-size:10px}.appointment-history-list li span,.appointment-history-list li small{color:var(--muted);margin-top:3px;font-size:9px}.appointment-uncertain{background:#fff9e8;border:1px solid #e3c87d;border-radius:10px;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px;padding:14px;display:flex}.appointment-uncertain strong{font-size:12px}.appointment-uncertain span{min-width:220px;color:var(--muted);flex:1;font-size:10px}.appointment-uncertain .button{min-height:34px;padding-inline:11px;font-size:9px}.backdrop,.mobile-only{display:none}@keyframes spin{to{transform:rotate(360deg)}}@keyframes toast-lifetime{to{transform:scaleX(0)}}@keyframes profile-placeholder{to{background-position-x:-250%}}@media (width<=880px){.auth-layout{grid-template-columns:1fr}.auth-intro{display:none}.auth-mobile-brand{display:block}.app-layout{grid-template-columns:1fr}.sidebar{visibility:hidden;pointer-events:none;width:min(300px,85vw);box-shadow:var(--shadow-popover);transition:transform .2s,visibility 0s linear .2s;position:fixed;left:0;transform:translate(-100%)}.sidebar.open{visibility:visible;pointer-events:auto;transition-delay:0s;transform:translate(0)}.backdrop{z-index:15;background:#1c2a3366;border:0;display:block;position:fixed;inset:0}.mobile-only{display:grid}.visit-card{grid-template-columns:auto 1fr}.visit-card>.button,.visit-card>.visit-actions{grid-column:1/-1}.content-grid,.patient-service-grid,.family-layout{grid-template-columns:1fr}.appointment-slot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=600px){.auth-panel{padding:16px}.auth-card{padding:28px 22px}.form.two-column{grid-template-columns:1fr}.form .full{grid-column:auto}.profile-chip div{max-width:min(180px,100vw - 150px)}.profile-chip b,.profile-chip small{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.family-profile-grid{grid-template-columns:1fr}.family-current-banner{align-items:flex-start}.family-card-actions,.family-list-actions,.family-confirm>div{flex-direction:column;align-items:stretch}.family-card-actions .button,.family-list-actions .button,.family-confirm .button{width:100%}.appointment-card{grid-template-columns:1fr}.appointment-date{flex-direction:row;gap:8px;width:100%;height:68px}.appointment-heading{align-items:flex-start}.appointment-actions,.appointment-cancel>div,.appointment-form-actions{flex-direction:column;align-items:stretch}.appointment-actions .button,.appointment-cancel .button,.appointment-form-actions .button{width:100%}.appointment-form-grid{grid-template-columns:1fr}.appointment-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.appointment-history-list>article{flex-direction:column}.appointment-history-list details{width:100%}.page{padding:34px 18px 60px}.page-title{flex-direction:column;align-items:start}.page-title .button{width:100%}.visit-card{grid-template-columns:1fr;padding:19px}.visit-date{flex-direction:row;gap:12px;width:100%;height:82px}.visit-actions{flex-direction:column;align-items:stretch}.visit-actions .dashboard-refresh{width:100%}.dashboard-block-grid,.metric-grid,.data-panel{grid-template-columns:1fr}.data-list article{align-items:start}.patient-profile-strip{flex-wrap:wrap;align-items:flex-start}.patient-profile-strip>b{width:100%;margin-left:53px}.service-footer{flex-direction:column;align-items:stretch}.service-footer .button{width:100%}.profile-completion-dialog{border-radius:16px;width:calc(100% - 20px);max-height:calc(100vh - 20px);padding:24px 20px}.profile-completion-heading,.profile-completion-form{grid-template-columns:1fr}.profile-completion-form .full{grid-column:auto}.profile-completion-actions{flex-direction:column-reverse}.profile-completion-actions .button{width:100%}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
