/* S2-01j onboarding v5.1 — hello, plan board, calendar finale, problem screens (plan.css), ported from Roster design/calyvro-onboarding-v5 and scoped under .onb5. */
/* ---- hello ---- */
.onb5 .hello { position: relative; min-height: calc(100vh - 100px); display: grid; align-content: center; justify-items: center; text-align: center; padding: 40px 24px 72px; overflow: hidden; background: var(--bg) var(--dots); }
.onb5 .hello > *:not(.hello__cards) { position: relative; z-index: 1; }
.onb5 .hello__cal { width: 132px; height: 132px; margin-bottom: 8px; position: relative; }
.onb5 .hello__cal img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 90%; filter: drop-shadow(0 14px 14px rgba(60, 44, 130, .16)); animation: mate-breathe calc(3.4s / var(--spd)) ease-in-out infinite; }
.onb5 .hello__hi { position: absolute; left: 100%; top: 18px; margin-left: -6px; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface); box-shadow: var(--sh-2); font-size: 13px; font-weight: 600; white-space: nowrap; letter-spacing: -.01em; }
.onb5 .hello__h { max-width: 14.5ch; margin: 18px 0 18px; text-wrap: balance; }
.onb5 .hello__lede { max-width: 40ch; margin: 0 0 36px; }
.onb5 .hello__bar { display: flex; align-items: center; gap: 8px; width: min(580px, 100%); padding: 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); transition: box-shadow .3s; }
.onb5 .hello__bar:focus-within { box-shadow: 0 0 0 4px var(--halo), var(--sh-3); }
.onb5 .hello__field { flex: 1; display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 8px 0 16px; min-width: 0; }
.onb5 .hello__glyph { width: 20px; height: 20px; color: var(--ink3); flex: none; }
.onb5 .hello__glyph .cv-i { width: 20px; height: 20px; }
.onb5 .hello__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 500; letter-spacing: -.015em; }
.onb5 .hello__input::placeholder { color: var(--ink3); font-weight: 400; }
.onb5 .hello__go { height: 50px; padding: 0 24px; font-size: 15px; }
.onb5 .hello__go .cv-i { width: 16px; height: 16px; }
.onb5 .hello__quiet { margin: 22px 0 0; font-size: 14px; }
.onb5 .hello__cards { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.onb5 .hcard { position: absolute; width: 184px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); font-size: 12px; color: var(--ink3); display: grid; gap: 12px; text-align: left; }
.onb5 .hcard b { color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: -.01em; }
.onb5 .hcard__sw { display: flex; }
.onb5 .hcard__sw i { width: 30px; height: 30px; border-radius: 50%; margin-right: -8px; box-shadow: 0 0 0 2.5px var(--surface); }
.onb5 .hcard__cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.onb5 .hcard__cal i { aspect-ratio: .7; border-radius: 6px; background: var(--sunk); }
.onb5 .hcard__cal i.lav { background: var(--t-lav); }
.onb5 .hcard__cal i.ice { background: var(--t-ice); }
.onb5 .hcard__cal i.blush { background: var(--t-blush); }
.onb5 .hcard__q { font: italic 400 26px/1.05 var(--serif); color: var(--ink); }
.onb5 .hcard__bars { display: grid; gap: 6px; }
.onb5 .hcard__bars i { height: 6px; border-radius: 3px; background: var(--sunk2); }
.onb5 .hcard__img { height: 74px; border-radius: 12px; background: var(--sunk); position: relative; overflow: hidden; }
.onb5 .hcard__img::after { content: ''; position: absolute; left: 12px; bottom: 12px; width: 60%; height: 7px; border-radius: 4px; background: var(--surface); }
/* ---- plan board ---- */
.onb5 .plan__head { padding: 18px 4px 28px; display: grid; gap: 12px; }
.onb5 .plan__src { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink2); }
.onb5 .plan__src img { width: 18px; height: 18px; border-radius: 5px; }
.onb5 .plan__h, .onb5 .cal__h { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.04; letter-spacing: -.045em; font-weight: 600; max-width: 18ch; text-wrap: balance; }
.onb5 .board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; grid-auto-flow: dense; }
@media (min-width: 1560px) {
  .onb5 .board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.onb5 .bcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-2); padding: 22px 22px 24px; min-height: 170px; transition: transform .3s var(--ease), box-shadow .3s; }
