:root{--ink:#142b28;--muted:#72817d;--line:#e5ebe7;--paper:#f6f8f6;--surface:#fff;--green:#1f6b58;--green-dark:#123b35;--green-soft:#eaf3ef;--mint:#cce5d7;--amber:#a96719;--amber-soft:#fff5e8;--red:#ad4c47;--red-soft:#fff0ee;--blue:#386b8b;--blue-soft:#edf5fa;--shadow:0 14px 38px rgba(22,53,44,.08);--radius:18px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}html,body,#app{min-height:100%;margin:0}body{background:var(--paper);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.boot-screen{min-height:100vh;display:grid;place-content:center;justify-items:center;color:var(--muted);gap:12px}.brand-mark{width:42px;height:42px;border-radius:13px;background:var(--green-dark);color:#fff;display:grid;place-items:center;font:800 23px system-ui}
.app-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.sidebar{background:var(--green-dark);color:#eaf4ef;display:flex;flex-direction:column;padding:25px 16px 18px;position:sticky;top:0;height:100vh;z-index:10}.brand{display:flex;align-items:center;gap:11px;padding:0 10px 29px}.brand .brand-mark{width:38px;height:38px;border-radius:12px;background:#e8f3ed;color:var(--green-dark);font-size:20px}.brand-name{font:800 18px system-ui;letter-spacing:-.55px}.brand-tag{display:block;font-size:10px;color:#a9c5b9;letter-spacing:.09em;text-transform:uppercase;margin-top:2px}.nav-label{font-size:10px;color:#8eaea1;text-transform:uppercase;letter-spacing:.14em;padding:0 12px 10px}.nav-list{display:grid;gap:4px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#b8cec4;text-align:left;padding:11px 12px;border-radius:11px;font-weight:600;transition:.16s}.nav-item:hover{background:rgba(255,255,255,.08);color:#fff}.nav-item.active{background:#e9f3ed;color:var(--green-dark)}.nav-item svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.nav-spacer{flex:1}.side-foot{padding:16px 10px 0;border-top:1px solid rgba(255,255,255,.13)}.facility-mini{display:flex;gap:10px;align-items:center;padding:9px 0 12px}.facility-avatar{width:34px;height:34px;border-radius:10px;background:#28594e;color:#d9eee4;display:grid;place-items:center;font-weight:700}.facility-mini strong{display:block;font-size:12px}.facility-mini span{display:block;font-size:10px;color:#a4bdb2;margin-top:3px}.privacy-mini{font-size:10px;color:#9bb7aa;line-height:1.5}.main-column{min-width:0}.topbar{height:76px;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;position:sticky;top:0;z-index:8}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb strong{color:var(--ink);font-weight:700}.top-actions{display:flex;align-items:center;gap:12px}.icon-button{border:1px solid var(--line);background:#fff;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:#4c625b;position:relative}.icon-button svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.avatar{width:35px;height:35px;border-radius:50%;background:#d8e9df;color:var(--green-dark);display:grid;place-items:center;font-weight:700;font-size:12px}.user-chip{display:flex;align-items:center;gap:9px;padding-left:5px}.user-chip strong{font-size:12px;display:block}.user-chip small{font-size:10px;color:var(--muted);display:block;margin-top:2px}.content{max-width:1440px;margin:0 auto;padding:32px 36px 56px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:25px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:var(--green);font-weight:700;margin:0 0 8px}.page-head h1{font:800 27px/1.18 system-ui;margin:0;letter-spacing:-.9px;color:#172f2a}.page-head p{margin:8px 0 0;color:var(--muted);font-size:13px}.head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{border:1px solid transparent;border-radius:11px;padding:10px 14px;font-weight:700;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.15s}.btn svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.btn-primary{background:var(--green);color:#fff;box-shadow:0 5px 12px rgba(31,107,88,.16)}.btn-primary:hover{background:#185744;transform:translateY(-1px)}.btn-secondary{background:#fff;border-color:var(--line);color:#36544a}.btn-secondary:hover{border-color:#b8cec2;background:#fbfdfb}.btn-quiet{background:transparent;color:var(--green);padding:8px 10px}.btn-danger{background:var(--red-soft);color:var(--red)}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.grid{display:grid;gap:16px}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.stat-card,.panel,.surface-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 8px rgba(28,53,44,.025)}.stat-card{padding:18px 18px 16px}.stat-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.stat-label{font-size:11px;color:var(--muted);font-weight:600}.stat-icon{width:34px;height:34px;border-radius:11px;background:var(--green-soft);color:var(--green);display:grid;place-items:center}.stat-icon svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.stat-value{font:800 27px system-ui;letter-spacing:-.8px}.stat-foot{font-size:10px;color:var(--muted);margin-top:6px}.stat-foot strong{color:var(--green);font-weight:700}.dashboard-grid{grid-template-columns:minmax(0,1.55fr) minmax(280px,.85fr);align-items:start}.panel{padding:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.panel-title{font:700 14px system-ui;letter-spacing:-.2px}.panel-subtitle{font-size:11px;color:var(--muted);margin-top:5px}.text-link{font-size:11px;color:var(--green);font-weight:700;border:0;background:transparent;padding:5px}.activity-list{display:grid}.activity-row{display:flex;gap:12px;align-items:flex-start;padding:13px 0;border-top:1px solid #eff2ef}.activity-row:first-child{border-top:0;padding-top:3px}.activity-dot{width:32px;height:32px;border-radius:10px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;flex:0 0 auto}.activity-dot svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8}.activity-copy{flex:1;min-width:0}.activity-copy strong{font-size:12px;display:block;font-weight:700}.activity-copy span{font-size:10px;color:var(--muted);display:block;margin-top:4px;line-height:1.5}.activity-time{font-size:10px;color:#96a29d;white-space:nowrap}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick-action{padding:13px;border:1px solid var(--line);border-radius:13px;background:#fff;text-align:left;display:flex;gap:10px;align-items:center;color:var(--ink)}.quick-action:hover{border-color:#a9c9b9;background:#f8fbf8}.quick-icon{width:32px;height:32px;border-radius:10px;background:#edf5ef;color:var(--green);display:grid;place-items:center;flex:0 0 auto}.quick-icon svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8}.quick-action strong{font-size:11px;display:block}.quick-action small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.notice-card{background:#f0f6f2;border:1px solid #dcebe1;border-radius:15px;padding:17px;margin-bottom:16px;display:flex;gap:12px}.notice-icon{width:33px;height:33px;border-radius:10px;background:#dceee3;color:var(--green);display:grid;place-items:center;flex:0 0 auto}.notice-icon svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8}.notice-card strong{font-size:12px}.notice-card p{font-size:11px;line-height:1.55;color:#5c7167;margin:5px 0 0}.table-panel{padding:0;overflow:hidden}.table-toolbar{padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line)}.search-wrap{position:relative;min-width:210px;max-width:320px;flex:1}.search-wrap svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:15px;height:15px;stroke:#80908a;fill:none;stroke-width:1.8}.field-control,.search-input{width:100%;border:1px solid #dfe7e2;background:#fff;border-radius:10px;padding:10px 12px;color:var(--ink);font-size:12px;outline:none;transition:.15s}.search-input{padding-left:36px}.field-control:focus,.search-input:focus{border-color:#80ad98;box-shadow:0 0 0 3px rgba(31,107,88,.09)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;padding:11px 17px;background:#fafcfb;font-size:9px;text-transform:uppercase;letter-spacing:.09em;color:#87958e;font-weight:700}td{padding:13px 17px;border-top:1px solid #f0f3f0;font-size:11px;color:#50635a}tbody tr{cursor:pointer;transition:.12s}tbody tr:hover{background:#fbfdfb}.patient-cell{display:flex;align-items:center;gap:10px}.patient-avatar{width:32px;height:32px;border-radius:50%;background:#e8f1eb;color:#315d4c;display:grid;place-items:center;font-weight:700;font-size:10px}.patient-name{font-size:11px;font-weight:700;color:#233e34;display:block}.patient-meta{font-size:9px;color:#8a9891;display:block;margin-top:3px}.status{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:30px;font-size:9px;font-weight:700;text-transform:capitalize}.status:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.status.active,.status.completed,.status.scheduled{background:#eaf5ee;color:#28734f}.status.pending,.status.in-progress{background:var(--amber-soft);color:var(--amber)}.status.missed,.status.cancelled,.status.urgent{background:var(--red-soft);color:var(--red)}.status.routine{background:var(--blue-soft);color:var(--blue)}.empty-state{padding:42px 20px;text-align:center;color:var(--muted)}.empty-state strong{display:block;color:var(--ink);font-size:13px;margin:8px 0 5px}.empty-state p{font-size:11px;max-width:340px;margin:0 auto 13px;line-height:1.6}.empty-icon{width:42px;height:42px;border-radius:14px;background:var(--green-soft);display:grid;place-items:center;color:var(--green);margin:0 auto}.empty-icon svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8}.two-col{grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);align-items:start}.detail-card{padding:23px}.detail-hero{display:flex;align-items:center;gap:14px;padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:18px}.detail-hero .patient-avatar{width:52px;height:52px;font-size:14px}.detail-hero h2{font:700 17px system-ui;margin:0}.detail-hero p{font-size:10px;color:var(--muted);margin:5px 0 0}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.detail-field span{font-size:9px;color:#87948e;text-transform:uppercase;letter-spacing:.08em;display:block;margin-bottom:5px}.detail-field strong{font-size:11px;color:#354d43}.tab-row{display:flex;gap:17px;border-bottom:1px solid var(--line);margin-bottom:17px}.tab-button{border:0;background:transparent;padding:0 0 12px;font-size:11px;color:#84938c;font-weight:700;border-bottom:2px solid transparent}.tab-button.active{color:var(--green);border-color:var(--green)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-field{display:grid;gap:6px}.form-field.full{grid-column:1/-1}.form-field label{font-size:10px;font-weight:700;color:#52665d}.form-field input,.form-field select,.form-field textarea{width:100%;border:1px solid #dfe7e2;border-radius:10px;padding:10px 11px;background:#fff;font-size:12px;outline:none;color:var(--ink)}.form-field textarea{resize:vertical;min-height:82px;line-height:1.5}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#80ad98;box-shadow:0 0 0 3px rgba(31,107,88,.09)}.helper-text{font-size:9px;color:#8a9891;line-height:1.5}.modal-backdrop{position:fixed;inset:0;background:rgba(16,37,32,.42);backdrop-filter:blur(3px);z-index:30;display:grid;place-items:center;padding:20px}.modal{width:min(620px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:20px;box-shadow:0 28px 80px rgba(6,33,25,.24)}.modal-head{padding:21px 23px 17px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.modal-head h2{font:700 17px system-ui;margin:0}.modal-head p{font-size:10px;color:var(--muted);margin:6px 0 0}.modal-body{padding:21px 23px}.modal-foot{border-top:1px solid var(--line);padding:15px 23px;display:flex;justify-content:flex-end;gap:8px}.close-button{border:0;background:#f1f5f2;color:#6b7c73;border-radius:9px;width:30px;height:30px;font-size:18px}.toast-stack{position:fixed;right:20px;bottom:20px;display:grid;gap:8px;z-index:60}.toast{background:#173e35;color:#fff;border-radius:12px;padding:12px 15px;box-shadow:var(--shadow);font-size:11px;max-width:340px;animation:toast-in .18s ease}.toast.error{background:#813c38}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.offline-bar{display:none;padding:9px 16px;background:#fff3df;color:#8a5b18;font-size:10px;font-weight:700;text-align:center;border-bottom:1px solid #f4dfbd}.offline-bar.visible{display:block}.demo-pill{background:#fff5e8;color:#98601c;border:1px solid #f2dfbe;border-radius:30px;padding:6px 9px;font-size:9px;font-weight:700;letter-spacing:.03em}.sync-pill{display:inline-flex;align-items:center;gap:6px;color:#5d7568;font-size:10px}.sync-pill:before{content:"";height:6px;width:6px;background:#58a77a;border-radius:50%}.login-wrap{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(370px,.9fr);background:#fff}.login-aside{background:var(--green-dark);color:#fff;padding:52px clamp(30px,7vw,110px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-aside:after{content:"";position:absolute;width:540px;height:540px;border:1px solid rgba(255,255,255,.09);border-radius:50%;right:-230px;bottom:-230px;box-shadow:0 0 0 60px rgba(255,255,255,.025),0 0 0 120px rgba(255,255,255,.02)}.login-aside .brand{padding:0}.login-aside .brand-mark{background:#e8f3ed;color:var(--green-dark)}.login-copy{max-width:490px;position:relative;z-index:1}.login-copy h1{font:800 clamp(34px,4.5vw,54px)/1.08 system-ui;letter-spacing:-1.8px;margin:0 0 18px}.login-copy p{color:#b8cec4;font-size:14px;line-height:1.8;max-width:430px}.login-points{display:grid;gap:13px;margin-top:31px}.login-point{display:flex;gap:11px;align-items:center;color:#e4f1e9;font-size:12px}.point-check{width:22px;height:22px;border-radius:50%;background:rgba(180,224,198,.15);color:#b8e0c7;display:grid;place-items:center;font-weight:700}.login-bottom{font-size:10px;color:#9db9aa;position:relative;z-index:1}.login-panel{display:flex;align-items:center;justify-content:center;padding:42px}.login-form-wrap{width:min(390px,100%)}.login-form-wrap h2{font:800 25px system-ui;letter-spacing:-.8px;margin:0}.login-form-wrap>p{font-size:12px;color:var(--muted);line-height:1.6;margin:9px 0 27px}.login-form-wrap .form-field{margin-bottom:14px}.login-form-wrap .btn{width:100%;padding:13px}.login-divider{height:1px;background:var(--line);margin:22px 0;position:relative}.login-divider span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;padding:0 10px;color:#a2ada7;font-size:10px}.demo-enter{width:100%;background:#f2f7f3;color:var(--green-dark);border:1px solid #deebe2;padding:12px}.login-note{font-size:9px;color:#8e9c95;line-height:1.6;margin-top:18px}.mobile-brand{display:none}.mobile-nav{display:none}.section-divider{height:1px;background:var(--line);margin:18px 0}.muted{color:var(--muted)}.small{font-size:10px}.access-card{background:#f8faf8;border:1px solid var(--line);border-radius:13px;padding:14px}.access-card strong{font-size:11px}.access-card p{font-size:10px;color:var(--muted);line-height:1.6;margin:5px 0 0}
@media(max-width:1120px){.app-shell{grid-template-columns:220px minmax(0,1fr)}.content{padding:28px 25px 48px}.topbar{padding:0 25px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.two-col{grid-template-columns:1fr}}
@media(max-width:760px){.app-shell{display:block}.sidebar{display:none}.topbar{height:62px;padding:0 16px}.breadcrumb{font-size:11px}.user-chip>div:last-child{display:none}.user-chip{padding:0}.top-actions{gap:7px}.content{padding:23px 16px 100px}.page-head{align-items:flex-start;flex-direction:column;margin-bottom:18px}.page-head h1{font-size:24px}.head-actions{width:100%}.head-actions .btn{flex:1}.stats-grid{gap:10px}.stat-card{padding:14px}.stat-value{font-size:23px}.stat-label{font-size:10px}.stat-icon{width:30px;height:30px}.panel{padding:16px}.table-toolbar{padding:13px;align-items:stretch;flex-direction:column}.search-wrap{max-width:none}.quick-grid{grid-template-columns:1fr 1fr}.mobile-brand{display:flex;align-items:center;gap:7px;font:800 14px system-ui}.mobile-brand .brand-mark{width:29px;height:29px;border-radius:9px;font-size:16px}.mobile-nav{position:fixed;display:flex;left:0;right:0;bottom:0;height:68px;padding:7px 6px max(7px,env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(14px);z-index:20;justify-content:space-around}.mobile-nav button{border:0;background:transparent;display:grid;justify-items:center;align-content:center;gap:4px;color:#83928b;font-size:9px;font-weight:700;min-width:55px}.mobile-nav button.active{color:var(--green)}.mobile-nav svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.login-wrap{grid-template-columns:1fr}.login-aside{display:none}.login-panel{min-height:100vh;padding:25px}.form-grid{grid-template-columns:1fr}.form-field.full{grid-column:auto}.modal-backdrop{padding:10px}.modal{max-height:96vh;border-radius:16px}.modal-head,.modal-body{padding:17px}.modal-foot{padding:13px 17px}.detail-grid{grid-template-columns:1fr 1fr}.activity-time{display:none}.offline-bar{font-size:9px}.table-panel{margin-left:-2px;margin-right:-2px}}
@media(max-width:390px){.stats-grid{grid-template-columns:1fr 1fr}.quick-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}.page-head h1{font-size:22px}.user-chip{display:none}}

@media(max-width:760px){.desktop-crumb{display:none}}

.inline-status{border:1px solid #dfe7e2;background:#fff;border-radius:8px;padding:6px 8px;color:#36544a;font-size:10px;max-width:116px;outline:none}.inline-status:focus{border-color:#80ad98;box-shadow:0 0 0 2px rgba(31,107,88,.08)}

:focus-visible{outline:3px solid rgba(69,145,112,.38);outline-offset:2px}

/* Utility classes keep inline style attributes out of the Content Security Policy. */
.login-eyebrow{color:#9ecdb0}.login-eyebrow-offset{margin-top:24px}.stack-tight{gap:16px}.table-count{font:500 11px system-ui}.detail-status{margin-left:auto}.detail-section-title{margin-bottom:16px}.detail-empty{margin-top:14px}.consent-label{display:flex;align-items:flex-start;gap:9px;font-weight:600}.consent-checkbox{width:15px;margin-top:1px}

/* Workflow-first workspace layout */
.brand-logo{width:40px;height:40px;flex:0 0 auto;padding:5px;border-radius:12px;background:#edf5f0;object-fit:contain}
.sidebar .brand-logo{width:38px;height:38px}
.privacy-mini{display:flex;align-items:flex-start;gap:7px}
.privacy-mini svg{width:14px;height:14px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mobile-brand .brand-logo{width:30px;height:30px;padding:4px;border-radius:9px}
.connection-pill{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 11px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#426054;font-size:11px;font-weight:700}
.connection-pill:hover{border-color:#b8cec2;background:#fbfdfb}
.connection-dot{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:#48a879}

.construction-wrap{grid-template-columns:minmax(0,1.1fr) minmax(370px,.9fr)}
.construction-aside{gap:36px}
.construction-logo{width:min(280px,100%);height:auto;padding:8px 10px;border-radius:10px;background:#f8f7f2;object-fit:contain}
.construction-copy h1{max-width:520px}
.construction-panel .login-form-wrap .btn{margin-top:2px}
.admin-gate-error{margin:0 0 12px;color:var(--red);font-size:11px;line-height:1.5}
.construction-mobile-logo{display:none}
.construction-mobile-message{display:none}
.construction-staff-link{margin-top:14px}
@media(max-width:760px){
  .construction-wrap{grid-template-columns:minmax(0,1fr)}
  .construction-panel{min-width:0}
  .construction-mobile-logo{display:block;width:min(210px,75%);height:auto;margin:0 auto 28px}
  .construction-mobile-message{display:block;margin-bottom:24px}
  .construction-mobile-message h1{margin:0 0 9px;color:#172f2a;font:800 clamp(24px,7vw,32px)/1.15 system-ui;letter-spacing:-.7px}
  .construction-mobile-message>p:last-child{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
  .construction-panel{min-height:100vh;align-items:flex-start}
}
.connection-pill.offline .connection-dot,.connection-badge.offline .connection-dot{background:var(--amber)}
.worklist-heading{align-items:center}
.worklist-heading .page-head h1{font-size:30px;letter-spacing:-1px}
.workspace-notice{align-items:center;margin-bottom:18px}
.workspace-notice .text-link{margin-left:auto;white-space:nowrap}
.workspace-notice.is-offline{background:var(--amber-soft);border-color:#f0dfc2}
.workspace-notice.is-offline .notice-icon{background:#f7e8ce;color:var(--amber)}
.worklist-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}
.worklist-count{min-height:82px;padding:15px 17px;border:1px solid var(--line);border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:space-between}
.worklist-count span{font-size:12px;color:var(--muted);font-weight:600}
.worklist-count strong{font:800 25px/1 system-ui;color:var(--ink)}
.worklist-count.attention strong{color:var(--amber)}
.worklist-grid{grid-template-columns:minmax(0,1.35fr) minmax(310px,.85fr);align-items:start}
.worklist-side{gap:14px}
.task-list{display:grid}
.task-row{width:100%;display:grid;grid-template-columns:74px minmax(0,1fr) auto 18px;align-items:center;gap:12px;padding:14px 4px;border:0;border-top:1px solid #eff2ef;background:transparent;text-align:left;color:var(--ink)}
.task-row:first-child{border-top:0}
.task-row:hover .task-patient strong{color:var(--green)}
.task-row>svg{width:16px;height:16px;stroke:#8b9b93;fill:none;stroke-width:1.8}
.task-date{font-size:11px;font-weight:700;color:var(--green)}
.task-date.overdue{color:var(--red)}
.task-patient{min-width:0}
.task-patient strong,.task-patient small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-patient strong{font-size:12px}
.task-patient small{margin-top:4px;color:var(--muted);font-size:10px}
.compact-empty{padding:25px 12px}
.records-worklist{max-width:680px}
.records-total{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--green-soft);color:var(--green);font-size:16px}
.records-worklist>.btn{margin-top:15px}
.patient-list-panel{padding:0;overflow:hidden}
.patient-list{display:grid}
.patient-row{width:100%;display:grid;grid-template-columns:40px minmax(180px,1.3fr) minmax(130px,.8fr) minmax(120px,.8fr) auto 18px;align-items:center;gap:13px;padding:14px 19px;border:0;border-top:1px solid #eff2ef;background:#fff;text-align:left;color:var(--ink)}
.patient-row:hover{background:#f9fcfa}
.patient-row .patient-avatar{width:38px;height:38px;font-size:11px}
.patient-row-main{min-width:0}
.patient-row-main strong,.patient-row-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.patient-row-main strong{font-size:12px;color:#233e34}
.patient-row-main small,.patient-row-contact,.patient-row-date{font-size:10px;color:var(--muted)}
.patient-row-main small{margin-top:4px}
.patient-row>svg{width:16px;height:16px;stroke:#8b9b93;fill:none;stroke-width:1.8}
.care-tabs{display:flex;gap:5px;margin:0 0 15px;padding:5px;width:max-content;max-width:100%;border:1px solid var(--line);border-radius:13px;background:#edf2ee}
.care-tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:0 14px;border:0;border-radius:9px;background:transparent;color:#60736a;font-size:11px;font-weight:700;white-space:nowrap}
.care-tab svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.care-tab.active{background:#fff;color:var(--green-dark);box-shadow:0 1px 3px rgba(20,43,40,.1)}
.sync-overview{display:flex;align-items:center;gap:16px;margin-bottom:14px}
.sync-overview-icon{width:46px;height:46px;display:grid;place-items:center;flex:0 0 auto;border-radius:14px;background:var(--green-soft);color:var(--green)}
.sync-overview-icon svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8}
.sync-overview h2{margin:4px 0;font:800 20px system-ui;letter-spacing:-.4px}
.sync-overview p,.sync-detail p{margin:0;color:var(--muted);font-size:11px;line-height:1.6}
.sync-label{display:block;color:var(--muted);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.connection-badge{display:inline-flex;align-items:center;gap:7px;margin-left:auto;padding:7px 10px;border-radius:999px;background:var(--green-soft);color:var(--green);font-size:10px;font-weight:700}
.connection-badge.offline{background:var(--amber-soft);color:var(--amber)}
.sync-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:14px}
.sync-detail{min-height:128px}
.sync-detail strong{display:block;margin:11px 0 6px;font-size:17px}
.sync-safety{max-width:900px;margin-top:0}
.sync-safety p{max-width:760px}
.offline-bar{display:flex;align-items:center;justify-content:center;gap:8px}
.offline-bar svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8;flex:0 0 auto}
.mobile-nav button{flex:1;min-width:0}
.mobile-nav button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1120px){
  .worklist-grid{grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr)}
  .patient-row{grid-template-columns:40px minmax(160px,1fr) minmax(110px,.8fr) auto 18px}
  .patient-row-date{display:none}
}
@media(max-width:760px){
  .worklist-heading .page-head h1{font-size:25px}
  .worklist-grid{grid-template-columns:1fr}
  .worklist-summary{gap:8px}
  .worklist-count{min-height:72px;padding:12px}
  .worklist-count span{max-width:95px;font-size:10px;line-height:1.35}
  .worklist-count strong{font-size:21px}
  .workspace-notice{align-items:flex-start;padding:13px}
  .workspace-notice .text-link{align-self:center}
  .patient-row{grid-template-columns:38px minmax(0,1fr) auto 16px;gap:10px;padding:13px}
  .patient-row-contact,.patient-row-date{display:none}
  .patient-row .status{font-size:8px;padding:5px 7px}
  .care-tabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .care-tab{gap:5px;padding:0 6px;font-size:10px}
  .sync-overview{align-items:flex-start;flex-wrap:wrap}
  .connection-badge{margin-left:62px;margin-top:-3px}
  .sync-detail-grid{grid-template-columns:1fr}
  .top-actions{gap:6px}
  .connection-pill{min-height:34px;padding:0 9px;font-size:10px}
  .top-actions .icon-button{width:34px;height:34px}
}
@media(max-width:390px){
  .worklist-summary{grid-template-columns:1fr 1fr}
  .worklist-count:last-child{grid-column:1/-1}
  .task-row{grid-template-columns:58px minmax(0,1fr) auto 14px;gap:8px}
  .task-row .status{font-size:8px;padding:4px 6px}
  .workspace-notice .text-link{font-size:10px;padding:4px}
  .mobile-nav button{font-size:8px}
}
@media(max-width:360px){
  .breadcrumb .mobile-brand{font-size:0;gap:0}
}
