#bridge-menu-panel{position:fixed;z-index:10000;box-sizing:border-box;width:310px;max-width:calc(100vw - 16px);overflow:auto;background:var(--editor-panel,#fff);color:var(--editor-text,#172b3f);border:1px solid #8da8c7;border-radius:8px;padding:8px;box-shadow:0 8px 28px #10243b44;font:14px/1.5 "Angkor Noto Sans Khmer","Segoe UI",sans-serif}
#bridge-menu-panel[hidden]{display:none}
#bridge-menu-panel p{margin:6px 5px;overflow-wrap:anywhere}
#bridge-menu-panel button,#bridge-menu-panel a{display:block;box-sizing:border-box;text-align:left;padding:10px;width:100%;height:auto;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;text-decoration:none;white-space:normal}
#bridge-menu-panel :is(button,a):hover{background:#dfeaff;color:#142c52}
#bridge-menu-panel :focus-visible{outline:3px solid #e3a315}
#bridge-menu-panel a[aria-disabled="true"]{opacity:.5;cursor:wait}
#bridge-menu-panel a[hidden]{display:none}
#bridge-menu-panel #bridge-native-open{border:1px solid #8da8c7;margin-top:6px}
#bridge-menu-note:empty{display:none}
/* Preserve the one-row header and horizontal access on narrow screens. */
html header .brand strong{font-size:20px}html header .brand-km{font-size:28px}
html header #language-select,html[lang="km"] header #language-select{width:158px;min-width:158px;font-size:16px!important}
.druk-board-card img[hidden]{display:none}.board-image-fallback{min-height:95px;display:grid;place-content:center}.board-image-fallback[hidden]{display:none}

/* 070: one Bridge split control and clear upload priority. */
html #editor-connection #bridge-control{display:inline-flex;flex:none;align-items:stretch;gap:0}
html #editor-connection #bridge-control #bridge-connect{margin:0;border-radius:6px 0 0 6px;border-right-width:0;min-height:36px;font-weight:700;white-space:nowrap}
html #editor-connection #bridge-control #bridge-menu-button{margin:0;border-radius:0 6px 6px 0;min-width:28px;width:28px;padding:4px;border-left:1px solid #ffffff80}
html #editor-connection #bridge-control button:focus-visible{position:relative;z-index:1}
html #editor-connection #upload{background:#126b2c;border:2px solid #d3f6db;color:#fff;font-size:16px!important;font-weight:800;line-height:1.3;min-height:38px;padding:7px 17px;white-space:nowrap}
html #editor-connection #upload:hover{background:#0b5420}
html #editor-connection #upload:disabled{background:#476b50;color:#fff;opacity:.75}
html #editor-connection #check{font-size:11px!important;font-weight:500;min-height:30px;padding:4px 7px;white-space:nowrap}
html[lang="km"] #editor-connection #check{font-size:16px!important}
html[lang="km"] #editor-connection #upload{font-size:20px!important}
/* 074: authenticated connection stands alone; Bridge management lives in Tools. */
html #editor-connection #bridge-connect{border-radius:6px;min-height:36px;font-weight:750}
html #editor-connection #bridge-connect[data-bridge-ready="checking"]{border-color:#d73736;border-style:dashed}
html #editor-connection #port-programs-button{min-height:36px;border:2px solid #a0a9b5;border-radius:6px;font-weight:700}
html #editor-connection #port-programs-button[data-driver-state="installed"]{border-color:#168b49}
html #editor-connection #port-programs-button[data-driver-state="missing"]{border-color:#d73736}
#port-programs-panel{position:fixed;z-index:10001;box-sizing:border-box;width:380px;max-width:calc(100vw - 16px);overflow:auto;padding:14px;border:1px solid #8da8c7;border-radius:8px;background:var(--editor-panel,#fff);color:var(--editor-text,#172b3f);box-shadow:0 8px 28px #10243b44;font:14px/1.65 "Angkor Noto Sans Khmer","Segoe UI",sans-serif;overflow-wrap:anywhere}
#port-programs-panel[hidden]{display:none}#port-programs-panel h2{font:700 17px/1.6 inherit;margin:0 0 8px}#port-programs-panel p{margin:9px 0;white-space:normal}
.port-driver-row{padding:10px 0;border-bottom:1px solid #9ab0c866;display:grid;gap:6px}.port-driver-row a{color:#174f9f;text-decoration:underline;white-space:normal;overflow-wrap:anywhere}.port-driver-row strong[data-state="installed"]{color:#116c38}.port-driver-row strong[data-state="missing"]{color:#a31c27}
#port-programs-panel button{padding:8px 12px;margin-top:10px;font:inherit;border:1px solid #8da8c7;border-radius:5px}#port-programs-panel :focus-visible{outline:3px solid #e3a315;outline-offset:2px}
.port-programs-limit{font-size:13px;border-top:1px solid #9ab0c866;padding-top:10px}
/* User correction: no extra status row; retain a large, high-contrast inline label. */
html #editor-connection{flex:1 0 auto}
html #editor-connection #operation-status{flex:0 1 auto;box-sizing:border-box;margin:0;padding:4px 9px;width:clamp(180px,16vw,300px);min-width:180px;max-width:300px;display:flex;flex-wrap:nowrap;align-items:center;border:1px solid #7e97b3;border-radius:6px;background:#f3f7fc;color:#142c45;height:38px;overflow:hidden}
html #editor-connection #operation-status #connection{flex:1 1 auto;font:700 16px/1.65 "Angkor Noto Sans Khmer","Segoe UI",sans-serif;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:none}
html #operation-status #operation-message{display:none}
html #editor-connection #operation-status[data-kind="working"]{background:#fff3cf;color:#443000;border-color:#a66a00}
html #editor-connection #operation-status[data-kind="success"]{background:#e8f7ec;color:#14562a;border-color:#278349}
html #editor-connection #operation-status[data-kind="error"]{background:#fff0f0;color:#8d1421;border:2px solid #b52434}
html #editor-connection #operation-view-actions{margin-left:auto;flex:0 0 auto;display:inline-flex;align-items:center;gap:5px}
html #editor-connection #operation-details{font:600 13px/1.5 "Angkor Noto Sans Khmer","Segoe UI",sans-serif;padding:5px 9px}

html #editor-connection #board-select[data-board-ready="unknown"]{border-color:#a0a9b5;border-style:solid}
#port-programs-panel{width:280px;padding:6px;font-size:14px;line-height:1.6}
#port-programs-panel>a{display:block;box-sizing:border-box;padding:10px;color:var(--editor-text,#173451);border-radius:4px;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
#port-programs-panel>a:hover{background:#dfeaff;color:#142c52}
