/* Premium onboarding (flag onboarding_premium), js/views/onboarding-premium.js.
   Static, final-state on first paint: nothing counts or fills. */

/* The check mark: accent on a soft disc. */
body.new-ui .op-ok {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ui-accent-soft); color: var(--ui-accent-ink); flex: none;
}
body.new-ui .op-ok svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
body.new-ui .op-ok.sm { width: 40px; height: 40px; }
body.new-ui .op-ok.sm svg { width: 20px; height: 20px; }

/* Step 9: you're in */
body.new-ui .op-welcome .op-ok { margin-bottom: 4px; }
body.new-ui .op-path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
body.new-ui .op-path li { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; color: var(--ui-ink); }
body.new-ui .op-path li:not(.last)::after {
  content: ""; position: absolute; left: 11px; top: 33px; height: calc(100% - 24px); width: 1px; background: var(--ui-line);
}
body.new-ui .op-path i, body.new-ui .op-path li.done svg {
  width: 23px; height: 23px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font: 500 12px/1 var(--ui-mono); font-style: normal; border: 1px solid var(--ui-line); color: var(--ui-ink-2); background: var(--ui-card);
}
body.new-ui .op-path li.done { color: var(--ui-ink-3); }
body.new-ui .op-path li.done svg { padding: 5px; background: var(--ui-ink); border-color: var(--ui-ink); stroke: var(--ui-paper); stroke-width: 2.4; fill: none; }
body.new-ui .op-path li.last { color: var(--ui-ink-3); }
body.new-ui .op-path li.last i { border-style: dashed; }

/* Rivals step: the first run on one line */
body.new-ui .op-run {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 0; padding: 12px 14px;
  border: 1px solid var(--ui-line); border-radius: 10px; background: var(--ui-paper-2); font-size: 14px; color: var(--ui-ink-2);
}
body.new-ui .op-run img { width: 18px; height: 18px; border-radius: 4px; }
body.new-ui .op-run span { flex: 1; min-width: 0; }
body.new-ui .op-run .ui-link { flex: none; }

/* Dashboard: the first report is ready */
body.new-ui .op-ready {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .95fr); gap: 28px; align-items: center;
  margin: 0 0 20px; padding: 28px 30px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, var(--ui-accent-band), transparent 60%), var(--ui-card);
  border: 1px solid var(--ui-line); box-shadow: var(--ui-shadow);
}
body.new-ui .op-ready-vis { min-width: 0; }
body.new-ui .op-ready-vis .op-stage-glow { padding: 6px 0; }
body.new-ui .op-ready-vis .op-phone { max-width: 290px; }
body.new-ui .op-ready-main { display: flex; gap: 16px; align-items: flex-start; }
body.new-ui .op-ready h2 { margin: 6px 0 6px; font-size: 22px; line-height: 1.2; letter-spacing: -.03em; font-weight: 600; }
body.new-ui .op-ready p { margin: 0; color: var(--ui-ink-2); max-width: 46ch; }
body.new-ui .op-ready-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
body.new-ui .op-ready-next { display: flex; flex-direction: column; gap: 8px; padding-left: 28px; border-left: 1px solid var(--ui-line); }
body.new-ui .op-k { font-size: 13px; color: var(--ui-ink-3) !important; margin: 0 0 2px !important; }
body.new-ui .op-next {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--ui-line); background: var(--ui-card);
  color: var(--ui-ink); font: inherit; cursor: pointer; box-shadow: none; margin: 0;
}
body.new-ui .op-next:hover { background: var(--ui-hover); }
body.new-ui .op-next b { font-weight: 500; font-size: 14.5px; }
body.new-ui .op-next b::after { content: " →"; color: var(--ui-ink-3); }
body.new-ui .op-next span { font-size: 13px; color: var(--ui-ink-3); }
body.new-ui .op-x {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; padding: 0; border-radius: 8px;
  border: 0; background: transparent; color: var(--ui-ink-3); display: grid; place-items: center; box-shadow: none; margin: 0;
}
body.new-ui .op-x:hover { background: var(--ui-hover); color: var(--ui-ink); }
body.new-ui .op-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; }

