/*
  Back Office on a phone (18 November 2026).

  Above 760px each panel is a 1120px design that B-back-office-master-size
  scales to fit. On a phone that scale is about a quarter, which left text at
  2 to 8px. Below 760px the script leaves the panels alone and these rules lay
  them out in one column at readable sizes. Nothing here applies above 760px.
*/
@media (max-width: 760px) {
  /* The five workflow stages: one per row, not five 34px columns. */
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section .by5-autopilot-stages {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    height: auto !important;
  }
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section .by5-autopilot-stage {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 12px;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 14px !important;
    text-align: left;
  }
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section .by5-autopilot-stage h3 {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    white-space: normal;
  }
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section .by5-autopilot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section .by5-autopilot-meta span {
    width: auto !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  /* Get noticed: the words sat on top of the artwork at 5 to 6px. They now
     follow the picture as ordinary text. */
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section #story-01 .story-art {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto !important;
  }
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section #story-01 .story-art > img {
    order: 1;
    width: 100%;
    height: auto;
  }
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section #story-01 .by5-noticed-intro {
    position: static !important;
    order: 2;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section #story-01 .by5-noticed-benefits {
    position: static !important;
    order: 3;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 0 0 20px !important;
    list-style: disc;
  }
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section #story-01 .by5-noticed-benefits li {
    position: static !important;
    width: auto !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section #story-01 .by5-explore-features-button {
    position: static !important;
    order: 4;
    align-self: flex-start;
    width: auto !important;
    height: auto !important;
    min-height: 44px;
    padding: 10px 18px !important;
    font-size: 15px !important;
  }

  /* Small labels inside the panels. */
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section .rating small,
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section .ai-label {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  /* Get paid: the picture was twice the width of the screen. */
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section #story-06 .by5-paid-completion-art {
    height: auto !important;
  }
  html[data-by5-page="back-office"] body.by5-unified-homepage #main #bs-back-office #metrics-section #story-06 .by5-paid-completion-art img {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}
