/* JobTracker client tracker (R07).
   Every token, size, radius, shadow, duration and easing below is transcribed
   from .local/design-admin-export-r2/JobTracker Client v2.dc.html — do not
   re-derive them by eye. The export ships a light theme only; the dark values
   are the ones the admin export defines for the same token names (D32).
   The export's inline styles cannot be used as-is: CSP forbids style
   attributes, so each one became a class with the same values. */

:root {
  color-scheme: light;
  --bg: #f2f2f7;
  --surface: #fff;
  --fill-2: rgba(118, 118, 128, .12);
  --label: #1d1d1f;
  --label-2: rgba(60, 60, 67, .62);
  --label-3: rgba(60, 60, 67, .38);
  --separator: rgba(60, 60, 67, .16);
  --hairline: rgba(0, 0, 0, .05);
  --rim: rgba(255, 255, 255, .75);
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, .12);
  --accent-line: rgba(10, 132, 255, .24);
  --accent-glow: rgba(10, 132, 255, .36);
  --green: #34c759;
  --amber: #ff9500;
  --amber-soft: rgba(255, 149, 0, .14);
  --amber-line: rgba(255, 149, 0, .32);
  --amber-text: #8a5200;
  --amber-glow: rgba(255, 149, 0, .40);
  --red: #ff3b30;
  --red-soft: rgba(255, 59, 48, .12);
  --red-line: rgba(255, 59, 48, .30);
  --red-text: #b3261e;
  --red-glow: rgba(255, 59, 48, .36);
  --glass-bg: rgba(255, 255, 255, .70);
  --pill-shadow: rgba(0, 0, 0, .14);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, .07);
  --focus: rgba(10, 132, 255, .35);
  --aurora-a: rgba(10, 132, 255, .28);
  --aurora-b: rgba(94, 92, 230, .22);
  /* layout scale, from the export's pagePad/maxW ladder */
  --pagepad: 20px;
  --maxw: 640px;
  --headpad-top: 20px;
  --headpad-bottom: 20px;
  --headmax: 100%;
  --barpad-y: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000;
    --surface: #1c1c1e;
    --fill-2: #2c2c2e;
    --label: #fff;
    --label-2: rgba(235, 235, 245, .62);
    --label-3: rgba(235, 235, 245, .38);
    --separator: rgba(84, 84, 88, .55);
    --hairline: rgba(255, 255, 255, .06);
    --rim: rgba(255, 255, 255, .08);
    --accent-soft: rgba(10, 132, 255, .18);
    --accent-line: rgba(10, 132, 255, .34);
    --accent-glow: rgba(10, 132, 255, .42);
    --green: #30d158;
    --amber: #ff9f0a;
    --amber-soft: rgba(255, 159, 10, .20);
    --amber-line: rgba(255, 159, 10, .38);
    --amber-text: #ff9f0a;
    --amber-glow: rgba(255, 159, 10, .44);
    --red: #ff453a;
    --red-soft: rgba(255, 69, 58, .18);
    --red-line: rgba(255, 69, 58, .36);
    --red-text: #ff453a;
    --red-glow: rgba(255, 69, 58, .42);
    --glass-bg: rgba(28, 28, 30, .72);
    --pill-shadow: rgba(0, 0, 0, .55);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .4);
    --focus: rgba(10, 132, 255, .5);
    --aurora-a: rgba(10, 132, 255, .40);
    --aurora-b: rgba(94, 92, 230, .34);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000;
  --surface: #1c1c1e;
  --fill-2: #2c2c2e;
  --label: #fff;
  --label-2: rgba(235, 235, 245, .62);
  --label-3: rgba(235, 235, 245, .38);
  --separator: rgba(84, 84, 88, .55);
  --hairline: rgba(255, 255, 255, .06);
  --rim: rgba(255, 255, 255, .08);
  --accent-soft: rgba(10, 132, 255, .18);
  --accent-line: rgba(10, 132, 255, .34);
  --accent-glow: rgba(10, 132, 255, .42);
  --green: #30d158;
  --amber: #ff9f0a;
  --amber-soft: rgba(255, 159, 10, .20);
  --amber-line: rgba(255, 159, 10, .38);
  --amber-text: #ff9f0a;
  --amber-glow: rgba(255, 159, 10, .44);
  --red: #ff453a;
  --red-soft: rgba(255, 69, 58, .18);
  --red-line: rgba(255, 69, 58, .36);
  --red-text: #ff453a;
  --red-glow: rgba(255, 69, 58, .42);
  --glass-bg: rgba(28, 28, 30, .72);
  --pill-shadow: rgba(0, 0, 0, .55);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .4);
  --focus: rgba(10, 132, 255, .5);
  --aurora-a: rgba(10, 132, 255, .40);
  --aurora-b: rgba(94, 92, 230, .34);
}

