:root{color:#1a1a1a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#fff;font-family:system-ui,-apple-system,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box;margin:0;padding:0}body{min-height:100vh}#app{height:100vh}.dashboard.svelte-1n46o8q{color:#1a1a1a;height:100vh;font-family:system-ui,-apple-system,sans-serif;display:flex}.sidebar.svelte-1n46o8q{background:#fafafa;border-right:1px solid #e0e0e0;flex-direction:column;width:320px;min-width:320px;display:flex}.sidebar-header.svelte-1n46o8q{border-bottom:1px solid #e0e0e0;justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.sidebar-header.svelte-1n46o8q h2:where(.svelte-1n46o8q){text-transform:uppercase;letter-spacing:.5px;color:#666;margin:0;font-size:16px;font-weight:600}.count.svelte-1n46o8q{color:#555;background:#e0e0e0;border-radius:12px;padding:2px 10px;font-size:13px;font-weight:600}.patient-list.svelte-1n46o8q{flex:1;overflow-y:auto}.patient-row.svelte-1n46o8q{text-align:left;cursor:pointer;background:0 0;border:none;border-bottom:1px solid #f0f0f0;width:100%;padding:12px 20px;transition:background .15s}.patient-row.svelte-1n46o8q:hover{background:#f0f0f0}.patient-row.selected.svelte-1n46o8q{background:#e3f2fd;border-left:3px solid #1976d2}.patient-name.svelte-1n46o8q{margin-bottom:4px;font-size:14px;font-weight:600}.patient-meta.svelte-1n46o8q{color:#666;gap:8px;font-size:12px;display:flex}.age.svelte-1n46o8q{color:#999}.content.svelte-1n46o8q{flex-direction:column;flex:1;display:flex;overflow:hidden}.content-header.svelte-1n46o8q{background:#fff;border-bottom:1px solid #e0e0e0;padding:16px 24px}.header-split.svelte-1n46o8q{justify-content:space-between;align-items:flex-start;gap:24px;display:flex}.patient-summary.svelte-1n46o8q h2:where(.svelte-1n46o8q){margin:0 0 4px;font-size:18px;font-weight:600}.patient-info.svelte-1n46o8q{color:#666;font-size:13px}.metrics-panel.svelte-1n46o8q{grid-template-columns:repeat(3,1fr);gap:12px 24px;min-width:380px;display:grid}.metric.svelte-1n46o8q{flex-direction:column;gap:4px;display:flex}.metric-label.svelte-1n46o8q{text-transform:uppercase;letter-spacing:.5px;color:#888;font-size:10px;font-weight:600}.metric-value.svelte-1n46o8q{color:#1a1a1a;font-size:14px;font-weight:600}.metric-bar.svelte-1n46o8q{background-color:#e0e0e0;border-radius:2px;height:4px;margin-top:2px}.empty-state.svelte-1n46o8q{color:#999;flex:1;justify-content:center;align-items:center;font-size:15px;display:flex}.empty-state.svelte-1n46o8q p:where(.svelte-1n46o8q){margin:0}.thread-list.svelte-1n46o8q{flex:1;padding:16px 24px;overflow-y:auto}.thread-card.svelte-1n46o8q{border:1px solid #e0e0e0;border-radius:8px;margin-bottom:12px;overflow:hidden}.thread-header.svelte-1n46o8q{cursor:pointer;background:#fff;justify-content:space-between;align-items:center;padding:12px 16px;transition:background .15s;display:flex}.thread-header.svelte-1n46o8q:hover{background:#f9f9f9}.thread-title.svelte-1n46o8q{align-items:center;gap:8px;font-size:14px;display:flex}.status-dot.svelte-1n46o8q{border-radius:50%;flex-shrink:0;width:10px;height:10px}.appointment.svelte-1n46o8q{font-weight:600}.doctor.svelte-1n46o8q{color:#666;font-size:13px}.thread-actions.svelte-1n46o8q{align-items:center;gap:12px;font-size:12px;display:flex}.status-badge.svelte-1n46o8q{color:#fff;text-transform:uppercase;letter-spacing:.3px;border-radius:4px;padding:2px 8px;font-size:11px;font-weight:600}.meta.svelte-1n46o8q{color:#888}.chevron.svelte-1n46o8q{color:#999;font-size:11px}.thread-messages.svelte-1n46o8q{background:#fafafa;border-top:1px solid #e0e0e0;flex-direction:column;gap:8px;padding:12px 16px;display:flex}.message.svelte-1n46o8q{white-space:pre-wrap;border-radius:8px;max-width:80%;padding:8px 12px;font-size:13px;line-height:1.5}.from-system.svelte-1n46o8q{background:#e8eaf6;border-bottom-left-radius:2px;align-self:flex-start}.from-patient.svelte-1n46o8q{background:#e3f2fd;border-bottom-right-radius:2px;align-self:flex-end}.message-meta.svelte-1n46o8q{color:#666;justify-content:space-between;margin-bottom:4px;font-size:11px;display:flex}.sender.svelte-1n46o8q{font-weight:600}.message-body.svelte-1n46o8q{word-break:break-word}.undelivered.svelte-1n46o8q{color:#c62828;margin-top:4px;font-size:10px;display:block}
