/* Shared workspaces: consistent hierarchy, controls and readable density. */
:root{--muted:#526c76;--line:#d8e4e9;--surface:#fff}
#sidebar nav button,#sidebar summary{font-size:13px;min-height:38px;padding:9px 11px}
#sidebar{gap:18px;padding:10px 20px}.title-row h1{font-size:25px;line-height:36px}.subtitle{font-size:14px;line-height:24px;color:var(--muted)}
button,input,select{min-height:36px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #62b9c6;outline-offset:3px}
.flow-filter{background:white;border:1px solid var(--line);border-radius:12px;padding:14px;gap:16px;margin-bottom:18px}.flow-filter label{font-size:13px;color:#42626d}.flow-filter input,.flow-filter select{border-radius:7px;background:#fbfdfe}
.op-sheet,.clinical-panel{border-radius:12px}.op-tabs{margin:16px 0}.op-tabs button{font-size:14px;padding:10px 16px}.op-card{border-radius:10px}.op-card p,.visit-card p{font-size:13px;line-height:22px}.visit-card h3{font-size:14px;line-height:23px;margin:12px 0}.visit-time{font-size:12px;line-height:20px}
.flow-board{grid-template-columns:repeat(7,minmax(240px,1fr));min-width:1750px}.flow-column.diagnostics{border-top:3px solid #e0b259}.flow-column.review{border-top:3px solid #7c8ed2}.flow-column.ready{border-top:3px solid #57a4aa}.flow-column.closed{border-top:3px solid #94a5ac}
.encounter-next-actions{display:grid;gap:9px}.encounter-status{line-height:23px}.encounter-tabs{gap:5px}.encounter-tabs button{font-size:13px}.encounter-context dl{font-size:13px}.encounter-header h1{line-height:38px}.soap-section-title p{line-height:23px}
.schedule-nav{display:flex;gap:12px;align-items:center;margin:16px 0}.schedule-nav strong{margin:0 8px}.schedule-grid{display:grid;grid-template-columns:1fr;gap:14px;overflow-x:auto}.schedule-grid.week{grid-template-columns:repeat(7,minmax(225px,1fr))}.schedule-day{background:#eef5f7;border:1px solid var(--line);border-radius:12px;padding:12px;min-height:260px}.schedule-day>h2{font-size:15px;line-height:24px;margin:0 0 14px}.schedule-day>h2 small{color:var(--muted);font-weight:400}.schedule-day .op-card{margin-bottom:12px;max-width:100%}.schedule-grid:not(.week) .schedule-day{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;align-content:start}.schedule-grid:not(.week) .schedule-day>h2{grid-column:1/-1}
.my-work-items,.op-column-content{max-height:none}.op-card-actions{gap:8px}td{line-height:23px}small{line-height:20px}
@media(max-width:1000px){#sidebar{align-items:center}#sidebar nav{gap:2px}#sidebar nav button,#sidebar summary{font-size:12px}.title-row{align-items:flex-start;gap:12px;flex-wrap:wrap}.schedule-nav{flex-wrap:wrap}}
@media(max-width:650px){#header{height:auto;min-height:52px;flex-wrap:wrap;padding:10px 16px}.header-right{flex-wrap:wrap}.flow-filter label{width:100%}.schedule-grid:not(.week) .schedule-day{grid-template-columns:1fr}}
@media(min-width:1100px){.flow-board{grid-template-columns:repeat(7,minmax(155px,1fr));min-width:1180px}.schedule-grid.week{grid-template-columns:repeat(7,minmax(145px,1fr))}.schedule-grid.week .op-card{padding:10px}.schedule-grid.week .op-card h3{font-size:13px}.schedule-grid.week .op-card-actions{display:grid}}
.visit-time,.visit-doctor,.encounter-status dd{overflow-wrap:anywhere}.visit-actions{display:grid;gap:6px}.flow-cards{padding:9px}.visit-card{padding:11px}.schedule-grid.week .op-card-top{flex-wrap:wrap}

dialog:has(.collaboration-sheet){width:min(980px,calc(100vw - 32px))}.collaboration-sheet table{white-space:normal;table-layout:fixed}.collaboration-sheet td,.collaboration-sheet th{overflow-wrap:anywhere;padding:12px}.collaboration-sheet td small{white-space:normal}.collaboration-sheet+h3{margin-top:24px}.collaboration-sheet button{margin:4px 4px 4px 0}

.result-row{display:grid;grid-template-columns:1.4fr 1fr .8fr 1.2fr .8fr;gap:8px}.result-row input{min-width:0;width:100%}@media(max-width:650px){.result-row{grid-template-columns:1fr 1fr;padding:12px 0;border-bottom:1px solid var(--line)}}
