/* Onboarding checklist, import/export, notifications bell and developer settings. Tokens only. */

/* ---- onboarding (#/onboarding overview, one screen per step, the dashboard card) ---- */
.ob-card { margin-bottom: var(--s5); }
.ob-card .status-actions { flex-wrap: wrap; }
.ob-card-more { display: inline-flex; flex-wrap: wrap; gap: var(--s1); }
.ob-progress { height: 8px; margin-top: var(--s3); }
.ob-start { margin-bottom: var(--s5); }
.ob-caption { margin: var(--s2) 0 0; font-size: var(--fs-footnote); line-height: var(--lh-footnote); }
.ob-tick { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-footnote); font-weight: 700; background: var(--fill); color: var(--text-muted); }
.ob-tick.ok { background: var(--success-soft); color: var(--success); }
.ob-tick.skip { background: var(--fill); color: var(--text-muted); }
.ob-step.done .ios-row-title { color: var(--text-muted); }
.ob-later { margin: 0 0 var(--s5); border-radius: var(--r-group); background: var(--surface); overflow: hidden; }
.ob-later > summary { cursor: pointer; list-style: none; display: flex; align-items: center; min-height: var(--row); padding: var(--s3) var(--s4); font-weight: 600; font-size: var(--fs-body); }
.ob-later > summary::-webkit-details-marker { display: none; }
.ob-later > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform var(--t-base); }
.ob-later[open] > summary::after { transform: rotate(-135deg); }
.ob-later > summary:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: -3px; border-radius: var(--r-group); }
.ob-later-body > .ob-caption { margin: 0; padding: 0 var(--s4) var(--s3); }
.ob-later-body .ios-group { margin: 0; }
.ob-later-body .ios-list { border-radius: 0; border-top: .5px solid var(--separator); }

/* a step on its own screen: progress dots, a big tile and one question */
.ob-dots { display: flex; justify-content: center; gap: 6px; margin: 0 0 var(--s4); }
.ob-dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--fill-strong); transition: width var(--t-base) var(--ease); }
.ob-dots span.done { background: var(--success); }
.ob-dots span.on { width: 24px; background: var(--accent-fill); }
.ob-hero { display: flex; flex-direction: column; align-items: center; gap: var(--s2); margin: 0 auto var(--s5); max-width: 520px; text-align: center; }
.ob-hero-title { margin: var(--s2) 0 0; font-size: var(--fs-title2); line-height: var(--lh-title2); font-weight: var(--fw-title2); }
.ob-hero-text { margin: 0; color: var(--text-muted); font-size: var(--fs-subhead); line-height: var(--lh-subhead); }
.ob-hero .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-skip .ios-row { justify-content: center; }
.ob-skip .ios-row-text { align-items: center; }
.ob-skip .ios-row-title { color: var(--accent); font-weight: 600; }
.ob-step-page .ios-group { max-width: 640px; margin-left: auto; margin-right: auto; }
.ob-logo { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.ob-logo-box { width: 120px; height: 72px; border-radius: var(--r-md); border: 1px dashed var(--border-input); background: var(--paper); display: grid; place-items: center; overflow: hidden; flex: none; }
.ob-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---- import / export (#/import, #/import/export, #/import/history) ---- */
.imp-seg { margin: 0 0 var(--s5); }
.imp-error { display: flex; gap: var(--s2); align-items: flex-start; color: var(--danger); margin: 0; }
.imp-howto { margin: 0 0 var(--s5); border-radius: var(--r-group); background: var(--surface); }
.imp-howto > summary { cursor: pointer; list-style: none; display: flex; align-items: center; min-height: var(--row); padding: var(--s3) var(--s4); font-weight: 600; }
.imp-howto > summary::-webkit-details-marker { display: none; }
.imp-howto > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform var(--t-base); }
.imp-howto[open] > summary::after { transform: rotate(-135deg); }
.imp-howto ol, .imp-steps ol { margin: 0; padding: 0 var(--s4) var(--s4) calc(var(--s4) + var(--s5)); display: flex; flex-direction: column; gap: var(--s2); }
.imp-steps .adm-form ol { padding: 0 0 0 var(--s5); }
/* "Moving from QuickBooks Online?" steps: each title picks that import. */
.imp-qbo > p { padding: 0 var(--s4) var(--s4); }
.imp-qbo button[data-qbo-step] { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; text-align: left; }
.imp-qbo button[data-qbo-step]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.imp-map-group .table-wrap { margin: 0; border: 0; border-radius: 0; }
.imp-map select { width: 100%; min-width: 160px; }
.imp-sample { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-stats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: var(--s4); }
.imp-filter { margin: 0 0 var(--s4); overflow-x: auto; scrollbar-width: none; }
.imp-filter::-webkit-scrollbar { display: none; }
.imp-filter .tabs { display: inline-flex; min-width: 100%; }
.imp-line { flex: none; min-width: 34px; text-align: right; color: var(--text-muted); font-size: var(--fs-footnote); font-variant-numeric: tabular-nums; }
.imp-row-error .ios-row-sub { color: var(--danger); }
.imp-progress { height: 12px; margin-top: var(--s3); }
.imp-progress > i { transition: width var(--t-base) var(--ease); }
.imp-problems ul { margin: var(--s2) 0 0; padding-left: var(--s5); }
.imp-done { margin-bottom: var(--s5); }
@media (max-width: 760px) { .imp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .imp-sample { max-width: 140px; } }

/* ---- notifications (the bell in the rail, its sheet and #/notifications) ---- */
.notify-bell { position: relative; }
.notify-count { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--r-pill); background: var(--danger); color: var(--surface); font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; }
.notify-row.unread .ios-row-title { font-weight: 600; }
.notify-row .ios-row-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notify-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-fill); }
.notify-offline { display: flex; gap: var(--s1); align-items: center; font-size: var(--fs-footnote); color: var(--text-muted); margin-bottom: var(--s3); }
.notify-seg { margin: 0 0 var(--s5); }

/* ---- developer (#/developer) ---- */
.dev-scopes td, .dev-scopes th { padding: 6px 10px; }
.dev-scopes .center { text-align: center; }
.dev-once { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s3); border-radius: var(--r-md); background: var(--warning-soft); color: var(--warning); }
.dev-details > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.dev-guide ol { margin: 0; padding-left: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.dev-guide code { font-family: var(--font-mono); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.dev-code { position: relative; margin-top: var(--s2); }
.dev-code pre { margin: 0; padding: var(--s3); padding-right: 44px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--fs-xs); line-height: var(--lh-xs); white-space: pre-wrap; overflow-wrap: anywhere; }
.dev-code .btn { position: absolute; top: 6px; right: 6px; }
.dev-keys .ios-row-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.adm-sheet .table-wrap { margin: 0; }

