/* Onboarding: the guided tour + the setup checklist (lib/onboarding.js, 2026-09-29) */
#tour-layer { position: fixed; inset: 0; z-index: 130; }
#tour-layer[hidden] { display: none; }
.tour-pane { position: fixed; background: rgba(18, 16, 14, .56); pointer-events: auto; }
.tour-ring { position: fixed; border-radius: 16px; outline: 3px solid var(--accent-lift, #fff); outline-offset: 0; pointer-events: none; box-shadow: 0 0 0 6px rgba(255,255,255,.18); }
#tour-layer { pointer-events: none; }
#tour-layer .tour-card, #tour-layer .tour-pane { pointer-events: auto; }
.tour-hole { position: fixed; border-radius: 18px; box-shadow: 0 0 0 200vmax rgba(18, 16, 14, .58); outline: 2px solid var(--accent-lift, #fff); outline-offset: 2px; pointer-events: none; transition: all .25s ease; }
.tour-hole.tour-none { left: 50%; top: 50%; width: 0; height: 0; outline: 0; }
.tour-card { position: fixed; width: min(380px, calc(100vw - 32px)); padding: 20px 22px 18px; border-radius: 22px; background: var(--card, #fff); color: var(--ink, #1a1a17); box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.tour-card.docked { left: 50%; top: auto; bottom: 24px; transform: translateX(-50%); }
.tour-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tour-n { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2, #555); }
.tour-skip { border: 0; background: none; padding: 4px 0; font: 600 14px/1 var(--font, sans-serif); color: var(--ink-2, #555); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tour-title { margin: 0 0 6px; font-family: var(--font-display, var(--font)); font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.tour-body { margin: 0 0 16px; font-size: 16px; line-height: 1.45; color: var(--ink-2, #444); }
.tour-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tour-act .btn { min-height: 44px; }
#tour-resume { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 131; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink, #1a1a17); color: var(--ground, #fff); font: 700 15px/1 var(--font, sans-serif); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); cursor: pointer; }
#tour-resume[hidden] { display: none; }
html.touring #setup-card { display: none; }

.setup-card { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 320px; border-radius: 22px; background: var(--card, #fff); color: var(--ink, #1a1a17); border: 1px solid var(--line, #ddd); box-shadow: 0 14px 40px rgba(0, 0, 0, .14); }
.setup-card[hidden], html.menu-open .setup-card { display: none; }
.setup-card:not(.open) { width: auto; }
.setup-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 12px; }
.setup-toggle { display: flex; align-items: center; gap: 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 4px; }
.setup-toggle b { display: block; font-size: 16px; }
.setup-sub { display: block; font-size: 14px; color: var(--ink-2, #555); }
.setup-ring { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent, #333) calc(var(--p) * 1%), var(--sunk, #eee) 0); }
.setup-ring span { width: 30px; height: 30px; border-radius: 50%; background: var(--card, #fff); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.setup-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--ink-2, #555); display: grid; place-items: center; cursor: pointer; }
.setup-x svg { width: 16px; height: 16px; }
.setup-list { list-style: none; margin: 0; padding: 0 12px 6px; max-height: min(60vh, 460px); overflow: auto; }
.setup-list li { display: grid; grid-template-columns: 26px 1fr; gap: 4px 10px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line, #eee); }
.setup-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line, #ccc); display: grid; place-items: center; padding: 0; background: none; color: inherit; }
button.setup-check { cursor: pointer; }
button.setup-check:hover { border-color: var(--ink-2, #555); }
.setup-list li.done .setup-check { background: var(--ink, #1a1a17); border-color: var(--ink, #1a1a17); color: var(--ground, #fff); }
.setup-check svg { width: 14px; height: 14px; }
.setup-t { font-size: 15px; font-weight: 600; text-align: left; border: 0; background: none; padding: 0; font-family: inherit; color: inherit; cursor: pointer; min-height: 24px; }
.setup-t:hover { text-decoration: underline; text-underline-offset: 3px; }
.setup-list li.done .setup-t { color: var(--ink-2, #666); text-decoration: line-through; font-weight: 500; }
.setup-tour { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 24px); margin: 4px 12px 12px; min-height: 44px; border: 0; border-radius: 999px; background: var(--ink, #1a1a17); color: var(--ground, #fff); font: 700 15px/1 var(--font, sans-serif); cursor: pointer; }
.setup-tour svg { width: 16px; height: 16px; }
@media (max-width: 759px) {
  .setup-card { right: 12px; left: auto; bottom: 104px; }
  .setup-card.open { left: 12px; width: auto; }
  .tour-card.docked { bottom: 110px; }
  #tour-resume { bottom: 110px; }
}
.empty-start { max-width: 640px; margin: 24px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.empty-start .h3 { margin: 0; }
.empty-start p { margin: 0 0 6px; font-size: 16px; }
.ibx-empty.empty-start { max-width: none; margin: 0; justify-content: center; align-items: center; text-align: center; padding: 32px; }

/* 2026-09-29 second pass: the profile form in the card, dragging, the pill bottom left, sheets above the tour */
.tour-card.wide { width: min(460px, calc(100vw - 32px)); }
.tour-card.docked.wide { top: 50%; bottom: auto; transform: translate(-50%, -50%); max-height: calc(100vh - 40px); overflow: auto; }
.tour-top[data-tour-drag] { cursor: grab; touch-action: none; }
.tour-card.dragging, #tour-layer.dragging .tour-card { cursor: grabbing; }
.tour-form { display: grid; gap: 12px; margin: 0 0 14px; }
.tour-form .field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2, #555); }
.tour-form input:not([type=file]) { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line, #ccc); background: var(--card, #fff); color: var(--ink, #1a1a17); font: 500 16px/1.2 var(--font, sans-serif); }
.tour-form input:disabled { background: var(--sunk, #eee); color: var(--ink-2, #666); }
.tour-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tour-photo { display: flex; align-items: center; gap: 14px; }
.tour-photo img, .tour-photo > span { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--sunk, #eee); font-weight: 800; font-size: 18px; }
.tour-err { margin: 0; color: var(--alert, #9e3b26); font-size: 14px; font-weight: 600; }
.tour-wait { margin: -6px 0 12px; font-size: 14px; color: var(--ink-2, #666); }
#tour-resume { left: 20px; bottom: 20px; transform: none; display: inline-flex; align-items: center; gap: 10px; }
#tour-resume .num { opacity: .75; font-weight: 600; }
.setup-card { left: 20px; right: auto; touch-action: none; }
.setup-head { cursor: grab; }
.setup-card.dragging { cursor: grabbing; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.setup-grip { width: 4px; height: 22px; border-radius: 2px; background: repeating-linear-gradient(var(--line, #ccc) 0 3px, transparent 3px 6px); flex: none; }
@media (max-width: 759px) { #tour-resume { left: 12px; bottom: 104px; } .tour-two { grid-template-columns: 1fr; } }

/* The closed checklist stays reachable as a bottom-left progress bubble. */
.setup-card.setup-bubble { border-radius: 999px; }
.setup-card.setup-bubble .setup-head { padding: 6px; cursor: default; }
.setup-card.setup-bubble .setup-grip, .setup-card.setup-bubble .setup-toggle > span:last-child { display: none; }
.setup-card.setup-bubble .setup-toggle { padding: 4px; min-width: 48px; min-height: 48px; }
.setup-card.setup-bubble .setup-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 50%; }
