/* Sessions hub: filters, session cards and lifecycle actions (PC). */

/* ---- Navigation: Live Session sits last and shows a pulsing record dot. */
.nav button[hidden] {
  display: none;
}
.nav-live-dot {
  display: none;
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--brand-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-ink) 22%, transparent);
  animation: hub-live-pulse 1.6s ease-in-out infinite;
}
.nav [data-nav="add"].is-live .nav-live-dot {
  display: block;
}
@keyframes hub-live-pulse {
  50% {
    opacity: 0.35;
  }
}

/* ---- Toolbar: All Sessions / My Assignments on the left; type, status and
   Export raw data on the right (UI-03, UI-07). It wraps whole groups on
   narrow screens, navigation first (UI-39). */
.hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
}
.hub-views {
  flex: none;
  max-width: 100%;
}
.hub-views button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: var(--space-4);
}
.hub-unseen {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.hub-toolbar-end {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-left: auto;
}
.hub-select .select {
  min-width: 150px;
}
@media (max-width: 640px) {
  .hub-toolbar-end {
    margin-left: 0;
  }
  .hub-toolbar-end > * {
    flex: 1 1 140px;
  }
  .hub-select .select {
    width: 100%;
    min-width: 0;
  }
}

/* ---- Card grid: three columns on wide screens, fewer as space narrows
   (UI-11). Compact cards (Setting_OtherRequests UPDATE-07..16): every card
   shares five rows with the other cards of its grid row (subgrid): header,
   meta, body, note and actions. So the scores, the notes and the action
   footers line up across the row and the footers sit at the bottom
   (UPDATE-15), and a row only grows for Live or the menu when one of its own
   cards shows them. Without subgrid the card is a column with its actions
   pushed to the bottom. */
.hub-grid {
  --hub-gap: var(--space-4);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 320px), calc((100% - 2 * var(--hub-gap)) / 3)), 1fr));
  gap: var(--hub-gap);
}
.hub-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-highlight);
}
@supports (grid-template-rows: subgrid) {
  .hub-card {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }
}
.hub-card.is-live {
  border-color: color-mix(in srgb, var(--brand-ink) 55%, var(--line));
}
.hub-card.is-archived {
  opacity: 0.85;
}

/* Header (UPDATE-08..11): three constrained columns. The outer two are the
   same fixed width, so the title stays centred and can never run into the
   status or the type. Live sits under the status, only when it applies. */
.hub-card-top {
  --hub-side-col: 88px;
  display: grid;
  grid-template-columns: var(--hub-side-col) minmax(0, 1fr) var(--hub-side-col);
  align-items: start;
  column-gap: 8px;
  min-width: 0;
}
.hub-card-status,
.hub-card-type {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hub-card-status {
  align-items: flex-start;
}
.hub-card-type {
  position: relative;
  align-items: flex-end;
}
.hub-card-status .status-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-eyebrow {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink-subtle);
  font-size: 11px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Live: this device is tracking now. Separate from the overall status. */
.hub-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 2px;
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hub-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-ink);
  animation: hub-live-pulse 1.6s ease-in-out infinite;
}
/* The title: one line with an ellipsis; the full title stays in the input's
   value (or the text) and the heading's title attribute (UPDATE-09). */
.hub-card-title {
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: var(--ink);
  text-align: center;
}
.hub-card-title .session-title-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-card-title .session-title-input {
  text-align: center;
}
.hub-card-meta {
  min-width: 0;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Team identities either side of a large centred score (UI-16..21). */
.hub-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
}
.hub-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}
.hub-side-name {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-badge {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--side-color) 70%, var(--line));
  border-radius: 50%;
  background: var(--side-color);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hub-badge.has-logo {
  border-color: transparent;
  border-radius: var(--radius-md);
  background: transparent;
}
.hub-badge .hub-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hub-badge.is-large {
  width: 48px;
  height: 48px;
}
.hub-scoreline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
}
.hub-points {
  min-width: 1.2ch;
  color: color-mix(in srgb, var(--side-color) 78%, var(--ink));
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.hub-points.is-unavailable {
  color: var(--ink-subtle);
}
.hub-scoreline > i {
  color: var(--ink-subtle);
  font-size: 24px;
  font-style: normal;
}

/* Practice: one team on the left, four tiles on the right (UI-22/23). */
.hub-practice {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 10px;
  margin: 6px 0 0;
}
.hub-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
}
.hub-tiles > div {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  min-width: 0;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--sunken);
}
.hub-tiles dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
}
.hub-tiles dt {
  color: var(--ink-subtle);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.06em;
}

