/* Tanıtım (web/app/intro.js): a large dialog, an illustrated stage on the left and the step's text on the right.
   Every class starts with it-; every colour is a theme.css token, so the mock screens follow the light and dark theme. */

.it-root { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; }
.it-backdrop { position: absolute; inset: 0; background: var(--scrim-strong); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: it-fade 260ms ease-out both; }
.it-dialog { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); width: 100%; max-width: 1080px;
  height: min(640px, calc(100dvh - 48px)); overflow: hidden; background: var(--card); color: var(--text); border-radius: 22px;
  box-shadow: var(--dialog-shadow); animation: it-rise 420ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.it-close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 36px; height: 36px; display: inline-flex; align-items: center;
  justify-content: center; border: 0; border-radius: 10px; background: var(--p-f4f4f4); color: var(--text-2); cursor: pointer; }
.it-close:hover { color: var(--ink); }

/* ---------- stage ---------- */
.it-stage { position: relative; min-height: 0; overflow: hidden; color: var(--stage-ink); background-color: var(--stage);
  background-image: radial-gradient(circle at 16% 12%, var(--stage-glow), transparent 46%),
    radial-gradient(circle at 88% 94%, var(--stage-glow-2), transparent 52%),
    linear-gradient(90deg, var(--stage-grid) 1px, transparent 1px), linear-gradient(0deg, var(--stage-grid) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px; }
.it-brand { position: absolute; top: 20px; left: 22px; z-index: 2; display: flex; align-items: center; gap: 9px; font-size: 13px;
  font-weight: 700; color: var(--stage-ink); }
.it-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.it-brand small { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stage-muted); }
.it-logo { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--lime-ink); font-size: 14px; font-weight: 800; }
.it-fit { position: absolute; inset: 58px 20px 20px; display: flex; align-items: center; justify-content: center; }
.it-canvas-box { position: relative; flex: none; }
.it-canvas { position: absolute; left: 0; top: 0; width: 440px; height: 360px; transform-origin: 0 0; font-size: 12px; line-height: 1.35; }
.it-art { position: relative; width: 100%; height: 100%; }
.it-a { position: absolute; inset: 0; }

/* ---------- text panel ---------- */
.it-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.it-copy { flex: 1; min-height: 0; overflow-y: auto; padding: 44px 44px 12px; }
.it-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px; background: var(--lime-soft);
  color: var(--green-ink); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.it-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.it-title { margin: 16px 0 12px; font-size: 30px; font-weight: 750; letter-spacing: -0.022em; line-height: 1.12; color: var(--ink);
  text-wrap: balance; }
.it-body { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); max-width: 62ch; }
.it-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.it-points li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; line-height: 1.5; color: var(--text); }
.it-points b, .it-steps b { color: var(--ink); font-weight: 650; }
.it-pt { flex: none; width: 26px; height: 26px; margin-top: -2px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--lime-soft); color: var(--green-ink); }
.it-steps { counter-reset: it-step; list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.it-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.it-steps li::before { counter-increment: it-step; content: counter(it-step); flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: var(--lime); color: var(--lime-ink); font-size: 12.5px; font-weight: 800; }
.it-note { margin: 20px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--p-f4f4f4); font-size: 13px; line-height: 1.5; color: var(--text-2); }
.it-note kbd, .it-keys kbd { display: inline-block; min-width: 20px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; background: var(--card); color: var(--text); font: 600 11px/1.4 var(--font); text-align: center; }
.it-links { display: grid; gap: 8px; margin-top: 18px; }
.it-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--ink); text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.it-link:hover, .it-link:focus-visible { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-ring); outline: none; }
.it-link > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.it-link b { font-size: 14px; font-weight: 650; }
.it-link small { font-size: 12.5px; color: var(--muted); }
.it-link em { font-style: normal; color: var(--green-ink); transition: transform 0.15s ease; }
.it-link:hover em { transform: translateX(3px); }
.it-link-ico { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
  background: var(--lime-soft); color: var(--green-ink); }

