/* Keep every page inside the viewport, including a 390px phone. */
html, body {
  max-width: 100%;
  overflow-x: clip;
}
.container,
.container-lg,
.hero-grid,
.hero-grid > *,
.app-shell,
.board,
.main {
  min-width: 0;
  max-width: 100%;
}
.hero-sub {
  max-width: min(52ch, 100%);
  overflow-wrap: break-word;
}
p, h1, h2, h3, li {
  overflow-wrap: break-word;
}
img, svg, video {
  max-width: 100%;
}
.sf-ring {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-block;
  flex: 0 0 44px;
}
.sf-ring svg { display: block; max-width: none; }
.sf-ring .n {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1;
}
.addr-block { display: block; min-width: 0; max-width: 100%; }
.addr-block .a,
.addr-block .m { display: block; min-width: 0; }
.addr-block .a {
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addr-block .m {
  margin-top: 2px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-3, #6b6b5f);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px var(--hairline-2, #d8d4c5);
  background: var(--paper, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}
.sf-check.on { background: var(--ink, #16150f); box-shadow: none; }
.sf-check.on::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--ivory, #fafaf7);
  border-bottom: 2px solid var(--ivory, #fafaf7);
  transform: rotate(-45deg) translateY(-1px);
}
.sf-check.locked { opacity: 0.35; }
.home-row.is-on, .prop-row.selected { background: var(--forest-tint, #e7f0df); }
.mail-note { font-size: 11px; color: var(--ink-3, #6b6b5f); letter-spacing: 0.02em; }
button.sf-open, .sf-open {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.25;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.sf-chev {
  border: 0;
  background: transparent;
  color: var(--ink-4, #8a887c);
  padding: 6px;
  cursor: pointer;
}
.sf-bar {
  position: fixed;
  z-index: 55;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: var(--ink, #16150f);
  color: var(--ivory, #fafaf7);
  box-shadow: 0 16px 40px rgba(22, 21, 15, 0.2);
}
.sf-bar.on { display: flex; }
.sf-bar button, .sf-bar a {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.sf-bar a {
  background: var(--forest, #2d5a0f);
  padding: 8px 14px;
  font-weight: 600;
}
.sf-bar-count { font-size: 14px; font-weight: 550; margin-right: 4px; }
@media (max-width: 800px) {
  .sf-bar { flex-wrap: wrap; justify-content: center; border-radius: 18px; }
}
@media (max-width: 800px) {
  .nav-center, #navTopTabs { display: none !important; }
  #navTop .container-lg {
    height: auto !important;
    flex-wrap: wrap;
    row-gap: 10px;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  #navTopRight {
    width: 100%;
    display: flex !important;
    justify-content: flex-end;
    gap: 10px;
  }
  #navTopRight .nt-login { flex: 1; justify-content: center; text-align: center; }
  .btn, .nt-login, button.btn {
    white-space: normal;
    min-height: 44px;
    justify-content: center;
  }
  .tier-grid { grid-template-columns: 1fr !important; }
  .hero h1 { overflow-wrap: break-word; }
  .addon-row { grid-template-columns: 44px minmax(0, 1fr) !important; }
  .addon-row .p { grid-column: 2; text-align: left !important; }
}
