:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--ink:#18201f;--muted:#64706c;--line:#d9e0dc;--panel:#fff;--surface:#eef3f0;--surface-strong:#e9f0ed;--green:#1f7a5c;--teal:#146c72;--blue:#315f9c;--rose:#a34d5d;--gold:#966f21;--focus:#102f2a;--nav:#102621;--nav-soft:#ffffff1a;--nav-line:#ffffff24;--shadow:0 18px 45px #18201f14}*{box-sizing:border-box}body{background:var(--surface);min-height:100vh;color:var(--ink);letter-spacing:0;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.app-shell{grid-template-columns:280px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--nav);border-right:1px solid var(--nav-line);flex-direction:column;gap:24px;height:100vh;padding:24px 18px;display:flex;position:sticky;top:0;overflow-y:auto}.brand{align-items:center;gap:12px;display:flex}.brand-mark{width:44px;height:44px;color:var(--focus);background:#edf8f3;border-radius:8px;place-items:center;font-weight:800;display:grid}.brand p,.security-panel h2,.section-heading h2,.module-card h3,.record-title,.metric-value,.data-table th,.work-item h3{margin:0}.brand p{color:#fff;font-size:16px;font-weight:800}.brand span,.eyebrow,.metric-label,.record-meta,.data-table th,.status-note,.access-list,.source-label{color:var(--muted)}.nav-list{gap:6px;display:grid}.nav-button{color:#f4fbf8;text-align:left;background:0 0;border:0;border-radius:8px;grid-template-columns:30px 1fr auto;align-items:center;gap:8px;width:100%;min-height:42px;padding:8px 10px;display:grid}.nav-button:hover,.nav-button.active{background:var(--nav-soft)}.nav-icon{color:#f7fffb;background:#ffffff1f;border-radius:8px;place-items:center;width:28px;height:28px;font-size:12px;font-weight:800;display:grid}.nav-count{color:#bad0c7;font-size:12px}.security-panel{border:1px solid var(--nav-line);background:#ffffff0f;border-radius:8px;margin-top:auto;padding:14px}.security-panel h2{color:#fff;font-size:14px}.security-panel label{color:var(--muted);margin-top:12px;margin-bottom:6px;font-size:12px;font-weight:700;display:block}select,input,textarea{border:1px solid var(--line);width:100%;min-height:40px;color:var(--ink);background:#fff;border-radius:8px;padding:8px 10px}textarea{resize:vertical;min-height:104px}.access-list{color:#c7dad3;gap:6px;margin-top:12px;font-size:12px;display:grid}.access-pill{justify-content:space-between;align-items:center;gap:8px;display:flex}.main-area{background:linear-gradient(180deg, #ffffffbd, #fff0), var(--surface);min-width:0;padding:28px}.topbar{justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px;display:flex}.eyebrow{text-transform:uppercase;margin:0 0 4px;font-size:12px;font-weight:800}h1{margin:0;font-size:32px;line-height:1.15}.topbar-actions{align-items:center;gap:10px;min-width:min(760px,58vw);display:flex}.search-box{flex:1}.practice-switcher{gap:4px;min-width:190px;display:grid}.practice-switcher span{color:var(--muted);text-transform:uppercase;font-size:11px;font-weight:900}.search-box span{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.icon-button{border:1px solid var(--line);width:40px;height:40px;color:var(--ink);background:#fff;border-radius:8px;font-weight:800;position:relative}.alert-strip{color:#35534a;background:#f8fcfa;border:1px solid #c9d9d2;border-radius:8px;align-items:center;gap:10px;margin-bottom:18px;padding:12px 14px;display:flex}.metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px;display:grid}.metric{background:var(--panel);border:1px solid var(--line);min-height:86px;box-shadow:var(--shadow);border-radius:8px;align-items:center;gap:12px;padding:14px;display:flex}.metric-icon{color:#fff;background:var(--green);border-radius:8px;place-items:center;width:36px;height:36px;font-weight:900;display:grid}.metric-value{overflow-wrap:anywhere;font-size:26px;font-weight:850}.metric-label{font-size:13px}.content-grid{grid-template-columns:minmax(0,1.45fr) minmax(320px,.8fr);gap:18px;display:grid}.full-grid{gap:18px;display:grid}.panel{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px;overflow:hidden}.panel-inner{padding:18px}.section-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;padding:16px 18px;display:flex}.section-heading h2{font-size:18px}.section-actions{align-items:center;gap:8px;display:flex}.button{border:1px solid var(--line);min-height:38px;color:var(--ink);background:#fff;border-radius:8px;justify-content:center;align-items:center;padding:8px 12px;font-weight:750;display:inline-flex}.button.primary{background:var(--focus);color:#fff;border-color:var(--focus)}.button.disabled{cursor:not-allowed;opacity:.65}.button.warning{color:#72520d;background:#fff5da;border-color:#ead59b}.record-list,.module-grid,.work-list,.form-grid{gap:12px;display:grid}.module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.module-card,.record-card,.work-item{border:1px solid var(--line);background:#fff;border-radius:8px;padding:14px}.module-card{gap:10px;min-height:142px;display:grid}.module-card h3,.work-item h3{font-size:16px}.record-card{gap:10px;display:grid}.record-row,.record-top,.assignment-row,.timeline-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.record-title{font-weight:850}.record-meta{font-size:13px}.tag-row{flex-wrap:wrap;gap:6px;display:flex}.tag{background:var(--surface-strong);min-height:24px;color:var(--ink);border-radius:999px;align-items:center;padding:3px 9px;font-size:12px;font-weight:800;display:inline-flex}.tag.green{color:#155b43;background:#dff2e8}.tag.blue{color:#254c81;background:#e0ebfb}.tag.rose{color:#793443;background:#f7e1e7}.tag.gold{color:#70500d;background:#fff0c4}.tag.gray{color:#4e5955;background:#e9ecea}.progress{background:#e7ece9;border-radius:999px;height:8px;overflow:hidden}.progress span{background:var(--green);height:100%;display:block}.data-table{border-collapse:collapse;width:100%}.data-table th,.data-table td{border-bottom:1px solid var(--line);text-align:left;vertical-align:top;padding:12px 10px;font-size:14px}.data-table th{text-transform:uppercase;font-size:12px}.data-table tr:last-child td{border-bottom:0}.split-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;display:grid}.source-list{gap:10px;display:grid}.source-item{border-left:4px solid var(--teal);background:#f8fbfa;border-radius:0 8px 8px 0;padding:10px 12px}.source-label{margin-bottom:3px;font-size:12px;display:block}.status-note{font-size:13px;line-height:1.5}.timeline{gap:10px;display:grid}.timeline-row{border-bottom:1px solid var(--line);align-items:flex-start;padding-bottom:10px}.timeline-row:last-child{border-bottom:0;padding-bottom:0}.timeline-date{min-width:86px;color:var(--blue);font-weight:850}.empty-state{color:var(--muted);padding:24px}.empty-state strong{color:var(--ink);margin-bottom:6px;display:block}.empty-state p{margin:0;line-height:1.5}.sidebar .brand span,.sidebar .status-note,.sidebar .access-list{color:#bdd0ca}.sidebar .button{border-color:var(--nav-line);color:#fff;background:#ffffff17}.button.full{width:100%;margin-top:12px}.button.ghost{background:0 0}.notification-button{overflow:visible}.notification-badge{background:var(--rose);color:#fff;border:2px solid #fff;border-radius:999px;place-items:center;min-width:20px;height:20px;font-size:11px;font-weight:900;display:grid;position:absolute;top:-6px;right:-6px}.user-card{align-items:center;gap:10px;margin-top:12px;display:flex}.user-card strong,.user-card span{display:block}.user-card strong{color:#fff}.user-card span{color:#bdd0ca;font-size:12px}.user-avatar{width:38px;height:38px;color:var(--focus);background:#e9f6f0;border-radius:8px;flex:none;place-items:center;font-weight:900;display:grid}.login-panel{grid-template-columns:minmax(280px,.72fr) minmax(0,1.2fr);align-items:start;gap:22px;min-height:calc(100vh - 190px);display:grid}.login-copy,.login-card{border:1px solid var(--line);box-shadow:var(--shadow);background:#fff;border-radius:8px}.login-copy{padding:26px}.login-copy h2{margin:0 0 10px;font-size:30px;line-height:1.15}.login-copy p{color:var(--muted);line-height:1.55}.login-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.login-card{text-align:left;min-height:140px;color:var(--ink);gap:8px;padding:16px;display:grid}.login-card:hover{border-color:#99bbb0;transform:translateY(-1px)}.login-card strong,.login-card span,.login-card small{display:block}.login-card span,.login-card small{color:var(--muted)}.department-grid{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.department-card{border:1px solid var(--line);text-align:left;min-height:150px;color:var(--ink);background:#fff;border-radius:8px;gap:8px;padding:16px;display:grid}.department-card:hover{border-color:#9ec1b6;box-shadow:0 14px 28px #18201f14}.department-card.static-card{cursor:default}.department-card.static-card:hover{border-color:var(--line);box-shadow:none}.department-card span{color:var(--teal);text-transform:uppercase;font-size:12px;font-weight:900}.department-card strong{font-size:18px}.department-card p,.message-card p{color:var(--muted);margin:0;line-height:1.45}.dashboard-grid{grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr)}.therapist-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.therapist-card{border:1px solid var(--line);background:#fff;border-radius:8px;gap:12px;padding:16px;display:grid}.segmented-header{border:1px solid var(--line);box-shadow:var(--shadow);background:#fff;border-radius:8px;justify-content:space-between;align-items:center;gap:14px;padding:18px;display:flex}.segmented-header h2{margin:0;font-size:22px}.finance-band{border-left:5px solid var(--teal)}.message-layout{grid-template-columns:minmax(0,1.1fr) minmax(320px,.8fr);gap:18px;display:grid}.user-management-grid{grid-template-columns:minmax(300px,.8fr) minmax(0,1.4fr)}.user-directory{gap:8px;display:grid}.user-list-item{border:1px solid var(--line);background:#fff;border-radius:8px;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;display:grid}.user-list-item:hover,.user-list-item.active{background:#f4faf7;border-color:#8ab7aa}.user-list-item strong,.user-list-item small{display:block}.user-list-item small{color:var(--muted);overflow-wrap:anywhere;font-size:12px}.compact-heading{border-top:1px solid var(--line)}.user-profile-stack{gap:18px;display:grid}.profile-form{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-form .button{grid-column:1/-1}.profile-form label:has(textarea){grid-column:1/-1}.profile-block{border-top:1px solid var(--line);padding-top:18px}.profile-block-heading{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px;display:flex}.message-list{gap:12px;display:grid}.recipient-picker{gap:14px;display:grid}.recipient-section{gap:8px;display:grid}.recipient-section-title{color:var(--muted);text-transform:uppercase;font-size:12px;font-weight:900}.recipient-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;display:grid}.recipient-user{align-items:flex-start}.recipient-user strong,.recipient-user small{display:block}.recipient-user small{color:var(--muted);overflow-wrap:anywhere;font-size:12px;font-weight:650}.message-card{border:1px solid var(--line);background:#fff;border-radius:8px;gap:10px;padding:14px;display:grid}.message-card.unread{background:#fff8fa;border-color:#d89aaa}.read-status{border-top:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:8px;padding-top:10px;display:flex}.read-status p{flex:100%}.task-edit-panel{border-top:1px solid var(--line);padding-top:10px}.task-edit-panel summary{color:var(--teal);cursor:pointer;font-size:13px;font-weight:850}.compose-form{gap:14px;display:grid}.compose-form label{color:var(--muted);gap:6px;font-size:13px;font-weight:800;display:grid}.compose-form .checkbox-row,.checkbox-row{color:var(--ink);align-items:center;gap:8px;font-size:14px;font-weight:750;display:flex}.checkbox-row input{width:auto}.field-label{color:var(--muted);margin-bottom:8px;font-size:13px;font-weight:800;display:block}.clinic-checklist{gap:8px;display:grid}.permission-checklist{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;display:grid}.compact-form{gap:12px;margin-top:12px}.notification-stack{z-index:50;gap:12px;width:min(360px,100vw - 36px);display:grid;position:fixed;top:18px;right:18px}.notification-toast{background:#fff;border:1px solid #b7cdc5;border-radius:8px;gap:10px;padding:16px;display:grid;box-shadow:0 18px 45px #18201f2e}.notification-toast strong{font-size:16px}.notification-toast p{color:var(--muted);margin:0;line-height:1.45}.form-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;display:grid}.locked-panel{background:#f8faf9;border-style:dashed}.pending-shell{place-items:center;min-height:100vh;padding:24px;display:grid}.pending-card{width:min(620px,100%);padding:28px}.pending-card h1{margin-bottom:12px}.pending-card p{color:var(--muted);line-height:1.55}.inline-form{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.inline-form select,.inline-form input{width:auto;min-width:120px}.login-mode .alert-strip{display:none}@media (width<=1100px){.app-shell{grid-template-columns:230px minmax(0,1fr)}.metrics-grid,.module-grid,.department-grid,.therapist-grid,.login-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid,.split-panel,.dashboard-grid,.message-layout,.user-management-grid,.login-panel{grid-template-columns:1fr}}@media (width<=760px){.app-shell{flex-direction:column;display:flex}.sidebar{order:2;height:auto;padding:16px;position:static}.main-area{order:1;padding:16px}.topbar{display:grid}.topbar-actions{flex-wrap:wrap;width:100%;min-width:0}.practice-switcher,.search-box{flex:100%}.metrics-grid,.module-grid,.department-grid,.therapist-grid,.login-grid,.profile-form,.recipient-grid,.permission-checklist{grid-template-columns:1fr}h1{font-size:26px}.alert-strip,.record-row,.record-top,.assignment-row,.segmented-header,.form-row{flex-direction:column;align-items:flex-start}.form-row{grid-template-columns:1fr;width:100%;display:grid}}
