:root{--radius: 14px}[data-theme=light]{--bg: #f8fafc;--panel: #ffffff;--panel-2: #f1f5f9;--text: #1e293b;--muted: #64748b;--accent: #3b82f6;--green: #10b981;--red: #ef4444;--border: #e2e8f0;--card-border: #cbd5e1;--shadow: 0 6px 24px rgba(0,0,0,.1)}[data-theme=dark]{--bg: #0b0f14;--panel: #111823;--panel-2: #0f141d;--text: #e8ecf2;--muted: #a9b3c2;--accent: #4da3ff;--green: #31d0aa;--red: #ff6b6b;--border: #1e2a3a;--card-border: #1a2533;--shadow: 0 6px 24px rgba(0,0,0,.25)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;color:var(--text);font:14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif}[data-theme=light] body{background:radial-gradient(1200px 600px at 20% -10%,#e2e8f0 10%,var(--bg) 60%)}[data-theme=dark] body{background:radial-gradient(1200px 600px at 20% -10%,#16202c 10%,var(--bg) 60%)}.app-shell{min-height:100%;display:flex;flex-direction:column}.container{width:100%;max-width:1100px;padding:24px;margin:0 auto 40px}.header{position:sticky;top:0;z-index:5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);background:color-mix(in oklab,var(--panel),transparent 30%)}.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;max-width:1100px;margin:0 auto}.brand{display:flex;gap:12px;align-items:center;font-weight:600;letter-spacing:.2px;font-size:16px}.brand .logo{width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,var(--accent),#8ed1ff);box-shadow:0 6px 18px #4da3ff59,inset 0 0 12px #ffffff40}.header-actions{display:flex;gap:12px;align-items:center}.status-badge{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);background:var(--panel-2);padding:8px 10px;border-radius:999px;font-size:12px;color:var(--muted)}.status-dot{width:9px;height:9px;border-radius:999px;box-shadow:0 0 0 3px #00000024 inset}.status-on{background:var(--green)}.status-off{background:var(--red)}.link{color:var(--accent);text-decoration:none;border:1px solid var(--border);padding:8px 10px;border-radius:10px;background:var(--panel-2)}.link:hover{border-color:var(--card-border)}.panel{background:color-mix(in oklab,var(--panel),transparent 10%);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.search-row{display:flex;gap:10px;align-items:center;padding:14px;border-bottom:1px solid var(--border)}.search-input{flex:1;background:var(--panel-2);color:var(--text);border:1px solid var(--card-border);border-radius:10px;padding:10px 12px;outline:none}.search-input::placeholder{color:var(--muted)}.btn{background:var(--accent);border:none;border-radius:10px;padding:10px 12px;font-weight:600;cursor:pointer}[data-theme=light] .btn{color:#fff}[data-theme=dark] .btn{color:#0b0f14}.btn:disabled{opacity:.5;cursor:default}.grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));padding:16px}.card{border:1px solid var(--card-border);background:linear-gradient(180deg,color-mix(in oklab,var(--panel),transparent 0%),var(--panel-2));border-radius:14px;padding:14px}.card h3{margin:0 0 8px;font-size:16px}.meta{color:var(--muted);font-size:12px;margin-bottom:8px}.badge-row{display:flex;flex-wrap:wrap;gap:6px}.badge{font-size:12px;padding:4px 8px;border-radius:999px;border:1px solid var(--card-border);background:var(--panel-2)}.empty{padding:24px;text-align:center;color:var(--muted)}.patient-card-ultra-sleek{border:1px solid var(--card-border);background:var(--panel);border-radius:20px;padding:0;overflow:hidden;transition:all .4s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 12px #00000014;position:relative;cursor:pointer}.patient-card-ultra-sleek:hover{transform:translateY(-6px) scale(1.02);box-shadow:0 20px 40px #0000001f;border-color:var(--accent)}.patient-card-ultra-sleek:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--accent),#8ed1ff);opacity:0;transition:opacity .3s ease}.patient-card-ultra-sleek:hover:before{opacity:1}.card-header-sleek{background:linear-gradient(135deg,var(--panel),var(--panel-2));padding:24px 24px 20px;position:relative;display:flex;justify-content:space-between;align-items:flex-start}.header-content{flex:1}.patient-name-sleek{font-size:22px;font-weight:800;color:var(--text);margin-bottom:6px;letter-spacing:-.8px;line-height:1.2}.patient-mrn{font-size:13px;font-weight:600;color:var(--accent);font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;letter-spacing:.5px}.status-indicator{width:32px;height:32px;display:flex;align-items:center;justify-content:center}.status-dot{width:8px;height:8px;background:var(--green);border-radius:50%;box-shadow:0 0 0 2px #31d0aa33}.card-content-sleek{padding:0 24px 24px}.stats-row{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}.stat-pill{background:var(--panel-2);border:1px solid var(--border);border-radius:25px;padding:8px 16px;display:flex;align-items:center;gap:8px;transition:all .2s ease}.stat-pill:hover{background:var(--panel);border-color:var(--accent);transform:translateY(-1px)}.stat-icon{font-size:14px;opacity:.8}.stat-text{font-size:13px;font-weight:600;color:var(--text);letter-spacing:.2px}.conditions-minimal{display:flex;gap:8px;margin-bottom:16px;align-items:center;flex-wrap:wrap}.condition-tag{background:linear-gradient(135deg,var(--accent),#8ed1ff);color:#0b0f14;padding:6px 14px;border-radius:20px;font-size:11px;font-weight:700;letter-spacing:.3px;text-transform:capitalize;box-shadow:0 2px 8px #4da3ff4d}.condition-count{background:var(--panel-2);color:var(--muted);padding:6px 12px;border-radius:20px;font-size:11px;font-weight:600;border:1px solid var(--border);letter-spacing:.3px}.contact-minimal{padding:12px 16px;background:var(--panel-2);border-radius:12px;border:1px solid var(--border);text-align:center;transition:all .2s ease}.contact-minimal:hover{background:var(--panel);border-color:var(--accent)}.phone-text{font-size:13px;color:var(--text);font-weight:600;letter-spacing:.2px}@media (max-width: 768px){.patient-card-ultra-sleek{border-radius:16px}.card-header-sleek{padding:20px 20px 16px}.card-content-sleek{padding:0 20px 20px}.patient-name-sleek{font-size:20px}.stats-row{gap:8px}.stat-pill{padding:6px 12px}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-content{background:var(--panel);border:1px solid var(--border);border-radius:20px;max-width:900px;width:100%;max-height:90vh;overflow:hidden;box-shadow:0 20px 60px #0000004d;animation:modalSlideIn .3s ease-out}.modal-content-wide{background:var(--panel);border:1px solid var(--border);border-radius:20px;max-width:1400px;width:100%;max-height:90vh;overflow:hidden;box-shadow:0 20px 60px #0000004d;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:24px 24px 20px;border-bottom:1px solid var(--border)}.modal-header h2{margin:0;font-size:24px;font-weight:700;color:var(--text);letter-spacing:-.5px}.modal-close{background:none;border:none;font-size:28px;color:var(--muted);cursor:pointer;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.modal-close:hover{background:var(--panel-2);color:var(--text)}.modal-tabs{display:flex;border-bottom:1px solid var(--border);padding:0 24px}.tab-button{background:none;border:none;padding:16px 24px;font-size:14px;font-weight:600;color:var(--muted);cursor:pointer;border-bottom:3px solid transparent;transition:all .2s ease;position:relative}.tab-button:hover{color:var(--text);background:var(--panel-2)}.tab-button.active{color:var(--accent);border-bottom-color:var(--accent)}.modal-body{padding:24px;max-height:60vh;overflow-y:auto}.modal-body-split{display:flex;height:70vh;overflow:hidden}.patient-info-section{flex:1;padding:24px;border-right:1px solid var(--border);overflow-y:auto}.checklist-audio-section{width:400px;padding:24px;overflow-y:auto}.section-title{margin:0 0 20px;font-size:20px;font-weight:700;color:var(--accent);border-bottom:2px solid var(--accent);padding-bottom:8px}.info-content{display:flex;flex-direction:column;gap:20px}.chief-complaint{font-size:16px;color:var(--text);background:var(--panel-2);padding:12px 16px;border-radius:8px;border-left:4px solid var(--accent);margin:0}.vitals-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.vital-item{display:flex;flex-direction:column;gap:4px}.vital-label{font-size:11px;color:var(--muted);font-weight:600}.vital-value{font-size:14px;color:var(--text);font-weight:600}.allergy-badge{background:#ff6b6b1a;color:var(--red);border:1px solid rgba(255,107,107,.3);padding:4px 8px;border-radius:12px;font-size:11px;font-weight:600}.info-tab{display:flex;flex-direction:column;gap:24px}.info-section h3{margin:0 0 16px;font-size:18px;font-weight:600;color:var(--text);border-bottom:1px solid var(--border);padding-bottom:8px}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.info-item{display:flex;flex-direction:column;gap:4px}.info-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;font-weight:600}.info-value{font-size:16px;color:var(--text);font-weight:500}.conditions-list{display:flex;flex-wrap:wrap;gap:8px}.condition-badge{background:linear-gradient(135deg,var(--accent),#8ed1ff);color:#0b0f14;padding:8px 16px;border-radius:20px;font-size:12px;font-weight:600;letter-spacing:.3px;text-transform:capitalize;box-shadow:0 2px 8px #4da3ff4d}.last-visit{font-size:16px;color:var(--text);font-weight:500;margin:0}.notes{font-size:14px;color:var(--text);line-height:1.6;margin:0;background:var(--panel-2);padding:16px;border-radius:12px;border:1px solid var(--border)}.checklist-tab{display:flex;flex-direction:column;gap:24px}.checklist-container h3{margin:0 0 16px;font-size:18px;font-weight:600;color:var(--text);border-bottom:1px solid var(--border);padding-bottom:8px}.checklist-items{display:flex;flex-direction:column;gap:12px}.checklist-item{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--panel-2);border-radius:12px;border:1px solid var(--border);transition:all .2s ease}.checklist-item:hover{background:var(--panel);border-color:var(--accent)}.checklist-checkbox{width:20px;height:20px;accent-color:var(--accent);cursor:pointer}.checklist-label{font-size:14px;color:var(--text);font-weight:500;cursor:pointer;flex:1;transition:all .2s ease}.checklist-label.completed{text-decoration:line-through;color:var(--muted);opacity:.7}.audio-section{border-top:1px solid var(--border);padding-top:24px}.audio-section h3{margin:0 0 16px;font-size:18px;font-weight:600;color:var(--text)}.audio-player{display:flex;flex-direction:column;gap:16px;align-items:center}.audio-play-btn{background:linear-gradient(135deg,var(--accent),#8ed1ff);color:#0b0f14;border:none;padding:12px 24px;border-radius:25px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 16px #4da3ff4d}.audio-play-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #4da3ff66}.audio-element{width:100%;max-width:400px;height:40px;border-radius:8px}@media (max-width: 768px){.modal-content,.modal-content-wide{margin:10px;max-height:95vh}.modal-body-split{flex-direction:column;height:auto;max-height:80vh}.patient-info-section{border-right:none;border-bottom:1px solid var(--border);padding:20px}.checklist-audio-section{width:100%;padding:20px}.modal-header{padding:20px 20px 0}.modal-tabs{padding:0 20px}.modal-body{padding:20px}.info-grid{grid-template-columns:1fr}.tab-button{padding:12px 16px;font-size:13px}.vitals-grid{grid-template-columns:repeat(2,1fr)}}