/* ---------- footer ---------- */
.it-foot { display: flex; flex-direction: column; gap: 14px; padding: 16px 44px 22px; border-top: 1px solid var(--line); }
.it-progress { display: flex; align-items: center; gap: 12px; }
.it-dots { display: flex; gap: 6px; }
.it-dotbtn { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--p-e0e0e0); cursor: pointer;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease; }
.it-dotbtn.done { background: var(--green); opacity: 0.45; }
.it-dotbtn[aria-current="step"] { width: 26px; background: var(--green); }
.it-count { font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.it-toggle { margin-left: auto; position: relative; display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2);
  cursor: pointer; user-select: none; white-space: nowrap; }
.it-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.it-switch-ui { position: relative; width: 34px; height: 20px; flex: none; border-radius: 999px; background: var(--p-d6d6d6); transition: background-color 0.2s ease; }
.it-switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--on-fill);
  box-shadow: var(--knob-shadow); transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.it-toggle input:checked + .it-switch-ui { background: var(--green); }
.it-toggle input:checked + .it-switch-ui::after { transform: translateX(14px); }
.it-toggle input:focus-visible + .it-switch-ui { outline: 2px solid var(--green); outline-offset: 2px; }
.it-actions { display: flex; align-items: center; gap: 8px; }
.it-actions .btn { height: 40px; }
.it-actions .btn.primary { min-width: 112px; }
.it-skip { margin-left: -10px; color: var(--muted); }
.it-keys { font-size: 12px; color: var(--muted); }

/* ---------- step change ---------- */
.it-enter { animation: it-in-x 460ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.it-enter.back { animation-name: it-in-x-back; }
.it-copy.it-enter { animation: none; }
.it-copy.it-enter > * { animation: it-in-x 520ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.it-copy.it-enter.back > * { animation-name: it-in-x-back; }
.it-copy.it-enter > :nth-child(2) { animation-delay: 40ms; }
.it-copy.it-enter > :nth-child(3) { animation-delay: 80ms; }
.it-copy.it-enter > :nth-child(n + 4) { animation-delay: 120ms; }

/* ======================================================================
   Scenes (440 × 360, scaled to the stage). The mock screens use the app's own tokens.
   ====================================================================== */
.it-card { position: absolute; background: var(--card); color: var(--ink); border-radius: 14px; box-shadow: var(--stage-card-shadow); }
.it-card b { font-weight: 650; color: var(--ink); }
.it-card small { color: var(--muted); }
.it-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.it-row > span:not([class]) { display: flex; flex-direction: column; min-width: 0; }
.it-h { font-size: 13px; font-weight: 700; color: var(--ink); }
.it-label { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.it-sub { display: block; font-size: 10.5px; color: var(--muted); }
.it-name { display: block; margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.it-big { margin-top: 8px; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.it-big.amber { color: var(--st-dial); }
.it-big.violet { color: var(--st-wrap); }
.it-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; }
.it-dot.dark { background: var(--lime-ink); }
.it-pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 600;
  white-space: nowrap; }
.it-pill.solid { color: var(--on-fill); }
.it-tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 10px; color: var(--text); white-space: nowrap; }
.it-tag svg.i { width: 11px; height: 11px; color: var(--blue); }
.it-av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--p-f1f3ee); color: var(--text); font-size: 10.5px; font-weight: 700; }
.it-av.blue { background: var(--blue-bg); color: var(--blue); }
.it-av.lime { background: var(--f-caf264); color: var(--avatar-ink); }
.it-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; margin-top: 10px; border-radius: 10px;
  background: var(--p-f4f4f4); color: var(--ink); font-size: 12px; font-weight: 650; border: 1px solid var(--line); }
