/* First run on a phone: sign-in, welcome, the P&L, the confirm, and Home.
   Type is at least 15px. A control is at least 44px. A focused field
   keeps itself and its button above the keyboard. */

@media (max-width: 800px) {
  .sign-card,
  .welcome,
  .bring-in,
  .bring-confirm,
  .home-v2 {
    overflow-x: clip;
    max-width: 100%;
    box-sizing: border-box;
  }
  body.pgos-marketing .sign-card label,
  body.pgos-marketing .sign-card .eyebrow,
  body.pgos-marketing .sign-card p,
  body.pgos-app .welcome label,
  body.pgos-app .welcome .hint,
  body.pgos-app .welcome .number-source,
  body.pgos-app .welcome .eyebrow,
  body.pgos-app .welcome .banner,
  body.pgos-app .welcome .help-mark,
  body.pgos-app .welcome .choices span,
  body.pgos-app .bring-in label,
  body.pgos-app .bring-in .bring-kicker,
  body.pgos-app .bring-in .connector-meta,
  body.pgos-app .bring-confirm label,
  body.pgos-app .bring-confirm p,
  body.pgos-app .home-v2 .eyebrow,
  body.pgos-app main.content .eyebrow,
  body.pgos-app .home-v2 .status-pill,
  body.pgos-app .setup-mark,
  body.pgos-app .setup-state,
  body.pgos-app a.ask-number,
  body.pgos-app .name-disclaimer,
  body.pgos-marketing .name-disclaimer {
    font-size: 16px;
  }
  body.pgos-marketing .sign-card input,
  body.pgos-marketing .sign-card button,
  body.pgos-marketing .sign-card summary,
  body.pgos-marketing .sign-card a.btn,
  body.pgos-marketing .sign-card .example-switch a,
  body.pgos-app .welcome input,
  body.pgos-app .welcome button,
  body.pgos-app .welcome summary,
  body.pgos-app .welcome a.btn,
  body.pgos-app .welcome a.btn-primary,
  body.pgos-app .welcome .choices label,
  body.pgos-app .welcome .help-mark,
  body.pgos-app .bring-in input,
  body.pgos-app .bring-in button,
  body.pgos-app .bring-in summary,
  body.pgos-app .bring-confirm input,
  body.pgos-app .bring-confirm button,
  body.pgos-app .bring-confirm summary,
  body.pgos-app a.ask-number,
  body.pgos-app .home-v2 a.btn,
  body.pgos-app .home-v2 button,
  body.pgos-app .setup-mark {
    min-height: 44px;
    box-sizing: border-box;
    font-size: 16px;
  }
  body.pgos-marketing .sign-card summary,
  body.pgos-marketing .sign-card .example-switch a,
  body.pgos-app .welcome summary,
  body.pgos-app .welcome a.btn-primary,
  body.pgos-app .welcome a.btn,
  body.pgos-app .welcome .help-mark,
  body.pgos-app a.ask-number {
    display: inline-flex;
    align-items: center;
  }
  body.pgos-app .setup-mark {
    width: 44px;
    height: 44px;
  }
  body.pgos-app .setup-list li {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }
  .sign-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .welcome input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .bring-in input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .bring-confirm input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
  }
  .sign-card input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
  .sign-card button,
  .welcome input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
  .welcome textarea,
  .welcome select,
  .welcome button,
  .welcome a.btn-primary,
  .bring-in input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
  .bring-in button,
  .bring-confirm input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
  .bring-confirm button {
    scroll-margin-top: 24px;
    scroll-margin-bottom: 46vh;
  }
  body:not(:has(.home-v2)):has(input:not([type]):focus, input[type="email"]:focus, input[type="text"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="number"]:focus, textarea:focus, select:focus) .ask-dock:not(:focus-within),
  body:not(:has(.home-v2)):has(input:not([type]):focus, input[type="email"]:focus, input[type="text"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="number"]:focus, textarea:focus, select:focus) .phone-tabs {
    display: none;
  }
  body:has(input:not([type]):focus, input[type="email"]:focus, input[type="text"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="number"]:focus, textarea:focus, select:focus) {
    padding-bottom: 50vh;
  }
}
