/**
 * Say Hi Apply — one shared stylesheet.
 * Page is warm paper. The hi sits on a white sheet (pill, email, demo card).
 * Keep this file small. It is the only render-blocking CSS.
 *
 * Colour is not the brand:
 * “Hi” is plain #111 — wordmark, headline, pasted object, specimen at rest.
 * Homepage specimen: Hi in --link on hover only. Never the pill fill. Never the live dot.
 */

:root {
  --bg: #f7f4ef; /* warm paper. not grey, not cream */
  --sheet: #fff; /* pill, email field, demo card — hi sits on this */
  --text: #111;
  --muted: #5c5c5c;
  --well: #efebe4; /* code well */
  --border: #e6e0d6; /* warm hairline on paper */
  --link: #2f6fed;
  --live: #34c759; /* iOS camera-on green. Not the red rec LED. */
  --radius: 8px;
  --measure: 36rem;
  --gutter: 1.5rem;
  /* Notch / home-indicator. Use with --gutter so signed-in pages keep a real inset. */
  --gutter-left: calc(var(--gutter) + env(safe-area-inset-left, 0px));
  --gutter-right: calc(var(--gutter) + env(safe-area-inset-right, 0px));
  /* Header / footer sit on the page. Not the type column. */
  --page: 75rem;
  /* Homepage body. One column. */
  --fold: 36rem;
  /* Fold pair. Lead wide enough that the H1 / support do not wrap. Centered. */
  --fold-pair: 64rem;
  --header-h: 3.25rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--text);
}

a:hover {
  color: var(--link);
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.skip:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Chrome --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  box-sizing: border-box;
  /* Grow when dash actions wrap. Do not clip the second row. */
  min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  height: auto;
  /* ⚠️ Keep this top air on every viewport. Safe-area is 0 in Chrome; without
   * a real padding-top the wordmark sits on the bezel once .bar wraps. */
  padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
  min-width: 0;
  max-width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.85rem;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page);
  min-width: 0;
  min-height: var(--header-h);
  height: auto;
  margin-inline: auto;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
}

/* Type only. Wave lives here. No pill.
 * inline-flex so the wave's extra line-box doesn't sit the mark above the nav. */
.wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: normal;
  text-decoration: none;
  color: var(--text);
}

.wordmark:hover {
  color: var(--text);
}

/*
 * Menu control. Hidden until header.js adds .has-burger.
 * Public: ≤479px. Member: when the link row still overflows after wrap.
 * Three bars via the empty span — no extra assets.
 */
.nav-burger {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.nav-burger__mark,
.nav-burger__mark::before,
.nav-burger__mark::after {
  display: block;
  box-sizing: border-box;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
}

.nav-burger__mark {
  position: relative;
}

.nav-burger__mark::before,
.nav-burger__mark::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-burger__mark::before {
  top: -6px;
}

.nav-burger__mark::after {
  top: 6px;
}

.nav-burger[aria-expanded="true"] .nav-burger__mark {
  background: transparent;
}

.nav-burger[aria-expanded="true"] .nav-burger__mark::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-burger[aria-expanded="true"] .nav-burger__mark::after {
  top: 0;
  transform: rotate(-45deg);
}

/*
 * JS burger. Public at ≤479px. Member when the wrapped link row still
 * overflows. `~` + :not([hidden]) so 404 can target the visible nav
 * (public or member) after the same button.
 */
.has-burger .nav-burger {
  display: inline-flex;
  /* ⚠️ Center with 👋 Say Hi. Baseline sat the bars above the wordmark. */
  align-self: center;
  width: 2.75rem;
  height: 1.5rem;
  margin-inline-start: auto;
}

/* Same reason: the bar’s tablet baseline is for text links, not this icon. */
.site-header.has-burger .bar {
  align-items: center;
}

.has-burger .nav-burger ~ .nav-wide:not([hidden]) {
  display: none;
  flex: 1 1 100%;
  flex-wrap: nowrap;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  margin-inline-start: 0;
  gap: 0.45rem;
  padding-block: 0.25rem 0.55rem;
}

.has-burger .nav-burger ~ .nav-wide:not([hidden]).is-open {
  display: flex;
}

.has-burger .nav-burger ~ .nav-wide:not([hidden]) a {
  white-space: nowrap;
  width: 100%;
  min-height: 2.5rem;
  font-size: 1.125rem;
  justify-content: center;
  text-align: center;
}

/* Home + account name stay left. Actions sit to the right. */
.nav-home {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1 1 12rem;
}

.nav-org {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text);
}

.nav-wide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  min-width: 0;
}

/* Author display:flex would otherwise win over the hidden attribute. */
.nav-wide[hidden],
.site-footer[hidden] {
  display: none;
}

.nav-wide a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
}

