/* The onboarding card's look (obcard.js), for the explainer cards
   (onboard-explain.js) and the dashboard tour (tour.js). The same tokens,
   sizes and parts as onboarding's own card (firstrun.css .onb): the frosted
   white card with the glow and clouds header, progress dashes, the small
   uppercase label, the big title, a round Back and the black Next pill under
   the card. Like onboarding, it stays light in dark mode (Conner,
   2026-11-09). No inline style attributes (the live CSP). */
.obx {
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --i: #0F1115; --s: #3B4049; --l: #5E6570; --m: #A3A9B3; --pill: #0F1115; --ptx: #fff; --line: rgba(15, 17, 21, 0.09);
  --ok: #12B76A; --blue: #1570EF;
  --sh: 0 0 0 1px rgba(15, 17, 21, 0.05), 0 2px 4px rgba(15, 17, 21, 0.03), 0 14px 34px rgba(20, 32, 56, 0.08);
  font-family: var(--sans); -webkit-font-smoothing: antialiased; color: var(--i); text-align: left;
}
.obx, .obx * { box-sizing: border-box; }
.obx p { margin: 0; }

/* The stage: the whole window. Over the dashboard it dims it like
   onboarding's own backdrop; inside onboarding (.obx-flow) it is
   onboarding's page, the soft glow, above onboarding itself. */
.obx-stage { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.obx-stage .obx-dim { position: fixed; inset: 0; background: rgba(15, 17, 21, 0.32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.obx-stage.obx-flow { z-index: 2147480100; }
.obx-stage.obx-flow .obx-dim { background: radial-gradient(120% 90% at 50% 0%, #f4f5f7 0%, #dfe2e7 60%, #cfd3da 100%); backdrop-filter: none; -webkit-backdrop-filter: none; }
.obx-stage.obx-flow .obx-dim::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(42% 40% at 88% 62%, rgba(255, 165, 110, 0.8), rgba(255, 199, 154, 0.42) 45%, transparent 75%),
    radial-gradient(46% 42% at 12% 8%, rgba(141, 184, 255, 0.88), rgba(185, 211, 255, 0.46) 45%, transparent 75%),
    radial-gradient(36% 30% at 50% 100%, rgba(130, 218, 175, 0.6), rgba(155, 227, 191, 0.3) 45%, transparent 75%); }
.obx-col { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: auto; display: flex; flex-direction: column; align-items: center; }

/* Progress dashes, onboarding's bar without its words. */
.obx-bar { display: flex; gap: 5px; width: 100%; max-width: 460px; margin: 0 0 14px; padding: 0; list-style: none; }
.obx-bar li { flex: 1; height: 4px; border-radius: 2px; background: rgba(15, 17, 21, 0.12); }
.obx-bar li.obx-past, .obx-bar li.obx-now { background: var(--i); }

/* The card. */
.obx-card { position: relative; width: 100%; padding: calc(84px + 14px) 26px 24px; border-radius: 22px; overflow: hidden;
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: var(--sh); }
.obx-art { position: absolute; left: 0; right: 0; top: 0; height: 84px; overflow: hidden; pointer-events: none;
  background: radial-gradient(42% 120% at 90% 8%, rgba(255, 165, 110, 0.8), rgba(255, 199, 154, 0.45) 45%, transparent 75%),
    radial-gradient(44% 130% at 14% 0%, rgba(141, 184, 255, 0.88), rgba(185, 211, 255, 0.48) 45%, transparent 75%),
    radial-gradient(34% 100% at 56% 92%, rgba(130, 218, 175, 0.6), rgba(155, 227, 191, 0.3) 45%, transparent 75%), #fff;
  -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.obx-art .obx-clouds { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.obx-art .obx-cl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); }
.obx-art .obx-cl svg { display: block; }
.obx .obx-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.8); color: var(--i); font: 400 20px/1 var(--sans); cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.obx .obx-kick { margin: 0 0 8px; font: 600 12px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--l); }
.obx .obx-h { margin: 0; font: 600 30px/1.08 var(--head); letter-spacing: -0.025em; color: var(--i); }
.obx .obx-h span { display: block; color: var(--m); }
.obx .obx-p { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--s); }

/* Under the card: the round Back and the Next pill, then Skip. */
.obx-foot { display: flex; align-items: center; justify-content: center; gap: 10px; width: 420px; max-width: 100%; margin-top: 14px; }
.obx .obx-back, .obx-foot .obx-back-ph { flex: none; width: 50px; height: 50px; }
.obx .obx-back { display: grid; place-items: center; padding: 0; border: 1.5px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, 0.8); color: var(--i); cursor: pointer; box-shadow: var(--sh); }
.obx .obx-back:hover { border-color: var(--i); }
.obx .obx-back .obx-arw { width: 18px; height: 18px; }
.obx .obx-go { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; margin: 0; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--pill); color: var(--ptx); font: 600 16px var(--sans); cursor: pointer; }
.obx .obx-go:hover { opacity: 0.92; }
.obx .obx-ai { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ptx); color: var(--pill); }
.obx .obx-go .obx-arw { width: 14px; height: 14px; }
.obx .obx-back .obx-ai { width: auto; height: auto; background: none; color: inherit; }
.obx .obx-skip { display: block; margin: 10px auto 0; padding: 4px 8px; border: 0; background: none; font: 500 13px var(--sans); color: var(--s); text-decoration: underline; cursor: pointer; }
.obx .obx-skip:hover { color: var(--i); }
.obx button:focus { outline: none; }
.obx button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(21, 112, 239, 0.35); }

