/* HumanizeHub. Flat illustrated "ice shelf" theme: ink outlines, slab shadows, no gradients or glow.
   Everything here is static; nothing is loaded from outside the app. */

/* ------------------------------------------------------------------ tokens */
:root {
  --sky: #d6e8f8;
  --sea: #9cc6ee;
  --sea-line: #cbe3f8;
  --ink: #0f1d30;
  --ink-2: #2a3c55;
  --muted: #56687e;
  --card: #ffffff;
  --ice: #b7d2ec;
  --line: #dce7f1;
  --soft: #f2f7fb;
  --accent: #ff9a2b;
  --accent-deep: #d87508;
  --accent-soft: #fff1de;
  --blue: #1f6fff;
  --blue-soft: #e6efff;
  --red: #ff5a4e;
  --red-deep: #d93a2b;
  --red-soft: #ffeceb;
  --ok: #0e9f5b;
  --ok-soft: #e3f7ec;
  --warn: #b97a00;
  --warn-soft: #fff5d9;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.22, 1, .36, 1);
  --t0: 0s; /* app.js sets this from the clock so the scenery keeps its place from page to page */
}
@supports (animation-timing-function: linear(0, 1)) {
  :root {
    --bounce: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%,
      1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%,
      0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--sky);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 20px; }