/* Default nav size. Do not shrink at the tablet query. Phone uses the burger. */
.nav-wide a {
  font-size: 1.125rem;
  padding-inline: 0.45rem;
}

.nav-wide a:hover {
  color: var(--link);
}

.nav-wide a[aria-current="page"],
.nav-org[aria-current="page"] {
  font-weight: 600;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer .bar {
  min-height: 3.5rem;
  padding-block: 0.75rem;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.site-footer a {
  color: var(--muted);
}

/* --- Type --- */

/* Same gutter as the header. Padding, not a shrinking width, so children cannot blow the page. */
.wrap,
.wrap-narrow {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin-inline: auto;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
}

.wrap {
  max-width: var(--fold);
}

.hero .wrap {
  max-width: var(--fold-pair);
}

.wrap-narrow {
  max-width: var(--fold);
}

.wrap-dash {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin-inline: auto;
  padding: 1rem var(--gutter-right) 2rem var(--gutter-left);
  max-width: var(--page);
}

/*
 * Dash / Inbox / Buttons chrome. Count sits to the right of the title on one baseline.
 * Filters are tools, not a feature — one muted inline row.
 * Global `label { display: block }` would stack them; these override that.
 */
.dash-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem 0.65rem;
  margin: 0 0 0.35rem;
}

/*
 * Dash and Buttons / Links. + New sits left of the title. Count stays beside the title.
 */
.dash-head--cta {
  margin-bottom: 0.85rem;
}

.dash-cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ask-empty {
  margin: 0.35rem 0 0.85rem;
  max-width: 36rem;
  font-size: 0.95rem;
}

.dash-head h1 {
  flex: 0 0 auto;
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.1rem);
  letter-spacing: -0.03em;
}

.dash-count {
  flex: 0 0 auto;
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font);
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.dash-count-n {
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dash-count-label {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

/*
 * Wait mark. Same 👋 wrist-wave as the pill, looping until the count is real.
 * Number and label stay in the DOM (so the count does not jump) but
 * hide until the fetch has a real n. Empty copy must not show here.
 */
.dash-count.is-waiting {
  align-items: center;
}

.dash-count.is-waiting .dash-count-n,
.dash-count.is-waiting .dash-count-label {
  display: none;
}

.dash-count:not(.is-waiting) .list-wait-wave {
  display: none;
}

.dash-filters.is-waiting {
  pointer-events: none;
  opacity: 0.45;
}

.dash-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

/* Search is a tool, same muted row as the other filters.
 * Cap at a phone column (~360px) so it does not stretch across the table. */
.dash-search {
  flex: 0 1 22.5rem;
  width: 22.5rem;
  max-width: 100%;
}

.dash-search input[type="search"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 1.5rem;
  padding: 0 0.15rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  appearance: none;
}

.dash-search input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
}

.dash-search input[type="search"]:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.dash-none {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
}

.dash-pager {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.dash-pager[hidden],
.dash-none[hidden] {
  display: none;
}

.dash-page-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.dash-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.dash-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-weight: 400;
  font-size: inherit;
  color: inherit;
}

.dash-filter select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 1.5rem;
  padding: 0 1.15rem 0 0.1rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background-color: transparent;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 9px) calc(50% - 1px),
    calc(100% - 5px) calc(50% - 1px);
  background-size:
    4px 4px,
    4px 4px;
  background-repeat: no-repeat;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.dash-filter select:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

