/* The public homepage (pages/home/landing). Plain CSS, loaded only by that page.
   Every selector starts with .lp so nothing leaks into the app. */

.lp {
  --bg: #030714;
  --ink: #eaf1ff;
  --mute: #9fb2d9;
  --cobalt: #1f86d6;
  --sky: #3fd2cf;
  --amber: #ffa938;
  --glass: rgba(14, 24, 52, 0.55);
  --line: rgba(140, 170, 255, 0.16);
  --mx: 0;
  --my: 0;
  --ease: cubic-bezier(0.2, 0.75, 0.15, 1);
  position: relative;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(70rem 40rem at 75% 10%, rgba(22, 150, 200, 0.18), transparent 60%),
    radial-gradient(50rem 30rem at 10% 80%, rgba(255, 169, 56, 0.08), transparent 60%),
    var(--bg);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp a { color: inherit; text-decoration: none; }
.lp :focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
html:has(.lp) { scroll-behavior: smooth; background: #030714; }

.lp-stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.lp-veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 7, 20, 0.55), transparent 45%, transparent 55%, rgba(3, 7, 20, 0.45));
}
.lp-grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: lp-grain 1.2s steps(6) infinite;
}
@keyframes lp-grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.lp-nogl .lp-stage { display: none; }
.lp main, .lp-nav, .lp-footer { position: relative; z-index: 3; }

