/* #/onboard — owned by views/onboard.js (prefix ob). */
.ob-page { display: flex; flex-direction: column; gap: var(--sp-4); }
.ob-page > * { flex-shrink: 0; }
.ob-h2 { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin: 0; text-wrap: balance; }
.ob-h2:focus { outline: none; }
.ob-h3 { font-size: var(--fs-md); font-weight: var(--fw-semibold); margin: var(--sp-4) 0 var(--sp-2); display: flex; gap: var(--sp-2); align-items: center; }
.ob-lede { color: var(--ink-2); max-width: 68ch; margin: var(--sp-1) 0 var(--sp-4); text-wrap: pretty; }

.ob-hero { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; padding: var(--sp-5); }
.ob-hero > div { max-width: 62ch; display: flex; flex-direction: column; gap: var(--sp-2); }
.ob-hero p { margin: 0; }
.ob-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.ob-list a, .ob-list .ob-row { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); align-items: center; width: 100%; min-height: 56px; padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; text-align: left; cursor: pointer;
  transition: border-color var(--dur-2) var(--ease-out); }
.ob-list a:hover, .ob-list .ob-row:hover { border-color: var(--accent); }
.ob-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ob-meta { font-size: var(--fs-sm); }
.ob-page > section > .ob-h2 { margin-bottom: var(--sp-2); }
.ob-hero-quiet { padding: var(--sp-4); }
.ob-hero-quiet .ob-h2 { font-size: var(--fs-md); }
.ob-list .dim { font-size: var(--fs-sm); }
.ob-go { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--accent-ink); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }

/* the frame: step rail + the step */
.ob-frame { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.ob-rail { position: sticky; top: 0; }
.ob-rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ob-step { width: 100%; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border: 0; border-radius: var(--r-md); background: none; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.ob-step:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.ob-step:disabled { color: var(--ink-disabled); cursor: default; }
.ob-step.on { background: var(--accent-soft); color: var(--ink); font-weight: var(--fw-semibold); }
.ob-num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: var(--fw-bold); border: 1.5px solid var(--line-strong); background: var(--surface); }
.ob-step.on .ob-num { border-color: var(--accent); color: var(--accent-ink); }
.ob-step.ok .ob-num { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.ob-phone { display: none; margin: 0; font-size: var(--fs-sm); }
.ob-body { padding: var(--sp-5) var(--sp-6); min-height: 360px; display: flex; flex-direction: column; }
@media (max-width: 900px) {
  .ob-frame { grid-template-columns: 1fr; gap: var(--sp-3); }
  .ob-rail { position: static; }
  .ob-rail ol { flex-direction: row; overflow-x: auto; gap: var(--sp-1); scrollbar-width: none; padding-bottom: 2px; }
  .ob-rail ol::-webkit-scrollbar { display: none; }
  .ob-step { padding: 6px; } .ob-step > span:not(.ob-num) { display: none; }
  .ob-phone { display: block; margin-top: var(--sp-2); }
  .ob-body { padding: var(--sp-4); min-height: 0; }
}

/* forms, choices */
.ob-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.ob-form .form-error:empty { display: none; }
.ob-or { display: flex; align-items: center; gap: var(--sp-3); color: var(--ink-3); font-size: var(--fs-sm); margin: var(--sp-4) 0; }
.ob-or::before, .ob-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ob-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--sp-3); }
.ob-choices-sm { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.ob-choice { flex-direction: row; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-regular); cursor: pointer; transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out); }
.ob-choice:hover { border-color: var(--ink-3); }
.ob-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ob-choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.ob-choice input { margin-top: 3px; }
.ob-choice > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ob-choice .dim { font-size: var(--fs-sm); }
.ob-choice-ic { flex: none; color: var(--accent-ink); }
.ob-when { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--sp-1); text-wrap: pretty; }
.ob-checks { display: flex; flex-direction: column; gap: var(--sp-2); }
.ob-kv { display: grid; grid-template-columns: 130px 1fr; gap: var(--sp-1) var(--sp-4); margin: var(--sp-2) 0; }
.ob-kv dt { color: var(--ink-2); } .ob-kv dd { margin: 0; }

.ob-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-5); flex-wrap: wrap; }
.ob-nav-end { justify-content: flex-end; padding-top: 0; }
.ob-form .ob-nav:not(.ob-nav-end) { display: none; }

/* install */
.ob-live { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: var(--sp-4); }
.ob-live.ok { background: var(--ok-soft); border-color: var(--ok-line); }
.ob-pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-soft); animation: ob-pulse 1.6s var(--ease-out) infinite; }
@keyframes ob-pulse { 0% { box-shadow: 0 0 0 0 var(--accent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) { .ob-pulse { animation: none; box-shadow: 0 0 0 3px var(--accent-soft); } }
.ob-tokenrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.ob-tokenrow .dim { font-size: var(--fs-sm); }
.ob-token { display: flex; flex-direction: column; gap: var(--sp-2); width: 100%; }
.ob-cmds { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: var(--sp-4); }
.ob-cmds li::marker { font-weight: var(--fw-bold); color: var(--accent-ink); }
.ob-cmds p { margin: var(--sp-1) 0; max-width: 72ch; }
.ob-code { position: relative; margin-top: var(--sp-2); }
.ob-code pre { margin: 0; padding: var(--sp-3) var(--sp-4); padding-right: 76px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; font-size: var(--fs-xs); line-height: 1.6; white-space: pre; }
.ob-copy { position: absolute; top: var(--sp-2); right: var(--sp-2); }
.ob-notes { margin: var(--sp-4) 0 0; padding-left: 1.2em; font-size: var(--fs-sm); }

/* cameras, contacts, checklist */
.ob-cams, .ob-contacts { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
.ob-cams li, .ob-contacts li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ob-cams li:first-child, .ob-contacts li:first-child { border-top: 0; }
.ob-cams .dim { font-size: var(--fs-sm); flex: 1; }
.ob-cams .btn { margin-left: auto; }
.ob-camic { color: var(--ink-2); display: inline-flex; }
.ob-contacts { counter-reset: ob; } .ob-contacts li::before { counter-increment: ob; content: counter(ob); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.ob-check { list-style: none; margin: var(--sp-2) 0 var(--sp-4); padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.ob-check li { display: flex; align-items: center; gap: var(--sp-3); }
.ob-tick { flex: none; width: 22px; height: 22px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.ob-check li.ok .ob-tick { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.ob-after { margin-bottom: var(--sp-2); }