main {
  display: block;
  min-width: 0;
  max-width: 100%;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.4rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

h2 {
  margin: 2.25rem 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Sticky header covers in-page anchors. Extra gap so the heading is readable. */
#drops,
.prose > section[id] {
  scroll-margin-top: calc(
    var(--header-h) + env(safe-area-inset-top, 0px) + 2.5rem
  );
}

.lead {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.muted {
  color: var(--muted);
}

.page-head {
  /* ⚠️ Only block padding. A four-value shorthand with horizontal 0 zeroes wrap-narrow gutters. */
  padding-top: 2.25rem;
  padding-bottom: 0.5rem;
  max-width: var(--measure);
}

/* 404: one centered wordmark line between the usual header and footer. */
body.page-404 {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-404-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem var(--gutter);
}

.page-404-body .wordmark {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.not-found-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.not-found-nav a {
  text-decoration: none;
}

body.page-404 .site-header,
body.page-404 .site-footer {
  flex-shrink: 0;
}

body.page-404 .site-footer {
  margin-top: 0;
}

/*
 * Short magic-link door: Sign in only (body[data-auth]).
 * /button and /link are sales pages — they keep a work-email form but
 * must not use this centered-door chrome, or signed-in clients cannot
 * read the pitch. Do not restyle the field or the button.
 *
 * Short page: pin the footer to the bottom of the viewport, same as 404.
 * Main grows and places the door a little above the midline — true center
 * reads low. Do not drop the form to the geometric middle.
 */
body[data-auth] {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body[data-auth] .site-header,
body[data-auth] .site-footer {
  flex-shrink: 0;
}

body[data-auth] main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body[data-auth] .site-footer {
  margin-top: 0;
}

body[data-auth] .page-head {
  /* Global page-head top padding would shove a centered block down. */
  padding-top: 0;
  padding-bottom: 0;
  /* vh padding on main was too small to see in a short pane. Move the
   * door itself — slightly above geometric center. */
  transform: translateY(-4.5rem);
}

body[data-auth] h1 {
  margin-bottom: 0.45rem;
}

body[data-auth] .lead {
  margin-bottom: 0;
}

body[data-auth] .hero-get {
  margin-top: 1.5rem;
  gap: 0.65rem;
}

body[data-auth] #auth-sent {
  margin-top: 1rem;
}

/*
 * Phone: Sign in stacks (email, then action). Homepage .hero-get stays a
 * row. /button and /link stay a row too — same as / — even on a phone.
 */
@media (max-width: 479px) {
  body[data-auth] .hero-get {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  body[data-auth] .hero-get input[type="email"],
  body[data-auth] .hero-get .btn {
    width: 100%;
    flex: 0 0 auto;
  }

  .page-head .hero-get,
  .bottom .hero-get {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }
}

.prose p,
.prose li {
  max-width: var(--measure);
}

.prose p {
  margin: 0.7rem 0;
}

.prose ol,
.prose ul {
  margin: 0.7rem 0;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.section {
  padding-top: 0.5rem;
}

.bottom {
  margin-top: 3rem;
  padding: 2rem 0 1rem;
}

.bottom .hero-get {
  margin-top: 1.1rem;
}

/*
 * Product sales: /button and /link. These are the doors, not empty forms.
 * Sign in stays the short centered door (body[data-auth]). Do not put
 * data-auth on these pages — signed-in clients should still be able to read.
 */
.sell-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Sticky header covers the email jump from the bottom CTA. */
#email {
  scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.25rem);
}

/* --- Buttons --- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  min-width: 0;
  margin: 1.1rem 0;
}

.actions .btn {
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
  color: #fff;
}

.btn-secondary {
  background: var(--sheet);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--well);
  color: var(--text);
}

.btn-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  min-height: 32px;
  padding: 0 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--sheet);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* --- Code well --- */

.well {
  position: relative;
  min-width: 0;
  max-width: 100%;
  margin: 0.85rem 0;
  padding: 1rem 1.1rem;
  background: var(--well);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.well pre {
  margin: 0;
  padding-right: 3.75rem;
  max-width: 100%;
  overflow-x: auto;
}

.well code,
.code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

.snippet-line {
  white-space: nowrap;
}

.well:has(.snippet-line) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
}

.well:has(.snippet-line) pre {
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
  margin: 0;
  padding-right: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.well:has(.snippet-line) pre::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.well:has(.snippet-line) .btn-copy {
  position: static;
  flex: 0 0 auto;
  order: 2;
}

.inline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.inline-row .btn-copy {
  position: static;
}

/* --- Hero ---
   Mobile: one column. Desktop fold: lead | form card, pair centered.
   Below the fold stays one column. Pill is 48px, never vh. */

.hero {
  min-width: 0;
  padding: 1rem 0 1.35rem;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-width: 0;
  width: 100%;
}

.hero-lead,
.hero-product,
.hero-rails {
  min-width: 0;
  max-width: 100%;
}

/* Fake apply. Skeleton bars only — not a real form. */
.hero-form {
  box-sizing: border-box;
  width: 100%;
  padding: 1.15rem 1.1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--sheet);
}

.hero-form__skel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 0.4rem;
}

.hero-form__bar {
  display: block;
  height: 0.42rem;
  border-radius: 4px;
  background: #e8e8e6;
}

.hero-form__bar--sm {
  width: 36%;
}

.hero-form__bar:not(.hero-form__bar--sm) {
  width: 70%;
}

.hero-product {
  padding-block: 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 2.85rem);
}

.hero .support {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 400;
}

.hero-get,
.email-get {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

.hero-get {
  margin: 0.95rem 0 0;
}

.hero-get input[type="email"],
.email-get input[type="email"] {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.hero-get .btn,
.email-get .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/*
 * Live claim under the email row.
 * Flex, never wrap: the green dot stays on the same row, before the copy.
 * The sentence may wrap inside .hero-radar__text only when this box is
 * actually narrower than the line — not because we forced a second row.
 */
.hero-radar {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  margin: 1.15rem auto 0;
  font-size: 0.92rem;
  text-align: center;
}

/* Prefer one line. Shrink (and wrap words) only when the parent is too narrow. */
.hero-radar__text {
  flex: 0 1 auto;
  text-align: start;
}

.hero-product .say-hi-preview {
  margin: 0;
}

/* Wins over the zero above. Keeps the demo note off the pill. */
.hero-product .say-hi-preview--specimen {
  margin-bottom: 1.5rem;
}

/* Quiet aside under the fold specimen. Not the brand. Not the snippet. */
.say-hi-demo-note {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
}

/* Proof, not the hero. Two lines, smaller type, less grey. */
.hero-product .well {
  margin: 0;
  padding: 0.5rem;
  background: var(--well);
  border-color: var(--border);
}

.hero-product .well pre {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-product .well pre::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* One line on the apply. Do not wrap the snippet into two tags. */
.hero-product .well code {
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.hero-product .btn-copy {
  min-height: 26px;
  padding: 0 0.45rem;
  font-size: 0.7rem;
}

.hero-rails {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.hero-rails__kicker,
.hero-rails__alt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}

/* Same eight. One height. Grey. Each goes to Docs. Not a partner row. */
.hero-rails__marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  margin: 0.45rem 0 0.15rem;
  padding: 0;
  list-style: none;
}

.hero-rails__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 45px;
}

.hero-rails__mark:hover {
  color: var(--muted);
}

.hero-rails__mark img {
  display: block;
  height: 45px;
  width: auto;
  opacity: 0.38;
}

.hero-rails__mark:hover img {
  opacity: 0.62;
}

/* Name pill. 0.33s in, hide at once on leave. Native title cannot do this. */
.hero-rails__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  z-index: 2;
  transform: translateX(-50%);
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.12s ease 0s,
    visibility 0s linear 0s;
}

.hero-rails__mark:hover .hero-rails__tip,
.hero-rails__mark:focus-visible .hero-rails__tip {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.12s ease 0.33s,
    visibility 0s linear 0.33s;
}

.hero-stamp {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--well);
}

.hero-stamp[hidden] {
  display: none;
}

.hero-stamp__face {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 6px;
  background: #111;
  flex-shrink: 0;
}

.hero-stamp__name {
  margin: 0;
  font-weight: 700;
}

.hero-stamp__when,
.hero-stamp__mark {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
}

.hero-stamp__retake {
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.price {
  font-weight: 600;
}

@media (max-width: 899px) {
  :root {
    /* Phone / tablet: a real page inset, not type flush to the bezel. */
    --gutter: 1.75rem;
  }

  .site-header,
  .site-header.has-burger {
    /* Same top air with or without the burger. Hug the bar — the desktop
     * min-height left a taller box next to the 1.5rem row. */
    min-height: 0;
    padding-top: max(1.1rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.2rem;
  }

  /* When the header wraps, let the rows hug. Don't keep a desktop min-height.
   * One-row: baseline so the smaller nav type sits on the same line as the
   * wordmark. Center was boxing both to 24px and leaving the nav looking high.
   * Scoped to the header — footer also uses .bar. */
  .site-header .bar {
    min-height: 0;
    align-items: baseline;
    gap: 0.1rem 0.7rem;
    padding-block: 0.1rem 0.15rem;
  }

  /*
   * Public nav. Stay one row with the wordmark whenever it fits.
   * Wrap to two rows only when wordmark + this nav no longer fit.
   * ⚠️ Do not set the wordmark to flex-basis 100% — that forced two rows
   * even on widths where both still fit.
   * ⚠️ Do not set font-size on .nav-wide a here — tablet was shrinking type.
   * Shrink-wrap + no shrink: the whole nav wraps as a unit, then sits right.
   * 44px row height made a wrapped row look like a toolbar. Keep tap ≥ 24px.
   */
  .nav-wide {
    flex-shrink: 0;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    margin-inline-start: auto;
    width: max-content;
    max-width: 100%;
    gap: 1.25rem;
  }

  /*
   * Tiny widths squeeze each label so “Create a link” wraps. Center those
   * lines in the tap target. Keep inline-flex + align-items so one-row
   * headers share a midline with the wordmark — inline-block + min-height
   * pinned the type to the top of the tap box.
   */
  .nav-wide a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
    line-height: 1.2;
    text-align: center;
    /* Keep each label on one line. Micro query wraps the buttons, not the words. */
    white-space: nowrap;
  }

  /*
   * Signed-in chrome. Do not flex-basis 100% on home or nav — that forced
   * two rows at every tablet width. Wrap only when home + links no longer fit.
   * Burger when the wrapped row still overflows (header.js).
   */
  body[data-stub] {
    --header-h: 6.5rem;
  }

  body[data-stub] .site-header {
    padding-bottom: 0.2rem;
  }

  body[data-stub] .nav-home {
    gap: 0.75rem;
    min-height: 2.75rem;
    padding-block: 0.2rem 0.15rem;
  }

  body[data-stub] .nav-home .wordmark {
    font-size: 1.25rem;
  }

  body[data-stub] .nav-org {
    font-size: 1.05rem;
  }

  /*
   * Burger sits between home and nav, so `~` not `+`. Inherit wrap-as-a-unit
   * from .nav-wide. Do not overflow-x auto — that rolled the links off-screen.
   */
  body[data-stub] .nav-home ~ .nav-wide {
    gap: 1.15rem;
  }

  body[data-stub] .nav-home ~ .nav-wide a {
    flex: 0 0 auto;
    min-height: 1.7rem;
    padding-inline: 0.2rem;
  }

  body[data-stub] .wrap-dash {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }

  body[data-stub] .page-head {
    padding-top: 1.5rem;
  }

  body[data-stub] .staff-table {
    font-size: 0.82rem;
  }

  body[data-stub] .staff-table th,
  body[data-stub] .staff-table td {
    padding: 0.4rem 0.45rem;
  }

  .hero {
    padding: 3.35rem 0 1.15rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.15rem);
    margin-bottom: 0.4rem;
  }

  .hero .support {
    font-size: 1.05rem;
  }

  .hero-get .btn,
  .email-get .btn {
    padding-inline: 0.85rem;
  }

  .hero-radar {
    margin-bottom: 0.85rem;
  }
}

@media (min-width: 900px) {
  .nav-wide {
    gap: 1.5rem;
  }

  .hero {
    /*
      One view, column flex so the grid can actually fill the height.
      flex-direction must be column — row + stretch was why rails never dropped.
    */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px));
    padding-block: 1.5rem 1.25rem;
  }

  .hero-grid {
    flex: 1 1 auto;
    display: grid;
    /* Hug the two blocks. fr tracks were parking the card on the far right. */
    grid-template-columns: max-content max-content;
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "lead product"
      "rails rails";
    column-gap: 3.6rem;
    row-gap: 0;
    justify-content: center;
    width: 100%;
    min-height: 0;
  }

  .hero-lead {
    grid-area: lead;
    align-self: center;
    justify-self: end;
    width: max-content;
    max-width: 100%;
  }

  .hero h1 {
    width: max-content;
    max-width: 100%;
  }

  .hero-lead > :not(h1) {
    max-width: 0;
    min-width: 100%;
    box-sizing: border-box;
  }

  /*
   * Do not pin this line to the H1 measure (the :not(h1) trick above).
   * Size to the sentence so it stays one row until the fold pair is too narrow.
   */
  .hero-lead > .hero-radar {
    font-size: 0.8rem;
    width: max-content;
    max-width: 100%;
    min-width: 0;
  }

  .hero-product {
    grid-area: product;
    align-self: center;
    justify-self: start;
    width: auto;
    max-width: 24rem;
    padding-block: 0;
  }

  .hero-rails {
    grid-area: rails;
    justify-self: stretch;
    margin-top: 0;
    padding-top: 1.5rem;
  }
}

