/* POST’D V14: accessible, usable Broadcast Desk workspace navigation.
   Loaded AFTER V13 so it can undo its forced display:grid on hidden production. */
#postd-broadcast-studio.v5-deck.v13-production .bd-body {
  grid-template-columns: clamp(214px, 16vw, 246px) minmax(0, 1fr) !important;
}
#postd-broadcast-studio.v5-deck.v13-production .bd-rail {
  min-width: 0;
  padding: 18px 12px;
  align-items: stretch;
  gap: 6px;
  overflow: visible;
}
#postd-broadcast-studio.v5-deck.v13-production .v5-rail-head {
  min-width:0;
  display:flex;
  align-items:center;
  gap:11px;
  margin-bottom:14px;
  padding:5px 6px 15px;
}
#postd-broadcast-studio.v5-deck.v13-production .v5-brand-copy {
  display:grid!important;
  gap:2px;
  min-width:0;
}
#postd-broadcast-studio.v5-deck.v13-production .v5-brand-copy strong {white-space:normal;line-height:1.3;}
#postd-broadcast-studio.v5-deck.v13-production .v5-brand-copy small {white-space:normal;line-height:1.35;}
#postd-broadcast-studio.v5-deck.v13-production .bd-rail-link {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  min-width:0;
  min-height:47px;
  gap:12px;
  padding:11px 12px;
  font-size:12px;
  text-align:left;
  white-space:normal;
}
#postd-broadcast-studio.v5-deck.v13-production .bd-rail-link .bd-rail-icon {
  flex:0 0 31px;
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  font-size:15px;
}
#postd-broadcast-studio.v5-deck.v13-production .bd-rail-link .v5-nav-label {
  display:inline!important;
  flex:1 1 auto;
  min-width:0;
  line-height:1.35;
  overflow-wrap:anywhere;
}
#postd-broadcast-studio.v5-deck.v13-production .bd-rail-link:focus-visible {
  outline:2px solid var(--v5-accent, var(--accent, #e980ac));
  outline-offset:2px;
}
#postd-broadcast-studio.v5-deck.v13-production .bd-rail-note {
  overflow-wrap:break-word;
}
/* V13 has .bd-workspace { display:grid!important }, which overrode the
   browser's [hidden] display:none and made every tab appear broken. */
#postd-broadcast-studio.v5-deck.v13-production [data-bd-panel][hidden],
#postd-broadcast-studio.v5-deck.v13-production .bd-workspace[data-bd-panel="production"][hidden] {
  display:none!important;
}
@media (max-width:1100px) {
  #postd-broadcast-studio.v5-deck.v13-production .bd-body {
    grid-template-columns:minmax(0, 1fr)!important;
  }
  #postd-broadcast-studio.v5-deck.v13-production .bd-rail {
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:7px;
    padding:10px 12px;
    min-width:0;
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:thin;
    border-right:0;
    border-bottom:1px solid var(--v5-border);
  }
  #postd-broadcast-studio.v5-deck.v13-production .v5-rail-head,
  #postd-broadcast-studio.v5-deck.v13-production .bd-rail-note {
    display:none!important;
  }
  #postd-broadcast-studio.v5-deck.v13-production .bd-rail-link {
    flex:0 0 auto;
    width:auto;
    min-height:41px;
    gap:8px;
    padding:7px 11px;
    white-space:nowrap;
  }
  #postd-broadcast-studio.v5-deck.v13-production .bd-rail-link .bd-rail-icon {
    flex:0 0 27px;
    width:27px;
    height:27px;
  }
  #postd-broadcast-studio.v5-deck.v13-production .bd-rail-link .v5-nav-label {
    flex:none;
    white-space:nowrap;
  }
}
@media (max-width:500px) {
  #postd-broadcast-studio.v5-deck.v13-production .bd-rail {padding:8px;gap:5px;}
  #postd-broadcast-studio.v5-deck.v13-production .bd-rail-link {min-height:40px;padding:6px 9px;font-size:11px;}
}