/* The assignment line: the user's assignment, the creator's summary or the
   waiting state (UI-27, UI-34, UI-46). Informational, not a button. Its row
   is empty (and takes no space) when the card has no note. */
.hub-card-extra {
  min-width: 0;
}
.hub-card-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 0;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--sunken);
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.3;
}
.hub-card-note svg {
  flex: none;
  margin-top: 1px;
}
.hub-card-note.is-waiting {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--success) 35%, var(--line));
}

/* Actions (UPDATE-01..06): one line each, inside the button. Buttons shrink
   (min-width 0) so a long label never widens the card or pushes into its
   neighbour; the primary action takes the spare width. Inside a button the
   action wording shrinks a thousand times slower than the team or session
   name after it, so "Continue tracking · Lakev…" keeps its verb. 44px tall
   for touch; 14px text at the narrowest, 15px when there is room. The footer
   is a size container (the card itself cannot be one and stay a subgrid), so
   a narrow card shows Archive / Restore as its icon only (its accessible name
   stays the word) rather than cut the tracking action's wording. */
.hub-card-actions {
  container-type: inline-size;
  min-width: 0;
  margin-top: auto;
  padding-top: 10px;
}
@supports (grid-template-rows: subgrid) {
  .hub-card-actions {
    align-self: end;
    margin-top: 0;
  }
}
.hub-card-buttons {
  display: flex;
  gap: 6px;
  min-width: 0;
}
.hub-card-actions .btn.small {
  flex: 0 1 auto;
  justify-content: center;
  gap: 0;
  min-width: 0;
  min-height: 44px;
  padding-inline: 10px;
  overflow: hidden;
  font-size: clamp(14px, 4.6cqi, 15px);
  white-space: nowrap;
}
.hub-card-actions .btn.primary {
  flex: 1 1 0;
}
/* Without a tracking action (Viewers, archived cards) the buttons share the
   width evenly. */
.hub-card-buttons:not(:has(> .btn.primary)) > .btn.small {
  flex: 1 1 0;
}
.hub-act-verb,
.hub-act-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-act-verb {
  flex: 0 1 auto;
}
.hub-act-name {
  flex: 0 1000 auto;
  margin-left: 0.3em;
}
.hub-card-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.hub-empty {
  grid-column: 1 / -1;
}

.hub-views button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Recording chooser (UI-32). */
.hub-choices {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}

/* Manage second-team tracking (UI-47..59). */
.manage-assignment-box {
  width: min(560px, calc(100vw - 32px));
}
.manage-assignment h3 {
  margin-bottom: 2px;
}
.ma-session {
  margin-top: 0;
}
.ma-team {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: var(--space-3) 0 var(--space-2);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.ma-team-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.ma-team-text b {
  font-size: 17px;
}
.ma-team-text span {
  color: var(--ink-muted);
  font-size: 13px;
}
.ma-first,
.ma-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-3);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  font-size: 14px;
}
.ma-info[hidden] {
  display: none;
}
.ma-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 var(--space-3);
  cursor: pointer;
}
.ma-check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand);
}
.ma-check span {
  display: flex;
  flex-direction: column;
}
.ma-check small {
  color: var(--ink-muted);
  font-size: 13px;
}
.ma-field {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-muted);
  font-size: 14px;
}
.manage-assignment #maAssignee {
  width: 100%;
}
.manage-assignment .field-help {
  min-height: 1.3em;
}

/* Success message after Save assignment (UI-61). */
.hub-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  max-width: min(520px, calc(100vw - 32px));
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--raised);
  color: var(--ink);
  box-shadow: var(--shadow-lg, 0 10px 30px rgb(0 0 0 / 0.3));
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hub-toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .nav-live-dot,
  .hub-live-dot {
    animation: none;
  }
  .hub-toast {
    transition: none;
  }
}

/* Status colours: Active blue, Complete green, Archived red. They describe
   the session, not who holds its tracking. */
.hub-card .status-pill {
  --hub-status: var(--ink-muted);
  color: var(--hub-status);
  border-color: color-mix(in srgb, var(--hub-status) 35%, var(--line));
  background: color-mix(in srgb, var(--hub-status) 10%, var(--surface));
}
.hub-card[data-session-state="active"] .status-pill {
  --hub-status: var(--defense);
}
.hub-card[data-session-state="complete"] .status-pill {
  --hub-status: var(--success);
}
.hub-card[data-session-state="archived"] .status-pill {
  --hub-status: var(--danger);
}

