/* Mobile UI v32 — Rounds: condense the command area.
   - Command grid: Create / Manage / More, where "More" holds Review schedule
     and Run AI analysis (mobile-v23's faked "Filter rounds" ::before is gone).
   - Top stats collapse to a one-line summary; tap to expand the full 5-up grid.
   - The Reference review schedule card stays out of the layout until opened. */
@media (max-width: 760px) {
  .rounds-ai-page > .ui-page-header .ui-page-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .rounds-ai-page > .ui-page-header .ui-page-actions::before {
    content: none !important;
    display: none !important;
  }
  .rounds-ai-page > .ui-page-header .ui-page-actions > .round-secondary-action {
    display: none !important;
  }
  .rounds-ai-page > .ui-page-header .ui-page-actions > :nth-child(3) {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .round-more-menu {
    position: relative !important;
    display: block !important;
    min-width: 0 !important;
  }
  .round-more-menu > summary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-height: 36px !important;
    padding: 5px 8px !important;
    border: 1px solid var(--occ-mobile-line, #c9d7e0) !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: var(--occ-mobile-text, #17324d) !important;
    font-size: 10.5px !important;
    font-weight: 750 !important;
    list-style: none !important;
    cursor: pointer !important;
  }
  .round-more-menu > summary::-webkit-details-marker { display: none !important; }
  .round-more-menu[open] > summary { border-color: #7fa8c6 !important; background: #eef5fb !important; }
  .round-more-menu > div {
    position: absolute !important;
    z-index: 60 !important;
    top: calc(100% + 5px) !important;
    right: 0 !important;
    display: grid !important;
    gap: 4px !important;
    min-width: 170px !important;
    padding: 6px !important;
    border: 1px solid #c9d7e0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(4, 18, 30, .22) !important;
  }
  .round-more-menu > div > button {
    width: 100% !important;
    min-height: 40px !important;
    padding: 6px 10px !important;
    border: 1px solid #e0e7ec !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #243b4c !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    text-align: left !important;
  }
  .round-more-menu > div > button.active {
    border-color: #7fa8c6 !important;
    background: #eef5fb !important;
  }

  .rounds-stats-summary-line {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 9px 11px !important;
    border: 1px solid var(--occ-mobile-line, #c9d7e0) !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: var(--occ-mobile-muted, #5f6b78) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
  }
  .rounds-stats-summary-line strong { color: var(--occ-mobile-text, #17324d) !important; font-weight: 750 !important; }

  .rounds-ai-page .rounds-ai-top-stats:not(.is-expanded) { display: none !important; }
  .rounds-ai-page .rounds-ai-top-stats.is-expanded { margin-top: 6px !important; }

  .reference-review-schedule:not([open]) { display: none !important; }
}