.it-btn.sm { display: inline-flex; height: 26px; margin-top: 0; padding: 0 10px; font-size: 11px; }
.it-btn.lime { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.it-btn.red { background: var(--red); border-color: var(--red); color: var(--on-fill); }
.it-btn svg.i { width: 14px; height: 14px; }
.it-ctrls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.it-ctrls span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 9.5px; color: var(--faint); }
.it-ctrls.on span { color: var(--text); }
.it-ctrls svg.i { width: 13px; height: 13px; }
.it-cfoot { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.it-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--st-ready-bg);
  color: var(--st-ready-ink); font-size: 10px; font-weight: 600; }
.it-chip svg.i { width: 12px; height: 12px; }
.it-ico, .it-tico { flex: none; width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime-soft); color: var(--green-ink); }
.it-tico.red { background: var(--red-bg); color: var(--red-ink); }
.it-tico.violet { background: var(--violet-bg); color: var(--violet-ink); }
.it-ico svg.i, .it-tico svg.i { width: 14px; height: 14px; }

/* flow lines and the runner dot */
.it-lines { position: absolute; inset: 0; width: 440px; height: 360px; overflow: visible; pointer-events: none; }
.it-flow { fill: none; stroke: var(--stage-flow); stroke-width: 1.6; stroke-dasharray: 4 8; stroke-linecap: round; animation: it-flow 1.6s linear infinite; }
.it-flow.lime { stroke: var(--lime); opacity: 0.6; }
.it-runner { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 12px var(--lime); offset-rotate: 0deg; animation: it-run 5.5s cubic-bezier(0.45, 0, 0.55, 1) 0.8s infinite both; }

/* scene: welcome */
.it-src, .it-agent { display: flex; align-items: center; gap: 9px; padding: 0 10px; }
.it-src > span:last-child, .it-agent > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.it-src b, .it-agent b { font-size: 12px; }
.it-src small { font-size: 10px; }
.it-agent .it-pill { align-self: flex-start; }
.it-hub { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--stage-ink); text-align: center; }
.it-hub-core { position: relative; z-index: 1; width: 70px; height: 70px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--lime-ink); font-size: 30px; font-weight: 800; box-shadow: 0 0 0 7px var(--stage-chip), 0 18px 40px var(--shade-25); }
.it-hub-ring { position: absolute; top: 0; left: 7px; width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--lime);
  animation: it-ring 2.6s ease-out infinite; }
.it-hub b { margin-top: 6px; font-size: 13px; color: var(--stage-ink); }
.it-hub small { font-size: 10px; color: var(--stage-muted); }
.it-shake { animation: it-shake 1.8s ease-in-out 0.9s infinite; }

/* swaps: one state, then the next (the call box, a status, a timer) */
.it-swap { display: inline-grid; align-items: center; }
.it-swap > * { grid-area: 1 / 1; }
.it-swap.tl { justify-items: start; }
.it-swap.it-wide { display: grid; }
.it-swap.inl > * { white-space: nowrap; }
.it-out { animation: it-out 280ms ease both; }
.it-in { animation: it-in 380ms ease both; }
.it-in.red { color: var(--st-missed); font-weight: 700; }
.it-in.green { color: var(--green-ink); font-weight: 700; }
.it-layer { position: absolute; inset: 0; padding: 14px; }

/* scene: ready */
.it-bar { display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; }
.it-bar > b { font-size: 14px; }
.it-status { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--st-nready-bg);
  color: var(--st-nready-ink); font-size: 11px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.it-status.lime { background: var(--lime); color: var(--lime-ink); }
.it-box { padding: 14px; overflow: hidden; }
.it-perm { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 10px; border-radius: 10px; background: var(--p-f4f4f4); }
.it-perm > svg.i { width: 15px; height: 15px; color: var(--green-ink); }
.it-perm > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.it-perm b { font-size: 11px; }
.it-perm small { font-size: 9.5px; }
.it-check { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--green);
  color: var(--on-fill); }
