/* slaughterstream-live-clock-dock.css */
/* Live match clock docking: adapted from tested staging layout, presentational only. */
/* Existing working chess/turn clock UI inside Live presentation.
   IMPORTANT: this changes layout only; original clocks, ids, and handlers remain intact. */
body.ccl-live-gamecast #gamecastPanel #clockPanel{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px 16px;
  padding:14px;
  margin:14px 0;
  border:1px solid #b7876b;
  border-radius:12px;
  color:#f4e8dc;
  background:linear-gradient(125deg,#231527 0%,#111017 55%,#332019 100%);
  box-shadow:0 12px 30px #0007;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-phase{
  grid-column:1;
  margin:0;padding:0;
  display:flex;align-items:center;gap:8px;
  color:#f5cb96;background:transparent;
  text-align:left;font:900 12px/1.35 system-ui,sans-serif;
  letter-spacing:.11em;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-phase::before{
  content:"MATCH CLOCKS";font-size:10px;color:#bd93d5;
  border-right:1px solid #b78be85c;padding-right:10px;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-half{
  grid-column:2;grid-row:1;justify-self:end;
  margin:0;padding:0;color:#dabdcf;font:800 11px/1.5 system-ui,sans-serif;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-grid{
  grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-face{
  min-width:0;padding:12px 16px;gap:4px;border-radius:9px;
  border:1px solid #977a8a;background:linear-gradient(135deg,#30203a,#20171f);
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-face:nth-child(2){
  background:linear-gradient(135deg,#30231c,#1d1721);border-color:#9a745d;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-face.clock-active{
  border-color:#f4c582;box-shadow:inset 0 0 0 1px #f4c58270,0 0 18px #e7a36c25;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-face strong{
  font:800 11px/1.3 system-ui,sans-serif;letter-spacing:.08em;color:#e2c6d5;
  max-width:100%;overflow-wrap:anywhere;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-face span{
  color:#fff0da;font-size:clamp(25px,3.5vw,42px);line-height:1.1;
  font-variant-numeric:tabular-nums;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-face small{
  font-size:11px;color:#e6c5a9;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-kickoff,
body.ccl-live-gamecast #gamecastPanel #clockPanel #clockReceiverWrap{
  grid-column:1/-1;margin:0;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-kickoff{
  padding:12px;border:1px dashed #bd9267;background:#27201d;color:#f5e9d2;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-buttons{
  grid-column:1/-1;
  display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:8px;margin:0;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-buttons button{
  min-height:46px;margin:0;padding:9px 10px;font-size:12px;border-radius:7px;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-buttons #clockEnd{
  grid-column:3;grid-row:1;min-height:46px;
  color:#21141d;background:linear-gradient(110deg,#f5d7a1,#d39061);border:1px solid #e5ad7a;
  font-weight:900;font-size:12px;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-buttons #clockPause{grid-column:1;grid-row:1}
body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-buttons #clockResume{grid-column:2;grid-row:1}
body.ccl-live-gamecast #gamecastPanel #clockPanel #clockStatus{
  grid-column:1/-1;margin:0;color:#c6b3c4;font-size:11px;line-height:1.5;
}
body.ccl-live-gamecast #gamecastPanel #clockPanel :is(button,select):focus-visible{
  outline:3px solid #dbb3fe;outline-offset:3px;
}
@media(max-width:620px){
 body.ccl-live-gamecast #gamecastPanel #clockPanel{padding:10px;gap:9px;margin:10px 0}
 body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-phase{font-size:11px}
 body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-phase::before{font-size:9px;padding-right:7px}
 body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-face{padding:10px 6px}
 body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-face strong{font-size:10px}
 body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-face span{font-size:clamp(23px,8vw,35px)}
 body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-buttons #clockEnd{
   grid-column:1/-1;grid-row:1;min-height:48px;font-size:12px;
 }
 body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-buttons #clockPause{grid-column:1;grid-row:2}
 body.ccl-live-gamecast #gamecastPanel #clockPanel .clock-buttons #clockResume{grid-column:2;grid-row:2}
}


/* slaughterstream-scoreboard-clocks.css */
/* SlaughterStream Live integrated scoreboard chess clocks — production presentation only. */
body.ccl-live-gamecast #gamecastPanel.ss-live-clocks-integrated .ss40-team{
 position:relative;gap:5px;transition:box-shadow .18s ease,background-color .18s ease;
}
body.ccl-live-gamecast #gamecastPanel .ss40-team .clock-face{
 width:100%;border:1px solid #ffffff3b;border-radius:8px;
 padding:7px 9px!important;margin:5px 0 0;
 min-width:0;background:#080b1170!important;box-shadow:none;
 display:flex;flex-direction:column;align-items:inherit;gap:2px;
}
body.ccl-live-gamecast #gamecastPanel .ss40-team .clock-face strong{
 display:none!important; /* name is already in the team header; preserve ID for data updates */
}
body.ccl-live-gamecast #gamecastPanel .ss40-team .clock-face span{
 color:#ffecd4!important;font:900 clamp(1.45rem,3.65vw,3.15rem)/1 'Barlow Condensed',Impact,sans-serif!important;
 font-variant-numeric:tabular-nums;letter-spacing:.02em;
 text-shadow:0 2px 10px #0009;
}
body.ccl-live-gamecast #gamecastPanel .ss40-team .clock-face small{
 color:#dcc6b7!important;font:700 clamp(.6rem,.85vw,.8rem)/1.35 system-ui,sans-serif;
}
body.ccl-live-gamecast #gamecastPanel .ss40-team .ss-live-active-label{
 min-height:16px;color:#bfb1b2;font:900 10px/1.4 system-ui,sans-serif;
 letter-spacing:.11em;text-transform:uppercase;
}
body.ccl-live-gamecast #gamecastPanel .ss40-team.ss-live-team-running{
 background:linear-gradient(120deg,#7b412aa3,#392526d9)!important;
 box-shadow:inset 0 0 0 2px #f5ca80,0 0 24px #db986b70!important;
}
body.ccl-live-gamecast #gamecastPanel .ss40-away.ss-live-team-running{
 background:linear-gradient(240deg,#61447e,#2c2435)!important;
 box-shadow:inset 0 0 0 2px #d2a4ff,0 0 24px #bd83ef6a!important;
}
body.ccl-live-gamecast #gamecastPanel .ss40-team.ss-live-team-running .clock-face{
 border-color:#f0ca95!important;box-shadow:0 0 13px #ffc77e4b!important;
}
body.ccl-live-gamecast #gamecastPanel .ss40-team.ss-live-team-running .ss-live-active-label{
 color:#fff2bd;animation:ssLivePulse 1.8s ease-in-out infinite;
}
@keyframes ssLivePulse{50%{opacity:.55}}
/* Original clock panel now displays only kickoff/setup and a concise status line. */
body.ccl-live-gamecast #gamecastPanel.ss-live-clocks-integrated #clockPanel.ss-live-clock-minimized{
 display:block;min-height:0;margin:0!important;padding:6px 14px!important;
 background:#15121b!important;box-shadow:none!important;
 border:1px solid #aa81655b!important;border-top:0!important;border-radius:0!important;
}
body.ccl-live-gamecast #gamecastPanel.ss-live-clocks-integrated #clockPanel .clock-grid,
body.ccl-live-gamecast #gamecastPanel.ss-live-clocks-integrated #clockPanel .clock-buttons,
body.ccl-live-gamecast #gamecastPanel.ss-live-clocks-integrated #clockPanel #clockHalf{
 display:none!important;
}
body.ccl-live-gamecast #gamecastPanel.ss-live-clocks-integrated #clockPanel .clock-phase{
 font:800 11px/1.5 system-ui,sans-serif;letter-spacing:.07em;
 margin:0!important;padding:0!important;background:transparent!important;color:#f5cd8f!important;
}
body.ccl-live-gamecast #gamecastPanel.ss-live-clocks-integrated #clockPanel #clockStatus{
 display:block;margin:2px 0 0!important;color:#cbbac3;font-size:11px;line-height:1.4;
}
body.ccl-live-gamecast #gamecastPanel.ss-live-clocks-integrated #clockPanel :is(#kickoffClockBox,#clockReceiverWrap){
 margin:9px 0!important;
}
/* Actual original End Turn node is placed immediately after one-tap event buttons. */
body.ccl-live-gamecast #ssLiveTurnAction{
 display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
 margin:13px 0;padding:12px 15px;border:1px solid #ba865f;border-radius:9px;
 background:linear-gradient(110deg,#2c1b2e,#1a141f);
}
body.ccl-live-gamecast #ssLiveTurnAction strong{
 color:#e1c4dc;font:900 11px/1.4 system-ui,sans-serif;letter-spacing:.12em;
}
body.ccl-live-gamecast #ssLiveTurnAction #clockEnd{
 flex:1 1 220px;min-height:52px!important;margin:0!important;padding:12px!important;
 color:#20121b!important;background:linear-gradient(110deg,#ffe1a5,#d89361)!important;
 border:1px solid #f4c08c!important;border-radius:7px!important;
 font:900 13px/1.25 system-ui,sans-serif!important;letter-spacing:.035em;
}
body.ccl-live-gamecast #ssLiveTurnAction #clockEnd[hidden]{display:none!important}
body.ccl-live-gamecast #ssLiveTurnAction #clockEnd:disabled{opacity:.48;cursor:not-allowed}
body.ccl-live-gamecast #cclMatchEnding #ssLiveClockToggle{
 min-height:44px;padding:10px 13px;border:1px solid #a988ad;
 background:#25202b;color:#f2d9e6;font-weight:800;
}
body.ccl-live-gamecast #cclMatchEnding #ssLiveClockToggle:disabled{opacity:.45;cursor:not-allowed}
body.ccl-live-gamecast #gamecastPanel :is(#ssLiveClockToggle,#clockEnd):focus-visible{
 outline:3px solid #dfb5ff;outline-offset:4px;
}
@media(max-width:600px){
 body.ccl-live-gamecast #gamecastPanel .ss40-team{padding:12px 7px!important}
 body.ccl-live-gamecast #gamecastPanel .ss40-team .clock-face{padding:6px 4px!important}
 body.ccl-live-gamecast #gamecastPanel .ss40-team .clock-face span{font-size:clamp(1.3rem,7vw,2.1rem)!important}
 body.ccl-live-gamecast #gamecastPanel .ss40-team .ss-live-active-label{font-size:8px}
 body.ccl-live-gamecast #ssLiveTurnAction{padding:10px}
 body.ccl-live-gamecast #ssLiveTurnAction #clockEnd{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){body.ccl-live-gamecast .ss-live-team-running .ss-live-active-label{animation:none!important}}


/* live-rehearsal-74a.css */
/* Build 74A: tucked-away read-only PC/iPhone rehearsal instrument */
#ssRehearsal74{margin:12px 0 18px;padding:12px 16px;border:1px solid #836e5f;background:#171b20;color:#f2e4d3;border-radius:10px}
#ssRehearsal74 summary{cursor:pointer;font-weight:750;color:#f4c897;min-height:25px}
#ssRehearsal74 p{font-size:.85rem;line-height:1.55;color:#d3c9c4}
.ss-rehearsal-controls{display:flex;flex-wrap:wrap;gap:9px}
.ss-rehearsal-controls button{min-height:44px}
.ss-rehearsal-data{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:7px;margin-top:12px}
.ss-rehearsal-row{display:flex;flex-direction:column;gap:3px;min-width:0;background:#101418;border:1px solid #485459;border-radius:7px;padding:9px}
.ss-rehearsal-row span{font-size:.73rem;color:#c0bbc0}
.ss-rehearsal-row strong{font-size:.85rem;overflow-wrap:anywhere;color:#f2e6d5;font-variant-numeric:tabular-nums}
#ssRehearsal74 :focus-visible{outline:3px solid #e5bd95;outline-offset:3px}
@media(max-width:600px){#ssRehearsal74{padding:11px}.ss-rehearsal-data{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* mobile-match-ux-76a.css */
/* Build 76A · iPhone/Windows responsive usability pass.
 * Presentation only. Never alter match events, clock state, or form behavior.
 * Scoped to Coach HQ and SlaughterStream Live to avoid affecting other pages. */
@media (max-width: 820px) {
  body.ccl-brand-refresh #portal,
  body.ccl-live-gamecast #portal {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-inline: clamp(10px, 3vw, 18px);
  }
  body.ccl-brand-refresh #portal :is(.portal-layout,.ccl-workspace,.ccl-section-main,.ccl-view,.panel),
  body.ccl-live-gamecast #portal :is(.portal-layout,.ccl-workspace,.ccl-section-main,.ccl-view,.panel,#liveMatchCenter,#liveSession) {
    min-width: 0;
    max-width: 100%;
  }
  /* Internal tables retain column structure; only the data panel scrolls. */
  body.ccl-brand-refresh #portal :is(.roster-manager,.roster-table-wrap,.table-wrap,.roster-list,.ccl-table-scroll),
  body.ccl-live-gamecast #portal :is(.roster-manager,.roster-table-wrap,.table-wrap,.ccl-table-scroll) {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.ccl-brand-refresh #portal :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
  body.ccl-live-gamecast #portal :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
    max-width: 100%;
    min-width: 0;
    font-size: 16px; /* iOS Safari: avoid automatic zoom on form focus */
  }
  body.ccl-brand-refresh #portal :is(button,[role=button],summary),
  body.ccl-live-gamecast #portal :is(button,[role=button],summary) {
    touch-action: manipulation;
  }
  body.ccl-brand-refresh #portal button:not(.ccl-nav-link),
  body.ccl-live-gamecast #portal button {
    min-height: 44px;
  }
  body.ccl-brand-refresh #portal .ccl-nav-link {
    min-height: 44px;
  }
  body.ccl-live-gamecast #gamecastPanel {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  body.ccl-live-gamecast #gamecastPanel :is(.gamecast-heading,.gamecast-score,.clock-panel,.clock-grid,.clock-face) {
    min-width: 0;
    max-width: 100%;
  }
  body.ccl-live-gamecast #gamecastPanel :is(button,select) {
    min-height: 44px;
  }
  body.ccl-live-gamecast :is(#cclMatchEnding,#cclCloseoutOverlay,#cclFinanceRecovery) {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 600px) {
  body.ccl-brand-refresh #portal,
  body.ccl-live-gamecast #portal { padding-inline: 10px; }
  body.ccl-live-gamecast .bar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding-top: env(safe-area-inset-top,0px);
  }
  body.ccl-live-gamecast #liveSession,
  body.ccl-brand-refresh #liveSession { width: 100%; min-width: 0; }
  body.ccl-live-gamecast #gamecastPanel { padding: 12px 10px; }
  body.ccl-live-gamecast #gamecastPanel :is(.gamecast-heading,.clock-buttons) {
    flex-wrap: wrap;
    gap: 8px;
  }
  body.ccl-live-gamecast #gamecastPanel :is(.clock-buttons,.gamecast-actions,.gamecast-controls) button {
    flex: 1 1 135px;
    min-width: 0;
    white-space: normal;
  }
  body.ccl-live-gamecast #gamecastPanel .clock-face :is(span,strong,small) {
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
  }
  body.ccl-live-gamecast #gamecastPanel :is(.gamecast-score,.gamecast-turn) {
    text-wrap: balance;
  }
  body.ccl-brand-refresh #portal :is(.ccl-dashboard-hero,.ccl-quick-card,.panel) {
    overflow-wrap: anywhere;
  }
  body.ccl-brand-refresh #portal .ccl-quick-grid {
    grid-template-columns: minmax(0,1fr);
  }
  body.ccl-live-gamecast #ssRehearsal74,
  body.ccl-live-gamecast #ssRecovery68 {
    box-sizing: border-box;
    max-width: 100%;
    margin-inline: auto;
  }
  body.ccl-live-gamecast #ssRehearsal74 .ss-rehearsal-data {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 375px) {
  body.ccl-live-gamecast #ssRehearsal74 .ss-rehearsal-data {
    grid-template-columns: minmax(0,1fr);
  }
  body.ccl-live-gamecast #gamecastPanel :is(.clock-buttons,.gamecast-actions,.gamecast-controls) button {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.ccl-brand-refresh #portal *,
  body.ccl-live-gamecast #portal * {
    scroll-behavior: auto !important;
  }
}


