/* S2-01j onboarding v5.1 (approved 2026-10-28), ported from Roster design/calyvro-onboarding-v5/base.css and
   scoped under .onb5: tokens, type roles, card, buttons, top bar, activity pill, shelf, fly/ghost pieces.
   Light theme only. No green, no red, no decorative gradients; lavender / ice / blush stay sparse.
   Type: Plus Jakarta Sans + Instrument Serif accent (founder override 2026-10-28), self-hosted below; outside
   Latin they fall back to the self-hosted Instrument Sans and a system serif. */
/* Self-hosted, Latin subset, woff2 (founder 2026-10-30: "Yes to both", "Yes, download"); OFL 1.1 texts in font-licenses/. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/calyvro/assets/PlusJakartaSans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/calyvro/assets/InstrumentSerif-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/calyvro/assets/InstrumentSerif-Italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
body.onb5-on { overflow: hidden; }
/* The glass panel's backdrop-filter would become the containing block of the fixed page: flatten it. */
body.onb5-on .calyvro-stage { backdrop-filter: none; -webkit-backdrop-filter: none; background: none; border: 0; box-shadow: none; }
body.onb5-on .calyvro-nav, body.onb5-on .team-strip, body.onb5-on .mesh-background, body.onb5-on .stage-header { display: none !important; }
.onb5 {
  /* surfaces */
  --bg: #f5f6f8; --surface: #fff; --sunk: #f1f2f5; --sunk2: #e8eaee;
  --line: rgba(20, 20, 32, .07); --line2: rgba(20, 20, 32, .12);
  /* ink */
  --ink: #15151a; --ink2: #5d5d68; --ink3: #9b9ba6;
  /* pastels (sparse) + the agent's colour */
  --lav: #eeebfc; --ice: #e6eefc; --blush: #fcf0f6;
  --t-lav: #cdc4f6; --t-ice: #c2d4f3; --t-blush: #f1cadf; --t-grey: #d8dbe1;
  --violet: #6e5ed6; --violet-2: #8f81ee; --halo: rgba(110, 94, 214, .16);
  /* radius */
  --r-xl: 28px; --r-lg: 20px; --r: 14px; --r-sm: 10px;
  /* elevation: hairline + soft long shadow */
  --sh-1: 0 1px 2px rgba(16, 16, 28, .04), 0 4px 12px -6px rgba(16, 16, 28, .06);
  --sh-2: 0 1px 2px rgba(16, 16, 28, .04), 0 16px 36px -18px rgba(16, 16, 28, .18);
  --sh-3: 0 2px 6px rgba(16, 16, 28, .05), 0 30px 70px -28px rgba(16, 16, 28, .30);
  /* type */
  --sans: 'Plus Jakarta Sans', 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --fs-cap: 12px; --fs-ui: 14px; --fs-lead: 16px; --fs-h3: 20px; --fs-h2: 30px;
  --fs-d: clamp(38px, 5vw, 66px);
  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --spd: 1; --side-w: 340px;
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='1' cy='1' r='1' fill='%2315151a' fill-opacity='.06'/%3E%3C/svg%3E");
}
.onb5 * { box-sizing: border-box; }
.onb5 { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-ui)/1.5 var(--sans); letter-spacing: -.006em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.onb5 { position: fixed; inset: 0; z-index: 40; overflow-y: auto; overflow-x: hidden; }
.onb5 img { display: block; max-width: 100%; }
.onb5 button, .onb5 input { font: inherit; color: inherit; letter-spacing: inherit; }
.onb5 button { cursor: pointer; }
.onb5 h1, .onb5 h2, .onb5 h3, .onb5 p { margin: 0; }
.onb5 [hidden] { display: none !important; }
.onb5 :focus-visible { outline: none; box-shadow: 0 0 0 3px var(--halo); }
.onb5 ::selection { background: var(--lav); }
/* type roles */
.onb5 .display { font-size: var(--fs-d); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
.onb5 .h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.035em; font-weight: 600; }
.onb5 .it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-size: 1.1em; line-height: .9; }
.onb5 .lede { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink2); }
.onb5 .cap { font-size: var(--fs-cap); line-height: 1.4; color: var(--ink3); }
.onb5 .num { font-variant-numeric: tabular-nums; }
.onb5 .link { background: none; border: 0; padding: 0; color: var(--ink2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line2); }
.onb5 .link:hover { color: var(--ink); text-decoration-color: var(--ink3); }
.onb5 .cv-i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.onb5 .cv-mark { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; color: var(--ink2); }
.onb5 .cv-mark.lit { color: var(--lit, var(--ink)); }
/* the ONE status marker: at most one per card. soon = Calyvro does not read this yet; sample = written for the mock */
.onb5 .mk { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--sans); letter-spacing: 0; color: var(--ink3); white-space: nowrap; vertical-align: middle; }
.onb5 .mk::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.onb5 .mk[data-k="soon"]::before { border: 1.3px dashed var(--ink3); width: 6px; height: 6px; }
.onb5 .mk[data-k="sample"]::before { background: var(--t-grey); box-shadow: inset 0 0 0 1px rgba(20, 20, 32, .12); }
/* card: the one surface primitive */
.onb5 .card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 24px; }
.onb5 .card__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.onb5 .card__h > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.onb5 .sub { font-size: var(--fs-cap); color: var(--ink3); font-weight: 500; margin: 0 0 10px; }
/* buttons: two heights, one shape */
.onb5 .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 14px; white-space: nowrap; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.onb5 .btn:hover { border-color: rgba(20, 20, 32, .22); box-shadow: var(--sh-1); }
.onb5 .btn:active { transform: scale(.98); }
.onb5 .btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 10px 24px -12px rgba(16, 16, 28, .55); }
.onb5 .btn-primary:hover { background: #26262d; border-color: #26262d; }
.onb5 .btn-ghost { background: transparent; border-color: transparent; color: var(--ink2); box-shadow: none; }
.onb5 .btn-ghost:hover { background: rgba(20, 20, 32, .04); border-color: transparent; color: var(--ink); box-shadow: none; }
.onb5 .btn-icon { width: 40px; padding: 0; }
.onb5 .btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.onb5 .btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
/* top bar */
.onb5 .top { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; padding: 0 24px; background: rgba(245, 246, 248, .86); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.onb5 .wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.04em; color: var(--ink); text-decoration: none; justify-self: start; }
.onb5 .top__pill { justify-self: center; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; height: 36px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); font-weight: 600; font-size: 13px; letter-spacing: -.01em; }
.onb5 .top__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--halo); animation: cv-breath calc(2s / var(--spd)) ease-in-out infinite; }
.onb5 .top__pill[data-done] .top__dot { background: var(--ink); box-shadow: 0 0 0 4px var(--sunk); animation: none; }
.onb5 .top__count { font-weight: 500; color: var(--ink3); font-variant-numeric: tabular-nums; }
.onb5 .top__count:empty { display: none; }
.onb5 .top__right { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
@keyframes cv-breath { 50% { box-shadow: 0 0 0 7px rgba(110, 94, 214, .08); } }
/* shell */
.onb5 .shell { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); gap: 20px; padding: 8px 24px 32px; max-width: 1640px; margin: 0 auto; min-height: calc(100vh - 100px); align-items: start; }
.onb5 .shell[data-side="off"] { grid-template-columns: minmax(0, 1fr); }
.onb5 .shell[data-side="off"] .side { display: none; }
.onb5 .main { min-width: 0; }
.onb5 .shell[data-moment="hello"] { grid-template-columns: minmax(0, 1fr); padding: 0; max-width: none; }
.onb5 .shell[data-moment="hello"] .side, .onb5 .shell[data-moment="hello"] .peek { display: none; }
/* activity pill: what the agent is doing right now */
.onb5 .cv-act { display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 18px 0 12px; margin: 0 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: 14px; max-width: 100%; }
.onb5 .cv-act__ring { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--sunk2); flex: none; animation: cv-spin calc(1.4s / var(--spd)) linear infinite; }
.onb5 .cv-act__ring::after { content: ''; position: absolute; top: -3.5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px var(--halo); }
.onb5 .cv-act[data-state="done"] .cv-act__ring { animation: none; border-color: var(--ink); background: var(--ink); }
.onb5 .cv-act[data-state="done"] .cv-act__ring::after { top: 50%; left: 50%; width: 7px; height: 4px; margin: -3px 0 0 -3.5px; border-radius: 0; background: none; box-shadow: none; border: 1.6px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.onb5 .cv-act[data-state="wait"] .cv-act__ring { animation-duration: calc(2.6s / var(--spd)); }
.onb5 .cv-act__text { font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onb5 .cv-act__text[data-swap] { animation: cv-swap .36s var(--ease); }
.onb5 .cv-act__leave { color: var(--ink3); font-size: 13px; white-space: nowrap; }
@keyframes cv-spin { to { transform: rotate(360deg); } }
@keyframes cv-swap { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } }
/* stage (a canvas with a faint dot grid) + shelf */
.onb5 .stage { position: relative; min-height: 500px; display: grid; border-radius: var(--r-xl); background: var(--surface) var(--dots); border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; }
.onb5 .shelf { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.onb5 .tile { display: grid; gap: 8px; justify-items: center; text-align: center; min-width: 0; }
.onb5 .tile__box { width: 100%; aspect-ratio: 1; border-radius: 18px; background: var(--sunk); display: grid; place-items: center; overflow: hidden; position: relative; transition: background .3s, box-shadow .3s; }
.onb5 .tile[data-done] .tile__box { background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.onb5 .tile[data-now] .tile__box { background: var(--surface); box-shadow: 0 0 0 2px var(--violet), 0 0 0 7px var(--halo); animation: cv-now calc(1.8s / var(--spd)) ease-in-out infinite; }
@keyframes cv-now { 50% { box-shadow: 0 0 0 2px var(--violet), 0 0 0 10px rgba(110, 94, 214, .06); } }
.onb5 .tile__label { font-size: 12px; font-weight: 500; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.onb5 .tile[data-done] .tile__label, .onb5 .tile[data-now] .tile__label { color: var(--ink); }
.onb5 .tile__miss { font-size: 11px; font-weight: 500; color: var(--ink3); display: inline-flex; align-items: center; gap: 5px; }
.onb5 .tile__miss::before { content: ''; width: 6px; height: 6px; border-radius: 50%; border: 1.3px dashed var(--ink3); }
.onb5 .tile__sw { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.onb5 .tile__sw i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(20, 20, 32, .1); }
.onb5 .tile__img { width: 100%; height: 100%; object-fit: cover; }
.onb5 .tile__text { font-size: 11px; line-height: 1.35; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.onb5 .tile__q { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1; color: var(--ink); }
.onb5 .tile .cv-i { width: 22px; height: 22px; color: var(--ink2); }
/* fly chips, ghosts, caret, word rise, toast */
.onb5 .cv-fly { position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none; will-change: transform; }
.onb5 .cv-fly.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); font-size: 13px; font-weight: 600; white-space: nowrap; }
.onb5 .cv-fly.chip .cv-i { width: 14px; height: 14px; color: var(--violet); }
.onb5 .cv-fly.sw { width: 32px; height: 32px; border-radius: 50%; box-shadow: var(--sh-3); }
.onb5 .cv-fly.img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; box-shadow: var(--sh-3); }
.onb5 .cv-fly.img img { width: 100%; height: 100%; object-fit: cover; }
.onb5 .cv-ghost { position: fixed; z-index: 900; pointer-events: none; overflow: hidden; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); }
.onb5 .cv-ghost__in { display: grid; place-items: center; width: 100%; height: 100%; }
.onb5 .cv-caret { display: inline-block; width: 1.5px; height: .95em; background: var(--violet); vertical-align: -.1em; margin-left: 2px; animation: cv-blink 1s steps(2) infinite; }
@keyframes cv-blink { 50% { opacity: 0; } }
.onb5 .cv-rise__m { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .04em .12em; margin: 0 -.04em -.12em; }
.onb5 .cv-rise__w { display: inline-block; will-change: transform; }
.onb5 .cv-toasts { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 1000; }
.onb5 .cv-toast { padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; box-shadow: var(--sh-3); animation: cv-swap .3s var(--ease); white-space: nowrap; }
.onb5 .cv-toast[data-state="out"] { opacity: 0; transition: opacity .2s; }
.onb5[data-motion="reduced"] .cv-act__ring, .onb5[data-motion="reduced"] .top__dot, .onb5[data-motion="reduced"] .tile__box { animation: none !important; }
@media (max-width: 1180px) {
  .onb5 { --side-w: 300px; }
}
@media (max-width: 900px) {
  .onb5 { --fs-h2: 26px; }
  .onb5 .shell { grid-template-columns: minmax(0, 1fr); padding: 4px 14px 104px; gap: 0; }
  .onb5 .top { padding: 0 14px; grid-template-columns: auto 1fr auto; gap: 8px; height: 58px; }
  .onb5 .top__pill { font-size: 12px; height: 32px; padding: 0 12px 0 10px; gap: 8px; }
  .onb5 .top__right .btn-ghost:not(.btn-icon) { padding: 0 8px; font-size: 13px; }
/* phones: the read becomes a column — progress first, then the pill, then the stage */
  .onb5 .read { display: flex; flex-direction: column; }
  .onb5 .shelf { order: -1; display: flex; gap: 4px; margin: 2px 2px 14px; }
  .onb5 .tile { flex: 1 1 0; gap: 0; }
  .onb5 .tile__box { aspect-ratio: auto; height: 4px; border-radius: 2px; background: var(--sunk2); box-shadow: none !important; animation: none !important; }
  .onb5 .tile__box > *, .onb5 .tile__box .tile__in > * { display: none !important; }
  .onb5 .tile[data-done] .tile__box { background: var(--ink); }
  .onb5 .tile[data-now] .tile__box { background: var(--violet); }
  .onb5 .tile__label { display: none; }
  .onb5 .cv-act { height: 38px; font-size: 13px; padding: 0 16px 0 10px; margin-bottom: 12px; align-self: flex-start; }
  .onb5 .stage { min-height: 0; border-radius: 24px; }
}
@media (max-width: 480px) {
  .onb5 .cv-act__leave { display: none; }
  .onb5 .wordmark { font-size: 17px; }
  .onb5 .top { gap: 4px; padding: 0 10px 0 14px; }
  .onb5 .top__right .btn-ghost:not(.btn-icon) { padding: 0 6px; font-size: 12px; }
  .onb5 .top__right .btn-icon { width: 32px; }
}
/* stills: a frozen frame never shows a text swap half-faded */
