/* Notifications panel (push.js): team grid with a Plays level and a Game end checkbox per team.
   style.css gives every .stats-table header a sticky offset meant for the page (title row + toolbar), which is wrong inside
   a modal, so the headers here all stick to the top of the panel's own scroll area. */
/* A sticky header sticks inside the scroll area's padding, so with .modal-body's 16px of top padding rows were visible
   scrolling past in the gap above the header. No top padding here (the first child carries the space) closes that gap. */
#push-body{padding-top:0;}
#push-body > :first-child{margin-top:16px;}
.push-grid{width:100%;margin-top:8px;border-collapse:separate;border-spacing:0;}
.stats-table.push-grid thead th,.stats-table.push-grid thead th:first-child{position:sticky;top:0;left:auto;z-index:5;background:var(--card);cursor:default;}
.stats-table.push-grid th,.stats-table.push-grid td{padding:6px 8px;text-align:center;}
.stats-table.push-grid th:first-child,.stats-table.push-grid td.push-team{text-align:left;}
.stats-table.push-grid tbody td:first-child{position:static;z-index:auto;background:transparent;}
.stats-table.push-grid td.push-team,.stats-table.push-grid th:first-child{width:100%;max-width:0;}   /* the team column takes what is left and truncates */
.stats-table.push-grid th,.stats-table.push-grid td:not(.push-team){white-space:nowrap;}
.push-team-in{display:flex;align-items:center;gap:8px;min-width:0;}
.push-logo{width:28px;height:28px;object-fit:contain;flex:0 0 auto;}
.push-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.push-level{font:inherit;font-size:13px;padding:4px 6px;min-width:112px;}   /* always wide enough for "Key moments"; the team name gives way instead */
.push-grid input[type=checkbox]{width:18px;height:18px;vertical-align:middle;}
@media (max-width:600px){
  .stats-table.push-grid th,.stats-table.push-grid td{padding:6px 4px;}
  .push-logo{width:24px;height:24px;}
  .push-team-in{gap:6px;}
  .push-level{font-size:12px;padding:4px 2px;min-width:100px;}
  #push-body{padding-left:12px;padding-right:12px;}
  .push-name{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.15;font-size:12px;overflow-wrap:anywhere;}   /* wrap a long nickname rather than cut it */
  .stats-table.push-grid th{white-space:normal;line-height:1.1;}                                                         /* "Game end" may wrap to two lines */
}
.push-tags{display:flex;flex-wrap:wrap;gap:6px 14px;margin:6px 0 10px;}
.push-tag{display:inline-flex;align-items:center;gap:4px;font-size:.9rem;}
.push-preset-row{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px;}
.push-preview-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:6px 0;}
.push-card{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:14px;background:var(--card);border:1px solid var(--border,rgba(128,128,128,.35));margin-bottom:10px;}
.push-card-logo{width:40px;height:40px;border-radius:8px;object-fit:contain;flex:none;}
.push-card-title{font-weight:700;white-space:pre-wrap;}
.push-card-line{white-space:pre-wrap;}
.push-line-label{font-size:.8rem;opacity:.75;margin:8px 0 3px;}
.push-line{display:flex;flex-wrap:wrap;gap:6px;min-height:38px;padding:5px;border:1px dashed rgba(128,128,128,.55);border-radius:8px;align-items:center;}
.push-line.over{background:rgba(128,128,128,.18);border-style:solid;}
.push-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:999px;border:1px solid rgba(128,128,128,.6);background:var(--card);font-size:.85rem;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;}
.push-chip.push-or{border-style:dashed;background:transparent;color:var(--muted);font-style:italic;}
.push-chip.dragging{opacity:.35;}
.push-chip-x{border:0;background:none;color:inherit;font-size:1rem;line-height:1;padding:0 0 0 2px;cursor:pointer;}
.push-ghost{position:fixed;z-index:10000;pointer-events:none;transform:translate(-50%,-50%);box-shadow:0 4px 12px rgba(0,0,0,.35);}
.push-drop-hint{font-size:.8rem;opacity:.55;}
.push-fmt-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px;}
.push-tabs{display:flex;gap:0;margin:8px 0 12px;border-bottom:1px solid var(--border);}   /* real tabs: they switch the whole view, so they read differently from the chips that set a choice */
.push-tabs .chip{flex:1;text-align:center;background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;margin-bottom:-1px;padding:9px 13px;font-size:14px;color:var(--muted);}
.push-tabs .chip.active{background:transparent;color:var(--text);border-bottom-color:var(--accent);}
.push-opts{display:flex;flex-direction:column;gap:12px;margin:6px 0 4px;}
.push-opts .settings-row{min-height:32px;}
#push-modal .modal-card{max-width:640px;}   /* wide enough for the six layout presets to sit on one line */
#push-modal .push-preset-row .chip{white-space:nowrap;}
.push-palette{flex-direction:column;align-items:stretch;gap:8px;}
.push-pal-group{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.push-pal-label{flex:0 0 70px;font-size:.72rem;font-weight:800;color:var(--muted);}
