/* One unified recording UI for LAB hybrid mode. Do not alter the video engines. */
/* Hide the two legacy control sets; their recording pipelines and API bridges
   remain loaded so the coordinator can start and finish either engine. */
/* Defensive fallback for cached legacy browser JS: its #stage.full selector
   is more specific than a plain class, so explicitly override it here. */
html body .xm-browser-rec-control,
html body .xm-browser-rec-library-button,
html body .xm-browser-rec-library,
html body #stage.full>.xm-browser-rec-control[data-where="full"],
html body #stage.full>.xm-browser-rec-control[data-where="full"]:not([hidden]){
  display:none!important
}
.xm-hybrid-rec-control{flex:0 0 auto;gap:6px;min-width:0;align-items:center}
.xm-hybrid-rec-control[hidden],.xm-hybrid-rec-control .xm-hybrid-method[hidden]{display:none!important}
.xm-hybrid-rec-control .xm-hybrid-method{
  display:inline-flex;padding:4px 7px;border-radius:7px;
  border:1px solid #52616b;background:#26363d;color:#f1f4ef;
  white-space:nowrap;font:600 0.6875rem system-ui
}
/* Keep the single hybrid recording button in the existing fullscreen
   38px toolbar. Never create a floating overlay on the video. */
#stage:not(.full) #v67MiniBar>.xm-hybrid-rec-control[data-where="full"]{
  display:none!important
}
body.v67-fullscreen #stage.full #v67MiniBar>.xm-hybrid-rec-control[data-where="full"]:not([hidden]){
  box-sizing:border-box!important;
  position:relative!important;inset:auto!important;transform:none!important;
  z-index:112!important;display:inline-flex!important;align-items:center!important;
  flex:0 0 auto!important;gap:5px!important;margin:0 4px!important;padding:0!important;
  background:transparent!important;border:none!important;box-shadow:none!important;
  height:34px!important;max-height:34px!important;white-space:nowrap!important;
  overflow:visible!important
}
body.v67-fullscreen #stage.full #v67MiniBar>.xm-hybrid-rec-control .xm-lab-rec-button{
  box-sizing:border-box!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;
  padding:6px 9px!important;min-height:30px!important;height:30px!important;
  width:auto!important;max-width:none!important;border-radius:7px!important;
  color:#f5f7f8!important;background:#26363d!important;border:1px solid #52616b!important;
  font:600 0.6875rem/1.2 system-ui!important;white-space:nowrap!important
}
body.v67-fullscreen #stage.full #v67MiniBar>.xm-hybrid-rec-control .xm-lab-rec-button.active{
  color:#fff!important;background:#792c32!important;border-color:#a54b50!important
}
body.v67-fullscreen #stage.full #v67MiniBar>.xm-hybrid-rec-control .xm-lab-rec-button:disabled{
  opacity:.62!important;cursor:not-allowed!important
}
body.v67-fullscreen #stage.full #v67MiniBar>.xm-hybrid-rec-control .xm-lab-rec-indicator{
  display:inline-flex;align-items:center;box-sizing:border-box;
  flex:0 0 auto!important;height:30px!important;
  min-height:30px!important;padding:5px 7px!important;
  font:700 0.6875rem/1 system-ui!important;border-radius:7px!important
}
body.v67-fullscreen #stage.full #v67MiniBar>.xm-hybrid-rec-control .xm-lab-rec-indicator[hidden]{
  display:none!important
}
/* The active engine appears in the library, not as another toolbar badge. */
body.v67-fullscreen #stage.full #v67MiniBar>.xm-hybrid-rec-control .xm-hybrid-method{
  display:none!important
}
.xm-hybrid-rec-library{width:min(420px,calc(100vw - 24px))!important}
.xm-hybrid-rec-library .xm-lab-rec-item{align-items:center}
.xm-hybrid-rec-info{display:flex;flex-direction:column;gap:5px;min-width:180px;flex:1}
.xm-hybrid-rec-info strong{font-size:0.75rem;font-weight:650}
.xm-hybrid-rec-meta{display:block;color:#cbd5da;font-size:0.6875rem}
html body .xm-hybrid-rec-library .xm-lab-rec-item .xm-hybrid-download{
  background:var(--accent,#93C362)!important;
  border:1px solid var(--accent,#93C362)!important;
  color:var(--accent-ink,#142010)!important;
  border-radius:7px!important;font:700 0.75rem system-ui!important;padding:7px 9px!important
}
html body .xm-hybrid-rec-library .xm-lab-rec-item .xm-hybrid-download:hover:not(:disabled){
  background:#A8CB55!important;border-color:#A8CB55!important
}
#xmLabHybridToast{
  position:fixed;left:50%;bottom:105px;transform:translateX(-50%);
  padding:10px 14px;max-width:90vw;z-index:2147483001;
  color:#fff;background:#254559;border:1px solid #42738f;
  border-radius:8px;font:600 0.8125rem system-ui;text-align:center
}
#xmLabHybridToast.error{background:#991b1b;border-color:#e05858}
#xmLabHybridToast[hidden]{display:none!important}
@media(max-width:760px){
 body.v67-fullscreen #stage.full #v67MiniBar>.xm-hybrid-rec-control[data-where="full"]:not([hidden]){
  margin:0 2px!important;gap:3px!important
 }
 body.v67-fullscreen #stage.full #v67MiniBar>.xm-hybrid-rec-control .xm-lab-rec-button{
  padding:5px 6px!important;font-size:0.625rem!important
 }
 body.v67-fullscreen #stage.full #v67MiniBar>.xm-hybrid-rec-control .xm-lab-rec-indicator{
  padding:5px!important;font-size:0.625rem!important
 }
 .xm-hybrid-rec-library{width:calc(100vw - 24px)!important}
}