/* Tracking locked to other users: amber lock beside the status, and a Locked
   action that still answers clicks with who holds each team. */
.hub-lock {
  display: inline-flex;
  color: var(--warning);
}
.hub-card.is-locked {
  border-color: color-mix(in srgb, var(--warning) 30%, var(--line));
}
.hub-card[data-occupancy="locked"] .hub-card-summary {
  color: var(--ink-muted);
  font-weight: 600;
}
.hub-card-actions .hub-locked-btn {
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 40%, var(--line));
  background: color-mix(in srgb, var(--warning) 8%, var(--surface));
  cursor: help;
}

#continueTracking:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* Inline session title: reads as the title until hover/focus. */
.session-title-edit {
  position: relative;
  display: block;
}
.session-title-input {
  display: block;
  width: 100%;
  margin: 0 -6px;
  padding: 0 28px 0 6px;
  box-sizing: content-box;
  max-width: calc(100% - 22px);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-overflow: ellipsis;
  cursor: text;
}
.session-title-input::placeholder {
  color: var(--ink-muted);
}
.session-title-edit:hover .session-title-input {
  border-color: var(--line);
}
.session-title-input:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 2px var(--focus);
}
.session-title-pencil {
  position: absolute;
  top: 50%;
  right: 0;
  display: inline-flex;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.session-title-edit:hover .session-title-pencil,
.session-title-edit:focus-within .session-title-pencil {
  opacity: 1;
}

/* Admin release list in the Locked explanation. */
.hub-assignments {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
.hub-assignments li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  font-size: 13px;
}
.hub-assignments b {
  color: var(--ink);
}

/* View/Edit: drag a possession header to reorder it within its period. */
.possession-group-head.is-movable {
  cursor: grab;
}
.possession-group-head.is-dragging {
  opacity: 0.45;
}
.possession-grip {
  display: inline-flex;
  margin-right: 6px;
  color: var(--ink-subtle);
  vertical-align: middle;
}
.possession-group-head.is-movable:hover .possession-grip {
  color: var(--ink-muted);
}
.possession-group-head.is-drop-before {
  box-shadow: inset 0 2px 0 var(--focus);
}
.possession-group-head.is-drop-after {
  box-shadow: inset 0 -2px 0 var(--focus);
}
.hub-toolbar-end > .hub-raw {
  flex: none;
}

/* ---- Sessions update: content header, status groups, card buttons, list view.
   The content header holds the first visible status heading on the left and
   Card view / List view on the right; it stays when filters hide a group (the
   next heading moves up) and above the empty state when nothing matches. */
.hub-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  min-height: 44px;
  margin: 0 0 var(--space-3);
}
.hub-content-start {
  min-width: 0;
}
.hub-layouts {
  flex: none;
  margin-left: auto;
}
.hub-layouts button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-inline: var(--space-3);
}
.hub-layouts button:focus-visible,
.hub-group-toggle:focus-visible,
.hub-sort:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.hub-group {
  margin-top: var(--space-5);
}
.hub-group > .hub-group-title {
  margin-bottom: var(--space-3);
}
.hub-group-title {
  margin: 0;
  font-size: inherit;
}
.hub-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px 0 2px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}
.hub-group-toggle:hover {
  color: var(--ink);
}
.hub-group-toggle svg {
  transition: transform 0.15s ease;
}
.hub-group-toggle[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}
.hub-group-body[hidden] {
  display: none;
}

/* Card header: the side columns size to their content (status pill; type)
   so the title keeps the width between them. */
.hub-card-top {
  --hub-side-col: 100px;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
}
.hub-card-type {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

/* The tracking button: View / Edit keeps its width, tracking takes the rest,
   the same size whether or not it is available. Unavailable reads greyed but
   keeps its tooltip (aria-disabled, not disabled). */
.hub-card-actions .btn.hub-track {
  flex: 1 1 0;
}
.hub-card-buttons:not(:has(> .btn.primary)) > .btn.hub-view {
  flex: 0 1 auto;
}
.btn.hub-track.is-unavailable {
  cursor: not-allowed;
  opacity: 0.5;
  color: var(--ink-muted);
}
.btn.hub-track.is-unavailable:hover {
  background: var(--raised, var(--surface));
}
/* Archive / Restore, the card's third button: compact, its icon and word;
   on a narrow card (under 360px of footer) its icon only, 44 square. */
.hub-card-actions .hub-card-buttons > .btn.small.hub-archive {
  flex: 0 0 auto;
  gap: 6px;
  padding-inline: 10px;
}
@container (max-width: 359px) {
  .hub-card-actions .hub-card-buttons > .btn.small.hub-archive {
    width: 44px;
    padding-inline: 0;
  }
  .hub-archive .hub-archive-label {
    display: none;
  }
}

/* Couldn't sync: under the Tracking line, and an icon in the list. */
.hub-card-sync {
  margin: 6px 0 0;
}
.hub-sync-issue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--warning);
  font-size: 13px;
  font-weight: 600;
}

