/* Approved Design 7 correction. Native hidden state, timers and actions are retained. */
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms {--priority-edge:#293447;--priority-surface:#0e1623;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms > .wrap {max-width:none;padding-inline:24px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .page-head {gap:12px;flex-wrap:wrap;padding-block:18px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #lounge:not([hidden]) {gap:18px;min-width:0;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .app-frame {padding:0;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .app-header {gap:12px;padding:16px 0;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .app-header > div:first-child {display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .app-header .rooms-subtitle {margin:0;font-size:12px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .app-header nav {margin-left:auto;font-size:12px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-room-stats {display:flex;flex-wrap:wrap;gap:8px;align-items:center;flex:1 1 100%;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-room-stat {display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--priority-edge);border-radius:999px;background:var(--priority-surface);font-size:12px;color:var(--neon-muted);white-space:nowrap;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-room-stat strong {color:var(--neon-lime);font-size:16px;font-variant-numeric:tabular-nums;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-room-stat[data-metric="waiting"] strong {color:var(--neon-amber);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-room-stat[data-metric="staff"] strong {color:var(--neon-cyan);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-top-search {margin-left:auto;display:flex;flex:0 1 290px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-top-search input {width:100%;min-width:0;border:1px solid var(--priority-edge);border-radius:999px;background:#080d17;color:var(--neon-text);padding:10px 15px;font:inherit;font-size:13px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms.mm-room-columns {min-width:0;gap:18px;align-items:start;overflow:visible;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-room-center {min-width:0;overflow:visible;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-room-team {min-width:0;padding:16px;border:1px solid var(--priority-edge);border-radius:20px;background:var(--neon-panel);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-room-team[hidden] {display:none!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-room-team #mm-team-panel[hidden] {display:none!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms .neon-room-team [data-band="team"] {padding:0;border:0;margin:0;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-room-tools {min-width:0;max-width:100%;margin:0;padding:0;overflow:visible;border:0;background:transparent;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-room-tools > :is(section,div):not(.mm-panel-size-controls) {min-width:0;max-width:100%;margin:0 0 16px;padding:16px;border:1px solid var(--priority-edge);border-radius:20px;background:var(--neon-panel);overflow:visible;box-sizing:border-box;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-room-center > section {padding:16px;margin-bottom:16px;border-radius:20px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-room-center section > h2,
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-room-center .band-head h2 {font-size:17px;line-height:1.35;white-space:normal;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band="clinic"] > ul {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:10px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band="clinic"] > ul {align-items:start;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band="clinic"] .clinic-card-body {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:7px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-clinic-name {font-size:13px;line-height:1.4;font-weight:650;color:var(--neon-text);min-width:0;overflow-wrap:break-word;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-clinic-native {grid-column:1 / -1;grid-row:2;font-size:12px;min-width:0;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-clinic-native > summary {cursor:pointer;color:var(--neon-muted);min-height:28px;display:list-item;list-style:disclosure-closed inside;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-clinic-native[open] > summary {list-style-type:disclosure-open;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-clinic-native[open] {padding-bottom:5px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band="clinic"] [data-tile] {padding:12px;min-height:0;min-width:0;border-radius:16px;border-color:var(--priority-edge);background:var(--priority-surface);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band="clinic"] [data-tile][data-priority-state="free"] {border-style:dashed;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band="clinic"] [data-tile][data-priority-state="assigned"]:not(.mm-attention-red,.mm-attention-amber,.mm-ai-red,.mm-ai-yellow) {border-color:var(--neon-lime);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms .room-row {align-items:flex-start;gap:8px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms .room-row > a {color:var(--neon-text)!important;font-size:14px;line-height:1.3;font-weight:700;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms :is(.name,.clinic-primary,.clinic-staff,.clinic-relative) {color:var(--neon-text)!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band="clinic"] .room-people {margin:6px 0;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band="clinic"] .room-people > li {padding:4px 0;font-size:13px;line-height:1.4;border-color:var(--priority-edge);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band="clinic"] .clinic-recorded-time {font-size:11px;line-height:1.4;color:var(--neon-muted);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms .clinic-duration-long::after {background:#351c27;color:var(--neon-red);border:1px solid #854151;border-radius:999px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms .private-label {color:var(--neon-violet-text);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms :is(.clinic-updated,.clinic-section-settings > summary) {color:var(--neon-muted);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band="clinic"] .room-count {font-size:10px;line-height:1.3;max-width:110px;min-height:24px;padding:4px 7px;border-radius:999px;background:#18263a;color:var(--neon-cyan);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms .room-join {display:inline-flex;align-items:center;justify-content:center;min-height:36px;border-radius:999px;border:1px solid var(--neon-cyan);background:transparent!important;color:var(--neon-cyan)!important;font-size:12px;padding:7px 12px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band="clinic"] .room-join {color:var(--neon-lime)!important;border-color:var(--neon-lime);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms .clinic-actions :is(button,select) {background:var(--priority-surface);color:var(--neon-body);border:1px solid var(--priority-edge);border-radius:8px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms .clinic-actions button[data-move="button"] {background:var(--neon-lime);color:var(--neon-on-lime);border-color:var(--neon-lime);border-radius:999px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms .clinic-actions [data-end-visit] {background:var(--priority-surface);color:var(--neon-red);border-color:#854151;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms .clinic-actions .checkout-source button {background:var(--priority-surface);color:var(--neon-blue-text);border-color:var(--neon-blue);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-clinic-metrics {display:grid;gap:4px;margin:7px 0;color:var(--neon-muted);font-size:12px;font-variant-numeric:tabular-nums;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-clinic-metrics .neon-visit-metric {color:var(--neon-lime);font-weight:650;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-clinic-metrics p {margin:0;line-height:1.45;overflow-wrap:anywhere;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms :is(.clinic-admin-menu,.clinic-information,.mm-team-menu) {color:var(--neon-body);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms :is(.clinic-admin-menu,.clinic-information,.mm-team-menu)[open] {background:var(--priority-surface);border-color:var(--priority-edge);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #patient-visit-launcher:not([hidden]) {padding:9px 12px;margin:0 0 12px;border-color:var(--priority-edge);border-radius:14px;background:var(--neon-panel);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #patient-visit-launcher h2 {font-size:14px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #patient-visit-launcher p {font-size:12px;margin:2px 0;}
/* The native clinic rail keeps every label and click target, with a bounded badge. */
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-workspace-rail .mm-group-clinic .mm-dir-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(26px,70px) 24px;gap:4px;align-items:center;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-workspace-rail .mm-counter {min-width:27px;min-height:27px;max-width:70px;border-radius:14px;background:rgba(34,211,238,.12);color:var(--neon-cyan);line-height:1.25;font-size:10px;white-space:normal;overflow-wrap:normal;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-workspace-rail .mm-search-box {background:#080d17;border:1px solid var(--priority-edge);border-radius:12px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-workspace-rail .mm-search-box input {background:transparent!important;border:0!important;box-shadow:none!important;color:var(--neon-text);min-width:0;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is(#mm-workspace-rail,#mm-room-tools) > .mm-panel-size-controls {padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;margin:0!important;box-shadow:none!important;overflow:visible;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-panel-grip::after {background:var(--priority-surface);color:var(--neon-cyan);border-color:var(--priority-edge);}
/* Override the legacy component's explicit light surfaces, including body portals. */
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is(.mm-wv-row,.mm-wv-popover) {--wv-ink:var(--neon-text);--wv-muted:var(--neon-muted);--wv-border:var(--priority-edge);--wv-control-bg:var(--priority-surface);--wv-control-ink:var(--neon-body);--wv-control-border:var(--priority-edge);--wv-yellow:var(--neon-amber);--wv-orange:var(--neon-amber);--wv-red:var(--neon-red);background:var(--priority-surface)!important;color:var(--neon-text)!important;border-color:var(--priority-edge)!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms #waiting-band .mm-wv-row {flex-wrap:nowrap!important;gap:8px;border-radius:14px;padding:10px;min-width:640px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #waiting-band .waiting-list {overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:5px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #waiting-band .mm-wv-name {font-size:14px;color:var(--neon-text);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is(.mm-wv-control,.mm-wv-popover select,.mm-wv-menu-group > summary,.mm-wv-menu-end) {background:var(--priority-surface)!important;color:var(--neon-text)!important;border-color:var(--priority-edge)!important;box-shadow:none;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-wv-menu-end {color:var(--neon-red)!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-wv-control {font-size:12px;min-height:36px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is(.mm-wv-icon,.mm-search-box .mm-icon) {filter:brightness(0) invert(.85);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-wv-popover :is(h3,dt,dd,summary) {color:var(--neon-text)!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-wv-popover :is(.mm-wv-detail-row,.mm-wv-message p) {background:#162133!important;color:var(--neon-body)!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-wv-row:is([data-severity="yellow"],[data-severity="orange"]) {border-color:var(--neon-amber)!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-wv-row[data-severity="red"] {border-color:var(--neon-red)!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is(.mm-wv-timer,.mm-wv-attention-label):is([data-severity="yellow"],[data-severity="orange"]) {background:#332916!important;color:var(--neon-amber)!important;border-color:#77571f!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is(.mm-wv-timer,.mm-wv-attention-label)[data-severity="red"] {background:#351c27!important;color:var(--neon-red)!important;border-color:#854151!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is(.mm-attention-badge,.mm-ai-needs,.mm-attention-toggle) {background:var(--priority-surface);color:var(--neon-amber);border-color:var(--neon-amber);border-radius:999px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-attention-count {background:var(--priority-surface);color:var(--neon-amber);border:1px solid var(--neon-amber);border-radius:999px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-attention-row-label {background:#332916;color:var(--neon-amber);border:1px solid #77571f;border-radius:999px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-attention-red .mm-attention-row-label {background:#351c27;color:var(--neon-red);border-color:#854151;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is(.mm-ai-agent,.mm-attention-item,.mm-update) {min-width:0;overflow-wrap:anywhere;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is([data-announcement-dock],.mm-notice-card,.mm-notice-detail,.maintenance-banner,.mm-notices) {background:var(--neon-panel)!important;color:var(--neon-text)!important;border-color:var(--neon-blue)!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is([data-announcement-dock],.maintenance-banner) :is(p,span,strong,small,h2,h3,button) {color:var(--neon-text);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is([data-announcement-dock],.maintenance-banner) button {background:var(--priority-surface);border-color:var(--neon-blue);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is(.mm-announcement-delivery,.mm-announcement-preview,.mm-announcement-card,.mm-announcement-fullscreen) {background:var(--neon-panel);color:var(--neon-body);border-color:var(--neon-blue);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is(.mm-announcement-delivery,.mm-announcement-fullscreen) :is(h1,h2,h3,strong,.mm-announcement-message,.mm-announcement-inline-message) {color:var(--neon-text);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is(.mm-announcement-schedule,.mm-announcement-revision,.mm-announcement-footnote,.mm-announcement-intro) {color:var(--neon-muted);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is(.mm-announcement-inline-receipt,.mm-announcement-receipt) {color:#80d8bc;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-announcement-inline-receipt.is-pending {color:var(--neon-amber);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms :is(.mm-announcement-dock,.mm-announcement-close) {background:var(--priority-surface);color:var(--neon-blue-text);border-color:var(--neon-blue);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-announcement-ack {background:var(--neon-lime);color:var(--neon-on-lime);border-color:var(--neon-lime);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-people-pop {background:var(--priority-surface);color:var(--neon-text);border-color:var(--neon-cyan);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-people-pop small {color:var(--neon-muted);}
@media(min-width:1101px) {html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms.mm-room-columns {grid-template-columns:minmax(0,1fr) var(--mm-right-width,320px);}html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-room-center {grid-column:1;grid-row:1;}html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-room-tools {grid-column:2;grid-row:1 / span 2;}html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #priority-room-team {grid-column:1;grid-row:2;}}
@media(max-width:1100px) {html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms.mm-room-columns {grid-template-columns:minmax(0,1fr);}html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-top-search {flex-basis:100%;margin:0;}html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-room-center {order:0;}html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #priority-room-team {order:1;}html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-room-tools {order:2;}}
@media(max-width:860px) {html[data-theme="neon"] body.mm-rooms.mm-priority-rooms > .wrap {padding-inline:12px;}html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-top-search {display:none;}html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .app-header > div:first-child {gap:6px;}html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band="clinic"] > ul {grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));}html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-wv-control {min-height:44px;}}
@media(max-width:580px) {html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .app-header > div:first-child {display:block;flex-basis:100%;}html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .app-header .rooms-subtitle {display:block;margin-top:5px;}html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #patient-visit-launcher:not([hidden]) {position:static;width:auto;margin-bottom:12px;}}

/* Nov17: the approved two-column structure replaces the oversized directory rail. */
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #lounge:not([hidden]) {display:block!important;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .app-frame {width:100%;min-width:0;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .app-header {display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:18px 0;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .app-header>nav {display:none;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .neon-room-stats {flex:1 1 auto;justify-content:flex-end;gap:7px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .neon-room-stat {padding:7px 10px;font-size:11px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .neon-room-stat strong {font-size:15px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #patient-visit-launcher:not([hidden]) {display:contents;position:static;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #patient-visit-launcher>div {display:none;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #patient-visit-launcher>a {position:static;min-height:34px;padding:7px 12px;font-size:12px;border-radius:999px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #rooms.mm-room-columns {display:grid;grid-template-columns:minmax(0,1fr) var(--mm-right-width,350px);gap:20px;align-items:start;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-room-center {grid-column:1;grid-row:1;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-room-tools {grid-column:2;grid-row:1 / span 2;align-self:start!important;height:auto!important;min-height:0!important;background:transparent!important;box-shadow:none;border:0!important;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #priority-room-lower {grid-column:1;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:16px;min-width:0;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #priority-room-lower>section {grid-column:auto;grid-row:auto;order:0;min-width:0;padding:16px;margin:0;border:1px solid var(--neon-line);border-radius:20px;background:var(--neon-panel);}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #priority-room-lower h2 {font-size:17px;margin:0 0 12px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] :is(#mm-team-tab,#mm-checkout-tab) {font:inherit;text-align:left;background:transparent;border:0;color:var(--neon-text);padding:0;cursor:pointer;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] :is(#mm-team-tab,#mm-checkout-tab)::after {content:none;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-team-panel [data-band=team] {border:0;padding:0;background:transparent;margin:0;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-team-panel [data-band=team]>.band-head h2 {display:none;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-team-panel [data-band=team]>h2 {display:none;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-team-panel [data-band=team]>ul {display:grid;grid-template-columns:minmax(0,1fr);gap:0;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-team-panel [data-tile] {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;margin:0;padding:12px 0;border:0;border-bottom:1px solid var(--neon-line);border-radius:0;background:transparent;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-team-panel [data-tile]>.room-row {grid-column:1;min-width:0;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-team-panel [data-tile]>.room-join {grid-column:2;margin:0;align-self:start;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-team-panel [data-tile]>.room-foot {grid-column:1/-1;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-checkout-panel>section>h2 {display:none;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-workspace-updates {margin:0;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-workspace-updates>.mm-update {margin:0;padding:0;border:0;background:transparent;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-workspace-updates>.mm-update h2 {background:transparent;padding:0;margin:0 0 12px;color:var(--neon-text);}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-workspace-rail {position:static;margin:10px 0 0;padding:0;min-width:0;border:0;background:transparent;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-workspace-rail>.mm-mobile-nav {display:block!important;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-workspace-rail>.mm-panel-size-controls {display:none!important;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-workspace-rail .mm-mobile-nav>summary {color:var(--neon-cyan);font-size:12px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-workspace-rail.neon-directory-search {position:fixed;z-index:90;top:var(--search-top);left:var(--search-left);width:min(360px,calc(100vw - 24px));max-height:60vh;overflow:auto;background:var(--neon-panel);padding:12px;border:1px solid var(--neon-cyan);border-radius:16px;box-shadow:0 12px 40px #0008;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #rooms [data-band=department]>ul {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #rooms [data-band=department] [data-tile] {padding:12px;min-width:0;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #rooms [data-band=department] .room-row {gap:4px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #rooms [data-band=department] .room-row>a {font-size:13px;overflow-wrap:normal;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #rooms [data-band=department] .room-row>.mm-icon {display:none;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #rooms [data-band=department] .room-join {width:100%;font-size:12px;margin-top:9px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #rooms [data-band=clinic]>ul {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #rooms [data-band=clinic] [data-tile] {padding:12px;min-width:0;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .neon-clinic-metrics {display:flex;flex-wrap:nowrap;gap:4px 8px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .neon-clinic-metrics p {font-size:11px;line-height:1.4;margin:0;max-width:100%;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #rooms [data-band="clinic"] .clinic-empty {color:var(--neon-muted)!important;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-end-title {color:#17324a!important;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .neon-room-broadcast>h2 {font-size:18px;color:var(--neon-blue-text);margin:0 0 12px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .neon-broadcast-empty {font-size:13px;color:var(--neon-muted);}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .neon-room-broadcast:has(.mm-announcement-delivery:not([hidden]))>.neon-broadcast-empty {display:none;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-attention-announcements {margin:0;padding:0;border:0;background:transparent;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .mm-announcement-persistent {position:static;max-width:none;margin:0;padding:0;border:0;background:transparent;box-shadow:none;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .mm-announcement-persistent>.mm-announcement-dock {margin-top:10px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .mm-announcement-persistent>.mm-announcement-preview {position:static;inset:auto;width:100%;max-height:60vh;margin-top:12px;padding:12px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .mm-announcement-persistent .mm-announcement-card {padding:12px;margin:0 0 10px;border:1px solid var(--neon-blue);border-radius:14px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .neon-room-checkout>h2 {font-size:17px;margin:0 0 12px;}
@media(max-width:1100px){
 html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #rooms.mm-room-columns {grid-template-columns:minmax(0,1fr);}
 html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-room-center {grid-column:1;grid-row:1;}
 html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #priority-room-lower {grid-column:1;grid-row:2;}
 html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #mm-room-tools {grid-column:1;grid-row:3;}
 html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #rooms [data-band=department]>ul {grid-template-columns:repeat(3,minmax(0,1fr));}
 html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .neon-room-stats {justify-content:flex-start;flex-basis:100%;}
}
@media(max-width:580px){
 html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #priority-room-lower {grid-template-columns:minmax(0,1fr);}
 html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #rooms [data-band=department]>ul {grid-template-columns:repeat(2,minmax(0,1fr));}
 html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] #rooms [data-band=clinic]>ul {grid-template-columns:minmax(0,1fr);}
}
/* NEXT A1: compact cards; native disclosures, people and actions stay intact. */
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band=clinic] [data-tile] {padding:10px;position:relative;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band=clinic] .room-row {display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band=clinic] .room-row>a {margin-right:auto;font-size:13px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band=clinic] .room-count {max-width:none;white-space:nowrap;min-height:20px;padding:3px 6px;font-size:10px;flex:0 0 auto;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-clinic-state {font-size:10px;font-weight:650;line-height:1.3;border:1px solid var(--neon-control-line);border-radius:999px;padding:3px 7px;color:var(--neon-muted);white-space:nowrap;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms [data-priority-state=free] .neon-clinic-state {color:var(--neon-cyan);border-color:var(--neon-cyan);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms [data-priority-state=assigned] .neon-clinic-state {color:var(--neon-lime);border-color:var(--neon-lime);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band=clinic] [data-tile][data-priority-state=over20]:not(.mm-attention-red,.mm-ai-red) {border-color:var(--neon-amber)!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms [data-priority-state=over20] .neon-clinic-state {color:var(--neon-amber);border-color:var(--neon-amber);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band=clinic] [data-tile][data-priority-state=over30] {border-color:var(--neon-red)!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms [data-priority-state=over30] .neon-clinic-state {color:var(--neon-red-text);border-color:var(--neon-red);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-clinic-name {font-size:12px;line-height:1.35;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .neon-clinic-native>summary {min-height:22px;font-size:11px;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .neon-clinic-metrics {margin:5px 0;min-width:0;}
html[data-theme="neon"] body.mm-rooms[data-room-layout="neon-correction"] .neon-clinic-metrics p {white-space:nowrap;overflow:auto;overflow-wrap:normal;font-size:10px;max-width:100%;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-timer-alerts :is(.mm-ai-settings,.mm-attention-test) {margin:8px 0 0;padding:8px 10px;border:1px solid var(--neon-control-line);border-radius:12px;background:var(--neon-tile);font-size:11px;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-timer-alerts :is(.mm-ai-settings,.mm-attention-test)>summary {cursor:pointer;min-height:25px;align-content:center;color:var(--neon-muted);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-room-tools>#mm-timer-alerts {padding:12px!important;border:1px solid var(--neon-violet)!important;border-radius:20px;background:var(--neon-panel)!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #mm-room-tools>#mm-timer-alerts>.mm-ai-intelligence {border:0!important;padding:0!important;background:transparent!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band=clinic] [data-tile][data-priority-state=assigned]:not(.mm-attention-red,.mm-attention-amber,.mm-ai-red,.mm-ai-yellow) {border-color:var(--neon-lime)!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band=clinic] [data-tile][data-priority-state=free] {border-style:dashed!important;}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #rooms [data-band=clinic] [data-tile]:is(.mm-attention-red,.mm-ai-red) {border-color:var(--neon-red)!important;}

/* Native validated attention only. ACK removes the pulse, never its timer or severity. */
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-wv-row:is([data-severity="yellow"],[data-severity="orange"]) {background:#332916!important;--mm-wv-alert-edge:var(--neon-amber);--mm-wv-alert-pulse:rgba(255,176,32,.72);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-wv-row[data-severity="red"] {background:#351c27!important;--mm-wv-alert-edge:var(--neon-red);--mm-wv-alert-pulse:rgba(255,93,108,.72);}
html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-wv-row[data-attention-pending="true"]:is([data-severity="yellow"],[data-severity="orange"],[data-severity="red"]) {animation:mm-wv-row-attention 2s ease-in-out infinite;}
@keyframes mm-wv-row-attention {0%,100%{box-shadow:inset 0 0 0 1px var(--mm-wv-alert-edge);}50%{box-shadow:inset 0 0 0 4px var(--mm-wv-alert-pulse);}}
@media(prefers-reduced-motion:reduce){html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-wv-row[data-attention-pending="true"] {animation:none;box-shadow:inset 0 0 0 2px var(--mm-wv-alert-edge);}}
@media(forced-colors:active){html[data-theme="neon"] body.mm-rooms.mm-priority-rooms .mm-wv-row[data-attention-pending="true"] {animation:none;outline:2px solid Highlight;}}

/* Keep the native attention cell visible within the compact phone row. */
@media(max-width:650px){
 html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #waiting-band .mm-wv-identity {max-width:110px;min-width:86px;}
 html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #waiting-band .mm-wv-identity .mm-wv-name {white-space:nowrap;}
 html[data-theme="neon"] body.mm-rooms.mm-priority-rooms #waiting-band .mm-wv-timing>.mm-wv-timer {order:-1;position:sticky;inset-inline-start:0;z-index:1;max-width:calc(100vw - 220px);}
}