/* The client's link in a phone frame, on a soft cobalt glow. Final state. */
body.new-ui .op-stage { position: relative; overflow: hidden; background: var(--ui-bg); }
body.new-ui .op-stage-glow { position: relative; width: 100%; display: flex; justify-content: center; padding: 40px 24px; }
body.new-ui .op-stage-glow::before {
  content: ""; position: absolute; inset: 8% 6%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(31, 79, 255, .18), rgba(122, 92, 255, .08) 55%, transparent 80%); filter: blur(18px);
}
body.new-ui .op-phone {
  position: relative; z-index: 1; width: 100%; max-width: 300px; padding: 10px; border-radius: 42px; background: var(--ui-ink);
  box-shadow: 0 1px 2px rgba(14, 15, 17, .08), 0 30px 70px -24px rgba(31, 79, 255, .45);
}
body.new-ui .op-phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; margin-left: -38px;
  border-radius: 99px; background: var(--ui-ink); z-index: 2; }
body.new-ui .op-ph-screen { border-radius: 32px; background: var(--ui-card); padding: 48px 18px 22px; min-height: 420px; overflow: hidden; }
body.new-ui .op-ph-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--ui-line); }
body.new-ui .op-ph-by { display: flex; align-items: center; gap: 8px; min-width: 0; }
body.new-ui .op-ph-by img { width: 26px; height: 26px; object-fit: contain; flex: none; }
body.new-ui .op-ph-by small { display: block; font-size: 11px; color: var(--ui-ink-3); line-height: 1.2; }
body.new-ui .op-ph-by b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.new-ui .op-ph-dt { margin-left: auto; font-size: 11.5px; color: var(--ui-ink-3); white-space: nowrap; }
body.new-ui .op-ph-brand { margin: 16px 0 14px; font-size: 24px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; color: var(--ui-ink); }
body.new-ui .op-ph-k { margin: 0 0 8px !important; font-size: 12px; color: var(--ui-ink-3) !important; }
body.new-ui .op-ph-rows { display: flex; flex-direction: column; gap: 9px; }
body.new-ui .op-ph-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ui-ink-2); }
body.new-ui .op-ph-row b { font-weight: 500; overflow-wrap: break-word; line-height: 1.25; }  /* a client report never shows a cut name */
body.new-ui .op-ph-row.you b { color: var(--ui-ink); font-weight: 600; }
body.new-ui .op-ph-row em { font-style: normal; font: 500 12px var(--ui-mono); text-align: right; color: var(--ui-ink-2); }
body.new-ui .op-ph-sq { display: flex; gap: 2px; flex-wrap: wrap; }
body.new-ui .op-ph-sq i { width: 8px; height: 8px; border-radius: 2px; background: var(--ui-line); }
body.new-ui .op-ph-sq i.on { background: var(--ui-rival); }
body.new-ui .op-ph-sq.you i.on { background: var(--ui-accent); }
body.new-ui .op-ph-sq.empty i { width: 16px; height: 16px; border-radius: 4px; }
body.new-ui .op-ph-wait { margin: 12px 0 0 !important; font-size: 13px; color: var(--ui-ink-3) !important; }
body.new-ui .op-ph-parts { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--ui-line); }
body.new-ui .op-ph-parts li { padding: 12px 0; border-bottom: 1px solid var(--ui-line); font-size: 13px; color: var(--ui-ink-2); }
body.new-ui .op-ph-q { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--ui-paper-2); font-size: 13px; line-height: 1.5; color: var(--ui-ink); }
body.new-ui .op-ph-q cite { display: block; margin-top: 6px; font-style: normal; font-size: 11.5px; color: var(--ui-ink-3); }

/* One primary per screen, in ink; the receipt in body size. */
body.new-ui .ui-btn.op-ink { background: var(--ui-ink); border-color: var(--ui-ink); color: var(--ui-paper); }
/* Hover keeps the ink (the app's brightness/opacity hover reads as grey). */
body.new-ui .ui-btn.op-ink:hover:not(:disabled) { filter: none; opacity: 1; box-shadow: 0 0 0 3px rgba(31, 79, 255, .18); }
/* While the ready card is open it owns the primary; the header's send/share steps back. */
body.new-ui.op-ready-on .dui-acts .ui-btn:not(.ghost) { background: var(--ui-card); color: var(--ui-ink); border-color: var(--ui-line); }
body.new-ui.op-ready-on .dui-acts .ui-btn:not(.ghost):hover:not(:disabled) { filter: none; border-color: var(--ui-ink-3); }
/* Leader counts: one pair per line, so no "·" is left hanging. */
body.new-ui .op-pair { display: block; }
body.new-ui .op-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.new-ui .op-receipt { margin: 0 !important; font-size: 15px; color: var(--ui-ink-2) !important; }

