/* Mobile UI v24 — final Motion review geometry and working mute sheet. */
@media (max-width: 760px) {
  /* Four review actions only: wider, shorter, centered 2x2 grid. */
  .motion-card:not(.reviewed) .motion-actions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px 8px !important;
    width: auto !important;
    margin: 7px 10px 9px !important;
    padding: 0 !important;
    border-top: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    justify-items: stretch !important;
  }

  .motion-card:not(.reviewed) .motion-review-action {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .motion-card:not(.reviewed) .motion-review-action > button:first-child {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 5px 8px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
  }

  .motion-card:not(.reviewed) .motion-ai-start {
    display: none !important;
  }

  /* Keep the right side clear for the mute icon. */
  .motion-card:not(.reviewed) .motion-card-body {
    padding-right: 48px !important;
  }

  /* Real compact mute trigger: outline bell-with-slash icon, no emoji rendering. */
  .motion-mute-icon-button {
    position: absolute !important;
    top: 7px !important;
    right: 7px !important;
    z-index: 6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #b9c8d2 !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #526b7b !important;
    box-shadow: none !important;
  }

  .motion-mute-icon-button svg {
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .motion-mute-icon-button.active {
    background: #fff7e6 !important;
    border-color: #dfa83d !important;
    color: #9a5e08 !important;
  }

  /* Bottom sheet opened by the bell. */
  .motion-mute-sheet-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1200 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    background: rgba(19, 38, 55, .22) !important;
  }

  .motion-mute-sheet {
    width: min(100%, 760px) !important;
    margin: 0 !important;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom)) !important;
    border: 1px solid var(--occ-mobile-line) !important;
    border-bottom: 0 !important;
    border-radius: 14px 14px 0 0 !important;
    background: #fff !important;
    box-shadow: 0 -10px 30px rgba(23, 50, 77, .16) !important;
    box-sizing: border-box !important;
  }

  .motion-mute-sheet header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 34px !important;
    gap: 10px !important;
    align-items: start !important;
    margin-bottom: 10px !important;
  }

  .motion-mute-sheet header > div {
    min-width: 0 !important;
  }

  .motion-mute-sheet header strong {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
  }

  .motion-mute-sheet header span {
    display: block !important;
    margin-top: 4px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    color: var(--occ-mobile-muted) !important;
  }

  .motion-mute-sheet-close {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 25px !important;
    line-height: 1 !important;
    color: var(--occ-mobile-text) !important;
  }

  .motion-mute-sheet-label {
    display: block !important;
    margin: 0 0 6px !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    color: var(--occ-mobile-text) !important;
  }

  .motion-mute-duration-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-bottom: 9px !important;
  }

  .motion-mute-duration-grid button {
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 4px 5px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .motion-mute-duration-grid button.active {
    border-color: #0f6c9f !important;
    background: #0f6c9f !important;
    color: #fff !important;
  }

  .motion-mute-confirm {
    width: 100% !important;
    min-height: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    background: #0f6c9f !important;
    border-color: #0f6c9f !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
  }

  .motion-mute-sheet > .error {
    display: block !important;
    margin-top: 7px !important;
    font-size: 9.5px !important;
  }
}