.it-check svg.i { width: 12px; height: 12px; stroke-width: 3; }
.it-menu { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.it-mtitle { padding: 6px 8px 3px; font-size: 9px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.it-mrow { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 8px; border-radius: 9px; }
.it-mrow > span:nth-of-type(1) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.it-mrow b { font-size: 11.5px; }
.it-mrow small { font-size: 9.5px; }
.it-mrow em { font-style: normal; font-size: 9.5px; color: var(--text-2); white-space: nowrap; }
.it-mrow > svg.i { width: 14px; height: 14px; color: var(--green-ink); }
.it-mrow.on { background: var(--lime-soft); }
.it-mrow.pick { animation: it-pick 400ms ease both; }
.it-confirm { margin: 6px 4px 0; padding: 9px 10px; display: flex; flex-direction: column; gap: 7px; border-radius: 10px; background: var(--st-break-bg); }
.it-confirm small { font-size: 9.5px; color: var(--st-break-ink); font-weight: 600; }

/* scene: call */
.it-cust { padding: 12px; }
.it-cust .it-row > span:last-child { display: flex; flex-direction: column; }
.it-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0 0; }
.it-facts > div { padding: 7px 8px; border: 1px solid var(--line); border-radius: 9px; }
.it-facts dt { font-size: 9px; color: var(--muted); }
.it-facts dd { margin: 2px 0 0; font-size: 11px; font-weight: 650; color: var(--ink); }
.it-xfer { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.it-glow { animation: it-glow 1.8s ease-out infinite; }
.it-press { animation: it-press 420ms ease both; }
.it-press.it-out { animation: it-press 420ms ease both, it-out 280ms ease both; }   /* pressed, then gone */

/* scene: wrap-up */
.it-form { padding: 14px; display: flex; flex-direction: column; gap: 7px; }
.it-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.it-chip-o { height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; color: var(--text); }
.it-chip-o.pick { animation: it-pick-chip 380ms ease both; }
.it-radio { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 9px; border: 1px solid var(--line-soft); border-radius: 8px; font-size: 10.5px; color: var(--ink); }
.it-radio i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--p-c8c8c8); }
.it-radio.pick { animation: it-pick-radio 380ms ease both; }
.it-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; border-radius: 10px; background: var(--lime-soft); }
.it-plan > span { display: flex; flex-direction: column; padding: 4px 7px; border-radius: 7px; background: var(--card); }
.it-plan small { font-size: 9px; }
.it-plan b { font-size: 11px; }
.it-plan label { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--green-ink); font-weight: 600; }
.it-tick { width: 14px; height: 14px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: var(--on-fill); }
.it-tick svg.i { width: 10px; height: 10px; stroke-width: 3; }
.it-form .it-btn { margin-top: auto; }
.it-toast { position: absolute; padding: 9px 12px; border-radius: 10px; background: var(--inverse-strong); color: var(--on-inverse); font-size: 10.5px;
  text-align: center; box-shadow: var(--stage-card-shadow); }
.it-toast.inline { position: absolute; left: 12px; right: 12px; bottom: 12px; }