.live,
.rec {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--live);
  border-radius: 50%;
  flex-shrink: 0;
}

.live {
  margin-right: 0.35rem;
  vertical-align: 0.05rem;
}

/*
  Pill + helper. Introduce yourself sits beside the pill — right of it in LTR.
  Never inside the capsule. The pill itself is painted by apply.js.
  "Try it." is homepage only and wraps under.
*/
.say-hi-preview {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.85rem;
}

/*
  Homepage specimen. Same 48px capsule as the pasted object.
  Light press, not a bounce.
*/
.say-hi-preview--specimen {
  margin-block-start: 0;
  /* Space above the local-demo note. Do not collapse this to 0. */
  margin-block-end: 1.25rem;
}

/*
  Default helper beside the pill. Not the brand. Not inside the button.
  Client prompt replaces this line. Do not show both.
*/
.say-hi-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.3;
}

.say-hi-try {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.3;
}

/* --- FAQ --- */

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.1rem;
  color: var(--muted);
  font-weight: 500;
}

.faq details[open] summary::before {
  content: "–";
}

.faq details p {
  margin: 0.4rem 0 0.2rem 1.1rem;
}

/* --- Forms (session dash; Worker is the backend) --- */

.ask-item {
  margin: 0 0 1.25rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--border);
}

