body.ui-workspace{background-color:#f4f7f5;background-image:linear-gradient(#24745b04 1px,transparent 1px),linear-gradient(90deg,#24745b04 1px,transparent 1px);background-size:28px 28px}
.ui-page-heading{position:relative;isolation:isolate}.ui-page-heading:after{content:'';position:absolute;z-index:-1;pointer-events:none;inset:0 0 0 45%;opacity:.12;background:center right/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 100'%3E%3Cpath d='M0 55h120l14-9 13 9h50l12-22 13 49 18-72 17 45h100l14-9 13 9h50l12-22 13 49 18-72 17 45h101' fill='none' stroke='%231b6b5d' stroke-width='2'/%3E%3C/svg%3E")}
.history-panel{min-width:0;margin:20px 0;padding:24px!important;border:1px solid #dae6df!important;background:#fff!important;border-radius:16px!important}.history-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.history-heading h2{margin:5px 0 18px;font-size:21px;color:#164e43}.history-eyebrow{font-size:11px;letter-spacing:2px;color:#789584}.history-scope{font-size:12px;color:#55786c}.history-controls{display:flex;align-items:end;flex-wrap:wrap;gap:9px}.history-controls label,.history-chart-tools label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#58756b}.history-panel button,.history-panel input,.history-panel select{border:1px solid #d7e4dd;border-radius:7px;background:#fff;color:#245a4d;padding:9px 12px;font:inherit;min-width:0}.history-panel button{cursor:pointer}.history-panel button[type=submit]{background:#1b6b5d;color:white}.history-panel button:disabled{opacity:.4;cursor:default}.history-status,.history-chart-note,.history-source{font-size:12px;color:#6e827a;line-height:1.8;margin:12px 0}.history-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.history-stat{padding:15px;background:#f5f9f6;border:1px solid #e5eee8;border-radius:9px;display:flex;flex-direction:column;gap:8px}.history-stat span,.history-stat small{font-size:12px;color:#6c8377}.history-stat strong{font-size:20px;color:#215c4a;font-variant-numeric:tabular-nums}.history-chart-tools{display:flex;gap:15px;margin-top:18px}.history-chart{height:330px;width:100%}.history-table-wrap{overflow:auto;max-height:430px}.history-panel table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}.history-panel th,.history-panel td{padding:12px;text-align:left;border-bottom:1px solid #e8eee9}.history-panel th{background:#f5f8f6;color:#5b7566}.history-pages{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:14px;font-size:12px}.history-source{border-top:1px solid #e6eee8;padding-top:12px}.history-metric-label[hidden]{display:none}
.right-column{min-width:0}.history-panel{box-sizing:border-box;max-width:100%}.history-table-wrap{max-width:100%}
/* Shared records: fixed, usable people column; one continuous detail surface. */
body.ui-workspace[data-page=shared_data] .two-column-layout{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:22px;align-items:start}
body.ui-workspace[data-page=shared_data] .left-column,body.ui-workspace[data-page=shared_data] .right-column{width:100%;min-width:0;max-width:none}
body.ui-workspace[data-page=shared_data] .left-column{display:grid;gap:18px;align-content:start}
body.ui-workspace[data-page=shared_data] .left-column>.card{margin:0}
body.ui-workspace[data-page=shared_data] .users-section{height:auto;overflow:visible}
body.ui-workspace[data-page=shared_data] .users-grid{flex:none;max-height:480px;overflow:auto;overscroll-behavior:contain;padding-right:0}
body.ui-workspace[data-page=shared_data] .users-grid .empty-state{padding:28px 16px;min-height:140px;line-height:1.8}
body.ui-workspace[data-page=shared_data] .add-relation-inline{padding:12px;display:grid;grid-template-columns:minmax(0,1fr)}
body.ui-workspace[data-page=shared_data] .add-relation-inline input,body.ui-workspace[data-page=shared_data] .add-relation-inline button{width:100%;min-width:0}
body.ui-workspace[data-page=shared_data] .add-relation-inline button{background:#19776b}
body.ui-workspace[data-page=shared_data] .history-panel{margin:0}
body.ui-workspace[data-page=shared_data] .history-heading{align-items:flex-start}
body.ui-workspace[data-page=shared_data] .history-heading h2{font-size:21px;margin-bottom:18px}
body.ui-workspace[data-page=shared_data] .history-scope{flex-shrink:0;padding-top:5px}
body.ui-workspace[data-page=shared_data] .history-controls{gap:10px;padding-bottom:16px;border-bottom:1px solid #e6eee8}
body.ui-workspace[data-page=shared_data] .history-controls label{flex:1 1 150px;max-width:210px}
body.ui-workspace[data-page=shared_data] .history-controls input{width:100%;min-width:0}
body.ui-workspace[data-page=shared_data] .history-controls input:disabled{opacity:.55;cursor:not-allowed}
body.ui-workspace[data-page=shared_data] .history-chart-tools{flex-wrap:wrap}
body.ui-workspace[data-page=shared_data] .history-chart-tools label{flex:0 1 180px;min-width:0}
body.ui-workspace[data-page=shared_data] .history-chart-tools select{width:100%}
body.ui-workspace[data-page=shared_data] .history-panel:not([data-state=ready]) :is(.history-stats,.history-chart-tools,.history-chart,.history-chart-note,.history-table-wrap,.history-pages,.history-source){display:none}
body.ui-workspace[data-page=shared_data] .history-panel:not([data-state=ready]) .history-status{display:flex;align-items:center;justify-content:center;min-height:180px;margin:20px 0 0;padding:28px;text-align:center;border:1px dashed #dce8e0;border-radius:10px;background:#f7faf8;font-size:14px;line-height:1.9}
body.ui-workspace[data-page=shared_data] .history-panel[data-state=error] .history-status{color:#9b4135;background:#fff8f5;border-color:#efdcd4}
body.ui-workspace[data-page=shared_data] .history-panel[data-state=unselected] :is(.shared-reports,.history-controls){display:none}
body.ui-workspace[data-page=shared_data] .shared-reports{min-width:0;margin:24px 0 0;padding:22px 0 0;border-top:1px solid #e6eee8}
body.ui-workspace[data-page=shared_data] .shared-reports>.card-title{display:block;font-size:18px;padding:0;border:0;margin:0 0 16px}
body.ui-workspace[data-page=shared_data] .filter-bar{margin-top:14px;padding:12px;gap:10px}
body.ui-workspace[data-page=shared_data] .date-range{flex:1 1 280px;min-width:0;padding:0;border:0;background:transparent;border-radius:0}
body.ui-workspace[data-page=shared_data] .date-range input{flex:1 1 110px;min-width:0;width:110px;background:#fff;border:1px solid #d7e4dd;padding:9px;border-radius:7px}
body.ui-workspace[data-page=shared_data] .filter-bar button{white-space:nowrap}
body.ui-workspace[data-page=shared_data] .shared-reports .empty-state{padding:28px 16px;min-height:0;line-height:1.8}
body.ui-workspace[data-page=shared_data] .shared-reports .report-item:last-child{margin-bottom:0}
body.ui-workspace[data-page=health_center] .tabs [data-tab=alerts]{display:flex;align-items:center;justify-content:center;gap:8px}
body.ui-workspace[data-page=health_center] .health-alert-icon{width:18px;height:18px;flex-shrink:0}
@media(max-width:960px){body.ui-workspace[data-page=shared_data] .two-column-layout{grid-template-columns:minmax(0,1fr)}body.ui-workspace[data-page=shared_data] .left-column,body.ui-workspace[data-page=shared_data] .right-column{width:100%;min-width:0;max-width:none}.filter-bar .date-range{flex-wrap:wrap}}
@media(max-width:900px){.history-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.history-panel{padding:16px!important}.history-heading{align-items:start}.history-chart{height:300px}}@media(prefers-reduced-motion:reduce){.history-panel *{scroll-behavior:auto!important}}
@media(max-width:600px){body.ui-workspace[data-page=shared_data] .history-heading{flex-direction:column;gap:0}body.ui-workspace[data-page=shared_data] .history-scope{padding:0 0 16px}body.ui-workspace[data-page=shared_data] .history-controls label{max-width:none;flex-basis:calc(50% - 10px)}body.ui-workspace[data-page=shared_data] .history-controls button{flex:1 1 auto}body.ui-workspace[data-page=shared_data] .filter-bar button{flex:1 1 auto}body.ui-workspace[data-page=shared_data] .history-stat{padding:10px}body.ui-workspace[data-page=shared_data] .history-stat strong{font-size:17px}}
