:root{font-family:Fira Sans,Inter,Microsoft YaHei,Arial,sans-serif;color:#172033;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#f5f7fb}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a{cursor:pointer}.login-page{min-height:100vh;display:grid;place-items:center;padding:32px;background:linear-gradient(135deg,#ecfeff,#f8fafc 55%,#e0f2fe)}.login-card{width:min(920px,100%);min-height:520px;display:grid;grid-template-columns:1.1fr .9fr;background:#fff;border:1px solid #d8eef3;border-radius:8px;box-shadow:0 24px 60px #085b701f;overflow:hidden}.login-copy{padding:56px;display:flex;flex-direction:column;justify-content:center;background:#0f766e;color:#fff}.login-copy h1{margin:24px 0 12px;font-size:36px;letter-spacing:0}.login-copy p{margin:0;color:#ccfbf1;line-height:1.8}.login-form{padding:56px 48px;display:flex;flex-direction:column;justify-content:center;gap:22px}.login-form label,.module-search{display:grid;gap:8px}.login-form span{font-weight:700;color:#164e63}input{width:100%;height:44px;padding:0 14px;border:1px solid #d6dde8;border-radius:6px;color:#172033;background:#fff;outline:none;transition:border-color .2s ease,box-shadow .2s ease}input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb24}.primary-button,.ghost-button{height:42px;padding:0 18px;border-radius:6px;border:1px solid transparent;font-weight:700;transition:background .2s ease,border-color .2s ease,color .2s ease}.primary-button{background:#059669;color:#fff}.primary-button:hover{background:#047857}.primary-button:disabled{opacity:.62;cursor:not-allowed}.ghost-button{display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#1e40af;border-color:#c7d2fe}.ghost-button:hover{border-color:#2563eb;background:#eff6ff}.form-error{margin:0;color:#b91c1c;font-size:14px}.admin-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:20px 14px;background:#111827;color:#eef2ff}.brand-block{display:flex;align-items:center;gap:12px;padding:8px 8px 24px}.brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:8px;background:#3b82f6;color:#fff;font-weight:900}.brand-mark.large{width:54px;height:54px;font-size:24px}.brand-name{font-size:18px;font-weight:800}.brand-subtitle,.operator-label{margin-top:4px;font-size:12px;color:#a7b0c2}.nav-list{display:grid;gap:6px}.nav-item{height:44px;display:flex;align-items:center;gap:12px;padding:0 12px;border-radius:6px;color:#cbd5e1;transition:background .2s ease,color .2s ease}.nav-item:hover,.nav-item.router-link-active{background:#1f2937;color:#fff}.nav-icon,.nav-icon svg{width:20px;height:20px;fill:currentColor;flex:none}.sidebar-footer{margin-top:auto;padding:16px 12px;border-top:1px solid rgba(203,213,225,.16)}.operator-name{margin-top:6px;font-weight:800}.main-panel{min-width:0;display:flex;flex-direction:column}.topbar{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 28px;background:#fffffff5;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:5}.topbar h1,.panel h2,.module-search h2,.patient-hero h2{margin:0;color:#172033;letter-spacing:0}.topbar h1{font-size:24px}.topbar p{margin:6px 0 0;color:#64748b}.content-panel{padding:22px}.page-grid{display:grid;gap:20px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.metric-card,.panel,.patient-hero,.empty-panel{background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 14px 34px #0f172a0f}.metric-card{min-height:128px;padding:20px;display:grid;align-content:space-between;border-top:3px solid #2563eb}.metric-card span,.metric-card em,td span,.data-row span,.patient-row span,.module-patient span,.muted-text{color:#64748b;font-style:normal}.metric-card strong{color:#1e40af;font-size:34px;line-height:1}.split-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.split-grid.wide-left{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)}.panel{padding:18px;min-width:0}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.panel h2,.module-search h2{font-size:18px}.panel-subtitle{margin:6px 0 0;color:#64748b;font-size:13px;line-height:1.5}.table-tools{width:min(420px,100%)}.text-link,.table-action{color:#1d4ed8;font-weight:800}.line-chart{height:260px;min-width:0}.line-chart-svg{width:100%;height:100%;overflow:visible}.line-chart-grid line{stroke:#e2e8f0;stroke-width:1}.line-chart-grid text,.line-chart-x-label{fill:#64748b;font-size:12px}.line-chart-area{fill:#2563eb1f}.line-chart-line{fill:none;stroke:#2563eb;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.line-chart-point{fill:#fff;stroke:#2563eb;stroke-width:3}.line-chart-x-label{text-anchor:middle}.compact-list,.stack-list,.timeline{display:grid;gap:10px}.patient-row,.data-row,.timeline-item{display:flex;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;transition:border-color .2s ease,background .2s ease}.patient-row:hover,.data-row:hover,.timeline-item:hover{border-color:#bfdbfe;background:#f8fbff}.patient-row strong,.data-row strong,.timeline-item strong{display:block;color:#172033}.status-on,.status-off,.badge{align-self:flex-start;padding:5px 9px;border-radius:999px;font-size:12px;font-style:normal;font-weight:800}.status-on,.badge.success,.badge.zone-green{color:#047857;background:#d1fae5}.status-off,.badge.muted{color:#475569;background:#e2e8f0}.badge.warning,.badge.zone-yellow{color:#a16207;background:#fef3c7}.badge.danger,.badge.zone-red{color:#b91c1c;background:#fee2e2}.table-wrap{overflow-x:auto;border:1px solid #e2e8f0;border-radius:8px;background:#fff}table{width:100%;border-collapse:collapse;min-width:920px}th,td{padding:13px 14px;border-bottom:1px solid #edf2f7;text-align:left;vertical-align:middle;white-space:nowrap}th{color:#475569;font-size:13px;background:#f8fafc;font-weight:800;position:sticky;top:0;z-index:1}td{color:#172033;font-size:14px}tbody tr{transition:background .2s ease}tbody tr:hover{background:#f8fbff}td strong,td span{display:block}.patient-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;border-left:4px solid #2563eb}.patient-hero p{margin:8px 0 0;color:#64748b}.hero-actions{display:flex;align-items:center;gap:12px}.info-grid{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.info-grid div{padding:14px;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc}dt{color:#64748b;font-size:13px}dd{margin:8px 0 0;color:#172033;font-weight:700}.timeline-item{position:relative;justify-content:flex-start}.timeline-dot{width:10px;height:10px;margin-top:5px;border-radius:999px;background:#2563eb;flex:none}.timeline-item p{margin:6px 0;color:#64748b;line-height:1.6}.timeline-item time{color:#64748b;font-size:12px}.empty-state,.empty-panel{color:#64748b;text-align:center}.empty-state{padding:18px}.empty-state.compact{padding:10px;font-size:13px}.empty-panel{min-height:280px;display:grid;place-items:center}.module-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:20px}.module-sidebar{display:grid;align-content:start;gap:14px;position:sticky;top:106px}.module-search,.module-patient-list,.module-content{min-width:0}.module-search{padding:18px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;box-shadow:0 12px 28px #0f172a0d}.module-patient-list{display:grid;gap:8px;max-height:calc(100vh - 330px);overflow:auto}.module-patient{width:100%;padding:14px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;text-align:left;color:#172033;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}.module-patient:hover,.module-patient.active{border-color:#2563eb;background:#eff6ff;box-shadow:inset 3px 0 #2563eb}.module-patient strong,.module-patient span{display:block}.module-patient span{margin-top:6px;font-size:13px}.pagination-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0 0;color:#64748b;font-size:13px}.pagination-controls{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.page-size{display:inline-flex;align-items:center;gap:6px;margin-right:8px}.page-size-options{display:inline-flex;overflow:hidden;border:1px solid #d6dde8;border-radius:6px;background:#fff}.page-size-button{min-width:38px;height:32px;padding:0 10px;border:0;border-right:1px solid #d6dde8;background:#fff;color:#334155;font-weight:700;transition:background .2s ease,color .2s ease}.page-size-button:last-child{border-right:0}.page-size-button:hover,.page-size-button.active{background:#2563eb;color:#fff}.page-button{min-width:34px;height:34px;padding:0 10px;border:1px solid #d6dde8;border-radius:6px;background:#fff;color:#334155;font-weight:700;transition:background .2s ease,border-color .2s ease,color .2s ease}.page-button:hover:not(:disabled),.page-button.active{border-color:#2563eb;background:#2563eb;color:#fff}.page-button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:1100px){.metric-grid,.split-grid,.split-grid.wide-left{grid-template-columns:repeat(2,minmax(0,1fr))}.module-layout{grid-template-columns:260px minmax(0,1fr)}}@media(max-width:820px){.admin-shell,.login-card,.module-layout,.metric-grid,.split-grid,.split-grid.wide-left,.info-grid{grid-template-columns:1fr}.sidebar{position:static;height:auto}.module-sidebar,.topbar{position:static}.topbar,.patient-hero,.panel-header,.pagination-bar{align-items:flex-start;flex-direction:column}.table-tools{width:100%}.content-panel{padding:16px}.module-patient-list{max-height:320px}}