.is-admin .wrap { max-width: 1200px; }
main.wrap { position: relative; z-index: 1; flex: 1; padding-top: 14px; padding-bottom: 240px; }
h1 { font: 800 30px/1.12 var(--display); letter-spacing: -.025em; margin: 0 0 8px; }
h2 { font: 800 20px/1.2 var(--display); letter-spacing: -.015em; margin: 0 0 10px; }
p { margin: 0 0 10px; text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
a { color: var(--blue); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.err { color: var(--red-deep); }
code { font: 13px "Cascadia Mono", Consolas, monospace; background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
pre { white-space: pre-wrap; font: 12.5px/1.5 "Cascadia Mono", Consolas, monospace; margin: 6px 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--ink); }

/* ------------------------------------------------------------------ scenery */
.snow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; animation: sway 9s ease-in-out var(--t0) infinite alternate; }
.snow i { position: absolute; left: -40px; right: -40px; top: -520px; bottom: 0; background-repeat: repeat; will-change: transform; }
.snow i:nth-child(1) {
  background-image: radial-gradient(circle at 30px 40px, #fff 0 3px, transparent 3.6px), radial-gradient(circle at 190px 150px, #fff 0 2.4px, transparent 3px),
    radial-gradient(circle at 110px 300px, #fff 0 3.4px, transparent 4px), radial-gradient(circle at 300px 430px, #fff 0 2.6px, transparent 3.2px);
  background-size: 360px 520px;
  animation: snow 17s linear var(--t0) infinite;
}
.snow i:nth-child(2) {
  opacity: .8;
  background-image: radial-gradient(circle at 70px 90px, #fff 0 2px, transparent 2.6px), radial-gradient(circle at 220px 260px, #fff 0 1.8px, transparent 2.4px),
    radial-gradient(circle at 150px 470px, #fff 0 2.2px, transparent 2.8px);
  background-size: 280px 520px;
  animation: snow 26s linear var(--t0) infinite;
}
.snow i:nth-child(3) {
  opacity: .95;
  background-image: radial-gradient(circle at 120px 200px, #fff 0 4.4px, transparent 5px), radial-gradient(circle at 400px 60px, #fff 0 4px, transparent 4.6px);
  background-size: 520px 520px;
  animation: snow 11s linear var(--t0) infinite;
}
.scene { position: fixed; left: 0; right: 0; bottom: 0; height: max(200px, 13.9vw); z-index: 0; pointer-events: none; }
.scene__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.berg { animation: bob 7s ease-in-out var(--t0) infinite alternate; }
.berg--b { animation-duration: 9s; }
.berg--c { animation-duration: 5.5s; }
.berg__lit { fill: #f5fafe; }
.berg__shade { fill: #c9dff3; }
.sea { fill: var(--sea); }
.sea__line { fill: none; stroke: var(--sea-line); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 60 90; animation: drift 9s linear var(--t0) infinite; }
.sea__line--b { stroke-dasharray: 30 120; animation-duration: 15s; animation-direction: reverse; }
.shelf { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.parade { position: absolute; inset: 0; overflow: hidden; }
.walker, .glider { position: absolute; left: 0; will-change: transform; }
.walker { bottom: 9%; width: 46px; animation: parade 48s linear calc(var(--t0) - 9s) infinite; }
.walker--b { width: 34px; bottom: 11%; animation-duration: 63s; animation-delay: calc(var(--t0) - 31s); }
.walker--c { width: 40px; bottom: 8%; animation-duration: 55s; animation-delay: calc(var(--t0) - 40s); animation-direction: reverse; }
.glider { bottom: 8.5%; width: 66px; animation: glide 21s linear calc(var(--t0) - 3s) infinite; }

/* ------------------------------------------------------------------ header */
.top { position: relative; z-index: 2; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -.03em; view-transition-name: brand; }
.brand__mark {
  width: 42px; height: 42px; flex: none; display: grid; place-items: end center; overflow: hidden;
  background: var(--accent); border: 2px solid var(--ink); border-radius: 13px; box-shadow: 0 3px 0 var(--ink);
  transition: transform .35s var(--spring);
}
.brand__mark svg { width: 32px; display: block; transform: translateY(5px); transition: transform .4s var(--spring); }
.brand:hover .brand__mark { transform: rotate(-9deg) scale(1.08); }
.brand:hover .brand__mark svg { transform: translateY(-1px); }
.brand__name b { color: var(--blue); font-weight: 800; }
.brand__tag { font: 700 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--ink); padding: 5px 8px; border-radius: 7px; }
.top__user { display: flex; align-items: center; gap: 8px; margin: 0; }
.who { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 7px 13px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; }
.who__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: nap 2.4s ease-in-out infinite; }

/* ------------------------------------------------------------------ cards */
.card {
  position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 24px; padding: 28px; margin-bottom: 34px;
  box-shadow: 0 8px 0 0 var(--ice), 0 8px 0 2px var(--ink);
}
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card__head h1, .card__head h2 { margin: 0; }
.rise { animation: rise .75s var(--out) both; animation-delay: calc(var(--i, 0) * 70ms); }
main > :nth-child(2) { --i: 1.5; }
main > :nth-child(3) { --i: 3; }
main > :nth-child(4) { --i: 4.5; }
.joblist > :nth-child(1), #admin-live > :nth-child(1) { --i: 2; }
.joblist > :nth-child(2), #admin-live > :nth-child(2) { --i: 3; }
.joblist > :nth-child(3), #admin-live > :nth-child(3) { --i: 4; }
.joblist > :nth-child(4), #admin-live > :nth-child(4) { --i: 5; }
.joblist > :nth-child(5), #admin-live > :nth-child(5) { --i: 6; }
.joblist > :nth-child(6) { --i: 7; }
.joblist > :nth-child(7) { --i: 8; }
.joblist > :nth-child(n+8) { --i: 9; }
.no-enter .rise, .no-enter.rise { animation: none; }
.alert {
  background: var(--red-soft); border: 2px solid var(--red-deep); color: #8f1d12; border-radius: 14px; padding: 10px 14px; font-weight: 600;
  animation: shake .5s var(--out);
}

/* ------------------------------------------------------------------ icons */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ico__slash { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s var(--out); }

/* ------------------------------------------------------------------ buttons */
.btn {
  --d: 5px; --side: #c3d5e6;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 20px; min-height: 48px; font: 700 15.5px/1 var(--font); color: var(--ink); text-decoration: none; white-space: nowrap;
  background: #fff; border: 2px solid var(--ink); border-radius: 15px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 var(--d) 0 0 var(--side), 0 var(--d) 0 2px var(--ink);
  translate: var(--mx, 0px) var(--my, 0px);
  transition: transform .22s var(--spring), box-shadow .22s var(--spring), translate .3s var(--spring), background-color .2s;
}
.btn:hover { --d: 8px; transform: translateY(-3px); }
.btn:active { --d: 0px; transform: translateY(5px); transition-duration: .06s; }
.btn--primary { background: var(--accent); --side: var(--accent-deep); }
.btn--danger { --side: #f1b3ad; }
.btn--danger:hover { background: var(--red-soft); }
.btn--quiet { background: transparent; border-color: transparent; box-shadow: none; }
.btn--quiet:hover { background: #fff; border-color: var(--ink); box-shadow: 0 var(--d) 0 0 var(--side), 0 var(--d) 0 2px var(--ink); --d: 4px; transform: translateY(-2px); }
.btn--quiet:active { --d: 0px; transform: translateY(2px); }
.btn--sm { --d: 4px; padding: 8px 13px; min-height: 38px; font-size: 13.5px; border-radius: 12px; gap: 7px; }
.btn--sm:hover { --d: 6px; transform: translateY(-2px); }
.btn--sm:active { --d: 0px; transform: translateY(4px); }
.btn--sm .ico { width: 16px; height: 16px; }
.btn--wide { width: 100%; }
.btn[disabled] { cursor: default; }
.btn__clip { position: absolute; inset: 0; z-index: -1; border-radius: 12px; overflow: hidden; pointer-events: none; }
.btn__clip::before {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: -70%; width: 45%; background: rgba(255, 255, 255, .6);
  transform: skewX(-22deg);
}
.btn:hover .btn__clip::before { animation: shine .75s var(--out); }
.btn__clip::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .2s;
  background-image: repeating-linear-gradient(-45deg, rgba(15, 29, 48, .13) 0 10px, transparent 10px 20px); background-size: 28.28px 100%;
}
.ripple { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: rgba(15, 29, 48, .22); animation: ripple .65s var(--out) forwards; }
.btn__label { display: inline-block; }
.ch { display: inline-block; white-space: pre; }
.btn:hover .ch { animation: hop .5s var(--spring) both; animation-delay: calc(var(--n) * 24ms); }
.btn:hover .ico--arrow, .btn:hover .ico--out { animation: shoot .55s var(--out); }
.btn:hover .ico--refresh { animation: spin .7s var(--out); }
.btn:hover .ico--x { animation: wiggle .45s var(--out); }
.btn:hover .ico__a { animation: dip .6s var(--spring) infinite alternate; }
.btn:hover .ico--pdf, .btn:hover .ico--check { animation: wiggle .5s var(--out); }
/* the head that peeks over primary buttons */
.btn__peek { position: absolute; right: 16px; bottom: calc(100% + 2px); width: 34px; height: 30px; overflow: hidden; pointer-events: none; }
.btn__peek svg { display: block; width: 100%; transform: translateY(102%); transition: transform .45s var(--spring); }
.btn--primary:hover .btn__peek svg { transform: translateY(42%); }
.btn--primary:active .btn__peek svg { transform: translateY(102%); transition-duration: .08s; }
/* busy: stripes run, the label changes, the penguin comes all the way up and looks around */
.btn.is-busy { pointer-events: none; --d: 2px; transform: translateY(3px); }
.btn.is-busy .btn__clip::after { opacity: 1; animation: barber .6s linear infinite; }
.btn.is-busy .btn__peek svg { transform: translateY(10%); animation: look 1.5s ease-in-out .45s infinite; }
.btn.is-busy .ico { animation: spin 1s linear infinite; }
.btn.is-busy .ch { animation: hop .7s var(--spring) infinite; animation-delay: calc(var(--n) * 60ms); }

/* ------------------------------------------------------------------ forms */
.field { margin-top: 16px; }
.field label { display: inline-block; font-weight: 700; font-size: 14px; margin-bottom: 6px; transform-origin: left center; transition: color .2s, transform .3s var(--spring); }
.field:focus-within label { color: var(--blue); transform: translateX(3px) scale(1.04); }
.field input {
  width: 100%; font: 500 16px/1.3 var(--font); padding: 13px 14px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: 0 4px 0 var(--ice); outline: none; transition: box-shadow .2s, border-color .2s, transform .25s var(--spring);
}
.field input:focus { border-color: var(--blue); box-shadow: 0 4px 0 var(--blue); transform: translateY(-2px); }
.field__wrap { position: relative; }
.field__wrap input { padding-right: 52px; }
.reveal {
  position: absolute; right: 7px; top: 7px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; color: var(--ink-2);
  background: transparent; border: 0; border-radius: 10px; cursor: pointer; transition: background .2s, transform .25s var(--spring);
}
.reveal:hover { background: var(--soft); transform: scale(1.1) rotate(-6deg); }
.reveal[aria-pressed="true"] .ico__slash { stroke-dashoffset: 0; }
.hint { font-size: 13px; font-weight: 600; margin: 8px 0 0; }
.hint--caps { color: var(--warn); animation: pop .4s var(--bounce); }

/* ------------------------------------------------------------------ status chips */
.st {
  display: inline-flex; align-items: center; gap: 7px; font: 700 12.5px/1 var(--font); padding: 6px 11px 6px 9px; white-space: nowrap;
  color: var(--muted); background: var(--soft); border: 2px solid currentColor; border-radius: 999px;
}
.st__dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: currentColor; }
.st-running { color: var(--blue); background: var(--blue-soft); }
.st-running .st__dot::after { content: ""; position: absolute; inset: -2px; border: 2px solid currentColor; border-radius: 50%; animation: ping 1.4s var(--out) infinite; }
.st-queued { color: var(--ink-2); }
.st-queued .st__dot { animation: blinkdot 1.1s steps(2, jump-none) infinite; }
.st-waiting_login, .st-waiting_model { color: var(--warn); background: var(--warn-soft); }
.st-waiting_login .st__dot, .st-waiting_model .st__dot { animation: nap 2s ease-in-out infinite; }
.st-done { color: var(--ok); background: var(--ok-soft); }
.st-failed { color: var(--red-deep); background: var(--red-soft); }
.tone-good { color: var(--ok); }
.tone-mid { color: var(--warn); }
.tone-bad { color: var(--red-deep); }

/* ------------------------------------------------------------------ penguin (front view) */
.pg { display: block; width: 100%; height: auto; overflow: visible; }
.pg__shadow { fill: rgba(15, 29, 48, .16); }
.pg__body { fill: var(--ink); }
.pg__belly, .pg__face { fill: #fff; }
.pg__foot, .pg__beak { fill: var(--accent); stroke: var(--accent-deep); stroke-width: 1.5; stroke-linejoin: round; }
.pg__cheeks { fill: #ffb4ae; opacity: .8; }
.pg__pupils circle, .pg__dot { fill: var(--ink); }
.pg__pupils .pg__glint { fill: #fff; }
.pg__happy path, .pg__shut path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.pg__happy, .pg__shut, .pg__tear, .pg__zzz { display: none; }
.pg__tear { fill: #6fb6ff; stroke: var(--blue); stroke-width: 1; }
.pg__scarf, .pg__scarf-tail { fill: var(--red); stroke: var(--red-deep); stroke-width: 1.5; stroke-linejoin: round; }
.pg__scarf-tail { transform-origin: 72px 84px; animation: flutter 1.7s ease-in-out infinite alternate; }
.pg__flip { fill: #1c2e49; stroke: #07111f; stroke-width: 1.5; stroke-linejoin: round; transition: transform .55s var(--spring); }
.pg__flip--l { transform-origin: 27px 72px; }
.pg__flip--r { transform-origin: 93px 72px; }
.pg__zzz text { font: 800 15px var(--display); fill: var(--ink-2); }
.pg__all { transform-origin: 60px 138px; animation: breathe 3.4s ease-in-out infinite; }
.pg__open { transform-origin: 60px 50px; animation: blink 4.6s infinite; }
.pg__pupils { transform: translate(calc(var(--ex, 0) * 1px), calc(var(--ey, 0) * 1px)); transition: transform .14s linear; }

.pg--idle .pg__flip--r { animation: wave 6s ease-in-out 1.2s infinite; }

.pg--walk .pg__all { animation: waddle .46s ease-in-out infinite alternate; }
.pg--walk .pg__foot--l { animation: step .92s ease-in-out infinite; }
.pg--walk .pg__foot--r { animation: step .92s ease-in-out -.46s infinite; }
.walker--c .pg__pupils { --ex: -2; }
.walker--a .pg__pupils, .walker--b .pg__pupils { --ex: 2; }

.pg--cheer .pg__all { animation: jump .62s var(--out) infinite alternate; }
.pg--cheer .pg__shadow { transform-origin: 60px 143px; animation: shadow .62s var(--out) infinite alternate; }
.pg--cheer .pg__open { display: none; }
.pg--cheer .pg__happy { display: block; }
.pg--cheer .pg__flip--l { animation: cheer-l .31s ease-in-out infinite alternate; }
.pg--cheer .pg__flip--r { animation: cheer-r .31s ease-in-out infinite alternate; }

.pg--sad .pg__all { animation: sigh 3.8s ease-in-out infinite; }
.pg--sad .pg__pupils { --ey: 2.4; }
.pg--sad .pg__tear { display: block; animation: tear 2.6s ease-in infinite; }
.pg--sad .pg__flip--l { transform: rotate(-8deg); }
.pg--sad .pg__flip--r { transform: rotate(8deg); }
.pg--sad .pg__scarf-tail { animation: none; }

.pg--catch .pg__flip--l { transform: rotate(62deg); }
.pg--catch .pg__flip--r { transform: rotate(-62deg); }

.pg--lost .pg__all { animation: waddle 1.6s ease-in-out infinite alternate; }
.pg--lost .pg__shadow { display: none; }

/* ------------------------------------------------------------------ penguin (belly slide) */
.sl { display: block; width: 100%; height: auto; overflow: visible; }
.sl__body, .sl__head { fill: var(--ink); }
.sl__belly, .sl__face { fill: #fff; }
.sl__beak, .sl__feet ellipse { fill: var(--accent); stroke: var(--accent-deep); stroke-width: 1.2; stroke-linejoin: round; }
.sl__open { fill: var(--ink); transform-origin: 84.5px 26.5px; animation: blink 3.8s infinite; }
.sl__shut { display: none; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.sl__scarf, .sl__scarf-tail { fill: var(--red); stroke: var(--red-deep); stroke-width: 1.2; stroke-linejoin: round; }
.sl__scarf-tail { transform-origin: 65px 21px; animation: flutter .32s ease-in-out infinite alternate; }
.sl__flip { fill: #1c2e49; stroke: #07111f; stroke-width: 1.2; transform-origin: 54px 30px; transform: rotate(-18deg); animation: flap .42s ease-in-out infinite alternate; }
.sl__feet { transform-origin: 18px 37px; animation: kick .26s ease-in-out infinite alternate; }

/* ------------------------------------------------------------------ progress track */
.track { --pct: 0; position: relative; margin: 6px 0 22px; padding-top: 66px; }
.track__lane { position: relative; margin-right: 14px; }
.track__rail { height: 22px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; box-shadow: 0 4px 0 var(--ice); }
.track__fill {
  height: 100%; width: calc(var(--pct) * 1%); min-width: 12px; border-right: 2px solid var(--ink); border-radius: 0 999px 999px 0;
  background-color: var(--blue);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .3) 0 10px, transparent 10px 20px); background-size: 28.28px 100%;
  transition: width 1.5s var(--out); animation: barber .7s linear infinite;
}
.track__rider {
  position: absolute; bottom: 13px; left: clamp(84px, calc(var(--pct) * 1%), 100%); width: 94px; margin-left: -84px; pointer-events: none;
  transition: left 1.5s var(--out);
}
.track__rider .sl { animation: glidebob .46s ease-in-out infinite alternate; }
.track__puffs { position: absolute; left: -4px; bottom: 4px; }
.track__puffs i { position: absolute; left: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ice); opacity: 0; animation: puff .9s var(--out) infinite; }
.track__puffs i:nth-child(2) { width: 7px; height: 7px; animation-delay: .22s; bottom: 6px; }
.track__puffs i:nth-child(3) { width: 12px; height: 12px; animation-delay: .45s; bottom: -2px; }
.track__puffs i:nth-child(4) { width: 6px; height: 6px; animation-delay: .67s; bottom: 9px; }
.track__zzz { position: absolute; right: -2px; top: -14px; display: none; font: 800 14px/1 var(--display); color: var(--ink-2); }
.track__zzz i { position: absolute; font-style: normal; opacity: 0; animation: zzz 2.4s ease-out infinite; }
.track__zzz i:nth-child(2) { animation-delay: .8s; }
.track__zzz i:nth-child(3) { animation-delay: 1.6s; }
.track__flag { position: absolute; right: -12px; bottom: 22px; width: 3px; height: 34px; background: var(--ink); border-radius: 2px; }
.track__flag::after {
  content: ""; position: absolute; left: 3px; top: 1px; width: 20px; height: 14px; background: var(--red); border: 2px solid var(--ink); border-left: 0;
  border-radius: 0 4px 4px 0; transform-origin: left center; animation: flag .7s ease-in-out infinite alternate;
}
/* asleep: paused jobs */
.track[data-mood="sleep"] .track__fill { animation-play-state: paused; background-color: #9db4cf; }
.track[data-mood="sleep"] .sl, .track[data-mood="sleep"] .sl__flip, .track[data-mood="sleep"] .sl__feet, .track[data-mood="sleep"] .sl__scarf-tail { animation: none; }
.track[data-mood="sleep"] .track__rider .sl { animation: snooze 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.track[data-mood="sleep"] .sl__open { display: none; }
.track[data-mood="sleep"] .sl__shut { display: block; }
.track[data-mood="sleep"] .track__puffs { display: none; }
.track[data-mood="sleep"] .track__zzz { display: block; }
/* waiting in line: awake, tapping a foot */
.track[data-mood="wait"] .track__fill { animation-duration: 2.4s; }
.track[data-mood="wait"] .track__rider .sl, .track[data-mood="wait"] .sl__scarf-tail { animation: none; }
.track[data-mood="wait"] .sl__flip { animation-duration: 1.4s; }
.track[data-mood="wait"] .sl__feet { animation-duration: .5s; }
.track[data-mood="wait"] .track__puffs { display: none; }
.pct-0 { --pct: 0; } .pct-5 { --pct: 5; } .pct-10 { --pct: 10; } .pct-15 { --pct: 15; } .pct-20 { --pct: 20; } .pct-25 { --pct: 25; }
.pct-30 { --pct: 30; } .pct-35 { --pct: 35; } .pct-40 { --pct: 40; } .pct-45 { --pct: 45; } .pct-50 { --pct: 50; } .pct-55 { --pct: 55; }
.pct-60 { --pct: 60; } .pct-65 { --pct: 65; } .pct-70 { --pct: 70; } .pct-75 { --pct: 75; } .pct-80 { --pct: 80; } .pct-85 { --pct: 85; }
.pct-90 { --pct: 90; } .pct-95 { --pct: 95; } .pct-100 { --pct: 100; }

/* ------------------------------------------------------------------ login */
.page-login main.wrap { display: grid; align-content: start; justify-items: center; padding-top: 4px; }
.login { width: 100%; max-width: 410px; }
.login__peek { position: relative; z-index: 2; width: 148px; margin: 0 auto -20px; animation: drop-in .9s var(--bounce) both; }
.login__peek .pg__shadow { display: none; }
.login__card { padding-top: 36px; margin-bottom: 0; animation: rise .7s var(--out) .1s both; }
.login__title { margin-bottom: 4px; }
.login__sub { color: var(--muted); margin: 0 0 4px; }
.login__card .btn--wide { margin-top: 26px; }
.login__card .alert { margin: 14px 0 0; }
.login__foot { font-size: 13px; color: var(--muted); text-align: center; margin: 20px 0 0; }
.login.is-hiding .pg__flip--l { transform: rotate(-158deg); }
.login.is-hiding .pg__flip--r { transform: rotate(158deg); }
.login.is-hiding.is-peeking .pg__flip--r { transform: rotate(118deg); }
.login.is-hiding .pg__scarf-tail { animation-play-state: paused; }
.login.is-error .login__card { animation: shake .55s var(--out); }
.login.is-error .pg--peek .pg__all { animation: no .32s ease-in-out 3; }
.login.is-busy .pg__flip--l { animation: cheer-l .28s ease-in-out infinite alternate; }
.login.is-busy .pg__flip--r { animation: cheer-r .28s ease-in-out infinite alternate; }

/* ------------------------------------------------------------------ upload */
.hero__head p { margin: 0 0 18px; max-width: 62ch; }
.uploader { margin: 0; }
.drop {
  position: relative; display: flex; align-items: center; gap: 22px; min-height: 150px; padding: 20px 26px; cursor: pointer;
  background: var(--soft); border-radius: 20px; transition: background-color .25s, transform .3s var(--spring);
}
.drop__ants { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.drop__ants rect { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 10 8; animation: ants 1.1s linear infinite; transition: stroke .2s; }
.drop:hover, .drop:focus-within { background: var(--blue-soft); }
.drop:hover rect, .drop:focus-within rect { stroke: var(--blue); animation-duration: .45s; }
.drop.is-over { background: var(--accent-soft); transform: scale(1.02) rotate(-.4deg); }
.drop.is-over rect { stroke: var(--accent-deep); animation-duration: .25s; }
.drop__pg { width: 96px; flex: none; }
.drop:hover .pg--catch .pg__flip--l, .drop.is-over .pg--catch .pg__flip--l { animation: cheer-l .3s ease-in-out infinite alternate; }
.drop:hover .pg--catch .pg__flip--r, .drop.is-over .pg--catch .pg__flip--r { animation: cheer-r .3s ease-in-out infinite alternate; }
.drop.is-over .pg--catch .pg__all { animation: jump .36s var(--out) infinite alternate; }
.drop.has-file .pg--catch .pg__open { display: none; }
.drop.has-file .pg--catch .pg__happy { display: block; }
.drop.has-file .pg--catch .pg__flip--l { transform: rotate(-52deg); animation: none; }
.drop.has-file .pg--catch .pg__flip--r { transform: rotate(52deg); animation: none; }
.drop__text { min-width: 0; }
.drop__title { display: block; font: 800 23px/1.2 var(--display); letter-spacing: -.02em; }
.drop__sub { display: block; color: var(--muted); }
.drop__input { display: block; margin-top: 10px; max-width: 100%; font: inherit; }
.js .drop__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.picked { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 15px; animation: pop .55s var(--bounce); }
.picked__ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border: 2px solid var(--ink); border-radius: 11px; animation: wiggle .6s var(--out) .2s; }
.picked__main { flex: 1; min-width: 0; }
.picked__main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked__x { width: 38px; height: 38px; flex: none; display: grid; place-items: center; padding: 0; color: var(--ink-2); background: transparent; border: 0; border-radius: 10px; cursor: pointer; transition: background .2s, transform .3s var(--spring); }
.picked__x:hover { background: var(--red-soft); color: var(--red-deep); transform: rotate(90deg) scale(1.1); }
.uploader__bar { margin-top: 6px; animation: rise .5s var(--out); }
.uploader__bar .track { margin-bottom: 8px; }
.uploader__pct { font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.uploader__go { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.uploader__go .muted { flex: 1; min-width: 220px; }

/* ------------------------------------------------------------------ file list */
.files__head { display: flex; align-items: center; gap: 12px; margin: 0 4px 14px; }
.files__head h2 { margin: 0; }
.livetag { display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 5px 10px 5px 8px; }
.livetag i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.livetag i::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--red); border-radius: 50%; animation: ping 1.4s var(--out) infinite; }
.joblist { display: grid; gap: 16px; }
.job {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; overflow: hidden;
  padding: 14px 16px; color: var(--ink); text-decoration: none; background: #fff; border: 2px solid var(--ink); border-radius: 19px;
  box-shadow: 0 5px 0 0 var(--ice), 0 5px 0 2px var(--ink);
  transition: transform .28s var(--spring), box-shadow .28s var(--spring);
}
.job:hover { transform: translateY(-4px); box-shadow: 0 9px 0 0 var(--ice), 0 9px 0 2px var(--ink); }
.job:active { transform: translateY(4px); box-shadow: 0 1px 0 0 var(--ice), 0 1px 0 2px var(--ink); transition-duration: .06s; }
.job__ico { width: 46px; height: 46px; display: grid; place-items: center; color: var(--ink-2); background: var(--soft); border: 2px solid var(--ink); border-radius: 13px; transition: transform .35s var(--spring); }
.job__ico .ico { width: 22px; height: 22px; }
.job__ico--done { color: var(--ok); background: var(--ok-soft); }
.job__ico--failed { color: var(--red-deep); background: var(--red-soft); }
.job__ico--running { color: var(--blue); background: var(--blue-soft); animation: nudge-y 1s ease-in-out infinite alternate; }
.job__ico--waiting_login, .job__ico--waiting_model { color: var(--warn); background: var(--warn-soft); }
.job:hover .job__ico { transform: rotate(-8deg) scale(1.08); }
.job__main { min-width: 0; }
.job__name { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job__sub { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sep { display: inline-block; width: 4px; height: 4px; margin: 0 8px; border-radius: 50%; background: currentColor; opacity: .55; vertical-align: middle; }
.job__score { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.15; }
.job__score s { color: var(--muted); font-weight: 600; margin-right: 7px; }
.job__score small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.job__go { display: grid; place-items: center; color: var(--ink); opacity: .35; transform: translateX(-6px); transition: transform .3s var(--spring), opacity .2s; }
.job:hover .job__go { opacity: 1; transform: translateX(2px); }
.job__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--blue-soft); }
.job__bar i {
  display: block; height: 100%; width: calc(var(--pct) * 1%); background-color: var(--blue); border-radius: 0 6px 6px 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 12px); background-size: 16.97px 100%;
  transition: width 1.4s var(--out); animation: barber-sm .6s linear infinite;
}
.job.flash { animation: pop .6s var(--bounce); }
.empty { display: flex; align-items: center; gap: 20px; padding: 22px 26px; background: rgba(255, 255, 255, .65); border: 2px dashed var(--ink-2); border-radius: 20px; }
.empty__pg { width: 84px; flex: none; }
.empty p { margin: 0; }

/* ------------------------------------------------------------------ one file */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px -6px; padding: 6px 12px 6px 6px; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 10px; }
.back:hover .ico { animation: nudge-l .5s var(--out) infinite alternate; }
.jobcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.jobcard__title { margin: 0; overflow-wrap: anywhere; view-transition-name: job-title; }
.now { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.now__pct { flex: none; min-width: 2.6ch; font: 800 68px/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.now__pct i { font-style: normal; font-size: 28px; letter-spacing: 0; color: var(--muted); margin-left: 3px; }
.now__stage { font: 800 21px/1.25 var(--display); letter-spacing: -.015em; margin: 0 0 4px; }
.now__text p:last-child { margin: 0; }
.dots i { display: inline-block; width: 5px; height: 5px; margin-left: 4px; border-radius: 50%; background: currentColor; animation: dot 1.1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0 0 6px; }
.steps__i { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--muted); }
.steps__i > i { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: #fff; border: 2px solid var(--line); border-radius: 50%; transition: background-color .3s, border-color .3s, transform .4s var(--spring); }
.steps__i .ico { width: 14px; height: 14px; stroke-width: 3.2; opacity: 0; transform: scale(.2) rotate(-40deg); transition: opacity .2s, transform .45s var(--spring); }
.steps__i.is-done { color: var(--ink); }
.steps__i.is-done > i { background: var(--ok); border-color: var(--ink); }
.steps__i.is-done .ico { opacity: 1; transform: none; }
.steps__i.is-now { color: var(--ink); font-weight: 800; }
.steps__i.is-now > i { background: var(--accent); border-color: var(--ink); animation: throb 1s ease-in-out infinite alternate; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0; }
.facts > div { padding: 10px 14px; background: var(--soft); border: 2px solid var(--line); border-radius: 15px; transition: transform .3s var(--spring), border-color .2s; }
.facts > div:hover { transform: translateY(-3px) rotate(-.8deg); border-color: var(--ink); }
dt { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
dd { margin: 2px 0 0; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.jobcard__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.jobcard__foot form, .jobcard__foot p { margin: 0; }
.result { display: flex; align-items: center; gap: 30px; margin: 18px 0 26px; }
.result__pg { width: 150px; flex: none; cursor: pointer; }
.result--sad .result__pg { width: 120px; cursor: default; }
.result__main { min-width: 0; }
.result__msg { font-weight: 600; font-size: 17px; }
.result__main .btn { margin-top: 8px; }
.kicker { font: 800 13px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ok); margin: 0 0 14px; }
.kicker--bad { color: var(--red-deep); }
.result--sad .kicker:not(.kicker--bad) { color: var(--muted); }
.gauges { display: flex; align-items: center; gap: 18px; }
.gauge { --g: var(--muted); position: relative; width: 132px; text-align: center; }
.gauge svg { display: block; width: 100%; transform: rotate(-90deg); }
.gauge__bg { fill: none; stroke: var(--line); stroke-width: 13; }
.gauge__val { fill: none; stroke: var(--g); stroke-width: 13; animation: ring 1.7s var(--out) .35s both; }
.gauge--good { --g: var(--ok); }
.gauge--good .gauge__bg { stroke: #bfe9d3; }
.gauge--good .gauge__num b { color: var(--ok); }
.gauge--mid { --g: var(--warn); }
.gauge--bad { --g: var(--red); }
.gauge__num { position: absolute; left: 0; right: 0; top: 0; height: 132px; display: flex; align-items: center; justify-content: center; font: 800 36px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gauge__num i { font-style: normal; font-size: 17px; color: var(--muted); margin-left: 2px; }
.gauge__label { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.gauges__arrow { color: var(--ink-2); margin-bottom: 26px; animation: nudge-r .7s ease-in-out infinite alternate; }
.gauges__arrow .ico { width: 30px; height: 30px; }
.downloads { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 8px; }
.notes { margin-top: 4px; padding: 16px 20px; background: var(--accent-soft); border: 2px dashed var(--accent-deep); border-radius: 17px; }
.notes h2 { font-size: 16px; margin-bottom: 6px; }
.notes ul { margin: 0; padding-left: 20px; }
.notes li { margin-bottom: 5px; overflow-wrap: anywhere; }
.confetti { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -24px; left: var(--x); width: 10px; height: 16px; background: var(--c); border: 1.5px solid var(--ink); transform: rotate(var(--r)); animation: confetti var(--t) cubic-bezier(.3, .5, .5, 1) var(--dl) forwards; }
.confetti i.round { width: 12px; height: 12px; border-radius: 50%; }

/* ------------------------------------------------------------------ admin */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.tile { padding: 12px 16px; background: #fff; border: 2px solid var(--ink); border-radius: 17px; box-shadow: 0 5px 0 0 var(--ice), 0 5px 0 2px var(--ink); transition: transform .3s var(--spring); }
.tile:hover { transform: translateY(-3px) rotate(-1deg); }
.tile b { display: block; font: 800 30px/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.banner { display: flex; align-items: center; gap: 22px; background: var(--warn-soft); }
.banner__pg { width: 92px; flex: none; }
.banner form { margin: 12px 0 0; }
form.inline { display: inline-flex; align-items: center; gap: 12px; margin: 0; }
.table { overflow-x: auto; margin: 0 -8px; padding-bottom: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--line); }
th { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.break { min-width: 220px; }
tbody tr { transition: background-color .2s; }
tbody tr:hover { background: var(--soft); }
tbody tr:last-child td { border-bottom: 0; }
table.small { font-size: 13px; }
.links a { display: inline-block; margin-right: 12px; font-weight: 600; text-decoration: none; }
.links a:hover { text-decoration: underline; }
details summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.ev--login_failed td, .ev--account_locked td, .ev--global_login_lock td, .ev--upload_rejected td, .ev--job_failed td { color: var(--red-deep); }

/* ------------------------------------------------------------------ error page, toast, dialog */
.lost { text-align: center; padding-top: 8px; }
.lost h1 { margin-top: 4px; }
.lost .btn { margin-top: 14px; }
.lost__floe { position: relative; width: 150px; margin: 0 auto; animation: floe 3.2s ease-in-out infinite alternate; }
.lost__ice { display: block; height: 30px; margin: -22px -30px 0; background: #fff; border: 2px solid var(--ink); border-radius: 16px 22px 26px 18px / 14px 14px 20px 18px; box-shadow: 0 9px 0 0 var(--ice), 0 9px 0 2px var(--ink); }
.lost__ripple { display: block; height: 4px; width: 120px; margin: 22px auto 0; border-radius: 4px; background: #fff; opacity: .9; animation: throb 1.6s ease-in-out infinite alternate; }
.lost__code { font: 800 92px/1 var(--display); letter-spacing: -.05em; margin: 18px 0 0; }
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 60; max-width: calc(100vw - 32px); padding: 12px 18px; font-weight: 600; color: #fff; background: var(--ink);
  border-radius: 15px; box-shadow: 0 5px 0 rgba(15, 29, 48, .3); translate: -50% 0; animation: toast .55s var(--bounce);
}
.ask { width: min(380px, calc(100vw - 32px)); padding: 26px; color: var(--ink); text-align: center; background: #fff; border: 2px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 0 var(--ice), 0 8px 0 2px var(--ink); animation: pop .5s var(--bounce); }
.ask::backdrop { background: rgba(15, 29, 48, .5); animation: fade .25s; }
.ask .pg { width: 84px; margin: 0 auto 10px; }
.ask p { font-weight: 700; font-size: 17px; margin: 0 0 20px; }
.ask__row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------ motion */
@keyframes snow { to { transform: translate3d(0, 520px, 0); } }
@keyframes sway { from { transform: translateX(-18px); } to { transform: translateX(18px); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(5px); } }
@keyframes drift { to { stroke-dashoffset: -150; } }
@keyframes parade { from { transform: translateX(-70px); } to { transform: translateX(calc(100vw + 20px)); } }
@keyframes glide { 0% { transform: translateX(-90px); } 24% { transform: translateX(calc(100vw + 20px)); } 100% { transform: translateX(calc(100vw + 20px)); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.98); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-70px) rotate(-12deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.82); } }
@keyframes fade { from { opacity: 0; } }
@keyframes toast { from { opacity: 0; transform: translateY(30px) scale(.9); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 18% { transform: translateX(-10px) rotate(-.6deg); } 36% { transform: translateX(9px) rotate(.5deg); } 54% { transform: translateX(-6px); } 72% { transform: translateX(4px); } 90% { transform: translateX(-2px); } }
@keyframes no { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-7deg); } 70% { transform: rotate(7deg); } }
@keyframes shine { to { left: 130%; } }
@keyframes ripple { to { transform: scale(38); opacity: 0; } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px) rotate(-5deg); } 70% { transform: translateY(1px); } }
@keyframes shoot { 0% { transform: translateX(0); opacity: 1; } 45% { transform: translateX(16px); opacity: 0; } 46% { transform: translateX(-16px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-16deg) scale(1.12); } 60% { transform: rotate(12deg) scale(1.12); } }
@keyframes dip { from { transform: translateY(-2px); } to { transform: translateY(3px); } }
@keyframes look { 0%, 100% { transform: translateY(10%) rotate(0); } 25% { transform: translateY(6%) rotate(-12deg); } 60% { transform: translateY(6%) rotate(12deg); } }
@keyframes barber { to { background-position: 28.28px 0; } }
@keyframes barber-sm { to { background-position: 16.97px 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes blinkdot { 0% { opacity: 1; } 100% { opacity: .25; } }
@keyframes nap { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .6; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018, .982); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(.08); } }
@keyframes flutter { from { transform: rotate(-9deg); } to { transform: rotate(10deg); } }
@keyframes wave { 0%, 62%, 100% { transform: rotate(0); } 68% { transform: rotate(-128deg); } 74% { transform: rotate(-100deg); } 80% { transform: rotate(-128deg); } 86% { transform: rotate(-100deg); } 92% { transform: rotate(-128deg); } }
@keyframes waddle { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes step { 0%, 50%, 100% { transform: translateY(0); } 25% { transform: translateY(-4px); } }
@keyframes jump { from { transform: translateY(0) scale(1.05, .93); } to { transform: translateY(-24px) scale(.97, 1.05); } }
@keyframes shadow { from { transform: scale(1); opacity: 1; } to { transform: scale(.6); opacity: .5; } }
@keyframes cheer-l { from { transform: rotate(104deg); } to { transform: rotate(138deg); } }
@keyframes cheer-r { from { transform: rotate(-104deg); } to { transform: rotate(-138deg); } }
@keyframes sigh { 0%, 100% { transform: scale(1) translateY(0); } 45% { transform: scale(1.02, .97) translateY(1px); } 60% { transform: scale(.99, 1.01); } }
@keyframes tear { 0%, 20% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }
@keyframes flap { from { transform: rotate(-30deg); } to { transform: rotate(-6deg); } }
@keyframes kick { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
@keyframes glidebob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-3px) rotate(1.5deg); } }
@keyframes snooze { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.06); } }
@keyframes puff { 0% { transform: translate(0, 0) scale(.4); opacity: .95; } 100% { transform: translate(-46px, -16px) scale(1.5); opacity: 0; } }
@keyframes zzz { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(16px, -30px) scale(1.3); opacity: 0; } }
@keyframes flag { from { transform: skewY(-10deg) scaleX(1); } to { transform: skewY(10deg) scaleX(.88); } }
@keyframes ants { to { stroke-dashoffset: -18; } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-5px); opacity: 1; } }
@keyframes throb { from { transform: scale(1); } to { transform: scale(1.18); } }
@keyframes ring { from { stroke-dashoffset: 100; } }
@keyframes nudge-r { from { transform: translateX(-4px); } to { transform: translateX(5px); } }
@keyframes nudge-l { from { transform: translateX(0); } to { transform: translateX(-5px); } }
@keyframes nudge-y { from { transform: translateY(1px); } to { transform: translateY(-3px); } }
@keyframes confetti { to { transform: translate3d(var(--dx), 108vh, 0) rotate(calc(var(--r) + 760deg)); } }
@keyframes floe { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(8px) rotate(3deg); } }

/* pages cross-fade and the file name glides from the list to its own page (browsers without it just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade .18s var(--out) reverse both; }
::view-transition-new(root) { animation: fade .3s var(--out) both; }
::view-transition-group(job-title) { animation-duration: .45s; animation-timing-function: var(--out); }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 14px; }
  main.wrap { padding-bottom: 190px; }
  .scene { height: 150px; }
  .walker { width: 36px; }
  .walker--b { width: 28px; }
  .walker--c { width: 32px; }
  .glider { width: 50px; }
  .top__row { height: 66px; }
  .brand { font-size: 19px; }
  .brand__mark { width: 38px; height: 38px; }
  .who { display: none; }
  h1 { font-size: 25px; }
  .card { padding: 20px 18px; border-radius: 20px; margin-bottom: 30px; }
  .drop { flex-direction: column; text-align: center; gap: 8px; padding: 18px; }
  .drop__pg { width: 84px; }
  .drop__title { font-size: 20px; }
  .uploader__go .btn { width: 100%; }
  .job { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico main main" "ico st score"; gap: 8px 12px; padding: 13px 14px 16px; }
  .job__ico { grid-area: ico; width: 42px; height: 42px; align-self: start; }
  .job__main { grid-area: main; }
  .job__name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; line-height: 1.3; }
  .job .st { grid-area: st; justify-self: start; }
  .job__score { grid-area: score; font-size: 14px; }
  .job__score small { display: inline; margin-left: 6px; }
  .job__go { display: none; }
  .jobcard__head { flex-direction: column-reverse; gap: 10px; }
  .now { gap: 14px; }
  .now__pct { font-size: 52px; }
  .now__pct i { font-size: 22px; }
  .now__stage { font-size: 18px; }
  .steps__i { font-size: 11px; }
  .steps__i > i { width: 24px; height: 24px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result { flex-direction: column; text-align: center; gap: 12px; }
  .result__pg { width: 118px; }
  .gauges { justify-content: center; gap: 8px; }
  .gauge { width: 112px; }
  .gauge__num { height: 112px; font-size: 30px; }
  .downloads .btn { width: 100%; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner { flex-direction: column; text-align: center; }
}

/* ------------------------------------------------------------------ calm mode */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .snow, .parade { display: none; }
  @view-transition { navigation: none; }
}
