/* The simulated bots from the botzilla.dev homepage (deploy/site/styles11.css), for the sign-in and sign-up pages.
   Generated from the homepage styles with every rule scoped under .bz-bots; keep the two in step. */
.bz-bots {
    --bg: #363b44;
    --dot: rgba(166, 175, 187, .16);
    --surface: #2f343c;
    --surface-2: #3b414b;
    --chrome: #424954;
    --line: #4a525e;
    --edge: #272b32;
    --ink: #e7eaef;
    --muted: #a6afbb;
    --green: #4ccd8d;
    --green-deep: #2e6b4d;
    --green-edge: #1b3f2d;
    --green-soft: rgba(76, 205, 141, .12);
    --blue: #5291ef;
    --amber: #f1bb6e;
    --rose: #ef6b6b;
    --shadow: 28px 36px 48px -18px rgba(0, 0, 0, .55);
    --radius: 14px;
    --sans: "Segoe UI", "Inter", Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    --ease: cubic-bezier(.2, .75, .2, 1);
}
.bz-bots .omni { position: relative; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.bz-bots .omni b { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--muted); opacity: .55; }
.bz-bots .omni .url { min-width: 0; flex: 1; padding: 3px 10px; font: 400 11.5px/1.4 var(--mono); color: var(--muted); background: var(--surface-2); border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-bots .stack-stage { position: relative; display: grid; place-items: center; perspective: 1800px; padding: 40px 0 10px; }
.bz-bots .stack {
    --flat: var(--scroll-flat, 0);
    position: relative; width: min(560px, 100%);
    transform-style: preserve-3d;
    transform: rotateX(calc(54deg * (1 - var(--flat)))) rotateZ(calc(-36deg * (1 - var(--flat)))) translateY(calc(-30px * (1 - var(--flat))));
    transition: transform .7s var(--ease);
}
/* Hover untilts the stack to a flat front view. Only the stage's own box takes the pointer: the slabs move as they
   tilt, so letting them be hovered made the stack flatten out from under the mouse, tilt back, and shake. */
.bz-bots .stack { pointer-events: none; }
.bz-bots .stack-stage:hover .stack { --flat: 1; }
.bz-bots .slab {
    position: absolute; inset: 0;
    transform-style: preserve-3d;
    /* Tilted: slabs spaced up the z axis. Flat: they sit just behind the front one, peeking above it. */
    transform: translate3d(calc(var(--i) * -22px * (1 - var(--flat))), calc(var(--i) * (26px - 42px * var(--flat))), calc(var(--i) * (-58px + 42px * var(--flat))));
    transition: transform .7s var(--ease);
}
.bz-bots .slab:first-child { position: relative; }
.bz-bots .slab-lift {
    height: 100%;
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--edge); border-radius: 12px; overflow: hidden;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 6px 6px 0 -1px var(--edge);
    animation: bzb-bob 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * -1.4s);
}
@keyframes bzb-bob { 50% { transform: translateZ(12px); } }
.bz-bots .stack::after {
    /* Long soft shadow cast on the floor below the bottom slab. */
    content: ""; position: absolute; inset: 8% -4% -6% 10%;
    background: rgba(0, 0, 0, .5); filter: blur(28px); border-radius: 30px;
    transform: translateZ(-300px) translate(40px, 40px);
    opacity: calc(1 - var(--flat) * .6);
    transition: transform .7s var(--ease), opacity .7s;
}
.bz-bots .slab-mini .slab-lift { background: var(--surface-2); }
.bz-bots .chrome { display: flex; align-items: flex-end; gap: 4px; height: 32px; padding: 0 10px; background: var(--chrome); }
.bz-bots .tab { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 14px; font: 500 11.5px/1 var(--sans); color: var(--muted); border-radius: 8px 8px 0 0; white-space: nowrap; }
.bz-bots .tab.is-active { color: var(--ink); background: var(--surface); }
.bz-bots .tab i { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--green)); }
.bz-bots .tab-ghost { width: 70px; height: 18px; margin-bottom: 4px; background: rgba(255, 255, 255, .05); border-radius: 6px; }
.bz-bots .slab[data-bot="2"] { --c: var(--blue); }
.bz-bots .slab[data-bot="3"] { --c: var(--amber); }
.bz-bots .slab[data-bot="4"] { --c: var(--rose); }
/* The address bar's progress line runs once per Navigate. */
.bz-bots .progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; overflow: hidden; }
.bz-bots .progress i { display: block; height: 100%; background: var(--c, var(--green)); transform-origin: left; transform: scaleX(0); opacity: 0; }
.bz-bots .slab.is-loading .progress i { animation: bzb-load .75s var(--ease) forwards; }
@keyframes bzb-load { 0% { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.bz-bots .stack-count { position: absolute; right: 6%; bottom: 0; font: 500 12px/1 var(--mono); color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 7px 10px; border-radius: 8px; box-shadow: 3px 3px 0 var(--edge); }

/* ---------- Mini Studio inside each bot slab: workflow on the left, the browser (tabs, address bar, page) on the right ---------- */
.bz-bots .slab-screen {
    position: relative; margin: 0; aspect-ratio: 1820 / 1180; overflow: hidden;
    display: grid; grid-template-columns: 41% minmax(0, 1fr);
    background: var(--surface); font-size: 10.5px; line-height: 1.3;
}
.bz-bots .slab-screen.is-snap::after { content: ""; position: absolute; inset: 0; background: #fff; animation: bzb-snap .5s ease-out forwards; pointer-events: none; }
@keyframes bzb-snap { from { opacity: .7; } to { opacity: 0; } }
.bz-bots .browser { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.bz-bots .browser .page { flex: 1; min-height: 0; overflow: hidden; }

/* Workflow cards, drawn like Studio's: icon, bold title, a one-line summary with the values in orange. */
.bz-bots .wf { --card: #2c3138; --card-line: #3a414b; --val: #f0a050; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #23272d; border-right: 1px solid var(--edge); }
.bz-bots .wf-head { flex: none; display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 10px; font: 500 9.5px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: var(--chrome); }
.bz-bots .wf-head b { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--green); }
.bz-bots .wf-view { flex: 1; min-height: 0; overflow: hidden; padding: 8px 8px 0; }
.bz-bots .wf ol { position: relative; list-style: none; margin: 0; padding: 0 0 8px; display: grid; gap: 5px; transition: transform .45s var(--ease); }
.bz-bots .wf li {
    position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 8px; align-items: center;
    margin-left: calc(var(--d, 0) * 12px); padding: 6px 8px;
    background: var(--card); border: 1px solid var(--card-line); border-radius: 7px;
    transition: background .25s, border-color .25s, opacity .25s, box-shadow .25s;
}
/* Children of a Loop or If hang off a guide rail. */
.bz-bots .wf li[style*="--d: 1"]::before, .bz-bots .wf li[style*="--d: 2"]::before { content: ""; position: absolute; left: -8px; top: -6px; bottom: -6px; width: 1px; background: var(--card-line); }
.bz-bots .wf li i { display: grid; place-items: center; color: #e7eaef; }
.bz-bots .wf li svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bz-bots .wf li div { min-width: 0; display: grid; gap: 1px; }
.bz-bots .wf li b { font-weight: 700; font-size: 11px; color: #f0f2f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-bots .wf li span { font-size: 9.5px; color: #9aa3ae; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-bots .wf li span em { font-style: normal; color: var(--val); }
.bz-bots .wf li .t { display: none; font: 600 9px/1 var(--mono); font-style: normal; color: #7ee2a8; background: #1f3d2c; padding: 3px 5px; border-radius: 4px; }
/* Data actions are green cards, as in Studio. */
.bz-bots .wf li.k-data { background: #263d30; border-color: #335a43; }
.bz-bots .wf li.k-data i { color: #4ccd8d; }
.bz-bots .wf li.k-loop i, .bz-bots .wf li.k-if i { color: #c4a3ff; }
/* The running card is blue with its time badge. */
.bz-bots .wf li.is-now { background: #24456e; border-color: #5a9ae8; box-shadow: 0 0 0 1px rgba(90, 154, 232, .35); }
.bz-bots .wf li.is-now .t, .bz-bots .wf li.has-run .t { display: block; }
.bz-bots .wf li.is-skip { opacity: .4; }
.bz-bots .wf li[data-result] .t { display: none; }
.bz-bots .wf li[data-result]::after { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font: 600 8.5px/1 var(--mono); padding: 2px 4px; border-radius: 3px; }
.bz-bots .wf li[data-result="true"]::after { content: "true"; color: #7ee2a8; background: #1f3d2c; }
.bz-bots .wf li[data-result="false"]::after { content: "false"; color: #f3a3a3; background: #4a2626; }

/* The page is a light web page in both themes, like a real site inside Studio's browser. */
.bz-bots .page { position: relative; min-width: 0; padding: 10px 12px; background: #f6f7f9; color: #1f2328; }
/* Bots 2-4 sit behind bot 1: dim their pages so the front bot leads, and light them up when the stack flattens. */
.bz-bots .slab-mini .page { filter: brightness(calc(.78 + .22 * var(--flat))); transition: filter .7s var(--ease); }
.bz-bots .pg { position: relative; display: grid; gap: 7px; }
.bz-bots .pg-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 700; font-size: 12.5px; letter-spacing: -.01em; }
.bz-bots .pill { font: 500 9.5px/1 var(--mono); color: #5d6470; background: #e6e9ee; padding: 3px 6px; border-radius: 99px; }
.bz-bots .pill b { color: #1d7f4f; }
.bz-bots .fld { display: grid; gap: 2px; }
.bz-bots .fld > span, .bz-bots .day > span { font-size: 9.5px; color: #5d6470; }
.bz-bots .in {
    display: block; min-height: 20px; padding: 3px 7px; font: 400 10.5px/1.3 var(--sans); color: #1f2328;
    background: #fff; border: 1px solid #cfd5dd; border-radius: 5px; white-space: nowrap; overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.bz-bots .in.sel { color: #8a919c; }
.bz-bots .in.sel.is-set { color: #1f2328; }
.bz-bots .in.is-focus { border-color: #2f6fd6; box-shadow: 0 0 0 2px rgba(47, 111, 214, .2); }
.bz-bots .in.is-focus::after { content: ""; display: inline-block; width: 1px; height: 11px; margin-left: 1px; vertical-align: -2px; background: #1f2328; animation: bzb-caret .8s steps(1) infinite; }
@keyframes bzb-caret { 50% { opacity: 0; } }
.bz-bots .chk { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #3b414b; }
.bz-bots .box { flex: none; width: 12px; height: 12px; border: 1px solid #aeb5bf; border-radius: 3px; background: #fff; }
.bz-bots .box.is-on { background: #1d7f4f; border-color: #1d7f4f; box-shadow: inset 0 0 0 2px #fff; }
.bz-bots .btn {
    justify-self: start; padding: 5px 12px; font-weight: 600; font-size: 10.5px; color: #fff;
    background: #1d7f4f; border-radius: 5px; box-shadow: 2px 2px 0 #135a37;
    transition: transform .12s, box-shadow .12s;
}
.bz-bots .btn.ghost { justify-self: end; color: #2f6fd6; background: #fff; border: 1px solid #b9cdf0; box-shadow: 2px 2px 0 #d8dce2; }
.bz-bots .btn.is-pressed { transform: translate(2px, 2px); box-shadow: 0 0 0 transparent; }
.bz-bots .toast {
    position: absolute; left: 50%; bottom: -2px; transform: translate(-50%, 8px); opacity: 0;
    padding: 5px 10px; font-weight: 600; font-size: 10.5px; white-space: nowrap;
    color: #0f2219; background: #bff0d4; border: 1px solid #7fd3a5; border-radius: 6px;
    transition: opacity .3s, transform .3s var(--ease);
}
.bz-bots .toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.bz-bots .is-hit { outline: 2px solid rgba(76, 205, 141, .9); outline-offset: 1px; border-radius: 3px; }
.bz-bots .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bz-bots .card { display: grid; gap: 2px; padding: 5px; background: #fff; border: 1px solid #e0e4ea; border-radius: 6px; transition: border-color .2s, background .2s; }
.bz-bots .card i { height: 22px; border-radius: 4px; background: hsl(var(--h, 200) 55% 78%); }
.bz-bots .card .nm { font-weight: 600; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-bots .card .pr { font: 500 9.5px/1.2 var(--mono); color: #1d7f4f; justify-self: start; }
.bz-bots .card.is-hit { outline-color: rgba(82, 145, 239, .9); }
.bz-bots .card.is-got { background: #effaf4; border-color: #9fdcbb; }
.bz-bots .search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.bz-bots .search .btn { justify-self: stretch; }
.bz-bots .res { display: grid; gap: 4px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.bz-bots .res.is-on { opacity: 1; transform: none; }
.bz-bots .res p { display: flex; justify-content: space-between; padding: 4px 8px; background: #fff; border: 1px solid #e0e4ea; border-radius: 5px; }
.bz-bots .res p b { font: 500 10px/1.3 var(--mono); }
.bz-bots .res p.is-hit { outline: 0; border-color: #7fd3a5; background: #effaf4; }
.bz-bots .flag { justify-self: start; font: 500 9.5px/1 var(--mono); color: #6b3fa0; background: #efe6fb; padding: 4px 7px; border-radius: 5px; opacity: 0; transition: opacity .3s; }
.bz-bots .flag.is-on { opacity: 1; }
.bz-bots .days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.bz-bots .day { display: grid; gap: 2px; text-align: center; }
.bz-bots .day .in { text-align: center; padding-inline: 2px; }
.bz-bots .total { justify-self: end; font-size: 10.5px; color: #5d6470; }
.bz-bots .total b { color: #1f2328; font-family: var(--mono); }

/* The botzilla pointer, copied from Studio's in-browser automation pointer
   (Botzilla.Studio.Shared/Browser/BrowserAutomationExtensions.cs, PointerOverlayScript): white arrow, dark outline,
   mint name bubble. The arrow tip sits at (2, 1.5), so the pointer is shifted by 2px to land the tip on the target. */
.bz-bots .bz-cursor { position: absolute; left: 0; top: 0; z-index: 3; display: none; width: 20px; height: 22px; pointer-events: none; transform: translate(calc(var(--cx, 60%) - 2px), calc(var(--cy, 50%) - 2px)); transition: transform .58s cubic-bezier(.45, 0, .2, 1); }
.bz-bots .is-running .bz-cursor { display: block; }
.bz-bots .bz-cursor svg { display: block; width: 20px; height: 22px; overflow: visible; transform-origin: 2px 1.5px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .53)); }
.bz-bots .bz-cursor svg path { fill: #eef2ec; stroke: #0c0f0d; stroke-width: 1.2; stroke-linejoin: round; }
.bz-bots .bz-cursor span { position: absolute; left: 16px; top: 20px; padding: 2px 8px; border-radius: 4px 10px 10px 10px; background: #7ad9a1; color: #0b2415; font: 600 11px/1.5 ui-monospace, Consolas, monospace; white-space: nowrap; transform-origin: 0 0; }
.bz-bots .stack-count b { color: var(--green-deep); }
.bz-bots .is-offscreen *, .bz-bots .is-offscreen *::after { animation-play-state: paused !important; }

/* What the homepage sets page-wide, scoped to the bots. */
.bz-bots, .bz-bots *, .bz-bots *::before, .bz-bots *::after { box-sizing: border-box; }
.bz-bots p, .bz-bots ol { margin: 0; }
.bz-bots svg { display: block; }
@media (prefers-reduced-motion: reduce) {
    .bz-bots *, .bz-bots *::before, .bz-bots *::after { animation: none !important; transition: none !important; }
}