/* Navigation */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.lp-nav.is-scrolled {
  background: rgba(3, 7, 20, 0.62); backdrop-filter: blur(14px) saturate(1.4);
  padding-block: 0.7rem; border-color: var(--line);
}
.lp-brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
/* The TCJ ChemCore logo, light version (the page is dark); the hexagon alone on phones */
.lp-logo-full { display: block; height: 2.9rem; width: auto; filter: drop-shadow(0 0 18px rgba(22, 178, 179, 0.35)); }
.lp-logo-mark { display: none; width: 2.3rem; height: 2.3rem; }
@media (max-width: 520px) { .lp-logo-full { display: none; } .lp-logo-mark { display: block; } }
.lp-links { display: flex; gap: 1.6rem; font-size: 0.88rem; color: var(--mute); }
.lp-links a { position: relative; transition: color 0.25s; }
.lp-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--sky);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.lp-links a:hover { color: var(--ink); }
.lp-links a:hover::after { transform: scaleX(1); }
.lp-nav-end { display: flex; align-items: center; gap: 0.7rem; }
.lp-lang select {
  appearance: none; background: rgba(255, 255, 255, 0.06); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.45rem 0.8rem; font-size: 0.82rem; cursor: pointer;
}
.lp-lang option { color: #0b1530; }

/* Buttons */
.lp-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px;
  padding: 0.6rem 1.15rem; font-size: 0.9rem; font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
}
.lp-btn:hover { transform: translateY(-2px); }
.lp-btn-light { background: var(--ink); color: #071433 !important; }
.lp-btn-primary {
  color: #04122e !important; background: linear-gradient(135deg, #9ad8ff, var(--cobalt) 70%);
  box-shadow: 0 10px 40px -8px rgba(22, 150, 200, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 0.85rem 1.6rem; font-size: 1rem;
}
.lp-btn-primary:hover { box-shadow: 0 16px 60px -6px rgba(22, 150, 200, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.lp-btn-ghost { border: 1px solid var(--line); padding: 0.85rem 1.5rem; font-size: 1rem; background: rgba(255, 255, 255, 0.03); }
.lp-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.lp-btn-xl { padding: 1.05rem 2.2rem; font-size: 1.1rem; }

/* Hero */
.lp-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 8rem clamp(1.25rem, 6vw, 6rem) 6rem;
}
.lp-hero-copy { max-width: 46rem; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.6rem;
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.76rem; letter-spacing: 0.18em; color: var(--sky);
  border: 1px solid rgba(116, 199, 255, 0.28); background: rgba(116, 199, 255, 0.06);
}
.lp-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: lp-blink 2s infinite; }
@keyframes lp-blink { 50% { opacity: 0.35; } }
.lp-title {
  margin: 0; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 0.98; font-weight: 700; letter-spacing: -0.045em;
}
.lp-line { display: block; }
.lp-word { display: inline-block; white-space: nowrap; margin-right: 0.24em; }
.lp-ch {
  display: inline-block; opacity: 0; transform: translateY(0.7em) rotate(6deg); filter: blur(10px);
  animation: lp-ch 1s var(--ease) forwards; animation-delay: calc(0.25s + var(--i) * 0.028s);
}
@keyframes lp-ch { to { opacity: 1; transform: none; filter: blur(0); } }
.lp-grad .lp-ch {
  background: linear-gradient(100deg, #b9e4ff 0%, var(--sky) 30%, var(--cobalt) 60%, var(--amber) 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lp-ch 1s var(--ease) forwards, lp-sheen 8s linear infinite;
  animation-delay: calc(0.25s + var(--i) * 0.028s), 0s;
}
@keyframes lp-sheen { to { background-position: -300% 0; } }
.lp-lead { margin: 1.8rem 0 0; max-width: 36rem; font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.65; color: var(--mute); }
.lp-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.lp-rise { opacity: 0; transform: translateY(24px); animation: lp-rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes lp-rise { to { opacity: 1; transform: none; } }

.lp-chips { position: absolute; inset: 0; pointer-events: none; }
.lp-chip, .lp-chip-img {
  position: absolute; left: var(--x); top: var(--y);
  translate: calc(var(--mx) * var(--z) * -18px) calc(var(--my) * var(--z) * -14px);
  transition: translate 0.6s var(--ease);
  opacity: 0; animation: lp-rise 1.2s var(--ease) forwards, lp-bob 6s ease-in-out infinite;
  animation-delay: var(--d), calc(var(--d) + 1.2s);
}
.lp-chip {
  padding: 0.5rem 0.85rem; border-radius: 0.8rem; font-size: 0.78rem; color: var(--mute); white-space: nowrap;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
.lp-chip b { color: var(--ink); margin-right: 0.35rem; font-weight: 700; }
.lp-chip-amber b { color: var(--amber); }
.lp-chip-green b { color: #6ff0b4; }
.lp-chip-img { width: 4.2rem; filter: drop-shadow(0 10px 30px rgba(255, 40, 40, 0.35)); }
@keyframes lp-bob { 50% { transform: translateY(-10px); } }
.lp-scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mute);
}
.lp-scroll i { width: 1px; height: 3rem; background: linear-gradient(var(--sky), transparent); animation: lp-drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes lp-drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Marquee */
.lp-marquee {
  overflow: hidden; border-block: 1px solid var(--line); background: rgba(3, 7, 20, 0.5); backdrop-filter: blur(6px);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.lp-marquee-track { display: flex; width: max-content; gap: 2.2rem; padding: 1.1rem 0; animation: lp-marquee 38s linear infinite; }
.lp-marquee span { font-size: 0.86rem; letter-spacing: 0.08em; color: var(--mute); white-space: nowrap; }
.lp-marquee i { color: var(--amber); font-style: normal; font-size: 0.6rem; align-self: center; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }

/* Shared type */
.lp-kicker { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 1.1rem; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); }
.lp-kicker span { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--amber); }
.lp-h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.lp-h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -0.045em; font-weight: 700; }
.lp-text { margin: 1.2rem 0 0; line-height: 1.65; color: var(--mute); font-size: 1.02rem; }

/* Reveal (numbers band, closing) */
[data-reveal] { opacity: 0; transform: translateY(48px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============ Acts: one screen each, a timeline that plays once in view ============ */
.lp-act { position: relative; }
.lp-act-stage {
  position: relative; height: 100vh; min-height: 34rem; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem); padding: 5.2rem clamp(1.25rem, 4vw, 4.5rem) 2rem;
}
.lp-act-copy { max-width: 29rem; }
.lp-act .lp-h2 { font-size: clamp(1.8rem, 3.1vw, 2.9rem); text-shadow: 0 4px 30px rgba(3, 7, 20, 0.8); }
.lp-steps { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
.lp-steps li {
  display: flex; gap: 0.8rem; align-items: center; padding: 0.55rem 0.8rem; border-radius: 0.7rem;
  color: rgba(159, 178, 217, 0.5); font-size: 0.94rem; line-height: 1.35;
  transition: color 0.45s, background 0.45s, transform 0.45s var(--ease);
}
.lp-steps li i { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 1px solid currentColor; transition: background 0.45s, box-shadow 0.45s; }
.lp-steps li.is-on { color: var(--ink); background: rgba(22, 150, 200, 0.14); transform: translateX(6px); }
.lp-steps button { display: flex; gap: 0.8rem; align-items: center; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lp-steps button:focus-visible { outline: 2px solid var(--sky); outline-offset: 6px; border-radius: 4px; }
.lp-steps li:not(.is-on):hover { color: rgba(207, 220, 245, 0.8); }
.lp-steps li.is-on i { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 14px var(--amber); }
.lp-act-bar { margin-top: 1.3rem; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.lp-act-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cobalt), var(--sky), var(--amber)); transform: scaleX(var(--act, 0)); transform-origin: left; }
.lp-act-screen { position: relative; height: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; }
.lp-act-screen > *, .lp lp-app { display: block; width: 100%; }

/* The timeline language: --p (0 → 1) is an element's entrance, --o its exit. */
.lp :where([data-at]) {
  --q: calc(1 - var(--p, 1));
  opacity: calc(min(1, var(--p, 1) * 1.8) * (1 - var(--o, 0)));
  transform: translate3d(calc(var(--q) * var(--fx, 0px)), calc(var(--q) * var(--fy, 26px)), 0)
    rotate(calc(var(--q) * var(--fr, 0deg))) scale(calc(1 - var(--q) * var(--fs, 0)));
}
.lp :where([data-out]:not([data-at])) {
  opacity: calc(1 - var(--o, 0) * var(--oa, 0.85));
  transform: translateY(calc(var(--o, 0) * var(--oy, -30px))) scale(calc(1 - var(--o, 0) * var(--os, 0.2)));
  filter: blur(calc(var(--o, 0) * 2px));
}
.lp .as-type { opacity: 1; transform: none; clip-path: inset(0 calc((1 - var(--p, 1)) * 100%) 0 0); }
.lp .as-grow { opacity: 1; transform: scaleX(var(--p, 1)); transform-origin: left center; }
.lp .as-pop { opacity: min(1, calc(var(--p, 1) * 3)); transform: scale(calc(0.3 + 0.7 * var(--p, 1))); }
.lp .as-drop { opacity: min(1, calc(var(--p, 1) * 3)); transform: translateY(calc((1 - var(--p, 1)) * -140px)) rotate(calc((1 - var(--p, 1)) * -25deg)); }
.lp .as-stamp { opacity: min(1, calc(var(--p, 1) * 2)); transform: scale(calc(1 + (1 - var(--p, 1)) * 2.2)) rotate(calc((1 - var(--p, 1)) * -14deg)); }
.lp .as-flip { opacity: min(1, calc(var(--p, 1) * 3)); transform: perspective(600px) rotateY(calc((1 - var(--p, 1)) * 90deg)); }
.lp .as-draw { opacity: 1; transform: none; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); }

/* ---------- The app, as it looks signed in (light) ---------- */
.lp-app, .lp-box {
  position: relative; left: 50%; width: 860px; height: 540px; margin-left: -430px;
  transform: scale(var(--fit, 1)); transform-origin: 50% 50%;
}
/* The window tilts in 3D with the camera (--cry / --crx, degrees) */
.lp-app { transform: scale(var(--fit, 1)) perspective(1600px) rotateY(calc(var(--cry, 0) * 1deg)) rotateX(calc(var(--crx, 0) * 1deg)); }
.lp-box .lp-app { left: 0; margin-left: 0; transform: perspective(1600px) rotateY(calc(var(--cry, 0) * 1deg)) rotateX(calc(var(--crx, 0) * 1deg)); }
.lp-app {
  --a-bg: #f1f5f9; --a-line: #e2e8f0; --a-ink: #0f172a; --a-mute: #64748b; --a-blue: #016795;
  display: block; border-radius: 14px; overflow: hidden;
  background: var(--a-bg); color: var(--a-ink); font: 13px/1.4 Inter, "Segoe UI", system-ui, sans-serif; text-align: left;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 90px -20px rgba(22, 150, 200, 0.45);
}
/* The screen recording inside the window: zooms (--cz) on the design point
   (--cx, --cy), never showing past the window's edges */
.lp-app-cam {
  --z: var(--cz, 1);
  display: grid; grid-template-columns: 168px minmax(0, 1fr); position: relative; width: 860px; height: 540px;
  transform-origin: 0 0;
  transform: translate(
      clamp(calc(860px * (1 - var(--z))), calc(430px - var(--cx, 430) * var(--z) * 1px), 0px),
      clamp(calc(540px * (1 - var(--z))), calc(270px - var(--cy, 270) * var(--z) * 1px), 0px))
    scale(var(--z));
}
/* Focus: while the camera is in close, what it is not looking at dims */
.lp-app-cam::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse 380px 260px at calc(var(--cx, 430) * 1px) calc(var(--cy, 270) * 1px),
    transparent 60%, rgba(15, 23, 42, 0.16) 100%);
  opacity: clamp(0, calc((var(--z) - 1) * 2), 1);
}
/* A pointer using the app, and the ripple of its clicks */
.lp-cursor {
  position: absolute; left: 0; top: 0; z-index: 6; width: 17px; height: 21px; overflow: visible; pointer-events: none;
  transform: translate(calc(var(--kx, 0) * 1px - 2px), calc(var(--ky, 0) * 1px - 1.5px)) scale(var(--kp, 1)); transform-origin: 2px 1.5px;
  opacity: var(--ko, 0); filter: drop-shadow(0 3px 4px rgba(15, 23, 42, 0.45));
}
.lp-cursor path { fill: #0f172a; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.lp .lp-click {
  position: absolute; z-index: 5; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none;
  border: 2px solid #016795; background: rgba(1, 103, 149, 0.14);
  opacity: calc((1 - var(--p, 1)) * min(1, var(--p, 1) * 20)); transform: scale(calc(0.2 + var(--p, 1) * 1.3));
}
.lp-app-side { background: #00174d; color: #cbd5e1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.lp-app-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 12px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: #fff; font-weight: 700; font-size: 12.5px; }
.lp-app-brand img { width: 24px; height: 24px; }
.lp-app-nav { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.lp-app-nav svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lp-app-nav.is-active { background: rgba(255, 255, 255, 0.1); color: #fff; }
.lp-app-main { display: flex; flex-direction: column; min-width: 0; }
.lp-app-top { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--a-line); font-size: 12.5px; }
.lp-app-top span { margin-left: auto; font-size: 11px; padding: 3px 8px; border: 1px solid var(--a-line); border-radius: 6px; color: var(--a-mute); }
.lp-app-burger { width: 14px; height: 10px; border-block: 1.5px solid #64748b; position: relative; }
.lp-app-burger::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1.5px solid #64748b; }
.lp-app-body { position: relative; flex: 1; padding: 14px 16px; min-height: 0; }
.lp-app code, .lp-ui-mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.92em; }

.lp-ui-card { background: #fff; border: 1px solid var(--a-line); border-radius: 10px; padding: 10px 12px; }
.lp-ui-cap { margin: 0 0 7px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; }
.lp-ui-h { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.lp-ui-btn { display: inline-block; padding: 6px 14px; border-radius: 7px; background: var(--a-blue, #016795); color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 6px 18px -6px rgba(1, 103, 149, 0.8); }
.lp-ui-back { margin: 0 0 8px; color: var(--a-blue); font-size: 13px; font-weight: 600; }
.lp-ui-tabs { display: flex; gap: 2px; margin-bottom: 10px; padding: 0 6px; background: #fff; border: 1px solid var(--a-line); border-radius: 10px; font-size: 11.5px; color: var(--a-mute); }
.lp-ui-tabs span { padding: 8px 9px; border-bottom: 2px solid transparent; transition: color 0.3s, border-color 0.3s; }
.lp-ui-tabs span.on, .lp-ui-tabs span.is-on { color: var(--a-blue); border-color: var(--a-blue); }
.lp-ui-tick { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #10b981; position: relative; }
.lp-ui-tick::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 3.5px; height: 6.5px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.lp-ui-badge { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: #cdf1f2; color: #046779; }
.lp-ui-badge-amber { background: #fef3c7; color: #92400e; }
.lp-ui-fresh { margin: 8px 0 0; padding: 6px 10px; border-radius: 7px; background: #ecfdf5; color: #047857; font-size: 11.5px; }

/* 01 Extraction */
.x-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 12px; height: 100%; }
.x-pdf { position: relative; overflow: hidden; background: #fff; border-radius: 4px; padding: 14px 16px; font: 9.5px/1.55 Georgia, "Times New Roman", serif; color: #334155; box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.35); }
.x-pdf-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #0f172a; padding-bottom: 4px; }
.x-pdf-head b { font-size: 11px; letter-spacing: 0.06em; }
.x-pdf-head small { font-size: 7.5px; color: #64748b; }
.x-pdf-meta { display: flex; justify-content: space-between; font-size: 8px; color: #64748b; margin: 4px 0 6px; }
.x-h { margin: 8px 0 3px; font-weight: 700; font-size: 9.5px; color: #0f172a; background: #f1f5f9; padding: 1px 4px; }
.x-l { position: relative; margin: 1px 0; }
.x-mono { font-family: ui-monospace, Consolas, monospace; font-size: 8.5px; }
.lp .x-hl { position: absolute; inset: -1px -3px; z-index: -1; background: rgba(250, 204, 21, 0.45); border-radius: 2px; opacity: 1; transform: scaleX(var(--p, 1)); transform-origin: left; }
.x-l { z-index: 0; isolation: isolate; }
.x-g { height: 5px; width: var(--w); margin: 5px 0; border-radius: 3px; background: #e2e8f0; }
.lp .x-scan {
  position: absolute; left: 0; right: 0; height: 46px; top: calc(var(--p, 1) * 100% - 23px); pointer-events: none; transform: none;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.28) 45%, rgba(56, 189, 248, 0.75) 50%, transparent 52%);
  opacity: calc(min(1, var(--p, 1) * 10) * min(1, (1 - var(--p, 1)) * 10));
}
.x-cards { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.x-card { background: #fff; border: 1px solid var(--a-line); border-radius: 10px; padding: 9px 11px; }
.x-card-t { margin: 0 0 6px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; }
.x-field, .x-row { display: grid; align-items: center; gap: 8px; padding: 4px 0; font-size: 11.5px; border-top: 1px solid #f1f5f9; }
.x-field { grid-template-columns: 82px 1fr auto; }
.x-row { grid-template-columns: 66px 1fr 62px auto; }
.x-field span { color: var(--a-mute); font-size: 10.5px; }
.x-row code { color: #475569; font-size: 10px; }
.x-field em, .x-row em { font-style: normal; font-size: 9.5px; padding: 1px 6px; border-radius: 999px; background: #ecf6fa; color: #02557e; white-space: nowrap; }
.x-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.x-chips span { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.x-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 10px; background: #0f172a; color: #cbd5e1; font-size: 11.5px; }
.x-foot p { margin: 0; }
.x-foot b { font-size: 20px; color: #fff; margin-right: 4px; }

/* 02 Classification */
.c-wrap { display: flex; flex-direction: column; height: 100%; }
.c-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 10px; }
.c-mix { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin-bottom: 7px; font-size: 11.5px; }
.c-mix b { font-weight: 600; color: #334155; }
.c-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: #eef2f7; overflow: hidden; }
.c-bar u { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #016795, #16b2b3); }
.c-go { position: relative; margin-top: 10px; display: flex; justify-content: flex-end; }
.lp .c-ripple { position: absolute; right: 30px; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #016795; pointer-events: none;
  opacity: calc((1 - var(--p, 1)) * min(1, var(--p, 1) * 20)); transform: scale(calc(var(--p, 1) * 6)); }
.c-rule { display: grid; grid-template-columns: 100px 42px 1fr 14px; align-items: center; gap: 6px; padding: 5px 0; border-top: 1px solid #f1f5f9; font-size: 11.5px; }
.c-rule code { color: #b91c1c; font-weight: 700; }
.c-rule span { color: var(--a-mute); font-size: 10.5px; }
.c-label { margin-top: 10px; }
.c-picts { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.c-picts img { width: 44px; height: 44px; }
.c-signal { margin-left: 6px; padding: 3px 10px; border-radius: 4px; background: #fee2e2; color: #991b1b; font-size: 13px; letter-spacing: 0.04em; }
.c-hs { display: flex; gap: 8px; margin: 3px 0; font-size: 11.5px; }
.c-hs span { flex: none; width: 150px; color: var(--a-mute); }

/* 03 SDS */
.s-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.s-head code { font-size: 11px; color: var(--a-mute); }
.s-split { display: grid; grid-template-columns: 210px 1fr; gap: 10px; }
.s-list { margin: 0; padding: 6px 8px; list-style: none; background: #fff; border: 1px solid var(--a-line); border-radius: 10px; font-size: 10.5px; }
.s-list li { display: flex; align-items: center; gap: 6px; padding: 2.5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-list .lp-ui-tick { width: 11px; height: 11px; }
.s-list .lp-ui-tick::after { left: 3.5px; top: 1.6px; width: 3px; height: 5.5px; }
.s-langs { display: flex; gap: 4px; margin-bottom: 8px; }
.s-langs span { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--a-line); color: var(--a-mute); transition: all 0.3s; }
.s-langs span.is-on { background: #016795; border-color: #016795; color: #fff; }
.s-title { display: grid; margin-bottom: 4px; }
.s-title h4 { grid-area: 1 / 1; margin: 0; font-size: 13px; opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
.s-title h4.is-on { opacity: 1; transform: none; }
.s-sub { margin: 8px 0 3px; font-size: 11px; font-weight: 700; color: #334155; }
.s-line { margin: 2px 0; font-size: 11px; color: #475569; }
.s-picts { display: flex; align-items: center; gap: 6px; }
.s-picts img { width: 32px; height: 32px; }
.s-picts b { margin-left: 4px; font-size: 12px; color: #991b1b; }
.s-doc { position: absolute; inset: 0; pointer-events: none; }
.s-page { position: absolute; width: 300px; height: 424px; background: #fff; border-radius: 3px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(15, 23, 42, 0.06); color: #0f172a; font: 7.5px/1.5 Georgia, serif; padding: 18px 20px; overflow: hidden; }
.s-page1 { left: 300px; top: 50px; rotate: -3deg; }
.s-page2 { left: 350px; top: 40px; rotate: 3deg; background: linear-gradient(#fff, #f8fafc); }
.s-page3 { left: 400px; top: 34px; rotate: 8deg; background: linear-gradient(#fff, #f1f5f9); }
.s-p-band { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #1e3a8a; padding-bottom: 4px; }
.s-p-band b { font-size: 10px; color: #1e3a8a; letter-spacing: 0.05em; }
.s-p-band small { font-size: 6px; color: #64748b; }
.s-p-meta { display: flex; justify-content: space-between; margin: 6px 0 8px; font-size: 7px; color: #475569; }
.s-p-meta b { color: #0f172a; }
.s-p-h { margin: 8px 0 3px; padding: 2px 4px; background: #ecf6fa; color: #1e3a8a; font-weight: 700; font-size: 7.5px; }
.s-p-l { margin: 2px 0; }
.s-p-picts { display: flex; align-items: center; gap: 4px; margin: 4px 0; }
.s-p-picts img { width: 26px; height: 26px; }
.s-p-picts b { margin-left: 4px; font-size: 9px; color: #991b1b; }
.s-p-g { height: 4px; width: var(--w); margin: 5px 0; border-radius: 2px; background: #e2e8f0; }
.s-chips { position: absolute; left: 290px; bottom: 6px; display: flex; gap: 8px; }
.s-chips span { padding: 6px 12px; border-radius: 999px; background: #0f172a; color: #e2e8f0; font: 600 12px/1 system-ui, sans-serif; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.8); border: 1px solid rgba(148, 163, 184, 0.3); }

/* 04 Labels */
.l-split { display: grid; grid-template-columns: 150px 1fr; gap: 12px; height: 100%; }
.l-palette { margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--a-line); border-radius: 10px; display: flex; flex-direction: column; gap: 5px; }
.l-palette li { padding: 6px 8px; border: 1px dashed #cbd5e1; border-radius: 6px; font-size: 10.5px; color: #334155; background: #f8fafc; }
.l-work { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 10px; }
.l-ruler { margin: 0; font-size: 10.5px; color: var(--a-mute); letter-spacing: 0.08em; }
.l-canvas {
  width: 447px; height: 225px; display: grid; grid-template-columns: 88px 1fr; gap: 8px; padding: 8px 10px;
  background: #fff; color: #0f172a; border-radius: 3px; font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 0 0 1px #cbd5e1, 0 14px 30px -14px rgba(15, 23, 42, 0.4);
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px); background-size: 12px 12px;
}
.l-printed { background-image: none; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.l-picts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-content: start; }
.l-picts img { width: 100%; }
.l-picts img:first-child { grid-column: 1 / -1; width: 50%; justify-self: center; }
.l-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.l-name { font-size: 14px; letter-spacing: -0.01em; }
.l-signal { font-size: 13px; letter-spacing: 0.06em; }
.l-h, .l-p { margin: 0; font-size: 7.4px; line-height: 1.35; }
.l-p { color: #334155; }
.l-foot { margin-top: auto; display: grid; grid-template-columns: 1fr auto auto; gap: 2px 8px; align-items: end; font-size: 6.5px; }
.l-ufi { grid-column: 1 / -1; font: 700 8px ui-monospace, Consolas, monospace; }
.l-qty { font-size: 13px; font-weight: 700; }
.l-bars { width: 54px; height: 18px; background: repeating-linear-gradient(90deg, #0f172a 0 1px, transparent 1px 3px, #0f172a 3px 5px, transparent 5px 6px); }
.l-check { margin: 4px 0 0; padding: 5px 10px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 11px; }
.l-print { position: absolute; inset: 0; pointer-events: none; }
.l-printer { position: absolute; left: 470px; top: 54px; width: 360px; height: 96px; border-radius: 16px 16px 8px 8px; background: linear-gradient(180deg, #334155, #0f172a); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.l-printer::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 10px; height: 6px; border-radius: 3px; background: #020617; box-shadow: inset 0 2px 4px #000; }
.l-printer span { position: absolute; left: 22px; top: 18px; font: 600 11px system-ui, sans-serif; color: #94a3b8; letter-spacing: 0.1em; }
.l-led { position: absolute; right: 24px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 12px #22c55e; }
.l-out { position: absolute; left: 489px; top: 144px; width: 447px; height: 240px; overflow: hidden; scale: 0.72; transform-origin: top left; }
.l-zpl { position: absolute; left: 14px; top: 70px; width: 430px; margin: 0; padding: 14px 16px; border-radius: 12px; background: rgba(2, 6, 23, 0.92); border: 1px solid rgba(148, 163, 184, 0.25); color: #62cdd2; font: 11px/1.75 ui-monospace, Consolas, monospace; white-space: normal; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.l-zpl span { display: block; white-space: pre; }
.l-appwrap, .s-appwrap { --oa: 0.82; --os: 0.16; --oy: -10px; }

/* 05 PCN */
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-in { display: grid; grid-template-columns: 1fr auto; padding: 6px 0; border-top: 1px solid #f1f5f9; font-size: 11.5px; }
.p-in span { color: var(--a-mute); }
.p-code { margin-top: 10px; padding: 12px; border-radius: 8px; background: #fffbeb; border: 1px solid #fcd34d; text-align: center; }
.p-code code { font-size: 19px; font-weight: 700; letter-spacing: 0.04em; color: #92400e; }
.p-step { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #f1f5f9; font-size: 12px; }
.p-markets { grid-column: 1 / -1; }
.p-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.p-flags span { width: 40px; padding: 6px 0; text-align: center; border-radius: 6px; background: #ecf6fa; color: #02557e; font-weight: 700; font-size: 11px; border: 1px solid #a9d6e7; }
.p-file { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: #0f172a; color: #e2e8f0; }
.p-file-ico { display: grid; place-items: center; width: 38px; height: 46px; border-radius: 4px; background: linear-gradient(160deg, #f59e0b, #b45309); color: #fff; font: 700 11px ui-monospace, monospace; }
.p-file b { display: block; font: 600 12.5px ui-monospace, Consolas, monospace; }
.p-file small { color: #86efac; font-size: 11px; }

/* 06 Transport */
.d-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 12px; height: 100%; }
.d-doc { background: #fff; border-radius: 4px; padding: 12px 14px; font-size: 11px; box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.35); }
.d-head { display: flex; align-items: baseline; gap: 8px; border-bottom: 2px solid #0f172a; padding-bottom: 5px; margin-bottom: 8px; }
.d-head b { font-size: 13px; }
.d-head small { color: var(--a-mute); }
.d-head code { margin-left: auto; font-size: 10px; color: var(--a-mute); }
.d-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.d-parties > div { padding: 7px 9px; border: 1px solid var(--a-line); border-radius: 6px; line-height: 1.45; }
.d-parties span { display: block; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }
.d-goods p { margin: 4px 0; font-size: 12px; }
.d-goods b { color: #c2410c; }
.d-q { color: #475569; }
.d-calc { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 11px !important; }
.d-calc b { color: #047857; }
.d-marks { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.d-marks img { width: 74px; height: 74px; }
.d-plate { display: grid; width: 96px; border: 3px solid #0f172a; border-radius: 4px; background: #f97316; text-align: center; font: 800 18px/1.25 Arial, sans-serif; color: #0f172a; }
.d-plate span + span { border-top: 3px solid #0f172a; }
.d-route { position: relative; width: 260px; height: 300px; border-radius: 12px; background: radial-gradient(circle at 40% 30%, #1e3a8a, #0b1530 70%); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25); overflow: hidden; }
.d-route svg { position: absolute; inset: 0; width: 260px; height: 300px; }
.d-ghost { fill: none; stroke: rgba(148, 163, 184, 0.35); stroke-width: 2; stroke-dasharray: 4 5; }
.d-path { fill: none; stroke: #fbbf24; stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 6px #f59e0b); }
.d-route circle { fill: #62cdd2; }
.d-city { position: absolute; font: 600 11px system-ui, sans-serif; color: #e2e8f0; }
.lp .d-truck {
  position: absolute; left: 0; top: 0; width: 20px; height: 11px; border-radius: 3px; background: #f59e0b; box-shadow: 0 0 14px #f59e0b;
  offset-path: path("M70,40 C120,80 90,140 140,170 S200,230 190,262"); offset-distance: calc(var(--p, 1) * 100%);
  opacity: 1; transform: none;
}

/* 07 Legal obligations */
.g-wrap { position: relative; }
.g-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.g-list { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; background: #fff; border: 1px solid var(--a-line); border-radius: 8px; font-size: 10.5px; }
.g-list i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 6px #10b981; }
.g-table { background: #fff; border: 1px solid var(--a-line); border-radius: 10px; overflow: hidden; }
.g-th, .g-tr { display: grid; grid-template-columns: 1.25fr 1fr 1.05fr; gap: 8px; align-items: center; padding: 7px 12px; }
.g-th { background: #f8fafc; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; }
.g-tr { border-top: 1px solid #f1f5f9; font-size: 11.5px; }
.g-tr b { display: block; color: var(--a-blue); font-weight: 600; font-size: 11.5px; }
.g-tr small { color: var(--a-mute); font-size: 10px; }
.g-tr em { font-style: normal; font-size: 10.5px; padding: 2px 7px; border-radius: 5px; background: #f1f5f9; }
.g-state { position: relative; height: 22px; }
.g-state i { position: absolute; left: 0; top: 1px; font-style: normal; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; transition: opacity 0.35s, transform 0.35s; }
.g-ok { background: #ecfdf5; color: #047857; }
.g-warn { background: #fff7ed; color: #c2410c; opacity: 0; transform: translateY(4px); }
.g-run { width: 130px; height: 7px; top: 8px !important; padding: 0 !important; background: #e2e8f0; overflow: hidden; opacity: 0; }
.g-run u { display: block; height: 100%; background: linear-gradient(90deg, #016795, #16b2b3); }
.g-state i.is-on { opacity: 1; transform: none; }
.g-state:has(.is-on) .g-ok { opacity: 0; }
.g-hit:has(.g-warn.is-on) { background: #fffbeb; }
.g-toast { position: absolute; right: -4px; top: 34px; width: 290px; padding: 12px 14px; border-radius: 10px; background: #0f172a; color: #cbd5e1; border-left: 4px solid #f59e0b; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.6); font-size: 11.5px; }
.g-toast b { display: block; color: #fff; margin-bottom: 3px; font-size: 12.5px; }
.g-foot { margin-top: 10px; }

/* 08 Statistics */
.t-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.t-kpi { background: #fff; border: 1px solid var(--a-line); border-radius: 10px; padding: 8px 9px; min-width: 0; }
.t-kpi.on { border-color: #0f7ca6; box-shadow: 0 0 0 1px #0f7ca6; }
.t-kpi span { display: block; min-height: 26px; font-size: 8.5px; line-height: 1.3; letter-spacing: 0.04em; text-transform: uppercase; color: var(--a-mute); }
.t-kpi b { display: block; font-size: 22px; line-height: 1.2; }
.t-kpi small { display: block; font-size: 9.5px; color: var(--a-mute); margin-bottom: 5px; }
.t-bar { display: block; height: 5px; border-radius: 3px; background: #eef2f7; overflow: hidden; }
.t-bar u { display: block; height: 100%; border-radius: 3px; }
.t-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; margin-top: 10px; }
.t-t { margin: 0 0 8px; font-weight: 700; font-size: 12.5px; }
.t-area p, .t-issue p { display: flex; justify-content: space-between; margin: 7px 0 4px; font-size: 11px; }
.t-area em { font-style: normal; color: var(--a-mute); }
.t-stack { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #eef2f7; }
.t-ok { display: block; background: #10b981; }
.t-act { display: block; background: #f97316; }
.t-col { display: flex; flex-direction: column; gap: 10px; }
.t-donut-card { display: flex; align-items: center; gap: 12px; }
.t-donut { flex: none; width: 100px; height: 100px; }
.t-track { fill: none; stroke: #eef2f7; stroke-width: 14; }
.lp .t-seg { fill: none; stroke-width: 14; opacity: 1; transform: rotate(-90deg); transform-origin: 60px 60px;
  stroke-dasharray: calc(var(--seg) * var(--p, 1)) 1; stroke-dashoffset: calc(-1 * var(--off)); }
.t-donut-legend { display: flex; flex-direction: column; font-size: 10.5px; color: var(--a-mute); }
.t-donut-legend b { font-size: 24px; color: var(--a-ink); line-height: 1; }
.t-donut-legend span { margin-bottom: 4px; }
.t-donut-legend em { font-style: normal; display: flex; align-items: center; gap: 5px; }
.t-donut-legend em::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* 09 Settings */
.e-tabs span { cursor: default; }
.e-panels { position: relative; height: 390px; }
.e-panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.4s, transform 0.4s, visibility 0.4s; }
.e-panel.is-on { opacity: 1; visibility: visible; transform: none; }
.e-field { display: grid; grid-template-columns: 160px 1fr; padding: 9px 4px; border-bottom: 1px solid #f1f5f9; font-size: 12.5px; }
.e-field span { color: var(--a-mute); font-size: 11.5px; }
.e-field b { font-weight: 500; }
.e-logo { position: absolute; right: 16px; top: 14px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(135deg, #016795, #7c3aed); color: #fff; font-weight: 800; font-size: 18px; box-shadow: 0 10px 24px -8px rgba(1, 103, 149, 0.8); }
.e-langs { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 18px; }
.e-tog { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.lp .e-switch { position: relative; width: 30px; height: 17px; border-radius: 9px; opacity: 1; transform: none; background: color-mix(in srgb, #016795 calc(var(--p, 1) * 100%), #cbd5e1); }
.e-switch::after { content: ""; position: absolute; top: 2px; left: calc(2px + var(--p, 1) * 13px); width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.e-tpl { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 10px; border: 1px solid var(--a-line); border-radius: 8px; }
.e-tpl i { grid-row: span 2; width: 40px; height: 52px; border-radius: 3px; background: linear-gradient(#1e3a8a 0 8px, #fff 8px); box-shadow: 0 0 0 1px #cbd5e1; }
.e-tpl small { color: var(--a-mute); }
.e-printer { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: #0f172a; color: #e2e8f0; margin-bottom: 16px; }
.e-printer small { display: block; color: #94a3b8; font-size: 11px; }
.e-printer em { margin-left: auto; font-style: normal; font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(34, 197, 94, 0.15); color: #86efac; }
.e-led { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 12px #22c55e; }
.e-stocks { display: flex; flex-wrap: wrap; gap: 8px; }
.e-stocks span { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--a-line); font-size: 12px; background: #f8fafc; }
.e-user { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #f1f5f9; font-size: 12.5px; }
.e-user i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e0e7ff; color: #3730a3; font-style: normal; font-weight: 700; font-size: 11px; }
.e-user b { font-weight: 500; }
.e-user em { font-style: normal; font-size: 10.5px; padding: 2px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.e-user em.admin { background: #dbeafe; color: #02557e; }

/* 10 Folder */
.f-win {
  position: relative; left: 50%; width: 640px; height: 500px; margin-left: -320px; transform: scale(var(--fit, 1));
  border-radius: 12px; overflow: hidden; background: #fff; color: #0f172a; text-align: left;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 90px -20px rgba(22, 150, 200, 0.45);
}
.f-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; font: 600 12px system-ui, sans-serif; color: #475569; }
.f-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.f-bar span { margin-left: 8px; }
.f-tree { margin: 0; padding: 10px 0; list-style: none; font: 12.5px/1 ui-monospace, "Cascadia Code", Consolas, monospace; }
.f-tree li { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 14px 0 calc(14px + var(--l) * 20px); }
.f-dir { width: 16px; height: 12px; border-radius: 2px; background: #fbbf24; position: relative; }
.f-dir::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 4px; border-radius: 2px 2px 0 0; background: #fbbf24; }
.f-file { width: 12px; height: 15px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1.5px #94a3b8; }
.f-new { background: #ecfdf5; }
/* The old revision leaves its row; the copy in Obsolete opens one: no gaps. */
.f-tree .f-old { height: calc(28px * (1 - var(--o, 0))); padding-block: 0; overflow: hidden; }
.f-tree .f-moved { height: calc(28px * var(--p, 1)); padding-block: 0; overflow: hidden; }
.f-new em { font-style: normal; font-size: 10px; padding: 2px 7px; border-radius: 999px; background: #10b981; color: #fff; }
.f-moved { background: #fff7ed; }
.f-reg { position: absolute; left: 14px; right: 14px; bottom: 12px; margin: 0; padding: 9px 12px; border-radius: 8px; background: #0f172a; color: #cbd5e1; font: 12px system-ui, sans-serif; }
.f-reg code { color: #62cdd2; }

/* A measured time, on the screen as the operation completes */
.lp .lp-time {
  position: absolute; z-index: 3; right: calc(50% - 430px * var(--fit, 1) - 18px); bottom: calc(50% - 270px * var(--fit, 1) - 26px);
  display: flex; align-items: center; gap: 12px; max-width: 22rem; padding: 10px 18px 10px 12px; border-radius: 16px;
  background: rgba(8, 14, 34, 0.84); border: 1px solid rgba(125, 211, 252, 0.35); backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.9), 0 0 44px -14px rgba(56, 189, 248, 0.6);
  color: #b8c7e6; font-size: 0.8rem; line-height: 1.3; text-align: left;
  opacity: min(1, calc(var(--p, 1) * 3)); transform: scale(calc(0.55 + 0.45 * var(--p, 1))); transform-origin: right bottom;
}
.lp-time i { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--sky); }
.lp-time i::before { content: ""; position: absolute; left: 50%; top: -6px; width: 6px; height: 3px; margin-left: -3px; border-radius: 1px; background: var(--sky); }
.lp-time i::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 9px; margin-left: -1px; border-radius: 1px; background: var(--amber); transform-origin: 50% 100%; transform: rotate(calc(var(--p, 1) * 330deg)); }
.lp-time b { flex: none; color: #fff; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp .lp-time em { font-style: normal; opacity: 1; transform: none; }
.lp-time-note { margin: 0; opacity: 0.75; }

/* The thread: one product's passport above the window, one stamp per step */
.lp .lp-pass {
  position: absolute; z-index: 3; left: calc(50% - 430px * var(--fit, 1) + 6px); bottom: calc(50% + 270px * var(--fit, 1) + 12px);
  display: flex; align-items: center; gap: 12px; padding: 7px 10px 7px 14px; border-radius: 999px;
  background: rgba(8, 14, 34, 0.78); border: 1px solid rgba(125, 211, 252, 0.28); backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.9); font-size: 0.74rem; color: #9fb2d9; white-space: nowrap; width: max-content;
  --fy: -46px;
}
.lp-pass b { color: #fff; font-size: 0.78rem; letter-spacing: 0.01em; }
.lp-pass ol { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.lp-pass li { position: relative; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(159, 178, 217, 0.4); font: 600 9.5px/1 system-ui, sans-serif; color: rgba(159, 178, 217, 0.7); overflow: hidden; }
.lp-pass li em { position: relative; font-style: normal; }
.lp-pass li.done { border-color: transparent; background: linear-gradient(140deg, #f5b544, #e08a12); color: #1a1000; }
.lp-pass li.now { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 10px -2px var(--amber); }
.lp .lp-pass li u { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(140deg, #f5b544, #e08a12); }
.lp-pass li.now em { color: #fff; font-weight: 800; }
@media (max-width: 960px) { .lp-pass b, .lp-pass span { display: none; } }

/* Film interludes: an H3 clip opens out to full screen */
.lp-interlude .lp-act-stage { display: block; padding: 0; --oa: 1; --os: 0.06; --oy: 0px; }
.lp .lp-bleed {
  position: absolute; inset: 0; overflow: hidden; opacity: 1;
  clip-path: inset(calc((1 - var(--p, 1)) * 30%) calc((1 - var(--p, 1)) * 36%) round calc((1 - var(--p, 1)) * 32px));
  transform: scale(calc(1.2 - var(--p, 1) * 0.2));
}
.lp-bleed video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.05); }
.lp-bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 7, 20, 0.2), transparent 40%, rgba(3, 7, 20, 0.75)); }
.lp-bleed-title {
  position: absolute; left: clamp(1.25rem, 6vw, 6rem); right: clamp(1.25rem, 6vw, 6rem); bottom: 11vh; margin: 0;
  font-size: clamp(2.2rem, 5.6vw, 5.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; color: #fff;
  text-shadow: 0 6px 50px rgba(0, 0, 0, 0.7); --fy: 60px;
}

/* Chapter rail */
.lp-rail {
  position: fixed; right: 18px; top: 50%; z-index: 4; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 9px; opacity: 0; pointer-events: none; transition: opacity 0.5s;
}
.lp-rail.is-shown { opacity: 1; pointer-events: auto; }
.lp-rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 0.72rem; color: var(--mute); }
.lp-rail span { opacity: 0; transform: translateX(6px); transition: opacity 0.3s, transform 0.3s; white-space: nowrap; }
.lp-rail i { width: 6px; height: 6px; border-radius: 3px; background: rgba(159, 178, 217, 0.45); transition: all 0.4s var(--ease); }
.lp-rail a:hover span, .lp-rail a:focus-visible span { opacity: 1; transform: none; }
.lp-rail a.is-on { color: var(--ink); }
.lp-rail a.is-on i { height: 22px; background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* Numbers */
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 10rem clamp(1.25rem, 6vw, 6rem); }
.lp-stat { padding: 2rem 1.4rem; border-radius: 1.2rem; border: 1px solid var(--line); background: rgba(10, 18, 44, 0.45); backdrop-filter: blur(10px); text-align: center; }
.lp-stat b { display: block; font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(180deg, #fff, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-stat span { display: block; margin-top: 0.6rem; color: var(--mute); font-size: 0.92rem; }

/* Closing */
.lp-final { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 8rem 1.5rem; }
.lp-final .lp-lead { margin-inline: auto; margin-bottom: 2.4rem; }
.lp-final { position: relative; }
.lp-final > div { max-width: 52rem; padding-top: 44vh; }
.lp-final-drum { position: absolute; left: 50%; top: 7rem; width: min(640px, 92vw); height: 46vh; transform: translateX(-50%); pointer-events: none; }
.lp-drum-canvas { display: block; width: 100%; height: 100%; opacity: 0; }
.lp-final .lp-h1 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); }

.lp-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; padding: 2rem clamp(1.25rem, 6vw, 6rem); border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--mute); background: rgba(3, 7, 20, 0.7); }
.lp-credit { color: var(--sky); }
.lp-film .lp-h2, .lp-film .lp-h1 { text-shadow: 0 4px 40px rgba(3, 7, 20, 0.7); }
.lp-film .lp-text, .lp-film .lp-lead { color: #c3d1ee; }
.lp-film .lp-veil { background: linear-gradient(90deg, rgba(3, 7, 20, 0.7), rgba(3, 7, 20, 0.15) 45%, rgba(3, 7, 20, 0.15) 55%, rgba(3, 7, 20, 0.6)); }

/* Narrow screens: one column, quieter motion */
@media (max-width: 960px) {
  .lp-links { display: none; }
  .lp-chips { display: none; }
  .lp-rail { display: none; }
  .lp-stats { grid-template-columns: 1fr 1fr; padding-block: 5rem; }
  .lp-veil { background: rgba(3, 7, 20, 0.45); }
  /* An act: caption on top (only the current step), the screen below */
  .lp-act-stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 0.8rem; padding: 4.6rem 1rem 1rem; align-items: start; }
  .lp-act-copy { max-width: none; }
  .lp-act .lp-kicker { margin-bottom: 0.5rem; }
  .lp-act .lp-h2 { font-size: clamp(1.45rem, 6vw, 2rem); }
  .lp-act .lp-text { display: none; }
  .lp-steps { margin-top: 0.7rem; }
  .lp-steps li { display: none; padding: 0.45rem 0.7rem; font-size: 0.88rem; }
  .lp-steps li.is-on { display: flex; transform: none; }
  .lp-act-bar { margin-top: 0.6rem; }
}

/* Motion is paused only by the visitor's button (see Landing.motion), not by the OS setting. */
.lp-still *, .lp-still *::before, .lp-still *::after { animation: none !important; transition: none !important; }
.lp-still :is(.lp-ch, .lp-rise, .lp-chip, .lp-chip-img, [data-reveal], .lp-pop, .lp-row, .lp-tree li, .lp-markets span) { opacity: 1 !important; transform: none !important; filter: none !important; }
.lp-still .lp-bar i { transform: none; }
html:has(.lp-still) { scroll-behavior: auto; }

.lp-motion {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
}
.lp-motion:hover { background: rgba(255, 255, 255, 0.14); }
.lp-motion:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lp-sound svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-sound svg path:first-child { fill: currentColor; }
.lp-sound[aria-pressed="false"] { color: var(--mute); }
.lp-motion-pause { display: flex; gap: 3px; }
.lp-motion-pause i { width: 3px; height: 11px; background: currentColor; border-radius: 1px; }
.lp-motion-play { width: 0; height: 0; margin-left: 2px; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