/* The status of the current stage colours the whole tracker, exactly as the
   export's `mode` did: normal = accent, attention = amber, failed = red. */
:root {
  --mode: var(--accent);
  --mode-soft: var(--accent-soft);
  --mode-line: var(--accent-line);
  --mode-text: var(--accent);
  --mode-glow: var(--accent-glow);
}
:root[data-mode="attention"] {
  --mode: var(--amber);
  --mode-soft: var(--amber-soft);
  --mode-line: var(--amber-line);
  --mode-text: var(--amber-text);
  --mode-glow: var(--amber-glow);
}
:root[data-mode="failed"] {
  --mode: var(--red);
  --mode-soft: var(--red-soft);
  --mode-line: var(--red-line);
  --mode-text: var(--red-text);
  --mode-glow: var(--red-glow);
}

@media (min-width: 520px) { :root { --pagepad: 28px; } }
@media (min-width: 620px) { :root { --barpad-y: 12px; --headpad-top: 30px; --headpad-bottom: 26px; } }
@media (min-width: 760px) { :root { --pagepad: 40px; } }
@media (min-width: 900px) { :root { --maxw: 1180px; --headmax: 760px; } }

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.005em;
}
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .92; }
input, button { font: inherit; color: inherit; }
input::placeholder { color: var(--label-3); }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@keyframes jt-rise { from { opacity: 0; transform: translateY(20px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes jt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jt-stamp { 0% { opacity: 0; transform: scale(.3); } 64% { opacity: 1; transform: scale(1.16); } 100% { opacity: 1; transform: scale(1); } }
@keyframes jt-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes jt-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes jt-check { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes jt-spin { to { transform: rotate(360deg); } }
@keyframes jt-halo { 0%, 100% { box-shadow: 0 0 0 0 var(--halo); } 58% { box-shadow: 0 0 0 14px transparent; } }
@keyframes jt-blob-a { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(52px, -38px, 0) scale(1.2); } }
@keyframes jt-blob-b { 0%, 100% { transform: translate3d(0, 0, 0) scale(1.14); } 50% { transform: translate3d(-42px, 48px, 0) scale(1); } }
@keyframes jt-logo-in { 0% { opacity: 0; transform: scale(.72); filter: blur(12px); } 100% { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes jt-wipe { from { clip-path: circle(155% at 50% 38%); } to { clip-path: circle(0% at 50% 38%); } }
@keyframes jt-pop-out { 0% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes jt-slide-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes jt-pill-in { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes jt-pop-in { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes jt-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes jt-logo-burst { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0ms !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- shell ---------- */
.shell { position: relative; min-height: 100vh; }
.aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob-a, .blob-b { position: absolute; border-radius: 50%; }
.blob-a {
  top: -16%; left: -18%; width: 74%; height: 54%;
  background: radial-gradient(circle at 30% 30%, var(--aurora-a), transparent 70%);
  filter: blur(60px);
  animation: jt-blob-a 18s ease-in-out infinite;
}
.blob-b {
  bottom: -20%; right: -16%; width: 70%; height: 52%;
  background: radial-gradient(circle at 60% 40%, var(--aurora-b), transparent 70%);
  filter: blur(66px);
  animation: jt-blob-b 23s ease-in-out infinite;
}
.page { position: relative; width: 100%; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- gate ---------- */
.gate {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 440px; margin: 0 auto; padding: 52px 22px 80px;
}
.gate-logo { animation: jt-logo-in .8s cubic-bezier(.32, .72, 0, 1) both; }
.gate-logo img { width: 64px; height: auto; margin: 0 auto 24px; display: block; }
.gate h1 {
  font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.028em;
  margin: 0 0 10px; text-align: center; color: var(--label);
  animation: jt-rise .7s cubic-bezier(.32, .72, 0, 1) .1s both;
}
.gate-lede {
  font-size: 17px; line-height: 1.45; color: var(--label-2); margin: 0 0 34px; text-align: center;
  animation: jt-rise .7s cubic-bezier(.32, .72, 0, 1) .18s both;
}
.gate-card {
  border-radius: 20px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--hairline); box-shadow: var(--shadow-card);
  animation: jt-rise .7s cubic-bezier(.32, .72, 0, 1) .26s both;
}
.gate-row {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; min-height: 52px;
  border-bottom: 1px solid var(--separator); cursor: text;
}
.gate-row-date { cursor: pointer; }
.gate-row span { font-size: 15px; color: var(--label-2); white-space: nowrap; flex-shrink: 0; }
.gate-row input {
  flex: 1; border: none; background: transparent; font-size: 17px; font-weight: 500;
  outline: none; text-align: right; min-width: 0;
}
.gate-row input[type="text"] { letter-spacing: .03em; }
/* The date is typed or pasted as plain text, so it keeps normal tracking. */
#gate-dob { letter-spacing: normal; }
.gate-remember {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; min-height: 52px; cursor: pointer; border-bottom: none;
}
.gate-remember span { font-size: 17px; color: var(--label); }
.gate-remember input { width: 22px; height: 22px; accent-color: var(--accent); cursor: pointer; flex: none; }
.gate-submit {
  width: 100%; margin-top: 20px; min-height: 54px; border: none; border-radius: 17px;
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer;
  box-shadow: 0 10px 26px var(--accent-glow);
  transition: transform .22s cubic-bezier(.32, .72, 0, 1);
  animation: jt-rise .7s cubic-bezier(.32, .72, 0, 1) .34s both;
}
.gate-submit:active { transform: scale(.968); }
.gate-submit[disabled] { opacity: .6; cursor: default; }
.gate-note {
  display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px;
  color: var(--label-3); animation: jt-fade .7s .5s both;
}
.gate-note span { font-size: 13px; }
.gate-note svg { width: 15px; height: 15px; }
/* Error and retry states are not drawn in the export; they use its own tokens
   and stay inside the gate card's column so no fictional client can appear. */
.gate-error {
  margin: 16px 2px 0; text-align: center; font-size: 15px; line-height: 1.45;
  color: var(--red-text); animation: jt-fade .3s both;
}

/* ---------- boot ---------- */
.boot {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 34px; padding: 44px 26px;
}
.boot-ring { position: relative; width: 104px; height: 104px; animation: jt-pop-out .7s cubic-bezier(.32, .72, 0, 1) both; }
.boot-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.boot-ring .ring-track { fill: none; stroke: var(--hairline); stroke-width: 2; }
.boot-ring .ring-fast {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 72 217;
  transform-origin: 52px 52px; animation: jt-spin 1.25s cubic-bezier(.5, .15, .5, .85) infinite;
}
.boot-ring .ring-slow {
  fill: none; stroke: var(--accent-line); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 40 186;
  transform-origin: 52px 52px; animation: jt-spin 1.9s linear infinite reverse;
}
.boot-ring img { position: absolute; inset: 0; margin: auto; width: 40px; height: auto; }
.boot-rows { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 6px; }
.boot-row { display: flex; align-items: center; gap: 13px; padding: 11px 4px; transition: opacity .4s ease; }
.boot-row.is-waiting { opacity: .4; }
.boot-mark { position: relative; width: 26px; height: 26px; flex-shrink: 0; }
.boot-done {
  position: absolute; inset: 0; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  animation: jt-stamp .45s cubic-bezier(.32, .72, 0, 1) both;
}
.boot-done svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.boot-done path { stroke-dasharray: 30; animation: jt-check .4s cubic-bezier(.32, .72, 0, 1) .1s both; }
.boot-spin { position: absolute; inset: 0; }
.boot-spin .spin-track { fill: none; stroke: var(--fill-2); stroke-width: 2.4; }
.boot-spin .spin-arc {
  fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 20 46;
  transform-origin: 13px 13px; animation: jt-spin .9s linear infinite;
}
.boot-wait { position: absolute; inset: 0; border-radius: 50%; border: 2.4px solid var(--fill-2); }
.boot-label { font-size: 16px; font-weight: 500; color: var(--label); letter-spacing: -.01em; }
.boot-row.is-active .boot-label { font-weight: 600; }
.boot-row.is-done .boot-label { color: var(--label-2); }

/* ---------- reveal ---------- */
.reveal {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px; background: var(--bg);
  animation: jt-wipe .9s cubic-bezier(.32, .72, 0, 1) .5s forwards;
}
.reveal-badge { position: relative; width: 76px; height: 76px; }
.reveal-burst {
  position: absolute; inset: -14px; border-radius: 50%; border: 2px solid var(--green);
  animation: jt-logo-burst .9s cubic-bezier(.32, .72, 0, 1) .16s both;
}
.reveal-mark {
  position: absolute; inset: 0; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  animation: jt-stamp .6s cubic-bezier(.32, .72, 0, 1) both;
}
.reveal-mark svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.reveal-mark path { stroke-dasharray: 30; animation: jt-check .5s cubic-bezier(.32, .72, 0, 1) .22s both; }
.reveal-text { font-size: 20px; font-weight: 600; letter-spacing: -.015em; animation: jt-fade .5s .28s both; }

/* ---------- intro sheet ---------- */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 210; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: jt-fade .4s both;
}
.sheet {
  width: 100%; max-width: 520px; max-height: 86vh; overflow-y: auto;
  border-radius: 26px 26px 0 0; padding: 12px 24px 88px;
  background: var(--glass-bg); backdrop-filter: saturate(200%) blur(36px); -webkit-backdrop-filter: saturate(200%) blur(36px);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .22), inset 0 1px 0 var(--rim);
  animation: jt-sheet-up .72s cubic-bezier(.32, .72, 0, 1) both;
}
.sheet-grab { width: 40px; height: 5px; border-radius: 999px; background: var(--label-3); opacity: .35; margin: 0 auto 20px; }
.sheet img { width: 46px; height: auto; display: block; margin: 0 auto 16px; animation: jt-pop-in .55s cubic-bezier(.32, .72, 0, 1) .18s both; }
.sheet h2 {
  font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.022em; text-align: center;
  margin: 0 0 6px; animation: jt-rise .6s cubic-bezier(.32, .72, 0, 1) .24s both;
}
.sheet-lede {
  font-size: 15px; line-height: 1.45; color: var(--label-2); text-align: center; margin: 0 0 22px;
  animation: jt-fade .5s .32s both;
}
.sheet-rows { display: flex; flex-direction: column; gap: 16px; }
.sheet-row { display: flex; gap: 12px; align-items: flex-start; animation: jt-rise .5s cubic-bezier(.32, .72, 0, 1) both; }
.sheet-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--mode-soft); color: var(--mode-text);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  flex-shrink: 0; transition: background .35s ease, color .35s ease;
}
.sheet-text { font-size: 15px; line-height: 1.45; color: var(--label-2); }
.sheet-accept {
  position: sticky; bottom: 0; width: 100%; margin-top: 26px; min-height: 54px; border: none;
  border-radius: 17px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600;
  cursor: pointer; box-shadow: 0 10px 26px var(--accent-glow);
  transition: transform .22s cubic-bezier(.32, .72, 0, 1);
  animation: jt-rise .6s cubic-bezier(.32, .72, 0, 1) .5s both;
}
.sheet-accept:active { transform: scale(.968); }

/* ---------- tracker: identity bar ---------- */
.tracker { flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.bar {
  position: sticky; top: 0; z-index: 70; transition: box-shadow .3s ease;
  background: var(--glass-bg); backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px);
  border-bottom: 1px solid var(--separator); box-shadow: inset 0 1px 0 var(--rim);
}
.bar-inner {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: var(--barpad-y) var(--pagepad);
}
.bar-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--mode-soft); color: var(--mode-text);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
  flex-shrink: 0; transition: background .35s ease, color .35s ease;
}
.bar-body { flex: 1; min-width: 0; }
.bar-name { font-size: 17px; font-weight: 600; letter-spacing: -.016em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; min-width: 0; }
.bar-sub-icon { display: inline-flex; color: var(--label-3); flex-shrink: 0; }
.bar-sub-icon svg { width: 14px; height: 14px; stroke-width: 1.8; }
.vacancy-chip {
  flex: 1; min-width: 0; max-width: 100%; padding: 2px 9px; border-radius: 7px; background: var(--fill-2);
  font-size: 13px; font-weight: 500; color: var(--label);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 620px) { .vacancy-chip { flex: 0 1 auto; } }
.stage-pill {
  font-size: 13px; font-weight: 600; color: var(--mode-text); background: var(--mode-soft);
  border-radius: 999px; padding: 5px 12px; white-space: nowrap; flex-shrink: 0; align-self: center;
  transition: background .35s ease, color .35s ease;
}
/* The tint runs edge to edge — a coloured block that stops mid-window looks
   like a mistake — while its content keeps the column of the export. */
.notice {
  background: var(--mode-soft); border-top: 1px solid var(--mode-line);
  animation: jt-slide-in .5s cubic-bezier(.32, .72, 0, 1) both; transition: background .35s ease;
}
.notice-inner {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 8px max(calc(var(--pagepad) - 6px), 14px) 8px var(--pagepad);
}
/* The export's sentence was one line, so its icon sat centred; a real sentence
   runs to three or four, and a centred icon then floats beside nothing. */
.notice-icon {
  display: inline-flex; color: var(--mode); flex-shrink: 0; transition: color .35s ease;
  align-self: flex-start; margin-top: 2px;
}
.notice-icon svg { width: 18px; height: 18px; stroke-width: 1.9; }
.notice-text {
  flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; font-weight: 500;
  color: var(--mode-text); transition: color .35s ease;
}
.notice-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border: none; border-radius: 999px; background: var(--surface); color: var(--mode-text);
  font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: transform .22s cubic-bezier(.32, .72, 0, 1), color .35s ease;
}
.notice-btn:active { transform: scale(.94); }

/* ---------- tracker: content ---------- */
.content { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 8px var(--pagepad) 128px; }
.page-head { padding: var(--headpad-top) 2px var(--headpad-bottom); max-width: var(--headmax); }
.page-head h1 {
  font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.026em; margin: 0; color: var(--label);
  animation: jt-rise .7s cubic-bezier(.32, .72, 0, 1) .06s both;
}
.page-head p { font-size: 17px; line-height: 1.45; color: var(--label-2); margin: 8px 0 0; animation: jt-fade .6s .16s both; }
.route-grid { display: flex; flex-direction: column; }
.col-b { min-width: 0; }
@media (min-width: 900px) {
  .route-grid { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 28px; align-items: start; }
  /* The export parked the sticky column at 104px, the height of its own bar.
     Ours grows when the action strip appears, so the offset is measured. */
  .col-a { position: sticky; top: var(--header-h, 104px); display: flex; flex-direction: column; }
}

.overview {
  border-radius: 20px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card); animation: jt-rise .7s cubic-bezier(.32, .72, 0, 1) .2s both;
}
.overview-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.overview-step { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.overview-done { font-size: 13px; color: var(--label-3); }
/* Строка о втором активном этапе: тем же голосом, что и описание, но тише. */
.now-parallel {
  font-size: 15px; line-height: 1.45; color: var(--label-2);
  margin: 10px 0 0; padding: 10px 12px;
  background: var(--fill-2); border-radius: 12px;
}

.overview-bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; margin: 14px 0 10px; }
.overview-bar {
  flex: 1; height: 8px; border-radius: 999px; background: var(--fill-2); transform-origin: left;
  transition: height .35s ease, background .35s ease, box-shadow .35s ease;
  animation: jt-grow .4s cubic-bezier(.32, .72, 0, 1) both;
}
.overview-bar.is-done { background: var(--green); }
/* Активный этап виден, даже когда он не главный на экране: работа может идти по
   следующему, а этот всё ещё ждёт действия. Серой полоски посреди пройденных
   быть не должно. */
.overview-bar.is-running { background: var(--accent); }
.overview-bar.is-attention { background: var(--amber); }
.overview-bar.is-failed { background: var(--red); }
.overview-bar.is-now { height: 16px; background: var(--mode); box-shadow: 0 0 0 3px var(--mode-soft); }
.overview-ends { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.overview-ends span { font-size: 13px; color: var(--label-3); }
.overview-ends .overview-finish { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }

.now-card {
  border-radius: 24px; padding: 24px; margin-top: 14px; background: var(--surface);
  border: 1px solid var(--mode-line); box-shadow: 0 8px 26px var(--mode-soft), var(--shadow-card);
  transition: border-color .35s ease, box-shadow .35s ease;
  animation: jt-rise .75s cubic-bezier(.32, .72, 0, 1) .28s both;
}
.now-head { display: flex; align-items: center; gap: 9px; }
.now-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--mode);
  --halo: var(--mode-glow); animation: jt-halo 2.6s ease-out 1s infinite;
}
.now-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mode-text); }
.now-title { font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; color: var(--label); }
.now-details { font-size: 15px; line-height: 1.45; color: var(--label-2); margin: 8px 0 0; }
.eta {
  display: flex; align-items: center; gap: 9px; margin-top: 18px; padding: 11px 15px; border-radius: 14px;
  background: var(--mode-soft); color: var(--mode-text); width: fit-content; flex-wrap: wrap;
  transition: background .35s ease, color .35s ease;
  animation: jt-fade .5s cubic-bezier(.32, .72, 0, 1) .5s both;
}
.eta-icon { display: inline-flex; flex-shrink: 0; }
.eta-icon svg { width: 17px; height: 17px; stroke-width: 1.8; }
.eta-text { font-size: 15px; font-weight: 600; }
.eta-left { font-size: 14px; font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }
.now-next {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--separator); animation: jt-fade .5s .62s both;
}
.now-next-label {
  font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--label-3); flex-shrink: 0;
}
.now-next-value { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; color: var(--label-2); }