.ask-item h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.ask-item .btn {
  margin: 0.35rem 0.4rem 0 0;
}

.staff-filter {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1rem;
  font-weight: 600;
}

/*
 * Wide tables must scroll sideways. Overlay scrollbars paint on first layout,
 * then fade — that is the bar on /dash and /buttons before anyone scrolls.
 * Keep the bar off at rest. JS adds .is-scrolling only while this pane moves.
 * ⚠️ Do not use overflow-x: scroll — that forces a bar even when content fits.
 * See: docs/workingdocs/TROUBLESHOOTING_DEV.md
 */
.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.table-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.table-wrap.is-scrolling {
  scrollbar-width: thin;
}

.table-wrap.is-scrolling::-webkit-scrollbar {
  display: block;
  width: auto;
  height: 8px;
}

.table-wrap.is-scrolling::-webkit-scrollbar-thumb {
  background: #c8c2b8;
  border-radius: 99px;
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.staff-table th,
.staff-table td {
  text-align: left;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.staff-table tr.is-unhealthy td {
  font-weight: 600;
}

.staff-table tbody tr {
  cursor: pointer;
}

.staff-table tbody tr.dash-empty-row,
.staff-table tbody tr.list-wait-row {
  cursor: default;
}

.staff-table tbody tr.list-wait-row {
  pointer-events: none;
}

.staff-table tbody tr.dash-empty-row td {
  /* Wrap to the pane, not the stretched nowrap table. Sticky so it stays in view. */
  white-space: normal;
  position: sticky;
  left: 0;
  max-width: calc(100vw - var(--gutter-left) - var(--gutter-right));
  color: var(--muted);
  font-size: 0.95rem;
}

.staff-table td .btn,
.staff-table td a {
  margin-right: 0.55rem;
}

/*
 * List wait. Warm-paper skeleton, same hairlines as a real row.
 * The sheen is a paper highlight traveling left to right. Rows stagger
 * so the table itself waves — same hello as the 👋 next to the title.
 * ⚠️ First paint is this chrome. Empty copy only after the fetch returns 0.
 */
.list-wait-bar,
.list-wait-pill {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
  background: var(--well);
}

.list-wait-bar {
  height: 0.7rem;
  border-radius: 99px;
}

.list-wait-pill {
  width: 4.4rem;
  height: 2.75rem;
  margin-right: 0.55rem;
  border-radius: var(--radius);
}

.list-wait-bar::after,
.list-wait-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(247, 244, 239, 0.9) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: list-wait-sheen 1.35s ease-in-out infinite;
}

.list-wait-row td:nth-child(1) .list-wait-bar {
  width: 7.2rem;
}

.list-wait-row td:nth-child(2) .list-wait-bar {
  width: 6.2rem;
}

.list-wait-row td:nth-child(3) .list-wait-bar {
  width: 5.4rem;
}

.list-wait-row td:nth-child(4) .list-wait-bar {
  width: 3.6rem;
}

.list-wait-row td:nth-child(5) .list-wait-bar {
  width: 2.2rem;
}

.list-wait-row td:nth-child(6) .list-wait-bar {
  width: 1.6rem;
}

.list-wait-row td:nth-child(7) .list-wait-bar {
  width: 3.2rem;
}

.list-wait-row td:nth-child(8) .list-wait-bar {
  width: 2.4rem;
}

.list-wait-row td:nth-child(9) .list-wait-bar {
  width: 2.8rem;
}

.list-wait-row:nth-child(even) td:nth-child(1) .list-wait-bar {
  width: 5.6rem;
}

.list-wait-row:nth-child(3) td:nth-child(2) .list-wait-bar {
  width: 4.4rem;
}

.list-wait-row:nth-child(1) .list-wait-bar::after,
.list-wait-row:nth-child(1) .list-wait-pill::after {
  animation-delay: 0s;
}

.list-wait-row:nth-child(2) .list-wait-bar::after,
.list-wait-row:nth-child(2) .list-wait-pill::after {
  animation-delay: 0.1s;
}

.list-wait-row:nth-child(3) .list-wait-bar::after,
.list-wait-row:nth-child(3) .list-wait-pill::after {
  animation-delay: 0.2s;
}

.list-wait-row:nth-child(4) .list-wait-bar::after,
.list-wait-row:nth-child(4) .list-wait-pill::after {
  animation-delay: 0.3s;
}

.list-wait-pill:nth-child(1) {
  width: 3.4rem;
}

.list-wait-pill:nth-child(2) {
  width: 5.4rem;
}

.list-wait-pill:nth-child(3) {
  width: 4.4rem;
}

.list-wait-pill:nth-child(4) {
  width: 4.4rem;
}

/*
 * Wrist-wave. Same origin and motion as the 👋 Say Hi pill (css/apply.css).
 * Loops here because this is the wait, not a hover flourish.
 */
.list-wait-wave {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
  transform-origin: 70% 70%;
  animation: list-wait-wave 1.15s ease-in-out infinite;
}

@keyframes list-wait-wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(14deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  45% {
    transform: rotate(12deg);
  }
  60% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(6deg);
  }
}

