/* BOBS_MOBILE_DENSITY_V1 — personal owner tools, compact but legible on phones.
   Uses responsive sizing, not page zoom. Focusable inputs stay at 16px to avoid
   Safari's automatic focus zoom. Customer and cleaner pages are unaffected. */
@media (max-width:767px) {
  html:has(body.bobs-mobile-density) {
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }
  body.bobs-mobile-density {
    overflow-x:clip;
    max-width:100%;
  }
  body.bobs-mobile-density :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea) {
    font-size:16px;
    max-width:100%;
    min-width:0;
  }
  body.bobs-mobile-density :is(button,[role="button"],.button,.primary,.sbbutton,.sbsecondary) {
    min-height:44px;
  }
  body.bobs-mobile-density :is(.owner-panel,.pure-kpi,.job,.panel,.sbpanel,.com-job) {
    min-width:0;
  }

  /* Main owner dashboard: slightly less top chrome and card bulk. */
  body[data-bobs-page="home"] .owner-hero {padding-top:12px;padding-bottom:8px}
  body[data-bobs-page="home"] .owner-hero h1 {font-size:clamp(25px,6.8vw,31px);line-height:1.12}
  body[data-bobs-page="home"] .owner-hero #owner-hero-description {font-size:12px;line-height:1.46;margin-top:6px}
  body[data-bobs-page="home"] .owner-layout {padding-top:7px;padding-bottom:26px}
  body[data-bobs-page="home"] .owner-toolbar {padding:8px 10px;margin-bottom:9px}
  body[data-bobs-page="home"] .owner-workspace-switch {margin-bottom:10px;padding-bottom:9px}
  body[data-bobs-page="home"] .owner-login-card {padding:19px 17px;border-radius:13px}
  body[data-bobs-page="home"] .owner-login-card h2 {font-size:23px}
  body[data-bobs-page="home"] .owner-manager-title {padding:10px 11px}
  body[data-bobs-page="home"] .owner-manager-title h2 {font-size:18px}
  body[data-bobs-page="home"] .owner-manager-title p {font-size:12px;line-height:1.45}
  body[data-bobs-page="home"] .pure-owner-pulse {padding:12px;margin-bottom:14px}
  body[data-bobs-page="home"] .pure-kpi {padding:10px;gap:4px}
  body[data-bobs-page="home"] .pure-staff-hours-card,
  body[data-bobs-page="home"] .pure-staff-hours-future {padding:13px}

  /* Financials: fixes the oversized authenticator and sign-in screen. */
  body[data-bobs-page="financials"] .top-inner {height:59px;padding:6px 15px}
  body[data-bobs-page="financials"] .brand img {width:102px;height:47px}
  body[data-bobs-page="financials"] .shell {width:calc(100% - 34px);margin:15px auto 50px}
  body[data-bobs-page="financials"] .login-card {margin:12px auto;padding:20px 18px;border-radius:12px}
  body[data-bobs-page="financials"] h1 {font-size:clamp(24px,6.3vw,29px);line-height:1.14;letter-spacing:-.04em}
  body[data-bobs-page="financials"] #finance-security > p {font-size:13px;line-height:1.48;margin-bottom:14px}
  body[data-bobs-page="financials"] .finance-mfa-intro {font-size:12.5px}
  body[data-bobs-page="financials"] .finance-mfa-steps {font-size:12.5px;gap:7px}
  body[data-bobs-page="financials"] .page-head {margin-bottom:15px}
  body[data-bobs-page="financials"] .subtitle {font-size:12.5px;line-height:1.45}
  body[data-bobs-page="financials"] .finance-mfa-manual {padding:11px;margin:10px 0}
  body[data-bobs-page="financials"] #finance-mfa-code {font-size:16px!important;padding:10px 12px!important;min-height:46px}
  body[data-bobs-page="financials"] .com-stats section {padding:11px}

  /* Combined schedule and residential accounts. */
  body[data-bobs-page="schedule"] .wrap {padding-inline:16px}
  body[data-bobs-page="schedule"] .bar {min-height:62px;gap:10px}
  body[data-bobs-page="schedule"] .heading {padding:18px 0 12px}
  body[data-bobs-page="schedule"] .heading h1 {font-size:clamp(25px,6.5vw,30px)}
  body[data-bobs-page="schedule"] .heading p {font-size:12.5px;line-height:1.48}
  body[data-bobs-page="schedule"] .field {min-height:44px;height:auto;font-size:16px}
  body[data-bobs-page="residential"] .wrap {padding-inline:16px}
  body[data-bobs-page="residential"] .head {padding:17px 0 12px}
  body[data-bobs-page="residential"] .head h1 {font-size:clamp(26px,6.5vw,32px);margin-bottom:7px}
  body[data-bobs-page="residential"] .head>p:last-child {font-size:12.5px;line-height:1.48}
  body[data-bobs-page="residential"] .job {padding:12px}
  body[data-bobs-page="residential"] .job h3 {font-size:16px}
  body[data-bobs-page="residential"] .growth {padding:12px}
  body[data-bobs-page="residential"] .growth-heading h2 {font-size:21px}

  /* Block schedule and private resident inbox. */
  body[data-bobs-page="seabathing"] .sbw {width:calc(100% - 32px)}
  body[data-bobs-page="seabathing"] .sbh-inner {height:58px}
  body[data-bobs-page="seabathing"] .sb-title {margin:18px 0 12px}
  body[data-bobs-page="seabathing"] .sb-title h1 {font-size:29px}
  body[data-bobs-page="seabathing"] .sb-title>p:last-child {font-size:12px}
  body[data-bobs-page="seabathing"] .sbpanel {padding:14px 13px;margin-bottom:11px}
  body[data-bobs-page="seabathing"] .sbpanel h2 {font-size:19px}
  body[data-bobs-page="seabathing"] .sb-head {margin-bottom:10px}
  body[data-bobs-page="seabathing"] .sb-stats {gap:7px;margin-bottom:11px}
  body[data-bobs-page="seabathing"] .sb-stats article {padding:10px}
  body[data-bobs-page="seabathing"] .sb-stats strong {font-size:23px}
  body[data-bobs-page="seabathing"] .sb-next-date {padding:11px 12px;font-size:17px}
  body[data-bobs-page="seabathing"] .sb-date-row {padding:9px 0}

  /* Staff / visit-times owner tools. */
  body[data-bobs-page="operations"] main {margin:16px auto 40px;width:calc(100% - 32px)}
  body[data-bobs-page="operations"] .bar {padding:7px 14px}
  body[data-bobs-page="operations"] h1 {font-size:clamp(24px,6.2vw,30px)}
  body[data-bobs-page="operations"] .lead {font-size:12.5px;margin-bottom:14px}
  body[data-bobs-page="operations"] .panel {padding:13px}
}
@media (max-width:380px) {
  body[data-bobs-page="home"] .owner-hero h1 {font-size:25px}
  body[data-bobs-page="financials"] .login-card {padding:17px 14px}
  body[data-bobs-page="seabathing"] .sb-head {flex-wrap:wrap}
  body[data-bobs-page="seabathing"] .sb-picker-label {width:100%}
  body[data-bobs-page="seabathing"] .sb-picker-label select {width:100%}
}