/* The staff preview of the member page and the launch page around it
 * (2 Dec 2026). Named pt_demo on purpose: every stylesheet is linked by
 * name in the head of every page, the pilot seller's page included, and
 * that page is pinned never to carry the word for what this feature
 * tracks (test/integration/pilot_login_test.rb).
 *
 * Every rule is scoped under a pt-demo or pt-launch class. Colours are
 * the theme tokens, so light and dark both read. Nothing here scrolls
 * sideways on a phone: rows wrap, boxes may shrink, and the phone frame
 * is never wider than the column it sits in.
 */

/* The banner on every demo rendering. */
.pt-demo-banner {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--warn);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

/* A button that would write, switched off in the preview. */
.pt-demo-off {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}
.pt-demo-off button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}
.pt-demo-note {
  color: var(--muted);
  font-size: 11.5px;
  font-style: normal;
}
.pt-demo-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* ----- The launch page ----------------------------------------------------- */

.pt-launch {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}
.pt-launch-where {
  font-size: 14px;
  margin: 0;
}
.pt-launch-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.pt-launch-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.pt-launch-step {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-width: 0;
}
.pt-launch-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}
.pt-launch-step-title {
  margin: 0;
  font-size: 15px;
  min-width: 0;
}
.pt-launch-step-means {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}
.pt-launch-step-fallback {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-left: 3px solid var(--danger);
  background: var(--light-2);
  font-size: 12.5px;
}
.pt-launch-step-who {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.pt-launch-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.pt-launch-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pt-launch-form textarea,
.pt-launch-form select,
.pt-launch-form input[type="text"] {
  min-width: 0;
  max-width: 100%;
}
.pt-launch-warning {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
/* A step whose note was refused: what was typed stays in the form. */
.pt-launch-error {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
  overflow-wrap: anywhere;
}
.pt-launch-names {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.pt-launch-names li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.pt-launch-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.pt-launch-modes label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.pt-launch-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.pt-launch-picker a {
  text-decoration: none;
}
.pt-launch-picker a[aria-current="true"] {
  font-weight: 700;
  border-color: var(--ink);
}
.pt-launch-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
}
/* 375px of page inside an 8px bezel on each side. */
.pt-launch-frame-phone {
  width: 391px;
  height: 740px;
  margin: 0 auto;
  border-radius: 28px;
  border-width: 8px;
  border-color: var(--navy-3, var(--line-2));
}
.pt-launch-frame-wide {
  height: 1000px;
}

/* A saved step or section lands below the sticky top bar (61px on a
   phone, 90px on a laptop), not under it. */
.pt-launch-step,
.pt-launch #go-live,
.pt-launch #beta {
  scroll-margin-top: 104px;
}
.pt-launch-here {
  margin: 0 0 10px;
}

/* "Demo: does nothing here" beside Refresh sits on the navy board. */
.pt .pt-board .pt-demo-note {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
}