/* List view: one compact row per session, a table per status group. Type and
   Plays leave below 1100px of table; below 980px the table scrolls sideways.
   Managers and Admin/Owners get a checkbox column (select all per group in
   its heading) for the selection bar's bulk actions. */
.hub-table-wrap {
  container: hubtable / inline-size;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.hub-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}
.hub-table th,
.hub-table td {
  padding: 4px 8px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-table thead th {
  height: 40px;
  border-top: 0;
  background: var(--sunken);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}
/* The title is the row's name: it always keeps a real share of the width.
   Narrower tables drop Type and Plays, then Flags, then My assignment. */
.hub-table .col-title { width: 20%; min-width: 150px; }
.hub-table .col-type { width: 84px; }
.hub-table .col-date { width: 92px; }
.hub-table .col-teams { width: 22%; }
.hub-table .col-score { width: 72px; }
.hub-table .col-plays,
.hub-table .col-flags { width: 46px; }
.hub-table .col-mine { width: 130px; }
.hub-table .col-status { width: 86px; }
.hub-table .col-sync { width: 26px; padding-inline: 2px; }
.hub-table .col-actions { width: 250px; overflow: visible; }
.hub-table .col-select { width: 44px; padding-inline: 0; text-align: center; }
@container hubtable (max-width: 1240px) {
  .hub-table .col-type,
  .hub-table .col-plays {
    display: none;
  }
}
@container hubtable (max-width: 1100px) {
  .hub-table .col-flags {
    display: none;
  }
}
@container hubtable (max-width: 960px) {
  .hub-table .col-mine {
    display: none;
  }
}
.hub-table tbody th {
  color: var(--ink);
  font-weight: 700;
}
.hub-row.is-archived {
  opacity: 0.85;
}
.hub-row.is-selected > * {
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}
/* A checkbox drawn 18px with a 44px touch area (its cell). */
.hub-check {
  width: 18px;
  height: 18px;
  margin: 13px;
  accent-color: var(--brand);
  cursor: pointer;
}
.hub-check:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* The selection bar: "3 selected · Archive · Restore · Delete · Clear", kept
   in view at the bottom of the page while anything is selected. */
.hub-selection {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: var(--radius-lg);
  background: var(--raised, var(--surface));
  box-shadow: var(--shadow-lg, 0 10px 30px rgb(0 0 0 / 0.3));
}
.hub-selection-count {
  color: var(--ink);
  font-weight: 700;
}
.hub-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hub-selection .btn.small {
  min-height: 44px;
}
.hub-selection .btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
}
.hub-row-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.hub-row-teams {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.hub-row-side {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.hub-row-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
}
.hub-row-vs {
  flex: none;
  color: var(--ink-subtle);
  font-size: 12px;
}
.hub-badge.is-small {
  width: 24px;
  height: 24px;
  border-width: 1px;
  font-size: 9px;
}
.hub-row-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
}
.hub-row-score .hub-points {
  font-size: 17px;
}
.hub-row-score > i {
  color: var(--ink-subtle);
  font-style: normal;
}
.hub-row-mine {
  color: var(--ink);
}
.hub-table .status-pill {
  --hub-status: var(--ink-muted);
  color: var(--hub-status);
  border-color: color-mix(in srgb, var(--hub-status) 35%, var(--line));
  background: color-mix(in srgb, var(--hub-status) 10%, var(--surface));
}
.hub-row[data-session-state="active"] .status-pill { --hub-status: var(--defense); }
.hub-row[data-session-state="complete"] .status-pill { --hub-status: var(--success); }
.hub-row[data-session-state="archived"] .status-pill { --hub-status: var(--danger); }
.hub-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hub-row-actions .btn.small {
  justify-content: center;
  gap: 0;
  min-width: 0;
  min-height: 44px;
  padding-inline: 10px;
  overflow: hidden;
  white-space: nowrap;
}
.hub-row-actions .hub-view {
  flex: 0 0 auto;
}
.hub-row-actions .hub-track {
  flex: 1 1 0;
}

