/* 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; }

/* 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); }
}
@media (prefers-reduced-motion: reduce) { .sp-body, .sp-line, .fs-card { animation: none; } }