.list-wait-dl dt .list-wait-bar {
  width: 5.2rem;
}

.list-wait-dl dd .list-wait-bar {
  width: 1.8rem;
}

.list-wait-dl:nth-child(even) dd .list-wait-bar {
  width: 2.4rem;
}

@keyframes list-wait-sheen {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .list-wait-bar::after,
  .list-wait-pill::after,
  .list-wait-wave {
    animation: none;
  }
}

/*
 * Watch dialog. Native <dialog>, not the Say Hi sheet — do not reuse
 * .hi-sheet chrome. A 9:16 take in a nowrap cell stretches the row.
 * ⚠️ Do not display:flex this dialog. iOS promotes the × onto the page.
 */
.dash-player {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
}

.dash-player::backdrop {
  background: rgba(17, 17, 17, 0.62);
}

.dash-player__frame {
  position: relative;
  width: min(22.5rem, calc(100vw - 2rem));
  margin: 0 auto;
}

.dash-player__title {
  margin: 0 2.6rem 0.55rem 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.dash-player__x {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  max-width: 2.25rem;
  max-height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sheet);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 0;
  cursor: pointer;
}

.dash-player__stage video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(80vh, 40rem);
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #111;
  border-radius: var(--radius);
}

/* Off copy slots stay in flow so Edit does not jump left. */
.ask-copy.is-off {
  visibility: hidden;
  pointer-events: none;
}

