/* The advisor's setup card (26 Sep 2026). The owner: "formatting here is not good" — the two notification
   buttons touched, the progress line floated above the steps, and the steps read as a list rather than a path.
   One white card like the family's .ww-card; steps as a four-stop path; each step one heading, one line of
   why, its fields, and its buttons on one row with a gap. Buttons are the shared .ww-btn / .ww-btn-secondary
   (the one button idiom, check-one-button); only their spacing is set here. */

.welcome .intro { margin-bottom: 4px; }
.welcome .intro p { color: var(--ink-soft, rgba(41,54,74,.74)); }

.setup-card {
  border-radius: var(--radius-card, 16px);
  box-shadow: 0 1px 2px rgba(41,54,74,.06), 0 8px 24px -16px rgba(41,54,74,.25);
  padding: 28px 32px 24px;
}
.setup-card button { margin: 0; }
.setup-card .message { min-height: 0; margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.setup-card .message:empty { display: none; }

/* ---- the path: four stops, the current one filled, the ones behind it ticked through the number ---- */
.setup-card .setup-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 28px;
}
.setup-card .setup-steps li { padding: 0; border: 0; border-radius: 0; background: none; min-width: 0; }
.setup-card .setup-steps button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control, 10px);
  background: var(--card);
  color: var(--ink);
  font: 600 15px/1.25 var(--font-body);
  text-align: left;
  cursor: pointer;
  /* The controls sheet lets list items wrap anywhere, which split "Notifications" on a phone. */
  overflow-wrap: normal;
  word-break: normal;
}
.setup-card .setup-steps button:hover { background: var(--paper-dim); color: var(--ink); }
.setup-card .setup-steps button:disabled { opacity: .5; cursor: not-allowed; background: var(--card); color: var(--ink); border-color: var(--line); }
.setup-num {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  height: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}
.setup-card .setup-steps [aria-current=step] button,
.setup-card .setup-steps [aria-current=step] button:hover { background: var(--ink); color: var(--card); border-color: var(--ink); }
.setup-card .setup-steps [aria-current=step] .setup-num { background: var(--card); color: var(--ink); border-color: var(--card); }
.setup-card .setup-steps [data-done=true]:not([aria-current]) .setup-num { background: var(--brand-ice); border-color: var(--brand-ice); }

/* ---- a step ---- */
.setup-step h2 { margin: 0 0 6px; }
.setup-step h2:focus { outline: none; }
.setup-lede { color: var(--ink-soft, rgba(41,54,74,.74)); margin: 0 0 8px; }
.setup-step form > label:first-child { margin-top: 12px; }
.setup-optional { font-weight: 400; color: var(--ink-soft, rgba(41,54,74,.74)); }
.setup-card .hint { margin: 6px 0 0; }

.setup-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 24px; }
.setup-actions [data-go] { margin-right: auto; }
.setup-actions .ww-btn { min-width: 200px; }
.setup-nav { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
/* A secondary button's hover keeps its ink: the onboarding sheet's `button:hover` turns text white, which on a
   white hover ground would leave the label invisible. */
.setup-card .ww-btn-secondary:hover { color: var(--copper-text, #29364a); }

.setup-msg { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--radius-control, 10px); background: var(--brand-mist); font-size: 15px; line-height: 1.5; }
.setup-msg[data-tone=ok] { background: var(--brand-ice); }
.setup-msg[data-tone=error] { background: var(--card); border: 1px solid var(--ink); font-weight: 600; }

.setup-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.setup-pair label { margin-top: 12px; }

.setup-card .setup-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; margin: 10px 0 0; }
.setup-card .setup-check input { width: 20px; min-height: 20px; height: 20px; flex: 0 0 20px; margin: 3px 0 0; padding: 0; }
.setup-indent { padding-left: 30px; }
.setup-fieldset { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.setup-fieldset legend { font-weight: 700; padding: 0; }
.setup-consent { margin-top: 16px; }

.setup-texts { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-control, 10px); }
.setup-label { font-weight: 700; margin: 0; }
.setup-texts .setup-sub-label { margin-top: 12px; }

/* ---- Connect: three panels, each a small job with its own result line ---- */
.setup-panel { margin-top: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-control, 10px); }
.setup-panel h3 { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.35; }
.setup-panel .setup-actions { margin-top: 16px; justify-content: flex-start; }
.setup-code { display: flex; gap: 10px; align-items: stretch; }
.setup-code input { flex: 1 1 auto; min-width: 0; }
.setup-code button { flex: 0 0 auto; }
.setup-review { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-control, 10px); background: var(--brand-mist); overflow-wrap: anywhere; }
.setup-review h4 { margin: 0 0 4px; font-size: 17px; }
.setup-review p { margin: 0 0 8px; }
.setup-review .ww-btn { margin-top: 4px; }
.setup-review .setup-code input { background: var(--card); }
.setup-progress { margin-top: 12px; }
/* The bar is ui.css's .ww-progress, the one progress bar (R14, 9/29-11): a rule here sizing
   the bare <progress> kept the browser's own thin blue line. */
.setup-more { margin: 12px 0 0; font-size: 15px; }
.setup-send { margin-top: 16px; }
.setup-requests { margin: 12px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.setup-requests li + li { margin-top: 4px; }
.setup-later { margin: 24px 0 0; font-size: 15px; }

@media (max-width: 640px) {
  .setup-card { padding: 20px 18px; }
  .setup-card .setup-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-card .setup-steps button { gap: 8px; padding: 8px 10px; font-size: 14px; }
  .setup-pair { grid-template-columns: minmax(0, 1fr); }
  .setup-actions > * { flex: 1 1 100%; }
  .setup-actions [data-go] { order: 2; margin-right: 0; }
  .setup-actions .ww-btn { min-width: 0; }
  .setup-panel { padding: 16px; }
  .setup-code { flex-wrap: wrap; }
  .setup-code button { flex: 1 1 100%; }
}
