/* Animated scenes for the training slides (help.html).
 *
 * Every scene is drawn at 600 x 375 and scaled to fit its slide by
 * scenes.js, so the choreography can use plain pixel positions. scenes.js
 * runs the timeline: it adds .on to [data-k] elements, glides the pointer
 * and lights the captions. This file only says what each .on looks like and
 * how long the change takes. Loaded after bank.css, so every class here is
 * prefixed to stay clear of the bank page's own (.demo, .toast, .menu...).
 */

/* ---------------- frame: scene + captions ---------------- */
.anim { display: grid; gap: 18px; margin: 6px 0 0; }
.anim.solo { max-width: 860px; margin-left: auto; margin-right: auto; width: 100%; }
@media (min-width: 1180px) {
  .anim:not(.solo) { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: 26px; }
}

.scene-fit {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 375;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(165, 180, 252, .45), rgba(165, 180, 252, 0) 70%),
    radial-gradient(60% 80% at 100% 100%, rgba(196, 181, 253, .35), rgba(196, 181, 253, 0) 70%),
    #f3f4fa;
  box-shadow: inset 0 0 0 1px #e2e5f0, 0 22px 44px -30px rgba(30, 27, 75, .6);
}

.scene {
  position: absolute;
  left: var(--m, 0px);
  top: var(--m, 0px);
  width: 600px;
  height: 375px;
  transform-origin: 0 0;
  transform: scale(var(--k, 1));
  font: 12px/1.3 "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: #1f2433;
  text-align: left;
  user-select: none;
  transition: opacity .4s;
}

.scene.fade { opacity: 0; }
.scene *, .scene *::before, .scene *::after { box-sizing: border-box; }
.scene p { margin: 0; }
.scene.instant, .scene.instant * { transition: none !important; }

/* the two ways things change: something arrives (.pop), something leaves (.gone) */
.scene .pop { opacity: 0; pointer-events: none; transform: translateY(6px) scale(.97); transition: opacity .3s, transform .45s cubic-bezier(.2, .9, .3, 1.15); }
.scene .pop.on { opacity: 1; pointer-events: auto; transform: none; }
.scene .dt:not(.on), .scene .bk-rows:not(.on), .scene .bk-load:not(.on), .scene .s-toast:not(.on) { pointer-events: none; }
.scene .gone { transition: opacity .3s; }
.scene .gone.on { opacity: 0; }

.scene-fit { cursor: pointer; }
.scene.paused *, .scene.paused *::before, .scene.paused *::after { animation-play-state: paused !important; }

/* Video-style controls, built by scenes.js: play/pause, a timeline with a
   dot where each caption starts, the time, and play again. They only show
   while the scene is hovered or being dragged, or while a control has
   keyboard focus; a touch screen cannot hover, so there they always show.
   Keyboard focus only (:focus-visible), not any focus: a mouse click
   focuses the timeline too, and that kept the bar up after the pointer left. */
.scene-ctl {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 70;
  display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px;
  border-radius: 14px; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px -12px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .07);
  cursor: default; opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.scene-fit:hover .scene-ctl, .scene-ctl.dragging { opacity: 1; transform: none; pointer-events: auto; }
