/* Phone layout (5.8.23): measurements, daily notes, briefing and approvals on an iPhone.
   Everything here applies at 600px and narrower only; wider screens are unchanged. */
.rh-phone-quick{display:none}
@media (max-width:600px){
  /* One-row header: menu, title, three icon buttons. Was three rows (about 160px). */
  body.v52-app .topbar{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;margin-bottom:10px!important;padding-bottom:8px!important}
  body.v52-app .topbar .rf-top-title{min-width:0}
  body.v52-app .topbar h1{font-size:20px!important;line-height:1.2!important;margin:2px 0 0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal!important}
  body.v52-app .topbar .eyebrow{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.v52-app .topbar .top-actions{grid-column:auto!important;display:flex!important;flex-wrap:nowrap!important;width:auto!important;gap:6px!important;margin:0!important}
  body.v52-app .topbar .top-actions .button,body .topbar #top-measurement-quote{order:0!important;grid-column:auto!important;display:inline-flex!important;align-items:center;justify-content:center;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;font-size:18px!important;line-height:1!important}
  body .topbar #top-measurement-quote.hidden{display:none!important}
  body.rh-simple-owner .topbar .top-actions .v51-help-icon{display:none!important}

  /* The four phone jobs, one tap each, at the top of Today. */
  .rh-phone-quick{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 14px}
  .rh-phone-quick .button{min-height:60px!important;width:100%!important;min-width:0!important;padding:8px 10px!important;font-size:15px!important;line-height:1.25!important;white-space:normal!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px}
  .rh-phone-quick .button small{font-size:12px;font-weight:400;opacity:.85}

  /* The assistant button no longer covers controls: name and light only. */
  #rh-cyrus-launcher [data-cyrus-status]{display:none}
  #rh-cyrus-launcher{min-height:48px!important;padding:10px 14px!important;gap:8px!important}
  #rh-cyrus .rh-cyrus-tab-close{min-width:40px}
  #rh-cyrus summary{min-height:40px;display:flex;align-items:center}

  /* Approvals: categories in one swipeable row, empty ones tucked away, items straight after. */
  .rh-approval-tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:8px;padding:2px 0 8px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .rh-approval-tabs::-webkit-scrollbar{display:none}
  .rh-approval-tabs button{flex:0 0 auto!important;width:auto!important;min-width:0!important;min-height:44px;white-space:nowrap;padding:8px 14px!important}
  .rh-approval-tabs button.rh-phone-empty{display:none!important}
  .rh-phone-fold{margin:0 0 10px}
  .rh-phone-fold>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}
  .rh-approval-card .button{min-height:44px}

  /* Measurements: the paste box first. */
  body.v52-app #content details.v570-workspaces.rh-phone-closed>summary{min-height:44px;display:flex;align-items:center;gap:8px}
  #measurement-job-form textarea[name=text]{min-height:150px;font-size:16px}
  #measurement-job-form .actions .button{min-height:48px;width:100%}
}
