/* Daily Life Doc, round 17 (zone 17-B): a new expert's first day, as the page "Rounds 14 to 18" draws it ("A new
   expert's first day"). The whole screen "start" (js/start/start-page.js) on the sage ground of #bare: one white card
   as Sign in's (.si-card of css/account.css), wider here; Welcome with its three rows and "Set up · 5 minutes"; Set up
   with one row per step (a done row's value and its green "Done", a skipped row's grey "Skipped", the open row's
   step and its buttons). The card First steps on Clients (js/clients/first-steps.js). Light and dark come from the
   tokens of css/base.css; nothing here names a colour. */

.sp-wrap { max-width: 560px; margin: 0 auto; padding: max(40px, 8vh) 0 40px; }
.sp-card.si-card { max-width: 560px; gap: 12px; }
.sp-lead { margin: 0; font-size: var(--t-s); line-height: 1.5; color: var(--ink2); }
.sp-go { align-self: flex-start; margin-top: 4px; }
.sp-go:disabled, .sp-acts .pill:disabled { opacity: .55; cursor: default; }

/* Welcome's three rows: the step on the left, the grey words on the right. */
.sp-rows { display: flex; flex-direction: column; }
.sp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 10px 0;
  border-top: 1px solid var(--cardline); }
.sp-row:first-child { border-top: 0; }
.sp-row .sp-k { font-size: var(--t-s); font-weight: 500; color: var(--ink); }
.sp-row .sp-v { font-size: var(--t-xs); color: var(--ink3); text-align: right; }

/* Set up: the title with "Step N of 4", then one row per step. */
.sp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sp-n { font-size: var(--t-xs); color: var(--ink3); white-space: nowrap; }
.sp-steps { display: flex; flex-direction: column; }
.sp-step { border-top: 1px solid var(--cardline); padding: 4px 0; }
.sp-step:first-child { border-top: 0; }
.sp-head { display: flex; justify-content: space-between; align-items: center; gap: 6px 14px; flex-wrap: wrap; width: 100%; min-height: 44px;
  padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
button.sp-head { cursor: pointer; border-radius: 10px; transition: background-color 200ms ease; }
button.sp-head:hover { background: var(--app2); box-shadow: -8px 0 0 var(--app2), 8px 0 0 var(--app2); }
.sp-head .sp-k { font-size: var(--t-s); font-weight: 600; color: var(--ink); }
.sp-step.later .sp-k { font-weight: 500; color: var(--ink3); }
.sp-head .sp-v { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; font-size: var(--t-xs); color: var(--ink2);
  text-align: right; min-width: 0; overflow-wrap: anywhere; }
.sp-state { font-size: var(--t-2xs); font-weight: 500; border-radius: 999px; padding: 1px 8px; background: var(--good-bg); color: var(--good-d); white-space: nowrap; }
.sp-state.sk { background: var(--soft); color: var(--ink3); }
.sp-body { padding: 4px 0 2px; animation: dd-fade 200ms ease both; }
.sp-body .ac-f:last-of-type { margin-bottom: 8px; }
.sp-acts { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 0 10px; }
.sp-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-line { margin: 12px 0 0; font-size: var(--t-xs); line-height: 1.5; color: var(--ink2); animation: dd-fade 200ms ease both; }
/* Step 3 shows Settings' Calls card, its Call hours only (Reminders and Recording stay in Settings). */
.sp-step .cset .fx:not(:first-child) { display: none; }
.sp-step .cset .fx:first-child > .fl { display: none; }
.sp-step .hgrid { max-width: none; }

/* Step 4, round 32 (zone E): Ask AI's interview (js/start/start-onboard.js). The AI's words plain on the card, the
   expert's words in the Ask AI bubble, the checklist with a mark per step, the answer box as Ask AI's. */
.ob-talk { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 10px; }
.ob-turn { display: flex; flex-direction: column; gap: 8px; animation: dd-rise var(--m-add) var(--ease-out) both; }
.ob-ai { margin: 0; font-size: var(--t-s); line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.ob-me { align-self: flex-end; max-width: 88%; margin: 0; padding: 7px 12px; border-radius: 16px 16px 6px 16px; background: var(--care);
  font-size: var(--t-sm); line-height: 1.42; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ob-work { font-size: var(--t-xs); color: var(--ink3); animation: dd-live 1.2s ease-in-out infinite; }
.ob-quiet { font-size: var(--t-xs); color: var(--ink3); }
.ob-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ob-s { display: flex; align-items: flex-start; gap: 10px; font-size: var(--t-sm); line-height: 1.4; color: var(--ink); }
.ob-m { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: var(--t-2xs);
  font-weight: 700; background: var(--soft); color: var(--ink3); }
.ob-s.done .ob-m { background: var(--good-bg); color: var(--good-d); animation: dd-tick var(--m-tick) var(--ease-out) both; }
.ob-s.run .ob-m::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--care-d); animation: dd-live 1.2s ease-in-out infinite; }
.ob-s.fail .ob-m { background: var(--bad-bg); color: var(--bad-d); }
.ob-s.skip, .ob-s.wait { color: var(--ink2); }
.ob-r { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.ob-n { font-size: var(--t-xs); color: var(--ink3); }
.ob-s.fail .ob-n { color: var(--bad-d); }
.ob-go { display: flex; justify-content: flex-end; gap: 8px; }
.ob-go .pill:disabled { opacity: .55; cursor: default; }
.ob-field { display: flex; align-items: flex-end; gap: 8px; }
.ob-field[hidden] { display: none; }
.ob-in { flex: 1; min-width: 0; min-height: 40px; max-height: 160px; border: 0; border-radius: 20px; padding: 10px 14px; background: var(--care);
  color: var(--ink); font: inherit; font-size: var(--t-sm); line-height: 1.4; resize: none; overflow-y: auto; }
.ob-in:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--care-d) 30%, transparent); }
.ob-send { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--ink);
  color: var(--surface); cursor: pointer; transition: opacity var(--m-step) ease; }