/* its own rule: a browser without :has() drops just this one, not the hover */
.scene-ctl:has(:focus-visible) { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: none) { .scene-ctl { opacity: 1; transform: none; pointer-events: auto; } }
.ctl-btn {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: #eef0ff; color: #4338ca; cursor: pointer; transition: background .15s, transform .15s;
}
.ctl-btn:hover { background: #e0e7ff; }
.ctl-btn:active { transform: scale(.94); }
.ctl-btn svg { width: 14px; height: 14px; }
.ctl-btn.ctl-play { background: #4f46e5; color: #fff; }
.ctl-btn.ctl-play:hover { background: #4338ca; }
.ctl-btn:focus-visible, .ctl-track:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 2px; }
.ctl-track { position: relative; flex: 1; min-width: 60px; height: 24px; border-radius: 6px; cursor: pointer; touch-action: none; }
.ctl-rail, .ctl-fill { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; }
.ctl-rail { right: 0; background: #e2e5f0; }
.ctl-fill { width: 0; background: linear-gradient(90deg, #6366f1, #a78bfa); }
.ctl-mark { position: absolute; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #a5b4fc; pointer-events: none; }
.ctl-knob {
  position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 2.5px #4f46e5, 0 2px 6px rgba(30, 27, 75, .35); transition: transform .15s; pointer-events: none;
}
.ctl-track:hover .ctl-knob, .scene-ctl.dragging .ctl-knob { transform: scale(1.2); }
.ctl-time { flex: none; color: #64748b; font: 600 12px/1 ui-monospace, Consolas, Menlo, monospace; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .ctl-time { display: none; } }

/* captions: the steps, lit in time with the scene */
.caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: cap; }
.caps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: #475569;
  font-size: 15px;
  line-height: 1.45;
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s, transform .3s;
}

.caps li::before {
  counter-increment: cap;
  content: counter(cap);
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: -1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef0f6;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
  transition: background .3s, color .3s;
}

.caps li.on {
  background: linear-gradient(180deg, #f6f6ff, #eef0ff);
  border-color: #c7d2fe;
  color: #1e1b4b;
  box-shadow: 0 12px 26px -16px rgba(79, 70, 229, .7);
  transform: translateX(3px);
}

.caps li.on::before { background: #4f46e5; color: #fff; }
.caps li.done::before { content: "\2713"; background: #10b981; color: #fff; }
.caps b { color: var(--ink); }
@media (max-width: 1179px) { .caps { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }

/* ---------------- the pointer ---------------- */
.cur {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 60;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--x, 560px), var(--y, 350px));
  transition: transform var(--d, 700ms) cubic-bezier(.45, .05, .2, 1), opacity .25s;
}

.scene.playing .cur { opacity: 1; }
.cur svg { position: absolute; left: -3px; top: -2px; width: 20px; height: 20px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.cur i { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; opacity: 0; }
.cur.click i { background: rgba(99, 102, 241, .38); animation: s-press .55s ease-out; }
.cur.rclick i { background: rgba(245, 158, 11, .42); animation: s-press .55s ease-out; }
@keyframes s-press { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes s-spin { to { transform: rotate(360deg); } }
@keyframes s-bump { 40% { transform: scale(1.3); } }
@keyframes s-dots { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes s-orbit { to { transform: rotate(360deg); } }

/* ---------------- a Chrome window ---------------- */
.cw { position: absolute; inset: 0; overflow: hidden; border-radius: 11px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1), 0 18px 40px -18px rgba(15, 23, 42, .45); }
.cw-tabs { position: absolute; left: 0; right: 0; top: 0; height: 28px; background: #dfe3e8; }
.cw-tab {
  position: absolute; left: 8px; top: 5px; width: 196px; height: 23px; display: flex; align-items: center; gap: 7px;
  padding: 0 9px; border-radius: 8px 8px 0 0; background: #fff; font-size: 11px; white-space: nowrap; overflow: hidden;
}
.cw-tab .fav { width: 13px; height: 13px; flex: none; border-radius: 3px; background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.cw-tab .fav.chat { border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0 2.5px, #64748b 3px); }
.cw-tab .ttl { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.cw-tab .x { color: #5f6368; font-size: 9px; }
.cw-plus { position: absolute; left: 212px; top: 4px; color: #5f6368; font-size: 16px; }
.cw-win { position: absolute; right: 0; top: 0; height: 28px; display: flex; }
.cw-win span { width: 36px; display: grid; place-items: center; color: #3c4043; }
.cw-win svg { width: 10px; height: 10px; }
.cw-tool { position: absolute; left: 0; right: 0; top: 28px; height: 34px; background: #fff; }
.cw-ic { position: absolute; top: 5px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #5f6368; }
.cw-ic svg { width: 14px; height: 14px; }
.cw-ic.off { color: #b8bcc2; }
.cw-ic.i1 { left: 8px; } .cw-ic.i2 { left: 34px; } .cw-ic.i3 { left: 60px; } .cw-ic.i4 { left: 492px; } .cw-ic.i5 { left: 552px; }
.cw-ic.dl.on { color: #1a73e8; animation: s-bump .6s ease-out; }
.cw-ic.dl.on::after {
  content: attr(data-n); position: absolute; right: -3px; top: -2px; min-width: 13px; height: 13px; padding: 0 3px;
  border-radius: 7px; background: #1a73e8; color: #fff; font-size: 8px; font-weight: 700; display: grid; place-items: center;
}
.cw-omni {
  position: absolute; left: 84px; top: 5px; width: 402px; height: 24px; display: flex; align-items: center; gap: 7px;
  padding: 0 10px; border-radius: 999px; background: #eff1f4; font-size: 11.5px; white-space: nowrap; overflow: hidden;
}
.cw-omni svg { width: 12px; height: 12px; flex: none; color: #5f6368; }
.cw-omni .u { flex: 1; overflow: hidden; text-overflow: ellipsis; color: #5f6368; }
.cw-omni .u b { font-weight: 400; color: #1f1f1f; }
.cw-av { position: absolute; left: 524px; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: #c7d2fe; color: #312e81; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; }
.cw-bm { position: absolute; left: 0; right: 0; top: 62px; height: 24px; display: flex; align-items: center; gap: 2px; padding: 0 8px; background: #fff; border-bottom: 1px solid #e3e6ea; }
.cw-bm .b { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.cw-bm .b svg { width: 12px; height: 12px; color: #5f6368; flex: none; }
.cw-bm .b.mine { background: #eef0ff; box-shadow: 0 0 0 1px #c7d2fe; }
.cw-bm .b.mine svg { color: #4f46e5; }
.cw-page { position: absolute; left: 0; right: 0; top: 86px; bottom: 0; overflow: hidden; background: #f4f5f8; }

/* a bookmarks bar that starts hidden and appears on Ctrl + Shift + B */
.cw-bm.toggle { border-bottom-color: transparent; transition: border-color .3s; }
.cw-bm.toggle > :not(.pop) { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.cw-bm.toggle.on { border-bottom-color: #e3e6ea; }
.cw-bm.toggle.on > :not(.pop) { opacity: 1; transform: none; }

/* big keys, pressed one at a time */
.s-keys {
  position: absolute; left: 0; right: 0; top: 164px; z-index: 30; width: max-content; margin: 0 auto;
  display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .97); box-shadow: 0 20px 44px -16px rgba(15, 17, 35, .5), 0 0 0 1px rgba(15, 17, 35, .06);
  color: #94a3b8; font-size: 15px; font-weight: 700;
}
.s-keys span {
  min-width: 56px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 9px;
  border: 1px solid #cbd5e1; border-bottom-width: 4px; background: #fff; color: #0f172a; font-size: 13px;
  transition: background .15s, color .15s, transform .15s, border-bottom-width .15s;
}
.s-keys span.on { background: #4f46e5; border-color: #4f46e5; border-bottom-width: 1px; color: #fff; transform: translateY(3px); }

/* ---------------- the Skybots Bank page, small ---------------- */
.bk-side { position: absolute; left: 0; top: 0; bottom: 0; width: 64px; background: #1c2340; }
.bk-side img { position: absolute; left: 10px; top: 10px; width: 44px; height: auto; }
.bk-side i { position: absolute; left: 14px; width: 36px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.bk-title { position: absolute; left: 82px; top: 9px; font-size: 13.5px; font-weight: 500; }
.bk-av { position: absolute; right: 14px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: #dcdcff; color: #4b4bc4; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; }
.bk-card { position: absolute; left: 78px; right: 14px; top: 38px; bottom: 8px; background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(20, 24, 40, .08); }
.bk-sel {
  position: absolute; top: 10px; height: 24px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 9px; border: 1px solid #c9ccd6; background: #fff; font-size: 11px;
}
.bk-sel svg { width: 9px; height: 9px; color: #6c7286; }
.bk-sel.type { left: 12px; width: 300px; border-radius: 3px 0 0 3px; }
.bk-sel.year { left: 312px; width: 90px; border-left: 0; border-radius: 0 3px 3px 0; }
.bk-dd { position: absolute; left: 312px; top: 34px; width: 90px; z-index: 6; background: #fff; border: 1px solid #c9ccd6; box-shadow: 0 8px 18px rgba(20, 24, 40, .16); }
.bk-dd div { height: 24px; display: flex; align-items: center; padding: 0 9px; font-size: 11px; transition: background .15s, color .15s; }
.bk-dd div.on { background: #1a73e8; color: #fff; }
.bk-rows { position: absolute; left: 0; right: 0; top: 42px; height: 153px; opacity: 0; transition: opacity .25s; }
.bk-rows.on { opacity: 1; }
.bk-row { position: relative; height: 51px; border-top: 1px solid #eef0f4; }
.bk-row .m { position: absolute; left: 12px; top: 6px; font-size: 8.5px; letter-spacing: .03em; color: #48506a; }
.bk-row .bi { position: absolute; left: 12px; top: 21px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #e3e5ec; }
.bk-row .nm { position: absolute; left: 36px; top: 19px; font-size: 10.5px; font-weight: 500; }
.bk-row .ad { position: absolute; left: 36px; top: 32px; font-size: 9px; color: #5f6577; }
.bk-row .d { position: absolute; right: 14px; top: 16px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #6c7286; }
.bk-row .d svg { width: 14px; height: 14px; }
.bk-row .d .sp { display: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(75, 75, 196, .25); border-top-color: #4b4bc4; animation: s-spin .7s linear infinite; }
.bk-row .d.on { background: #eceeff; }
.bk-row .d.on svg { display: none; }
.bk-row .d.on .sp { display: block; }
.bk-load { position: absolute; left: 0; right: 0; top: 42px; height: 153px; display: grid; place-items: center; background: #fff; opacity: 0; transition: opacity .2s; }
.bk-load.on { opacity: 1; }
.bk-load span { display: flex; align-items: center; gap: 8px; color: #5f6577; font-size: 10.5px; }
.bk-load span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(75, 75, 196, .25); border-top-color: #4b4bc4; animation: s-spin .7s linear infinite; }
.bk-pager { position: absolute; left: 0; right: 0; top: 199px; height: 36px; border-top: 1px solid #e3e5ec; }
.bk-pager .r { position: absolute; left: 12px; top: 11px; font-size: 9.5px; color: #5f6577; }
.bk-pager .pg { position: absolute; right: 12px; top: 7px; display: flex; gap: 4px; }
.bk-pager .pg b { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #e3e5ec; border-radius: 4px; font-size: 10px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.bk-pager .pg b.on { background: #4b4bc4; border-color: #4b4bc4; color: #fff; }

/* yellow tags: the things worth noticing */
.s-tag {
  position: absolute; z-index: 20; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border-radius: 999px; background: #fff4c2; border: 1px solid #f5d76e; color: #5c4a00; font-size: 10.5px; font-weight: 600;
  white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(92, 74, 0, .6);
}
.s-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }

/* Chrome's download bubble */
.dlb { position: absolute; right: 8px; top: 58px; width: 250px; z-index: 30; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(15, 17, 35, .22), 0 0 0 1px rgba(15, 17, 35, .06); font-size: 10.5px; }
.dlb .h { margin-bottom: 7px; font-weight: 600; }
.dlb .f { display: flex; align-items: center; gap: 9px; }
.dlb .f i { width: 14px; height: 17px; flex: none; border-radius: 2px; background: #e5484d; }
.dlb small { display: block; color: #64748b; font-size: 9.5px; }
/* step 1: the same bubble with the whole year in it */
.dlb-list { width: 272px; padding: 10px 12px 8px; }
.dlb-list .f { height: 16px; gap: 8px; }
.dlb-list .f i { width: 11px; height: 13px; }
.dlb-list .f span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlb-list .f small { display: inline; flex: none; }
.dlb-list .more { margin-top: 5px; padding-top: 6px; border-top: 1px solid #eef0f4; color: #1a73e8; font-weight: 600; }

/* the kind of panel the prompt asks ChatGPT for */
.spn { position: absolute; right: 12px; top: 10px; width: 216px; z-index: 15; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 18px 38px -12px rgba(15, 17, 35, .5), 0 0 0 1px rgba(15, 17, 35, .06); }
.spn-h { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: #4b4bc4; color: #fff; font-size: 11.5px; font-weight: 600; }
.spn-b { padding: 10px; }
.spn-y { display: flex; gap: 6px; }
.spn-y span { flex: 1; height: 24px; display: grid; place-items: center; border: 1px solid #c9ccd6; border-radius: 7px; font-size: 11px; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.spn-y span.on { background: #eceeff; border-color: #4b4bc4; color: #4b4bc4; }
.spn-go { display: grid; place-items: center; height: 26px; margin-top: 8px; border-radius: 7px; background: #4b4bc4; color: #fff; font-size: 11px; font-weight: 600; transition: filter .15s; }
.spn-go.on { filter: brightness(.82); }
.spn-s { margin: 8px 0 5px !important; font-size: 10.5px; color: #353b4d; }
.spn-s.on { color: #047857; font-weight: 600; }
.spn-bar { height: 5px; border-radius: 3px; background: #eef0f4; overflow: hidden; }
.spn-bar i { display: block; width: 0; height: 100%; background: #4b4bc4; }   /* filled by scenes.js (data-grow) */

/* Chrome asking about multiple downloads */
.perm { position: absolute; left: 96px; top: 58px; width: 240px; z-index: 30; padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(15, 17, 35, .28), 0 0 0 1px rgba(15, 17, 35, .06); font-size: 11px; }
.perm .who { margin-bottom: 6px; font-weight: 600; }
.perm .what { display: flex; align-items: center; gap: 6px; color: #353b4d; }
.perm .what svg { width: 13px; height: 13px; color: #5f6368; }
.perm .btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.perm .btns span { padding: 4px 12px; border-radius: 999px; border: 1px solid #c9ccd6; color: #1a73e8; font-size: 10.5px; font-weight: 600; transition: filter .15s; }
.perm .btns .go { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.perm .btns .go.on { filter: brightness(.85); }

/* right-click menus */
.ctx { position: absolute; z-index: 35; min-width: 128px; padding: 4px 0; border-radius: 8px; background: #fff; box-shadow: 0 10px 26px rgba(15, 17, 35, .24), 0 0 0 1px rgba(15, 17, 35, .06); font-size: 11px; }
.ctx div { height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; white-space: nowrap; transition: background .15s; }
.ctx div.on { background: #e8eaed; }
.ctx hr { margin: 4px 0; border: 0; border-top: 1px solid #e3e6ea; }
.ctx .dim { color: #9aa0a6; }

/* DevTools, docked on the right */
.dt { position: absolute; left: 330px; top: 86px; width: 270px; height: 289px; z-index: 25; background: #fff; border-left: 1px solid #cbcdd1; transform: translateX(102%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.dt.on { transform: none; }
.dt-tabs { height: 26px; display: flex; align-items: flex-end; gap: 2px; padding: 0 8px; background: #f3f4f6; border-bottom: 1px solid #e3e5e8; font-size: 10.5px; }
.dt-tabs span { padding: 0 8px 6px; color: #5f6368; }
.dt-tabs .act { color: #1a73e8; box-shadow: inset 0 -2px 0 #1a73e8; }
.dt-x { position: absolute; right: 9px; top: 6px; color: #5f6368; font-size: 10px; }
.dt-tree { padding: 6px 0; font: 10.5px/18px Consolas, Menlo, monospace; }
.dt-tree div { padding: 0 10px; white-space: nowrap; transition: background .15s; }
.dt-tree .in { padding-left: 22px; }
.dt-tree div.on { background: #cfe8fc; }
.dt-tree .tg { color: #881280; }
.dt-tree .at { color: #994500; }
.dt-tree .av { color: #1a1aa6; }
.dt-tree .cm { color: #5f6368; }

/* toast */
.s-toast {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 55; width: max-content; margin: 0 auto;
  display: flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px; background: #0f172a; color: #fff;
  font-size: 11px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .3s;
}
.s-toast.on { opacity: 1; transform: none; }
.s-toast svg { width: 12px; height: 12px; color: #34d399; }

/* a chat page, nobody's in particular */
.chat { position: absolute; inset: 0; background: #fff; }
.chat-hello { position: absolute; left: 0; right: 0; top: 74px; text-align: center; font-size: 18px; font-weight: 600; }
.cmp {
  position: absolute; left: 110px; width: 380px; bottom: 16px; height: 44px; border-radius: 18px; border: 1px solid #e3e5ec;
  background: #fff; box-shadow: 0 8px 22px -12px rgba(15, 17, 35, .3); transition: border-color .2s, box-shadow .2s;
}
.cmp .ph { position: absolute; left: 16px; top: 14px; font-size: 11.5px; color: #94a3b8; }
.cmp.on { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(165, 180, 252, .35), 0 8px 22px -12px rgba(15, 17, 35, .3); }
.cmp-full {
  position: absolute; left: 110px; width: 380px; bottom: 16px; height: 170px; z-index: 2; padding: 12px 16px; border-radius: 18px;
  border: 1px solid #a5b4fc; background: #fff; box-shadow: 0 0 0 3px rgba(165, 180, 252, .35), 0 10px 26px -12px rgba(15, 17, 35, .35);
  font-size: 9.5px; line-height: 1.5; color: #334155; overflow: hidden;
}
.cmp-full b { display: block; margin-top: 3px; font-size: 9px; letter-spacing: .06em; color: #4f46e5; }
.cmp-full .html {
  position: absolute; left: 16px; right: 52px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: 8px; background: #f1f5f9; font: 9px/1.3 Consolas, Menlo, monospace; color: #475569; white-space: nowrap; overflow: hidden;
}
.cmp-full .html em { flex: none; padding: 1px 6px; border-radius: 999px; background: #e0e7ff; color: #4338ca; font: 600 8.5px "Segoe UI", Arial, sans-serif; font-style: normal; }
.cmp-send { position: absolute; left: 452px; top: 237px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; background: #0f172a; color: #fff; display: grid; place-items: center; }
.cmp-send svg { width: 13px; height: 13px; }
.msg-me { position: absolute; left: 270px; width: 220px; top: 12px; padding: 9px 12px; border-radius: 14px; background: #f1f3f6; font-size: 9.5px; line-height: 1.45; color: #334155; }
.msg-me i { display: inline-block; margin-top: 5px; padding: 1px 7px; border-radius: 999px; background: #e0e7ff; color: #4338ca; font: 600 8.5px "Segoe UI", Arial, sans-serif; font-style: normal; }
.typing { position: absolute; left: 112px; top: 84px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: s-dots 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.msg-ai { position: absolute; left: 110px; width: 380px; top: 78px; font-size: 10.5px; color: #1f2433; }
.code { margin-top: 8px; overflow: hidden; border-radius: 10px; background: #0f172a; }
.code-h { height: 18px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; background: #1e293b; color: #94a3b8; font-size: 8.5px; }
.code-h span:last-child { color: #e2e8f0; transition: color .2s; }
.code-h span.on { color: #34d399 !important; }
.code pre { margin: 0; padding: 8px 10px; font: 9px/1.5 Consolas, Menlo, monospace; color: #e2e8f0; white-space: pre; overflow: hidden; }
.code .kw { color: #c4b5fd; }
.code .st { color: #86efac; }

/* the Add page dialog */
.dlg { position: absolute; left: 160px; top: 104px; width: 280px; z-index: 40; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 20px 46px rgba(15, 17, 35, .32), 0 0 0 1px rgba(15, 17, 35, .06); font-size: 11px; }
.dlg h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.dlg .f { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 8px; color: #5f6368; }
.dlg .in { height: 24px; display: flex; align-items: center; padding: 0 8px; border: 1px solid #c9ccd6; border-radius: 5px; color: #1f1f1f; white-space: nowrap; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.dlg .in.on { border-color: #1a73e8; box-shadow: 0 0 0 1px #1a73e8; }
.dlg .in span { overflow: hidden; text-overflow: ellipsis; border-radius: 2px; }
.dlg .in span.on { background: #c8dcfb; }
.dlg .in.mono span { font: 10px Consolas, Menlo, monospace; }
.dlg .tree { margin: 2px 0 0 42px; padding: 4px 0; border: 1px solid #e3e6ea; border-radius: 5px; }
.dlg .tree div { height: 20px; display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.dlg .tree svg { width: 12px; height: 12px; color: #5f6368; }
.dlg .tree .act { background: #e8f0fe; }
.dlg .btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.dlg .btns span { padding: 5px 14px; border-radius: 999px; border: 1px solid #c9ccd6; color: #1a73e8; font-weight: 600; }
.dlg .btns .go { background: #1a73e8; border-color: #1a73e8; color: #fff; }

/* ---------------- step 2: three things you need ---------------- */
.need { position: absolute; top: 28px; width: 180px; height: 318px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 16px 34px -20px rgba(30, 27, 75, .55), 0 0 0 1px #e6e8f0; }
.need.a { left: 15px; } .need.b { left: 210px; } .need.c { left: 405px; }
.need .no { width: 24px; height: 24px; margin-bottom: 10px; border-radius: 50%; display: grid; place-items: center; background: #eef0ff; color: #4f46e5; font-size: 11.5px; font-weight: 700; }
.need h5 { margin: 0 0 3px; font-size: 13.5px; }
.need .sub { font-size: 10.5px; color: #64748b; }
.mini { position: absolute; left: 16px; right: 16px; top: 112px; height: 128px; overflow: hidden; border-radius: 10px; border: 1px solid #e3e6ea; background: #f6f7fb; }
.mini-tabs { height: 14px; background: #dfe3e8; }
.mini-tool { height: 22px; padding: 4px 8px; background: #fff; }
.mini-tool i { display: block; height: 14px; border-radius: 999px; background: #eff1f4; }
.mini-bar { height: 0; overflow: hidden; display: flex; align-items: center; gap: 6px; padding: 0 8px; background: #fff; border-bottom: 1px solid #e3e6ea; transition: height .35s cubic-bezier(.2, .8, .2, 1); }
.mini-bar.on { height: 18px; }
.mini-bar span { width: 34px; height: 7px; border-radius: 3px; background: #c7d2fe; flex: none; }
.mini-bar span:nth-child(2) { width: 46px; background: #ddd6fe; }
.mini-bar span:nth-child(3) { width: 28px; background: #bae6fd; }
.keys { position: absolute; left: 16px; right: 16px; top: 256px; display: flex; align-items: center; justify-content: center; gap: 5px; color: #94a3b8; font-weight: 600; }
.keys span { min-width: 34px; height: 28px; padding: 0 7px; display: grid; place-items: center; border-radius: 7px; border: 1px solid #cbd5e1; border-bottom-width: 3px; background: #fff; color: #0f172a; font-size: 10.5px; transition: background .15s, color .15s, transform .15s, border-bottom-width .15s; }
.keys span.on { background: #4f46e5; border-color: #4f46e5; border-bottom-width: 1px; color: #fff; transform: translateY(2px); }
.mini-chat { padding: 10px; }
.mini-chat .ask { width: 70%; height: 22px; margin-left: auto; border-radius: 10px; background: #e2e8f0; }
.mini-chat .typing { position: static; margin: 12px 0 0 2px; }
.mini-chat .ans { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #e3e6ea; font-size: 10px; }
.under { position: absolute; left: 16px; right: 16px; top: 258px; text-align: center; font-size: 10.5px; color: #64748b; }
.under b { color: #0f172a; font-weight: 600; }
.mini-login { padding: 12px; }
.mini-login label { display: block; margin: 0 0 3px; font-size: 9px; font-weight: 600; color: #475569; }
.mini-login .fld { height: 20px; margin-bottom: 8px; padding: 0 8px; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; font-size: 11px; line-height: 18px; letter-spacing: .15em; }
.mini-login .btn { height: 22px; border-radius: 5px; background: #4b4bc4; color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 600; transition: filter .15s; }
.mini-login .btn.on { filter: brightness(.82); }
.ok-pill { position: absolute; left: 0; right: 0; top: 258px; width: max-content; margin: 0 auto; padding: 4px 11px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 10.5px; font-weight: 600; }

/* ---------------- step 6: the five parts ---------------- */
.part { position: absolute; left: 26px; width: 240px; height: 48px; display: flex; flex-direction: column; justify-content: center; padding: 0 16px; border-radius: 12px; background: #fff; box-shadow: inset 4px 0 0 var(--c), 0 10px 22px -16px rgba(30, 27, 75, .6), 0 0 0 1px #e6e8f0; opacity: 0; transform: translateX(-18px); transition: opacity .35s, transform .45s cubic-bezier(.2, .9, .3, 1.1); }
.part.on { opacity: 1; transform: none; }
.part b { font-size: 12px; letter-spacing: .07em; color: var(--c); }
.part span { font-size: 10px; color: #64748b; }
.why { position: absolute; left: 318px; width: 262px; height: 48px; display: flex; align-items: center; font-size: 12.5px; font-weight: 600; color: #1e1b4b; opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .45s; }
.why.on { opacity: 1; transform: none; }
.why::before { content: ""; position: absolute; left: -46px; top: 50%; width: 36px; border-top: 2px dashed var(--c); }
.p1 { top: 18px; --c: #4f46e5; } .p2 { top: 74px; --c: #0891b2; } .p3 { top: 130px; --c: #7c3aed; } .p4 { top: 186px; --c: #db2777; } .p5 { top: 242px; --c: #059669; }
.all { position: absolute; left: 0; right: 0; top: 312px; width: max-content; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #0f172a; color: #fff; font-size: 12px; font-weight: 600; }
.all::before { content: "\2713"; width: 18px; height: 18px; border-radius: 50%; background: #10b981; display: grid; place-items: center; font-size: 11px; }

/* ---------------- step 9: the loop ---------------- */
.loop-ring { position: absolute; left: 190px; top: 75px; width: 220px; height: 220px; border-radius: 50%; border: 2px dashed #c7d2fe; }
.loop-arm { position: absolute; left: 300px; top: 185px; width: 0; height: 0; }
.loop-arm i { position: absolute; left: -7px; top: -117px; width: 14px; height: 14px; border-radius: 50%; background: #4f46e5; box-shadow: 0 0 0 5px rgba(79, 70, 229, .2); }
.loop-arm.on { animation: s-orbit 6.4s linear forwards; }
.node { position: absolute; width: 152px; padding: 10px 12px; border-radius: 13px; background: #fff; border: 1.5px solid transparent; box-shadow: 0 12px 26px -18px rgba(30, 27, 75, .6), 0 0 0 1px #e6e8f0; transition: border-color .3s, box-shadow .3s, transform .3s; }
.node.on { border-color: var(--c); box-shadow: 0 14px 30px -14px var(--c), 0 0 0 1px var(--c); transform: scale(1.05); }
.node h6 { display: flex; align-items: center; gap: 7px; margin: 0 0 3px; font-size: 12px; }
.node h6 em { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-style: normal; font-size: 10px; }
.node p { font-size: 10px; color: #64748b; }
.node.n1 { left: 224px; top: 6px; --c: #4f46e5; } .node.n2 { left: 424px; top: 150px; --c: #dc2626; } .node.n3 { left: 224px; top: 300px; --c: #7c3aed; } .node.n4 { left: 24px; top: 150px; --c: #0891b2; }
.node .err { margin-top: 5px; font: 9px/1.3 Consolas, Menlo, monospace; color: #dc2626; white-space: nowrap; overflow: hidden; }
.works { position: absolute; left: 0; right: 0; top: 168px; width: max-content; margin: 0 auto; padding: 8px 16px; border-radius: 999px; background: linear-gradient(135deg, #34d399, #059669); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 14px 28px -12px rgba(5, 150, 105, .8); }

/* ---------------- step 10: the Downloads folder ---------------- */
.ex { position: absolute; left: 24px; top: 18px; width: 552px; height: 339px; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1), 0 18px 40px -18px rgba(15, 23, 42, .45); }
.ex-title { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #f3f3f3; font-size: 11px; }
.ex-title > svg { width: 14px; height: 14px; color: #e3a008; }
.ex-title .w { margin-left: auto; display: flex; gap: 18px; color: #3c4043; font-size: 10px; }
.ex-path { height: 28px; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid #ececec; color: #5f6368; font-size: 10.5px; }
.ex-cols, .ex-rows div { display: grid; grid-template-columns: minmax(0, 1fr) 118px 76px 52px; align-items: center; padding: 0 12px; }
.ex-cols { height: 22px; border-bottom: 1px solid #f0f0f0; color: #6b7280; font-size: 9.5px; }
.ex-rows div { height: 19px; font-size: 10px; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s, background .2s; }
.ex-rows div.on { opacity: 1; transform: none; }
.ex-rows div span:first-child { display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; }
.ex-rows div span:first-child::before { content: ""; width: 10px; height: 12px; flex: none; border-radius: 1.5px; background: #e5484d; }
.ex-rows div span:not(:first-child) { color: #6b7280; font-size: 9.5px; }
.ex-status { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-top: 1px solid #ececec; color: #5f6368; font-size: 9.5px; }
.ex-status b { padding: 1px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 9.5px; }
.pdf { position: absolute; left: 252px; top: 40px; width: 330px; height: 312px; z-index: 20; overflow: hidden; border-radius: 10px; background: #e9eaee; box-shadow: 0 22px 50px -18px rgba(15, 23, 42, .6), 0 0 0 1px rgba(15, 23, 42, .12); }
.pdf-bar { height: 26px; display: flex; align-items: center; padding: 0 10px; background: #323639; color: #e8eaed; font-size: 10px; white-space: nowrap; overflow: hidden; }
.pdf-page { position: absolute; left: 16px; right: 16px; top: 38px; bottom: 0; padding: 14px 16px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); font-size: 9.5px; }
.pdf-page .bank { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 2px solid #4b4bc4; }
.pdf-page .bank b { color: #4b4bc4; font-size: 10.5px; letter-spacing: .04em; }
.pdf-page .meta { margin: 8px 0 10px !important; color: #64748b; font-size: 9px; }
.pdf-page .ln { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #f1f5f9; }
.pdf-page .ln.bar span:first-child { width: 58%; height: 6px; margin: 2px 0; border-radius: 3px; background: #eef0f4; }
.pdf-page .ln.bar span:last-child { width: 16%; height: 6px; margin: 2px 0; border-radius: 3px; background: #eef0f4; }
.pdf-page .ln.key { font-weight: 600; }
.hl { padding: 0 2px; background: linear-gradient(transparent 52%, #fde68a 52%) no-repeat 0 0 / 0% 100%; transition: background-size .55s ease-out; }
.hl.on { background-size: 100% 100%; }
.check { position: absolute; z-index: 25; display: flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 10.5px; font-weight: 600; box-shadow: 0 8px 18px -10px rgba(4, 120, 87, .6), 0 0 0 1px #a7f3d0; }
.check::before { content: "\2713"; font-weight: 800; }

/* ---------------- step 11: the ZIP upgrade ---------------- */
.nx { position: absolute; left: 90px; top: 18px; width: 420px; height: 339px; padding: 18px 20px; border-radius: 16px; background: #fff; box-shadow: 0 16px 34px -20px rgba(30, 27, 75, .55), 0 0 0 1px #e6e8f0; }
.nx h5 { margin: 0 0 2px; font-size: 14.5px; }
.nx .sub { font-size: 11px; color: #64748b; }
.files { position: absolute; left: 122px; top: 76px; width: 176px; height: 120px; }
.files i { position: absolute; width: 26px; height: 32px; border-radius: 3px; background: #fff; box-shadow: inset 0 -8px 0 #e5484d, 0 0 0 1px #f1c0c2; transition: transform .7s cubic-bezier(.5, 0, .3, 1), opacity .7s; transition-delay: calc(var(--n) * 55ms); }
.files.on i { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; }
.zipbox { position: absolute; left: 178px; top: 228px; width: 64px; height: 76px; border-radius: 9px; background: linear-gradient(160deg, #6366f1, #4338ca); color: #fff; display: grid; place-items: end center; padding-bottom: 9px; font-size: 11px; font-weight: 700; letter-spacing: .06em; box-shadow: 0 14px 28px -12px rgba(67, 56, 202, .8); }
.zipbox::before { content: ""; position: absolute; top: 8px; left: 50%; width: 6px; height: 34px; margin-left: -3px; background: repeating-linear-gradient(#c7d2fe 0 4px, transparent 4px 8px); }
.zipdone { position: absolute; left: 0; right: 0; top: 310px; text-align: center; font-size: 12px; font-weight: 600; color: #312e81; }

@media (prefers-reduced-motion: reduce) {
  .scene, .scene *, .caps li { transition: none !important; animation: none !important; }
}
