/* Onboarding carousel */
.ob-overlay { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(40, 20, 10, .55); backdrop-filter: blur(4px); }
.ob-card { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 480px; max-height: 94vh; padding: 22px 20px 18px; overflow: hidden; border-radius: 30px; background: var(--surface); box-shadow: 0 30px 70px -24px rgba(60, 30, 15, .55); }
.ob-skip { position: absolute; top: 14px; right: 16px; z-index: 2; padding: 6px 10px; border: 0; background: none; color: var(--text-dim); font-family: var(--font-ui); font-size: 13px; font-weight: 700; cursor: pointer; }
.ob-body { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 2px 4px; text-align: center; animation: obIn .28s ease; }
@keyframes obIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.ob-body h2 { margin: 6px 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.ob-body p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.ob-body .ob-sub { font-weight: 600; color: var(--text); }
.ob-hero { display: block; height: 150px; margin: 14px auto 0; object-fit: contain; }
.ob-hero.sm { height: 110px; }
.ob-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.ob-lv { padding: 10px 4px; border-radius: 16px; background: var(--surface-2); }
.ob-lv b { display: block; font-size: 17px; font-weight: 800; color: var(--accent); }
.ob-lv span { font-size: 11.5px; color: var(--text-dim); }
.ob-steps { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; text-align: left; }
.ob-steps li { display: flex; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); }
.ob-steps li.star { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); box-shadow: inset 0 0 0 2px var(--accent); }
.ob-n { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--btn-bg, var(--accent)); color: var(--accent-ink); font-size: 14px; font-weight: 800; }
.ob-steps b { font-size: 14.5px; }
.ob-steps em { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #F2B01E; color: #3A2A00; font-size: 10.5px; font-style: normal; font-weight: 800; white-space: nowrap; }
.ob-steps p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; }
.ob-list { margin: 14px 0 0; padding: 0; list-style: none; text-align: left; }
.ob-list li { position: relative; margin-bottom: 10px; padding: 12px 14px 12px 40px; border-radius: 16px; background: var(--surface-2); font-size: 13.5px; line-height: 1.5; }
.ob-list li::before { content: ''; position: absolute; left: 15px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.ob-dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0; }
.ob-dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--surface-3); transition: width .2s; }
.ob-dots span.on { width: 22px; background: var(--accent); }
.ob-nav { display: flex; gap: 10px; }
.ob-nav .btn { flex: 1; }

/* ---------- plan setup (personal roadmap + study steps) ---------- */
.ps-card .ob-body { text-align: center; overflow-x: hidden; }
.ps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ps-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface-2); color: var(--text); font-family: var(--font-ui); cursor: pointer; transition: border-color .15s, background .15s; }
.ps-opt b { font-size: 16px; font-weight: 800; }
.ps-opt span { font-size: 12px; color: var(--text-dim); }
.ps-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, var(--surface)); }
.ps-opt.on b { color: var(--accent); }
.ps-opt:disabled { opacity: .45; cursor: default; }
.ps-seg { display: flex; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.ps-seg button { flex: 1; padding: 8px 6px; border: 0; border-radius: 999px; background: none; color: var(--text-dim); font-family: var(--font-ui); font-size: 13px; font-weight: 700; cursor: pointer; }
.ps-seg button.on { background: var(--btn-bg, var(--accent)); color: var(--accent-ink); }
.ps-field { margin-top: 12px; text-align: left; }
.ps-field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.ps-num { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ps-num input, .ps-dates input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); font-family: var(--font-ui); font-size: 16px; font-weight: 700; }
.ps-num input { max-width: 120px; }
.ps-quick { display: flex; gap: 6px; margin-top: 8px; }
.ps-quick button { flex: 1; padding: 7px 0; border: 1.5px solid var(--line); border-radius: 999px; background: none; color: var(--text); font-family: var(--font-ui); font-weight: 700; cursor: pointer; }
.ps-quick button.on { border-color: var(--accent); color: var(--accent); }
.ps-dates { display: flex; flex-direction: column; gap: 10px; }
.ps-dates input { display: block; box-sizing: border-box; width: 100%; min-width: 0; margin-top: 6px; font-size: 15px; -webkit-appearance: none; appearance: none; text-align: left; }
.ps-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ps-pack { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 1px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); text-align: left; cursor: pointer; }
.ps-pack input { grid-row: 1 / 3; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.ps-pack b { font-size: 15px; }
.ps-pack span { grid-column: 2 / 4; grid-row: 2; min-width: 0; font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-pack em { justify-self: end; font-size: 11px; font-style: normal; font-weight: 700; color: var(--accent); white-space: nowrap; }
.ps-pack.dis { opacity: .45; cursor: default; }
.ps-summary { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-size: 14px; }
.ps-result { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; text-align: left; }
.ps-row { padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.ps-row-h { display: flex; justify-content: space-between; align-items: baseline; }
.ps-row-h span { font-size: 12.5px; color: var(--text-dim); }
.ps-row-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; text-align: center; }
.ps-row-stats b { display: block; font-size: 20px; font-weight: 800; color: var(--accent); }
.ps-row-stats span { font-size: 11.5px; color: var(--text-dim); }
.ps-row-date { margin-top: 6px; font-size: 12px; color: var(--text-dim); text-align: center; }
.ps-steps { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; text-align: left; }
.ps-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.ps-step.off { opacity: .6; }
.ps-step-t { flex: 1; min-width: 0; }
.ps-step-t b { display: block; font-size: 14px; }
.ps-step-t span { font-size: 12px; color: var(--text-dim); }
.ps-step .stepper { flex-shrink: 0; }
.ps-presets { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ps-preset { align-items: flex-start; text-align: left; padding: 14px 16px; }
.ps-preset small { margin-top: 4px; font-size: 11.5px; color: var(--accent); font-weight: 600; }
.ps-ways { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.ps-way { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.ps-way.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); cursor: default; }
.ps-way-h { display: flex; align-items: flex-start; gap: 10px; }
.ps-way-h b { display: block; font-size: 15px; }
.ps-way-h small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--text-dim); }
.ps-radio { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border: 2px solid var(--text-dim); border-radius: 50%; }
.ps-way.on .ps-radio { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface-2), inset 0 0 0 10px var(--accent); }
.ps-way-body { margin: 12px 0 0 30px; }
.ps-way-body .ps-num { margin-top: 0; font-size: 14px; font-weight: 600; }
.ps-way-body .ps-num input { max-width: 90px; text-align: center; }
.ps-way-body .ps-dates label { font-size: 12.5px; }
.ps-way h2, .ps-way-h b { font-size: 15.5px; }
@media (max-width: 380px) { .ps-way-body { margin-left: 0; } }
.ps-card .ob-body.still { animation: none; }
.ps-step-n { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--btn-bg, var(--accent)); color: var(--accent-ink); font-size: 13px; font-weight: 800; }
.ps-step.off .ps-step-n { background: var(--surface-3); color: var(--text-dim); }
.ps-step-t small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.ps-step.off .ps-step-t small { color: var(--text-dim); }
.ps-rv { margin: -2px 0 4px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.ps-box { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border: 2px solid var(--text-dim); border-radius: 6px; font-size: 13px; font-weight: 900; color: var(--accent-ink); }
.ps-check.on { cursor: pointer; }
.ps-check.on .ps-box { border-color: var(--accent); background: var(--accent); }