.list-head {
  display: flex; align-items: baseline; justify-content: space-between; margin: 30px 4px 14px;
  animation: jt-fade .6s .1s both;
}
@media (min-width: 900px) { .list-head { margin: 4px 4px 14px; } }
.list-head-title { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--label-3); }
.list-head-count { font-size: 13px; color: var(--label-3); }
.stage-list { display: flex; flex-direction: column; }
.stage-row { display: flex; gap: 16px; }
.stage-rail { display: flex; flex-direction: column; align-items: center; width: 34px; flex-shrink: 0; }
.stage-dot {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0; z-index: 1; margin-top: 2px;
  background: var(--fill-2); color: var(--label-3);
  transition: background .35s ease, box-shadow .35s ease;
  animation: jt-stamp .5s cubic-bezier(.32, .72, 0, 1) both;
}
.stage-dot.is-done { background: var(--green); color: #fff; }
/* Этап может идти параллельно с тем, что ждёт действия: в списке он должен
   гореть своим цветом, а не оставаться серым, будто до него не дошли (D68). */
.stage-dot.is-running { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.stage-dot.is-waiting { background: var(--amber); color: #fff; box-shadow: 0 0 0 4px var(--amber-soft); }
.stage-dot.is-now {
  width: 34px; height: 34px; margin-top: 0; background: var(--mode); color: #fff;
  box-shadow: 0 0 0 5px var(--mode-soft); --halo: var(--mode-glow);
  animation: jt-stamp .55s cubic-bezier(.32, .72, 0, 1) both, jt-halo 2.6s ease-out 1.6s infinite;
}
.stage-track {
  width: 5px; flex: 1; min-height: 22px; border-radius: 999px; background: var(--fill-2);
  margin: 5px 0 -5px; overflow: hidden;
}
.stage-fill { width: 100%; height: 100%; border-radius: 999px; transform-origin: top; background: transparent; }
.stage-fill.is-done { background: var(--green); animation: jt-draw .42s cubic-bezier(.32, .72, 0, 1) both; }
/* Два активных этапа подряд соединяет переход одного цвета в другой: иначе
   второй выглядит оторванным от пути (D71). */
.stage-fill.is-bridge { animation: jt-draw .42s cubic-bezier(.32, .72, 0, 1) both; opacity: .85; }
/* Срок у этапа, который идёт не главным: тем же голосом, но тише. */
.stage-until {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px;
  border-radius: 999px; background: var(--amber-soft); color: var(--amber-text);
  font-size: 13px; font-weight: 600;
  animation: jt-pop-in .5s cubic-bezier(.32, .72, 0, 1) both;
}
.stage-until.is-running { background: var(--accent-soft); color: var(--accent); }
.stage-body {
  flex: 1; min-width: 0; padding-bottom: 20px;
  animation: jt-rise .55s cubic-bezier(.32, .72, 0, 1) both;
}
.stage-body.is-now { padding-bottom: 26px; }
.here-pill.is-running { background: var(--accent-soft); color: var(--accent); }
.here-pill.is-waiting { background: var(--amber-soft); color: var(--amber-text); }
.here-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 7px; padding: 4px 11px;
  border-radius: 999px; background: var(--mode-soft); color: var(--mode-text);
  font-size: 13px; font-weight: 600; letter-spacing: -.005em;
  transition: background .35s ease, color .35s ease;
  animation: jt-pop-in .5s cubic-bezier(.32, .72, 0, 1) both;
}
.stage-title { font-size: 17px; font-weight: 600; letter-spacing: -.014em; color: var(--label-2); }
.stage-title.is-reached { color: var(--label); }
.stage-body.is-now .stage-title { font-size: 19px; font-weight: 700; }
.stage-details { font-size: 15px; line-height: 1.45; color: var(--label-2); margin: 6px 0 0; }
.stage-status { font-size: 13px; margin-top: 3px; font-weight: 400; color: var(--label-3); transition: color .35s ease; }
.stage-body.is-now .stage-status { margin-top: 8px; font-weight: 600; color: var(--mode-text); }

.live-card {
  display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 17px 19px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-card);
  animation: jt-fade .6s .5s both;
}
.live-icon { color: var(--label-3); display: inline-flex; flex-shrink: 0; }
.live-icon svg { width: 18px; height: 18px; }
.live-text { font-size: 15px; line-height: 1.45; color: var(--label-2); }

/* ---------- profile ---------- */
.narrow-col { max-width: 100%; }
@media (min-width: 900px) { .narrow-col { max-width: 620px; } }
.profile-card {
  border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
.profile-row {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px; min-height: 54px;
  border-bottom: 1px solid var(--separator); transition: background .2s ease;
  animation: jt-rise .5s cubic-bezier(.32, .72, 0, 1) both;
}
.profile-row:last-child { border-bottom: none; }
.profile-row:active { background: var(--fill-2); }
.profile-icon { display: inline-flex; color: var(--label-3); flex-shrink: 0; }
.profile-icon svg { width: 17px; height: 17px; }
.profile-label { font-size: 15px; color: var(--label-2); white-space: nowrap; flex-shrink: 0; }
/* The export truncates a long value; here it is the client's own data, so it
   wraps instead — a candidate must be able to read their own vacancy. */
.profile-value {
  flex: 1; font-size: 17px; font-weight: 500; text-align: right; min-width: 0;
  overflow-wrap: break-word; hyphens: auto;
}
.profile-note { font-size: 13px; line-height: 1.5; color: var(--label-3); margin: 14px 4px 0; }

/* ---------- contact ---------- */
.contact-card {
  border-radius: 24px; padding: 24px; background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card); animation: jt-rise .6s cubic-bezier(.32, .72, 0, 1) .06s both;
}
.contact-head { display: flex; align-items: center; gap: 15px; }
.contact-avatar {
  width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; flex-shrink: 0;
}
.contact-role { font-size: 13px; color: var(--label-3); }
.contact-name { font-size: 21px; font-weight: 600; letter-spacing: -.018em; overflow-wrap: break-word; hyphens: auto; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.contact-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
  border-radius: 16px; color: #fff; font-size: 17px; font-weight: 600;
  transition: transform .22s cubic-bezier(.32, .72, 0, 1);
}
.contact-btn:hover { opacity: 1; }
.contact-btn:active { transform: scale(.968); }
.contact-btn svg { width: 19px; height: 19px; stroke-width: 1.8; }
.contact-wa { background: var(--green); }
.contact-tg { background: var(--accent); }
.contact-missing { font-size: 15px; line-height: 1.45; color: var(--label-2); margin: 22px 0 0; }
.sign-out {
  width: 100%; margin-top: 14px; min-height: 52px; border: none; border-radius: 16px;
  background: var(--fill-2); color: var(--accent); font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform .22s cubic-bezier(.32, .72, 0, 1);
}
.sign-out:active { transform: scale(.98); }
.copyright { text-align: center; font-size: 13px; color: var(--label-3); margin: 26px 0 0; }

/* ---------- floating pill (D27: the same placement as the admin panel) ---------- */
.pill-wrap {
  position: fixed; left: 0; right: 0; z-index: 80; display: flex; justify-content: center;
  pointer-events: none; bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
}
.pill {
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
  background: var(--glass-bg); backdrop-filter: saturate(200%) blur(34px); -webkit-backdrop-filter: saturate(200%) blur(34px);
  border: 1px solid var(--separator);
  box-shadow: 0 12px 34px var(--pill-shadow), inset 0 1px 0 var(--rim);
  pointer-events: auto;
  animation: jt-pill-in .6s cubic-bezier(.32, .72, 0, 1) .5s both;
  transition: gap .42s cubic-bezier(.32, .72, 0, 1), padding .42s cubic-bezier(.32, .72, 0, 1);
}
.pill.is-min { gap: 0; cursor: pointer; }
.tab-item {
  display: flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 16px; border: none;
  border-radius: 999px; background: transparent; cursor: pointer; overflow: hidden;
  color: var(--label-2); font-weight: 500; white-space: nowrap; flex-shrink: 0;
  transition: width .42s cubic-bezier(.32, .72, 0, 1), padding .42s cubic-bezier(.32, .72, 0, 1),
    opacity .3s ease, gap .42s cubic-bezier(.32, .72, 0, 1), background .3s cubic-bezier(.32, .72, 0, 1), color .25s;
}
.tab-item.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tab-item:active { transform: scale(.94); }
.tab-icon { display: inline-flex; flex-shrink: 0; }
.tab-icon svg { width: 21px; height: 21px; }
.tab-item span.tab-label {
  font-size: 15px; max-width: 120px; opacity: 1; overflow: hidden;
  transition: max-width .42s cubic-bezier(.32, .72, 0, 1), opacity .28s ease;
}
/* The export was drawn for a 402px column and never met a 320px phone: there
   the three sections must still fit between the edges, so the padding and the
   gaps tighten. Type sizes stay as drawn. */
@media (max-width: 379px) {
  .pill { gap: 2px; }
  .tab-item { padding: 0 11px; gap: 6px; }
  /* On a 320px phone the action strip squeezed its text into six lines beside
     the button; below 380px the sentence keeps the icon and the button moves
     under it. */
  .notice-inner {
    display: grid; grid-template-columns: auto 1fr;
    grid-template-areas: "icon text" ". button"; row-gap: 10px;
  }
  .notice-icon { grid-area: icon; align-self: start; margin-top: 1px; }
  .notice-text { grid-area: text; }
  .notice-btn { grid-area: button; justify-self: end; }
}
.pill.is-min .tab-item:not(.is-active) { gap: 0; padding: 0; width: 0; opacity: 0; pointer-events: none; }
.pill.is-min .tab-item:not(.is-active) span.tab-label { max-width: 0; opacity: 0; }

/* Telegram Mini App: the client may open the tracker from the bot, where
   Telegram's own controls sit over the top edge (same rule as the admin). */
:root[data-tg="1"] .bar-inner { padding-top: calc(max(12px, env(safe-area-inset-top)) + 52px); }
:root[data-tg="1"] .gate { padding-top: calc(52px + max(12px, env(safe-area-inset-top)) + 52px); }

/* While «Как это работает» is up, the route below it holds still: display:none
   so nothing animates out of sight and then replays after «Понятно». */
#tracker.is-holding .route-grid { display: none; }

/* The choreography belongs to the first appearance. Once the tracker has
   settled, moving between sections is a short fade: the export re-mounts a tab
   and would replay the whole entrance every time. */
#tracker.is-settled .content *,
#tracker.is-settled .bar * { animation-delay: 0ms !important; }
#tracker.is-settled .page-head h1,
#tracker.is-settled .page-head p,
#tracker.is-settled .overview,
#tracker.is-settled .now-card,
#tracker.is-settled .list-head,
#tracker.is-settled .live-card,
#tracker.is-settled .profile-row,
#tracker.is-settled .contact-card,
#tracker.is-settled .stage-body,
#tracker.is-settled .here-pill { animation: jt-fade .22s ease both; }
#tracker.is-settled .stage-dot { animation: jt-fade .22s ease both; }
#tracker.is-settled .stage-dot.is-now { animation: jt-fade .22s ease both, jt-halo 2.6s ease-out infinite; }
#tracker.is-settled .stage-fill.is-done { animation: jt-fade .22s ease both; }
#tracker.is-settled .overview-bar { animation: none; }

/* Repeat visits skip the staged reveal: the export's `revealed` branch swaps
   every entrance animation for a short fade. */
.stage-list.is-quick .stage-body,
.stage-list.is-quick .stage-dot,
.stage-list.is-quick .here-pill { animation: jt-fade .25s both; }
.stage-list.is-quick .stage-dot.is-now { animation: jt-fade .25s both, jt-halo 2.6s ease-out .4s infinite; }
.stage-list.is-quick .stage-fill.is-done { animation: jt-fade .2s both; }
.overview-bars.is-quick .overview-bar { animation: none; }

/* ---------- error pages (404 and friends) ---------- */
.fail {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; max-width: 440px; margin: 0 auto; padding: 52px 22px 80px; text-align: center;
}
.fail-logo { width: 56px; height: auto; margin: 0 auto 26px; display: block; animation: jt-logo-in .8s cubic-bezier(.32, .72, 0, 1) both; }
.fail-code {
  font-size: 15px; font-weight: 600; letter-spacing: .14em; color: var(--label-3);
  font-variant-numeric: tabular-nums; margin-bottom: 12px;
  animation: jt-fade .6s .12s both;
}
.fail h1 {
  font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.028em; margin: 0 0 10px;
  color: var(--label); animation: jt-rise .7s cubic-bezier(.32, .72, 0, 1) .16s both;
}
.fail-text {
  font-size: 17px; line-height: 1.45; color: var(--label-2); margin: 0 0 34px;
  animation: jt-rise .7s cubic-bezier(.32, .72, 0, 1) .24s both;
}
.fail-home {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border-radius: 17px;
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 600;
  box-shadow: 0 10px 26px var(--accent-glow);
  transition: transform .22s cubic-bezier(.32, .72, 0, 1);
  animation: jt-rise .7s cubic-bezier(.32, .72, 0, 1) .32s both;
}
.fail-home:hover { opacity: 1; }
.fail-home:active { transform: scale(.968); }

/* ---------- save card (D86) ---------- */
.save-card {
  display: flex; align-items: center; justify-content: center; width: 100%;
  margin-top: 14px; min-height: 52px; border: none; border-radius: 16px;
  background: var(--fill-2); color: var(--accent); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform .22s cubic-bezier(.32, .72, 0, 1), opacity .2s ease;
}
.save-card:active { transform: scale(.98); }
.save-card:disabled { opacity: .55; cursor: default; }
.save-card-note { font-size: 14px; color: var(--red-text); margin: 8px 0 0; text-align: center; }
.card-sheet {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: jt-fade .25s ease both;
}
.card-sheet-inner {
  width: min(440px, 100%); max-height: 100%; overflow: auto; background: var(--surface);
  border-radius: 24px; padding: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.card-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-sheet-head h2 { font-size: 19px; margin: 0; color: var(--label); }
.card-sheet-close {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--fill-2);
  color: var(--label-2); font-size: 22px; line-height: 1; cursor: pointer;
}
.card-sheet-img { display: block; width: 100%; height: auto; border-radius: 14px; -webkit-touch-callout: default; }
.card-sheet-hint { font-size: 14px; line-height: 1.45; color: var(--label-2); margin: 12px 0 0; text-align: center; }
.card-sheet-download { display: block; margin-top: 12px; text-align: center; font-size: 15px; font-weight: 600; color: var(--accent); }