/* Name opens the same Dash filter. Rest as body type; blue on hover only. */
.staff-table a.ask-dash {
  color: inherit;
  text-decoration: none;
}

.staff-table a.ask-dash:hover {
  color: var(--link);
}

/*
 * Member tables only. Give flexible space to identity, fixed space to
 * short facts, and enough room to Actions for every required control.
 * The table keeps this geometry on a phone and scrolls inside its pane.
 */
.member-table-hint {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.member-table-hint[hidden],
.member-table-hint__touch {
  display: none;
}

.member-table-wrap {
  /* Keep the table on the warm page. No card fill or outer frame. */
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

/* Edge fades show which direction still contains hidden columns. */
.member-table-wrap.can-scroll-left {
  box-shadow: inset 1.1rem 0 0.9rem -1rem rgba(17, 17, 17, 0.28);
}

.member-table-wrap.can-scroll-right {
  box-shadow: inset -1.1rem 0 0.9rem -1rem rgba(17, 17, 17, 0.28);
}

.member-table-wrap.can-scroll-left.can-scroll-right {
  box-shadow:
    inset 1.1rem 0 0.9rem -1rem rgba(17, 17, 17, 0.28),
    inset -1.1rem 0 0.9rem -1rem rgba(17, 17, 17, 0.28);
}

body[data-stub] .staff-table.member-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}

body[data-stub] .member-table--buttons {
  min-width: 52rem;
}

/* Sum of the eight column widths below. Keep the two in step: a min-width under
 * the sum lets the browser squeeze Actions and wrap the row buttons. */
body[data-stub] .member-table--dash {
  min-width: 66rem;
}

/* Headers stay bold and use the same left edge as their values. */
body[data-stub] .staff-table.member-table th {
  padding: 0.55rem 0.6rem;
  border-bottom: 0;
  color: var(--text);
  background: var(--well);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  vertical-align: bottom;
}

/* Round the header band only. The table body stays open on the page. */
body[data-stub] .staff-table.member-table th:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

body[data-stub] .staff-table.member-table th:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

body[data-stub] .staff-table.member-table td {
  padding: 0.68rem 0.6rem;
  text-align: left;
  vertical-align: middle;
}

body[data-stub] .staff-table.member-table tbody tr {
  cursor: default;
}

body[data-stub] .staff-table.member-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Buttons / Links: identity grows; facts stay compact; Actions can breathe. */
.member-table--buttons [data-col="status"],
.member-table--buttons [data-col="his30"],
.member-table--buttons [data-col="all"] {
  width: 6rem;
}

.member-table--buttons [data-col="actions"] {
  width: 17rem;
}

/* Dash: eight columns since Email, so the table is wider than the desktop
 * content width and .table-wrap scrolls it. The widths below sum to min-width. */
.member-table--dash [data-col="ask"] {
  width: 7.5rem;
}

.member-table--dash [data-col="name"] {
  width: 8rem;
  padding-right: 1rem;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
}

/* Prefer the <wbr> after @. Only break a segment if that segment cannot fit. */
.member-table--dash [data-col="email"] {
  width: 8.5rem;
  max-width: 8.5rem;
  padding-left: 0.75rem;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
}

.member-table--dash [data-col="recorded"] {
  width: 9rem;
}

.member-table--dash [data-col="status"] {
  width: 6rem;
}

.member-table--dash [data-col="his"] {
  width: 5.25rem;
}

.member-table--dash [data-col="place"] {
  width: 5.75rem;
}

.member-table--dash [data-col="actions"] {
  width: 16rem;
}

/* Keep counts left aligned, but use stable-width digits. */
.member-table [data-col="his"],
.member-table [data-col="his30"],
.member-table [data-col="all"] {
  font-variant-numeric: tabular-nums;
}

body[data-stub="dash"] .member-table td[data-col="name"],
body[data-stub="buttons"] .member-table td[data-col="ask"] {
  font-weight: 600;
}

/* Row actions are compact tools. + New remains the page-sized primary. */
body[data-stub] .member-table td[data-col="actions"] .btn {
  min-height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.76rem;
}

body[data-stub] .member-table td[data-col="actions"] .btn,
body[data-stub] .member-table td[data-col="actions"] a {
  margin-right: 0.25rem;
}

body[data-stub] .member-table td[data-col="actions"] > :last-child {
  margin-right: 0;
}

body[data-stub] .member-table a.ask-edit {
  font-size: 0.76rem;
  font-weight: 600;
}

@media (max-width: 699px) {
  /* The heading may wrap. The table does not: the pane scrolls sideways. */
  .dash-head--cta {
    flex-wrap: wrap;
  }

  .member-table-hint {
    justify-content: flex-start;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
  }

  .member-table-hint__desktop {
    display: none;
  }

  .member-table-hint__touch {
    display: inline;
  }

  /* Keep a thin track visible at rest as a second, familiar scroll cue. */
  .member-table-wrap.has-overflow {
    scrollbar-width: thin;
  }

  .member-table-wrap.has-overflow::-webkit-scrollbar {
    display: block;
    width: auto;
    height: 5px;
  }

  .member-table-wrap.has-overflow::-webkit-scrollbar-thumb {
    background: #c8c2b8;
    border-radius: 99px;
  }

  body[data-stub] .member-table td[data-col="actions"] .btn {
    min-height: 44px;
  }
}

label,
legend {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Dash filters are tools on one muted row. Must win over `label { display: block }`. */
label.dash-filter {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  font-weight: 400;
  font-size: inherit;
  color: inherit;
  white-space: nowrap;
}

label.dash-filter.dash-search {
  flex: 0 1 22.5rem;
  width: 22.5rem;
  max-width: 100%;
}

.field {
  margin: 0 0 1rem;
}

input[type="email"],
input[type="text"],
input[type="url"],
input[type="tel"],
input[type="datetime-local"] {
  width: 100%;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--sheet);
  color: var(--text);
}

input[readonly] {
  color: var(--muted);
  background: var(--well);
}

fieldset {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

/* Max-length slider on Get the button / Create a link. Default 27s, floor 9s, cap 5 min. */
input[type="range"] {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  accent-color: var(--text);
}

.seconds-readout {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.seg label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin: 0;
  padding: 0 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
}

.seg label:has(input:checked) {
  border-color: var(--text);
  background: var(--well);
}

.hint {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

/* Quiet Off on Edit only. Under Save, not a primary action. */
/* Unique ask id on Edit. Read-only so lists can stay names-only. */
.ask-id {
  margin: 0;
  word-break: break-all;
  user-select: all;
}

.ask-off {
  margin: 0.85rem 0 0;
}

.ask-off button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}

.ask-off[hidden] {
  display: none;
}

.dl {
  margin: 1rem 0 1.5rem;
}

.dl div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.dl dt {
  color: var(--muted);
  font-weight: 500;
}

.dl dd {
  margin: 0;
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
}

/*
 * Phone portrait. Public nav is burger (header.js ≤479px) or, with no-JS,
 * labels wrap. ⚠️ Do not shrink type to 0.75rem — that read as a sentence.
 * Tablets never hit this query.
 */
@media (max-width: 479px) {
  /* ⚠️ Burger sits between wordmark and nav even when hidden. Do not use
   * `.wordmark + .nav-wide` — that selector never matches public pages. */
  .bar > .nav-burger + .nav-wide {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin-inline-start: 0;
    gap: 0.35rem 1.15rem;
  }

  .bar > .nav-burger + .nav-wide a {
    font-size: 1.125rem;
    padding-inline: 0.45rem;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}

/* Tiny phones only. No-JS member wrap. JS already showed the burger if the row overflowed. */
@media (max-width: 319px) {
  body[data-stub] .nav-home ~ .nav-wide {
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.hi-capture {
  min-height: 100dvh;
  background: var(--bg);
}

.hi-capture .hi-capture__fallback,
.hi-capture .hi-capture__dock {
  max-width: 22rem;
  margin: 4rem auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.hi-capture .hi-capture__fallback {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.hi-capture .hi-capture__dock h1 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hi-capture .hi-capture__dock p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Same 48px capsule as the pasted pill. Not data-say-hi — apply.js is not on this page. */
.hi-capture .hi-capture__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-height: 48px;
  padding: 0 1.15rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.hi-capture .hi-capture__go:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.hi-capture .hi-capture__code {
  display: block;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--well);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-align: center;
}

.hi-capture .hi-capture__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--sheet);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.hi-capture .hi-capture__copied {
  margin: 0.75rem 0 0;
}

.hi-capture .hi-capture__brand {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
