/* Hub v313: mobile-only closure for compact daily cards and owner readability. */
@media (max-width: 680px) {
  html body.page-hub #hubWorkspace #hub-department-floor-v228 .primary-card {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    grid-template-rows: auto auto minmax(44px, auto) !important;
    align-items: start !important;
    min-height: 112px !important;
  }

  html body.page-hub #hubWorkspace #hub-department-floor-v228 .primary-card > .primary-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: start !important;
  }

  html body.page-hub #hubWorkspace #hub-department-floor-v228 .primary-card > h3 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html body.page-hub #hubWorkspace #hub-department-floor-v228 .primary-card > p {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
  }

  html body.page-hub #hubWorkspace #hub-department-floor-v228 .primary-card > b {
    display: flex !important;
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    align-items: center !important;
    align-self: stretch !important;
    min-width: 0 !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 7px 0 0 !important;
  }

  html body.page-hub #hubWorkspace #hub-department-floor-v228 .primary-card > .revenue-partner-links {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    min-width: 0 !important;
  }

  html body.page-hub #hubWorkspace #hub-department-floor-v228 .revenue-partner-links > a {
    height: auto !important;
    min-height: 44px !important;
  }

  html body.page-hub #hubWorkspace #hub-department-floor-v228 .hub-department-stage-v228.hub-hide-descriptions-v299 .primary-card {
    grid-template-rows: auto minmax(44px, auto) !important;
    min-height: 98px !important;
  }

  html body.page-hub #hubWorkspace #hub-department-floor-v228 .hub-department-stage-v228.hub-hide-descriptions-v299 .primary-card > b,
  html body.page-hub #hubWorkspace #hub-department-floor-v228 .hub-department-stage-v228.hub-hide-descriptions-v299 .primary-card > .revenue-partner-links {
    grid-row: 2 !important;
  }

  html body.page-hub #hubWorkspace #hub-department-floor-v228 .primary-access-label {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  html body.page-hub #hubWorkspace[data-hub-section="overview"] > #hub-owner-year-chart-v311 {
    min-height: 390px !important;
  }

  html body.page-hub #hubWorkspace .hub-owner-year-chart-v311 > header {
    flex-wrap: wrap !important;
  }

  html body.page-hub #hubWorkspace .hub-owner-year-chart-v311 > header button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  html body.page-hub #hubWorkspace .hub-owner-year-chart-key-v311 {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  html body.page-hub #hubWorkspace .hub-owner-year-chart-row-v311 {
    grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  html body.page-hub #hubWorkspace .hub-owner-year-chart-row-v311 > b,
  html body.page-hub #hubWorkspace .hub-owner-year-chart-bar-v311 > span,
  html body.page-hub #hubWorkspace .hub-owner-year-chart-v311 > p,
  html body.page-hub #hubWorkspace .hub-owner-boundary-v258,
  html body.page-hub #hubWorkspace .hub-company-boundary-v245,
  html body.page-hub #hubWorkspace .hub-owner-printer-note-v277,
  html body.page-hub #hubWorkspace [data-printer-revenue-note] {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  html body.page-hub #hubWorkspace .hub-owner-year-chart-bar-v311 {
    height: 20px !important;
  }

  html body.page-hub #hubWorkspace .hub-owner-year-chart-bar-v311 > span {
    line-height: 20px !important;
  }

  html body.page-hub #hubWorkspace :is(
    .hub-description-toggle-v299,
    .hub-card-details-v292 > summary,
    .hub-owner-graphic-insights-v286 > summary,
    #hub-command-history-v239 > summary,
    .hub-company-results-collapse-v295 > summary,
    .hub-company-head-meta-v245 > button
  ) {
    min-height: 44px !important;
  }

  html body.page-hub #hubWorkspace :is(
    .hub-owner-daily-revenue-v306 > header > a,
    .hub-owner-grid-v258 > article > a,
    .hub-owner-printer-actions-v277 > a,
    .hub-owner-printer-actions-v277 > button
  ) {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
  }

  html body.page-hub #hubWorkspace #hub-department-floor-v228 .hub-office-shortcuts-v262 > .hub-office-shortcut-v262,
  html body.page-hub #hubAccessGate .hub-public-shortcuts-v262 > .hub-office-shortcut-v262 {
    height: auto !important;
    min-height: 44px !important;
    overflow: visible !important;
  }

  html body.page-hub #hubWorkspace #hub-department-floor-v228 .hub-office-shortcut-copy-v262,
  html body.page-hub #hubAccessGate .hub-office-shortcut-copy-v262 {
    min-height: 20px !important;
    overflow: visible !important;
  }

  html body.page-hub #hubWorkspace #hub-department-floor-v228 .hub-office-shortcut-copy-v262 > strong,
  html body.page-hub #hubAccessGate .hub-office-shortcut-copy-v262 > strong {
    display: block !important;
    height: auto !important;
    min-height: 20px !important;
    line-height: 1.5 !important;
    overflow: visible !important;
  }
}
