/* Hall of War event manager — full-height tournament rail and dashboard shell.
   Scoped to event-workspace so public, organizer, admin and reception surfaces
   keep their existing layouts. */
body[data-how-layout="event-workspace"]{
  --how-workspace-rail:248px;
  --bg:#030506!important;
  --fg:var(--how-paper)!important;
  --txt:var(--how-paper)!important;
  --dim:#85939b!important;
  --muted:#85939b!important;
  --surface:#080d10!important;
  --surface2:#0d151a!important;
  --panel:#080d10!important;
  --panel2:#0d151a!important;
  --line:#1f2a31!important;
  --edge:#35454f!important;
  min-width:0!important;
  overflow-x:hidden!important
}
body[data-how-layout="event-workspace"] .how-ops-brand{
  width:216px;min-height:48px!important;border-color:rgba(103,229,255,.18);
  background:rgba(3,6,8,.88);box-shadow:0 20px 50px rgba(0,0,0,.28)
}
body[data-how-layout="event-workspace"]>.top{
  padding:0!important;border-bottom:1px solid rgba(103,229,255,.18)!important;
  background:#05080a!important
}
body[data-how-layout="event-workspace"]>.top>.tbar{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(330px,auto);
  align-items:end!important;gap:28px!important;min-width:0;
  background:
    linear-gradient(90deg,rgba(3,5,6,.99) 0%,rgba(3,5,6,.9) 50%,rgba(3,5,6,.32) 100%),
    linear-gradient(180deg,transparent 52%,rgba(3,5,6,.92)),
    url('/tournament/v2/assets/how-command-arena-02ee59805bdd.jpg') 72% 50%/cover no-repeat!important
}
body[data-how-layout="event-workspace"]>.top>.tbar>div:first-child{min-width:0;position:relative;z-index:1}
body[data-how-layout="event-workspace"]>.top>.tbar h1{
  margin:0!important;max-width:760px;font-size:clamp(34px,4.2vw,58px)!important;
  line-height:.84!important;letter-spacing:-.035em!important;text-wrap:balance
}
body[data-how-layout="event-workspace"]>.top>.tbar .sub{
  max-width:760px;margin-top:10px!important;color:#9aa7ae!important;
  font-size:12px!important;line-height:1.5!important;overflow-wrap:anywhere
}
body[data-how-layout="event-workspace"] .how-workspace-meta{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:12px;min-width:0
}
body[data-how-layout="event-workspace"] .how-workspace-meta .sub{margin-top:0!important}
body[data-how-layout="event-workspace"] .how-workspace-status{
  --how-status:#67e5ff;display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;
  min-height:28px;padding:6px 9px;border:1px solid color-mix(in srgb,var(--how-status) 38%,transparent);
  background:color-mix(in srgb,var(--how-status) 8%,transparent);color:var(--how-status);
  font:800 9px/1 var(--how-display);letter-spacing:.14em;text-transform:uppercase;white-space:nowrap
}
body[data-how-layout="event-workspace"] .how-workspace-status::before{
  content:"";width:6px;height:6px;background:currentColor;box-shadow:0 0 12px currentColor
}
body[data-how-layout="event-workspace"] .how-workspace-status.is-live{--how-status:#ff6959}
body[data-how-layout="event-workspace"] .how-workspace-status.is-done{--how-status:#89979f}
body[data-how-layout="event-workspace"] .how-workspace-status.is-draft{--how-status:#e5bd67}
body[data-how-layout="event-workspace"] .how-workspace-status.is-live::before{
  animation:how-workspace-live 1.8s ease-in-out infinite
}
body[data-how-layout="event-workspace"] .tacts{
  position:relative;z-index:1;display:grid!important;
  grid-template-columns:minmax(170px,1fr) auto auto!important;align-items:stretch!important;
  width:min(100%,510px)!important;min-width:0!important;margin-left:auto!important;gap:8px!important
}
body[data-how-layout="event-workspace"] .how-workspace-switch,
body[data-how-layout="event-workspace"] .how-workspace-action{
  display:inline-flex;align-items:center;justify-content:center;min-width:0!important;
  min-height:44px!important;padding:10px 13px!important;border:1px solid #3b4b55!important;
  background:rgba(5,9,11,.86)!important;color:var(--how-paper)!important;
  font:750 11px/1 var(--how-display)!important;letter-spacing:.06em!important;
  text-decoration:none!important;white-space:nowrap
}
body[data-how-layout="event-workspace"] .how-workspace-switch{
  width:100%!important;max-width:none!important;padding-right:34px!important;
  font-family:var(--how-body)!important;letter-spacing:0!important;text-align:left
}
body[data-how-layout="event-workspace"] .how-workspace-action:hover,
body[data-how-layout="event-workspace"] .how-workspace-action:focus-visible,
body[data-how-layout="event-workspace"] .how-workspace-switch:focus-visible{
  border-color:var(--how-cyan)!important;color:var(--how-cyan)!important;outline:0!important;
  box-shadow:0 0 0 2px rgba(103,229,255,.13)!important
}
body[data-how-layout="event-workspace"] .how-workspace-action--primary{
  border-color:var(--how-cyan)!important;background:var(--how-cyan)!important;
  color:#011116!important;clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px)
}
body[data-how-layout="event-workspace"] .how-workspace-action--primary:hover,
body[data-how-layout="event-workspace"] .how-workspace-action--primary:focus-visible{
  background:#a5f3ff!important;color:#011116!important
}
body[data-how-layout="event-workspace"]>.wrap{
  min-width:0!important;background:
    radial-gradient(circle at 84% 4%,rgba(31,147,173,.07),transparent 28rem)
}
body[data-how-layout="event-workspace"] .pane{min-width:0!important}
body[data-how-layout="event-workspace"] .pane.on{animation:how-workspace-pane .24s var(--how-ease) both}
body[data-how-layout="event-workspace"] .pane>h2:first-child{
  max-width:900px!important;margin:0 0 18px!important;padding:0 0 12px!important;
  border-bottom:1px solid var(--how-line)!important;font-size:clamp(28px,3.5vw,48px)!important;
  line-height:.92!important;letter-spacing:-.025em!important;text-wrap:balance
}
body[data-how-layout="event-workspace"] :is(.gridtable,.stable,.tablewrap){max-width:100%;overflow-x:auto}

/* Dashboard: the state is the lead signal; readiness is a ledger, not a wall. */
body[data-how-layout="event-workspace"] #pane-dash{padding-top:0!important}
body[data-how-layout="event-workspace"] .how-workspace-stats{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1px;
  border:1px solid var(--how-line);background:var(--how-line)
}
body[data-how-layout="event-workspace"] .how-workspace-stat{
  position:relative;min-width:0;min-height:112px;padding:18px;
  background:linear-gradient(145deg,rgba(14,22,27,.98),rgba(6,10,12,.99));
  overflow:hidden
}
body[data-how-layout="event-workspace"] .how-workspace-stat::after{
  content:"";position:absolute;right:0;top:0;width:24px;height:1px;background:rgba(103,229,255,.5)
}
body[data-how-layout="event-workspace"] .how-workspace-stat-label,
body[data-how-layout="event-workspace"] .how-workspace-focus-label{
  color:#84939b;font:800 9px/1 var(--how-display);letter-spacing:.2em;text-transform:uppercase
}
body[data-how-layout="event-workspace"] .how-workspace-stat-value{
  margin-top:12px;color:var(--how-paper);font:850 clamp(22px,2vw,30px)/1.02 var(--how-display);
  letter-spacing:-.02em;overflow-wrap:anywhere
}
body[data-how-layout="event-workspace"] .how-workspace-stat-sub{
  margin-top:9px!important;color:#7f8d95!important;font-size:11px!important;line-height:1.4!important
}
body[data-how-layout="event-workspace"] .how-workspace-focus,
body[data-how-layout="event-workspace"] .how-workspace-mini-table{
  margin-top:14px;padding:20px;border:1px solid var(--how-line);
  background:linear-gradient(145deg,rgba(13,20,25,.98),rgba(5,8,10,.98))
}
body[data-how-layout="event-workspace"] .how-workspace-focus-title{
  margin-top:10px;color:var(--how-paper);font:850 clamp(23px,3vw,38px)/1.05 var(--how-display)
}
body[data-how-layout="event-workspace"] .how-workspace-focus-title span{color:#738089;font-size:.55em}
body[data-how-layout="event-workspace"] .how-workspace-focus-line{margin-top:7px;color:#bfc8cd;font-weight:750}
body[data-how-layout="event-workspace"] .how-workspace-mini-table{max-width:680px}
body[data-how-layout="event-workspace"] .how-workspace-mini-row{
  display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:12px;align-items:center;
  min-height:40px;border-bottom:1px solid var(--how-line);font-size:13px
}
body[data-how-layout="event-workspace"] .how-workspace-mini-row:last-child{border-bottom:0}
body[data-how-layout="event-workspace"] .how-workspace-mini-row>span{color:#75838b;font-family:var(--how-display)}
body[data-how-layout="event-workspace"] .how-workspace-mini-row>b{font-family:var(--how-display);font-size:11px}
body[data-how-layout="event-workspace"] .how-workspace-pace{
  margin-top:12px!important;padding:11px 13px;border-left:2px solid var(--how-cyan);
  background:rgba(103,229,255,.045)
}
body[data-how-layout="event-workspace"] .how-publish-panel{
  position:relative;margin-top:16px;padding:24px;border:1px solid var(--how-line);
  background:linear-gradient(145deg,rgba(12,19,23,.99),rgba(5,8,10,.99));overflow:hidden
}
body[data-how-layout="event-workspace"] .how-publish-panel::before{
  content:"";position:absolute;left:-1px;top:-1px;width:72px;height:2px;background:var(--how-cyan)
}
body[data-how-layout="event-workspace"] .how-publish-panel.is-incomplete::before{background:var(--how-red)}
body[data-how-layout="event-workspace"] .how-publish-title{
  color:var(--how-paper);font:850 clamp(22px,2.4vw,32px)/1.05 var(--how-display);letter-spacing:-.015em
}
body[data-how-layout="event-workspace"] .how-readiness-list{margin-top:20px;border-top:1px solid var(--how-line)}
body[data-how-layout="event-workspace"] .how-readiness-row{
  display:grid;grid-template-columns:24px minmax(160px,220px) minmax(0,1fr) auto;
  gap:12px;align-items:center;min-height:54px;padding:9px 0;border-bottom:1px solid var(--how-line)
}
body[data-how-layout="event-workspace"] .how-readiness-row>strong{font-size:13px;color:#dce3e6}
body[data-how-layout="event-workspace"] .how-readiness-mark{
  display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;
  border:1px solid #53616a;color:#93a0a7;font:800 10px/1 var(--how-display)
}
body[data-how-layout="event-workspace"] .how-readiness-row.is-ready .how-readiness-mark{
  border-color:rgba(51,208,135,.5);color:var(--how-green);background:rgba(51,208,135,.06)
}
body[data-how-layout="event-workspace"] .how-readiness-row.is-required .how-readiness-mark{
  border-color:rgba(255,84,63,.55);color:#ff8172;background:rgba(255,84,63,.06)
}
body[data-how-layout="event-workspace"] .how-readiness-detail{
  min-width:0;color:#829099;font-size:12px;line-height:1.5;overflow-wrap:anywhere
}
body[data-how-layout="event-workspace"] .how-readiness-row>.sbtn{min-height:38px!important;padding:8px 12px!important;font-size:10px!important}
body[data-how-layout="event-workspace"] .how-publish-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
body[data-how-layout="event-workspace"] .how-publish-actions>.sbtn{min-height:44px!important}

@media(min-width:1100px){
  body[data-how-layout="event-workspace"]{padding-left:0!important}
  body[data-how-layout="event-workspace"]>.top{
    position:sticky!important;top:0!important;z-index:12!important;
    width:calc(100% - var(--how-workspace-rail))!important;
    margin:0 0 0 var(--how-workspace-rail)!important
  }
  body[data-how-layout="event-workspace"]>.top>.tbar{
    min-height:172px!important;padding:30px clamp(24px,3vw,44px)!important
  }
  body[data-how-layout="event-workspace"]>.top>.tabs:not(.subtabs){
    position:fixed!important;left:calc(-1 * var(--how-workspace-rail))!important;top:0!important;bottom:0!important;
    width:var(--how-workspace-rail)!important;height:auto!important;max-height:none!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:2px!important;padding:86px 14px 20px!important;overflow-y:auto!important;overflow-x:hidden!important;
    border:0!important;border-right:1px solid var(--how-line)!important;
    background:
      linear-gradient(180deg,rgba(3,6,8,.93),#030506 44%),
      url('/tournament/v2/assets/how-command-arena-02ee59805bdd.jpg') 54% top/auto 300px no-repeat!important
  }
  body[data-how-layout="event-workspace"].how-tour-tools-open>.top>.tabs:not(.subtabs){
    bottom:auto!important;height:min(370px,52svh)!important;border-bottom:1px solid var(--how-line)!important
  }
  body[data-how-layout="event-workspace"]>.top>.tabs.subtabs{
    position:fixed!important;left:calc(-1 * var(--how-workspace-rail))!important;top:min(370px,52svh)!important;bottom:auto!important;
    width:var(--how-workspace-rail)!important;height:calc(100svh - min(370px,52svh))!important;max-height:none!important;
    flex-direction:column!important;align-items:stretch!important;
    padding:14px!important;overflow-y:auto!important;overflow-x:hidden!important;
    border:0!important;border-right:1px solid var(--how-line)!important;background:#030506!important
  }
  body[data-how-layout="event-workspace"].how-tour-tools-open>.top>.tabs.subtabs{display:flex!important}
  body[data-how-layout="event-workspace"]>.top>.tabs>.tab{
    width:100%!important;min-width:0!important;min-height:46px!important;
    justify-content:flex-start!important;text-align:left!important;padding:11px 14px!important;
    border:0!important;border-left:1px solid transparent!important;box-shadow:none!important
  }
  body[data-how-layout="event-workspace"]>.top>.tabs>.tab.on{
    border-left-color:var(--how-cyan)!important;
    background:linear-gradient(90deg,rgba(82,226,255,.12),transparent)!important;
    box-shadow:none!important
  }
  body[data-how-layout="event-workspace"]>.wrap{
    width:calc(100% - var(--how-workspace-rail))!important;max-width:none!important;
    margin:0 0 0 var(--how-workspace-rail)!important;
    padding:clamp(28px,3.4vw,52px)!important
  }
}

@media(max-width:1099px){
  body[data-how-layout="event-workspace"]{padding-left:0!important}
  body[data-how-layout="event-workspace"]>.top{width:100%!important;margin:0!important;padding:0!important}
  body[data-how-layout="event-workspace"]>.top>.tbar{
    min-height:138px!important;padding:24px 18px 20px 190px!important;
    grid-template-columns:minmax(0,1fr) minmax(330px,.8fr)
  }
  body[data-how-layout="event-workspace"]>.top>.tabs{
    position:static!important;width:100%!important;height:auto!important;max-height:none!important;
    padding:0 12px!important;display:flex!important;flex-direction:row!important;
    overflow-x:auto!important;overflow-y:hidden!important;border-right:0!important
  }
  body[data-how-layout="event-workspace"]>.top>.tabs.subtabs{display:none!important}
  body[data-how-layout="event-workspace"].how-tour-tools-open>.top>.tabs.subtabs{display:flex!important}
  body[data-how-layout="event-workspace"]>.top>.tabs>.tab{
    width:auto!important;min-width:max-content!important;min-height:44px!important;padding:10px 14px!important
  }
  body[data-how-layout="event-workspace"]>.wrap{
    width:100%!important;max-width:none!important;margin:0!important;padding:28px 18px!important
  }
}

@media(max-width:760px){
  body[data-how-layout="event-workspace"] .how-ops-brand{width:auto;min-height:42px!important}
  body[data-how-layout="event-workspace"]>.top>.tbar{
    grid-template-columns:minmax(0,1fr)!important;gap:16px!important;
    min-height:0!important;padding:72px 12px 16px!important;background-position:68% center!important
  }
  body[data-how-layout="event-workspace"]>.top>.tbar h1{font-size:clamp(32px,10vw,46px)!important}
  body[data-how-layout="event-workspace"]>.top>.tbar .sub{font-size:11px!important}
  body[data-how-layout="event-workspace"] .tacts{
    width:100%!important;margin:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important
  }
  body[data-how-layout="event-workspace"] .tacts>.how-workspace-switch{grid-column:1/-1}
  body[data-how-layout="event-workspace"]>.top>.tabs{padding-inline:8px!important}
  body[data-how-layout="event-workspace"]>.wrap{padding:20px 12px!important}
  body[data-how-layout="event-workspace"] .how-workspace-stat{min-height:96px;padding:16px}
  body[data-how-layout="event-workspace"] .how-readiness-row{
    grid-template-columns:24px minmax(0,1fr);gap:7px 10px;padding:12px 0
  }
  body[data-how-layout="event-workspace"] .how-readiness-detail{grid-column:2}
  body[data-how-layout="event-workspace"] .how-readiness-row>.sbtn{grid-column:2;justify-self:start}
  body[data-how-layout="event-workspace"] .how-publish-panel{padding:18px}
  body[data-how-layout="event-workspace"] .how-publish-actions>.sbtn{flex:1 1 190px}
}

@media(max-width:480px){
  body[data-how-layout="event-workspace"] .how-workspace-stats{grid-template-columns:minmax(0,1fr)}
  body[data-how-layout="event-workspace"] .tacts{grid-template-columns:minmax(0,1fr)!important}
  body[data-how-layout="event-workspace"] .tacts>.how-workspace-switch{grid-column:auto}
  body[data-how-layout="event-workspace"] .how-workspace-action{width:100%!important}
}

@keyframes how-workspace-pane{from{opacity:.45;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes how-workspace-live{50%{opacity:.45;box-shadow:0 0 4px currentColor}}
@media(prefers-reduced-motion:reduce){
  body[data-how-layout="event-workspace"] .pane.on{animation:none!important}
  body[data-how-layout="event-workspace"] .how-workspace-status.is-live::before{animation:none!important}
  body[data-how-layout="event-workspace"] *{scroll-behavior:auto!important}
}

/* Professional product pass: operational pages are one dark control system.
   Account appearance must not turn isolated cards or rails paper-white inside
   an otherwise cinematic manager workspace. Public/print/broadcast surfaces
   are separate bundles and are intentionally untouched here. */
html[data-theme] body[data-how-surface="ops"]{
  --bg:#05080a!important;--fg:#f2f6f7!important;--fg-soft:#bcc7cc!important;
  --surface:#091015!important;--surface2:#0d171d!important;
  --line:#1d2a31!important;--edge:#33454f!important;--muted:#829099!important;
  color:#f2f6f7!important;color-scheme:dark!important
}
body[data-how-surface="ops"] :is(.opshell,.opsmain,.opscontent){background:transparent!important}
body[data-how-surface="ops"] :is(.opsrail,.playerdirectory,.playerdirectorytop,
 .playercard,.playerrow,.opsstat,.opstable,.opsfilters,.playerbar,.storyhero,
 .storymetrics,.storymetric,.careerentry,.continue-panel){
  color:#f2f6f7!important;border-color:#26343c!important;
  background:linear-gradient(145deg,rgba(14,21,26,.98),rgba(6,9,11,.99))!important
}
body[data-how-surface="ops"] :is(.opsrail a,.playerfilter,.playercount,.playermeta,
 .playerscope,.hint,.meta,.note,.sub){color:#87959d!important}
body[data-how-surface="ops"] :is(.opsrail a.on,.opsrail a:hover,.playerfilter.on){
  color:#f2f6f7!important;background:rgba(103,229,255,.08)!important
}
body[data-how-surface="ops"] :is(input,select,textarea){
  color:#f2f6f7!important;background:#070b0e!important;border-color:#344650!important
}
body[data-how-surface="ops"] :is(input,select,textarea):focus-visible,
body[data-how-surface="ops"] :is(button,a,[role="button"]):focus-visible{
  outline:2px solid #67e5ff!important;outline-offset:2px!important
}
body[data-how-layout="event-workspace"] .rules-readonly{pointer-events:none}
body[data-how-layout="event-workspace"] .rules-readonly :is(.rx,.radd,input[type="checkbox"]){display:none!important}
body[data-how-layout="event-workspace"] .record-readonly{position:relative}
body[data-how-layout="event-workspace"] .record-readonly::after{
  content:"Completed scoring record · read only";display:block;margin-top:12px;
  color:#87959d;font:750 10px/1.4 var(--how-display);letter-spacing:.12em;text-transform:uppercase
}

/* The creation route is a form, not a directory of giant game billboards. */
body[data-how-layout="tournament-builder"] .wrap{max-width:1260px!important}
body[data-how-layout="tournament-builder"] :is(.cards,.cards.wide){
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
  gap:8px!important;background:transparent!important
}
body[data-how-layout="tournament-builder"] :is(.cards,.cards.wide)>*{
  grid-column:auto!important;min-height:58px!important;margin:0!important
}
body[data-how-layout="tournament-builder"] .cards.wide>*{min-height:82px!important}
body[data-how-layout="tournament-builder"] .pick{padding:14px!important;text-align:left!important}
body[data-how-layout="tournament-builder"] .evrow{min-height:64px!important}

@media(max-width:820px){
  body[data-how-surface="ops"] .opsrail{background:#05080a!important;border-bottom:1px solid #26343c!important}
  body[data-how-surface="ops"] .playercard{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important}
  body[data-how-surface="ops"] .playercard>:not(.playeridentity):not(.playerstory){grid-column:1/-1}
}
@media(max-width:560px){
  body[data-how-layout="tournament-builder"] :is(.cards,.cards.wide){grid-template-columns:1fr!important}
  body[data-how-layout="event-workspace"] .gridtable{font-size:12px!important}
}

/* audit F-03: the rebranded landscape logo (~122px wide at 58px tall) overran the ops-brand slot that how-cinematic-ops reserves for a portrait mark, so the plate overlapped the header. Cap the logo and widen the reservation to clear it. Loaded after ops css, so this wins. */
.how-ops-brand img{height:40px!important;width:auto}
.how-ops-brand~.top,.how-ops-brand~header,.how-ops-brand~.tbar{padding-left:252px!important}
@media(max-width:760px){.how-ops-brand~.top,.how-ops-brand~header,.how-ops-brand~.tbar{padding-left:112px!important}}
