.workspace{--workspace-header-height:72px;display:grid;grid-template:var(--workspace-header-height) minmax(0,1fr) /238px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;inset-block-start:0;grid-area:1/1/3/2;display:flex;flex-direction:column;height:100dvh;border-inline-end:1px solid var(--line-subtle);background:var(--surface-warm)}.sidebar-brand{display:flex;align-items:center;min-height:72px;padding-inline:var(--space-5);border-bottom:1px solid var(--line-subtle)}.sidebar-content{display:flex;flex:1 1;flex-direction:column;gap:var(--space-5);min-height:0;padding:var(--space-5) var(--space-4) var(--space-4);overflow-y:auto}.workspace-switch{display:flex;align-items:center;gap:var(--space-3);min-height:62px;padding:9px 11px;border:1px solid var(--line-subtle);border-radius:14px;background:var(--color-canvas)}.workspace-avatar{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border-radius:9px;background:var(--color-soft);font-size:.72rem;font-weight:800}.workspace-switch-text{min-width:0;width:100%}.workspace-switch-text select,.workspace-switch-text small,.workspace-switch-text strong{display:block}.workspace-switch-text small{color:var(--color-muted);font-size:.67rem;font-weight:650}.workspace-switch-text select,.workspace-switch-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;font-weight:750}.workspace-switch-text select{width:100%;min-height:var(--control-min-height);margin-block:-8px -5px;padding-inline-start:0;border:0;border-radius:var(--radius-control);background:transparent}.workspace-nav{display:grid;gap:var(--space-1)}.nav-group>p{margin:0 0 var(--space-2) 11px;color:var(--color-muted);font-size:.71rem;font-weight:750;letter-spacing:.025em}.workspace-nav-link{display:flex;align-items:center;gap:11px;min-height:var(--control-min-height);padding:8px 11px;border-radius:var(--radius-control);color:var(--color-ink);font-size:.83rem;font-weight:650;line-height:1.3;text-decoration:none;transition:background-color var(--duration-settle) ease,color var(--duration-settle) ease}.workspace-nav-link:hover{background:var(--color-canvas)}.workspace-nav-link[aria-current=page]{color:var(--color-primary);background:var(--surface-primary);font-weight:800}.sidebar-footer{margin-block-start:auto;padding-block-start:var(--space-3);border-block-start:1px solid var(--line-subtle)}.workspace-header{position:sticky;z-index:2;inset-block-start:0;grid-area:1/2/2/3;display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);min-width:0;padding-inline:clamp(24px,3.5vw,48px);border-block-end:1px solid var(--line-subtle);background:var(--surface-warm)}.mobile-brand{display:none}.header-path{display:flex;align-items:center;gap:var(--space-2);min-width:0;color:var(--color-muted);font-size:.83rem}.header-path span,.header-path strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-path strong{flex-shrink:0;color:var(--color-ink)}.header-actions{gap:var(--space-3);min-width:0}.credits-link,.header-actions{display:flex;align-items:center}.credits-link{gap:var(--space-2);min-height:var(--control-min-height);padding:5px var(--space-3);border-radius:var(--radius-control);background:var(--color-soft);font-size:.77rem;font-weight:750;text-decoration:none;white-space:nowrap}.credits-link:hover{background:#d5e6ee}.account-menu{position:relative;min-width:0}.account-trigger{display:flex;align-items:center;gap:var(--space-2);min-height:var(--control-min-height);padding:3px 6px;border-radius:var(--radius-control);font-size:.8rem;font-weight:750;list-style:none}.account-trigger::-webkit-details-marker{display:none}.account-menu[open]>.account-trigger,.account-trigger:hover{background:var(--color-canvas)}.account-name{overflow:hidden;max-width:135px;text-overflow:ellipsis;white-space:nowrap}.avatar{display:grid;align-items:center;justify-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:50%;background:var(--surface-primary);color:var(--color-primary);font-size:.73rem;font-weight:800}.account-panel{position:absolute;inset:calc(100% + 7px) 0 auto auto;width:min(260px,calc(100vw - 32px));padding:var(--space-2);border:1px solid var(--line-subtle);border-radius:14px;background:var(--color-surface);box-shadow:0 12px 32px rgb(66 42 41/13%)}.account-identity{display:grid;gap:2px;padding:8px 12px 12px;border-bottom:1px solid var(--line-subtle);margin-bottom:var(--space-1);overflow-wrap:anywhere}.account-identity strong{font-size:.9rem}.account-identity small{color:var(--color-muted);font-size:.78rem}.account-panel .button{justify-content:flex-start;width:100%;padding-inline:12px}.workspace-main{grid-area:2/2;min-width:0;padding:var(--space-7) clamp(24px,3.5vw,48px) var(--space-8)}.workspace-content{max-width:1240px;margin-inline:auto}.workspace-fallback{max-width:560px;padding:var(--space-5);margin:min(12vh,96px) auto}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-5);margin-bottom:var(--space-6)}.page-heading h1{font-size:clamp(2rem,3.9vw,2.8rem);font-weight:800;letter-spacing:-.062em;overflow-wrap:anywhere}.page-heading p{margin-block-start:var(--space-2);color:var(--color-muted)}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-2)}.actions>.button{flex:0 0 auto}.back-link{margin:-8px 0 var(--space-4) -12px;padding-inline:12px}.notes-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,33%);align-items:start;gap:var(--space-5)}.card-heading{display:flex;align-items:center;gap:var(--space-2);min-height:68px;padding:var(--space-4) var(--space-5);border-block-end:1px solid var(--line-subtle)}.card-heading svg{color:var(--color-primary)}.card-heading h2{font-size:1.02rem;font-weight:800}.empty-state{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:var(--space-2);min-height:252px;padding:var(--space-7) var(--space-5);text-align:center}.empty-state-icon,.feature-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:15px;background:var(--color-soft);color:var(--color-ink)}.empty-state-icon{margin-block-end:var(--space-3)}.empty-state h2{font-size:clamp(1.12rem,2vw,1.4rem)}.empty-state p{max-width:40ch;color:var(--color-muted);font-size:.9rem}.empty-state .actions{justify-content:center;margin-block-start:var(--space-3)}.notes-empty{min-height:360px}.notes-empty .empty-state-icon{width:76px;height:76px;border:8px solid #f2f7fa;border-radius:24px;outline:1px solid var(--color-soft)}.notes-empty .empty-state-icon svg{width:27px;height:27px}.setup-card{padding:var(--space-5);border:1px solid #cedfe8;border-radius:var(--radius-brand);background:var(--color-soft)}.setup-mark{width:27px;gap:5px;margin-block:2px var(--space-5)}.setup-mark:after,.setup-mark:before{height:5px}.setup-card h2{font-size:clamp(1.25rem,2.05vw,1.72rem);font-weight:800;letter-spacing:-.05em}.setup-card p{max-width:30ch;margin-block:var(--space-2) var(--space-4);font-size:.88rem}.setup-links{display:grid}.setup-links a{display:flex;align-items:center;gap:var(--space-2);min-height:var(--control-min-height);padding-block:8px;border-block-start:1px solid #c6dbe5;font-size:.83rem;font-weight:750;text-decoration:none}.setup-links a:hover{color:var(--color-primary)}.setup-links a span{flex:1 1}.loading-state{display:flex;align-items:center;justify-content:center;gap:var(--space-3);min-height:140px;padding:var(--space-5);color:var(--color-muted)}.loading-dot{width:10px;height:10px;border-radius:50%;background:var(--color-primary)}.notice{display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-3) var(--space-4);border:1px solid #eacbd0;border-radius:var(--radius-control);background:var(--status-error-surface);color:var(--status-error);font-size:.87rem;text-align:start}.notice>svg{flex-shrink:0;margin-block-start:2px}.notice>div{min-inline-size:0;overflow-wrap:anywhere}.dialog,.mobile-menu{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line-subtle);border-radius:var(--radius-brand);background:var(--color-surface);color:var(--color-ink);box-shadow:0 18px 54px rgb(66 42 41/16%)}.dialog{width:440px;padding:var(--space-5)}.dialog::backdrop,.mobile-menu::backdrop{background:rgb(66 42 41/36%)}.dialog h2{font-size:1.25rem}.dialog p{margin-block:var(--space-3) var(--space-5);color:var(--color-muted);font-size:.92rem}.dialog .actions{justify-content:flex-end}.dialog .notice{margin-bottom:var(--space-4)}.mobile-menu{inset:0 auto 0 0;width:286px;max-width:calc(100vw - 42px);height:100dvh;max-height:100dvh;margin:0;border-width:0 1px 0 0;border-radius:0;background:var(--surface-warm)}.mobile-menu[open]{display:flex;flex-direction:column}.mobile-menu-header{display:flex;align-items:center;justify-content:space-between;min-height:66px;padding-inline:var(--space-4);border-bottom:1px solid var(--line-subtle)}.help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-5)}.help-card{padding:var(--space-5)}.help-card h2{margin-block-start:var(--space-4);font-size:1.3rem}.help-card p{margin-block:var(--space-2) var(--space-3);color:var(--color-muted);font-size:.92rem}.block-link{display:inline-flex;align-items:center;gap:var(--space-2);min-height:var(--control-min-height);color:var(--color-primary);font-size:.88rem;font-weight:750}@media (max-width:1040px){.account-name{display:none}.notes-layout{grid-template-columns:minmax(0,1fr) minmax(225px,36%);gap:var(--space-4)}}@media (max-width:840px){.workspace{--workspace-header-height:64px;grid-template:var(--workspace-header-height) minmax(0,1fr) /minmax(0,1fr)}.header-path,.sidebar{display:none}.workspace-header,.workspace-main{grid-column:1}.workspace-header{padding-inline:var(--space-4)}.workspace-main{padding-block-start:var(--space-6)}.mobile-brand{display:flex;align-items:center;gap:var(--space-2)}.mobile-brand .button{margin-inline-start:-7px}}@media (max-width:596px){.workspace-main{padding-inline:var(--space-4)}.header-actions,.workspace-header{gap:var(--space-2)}.credits-link{justify-content:center;min-inline-size:var(--control-min-height);padding-inline:var(--space-2)}.credits-text{display:none}.page-heading{align-items:flex-start;flex-direction:column;gap:var(--space-4);margin-bottom:var(--space-5)}.help-grid,.notes-layout{grid-template-columns:minmax(0,1fr)}.notes-empty{min-height:264px}.card-heading,.help-card,.setup-card{padding-inline:var(--space-4)}}@media (max-width:360px){.workspace-header{padding-inline:var(--space-3)}.header-actions,.mobile-brand{gap:var(--space-1)}.mobile-brand .brand{gap:var(--space-1);font-size:1.15rem}.account-trigger>svg{display:none}}.field{display:grid;gap:var(--space-2);min-width:0}.field>span,.form-section legend,.type-fieldset legend{font-size:.89rem;font-weight:750}.field-hint{color:var(--color-muted);font-size:.82rem}.check-row{display:flex;align-items:center;gap:var(--space-2);min-height:var(--control-min-height);width:fit-content;font-size:.9rem;font-weight:700;cursor:pointer}.check-row input{width:19px;height:19px;margin:0;accent-color:var(--color-primary)}.workspace-main :is([id],a,button,input,select,textarea,summary,[contenteditable]){scroll-margin-block-start:calc(var(--workspace-header-height) + var(--workspace-scroll-offset, 0px) + var(--space-2))}.directory-tools{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--line-subtle)}.segment-control{display:flex;flex-wrap:wrap;gap:var(--space-1);padding:3px;border:1px solid var(--line-subtle);border-radius:12px;background:var(--surface-warm)}.segment-control button{min-height:var(--control-min-height);padding:6px var(--space-3);border:1px solid transparent;border-radius:var(--radius-control);background:transparent;color:var(--color-muted);font-size:.83rem;font-weight:750}.segment-control button[aria-pressed=true]{border-color:var(--line-subtle);background:var(--color-surface);color:var(--color-primary);box-shadow:var(--shadow-surface)}.segment-control button:hover{color:var(--color-primary)}.search-control{position:relative;display:block;width:100%}.directory-tools .search-control{width:min(100%,260px)}.search-control svg{position:absolute;inset:50% auto auto 12px;transform:translateY(-50%);color:var(--color-muted);pointer-events:none}.search-control .control{padding-inline-start:36px}.directory-card .loading-state{border:0;box-shadow:none}.directory-list ul,.member-list{padding:0;list-style:none}.directory-list-header,.directory-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,20%) minmax(114px,21%) 18px;align-items:center;gap:var(--space-3);padding-inline:var(--space-5)}.directory-list-header{min-height:42px;background:var(--surface-warm);color:var(--color-muted);font-size:.75rem;font-weight:750}.directory-row{min-height:66px;padding-block:var(--space-2);border-top:1px solid var(--line-subtle);text-decoration:none}.directory-row:hover{background:var(--surface-warm)}.directory-row:focus-visible{position:relative;z-index:1;outline-offset:-3px}.directory-list li:last-child .directory-row{border-radius:0 0 var(--radius-brand) var(--radius-brand)}.directory-name{display:flex;align-items:center;gap:var(--space-3);min-width:0;overflow-wrap:anywhere}.directory-name strong{font-size:.94rem}.directory-status,.directory-type{color:var(--color-muted);font-size:.82rem}.directory-row>svg{color:var(--color-muted)}.avatar--child,.avatar--group{background:var(--color-soft);color:var(--color-ink)}.avatar--family{background:var(--status-success-surface);color:var(--status-success)}.avatar--couple{background:#fcf0db;color:#82540f}.load-more{display:flex;justify-content:center;padding:var(--space-3) var(--space-5);border-top:1px solid var(--line-subtle)}.form-page{max-width:820px}.form-body{width:100%;display:grid;gap:var(--space-5);padding:var(--space-5)}.type-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--space-2);margin-top:var(--space-2)}.type-option{position:relative;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--space-1);min-height:72px;padding:var(--space-2);border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--color-surface);font-size:.85rem;font-weight:700;text-align:center;cursor:pointer}.type-option>svg:first-of-type{margin-inline-end:var(--space-1)}.type-option:has(input:checked){border-color:var(--color-primary);background:var(--surface-primary);color:var(--color-primary);box-shadow:inset 0 0 0 1px var(--color-primary)}.type-option:has(input:focus-visible){outline:2px solid var(--color-primary);outline-offset:3px}.type-option:has(input:disabled){border-color:var(--line-subtle);background:var(--surface-warm);color:var(--color-muted);cursor:not-allowed}.type-fieldset .field-hint{margin-top:var(--space-2)}.form-section{display:grid;gap:var(--space-4);padding-block-start:var(--space-5);border-top:1px solid var(--line-subtle)}.form-section h2{font-size:1.15rem}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4)}.optional{margin-inline-start:var(--space-1);color:var(--color-muted);font-size:.75rem;font-weight:550}.diagnoses legend{margin-bottom:var(--space-2)}.diagnosis-row,.member-list li{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}.diagnosis-row+.diagnosis-row{margin-block-start:var(--space-2)}.inline-action{margin-inline-start:-12px;padding-inline:12px}.diagnosis-row+.inline-action{margin-block-start:var(--space-2)}.form-footer{display:grid;gap:var(--space-3);padding:var(--space-4) var(--space-5);border-top:1px solid var(--line-subtle);border-radius:0 0 var(--radius-brand) var(--radius-brand);background:var(--surface-warm)}.form-footer .actions{justify-content:flex-end}.member-picker-heading{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-2)}.member-picker-heading h3{font-size:1rem}.member-picker-heading p{font-size:.78rem}.member-picker{padding:var(--space-3);margin-block-start:var(--space-3);border:1px solid var(--line-subtle);border-radius:var(--radius-control);background:var(--surface-warm)}.member-list{max-height:240px;overflow-y:auto}.member-list li{min-height:48px;padding:2px 4px 2px var(--space-2);word-break:break-word}.member-picker li{border-bottom:1px solid var(--line-subtle)}.member-list li small,.member-list li strong{display:block}.member-list li strong{font-size:.85rem}.member-list li small{color:var(--color-muted);font-size:.72rem}.member-list--chosen{display:flex;flex-wrap:wrap;gap:var(--space-2);max-height:none;margin-block-start:var(--space-3);overflow:visible}.member-list--chosen li{border-radius:var(--radius-control);background:var(--color-soft);font-size:.82rem;font-weight:750}.member-picker-message{padding:var(--space-3) var(--space-2) 0;font-size:.83rem}.member-load-more{margin-block-start:var(--space-2)}.profile-heading{align-items:center}.profile-identity{display:flex;align-items:flex-start;gap:var(--space-4);min-width:0}.profile-identity>div{min-width:0}.profile-avatar{width:60px;height:60px;margin-block-start:2px;font-size:1rem}.profile-tags{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-2)}.tag{display:inline-flex;align-items:center;gap:var(--space-1);padding:var(--space-1) var(--space-2);border-radius:100px;background:var(--surface-primary);color:var(--color-ink);font-size:.73rem;font-weight:750}.tag--active{background:var(--status-success-surface);color:var(--status-success)}.tag--risk{background:var(--status-warning-surface);color:var(--status-warning)}.profile-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,32%);align-items:start;gap:var(--space-5)}.profile-details{display:grid;gap:var(--space-4)}.detail-card{padding:var(--space-5);overflow-wrap:anywhere}.detail-card h2{font-size:1.18rem}.detail-card>p{margin-block-start:var(--space-2);font-size:.91rem}.detail-list{display:grid;gap:var(--space-3);margin-top:var(--space-4)}.detail-list dt{color:var(--color-muted);font-size:.79rem;font-weight:750}.preserve-lines{white-space:pre-wrap}.participant-details{padding-block-start:var(--space-4);margin-block-start:var(--space-4);border-top:1px solid var(--line-subtle)}.participant-details h3{display:flex;align-items:center;gap:var(--space-2);font-size:.96rem}.detail-list ul,.participant-details ul{padding-inline-start:20px}.participant-details ul{margin-block-start:var(--space-2)}.profile-notes{border-color:#cedfe8;background:var(--color-soft)}.profile-notes .feature-icon{margin-bottom:var(--space-3);background:var(--color-surface)}.profile-notes .block-link{margin-top:var(--space-2)}@media (max-width:1040px){.profile-heading{align-items:flex-start}.profile-heading,.type-option{flex-direction:column}}@media (max-width:596px){.directory-tools{align-items:flex-start;flex-direction:column}.directory-tools .search-control{width:100%}.directory-list-header{display:none}.directory-row{grid-template-columns:minmax(0,1fr) auto 18px;gap:2px var(--space-2);padding-block:var(--space-2)}.directory-name{grid-column:1/3}.directory-type{grid-area:2/1;margin-inline-start:46px}.directory-status{grid-area:2/2}.directory-row>svg{grid-area:1/3/3}.detail-card,.directory-row,.directory-tools,.form-body,.form-footer{padding-inline:var(--space-4)}.type-options{grid-template-columns:repeat(3,minmax(0,1fr))}.field-grid,.profile-grid{grid-template-columns:minmax(0,1fr)}.profile-avatar{width:48px;height:48px}}.client-export-fields,.client-export-form{display:grid;gap:var(--space-3)}.client-export-form{margin-block-start:var(--space-3)}.client-export-dates{display:grid;gap:var(--space-2);grid-template-columns:repeat(2,minmax(0,1fr))}@media (max-width:430px){.client-export-dates{grid-template-columns:minmax(0,1fr)}}.directory-meta{display:block;font-weight:400}.visit-history{padding-inline-start:1.25rem}.visit-history li{margin-block:.5rem}.chart-context-dialog{width:min(42rem,calc(100vw - 2rem))}.chart-context-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-2)}.chart-context-dialog .detail-list{margin-block-start:var(--space-3)}.chart-context-dialog .preserve-lines{overflow-wrap:anywhere}.directory-order-note{padding:0 var(--space-4) var(--space-3)}.dialog.client-create-dialog{width:min(720px,calc(100vw - 32px))}.client-create-dialog>h2{margin-bottom:var(--space-4)}.client-create-dialog .client-form-card{margin:0}