/* Football formula layout, scoped to hockey. No calculation or shared-block changes. */
#sport-hockey .hk-piece.hk-formula-piece { width:396px; }
#sport-hockey .hk-formula-piece .hk-or-row .hk-block { flex:0 1 328px; width:328px; max-width:100%; min-width:0; }
#sport-hockey .hk-formula-piece .hk-piece-head > span:first-child { font-size:15px; }
#sport-hockey .hk-formula-piece .hk-delete { padding:0; margin-left:6px; font-size:15px; font-weight:700; line-height:1; }
#sport-hockey .hk-formula-editor { display:grid; gap:7px; width:100%; min-width:0; box-sizing:border-box; }
#sport-hockey .hk-formula-editor *, #sport-hockey .hk-formula-editor *::before { box-sizing:border-box; min-width:0; }
#sport-hockey .hk-formula-steps { width:100%; }
#sport-hockey .hk-formula-step-row { display:flex; flex-wrap:wrap; gap:6px; align-items:center; width:100%; }
#sport-hockey .hk-formula-expression { flex:1; min-width:min(250px,100%); padding:7px; border:1px solid #d7e2ee; border-radius:8px; background:#fff; }
#sport-hockey .hk-formula-controls { display:flex; flex-wrap:wrap; gap:5px; align-items:center; }
#sport-hockey .hk-formula-piece .hk-formula-editor select, #sport-hockey .hk-formula-piece .hk-formula-editor input { flex:none; width:auto; max-width:100%; min-width:0; min-height:34px; padding:6px 8px; border:1px solid #d8dee8; border-radius:8px; background:#f8f9fb; color:#1a1e24; font-size:12.5px; }
#sport-hockey .hk-formula-piece .hk-formula-editor input[type=number] { width:64px; padding:8px 10px; font-size:14px; }
#sport-hockey .hk-formula-editor [data-hf-source] { width:117px; }
#sport-hockey .hk-formula-editor [data-hf-node=stat] > .hk-formula-controls > [data-hf-metric] { width:172px; }
#sport-hockey .hk-formula-editor [data-hf-node=stat] > .hk-formula-controls > [data-hf-team] { width:52px; }
#sport-hockey .hk-formula-editor [data-hf-node=stat] > .hk-formula-controls > [data-hf-scope] { width:177px; }
#sport-hockey .hk-formula-side-title { margin-top:4px; color:#62666e; font-size:12px; font-weight:400; }
#sport-hockey .hk-formula-comparison { display:flex; gap:8px; align-items:center; }
#sport-hockey .hk-formula-comparison strong { color:#1d1d1f; font-size:16px; font-weight:700; }
#sport-hockey .hk-formula-summary { padding:6px 8px; color:#234f82; background:#edf6ff; border-radius:6px; font-size:11px; line-height:1.45; overflow-wrap:anywhere; }
#sport-hockey .hk-formula-help, #sport-hockey .hk-formula-legacy { font-size:11px; line-height:1.5; color:#62666e; overflow-wrap:anywhere; }
#sport-hockey .hk-formula-legacy code { display:block; padding:7px 0; white-space:pre-wrap; }
#sport-hockey .hk-formula-group { display:flex; flex-wrap:wrap; gap:5px; align-items:center; }
#sport-hockey .hk-formula-group-text { flex:1; font-size:11px; line-height:1.45; color:#41546b; overflow-wrap:anywhere; }
#sport-hockey .hk-formula-group > .hk-formula-steps { flex-basis:100%; }
#sport-hockey .hk-formula-error { padding:7px; color:#a21c29; background:#fff0f1; border-radius:5px; font-size:12px; overflow-wrap:anywhere; }
#sport-hockey .hk-formula-button { border:1px solid #a9c4e5; border-radius:6px; color:#15579f; background:#edf5ff; padding:6px 8px; font-size:12px; cursor:pointer; white-space:normal; }
@media(max-width:900px) {
  #sport-hockey .hk-builder.mc-mobile .hk-formula-piece .hk-or-row .hk-block { flex:none; width:var(--mc-card-width,260px); min-width:0; max-width:none; }
  #sport-hockey .hk-builder.mc-mobile .hk-formula-editor [data-hf-node=stat] > .hk-formula-controls > [data-hf-metric] { width:209px; }
  #sport-hockey .hk-builder.mc-mobile .hk-formula-editor [data-hf-node=stat] > .hk-formula-controls > [data-hf-team] { width:54px; }
  #sport-hockey .hk-builder.mc-mobile .hk-formula-editor [data-hf-node=stat] > .hk-formula-controls > [data-hf-scope] { width:216px; }
}
