.medix-video .video-cols{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,.75fr);gap:22px;align-items:start}.medix-video .stack{display:grid;gap:14px}.medix-video .demo-room{border:1px solid #cdd6e8;border-radius:10px;overflow:hidden;background:#172135;color:white}.medix-video .room-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px}.medix-video .room-top .tag{background:#e7efff;color:#254a89}.medix-video .room-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 12px 12px}.medix-video .video-tile{position:relative;min-height:200px;aspect-ratio:4/3;background:#26334a;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center}.medix-video video{width:100%;height:100%;object-fit:contain}.medix-video [data-video-local]{transform:scaleX(-1)}.medix-video .video-caption{position:absolute;bottom:0;left:0;right:0;padding:10px;background:#172135dc;font-size:13px}.medix-video .video-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:#f3f6fc}.medix-video .video-toolbar .btn{background:#fff}.medix-video .room-sidebar h2{font-size:17px;margin:0 0 12px}.medix-video .room-sidebar .xcard{padding:18px}.medix-video .room-sidebar .field{display:grid;margin-top:14px}.medix-video .room-sidebar select{min-width:0;max-width:100%}.medix-video .video-level meter{display:block;width:100%;height:14px;margin-top:6px}.medix-video .video-content{height:360px;padding:12px}.medix-video .video-content[hidden]{display:none}.medix-video .video-appointment{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;margin-bottom:12px}.medix-video [data-video-status]{min-height:24px}.medix-video .heading{margin-bottom:22px}.medix-video .heading .subline{overflow-wrap:anywhere}@media(max-width:1000px){.medix-video .video-cols{grid-template-columns:1fr}.medix-video .room-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.medix-video .room-sidebar{grid-template-columns:1fr}.medix-video .room-grid{gap:6px;padding:0 6px 6px}.medix-video .video-tile{min-height:160px;aspect-ratio:3/4}.medix-video .video-caption{font-size:11px;padding:6px}.medix-video .video-toolbar{gap:6px}.medix-video .video-appointment{align-items:stretch;flex-direction:column}.medix-video .heading{align-items:stretch;flex-direction:column;gap:10px}.medix-video .room-top{font-size:13px}.medix-video .room-top .tag{font-size:11px}}
/* Keep the media node mounted while only the chart column redraws. */
.with-video-chart .video-chart-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.with-video-chart .video-chart-heading h1{margin:4px 0 6px}
.with-video-chart .video-chart-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(340px,1fr);gap:20px;align-items:start}
.with-video-chart .video-chart-main{min-width:0}
.with-video-chart .video-chart-dock{position:sticky;top:88px;min-width:0;max-height:calc(100dvh - 108px);overflow:auto;scrollbar-width:thin;display:grid;gap:16px}
.with-video-chart .connected-visit>.heading{display:none}
.with-video-chart .clinical-split{display:block}
.with-video-chart .video-chart-checklist{display:grid;gap:14px}
.with-video-chart .v-patient{gap:10px}
.with-video-chart .v-patient>div:first-child{flex-basis:100%}
.with-video-chart .v-tabs{gap:6px;flex-wrap:wrap}
.with-video-chart .v-tabs .btn{font-size:12px;padding:8px 10px}
.with-video-chart .medix-video .heading{margin-bottom:10px;display:block}
.with-video-chart .medix-video .heading h1{font-size:20px;margin:0 0 6px}
.with-video-chart .medix-video .heading .kicker,.with-video-chart .medix-video .heading .subline{display:none}
.with-video-chart .medix-video .heading [data-video-back]{font-size:12px;padding:6px 10px;margin-top:6px}
.with-video-chart .medix-video .video-cols{display:block}
.with-video-chart .medix-video .room-grid{display:block;position:relative;padding:0 10px 10px}
.with-video-chart .medix-video .video-tile:nth-child(2){aspect-ratio:4/3;min-height:0;width:100%}
.with-video-chart .medix-video .video-tile:first-child{position:absolute;z-index:2;width:25%;aspect-ratio:3/4;min-height:0;right:20px;bottom:22px;border:2px solid white;box-shadow:0 2px 6px #0004}
.with-video-chart .medix-video .video-tile:first-child .video-caption{font-size:10px;padding:4px}
.with-video-chart .medix-video .video-toolbar{padding:10px;gap:6px}
.with-video-chart .medix-video .video-toolbar .btn{font-size:12px;padding:7px 9px}
.with-video-chart .medix-video .room-sidebar{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px}
.with-video-chart .medix-video .room-sidebar .xcard{padding:14px}
.with-video-chart .medix-video .video-auth-checklist{display:none}
.with-video-chart .video-in-call .video-device-checklist{display:none}
.with-video-chart [data-video-end]{border-color:#b34242;color:#a62f2f}
.with-video-chart [data-video-status]{padding:10px 12px;background:#edf3ff;color:#284c82;border-radius:6px;font-size:13px;margin:0}
.with-video-chart .note-fields textarea{min-height:52px}
.with-video-chart .video-chart-main [data-visit-appointment]:disabled{color:#354760;opacity:1;background:#f8faff}
@media(max-width:1100px){.with-video-chart .video-chart-grid{grid-template-columns:minmax(0,1fr) minmax(280px,.75fr);gap:12px}.with-video-chart .video-chart-dock{top:76px}.with-video-chart .note-fields{grid-template-columns:1fr}}
@media(max-width:760px){.with-video-chart .video-chart-grid{display:flex;flex-direction:column}.with-video-chart .video-chart-main,.with-video-chart .video-chart-dock{width:100%}.with-video-chart .video-chart-dock{position:static;max-height:none;order:-1}.with-video-chart .video-in-call .medix-video .room-grid{max-width:260px;margin:auto}.with-video-chart .video-in-call .medix-video .video-tile:nth-child(2){aspect-ratio:16/9}.with-video-chart .video-chart-heading{align-items:start}.with-video-chart .video-chart-heading h1{font-size:24px}.with-video-chart .video-chart-checklist{display:none}.with-video-chart .video-in-call .medix-video .heading{display:none}.with-video-chart .medix-video .room-top{padding:9px 12px}.with-video-chart .video-chart-dock:has(.video-in-call){position:sticky;top:64px;z-index:8;background:#fff;border:1px solid #d6dfef;border-radius:8px;padding:8px;box-shadow:0 4px 12px #152b4820;max-height:44dvh;overflow:auto}.with-video-chart .video-in-call .medix-video .room-sidebar{display:none}.with-video-chart .video-in-call .medix-video .stack{gap:6px}.with-video-chart .video-in-call .medix-video .tiny{display:none}}

.medix-video [data-video-remote],.medix-video [data-video-content]{transform:none!important}
/* Keep the entire self-view image visible; its label must not cover the face. */
.with-video-chart .medix-video .video-tile:first-child{width:48%;min-width:140px;max-width:260px;aspect-ratio:auto;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}
.with-video-chart .medix-video .video-tile:first-child video{position:static;inset:auto;display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;flex:none}
.with-video-chart .medix-video .video-tile:first-child .video-caption{position:static;flex:none;white-space:normal;font-size:12px;line-height:1.35;padding:4px 6px}