/* The explainer's own parts: the For example box and the green line. */
.ox-card .ox-ex { margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ox-card .ox-ex.ox-mine { border-color: rgba(21, 112, 239, 0.35); }
.ox-card .ox-ex-l { margin: 0 0 8px; font: 600 12px/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--l); }
.ox-card .ox-mine .ox-ex-l { color: var(--blue); }
.ox-card .ox-list { margin: 0; padding: 0 0 0 18px; font: 400 14px/1.5 var(--sans); color: var(--i); }
.ox-card .ox-list li + li { margin-top: 4px; }
.ox-card .ox-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ox-card .ox-chips li { padding: 4px 10px; border-radius: 999px; background: rgba(15, 17, 21, 0.05); border: 1px solid var(--line); font: 500 13px/1.4 var(--sans); color: var(--i); }
.ox-card .ox-why { margin: 14px 0 0; font: 600 14px/1.4 var(--sans); color: var(--ok); }

/* The last card: the sentence to say, the refresh and the fine print. */
.ox-card .ox-say { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ox-card .ox-say b { flex: 1; min-width: 0; font: 600 17px/1.35 var(--head); color: var(--i); }
.ox-card .ox-ghost { flex: none; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: 600 13px var(--sans); color: var(--i); cursor: pointer; }
.ox-card .ox-ghost:hover { border-color: var(--i); }
.ox-card .ox-ghost:disabled { opacity: 0.6; cursor: default; }
.ox-card .ox-refresh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; font: 400 13px/1.4 var(--sans); color: var(--s); }
.ox-card .ox-refresh-on { color: var(--ok); font-weight: 600; }
.ox-card .ox-copy-note { margin: 8px 0 0; font: 400 13px/1.4 var(--sans); color: var(--s); }
.ox-card .ox-fine { margin: 14px 0 0; font: 400 12.5px/1.45 var(--sans); color: var(--l); }

/* A phone: onboarding's own phone sizes. */
@media (max-width: 520px) {
  .obx-stage { padding: 16px 12px; align-items: flex-start; }
  .obx-card { padding: calc(84px + 10px) 16px 18px; border-radius: 18px; }
  .obx .obx-h { font-size: 26px; }
  .ox-card .ox-say { flex-direction: column; align-items: stretch; }
  .ox-card .ox-say .ox-ghost { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .obx .obx-go:hover { opacity: 1; } }