/* The jobs tray stays out of the "ready" moment. */
body.op-ready-on #jobTray { display: none !important; }

/* The agent's terminal, as on /agents */
body.new-ui .op-term {
  position: relative; z-index: 1; width: 100%; max-width: 540px; border-radius: 16px; overflow: hidden; padding: 0 0 18px;
  background: #0e1014; color: #e8e9ec; border: 1px solid #23262d; font: 13.5px/1.6 var(--ui-mono);
  box-shadow: 0 30px 70px -20px rgba(31, 79, 255, .55);
}
body.new-ui .op-term-bar { display: flex; align-items: center; gap: 6px; padding: 11px 16px; border-bottom: 1px solid #23262d; color: #8a8e95; font-size: 12px; }
body.new-ui .op-term-bar span { width: 9px; height: 9px; border-radius: 50%; background: #2c3038; }
body.new-ui .op-term-bar em { font-style: normal; margin-left: 10px; }
body.new-ui .op-term-bar b { margin-left: auto; font-weight: 400; border: 1px solid #2c3038; border-radius: 99px; padding: 1px 9px; }
body.new-ui .op-term p { margin: 14px 18px 0; }
body.new-ui .op-term .q span { color: #7088ff; }
body.new-ui .op-term .call { color: #e8e9ec; }
body.new-ui .op-term .call span { color: #8a8e95; }
body.new-ui .op-term i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7088ff; margin-right: 8px; vertical-align: 1px; }
body.new-ui .op-term pre { margin: 10px 18px 0; padding: 12px 14px; border-radius: 10px; border: 1px solid #23262d; background: #13161b;
  color: #a6aab0; font: 12.5px/1.6 var(--ui-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
body.new-ui .op-term .a { font-family: var(--ui-font); font-size: 14.5px; }
body.new-ui .op-term u { display: inline-block; width: 9px; height: 16px; background: #7088ff; vertical-align: -3px; text-decoration: none; }

/* Step 0 with three cards; the agent card lit when they came from /agents */
body.new-ui .ou-opts.op-three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; }
body.new-ui .ou-opt.op-pre { border-color: var(--ui-accent); box-shadow: 0 0 0 3px var(--ui-accent-soft); }
/* Step 0 with three cards: text only, no boxed icons. */
body.new-ui .ou-opts.op-three .ou-opt-ic { display: none; }
body.new-ui .op-choose { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

@media (max-width: 960px) {
  body.new-ui .ou-opts.op-three { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  body.new-ui .op-ready { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body.new-ui .op-ready-vis { display: none; }
}

@media (max-width: 760px) {
  body.new-ui .op-stage-glow { padding: 28px 8px; }
  body.new-ui .op-term { font-size: 12px; }
  body.new-ui .op-phone { max-width: 280px; }
  body.new-ui .op-ready { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px; }
  body.new-ui .op-ready-vis { display: block; margin: 0 -8px; }
  body.new-ui .op-ready-next { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--ui-line); }
  body.new-ui .op-ready-main { flex-direction: column; gap: 10px; }
  body.new-ui .op-ready-acts .ui-btn { flex: 1; }
}

/* "Measure it every week", once on (onboarding-premium.js opMonDone): a status, not a button. */
body.new-ui .op-next.op-next-done { flex-direction: row; align-items: flex-start; gap: 10px; cursor: default; background: var(--ui-card); }
body.new-ui .op-next.op-next-done:hover { background: var(--ui-card); }
body.new-ui .op-next-done > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; stroke: var(--dui-mon-good, var(--ui-good)); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
body.new-ui .op-next-done > span { display: flex; flex-direction: column; gap: 2px; }
body.new-ui .op-next-done > span > span { color: var(--ui-ink-2); }
body.new-ui .op-next-done b { color: var(--ui-ink); }
body.new-ui .op-next-done b::after { content: none; }
body.new-ui .op-next-done .ui-link { align-self: flex-start; margin-top: 4px; font-size: 13px; }
