/* Macdicator Headset™ H1: global floating shell, no media engine or connections. */
#mac-headset-toggle[hidden],#mac-headset-panel[hidden]{display:none!important}
#mac-global-toolbar .mac-global-actions #mac-headset-toggle{color:#22d3ee}
#mac-global-toolbar .mac-global-actions #mac-headset-toggle[aria-expanded=true]{background:#153844;color:#e7fbff}
#mac-headset-panel{box-sizing:border-box;position:fixed;top:57px;right:120px;z-index:2200;width:min(390px,calc(100vw - 20px));max-height:calc(100dvh - 67px);overflow:auto;border:1px solid #375361;border-radius:12px;background:#101923;color:#eaf4f9;box-shadow:0 20px 65px #000c;font:13px/1.4 system-ui,sans-serif}
#mac-headset-panel *{box-sizing:border-box}
.mac-headset-head{display:flex;align-items:center;gap:11px;padding:16px;border-bottom:1px solid #293e4a}
.mac-headset-head-icon{width:38px;height:38px;display:grid;place-items:center;border:1px solid #267e91;border-radius:8px;background:#12323d;color:#22d3ee;flex-shrink:0}
.mac-headset-head-icon svg{width:23px;height:23px}
.mac-headset-head div{flex:1;min-width:0}
.mac-headset-head strong{display:block;font-size:16px;color:#f2fbff}
.mac-headset-head small{display:block;color:#97abb9;margin-top:2px;font-size:11px}
.mac-headset-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:12px 15px 0}
.mac-headset-tabs button{min-height:37px;border:1px solid #304653;border-radius:7px;background:#172632;color:#a7bcc8;font:650 12px system-ui,sans-serif;cursor:pointer}
.mac-headset-tabs button.active{border-color:#22d3ee;background:#123440;color:#dffbff;box-shadow:inset 0 -2px #22d3ee}
.mac-headset-tabs button[hidden]{display:none!important}
.mac-headset-tabs button:focus-visible,.mac-headset-foot a:focus-visible{outline:2px solid #22d3ee;outline-offset:2px}
.mac-headset-content{padding:20px 17px 25px;min-height:160px}
.mac-headset-kicker{font-size:10px;color:#22d3ee;font-weight:800;letter-spacing:.1em;margin-bottom:12px}
.mac-headset-content strong{font-size:15px}
.mac-headset-content p{margin:8px 0 0;color:#a4b9c7;line-height:1.55}
.mac-headset-foot{display:flex;align-items:center;gap:7px;padding:12px 17px;border-top:1px solid #293e4a;color:#a8bdca;font-size:11px}
.mac-headset-foot a{margin-left:auto;color:#75d8ea;text-decoration:none;font-weight:700}
.mac-headset-foot a:hover{text-decoration:underline}
.mac-headset-idle-dot{width:7px;height:7px;border-radius:50%;background:#748995}
.mac-headset-idle-dot.active{background:#22d3ee;box-shadow:0 0 9px rgba(34,211,238,.6)}
.mac-headset-media-audio{display:flex;align-items:center;gap:12px;margin:12px 15px 0;padding:11px 12px;border:1px solid #304653;border-radius:8px;background:#111e27}
.mac-headset-media-audio[hidden]{display:none!important}
.mac-headset-media-audio div{min-width:0;flex:1}
.mac-headset-media-audio strong,.mac-headset-media-audio small{display:block}
.mac-headset-media-audio strong{color:#9edcea;font-size:10px;letter-spacing:.08em}
.mac-headset-media-audio small{margin-top:3px;color:#8198a5;font-size:10px;line-height:1.35}
.mac-headset-media-audio button{flex:0 0 auto;min-height:32px;padding:6px 10px;border:1px solid #345666;border-radius:6px;background:#183845;color:#dffbff;font:700 11px system-ui,sans-serif;cursor:pointer}
.mac-headset-media-audio button[aria-pressed=true]{border-color:#73434a;background:#2a171b;color:#ff9da7}
@media(max-width:700px){#mac-headset-panel{max-width:calc(100vw - 16px);max-height:calc(100dvh - 76px)}.mac-headset-media-audio{align-items:flex-start}.mac-headset-media-audio small{max-width:220px}}
@media(max-width:760px){
  #mac-headset-panel{
    right:max(8px,var(--os-safe-right,0px))!important;
    left:max(8px,var(--os-safe-left,0px))!important;
    z-index:var(--os-z-mobile-critical,2700);
    box-sizing:border-box;
    width:auto!important;
    max-width:none;
    max-height:calc(100dvh - var(--os-mobile-workspace-top,48px) - var(--os-safe-bottom,0px) - 8px)!important;
  }
}

/* H2 personal YouTube controls; native video remains visible and unobstructed. */
.mac-headset-personal[hidden],.mac-headset-other[hidden],#mac-headset-video[hidden]{display:none!important}
.mac-headset-personal label{display:block;margin:9px 0 7px;font-size:12px;font-weight:700;color:#cde1ea}
#mac-headset-form{display:flex;gap:7px;align-items:stretch}
#mac-headset-url{width:100%;min-width:0;flex:1;border:1px solid #345261;border-radius:6px;padding:10px 9px;background:#0b131a;color:#fff;font:12px system-ui,sans-serif;outline:none}
#mac-headset-url:focus{border-color:#22d3ee}
#mac-headset-form button,.mac-headset-player-actions button{border:1px solid #2b6878;border-radius:6px;background:#17414d;color:#e2faff;font:700 12px system-ui,sans-serif;padding:9px 12px;cursor:pointer}
#mac-headset-form button:hover,.mac-headset-player-actions button:hover:not(:disabled){background:#205766}
.mac-headset-player-actions button:disabled{opacity:.45;cursor:not-allowed}
#mac-headset-status{min-height:34px;font-size:11px;color:#a7cbd6;margin:12px 0}
.mac-headset-video{display:block;width:100%;min-height:210px;background:#000;margin:12px 0;border:1px solid #344954;border-radius:6px;overflow:hidden}
#mac-headset-youtube,#mac-headset-youtube iframe{display:block;width:100%!important;height:210px!important;min-height:210px;border:0}
.mac-headset-player-actions{display:flex;justify-content:flex-end;margin-top:9px}
.mac-headset-policy{font-size:11px;color:#849eac;line-height:1.5;margin-top:12px!important}

/* H2-P isolated listening test: player is a persistent sibling of the controls. */
#mac-headset-video{
  box-sizing:border-box;position:fixed;right:12px;bottom:12px;z-index:540;
  width:min(355px,calc(100vw - 24px));height:249px;min-height:249px;
  margin:0;background:#000;border:1px solid #375361;border-radius:9px;
  box-shadow:0 14px 48px #000b;overflow:hidden;color:#eaf9ff
}
#mac-headset-video .mac-headset-video-bar{
  box-sizing:border-box;height:37px;display:flex;align-items:center;gap:8px;
  padding:0 10px;background:#122633;color:#eaf9ff;font:700 12px system-ui,sans-serif
}
#mac-headset-video .mac-headset-video-bar strong{flex:1}
#mac-headset-video .mac-headset-video-bar button{
  border:1px solid #355867;background:#203c48;border-radius:5px;
  color:#eaf9ff;font:700 18px system-ui,sans-serif;cursor:pointer;min-width:28px
}
#mac-headset-video #mac-headset-youtube,
#mac-headset-video #mac-headset-youtube iframe{
  display:block;width:100%!important;height:210px!important;min-height:210px;border:0
}

/* H2P3: one persistent video is presented in the Hall stage, never duplicated. */
#mac-headset-video.mac-headset-hall-stage {
  right:auto;bottom:auto;min-height:0;border:0;border-radius:0;margin:0;
  box-shadow:none;z-index:540;
}
#mac-headset-video.mac-headset-hall-stage .mac-headset-video-bar{display:none}
#mac-headset-video.mac-headset-hall-stage #mac-headset-youtube,
#mac-headset-video.mac-headset-hall-stage #mac-headset-youtube iframe{
  display:block;width:100%!important;height:100%!important;min-height:0!important
}
.mac-headset-remote{display:grid;gap:12px;margin-top:12px}
.mac-headset-now-playing{font-weight:750;color:#e5faff}
.mac-headset-remote-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#mac-headset-panel .mac-headset-remote-buttons button{min-height:34px;border:1px solid #345666;border-radius:6px;background:#183845;color:#dffbff;font:700 12px system-ui,sans-serif;cursor:pointer}
#mac-headset-panel .mac-headset-remote-buttons button:disabled{opacity:.45;cursor:not-allowed}
.mac-headset-remote label{display:grid;gap:8px;color:#bcd7e0;font-weight:700}
.mac-headset-remote input{width:100%;accent-color:#22d3ee}

/* H2P6 local experiment: retain full-size Hall player geometry behind active Community views.
   No compact player, no iframe reparenting, no navigation-triggered pause. */
#mac-headset-video.mac-headset-background {z-index:-1;pointer-events:none;border:0;border-radius:0;box-shadow:none;right:auto;bottom:auto;min-height:0}
#mac-headset-video.mac-headset-background .mac-headset-video-bar {display:none}
#mac-headset-video.mac-headset-background #mac-headset-youtube,
#mac-headset-video.mac-headset-background #mac-headset-youtube iframe {width:100%!important;height:100%!important;min-height:0!important}

/* H3 unified listening: distinguish a Hall disconnect from pausing playback. */
.mac-headset-connection-actions{display:flex;gap:8px;margin:10px 0}
.mac-headset-connection-actions button{flex:1;border:1px solid #2b6878;border-radius:6px;background:#17414d;color:#e2faff;font:700 12px system-ui,sans-serif;padding:9px 12px;cursor:pointer}
.mac-headset-connection-actions button[hidden]{display:none!important}
#mac-headset-url:disabled,#mac-headset-form button:disabled{opacity:.48;cursor:not-allowed}