.ob-send[disabled] { opacity: .35; cursor: default; }

/* First steps on Clients. */
.fs-card { max-width: 640px; margin: 0 0 16px; padding: 14px 16px 6px; border-radius: 16px; background: var(--card); animation: dd-fade 200ms ease both; }
.fs-eyebrow { font-size: var(--t-2xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin-bottom: 4px; }
.fs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; border-top: 1px solid var(--cardline); }
.fs-row:nth-child(2) { border-top: 0; }
.fs-k { font-size: var(--t-s); color: var(--ink); min-width: 0; }
.fs-row.done .fs-k { color: var(--ink2); }
.fs-ok { color: var(--sage-d); font-weight: 600; margin-right: 8px; }
.fs-v { font-size: var(--t-xs); color: var(--ink3); white-space: nowrap; }
.fs-row .pill { flex: none; }
.fs-row .pill:disabled { opacity: .55; }

@media (max-width: 600px) {
  .sp-wrap { padding-top: 24px; }
  .sp-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .sp-row .sp-v { text-align: left; }
  /* A long value (call hours) wraps under the step's name and reads from the left, its state beside it. */
  .sp-head .sp-v { justify-content: flex-start; text-align: left; }
  .sp-acts .pill { flex: 1; }
}
@media (max-width: 360px) {
  .sp-card.si-card { padding: 20px 14px 14px; }
  .fs-card { padding: 12px 12px 4px; }
  .fs-row { gap: 8px; }
  .fs-k { font-size: var(--t-xs); }
  /* On a phone a done step's value always sits under its name, so a short name ("Notify me", round 33) does not pull
     its value up beside it while the rows around it wrap (fixer FX4, walk W1 L1). */
  .sp-step.done .sp-head .sp-k { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .sp-body, .sp-line, .fs-card, .ob-turn, .ob-work, .ob-s .ob-m, .ob-s .ob-m::before { animation: none; } }