/* scene: tasks */
.it-list { padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.it-list > .it-row { padding: 0 4px 6px; }
.it-count { height: 18px; min-width: 18px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--p-f1f3ee); font-size: 10px; font-weight: 700; color: var(--text); }
.it-task { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 10px; }
.it-task > span.grow { display: flex; flex-direction: column; min-width: 0; }
.it-task b { font-size: 11.5px; }
.it-task small { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-task em { flex: none; font-style: normal; font-size: 10px; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.it-task em.red { color: var(--red-ink); }
.it-task em.violet { color: var(--violet-ink); }
.it-task.pick { animation: it-pop 520ms cubic-bezier(0.16, 1, 0.3, 1) both, it-sel 400ms ease both; }
.it-prev { padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.it-prev .it-name { margin-top: 4px; }
.it-why { margin-top: 4px; padding: 9px 10px; border-radius: 10px; background: var(--p-fff8ea); border: 1px solid var(--p-f1ddae); display: flex; flex-direction: column; gap: 3px; }
.it-why span { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink); }
.it-why b { font-size: 11px; line-height: 1.4; }
.it-why small { font-size: 9.5px; }
.it-hist { display: flex; align-items: flex-start; gap: 7px; padding: 2px 2px 4px; }
.it-hist .it-dot { margin-top: 4px; }
.it-hist > span { display: flex; flex-direction: column; }
.it-hist b { font-size: 10.5px; }
.it-hist small { font-size: 9.5px; }
.it-prev .it-ctrls { margin-top: auto; }
.it-prev .it-btn { margin-top: 8px; }

/* scene: colours */
.it-grid2 { position: absolute; left: 0; top: 0; width: 440px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.it-stat { position: relative; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 12px; }
.it-stat > span { display: flex; flex-direction: column; }
.it-stat b { font-size: 12px; }
.it-stat small { font-size: 10px; }
.it-swatch { flex: none; width: 22px; height: 22px; border-radius: 7px; }
.it-times { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.it-times small { font-size: 10px; }
.it-stack { flex: none; display: flex; height: 12px; gap: 2px; overflow: hidden; border-radius: 999px; background: var(--p-f1f3ee); }
.it-stack.thin { height: 8px; margin: 8px 0 10px; }
.it-stack i { display: block; height: 100%; }
.it-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 10px; color: var(--text-2); }
.it-legend span { display: inline-flex; align-items: center; gap: 5px; }

/* scene: start */
.it-step { display: flex; align-items: center; gap: 14px; padding: 0 16px 0 58px; }
.it-step > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.it-step b { font-size: 14px; }
.it-step small { font-size: 11px; }
.it-step-ico { flex: none; width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime-soft); color: var(--green-ink); }
.it-step-ico svg.i { width: 21px; height: 21px; }
.it-num { position: absolute; left: 14px; top: 50%; margin-top: -14px; width: 28px; height: 28px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--lime); color: var(--lime-ink); font-size: 12.5px; font-weight: 800;
  box-shadow: 0 0 0 4px var(--stage-chip); }
.it-ready-note { position: absolute; left: 14px; right: 14px; bottom: 12px; padding: 8px 10px; border-radius: 9px; background: var(--inverse-strong);
  color: var(--on-inverse); font-size: 10px; line-height: 1.35; }

/* scene: live, callbacks, reports */
.it-kpis { position: absolute; left: 0; top: 0; width: 440px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.it-kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.it-kpi { position: relative; height: 70px; padding: 9px 10px; display: flex; flex-direction: column; }
.it-kpi small { font-size: 9.5px; line-height: 1.2; height: 2.3em; }
.it-kpi b { font-size: 20px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.it-kpi em { font-style: normal; font-size: 9px; color: var(--muted); margin-top: 3px; }
.it-kpi.warn small, .it-kpi.warn b { color: var(--amber-ink); }
.it-kpi.warn { box-shadow: var(--stage-card-shadow), inset 0 0 0 1.5px var(--p-f1d9a4); }
.it-agents { padding: 12px; }
.it-agents > .it-row { justify-content: space-between; }
.it-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.it-acard { display: flex; flex-direction: column; gap: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.it-acard b { font-size: 11px; }
.it-acard .it-row { justify-content: space-between; }
.it-acard .it-pill { align-self: flex-start; }
.it-acard em { font-style: normal; font-size: 10px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.it-acard.over { animation: it-pop 520ms cubic-bezier(0.16, 1, 0.3, 1) both, it-over 500ms ease both; }
.it-alert { display: flex; align-items: center; gap: 10px; padding: 0 14px; box-shadow: var(--stage-card-shadow), inset 0 0 0 1.5px var(--p-f2c9c9); }
.it-alert > span.grow { display: flex; flex-direction: column; gap: 2px; }
.it-alert b { font-size: 12px; color: var(--red-ink); }
.it-alert small { font-size: 10px; }
.it-alert-ico { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--red-bg); color: var(--red-ink); }
.it-table { padding: 10px 12px; display: flex; flex-direction: column; }
.it-th, .it-tr { display: grid; grid-template-columns: 64px minmax(0, 1fr) 50px 76px; gap: 8px; align-items: center; }
.it-th { padding: 0 4px 6px; font-size: 9px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.it-tr { padding: 8px 4px; border-bottom: 1px solid var(--line-soft); font-size: 10.5px; color: var(--text); }
.it-tr > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.it-tr b { font-size: 11px; }
.it-tr small { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-tr.pick { animation: it-pop 520ms cubic-bezier(0.16, 1, 0.3, 1) both, it-sel 400ms ease both; border-radius: 8px; }
.it-chart { padding: 12px 14px; display: flex; flex-direction: column; }
.it-bars { flex: 1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; align-items: end; margin-top: 10px; }
.it-bars span { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.it-bars i { display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: var(--st-talk); }
.it-bars span:nth-child(8) i { background: var(--lime); }
.it-bars small { font-size: 9px; }

/* scene: campaigns */
.it-stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-items: center; padding: 0 14px; }
.it-sstep { display: flex; align-items: center; gap: 7px; min-width: 0; }
.it-sstep b { font-size: 10.5px; line-height: 1.2; }
.it-sno { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal;
  font-size: 10px; font-weight: 700; background: var(--p-f1f3ee); color: var(--text); }
.it-done { animation: it-done 400ms ease both; }
.it-camp { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.it-prog { height: 8px; border-radius: 999px; background: var(--p-f1f3ee); overflow: hidden; }
.it-prog i { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.it-mini { justify-content: space-between; }
.it-mini > span { display: flex; flex-direction: column; }
.it-mini b { font-size: 14px; }
.it-mini small { font-size: 9.5px; }
.it-outcomes, .it-team { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.it-orow { display: grid; grid-template-columns: 72px 1fr; gap: 8px; align-items: center; font-size: 10px; color: var(--text); }
.it-otrack { height: 7px; border-radius: 999px; background: var(--p-f1f3ee); overflow: hidden; }
.it-otrack i { display: block; height: 100%; border-radius: inherit; }
.it-trow { display: flex; align-items: center; gap: 8px; }
.it-trow > span:last-child { display: flex; flex-direction: column; }
.it-trow b { font-size: 11px; }
.it-trow small { font-size: 9.5px; }

/* scene: automations */
.it-rule { padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.it-rule .it-row > span:last-child { display: flex; flex-direction: column; }
.it-rule b { font-size: 12px; }
.it-rule small { font-size: 10px; }
.it-ruleside { padding: 12px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.it-sw { width: 100%; justify-content: space-between; font-size: 11px; color: var(--text); }
.it-switch { position: relative; width: 32px; height: 18px; border-radius: 999px; background: var(--p-d6d6d6); animation: it-switch-on 300ms ease both; }
.it-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--on-fill);
  box-shadow: var(--knob-shadow); animation: inherit; animation-name: it-knob; }
.it-result { display: flex; align-items: flex-start; gap: 7px; padding: 8px 9px; border-radius: 9px; background: var(--st-ready-bg); color: var(--st-ready-ink); }
.it-result > span { display: flex; flex-direction: column; }
.it-result b { font-size: 11px; color: var(--st-ready-ink); }
.it-result small { font-size: 9.5px; color: var(--st-ready-ink); }
.it-result svg.i { width: 14px; height: 14px; margin-top: 1px; }
.it-vq { padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.it-vq b { font-size: 12px; }
.it-arrow-row { position: relative; height: 18px; }
.it-arrow-row i { position: absolute; left: 4px; top: 8px; width: 60px; height: 2px; background: var(--lime); animation: it-grow-x 700ms ease 1.6s both;
  transform-origin: left center; }

/* scene: yours */
.it-me { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.it-me .it-av { width: 44px; height: 44px; font-size: 15px; }
.it-me > span.grow { display: flex; flex-direction: column; }
.it-me b { font-size: 15px; }
.it-role { padding: 3px 10px; border-radius: 999px; background: var(--lime-soft); color: var(--green-ink); font-size: 10.5px; font-weight: 700; }
.it-tiles { position: absolute; left: 20px; top: 88px; width: 400px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.it-tile { position: relative; min-height: 124px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.it-tile b { font-size: 13px; }
.it-tile small { font-size: 10.5px; line-height: 1.4; }
.it-tile.hi { box-shadow: 0 0 0 2px var(--lime), var(--stage-card-shadow); }

/* ---------- motion ---------- */
.it-pop { animation: it-pop 520ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.it-grow-x { transform-origin: left center; animation: it-grow-x 900ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.it-grow-y { transform-origin: bottom center; animation: it-grow-y 800ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes it-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes it-rise { from { opacity: 0; transform: translateY(16px) scale(0.975); } to { opacity: 1; transform: none; } }
@keyframes it-in-x { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes it-in-x-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes it-pop { from { opacity: 0; transform: translateY(8px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes it-out { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes it-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes it-flow { to { stroke-dashoffset: -24; } }
@keyframes it-run { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes it-ring { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes it-shake { 0%, 60%, 100% { transform: rotate(0); } 64%, 72%, 80% { transform: rotate(-12deg); } 68%, 76% { transform: rotate(12deg); } }
@keyframes it-glow { 0% { box-shadow: 0 0 0 0 var(--lime); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes it-press { 0% { transform: scale(1); } 40% { transform: scale(0.94); filter: brightness(0.92); } 100% { transform: scale(1); } }
@keyframes it-pick { from { background: transparent; } to { background: var(--st-break-bg); } }
@keyframes it-sel { from { background: transparent; } to { background: var(--lime-soft); } }
@keyframes it-pick-chip { to { background: var(--lime-soft); border-color: var(--lime); color: var(--green-ink); font-weight: 600; } }
@keyframes it-pick-radio { to { border-color: var(--lime); background: var(--lime-soft); box-shadow: inset 0 0 0 1px var(--lime); } }
@keyframes it-over { to { border-color: var(--st-missed); background: var(--st-missed-bg); } }
@keyframes it-done { to { background: var(--green); color: var(--on-fill); } }
@keyframes it-grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes it-grow-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes it-switch-on { to { background: var(--green); } }
@keyframes it-knob { to { transform: translateX(14px); } }
/* the radio of the chosen result fills in */
.it-radio.pick i { animation: it-radio-dot 300ms ease both; animation-delay: inherit; }
@keyframes it-radio-dot { to { border-color: var(--green); background: radial-gradient(circle, var(--green) 45%, transparent 50%); } }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .it-copy { padding: 32px 28px 10px; }
  .it-foot { padding: 14px 28px 18px; }
  .it-title { font-size: 26px; }
}
@media (max-width: 720px) {
  .it-root { padding: 0; }
  .it-dialog { grid-template-columns: minmax(0, 1fr); grid-template-rows: clamp(230px, 40dvh, 340px) minmax(0, 1fr); height: 100dvh;
    max-width: none; border-radius: 0; }
  .it-brand { top: 14px; left: 16px; }
  .it-fit { inset: 50px 8px 10px; }
  .it-copy { padding: 20px 20px 8px; }
  .it-title { font-size: 23px; margin: 12px 0 8px; }
  .it-body { font-size: 14.5px; }
  .it-points { gap: 8px; margin-top: 16px; }
  .it-points li { font-size: 13.5px; }
  .it-foot { gap: 12px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .it-keys { display: none; }
  .it-close { top: 10px; right: 12px; background: var(--stage-chip); color: var(--stage-ink); }
  .it-close:hover { color: var(--stage-ink); }
}
@media (max-width: 400px) {
  .it-toggle { font-size: 12px; }
  .it-actions .btn { padding: 0 12px; }
  .it-actions .btn.primary { min-width: 0; }
}
@media (max-height: 560px) and (min-width: 721px) {
  .it-copy { padding-top: 28px; }
  .it-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .it-root *, .it-root *::before, .it-root *::after { animation-delay: 0s !important; animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .it-runner { display: none; }
}
