/* Notices stay in normal flow so they cannot cover a form or its focused field. */
.app-connection {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 16px auto;
  padding: 16px;
  border: 1px solid #b8c5ad;
  border-radius: 12px;
  background: #edf0df;
  color: #294b40;
  line-height: 1.6;
}
.app-connection p { flex: 1 1 260px; margin: 0; min-width: 0; }
.app-connection button { min-height: 44px; white-space: normal; }
.app-connection[hidden], [data-install-link][hidden], #install-steps[hidden] { display: none !important; }
.install-panel {
  border: 1px solid #c5c9ad;
  border-radius: 16px;
  background: #f1eedc;
  padding: clamp(18px, 4vw, 30px);
  margin: 24px 0;
  color: #343d34;
}
.guide .install-panel h2 { margin-top: 0; }
.install-panel ol { padding-left: 24px; }
.install-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #a7b59c;
  border-radius: 9px;
  background: #dfe8d4;
  color: #244a3c;
  font-weight: 650;
}
.install-open:focus-visible, .app-connection button:focus-visible { outline: 3px solid #662e40; outline-offset: 3px; }
/* Use the iPhone's own softer typefaces; no external font request or download. */
@media (max-width: 759px) {
  body.beta-layout,
  .beta-layout button, .beta-layout input, .beta-layout select,
  .beta-layout textarea, .beta-layout label, .beta-layout .tag,
  .beta-layout .eyebrow {
    font-family: 'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
  body.beta-layout { line-height: 1.6; }
  .beta-layout p, .beta-layout li { line-height: 1.65; }
  .beta-layout p { margin-block: 0 1rem; }
  .beta-layout h1 { line-height: 1.14; margin-block: 0 1.1rem; }
  .beta-layout h2 { line-height: 1.25; margin-block: 1.6rem .75rem; }
  .beta-layout h3 { line-height: 1.3; margin-block: 1.2rem .6rem; }
  .beta-layout h1, .beta-layout h2, .beta-layout h3,
  .beta-layout #toolbar .search-main > label {
    font-family: 'Palatino', 'Palatino Linotype', Georgia, serif;
    letter-spacing: -.02em;
  }
  .beta-layout input, .beta-layout select, .beta-layout textarea { font-size: 16px; }
  .beta-layout label { line-height: 1.45; margin-bottom: .8rem; }
  .beta-layout label > input:not([type=checkbox]),
  .beta-layout label > select, .beta-layout label > textarea { margin-top: .4rem; }
  .beta-layout button, .beta-layout .install-open { min-height: 44px; line-height: 1.4; }
  .beta-layout .welcome h1 { font-size: clamp(2rem, 9vw, 2.8rem); letter-spacing: -.025em; }
  .beta-layout .welcome .eyebrow { line-height: 1.5; margin-bottom: .9rem; letter-spacing: .08em; }
  .beta-layout .auth-card { padding: 20px 18px; }
  .beta-layout .form-grid { gap: 14px; }
  .beta-layout .guide { overflow-wrap: break-word; }
  .beta-layout .guide > h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .install-panel li { margin-bottom: 16px; }
  .iphone-home-link { white-space: normal; text-align: left; }
}
