:root{--bg: #f5f7fa;--surface: #ffffff;--surface-2: #eef3f8;--ink: #17212f;--muted: #667385;--line: #d9e1ea;--nav: #142942;--nav-2: #1e476b;--blue: #25699a;--blue-2: #e5f1fa;--green: #1f7a63;--amber: #a46718;--amber-bg: #fff5df;--red: #9a3d3d;--red-bg: #fbeaea;--shadow: 0 14px 35px rgba(20, 41, 66, .08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;letter-spacing:0}html,body{overflow-x:hidden}button,input,select{font:inherit}button{border:0;cursor:pointer}.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(380px,520px);background:linear-gradient(105deg,#142942f0,#1e476be6),url(https://images.unsplash.com/photo-1581093458791-9f3c3c58b3d7?auto=format&fit=crop&w=1800&q=80);background-size:cover;background-position:center}.login-intro{color:#fff;display:flex;flex-direction:column;justify-content:flex-end;padding:56px}.brand-mark{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:8px;background:#ffffff24;border:1px solid rgba(255,255,255,.24);margin-bottom:20px}.brand-mark svg{width:28px;height:28px}.login-intro h1{margin:0 0 12px;max-width:760px;font-size:clamp(34px,5vw,66px);line-height:.96;letter-spacing:0}.login-intro p{max-width:660px;color:#ffffffd1;font-size:18px;line-height:1.55;margin:0}.login-panel{align-self:center;margin:28px;background:#fffffff5;border:1px solid rgba(255,255,255,.5);border-radius:8px;padding:34px;box-shadow:var(--shadow)}.login-panel h2{margin:0 0 8px;font-size:26px}.login-panel .subtle{margin-bottom:28px}.login-error{margin:0 0 18px;border:1px solid #e6bcbc;border-radius:8px;background:var(--red-bg);color:#8a3434;font-size:13px;font-weight:700;line-height:1.4;padding:12px 14px}.field{display:grid;gap:8px;margin-bottom:16px}.field-help{color:var(--muted);font-size:12px;font-weight:500;line-height:1.35}.field label{font-size:13px;font-weight:700;color:#344054}.field input,.field select,.search-box input,.filters input,.filters select{width:100%;min-height:42px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);padding:0 12px;outline:none}.field input:focus,.search-box input:focus,.filters input:focus,.filters select:focus{border-color:var(--blue);box-shadow:0 0 0 3px #25699a1f}.autocomplete-field{position:relative}.autocomplete-list{display:none;position:absolute;z-index:12;top:calc(100% - 10px);left:0;right:0;max-height:260px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow)}.autocomplete-list.open{display:block}.autocomplete-list button,.empty-suggestion{width:100%;min-height:40px;padding:9px 12px;text-align:left;background:#fff;color:var(--ink);border-bottom:1px solid var(--line);font-weight:600}.autocomplete-list button:hover{background:var(--surface-2)}.autocomplete-list .muted-action,.empty-suggestion{color:var(--muted);font-weight:600}.selected-receptor-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.selected-receptor-summary strong,.selected-receptor-summary span{display:block}.selected-receptor-summary span{margin-top:3px;color:var(--muted);font-size:12px}.primary-btn,.secondary-btn,.ghost-btn,.icon-btn{min-height:38px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;font-weight:700;white-space:nowrap}.primary-btn{background:var(--blue);color:#fff}.secondary-btn{background:var(--blue-2);color:var(--nav);border:1px solid #c8dfef}.ghost-btn,.icon-btn{background:#fff;color:var(--nav);border:1px solid var(--line)}.icon-btn{width:38px;padding:0}.app-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.sidebar{background:var(--nav);color:#fff;padding:22px 16px;display:flex;flex-direction:column;gap:22px}.sidebar-brand{display:flex;gap:12px;align-items:center;padding:0 6px 18px;border-bottom:1px solid rgba(255,255,255,.14)}.sidebar-brand strong{display:block;font-size:18px}.sidebar-brand span{display:block;color:#ffffffb8;font-size:12px;margin-top:2px}.nav{display:grid;gap:6px}.nav button{min-height:42px;border-radius:6px;background:transparent;color:#ffffffc2;display:flex;align-items:center;gap:10px;padding:0 10px;text-align:left}.nav button.active,.nav button:hover{background:#ffffff1f;color:#fff}.role-card{margin-top:auto;background:#ffffff14;border:1px solid rgba(255,255,255,.14);border-radius:8px;padding:14px;font-size:13px;color:#ffffffc2}.role-card strong{display:block;color:#fff;margin-bottom:4px}.account-entry-btn{width:100%;margin-top:12px;border:1px solid rgba(255,255,255,.28);border-radius:6px;background:#ffffff14;color:#fff;cursor:pointer;font-size:12px;font-weight:800;min-height:34px}.account-entry-btn:hover{background:#ffffff24}.main{min-width:0}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 28px;background:var(--surface);border-bottom:1px solid var(--line)}.topbar h1{margin:0;font-size:22px}.top-actions{display:flex;align-items:center;gap:10px}.user-pill{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;color:var(--muted);font-size:13px}.avatar{width:28px;height:28px;border-radius:50%;background:var(--nav-2);color:#fff;display:grid;place-items:center;font-weight:800;font-size:12px}.content{padding:28px}.page{display:none}.page.active{display:block}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}.section-head h2{margin:0 0 4px;font-size:24px}.subtle{color:var(--muted);margin:0;line-height:1.45}.grid{display:grid;gap:18px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 330px;align-items:start}.dashboard-grid-client{grid-template-columns:minmax(0,1fr) 330px;margin-bottom:24px}.dashboard-main-stack{display:grid;gap:18px;min-width:0}.dashboard-metrics-panel{margin-top:0}.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.card,.panel{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.metric{padding:18px}.metric span{color:var(--muted);font-size:13px;font-weight:700}.metric strong{display:block;margin-top:10px;font-size:30px}.metric small{display:block;color:var(--muted);margin-top:4px}.panel{padding:18px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-title h3{margin:0;font-size:17px}.search-box{display:flex;gap:10px;min-width:min(520px,100%)}.dashboard-search-panel{display:grid;gap:14px;margin-bottom:18px}.dashboard-search-panel h3{margin:0 0 4px;font-size:20px}.dashboard-search-box{max-width:920px}.dashboard-search-results{min-height:42px}.dashboard-date-filter{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding-top:2px}.dashboard-date-filter-title{width:100%;font-size:13px;font-weight:800;color:#344054}.dashboard-date-filter .field{width:180px;margin-bottom:0}.dashboard-context-line{margin-top:6px}.dashboard-institution-filter-panel{display:grid;gap:12px;margin-bottom:18px}.dashboard-institution-filter-row{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.dashboard-institution-filter{min-width:min(420px,100%);margin-bottom:0}.dashboard-result-list{display:grid;gap:8px}.dashboard-result{min-width:0;width:100%;border:1px solid var(--line);background:#f8fafc;border-radius:8px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;cursor:pointer}.dashboard-result:hover{border-color:#9fb9d7;background:#f3f8fd}.dashboard-result strong,.dashboard-result small{display:block;overflow-wrap:anywhere}.dashboard-result small{color:var(--muted);margin-top:4px}.dashboard-metrics{margin-bottom:18px}.institutional-dashboard-metrics{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.institutional-dashboard-metrics .card{box-shadow:none}.dashboard-alerts-panel{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow-y:auto}.dashboard-empty{padding:24px;color:var(--muted);text-align:center}.dashboard-table-detail{display:block;margin-top:3px;color:var(--muted);font-size:11px}.dashboard-percentage{color:var(--blue);font-weight:800}.dashboard-older-activity{display:grid;gap:10px;margin-top:16px}.dashboard-older-activity h4{margin:0;color:#415164;font-size:14px}.table-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;color:var(--muted);font-size:13px}.table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:8px;background:#fff}table{width:100%;border-collapse:collapse;min-width:820px}th,td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;font-size:14px;vertical-align:middle}th{color:#415164;background:#f8fafc;font-size:12px;text-transform:uppercase;letter-spacing:0}.table-sort-btn{appearance:none;border:0;background:transparent;padding:0;margin:0;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer;text-align:left;white-space:nowrap}.table-sort-btn:hover{color:#1f3d5a}tr:last-child td{border-bottom:0}.badge{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:0 9px;font-size:12px;font-weight:800;white-space:nowrap}.badge.green{background:#e3f4ef;color:var(--green)}.badge.blue{background:var(--blue-2);color:var(--blue)}.badge.amber{background:var(--amber-bg);color:var(--amber)}.badge.red{background:var(--red-bg);color:#9a3d3d}.alerts{display:grid;gap:12px}.alert{border:1px solid #ecd39b;background:var(--amber-bg);border-radius:8px;padding:13px}.alert.automatic,.alert.red{border-color:#e6bcbc;background:var(--red-bg)}.alert.observation{border-color:#ecd39b;background:var(--amber-bg)}.alert.automatic,.alert.observation{border-left-width:4px}.alert strong{display:block;margin-bottom:5px;font-size:13px}.alert p{margin:0;color:#5d4b31;font-size:13px;line-height:1.4}.alert-meta{margin-top:7px;color:var(--muted);font-size:12px;line-height:1.35}.alert .ghost-btn{margin-top:10px}.alerts-page-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);align-items:start;gap:18px}.alerts-list-panel{min-width:0}.alerts-table{min-width:980px}.alerts-table tr.automatic td:first-child{border-left:4px solid #c2410c}.alerts-table tr.observation td:first-child{border-left:4px solid #d97706}.alerts-table tbody tr.automatic{background:#fef2f28c}.alerts-table tbody tr.observation{background:#fffbeba6}.alerts-note-cell{min-width:260px;max-width:420px;line-height:1.45}.alerts-scope-panel{position:sticky;top:18px}.alerts-scope-panel h3{margin:0 0 10px;font-size:16px}.alerts-scope-panel p{margin:0;color:#526173;font-size:14px;line-height:1.5}.alert .badge{margin-top:10px;display:inline-flex}.note{border-left:4px solid var(--blue);background:var(--blue-2);color:#244258;padding:12px 14px;border-radius:6px;line-height:1.45}.filters{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr 1fr auto;gap:10px;margin-bottom:16px}.case-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}.case-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.patient-identity-head{display:grid;gap:8px}.patient-identity-head h3{margin:0}.patient-identity-name{font-size:32px;font-weight:800;line-height:1.12;letter-spacing:0;color:var(--ink);word-break:break-word}.kv{min-width:0;padding:14px;background:#f9fbfd;border:1px solid var(--line);border-radius:8px}.kv span{display:block;color:var(--muted);font-size:12px;font-weight:800;margin-bottom:6px}.kv strong{font-size:15px;overflow-wrap:anywhere}.donor-list{display:grid;gap:3px}.donor-list-item{line-height:1.35}.result-strip{grid-template-columns:repeat(6,minmax(0,1fr))}.result-strip-emphasis{grid-template-columns:repeat(3,minmax(0,1fr))}.patient-metric{min-height:116px}.patient-metric strong{display:block;font-size:18px;line-height:1.25}.result-metric-highlight{background:#f8fbfe;border-color:#cfe0ee}.result-metric-strong strong{font-size:28px;font-weight:800;color:var(--blue)}.institutional-result-summary{grid-template-columns:minmax(220px,1.25fr) repeat(2,minmax(0,1fr))}.institutional-quimerism-metric strong{font-size:44px;line-height:1}.patient-summary-metrics{display:grid;grid-template-columns:minmax(220px,1.35fr) repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}.patient-summary-metric{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-height:112px;padding:18px;border:1px solid var(--line);border-radius:8px;background:#f8fbfe}.patient-summary-metric span{display:block;color:var(--muted);font-size:12px;font-weight:700;line-height:1.2;text-transform:uppercase}.patient-summary-metric strong{display:block;color:var(--ink);font-size:22px;font-weight:800;line-height:1.15;overflow-wrap:anywhere}.patient-summary-metric-primary{border-color:#cfe0ee;background:var(--blue-2)}.patient-summary-metric-primary strong{color:var(--blue);font-size:48px;line-height:1}.patient-control-note{margin-top:14px;border-left:4px solid var(--blue);background:var(--blue-2);border-radius:8px;padding:12px 14px}.patient-control-note h4{margin:0 0 6px;font-size:14px}.patient-control-note p{margin:0;line-height:1.45}.chart-card{min-height:360px}.chart-linked-block{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.chart-linked-head{margin-bottom:10px}.chart-linked-head h3{margin:0 0 3px;font-size:16px}.chart-linked-head .subtle{font-size:12px}.chart-linked-table-wrap{margin-top:0}.chart-linked-table{font-size:13px}.chart-linked-table thead th,.chart-linked-table td,.chart-linked-table th{padding-top:10px;padding-bottom:10px}.chart-linked-table th:nth-child(1),.chart-linked-table td:nth-child(1),.chart-linked-table th:nth-child(3),.chart-linked-table td:nth-child(3),.chart-linked-table th:nth-child(4),.chart-linked-table td:nth-child(4){text-align:center}.chart-linked-table th:nth-child(6),.chart-linked-table td:nth-child(6){text-align:center}.chart-linked-table td:nth-child(5){white-space:nowrap}.chart-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;flex-wrap:wrap}.chart-toolbar-note{margin:4px 0 0}.chart-toolbar-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.segmented{display:inline-flex;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#fff}.segmented button{min-height:34px;padding:0 12px;color:var(--muted);background:#fff;border-right:1px solid var(--line)}.segmented button:last-child{border-right:0}.segmented button.active{background:var(--blue);color:#fff}.chart-root{position:relative;min-width:0}.chart-shell{display:flex;flex-direction:column;gap:12px}.chart-visual{position:relative}.chart-svg{width:100%;height:auto;display:block;min-height:320px}.chart-axis-label{font-size:12px;fill:#697789}.chart-grid-line{stroke:#e3ebf2;stroke-width:1;stroke-dasharray:4 6}.chart-axis{stroke:#bcc8d4;stroke-width:1.2}.chart-point,.chart-bar{transition:opacity .15s ease,transform .15s ease,filter .15s ease}.chart-point:hover,.chart-bar:hover{filter:brightness(.98);opacity:1}.chart-point-last{filter:drop-shadow(0 0 7px rgba(37,105,154,.22))}.chart-bar-last{filter:drop-shadow(0 2px 8px rgba(37,105,154,.2))}.chart-legend{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;color:var(--muted);font-size:13px}.chart-legend-item{display:inline-flex;align-items:center;gap:8px}.chart-legend-swatch{width:12px;height:12px;border-radius:999px}.chart-tooltip{position:absolute;z-index:3;min-width:230px;max-width:300px;background:#111827f5;color:#fff;border-radius:10px;padding:12px 14px;box-shadow:0 14px 30px #0f172a2e;pointer-events:none}.chart-tooltip-title{font-size:13px;color:#d6e0ea;margin-bottom:4px}.chart-tooltip-value{font-size:20px;font-weight:800;margin-bottom:10px}.chart-tooltip-grid{display:grid;gap:8px}.chart-tooltip-grid div{display:grid;gap:2px}.chart-tooltip-grid span{font-size:11px;color:#9fb0c3}.chart-tooltip-grid strong{font-size:13px;font-weight:700;color:#fff}.chart-root-empty{padding:28px 22px;border:1px dashed #cfd8e3;border-radius:10px;background:#fbfdff}.chart-root-empty h4{margin:0 0 8px;font-size:16px}.pdf-preview{border:1px solid var(--line);border-radius:8px;background:linear-gradient(#fff,#fff) padding-box,repeating-linear-gradient(0deg,#f2f5f8 0 9px,#fff 9px 18px);min-height:250px;padding:18px}.pdf-page{min-height:214px;background:#fff;border:1px solid #cfd8e3;box-shadow:0 10px 18px #14294214;padding:18px}.pdf-line{height:8px;background:#d8e1eb;border-radius:99px;margin:12px 0}.pdf-line.short{width:58%}.internal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.internal-forms{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.collapsible-form-head{margin-bottom:0}.collapsible-form-head .subtle{margin-top:4px}.collapsible-form-body{margin-top:16px}.collapsible-form-body[hidden],[hidden]{display:none!important}.data-form{display:grid;gap:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-wide{grid-column:1 / -1}.field textarea{width:100%;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);padding:10px 12px;resize:vertical;outline:none}.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #25699a1f}.module{min-height:148px;padding:18px;display:grid;align-content:space-between}.module svg,.nav svg,.icon{width:19px;height:19px;flex:0 0 auto}.module h3{margin:12px 0 6px;font-size:17px}.module p{color:var(--muted);margin:0;line-height:1.42;font-size:14px}.modal-backdrop{position:fixed;inset:0;background:#0c18267a;display:none;align-items:center;justify-content:center;padding:18px;z-index:20}.modal-backdrop.open{display:flex}.modal{width:min(980px,100%);max-width:calc(100vw - 36px);max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);overflow:hidden;background:#fff;border-radius:8px;box-shadow:0 24px 70px #0c182647;border:1px solid var(--line)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border-bottom:1px solid var(--line)}.modal-header h3{margin:0}.modal-body{padding:18px;overflow:auto;max-height:calc(100vh - 170px);max-height:calc(100dvh - 170px)}.modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:18px;border-top:1px solid var(--line)}.institutional-summary-backdrop{background:#0c182694}.institutional-summary-modal{width:min(820px,100%)}.institutional-summary-header{padding:20px 24px}.institutional-summary-header h3{font-size:18px;font-weight:800}.institutional-summary-close{color:var(--muted);font-size:24px;font-weight:500;line-height:1}.institutional-summary-close:hover{background:var(--surface-2);color:var(--ink)}.institutional-summary-body{padding:26px 24px 28px}.institutional-summary-patient{margin:0 0 22px;color:var(--ink);font-size:28px;font-weight:800;line-height:1.2}.institutional-summary-metrics{display:grid;grid-template-columns:minmax(210px,1.25fr) repeat(2,minmax(0,1fr));gap:14px}.institutional-summary-metric{min-width:0;min-height:126px;padding:20px;border:1px solid var(--line);border-radius:8px;background:#fbfcfe}.institutional-summary-metric span{display:block;margin-bottom:14px;color:var(--muted);font-size:11px;font-weight:800;line-height:1.2;text-transform:uppercase}.institutional-summary-metric strong{display:block;color:var(--ink);font-size:20px;font-weight:800;line-height:1.25;overflow-wrap:anywhere}.institutional-summary-metric-primary{border-color:#bdd8ea;background:var(--blue-2)}.institutional-summary-metric-primary strong{color:var(--blue);font-size:50px;line-height:1}.institutional-summary-observation{margin-top:18px;padding:14px 16px;border-left:3px solid #b6cddd;background:#f6f9fc}.institutional-summary-empty{margin:26px 0 8px;padding:28px 20px;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:15px;font-weight:600;text-align:center}.account-modal-backdrop{background:#11182794}.account-modal{max-width:720px;width:min(720px,calc(100vw - 32px))}.account-modal-header{border-bottom:1px solid var(--line)}.account-modal-body{display:grid;gap:18px;padding:22px 24px}.account-section{display:grid;gap:12px}.account-section+.account-section{border-top:1px solid var(--line);padding-top:18px}.account-section h4{margin:0;font-size:14px}.account-readonly-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.account-readonly-grid input[readonly]{background:#f8fafc;color:#4c5a6a}.account-empty{color:var(--muted);padding:24px;text-align:center}.account-modal-actions{border-top:1px solid var(--line);padding:16px 24px}.field-error,.field-success{margin:6px 0 0;font-size:12px;font-weight:700}.field-error{color:#9a3d3d}.field-success{color:var(--green)}.filter-error{margin:12px 0 0;color:#9a3d3d;font-size:13px;font-weight:600}.filter-section-heading{display:flex;gap:8px;align-items:baseline;margin-bottom:14px}.filter-section-heading span,.dashboard-date-filter-label{color:var(--muted);font-size:13px}.dashboard-date-filter-label{margin:10px 0 0;font-weight:600}.dashboard-filter-form{display:grid;grid-template-columns:minmax(240px,1fr) minmax(150px,180px) minmax(150px,180px) auto;gap:12px;align-items:end;width:100%}.dashboard-filter-form .field{margin-bottom:0}.dashboard-filter-actions{display:flex;gap:8px;min-height:42px}.dashboard-filter-error{grid-column:1 / -1;margin-top:0}@media(max-width:900px){.dashboard-filter-form{grid-template-columns:1fr 1fr}.dashboard-filter-search,.dashboard-filter-actions,.dashboard-filter-error{grid-column:1 / -1}}.institutional-summary-observation h4{margin:0 0 6px;font-size:13px}.institutional-summary-observation p{margin:0;color:#40536a;font-size:14px;line-height:1.5;white-space:pre-wrap}.institutional-summary-actions{padding:18px 24px}.profile-detail{display:grid;gap:18px}.profile-detail-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:6px}.profile-detail-item{border:1px solid #d7e1ec;border-radius:10px;padding:12px 14px;background:#f8fafc}.profile-detail-label{font-size:12px;font-weight:700;color:#64748b;text-transform:uppercase;margin-bottom:4px;letter-spacing:0}.profile-detail-value{font-size:15px;font-weight:600;color:#0f172a;line-height:1.35;word-break:break-word}.profile-detail-note{border-left:4px solid var(--blue);background:var(--blue-2);border-radius:8px;padding:12px 14px}.profile-detail-note h4,.profile-detail-section h4{margin:0 0 10px;font-size:14px}.profile-detail-note p{margin:0;color:var(--ink);line-height:1.45}.profile-detail-section{display:grid;gap:10px}.profile-detail .table-wrap{margin-top:0}.profile-detail .table-wrap table{min-width:100%}.profile-detail .table-wrap th{text-align:left}.profile-detail .table-wrap td:nth-child(2),.profile-detail .table-wrap td:nth-child(3),.profile-detail .table-wrap th:nth-child(2),.profile-detail .table-wrap th:nth-child(3){text-align:center}.profile-detail .note{margin:0}@media(max-width:1060px){.app-shell,.login-shell,.dashboard-grid,.alerts-page-grid,.case-layout{grid-template-columns:1fr}.sidebar{position:static;padding:18px}.nav{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.role-card{margin-top:0}.dashboard-alerts-panel{position:static;max-height:none}.alerts-scope-panel{position:static}.cards,.case-summary,.result-strip,.institutional-result-summary,.patient-summary-metrics,.institutional-summary-metrics,.internal-grid,.internal-forms,.filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.login-intro,.content,.topbar{padding:20px}.login-panel{margin:20px;padding:22px}.topbar{height:auto;align-items:flex-start;flex-direction:column}.top-actions,.section-head,.panel-title,.search-box{width:100%;flex-direction:column;align-items:stretch}.user-pill{width:100%;justify-content:flex-start}.nav,.cards,.case-summary,.result-strip,.institutional-result-summary,.internal-grid,.internal-forms,.form-grid,.filters{grid-template-columns:1fr}.sidebar{padding:16px}.sidebar-brand{padding-bottom:12px}.dashboard-result{align-items:flex-start;flex-direction:column}.dashboard-result .badge{align-self:flex-start}.dashboard-date-filter .field{width:min(220px,calc(50% - 8px))}.chart-toolbar-actions,.segmented{width:100%}.chart-toolbar-actions{justify-content:stretch}.segmented{display:flex;flex-wrap:wrap;overflow:visible}.segmented button{flex:1 1 auto;min-width:116px}.chart-svg{min-height:260px}.modal-backdrop{align-items:stretch;padding:8px}.modal{width:100%;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}.modal-header{padding:14px}.modal-body{padding:14px;max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px)}.modal-actions{padding:14px}.institutional-summary-header,.institutional-summary-actions{padding:14px 16px}.institutional-summary-backdrop{align-items:center}.institutional-summary-modal{height:auto;max-height:calc(100dvh - 16px)}.institutional-summary-body{padding:20px 16px 22px}.institutional-summary-patient{margin-bottom:18px;font-size:23px}.institutional-summary-metrics{grid-template-columns:1fr}.institutional-summary-metric{min-height:104px}}@media(max-width:480px){.content,.topbar,.login-intro{padding:16px}.panel,.metric{padding:14px}.primary-btn,.secondary-btn,.ghost-btn{min-height:42px;width:100%;white-space:normal}.icon-btn{min-width:42px;min-height:42px}.dashboard-date-filter .field,.dashboard-date-filter .secondary-btn,.dashboard-date-filter .ghost-btn,.search-box .primary-btn{width:100%}.table-pagination{align-items:stretch;flex-direction:column}.patient-identity-name{font-size:24px}.institutional-quimerism-metric strong{font-size:36px}.profile-detail-summary{grid-template-columns:1fr}.modal-actions{align-items:stretch;flex-direction:column-reverse}.institutional-summary-actions{flex-direction:column}}