/* slaughtermaster-topnav.css */
/* The commissioner office is a proper navigation destination, not a coach subpanel. */
.ccl-slaughtermaster-top-nav[hidden]{display:none!important}
header.bar nav .ccl-slaughtermaster-top-nav{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;background:#3d3325;border:1px solid #c8a068;border-radius:7px;color:#f4d7a2;font-weight:850;text-decoration:none}
header.bar nav .ccl-slaughtermaster-top-nav[aria-current=page]{box-shadow:inset 0 -3px #ecc27b;background:#53402b}
header.bar nav .ccl-slaughtermaster-top-nav:focus-visible{outline:3px solid #f5d59e;outline-offset:2px}


/* supremo-topnav.css */
.ccl-supremo-nav[hidden]{display:none!important}header.bar nav .ccl-supremo-nav{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;min-height:44px;border:1px solid #b78e50;border-radius:7px;background:#312819;color:#f5d6a2;font-weight:800;text-decoration:none}header.bar nav .ccl-supremo-nav:focus-visible{outline:3px solid #f5d6a2;outline-offset:3px}

/* match-first-77.css */
/* Active match is the primary workspace, not account administration. */
body.ss-match-first-active .ccl-portal-intro,
body.ss-match-first-active #portal > .section-label,
body.ss-match-first-active #portal > .section-heading,
body.ss-match-first-active #signedIn > :not(#myTeamsPanel) {display:none!important}
body.ss-match-first-active #portal {padding-top:8px}
body.ss-match-first-active #gamecastPanel {margin-top:0}
body.ss-match-first-active #cclQuickMatchActions,
body.ss-match-first-active .ccl-slaughter-banner {margin-top:12px}
@media(max-width:820px){
 body.ss-match-first-active .bar {position:relative}
 body.ss-match-first-active #portal {padding-top:0}
 body.ss-match-first-active #gamecastPanel {padding:10px}
 body.ss-match-first-active .ccl-slaughter-banner {padding:14px}
 body.ss-match-first-active #cclQuickMatchActions .ccl-quick-match-buttons {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.ss-match-first-active #cclQuickMatchActions button {min-width:0}
}