.onb5 .bcard[data-can] { cursor: pointer; }
.onb5 .bcard[data-can]:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.onb5 .bcard[data-fix] { grid-column: span 2; cursor: default; box-shadow: 0 0 0 2px var(--ink), var(--sh-3); transform: none; }
.onb5 .bcard__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 18px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; min-height: 32px; }
.onb5 .bcard__h > span:first-child { display: grid; gap: 6px; justify-items: start; padding-top: 2px; }
.onb5 .bcard__fix { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink3); background: var(--sunk); transition: all .25s var(--ease); flex: none; }
.onb5 .bcard__fix .cv-i { width: 14px; height: 14px; }
.onb5 .bcard__fix:empty { display: none; }
.onb5 .bcard[data-can]:hover .bcard__fix { background: var(--ink); color: #fff; }
.onb5 .bcard[data-fix] .bcard__fix { background: var(--ink); color: #fff; }
.onb5 .bcard--wide { grid-column: span 2; }
/* compact versions of the scene pieces */
.onb5 .bcard .brand { gap: 16px; }
.onb5 .bcard .logo-chip { height: 76px; padding: 14px 22px; }
.onb5 .bcard .sw { display: flex; gap: 0; }
.onb5 .bcard .sw__i { display: block; margin-right: -10px; }
.onb5 .bcard .sw__box { width: 40px; max-width: none; box-shadow: 0 0 0 3px var(--surface), inset 0 0 0 1px rgba(20, 20, 32, .1); }
.onb5 .bcard .sw__name { display: none; }
.onb5 .bcard .fonts { gap: 8px; grid-template-columns: 1fr; }
.onb5 .bcard .fontrow { gap: 10px; }
.onb5 .bcard .fontrow__aa { width: 38px; height: 38px; border-radius: 11px; font-size: 17px; }
.onb5 .bcard .fontrow__aa.serif { font-size: 22px; }
.onb5 .bcard .fontrow__name { font-size: 13px; }
.onb5 .bcard .fontrow__role { display: none; }
.onb5 .bcard .offer__sum { font-size: 15px; min-height: 0; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.onb5 .bcard .plan__price { font-size: 24px; }
.onb5 .bcard .plan__credits { display: none; }
.onb5 .bcard .grid2 { grid-template-columns: 1fr; gap: 2px; }
.onb5 .bcard .persona { padding: 10px 4px; border: 0; box-shadow: none; background: transparent; border-radius: 10px; align-items: center; gap: 12px; }
.onb5 .bcard .persona__line { display: none; }
.onb5 .bcard .persona__name { font-size: 14px; font-weight: 500; }
.onb5 .bcard .persona__pick { width: 20px; height: 20px; margin: 0; }
.onb5 .bcard .quote { font-size: 26px; }
.onb5 .bcard__edit { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.onb5 .bcard__edit .btn { justify-self: start; }
.onb5 .bcard__edit .msg__opt { display: flex; gap: 6px; flex-wrap: wrap; }
.onb5 .plan__foot { display: flex; justify-content: center; padding: 36px 0 12px; }
/* ---- calendar: the finale ---- */
.onb5 .cal__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 12px 4px 22px; }
.onb5 .cal__title { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.onb5 .cal__title .seg { margin-top: 6px; }
.onb5 .cal__h { min-height: 1.1em; }
.onb5 .seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sunk); }
.onb5 .seg__b { position: relative; z-index: 1; height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 600; color: var(--ink2); transition: color .25s; white-space: nowrap; }
.onb5 .seg__b[data-on] { color: #fff; }
.onb5 .seg__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 999px; background: var(--ink); box-shadow: var(--sh-1); transition: left .45s var(--spring), width .45s var(--spring); }
.onb5 .cal__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.onb5 .cal__col { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 300px; padding: 10px 8px 8px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: box-shadow .3s; min-width: 0; }
.onb5 .cal__col:not(:has(.slot)):not(:has([data-hot]))::after { content: 'Free'; margin: auto; font-size: 13px; font-weight: 500; color: var(--ink3); }
.onb5 .cal__col[data-today] { box-shadow: 0 0 0 1.5px var(--violet-2), 0 0 0 6px var(--halo), var(--sh-2); }
.onb5 .cal__day { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; padding: 4px 6px 6px; font-size: 12px; font-weight: 500; color: var(--ink3); }
.onb5 .cal__day b { font-size: 22px; font-weight: 600; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.onb5 .cal__day[data-today] span { color: var(--violet); font-weight: 600; }
.onb5 .cell { border-radius: 14px; display: grid; align-content: start; gap: 6px; padding: 0; transition: background .25s, box-shadow .25s; position: relative; }
.onb5 .cell:not(:has(.slot)):not([data-hot]) { display: none; }
.onb5 .cal__week[data-drag] .cell:not(:has(.slot)) { display: block; min-height: 48px; background: rgba(20, 20, 32, .035); }
.onb5 .cal__week[data-drag] .cal__col::after { display: none; }
.onb5 .cell[data-hot] { display: grid; min-height: 64px; background: var(--lav); box-shadow: inset 0 0 0 1.5px var(--violet-2); }
.onb5 .slot { position: relative; display: grid; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.onb5 .slot:active { cursor: grabbing; }
.onb5 .slot__v { position: relative; }
.onb5 .slot__img { aspect-ratio: 4/5; background: var(--sunk); position: relative; overflow: hidden; }
.onb5 .slot__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.onb5 .slot__txt { aspect-ratio: 4/5; padding: 12px; display: flex; align-items: flex-end; font: 400 19px/1.08 var(--serif); letter-spacing: -.01em; color: var(--ink); background: var(--tintbg, var(--sunk)); }
.onb5 .slot__time { position: absolute; right: 8px; top: 8px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .94); display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .25); }
.onb5 .slot[data-tint="lav"] { --tint: var(--t-lav); --tintbg: var(--lav); }
.onb5 .slot[data-tint="ice"] { --tint: var(--t-ice); --tintbg: var(--ice); }
.onb5 .slot[data-tint="blush"] { --tint: var(--t-blush); --tintbg: var(--blush); }
.onb5 .slot[data-tint="grey"] { --tint: var(--t-grey); --tintbg: var(--sunk); }
.onb5 .slot__ch { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .94); display: grid; place-items: center; box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .25); }
.onb5 .slot__ch .cv-mark { width: 14px; height: 14px; color: var(--ink); }
.onb5 .slot__b { padding: 9px 10px 10px; display: grid; gap: 3px; }
.onb5 .slot__k { font-size: 13px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.onb5 .slot__p { font-size: 11.5px; color: var(--ink2); line-height: 1.3; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onb5 .slot__p::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tint); flex: none; }
.onb5 .cal__foot { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 36px 0 12px; flex-wrap: wrap; }
.onb5 .cal__note { font-size: 13px; color: var(--ink2); }
/* ---- problem screens ---- */
.onb5 .problem { display: grid; place-items: center; align-content: center; gap: 36px; min-height: calc(100vh - 160px); padding: 24px; text-align: center; }
.onb5 .problem__box { max-width: 560px; display: grid; gap: 16px; justify-items: center; }
.onb5 .problem__h { text-wrap: balance; }
.onb5 .problem__p { color: var(--ink2); font-size: 16px; line-height: 1.55; max-width: 46ch; }
.onb5 .problem__acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.onb5 .problem .bw { max-width: 440px; }
.onb5 .problem .bw__page { min-height: 150px; display: grid; place-items: center; color: #8a8a8a; font-size: 13px; font-family: var(--sans); }
.onb5 .problem .shelf { width: 100%; max-width: 680px; margin: 0; }
@media (max-width: 1240px) {
  .onb5 .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onb5 .bcard[data-fix], .onb5 .bcard--wide { grid-column: span 2; }
  .onb5 .hcard { width: 160px; }
}
@media (max-width: 1100px) {
  .onb5 .hcard { display: none; }
}
@media (max-width: 900px) {
  .onb5 .hello { min-height: calc(100vh - 94px); padding: 28px 18px 56px; }
  .onb5 .hello__cal { width: 112px; height: 112px; }
  .onb5 .plan__head, .onb5 .cal__head { padding: 10px 2px 18px; }
  .onb5 .board { gap: 12px; }
/* phones: the week is an agenda — one row per day, posts beside the date */
  .onb5 .cal__week { display: flex; flex-direction: column; gap: 10px; }
  .onb5 .cal__head { display: grid; gap: 14px; align-items: start; }
  .onb5 .mate-slot--cal { order: -1; justify-self: start; flex-direction: row-reverse; gap: 4px; }
  .onb5 .mate-slot--cal .mate { width: 76px; }
  .onb5 .mate-slot--cal .mate-slot__t { border-radius: 18px 18px 18px 6px; padding: 10px 14px; max-width: 230px; }
  .onb5 .mate-slot--cal .mate-slot__mood { font-size: 13px; }
  .onb5 .cal__col { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: none; gap: 8px 12px; padding: 12px; align-items: start; min-height: 0; }
  .onb5 .cal__day { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 4px; padding: 2px 0 0 2px; }
  .onb5 .cal__day b { font-size: 24px; }
  .onb5 .cell { grid-column: 2; min-height: 0; background: transparent; }
  .onb5 .cell:not(:has(.slot)):not([data-hot]) { display: none; }
  .onb5 .cell[data-hot] { min-height: 64px; }
  .onb5 .cal__col:not(:has(.slot)):not(:has([data-hot]))::after { content: 'Free'; grid-column: 2; grid-row: 1; align-self: center; font-size: 13px; color: var(--ink3); }
  .onb5 .slot { grid-template-columns: 96px 1fr; }
  .onb5 .slot__img, .onb5 .slot__txt { aspect-ratio: auto; height: 84px; }
  .onb5 .slot__txt { font-size: 14px; padding: 8px; }
  .onb5 .slot__time { right: 6px; top: 6px; height: 20px; font-size: 10.5px; padding: 0 6px; }
  .onb5 .slot__txt { font-size: 13px; padding: 30px 8px 8px; }
  .onb5 .slot__ch { left: 6px; top: 6px; width: 22px; height: 22px; }
  .onb5 .slot__ch .cv-mark { width: 12px; height: 12px; }
  .onb5 .slot__b { align-content: center; padding: 8px 12px; }
  .onb5 .slot__k { font-size: 14px; }
  .onb5 .slot__p { font-size: 12.5px; }
  .onb5 .cal__head { align-items: flex-start; }
}
@media (max-width: 560px) {
  .onb5 .board { grid-template-columns: 1fr; }
  .onb5 .bcard[data-fix], .onb5 .bcard--wide { grid-column: auto; }
  .onb5 .hello__bar { padding: 6px; }
  .onb5 .hello__field { height: 48px; padding-left: 12px; gap: 8px; }
  .onb5 .hello__go { height: 48px; padding: 0 18px; }
  .onb5 .hello__go span { display: none; }
  .onb5 .hello__hi { left: auto; right: -64px; top: -8px; }
  .onb5 .seg__b { padding: 0 12px; font-size: 12.5px; }
  .onb5 .cal__foot { padding-top: 24px; }
  .onb5 .cal__foot .btn { width: 100%; }
  .onb5 .cal__note { text-align: center; }
  .onb5 .plan__foot .btn { width: 100%; }
  .onb5 .problem .shelf { display: none; }
}
