/* ============================================================
   Demand PlanningOS product page: what only this page uses (its objects, the
   hero stage, the pain loops, the broken chain, the 03 scenes, the Data Engine,
   the simulator's steps, the timeline and the waterfall). The base, the shared
   objects and the section frames are in product-page.css, loaded first.
   Scoped under #dpos (the page root in src/content/products/demand-planningos.njk).

   Motion animates transform and opacity only. Logical properties throughout.
   ============================================================ */

/* One of four values showing in turn (a number ticking up). The last child is
   the resting value, shown when motion is off. */
@keyframes dp-step {
  0%,
  24% {
    opacity: 1;
  }

  25%,
  100% {
    opacity: 0;
  }
}

@keyframes dp-ripple {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.7);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes dp-spin-back {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes dp-pulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

/* ---------- objects: OrderCard ---------- */

#dpos .ord {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--nlm-shadow-lg);
  font-size: 11px;
  color: var(--nlm-fg-3);
}

#dpos .ord-tag {
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#dpos .ord b {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--nlm-fg-1);
}

/* ---------- objects: RecipeBurst ---------- */

#dpos .rcp {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#dpos .tok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  color: #fff;
  background: rgb(61 107 255 / 18%);
  border: 1px solid rgb(61 107 255 / 45%);
  border-radius: 999px;
  padding: 3px 8px;
  transition-delay: calc(var(--i) * 90ms);
}

#dpos .tok :is(svg, i[data-lucide]) {
  width: 10px;
  height: 10px;
  color: var(--pq-ai);
}

/* ---------- objects: StockGauge ---------- */

#dpos .gau {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  color: var(--nlm-navy-300);
}

/* The tank's own background is the gap: what is still missing. */
#dpos .gau-tank {
  position: relative;
  width: 30px;
  height: 52px;
  border: 2px solid var(--nlm-navy-400);
  border-radius: 6px;
  overflow: hidden;
  background: rgb(255 255 255 / 5%);
}

#dpos .gau.is-short .gau-tank {
  border-color: var(--pq-bad);
  background: rgb(239 68 68 / 22%);
}

#dpos .gau-in {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column-reverse;
  transform-origin: 50% 100%;
  transition: transform 0.8s var(--nlm-ease-soft);
}

#dpos .gau-in i {
  flex: none;
}

/* On hand: filled. Reserved: hatched. In transit: outlined. */
#dpos .g-have {
  height: calc(var(--have) * 100%);
  background: var(--nlm-signal);
}

#dpos .g-res {
  height: calc(var(--res) * 100%);
  background: repeating-linear-gradient(45deg, var(--nlm-signal) 0 2px, rgb(61 107 255 / 25%) 2px 5px);
}

#dpos .g-tra {
  height: calc(var(--tra) * 100%);
  box-sizing: border-box;
  border: 1px dashed var(--pq-ai);
}

#dpos .gau-s {
  font-weight: 600;
  color: #ff8a8a;
  transition: opacity 0.3s var(--nlm-ease);
}

#dpos .is-armed .gau-in {
  transform: scaleY(0);
}

#dpos .is-armed .gau-s {
  opacity: 0;
}

/* ---------- objects: CountBackCalendar ---------- */

#dpos .cbk {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

#dpos .cbk-b {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--nlm-fg-2);
  background: var(--nlm-gray-50);
  border: 1px solid var(--nlm-line);
  border-radius: 8px;
  padding: 6px 9px;
  transition-delay: calc(var(--i) * 220ms);
}

/* The step back to the block before it. */
#dpos .cbk-b + .cbk-b::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 100%;
  width: 14px;
  height: 2px;
  background: var(--nlm-signal);
}

#dpos .cbk-b.is-order {
  color: #fff;
  background: var(--nlm-signal);
  border-color: var(--nlm-signal);
  font-weight: 600;
}

#dpos .dark .cbk-b {
  color: var(--nlm-navy-300);
  background: rgb(255 255 255 / 5%);
  border-color: var(--nlm-line-dark);
}

#dpos .dark .cbk-b.is-order {
  color: #fff;
  background: var(--nlm-signal);
  border-color: var(--nlm-signal);
}

/* ---------- objects: SupplierCard ---------- */

#dpos .spc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  font-size: 12px;
  color: var(--nlm-fg-2);
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-inline-start: 3px solid var(--nlm-gray-200);
  border-radius: 10px;
  padding: 9px 11px;
  transition: border-color 0.3s, background 0.3s;
}

#dpos .spc[data-st="ok"] {
  border-inline-start-color: var(--pq-ok);
}

#dpos .spc[data-st="warn"] {
  border-inline-start-color: var(--pq-amber);
}

#dpos .spc[data-st="bad"] {
  border-inline-start-color: var(--pq-bad);
}

#dpos .spc.is-chosen {
  border-color: var(--nlm-signal);
  border-inline-start-color: var(--pq-ok);
  background: var(--nlm-signal-soft);
}

#dpos .spc-n {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--nlm-fg-1);
}

#dpos .ring {
  grid-row: span 3;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: conic-gradient(var(--nlm-signal) calc(var(--ring) * 360deg), var(--nlm-gray-200) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

#dpos .ring b {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  color: var(--nlm-fg-1);
}

#dpos .spc-p {
  font-size: 11px;
  color: var(--nlm-fg-3);
}

#dpos .spc-a {
  font-weight: 700;
  color: var(--nlm-fg-1);
}

#dpos .spc-r {
  grid-column: 1 / -1;
  margin-top: 3px;
}

#dpos .dark .spc {
  color: var(--nlm-navy-300);
  background: rgb(255 255 255 / 5%);
  border-color: var(--nlm-line-dark);
  border-inline-start-color: var(--nlm-navy-600);
}

#dpos .dark .spc[data-st="ok"] {
  border-inline-start-color: var(--pq-ok);
}

#dpos .dark .spc[data-st="warn"] {
  border-inline-start-color: var(--pq-amber);
}

#dpos .dark .spc.is-chosen {
  border-color: var(--pq-ok);
  background: rgb(34 197 94 / 10%);
}

#dpos .dark :is(.spc-n, .spc-a) {
  color: #fff;
}

#dpos .dark .spc-p {
  color: var(--nlm-navy-400);
}

#dpos .dark .ring {
  background: conic-gradient(var(--nlm-signal) calc(var(--ring) * 360deg), rgb(255 255 255 / 12%) 0);
}

#dpos .dark .ring b {
  background: var(--nlm-navy-900);
  color: #fff;
}

/* ---------- objects: VesselRoute ---------- */

#dpos .vr {
  --at: 0.5;

  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 160px;
  min-width: 0;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  color: var(--nlm-signal-ink);
}

#dpos .vr-port:empty {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: currentcolor;
}

#dpos .vr-sea {
  position: relative;
  flex: 1;
  height: 26px;
  overflow: hidden;
}

#dpos .vr-sea::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(50% - 1px);
  border-top: 2px dashed currentcolor;
  opacity: 0.6;
}

/* As wide as the sea; the ship rides its far edge, so sliding it by a share of
   its own width moves the ship that share of the route. */
#dpos .vr-go {
  position: absolute;
  inset: 0;
  transform: translateX(calc((var(--at) - 1) * 100% * var(--dir)));
  transition: transform 1.4s var(--nlm-ease-soft);
}

#dpos .vr-ship {
  position: absolute;
  top: calc(50% - 11px);
  inset-inline-end: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: currentcolor;
  display: flex;
  align-items: center;
  justify-content: center;
}

#dpos .vr-ship :is(svg, i[data-lucide]) {
  width: 12px;
  height: 12px;
  color: #fff;
}

#dpos .vr-eta {
  position: absolute;
  top: -6px;
  inset-inline-start: 34%;
  font-weight: 600;
  color: #fff;
  background: var(--pq-bad);
  border-radius: 999px;
  padding: 2px 7px;
}

#dpos .vr.is-late {
  color: var(--pq-bad);
}

/* ---------- objects: RippleChain ---------- */

#dpos .rpl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  color: var(--nlm-fg-2);
}

#dpos .rpl li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#dpos .rpl li + li::before {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  inset-inline-end: calc(100% + 4px);
  width: 14px;
  height: 2px;
  background: var(--nlm-gray-200);
}

#dpos .rpl i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nlm-gray-400);
  transition: background 0.3s;
  transition-delay: calc(var(--i) * 260ms);
}

#dpos .rpl.is-risk i {
  background: var(--pq-bad);
  animation: dp-ripple 0.7s ease-out both;
  animation-delay: calc(var(--i) * 260ms);
}

#dpos .rpl.is-ok i {
  background: var(--pq-ok);
}

#dpos .dark .rpl {
  color: var(--nlm-navy-300);
}

#dpos .dark .rpl li + li::before {
  background: var(--nlm-navy-600);
}

/* ---------- objects: FixCard ---------- */

#dpos .fxc {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  background: #fff;
  border: 2px solid var(--nlm-line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.3s, background 0.3s, opacity 0.3s;
}

#dpos .fxc-r {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--nlm-navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  font-size: 11px;
}

#dpos .fxc-t {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--nlm-fg-1);
}

#dpos .fxc-f {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  font-size: 12.5px;
  color: var(--nlm-fg-2);
}

#dpos .fxc-f .is-net {
  font-weight: 700;
  color: var(--nlm-success);
}

#dpos .fxc-a {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

#dpos .fxc-a:not(:has(button:not([hidden]))) {
  display: none;
}

#dpos .fxc-no {
  font: inherit;
  font-size: 13px;
  color: var(--nlm-fg-3);
  background: none;
  border: 0;
  padding: 4px 0;
  text-decoration: underline;
  cursor: pointer;
}

#dpos .offer-stamp {
  position: absolute;
  bottom: -12px;
  inset-inline-end: 12px;
}

#dpos .dark .fxc {
  grid-template-columns: auto minmax(0, 1fr);
  background: rgb(255 255 255 / 5%);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 10px;
  padding: 7px 9px;
}

#dpos .dark .fxc-r {
  width: 18px;
  height: 18px;
  font-size: 10px;
  background: var(--nlm-signal);
}

#dpos .dark .fxc-t {
  font-size: 11.5px;
  color: #fff;
}

/* ---------- objects: LearningLoop ---------- */

#dpos .loop {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#dpos .loop-ring {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
}

/* Each half is a full ring showing through a half-wide window; turning the ring
   brings its visible half into the window, so the loop draws itself closed. */
#dpos .loop-h {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}

#dpos .loop-h.is-b {
  clip-path: inset(0 50% 0 0);
}

#dpos .loop-h i {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: 50%;
  border: 3px solid var(--pq-ok);
  clip-path: inset(0 50% 0 0);
  transform: rotate(180deg);
  transition: transform 0.45s linear;
}

#dpos .loop-h.is-b i {
  transform: rotate(360deg);
  transition-delay: 0.45s;
}

#dpos :is(.is-open, .pz:not(.is-done)) .loop-h i {
  transform: rotate(0deg);
  transition-delay: 0s;
}

#dpos :is(.is-open, .pz:not(.is-done)) .loop-h.is-b i {
  transform: rotate(180deg);
}

#dpos .loop-c {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pq-ok);
  transition: opacity 0.4s var(--nlm-ease);
}

#dpos :is(.is-open, .pz:not(.is-done)) .loop-c {
  opacity: 0.25;
}

#dpos .loop-c :is(svg, i[data-lucide]) {
  width: 20px;
  height: 20px;
}

#dpos .loop-l {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: var(--nlm-fg-1);
  transition: opacity 0.4s var(--nlm-ease) 0.9s;
}

#dpos :is(.is-open, .pz:not(.is-done)) .loop-l {
  opacity: 0;
  transition-delay: 0s;
}

/* ---------- objects: source chip, CoreEngine ---------- */

#dpos .srcc {
  display: inline-block;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  line-height: 1.3;
  color: var(--nlm-navy-600);
  background: var(--nlm-gray-100);
  border-radius: 5px;
  padding: 2px 7px;
}

#dpos .core {
  position: relative;
  display: block;
  width: min(100%, 230px);
  aspect-ratio: 1;
}

#dpos .core-r {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgb(169 191 255 / 55%);
  animation: pq-spin 46s linear infinite;
  transition: border-color 0.25s, box-shadow 0.25s;
}

#dpos .core-r.r1 {
  inset: 0;
}

#dpos .core-r.r2 {
  inset: 15%;
  border-color: rgb(61 107 255 / 75%);
  animation: dp-spin-back 34s linear infinite;
}

#dpos .core-r.r3 {
  inset: 30%;
  border-style: solid;
  border-color: var(--nlm-signal);
  animation-duration: 26s;
}

#dpos .core-r.is-hit {
  border-color: #fff;
  box-shadow: 0 0 22px var(--pq-glow);
}

#dpos .core-c {
  position: absolute;
  inset: 39%;
  border-radius: 50%;
  background: var(--nlm-signal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px var(--pq-glow);
}

#dpos .core-c :is(svg, i[data-lucide]) {
  width: 46%;
  height: 46%;
}

#dpos .is-idle .core-r {
  animation-play-state: paused;
}

/* ---------- hero stage ---------- */

#dpos .hx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1.25fr);
  gap: 12px 14px;
  align-items: center;
}

#dpos .hx-ai {
  display: flex;
  justify-content: center;
}

#dpos .hx-gauges {
  display: flex;
  justify-content: space-around;
  gap: 8px;
}

#dpos .hx-cal {
  grid-column: 2 / -1;
}

#dpos :is(.hx-sup, .hx-route, .hx-fixes) {
  grid-column: 1 / -1;
}

#dpos .hx-sup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#dpos .hx-route {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  background: rgb(255 255 255 / 4%);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 12px;
  padding: 12px 14px;
}

/* One of the two chips, picked by the parent's data-st. */
#dpos [data-st="risk"] > .k-ok,
#dpos [data-st="ok"] > .k-risk,
#dpos [data-st="idle"] > :is(.k-ok, .k-risk) {
  display: none;
}

#dpos .hx-fixes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-block-end: 22px;
}

#dpos .hx-fixes > div:first-child .fxc {
  border-color: var(--pq-gold);
}

#dpos .hx-fixes > .stamp {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 0;
}

#dpos .hx-fixes > .cur {
  top: 30%;
  inset-inline-start: 18%;
}

/* ---------- 01 the questions: pain loops ---------- */

#dpos .qa {
  flex-wrap: wrap;
}

#dpos .q2 {
  margin-top: 14px;
}

#dpos .qa-step {
  display: inline-grid;
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  color: var(--nlm-danger);
}

#dpos .qa-step b {
  grid-area: 1 / 1;
  opacity: 0;
  animation: dp-step 6s steps(1) infinite;
}

#dpos .qa-step b:nth-child(2) {
  animation-delay: 1.5s;
}

#dpos .qa-step b:nth-child(3) {
  animation-delay: 3s;
}

#dpos .qa-step b:nth-child(4) {
  opacity: 1;
  animation-delay: 4.5s;
}

/* 1: a recipe multiplied cell by cell; the stock column waits */
#dpos .qa-sheet {
  display: grid;
  grid-template-columns: repeat(2, 58px);
  gap: 3px;
  font-family: var(--nlm-font-mono);
  font-size: 9px;
  color: var(--nlm-fg-3);
}

#dpos .qa-sheet b {
  font-weight: 400;
}

#dpos .qa-sheet i {
  height: 11px;
  border-radius: 2px;
  background: var(--nlm-danger-soft);
  border: 1px solid var(--nlm-line);
  animation: pq-seq 6s var(--nlm-ease) infinite;
  animation-delay: calc(var(--i) * 0.7s);
}

#dpos .qa-sheet i.is-wait {
  background: var(--nlm-gray-100);
  animation: pq-shimmer 1.6s ease-in-out infinite;
}

/* 2: promised stays, actual keeps slipping */
#dpos .qa-sup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--nlm-fg-1);
  background: var(--nlm-gray-50);
  border: 1px solid var(--nlm-line);
  border-radius: 9px;
  padding: 7px 10px;
}

#dpos .qa-sup :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
}

#dpos .qa-pa {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--nlm-font-mono);
  font-size: 12px;
  color: var(--nlm-fg-3);
}

#dpos .qa-act {
  font-size: 15px;
  font-weight: 600;
  color: var(--nlm-danger);
}

/* 3: a production week with one batch waiting */
#dpos .qa-week {
  display: grid;
  grid-template-columns: repeat(7, 18px);
  gap: 3px;
}

#dpos .qa-week i {
  height: 26px;
  border-radius: 3px;
  background: var(--nlm-gray-100);
  border: 1px solid var(--nlm-line);
}

#dpos .qa-week i.is-risk {
  background: var(--nlm-warn-soft);
  border-color: var(--nlm-warn);
  animation: pq-shimmer 1.3s ease-in-out infinite;
}

/* 4: an idle tank, a stopped clock, the cost still running */
#dpos .qa-tank {
  color: var(--nlm-fg-3);
}

#dpos .qa-tank :is(svg, i[data-lucide]) {
  width: 34px;
  height: 34px;
}

#dpos .qa-4 .clk i {
  animation-play-state: paused;
}

#dpos .qa-idle {
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  color: var(--nlm-fg-3);
}

#dpos .qa-idle .qa-step {
  font-size: 15px;
}

/* 5: pallets ageing while the money drains */
#dpos .qa-pal {
  display: inline-flex;
  gap: 4px;
  color: var(--nlm-fg-3);
}

#dpos .qa-pal :is(svg, i[data-lucide]) {
  width: 26px;
  height: 26px;
  animation: pq-shimmer 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.5s);
}

#dpos .qa-age {
  font-family: var(--nlm-font-mono);
  font-size: 12px;
  color: var(--nlm-fg-2);
  background: var(--nlm-warn-soft);
  border: 1px solid var(--nlm-warn);
  border-radius: 999px;
  padding: 3px 9px;
}

#dpos .qa-age .qa-step {
  color: inherit;
}

#dpos .qa-coin {
  color: var(--nlm-warn);
  animation: pq-shimmer 1.8s ease-in-out infinite;
}

#dpos .qa-coin :is(svg, i[data-lucide]) {
  width: 22px;
  height: 22px;
}

/* 6: invoice lines keep appearing while the margin shrinks */
#dpos .qa-inv {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 2px 10px;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  color: var(--nlm-fg-2);
}

#dpos .qa-inv span {
  animation: pq-seq 7s var(--nlm-ease) infinite;
  animation-delay: calc(var(--i) * 0.8s);
}

#dpos .qa-margin {
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  color: var(--nlm-fg-3);
}

#dpos .qa-margin .qa-step {
  font-size: 20px;
}

#dpos .know {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

#dpos .know .seg {
  flex-wrap: wrap;
}

#dpos .know-say {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--nlm-fg-2);
}

#dpos .qextra {
  grid-column: 1 / -1;
  flex-flow: row wrap;
  gap: 8px 28px;
}

#dpos .qextra .qrate {
  flex: 1 1 240px;
  margin-top: 0;
}

/* The headline here is a whole sentence, not a number of hours. */
#dpos .meter-h {
  font-size: clamp(20px, 2vw, 25px);
}

/* ---------- 02 the broken chain ---------- */

#dpos .pz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

#dpos .pz-split {
  display: grid;
  margin: 0;
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 24px);
  letter-spacing: -0.01em;
}

#dpos .pz-split > span {
  grid-area: 1 / 1;
  transition: opacity 0.4s var(--nlm-ease);
}

#dpos .pz-split small {
  font-family: var(--nlm-font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
}

#dpos .pz-split-b {
  color: var(--nlm-danger);
}

#dpos .pz-split-a {
  color: var(--nlm-success);
}

#dpos .pz.is-done .pz-split-b,
#dpos .pz:not(.is-done) .pz-split-a {
  opacity: 0;
  visibility: hidden;
}

#dpos .pz-ctl {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#dpos .pz-hint {
  font-size: 13px;
  color: var(--nlm-fg-3);
}

#dpos .ch-count {
  margin: 0 0 18px;
  font-family: var(--nlm-font-mono);
  font-size: 13px;
  color: var(--nlm-fg-2);
}

#dpos .pz-board {
  --k: 0.55;

  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px 18px;
}

/* The chain as one closed loop: drawn round the board once the approval is in. */
#dpos .pz-board::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid var(--pq-ok);
  border-radius: 28px;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.5s var(--nlm-ease), transform 0.6s var(--nlm-ease-soft);
  pointer-events: none;
}

#dpos .pz.is-done .pz-board::before {
  opacity: 1;
  transform: none;
}

#dpos .pz-slot {
  position: relative;
  display: grid;
  border: 2px dashed var(--nlm-line-strong);
  border-radius: 16px;
}

/* The link to the next slot. It closes (turns blue) once this piece is in. */
#dpos .pz-slot::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  inset-inline-start: calc(100% + 2px);
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: var(--nlm-line-strong);
  transition: background 0.3s 0.3s;
}

#dpos .pz-slot:has(.is-solved)::after {
  background: var(--nlm-signal);
}

#dpos .pz-slot:nth-child(6n)::after,
#dpos .pz-slot-gold::after {
  display: none;
}

#dpos .pz-slot-gold {
  grid-column: 1 / -1;
  border-color: var(--nlm-warn);
}

#dpos .pz-piece {
  display: grid;
  margin: -2px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: start;
  cursor: pointer;
  perspective: 900px;
  transition: transform 0.6s var(--nlm-ease-soft);
}

#dpos .pz-piece:not(.is-solved) {
  z-index: 2;
  transform: translate(calc(var(--sx) * var(--k) * var(--dir)), calc(var(--sy) * var(--k))) rotate(var(--sr));
}

#dpos .pz-piece:not(.is-solved):is(:hover, :focus-visible) {
  transform: translate(calc(var(--sx) * var(--k) * var(--dir)), calc(var(--sy) * var(--k) - 6px)) rotate(0deg);
}

#dpos .pz-face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 196px;
  border-radius: 16px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.42;
  backface-visibility: hidden;
  transition: transform 0.6s var(--nlm-ease-soft);
}

#dpos .pz-face b {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.25;
}

#dpos .pz-n {
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  opacity: 0.7;
}

#dpos .pz-front {
  background: var(--nlm-danger-soft);
  border: 1px solid var(--nlm-danger);
  color: var(--nlm-fg-2);
  box-shadow: var(--nlm-shadow-md);
}

#dpos .pz-front b,
#dpos .pz-front > :is(svg, i[data-lucide]) {
  color: var(--nlm-danger);
}

#dpos .pz-front > :is(svg, i[data-lucide]) {
  width: 20px;
  height: 20px;
}

#dpos .pz-back {
  background: #fff;
  border: 1px solid var(--nlm-line);
  color: var(--nlm-fg-2);
  transform: rotateY(180deg);
}

#dpos .pz-back b {
  color: var(--nlm-fg-1);
}

#dpos .pz-piece.is-solved .pz-front {
  transform: rotateY(-180deg);
}

#dpos .pz-piece.is-solved .pz-back {
  transform: none;
}

#dpos :is(.pz-ai, .pz-ok) {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

#dpos :is(.pz-ai, .pz-ok) :is(svg, i[data-lucide]) {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

#dpos .pz-ai {
  color: var(--nlm-signal-ink);
}

#dpos .pz-ok {
  margin-top: auto;
  font-weight: 600;
  color: var(--nlm-success);
}

#dpos .pz-gold {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: -2px;
  padding: 16px 20px;
  border: 0;
  border-radius: 16px;
  background: var(--pq-gold);
  color: var(--pq-gold-ink);
  font: inherit;
  font-size: 14px;
  text-align: start;
  cursor: pointer;
  touch-action: none;
  box-shadow: 0 10px 28px rgb(227 178 60 / 35%);
  transition: opacity 0.4s var(--nlm-ease), transform 0.5s var(--nlm-ease-soft), box-shadow 0.3s;
}

#dpos .pz-gold > :is(svg, i[data-lucide]) {
  width: 24px;
  height: 24px;
}

#dpos .pz-gold b {
  font-family: var(--nlm-font-display);
  font-size: 18px;
}

#dpos .pz-gold-s {
  margin-inline-start: auto;
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#dpos .pz-gold:not(.is-placed) {
  transform: translateY(18px) rotate(-1.2deg);
}

#dpos .pz-gold:disabled {
  opacity: 0.4;
  box-shadow: none;
  cursor: not-allowed;
}

#dpos .pz-gold:not(.is-placed, :disabled) {
  animation: pq-float 2.2s ease-in-out infinite;
}

#dpos .pz-gold.is-drag {
  animation: none;
  transition: none;
}

#dpos .ch-loop {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

#dpos .turn-core > span {
  white-space: nowrap;
}

/* ---------- 03 the fix: scenes ---------- */

/* Nine cards (ProcureOS has seven). */
#dpos .fix.is-pinned .fx-track {
  height: calc(100vh + 9 * 55vh);
}

#dpos .scene,
#dpos .scene-b {
  min-height: 168px;
}

#dpos .scene .cbk {
  justify-content: center;
}

#dpos .sc-gau {
  display: inline-flex;
  gap: 14px;
}

#dpos .sc-count {
  flex-basis: 100%;
  text-align: center;
  font-family: var(--nlm-font-mono);
  font-size: 12px;
  color: #5ee08a;
}

#dpos .sc-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

#dpos .sc-lead {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--nlm-font-mono);
  font-size: 12px;
  color: var(--nlm-navy-400);
}

#dpos .sc-lead b {
  color: #5ee08a;
}

/* Bars with an extra layer: the quote, then the risk the quote left out. */
#dpos .bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(100%, 320px);
}

#dpos .bar {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
  font-size: 11.5px;
  color: var(--nlm-navy-300);
}

#dpos .bar-t {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: rgb(255 255 255 / 9%);
  overflow: hidden;
}

#dpos .bar-t i {
  position: absolute;
  inset-block: 0;
  transform-origin: 0 50%;
  transition: transform 0.7s var(--nlm-ease-soft);
}

[dir="rtl"] #dpos .bar-t i {
  transform-origin: 100% 50%;
}

#dpos .b-base {
  inset-inline-start: 0;
  width: calc(var(--w) * 100%);
  background: var(--nlm-navy-400);
}

#dpos .b-add {
  inset-inline-start: calc(var(--w) * 100%);
  width: calc(var(--a) * 100%);
  background: var(--pq-bad);
  transition-delay: 0.6s;
}

#dpos .bar.is-best .b-base {
  background: var(--nlm-signal);
}

#dpos .bar.is-best .bar-n {
  color: #fff;
  font-weight: 600;
}

#dpos .bar.is-out {
  opacity: 0.45;
}

#dpos .bar-x {
  grid-column: 2;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
}

#dpos .scene.is-armed .bar-t i {
  transform: scaleX(0);
}

#dpos .scene.is-armed .bar.is-best :is(.b-base, .bar-n) {
  background: var(--nlm-navy-400);
  color: inherit;
  font-weight: 400;
}

#dpos .sc-key {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  color: var(--nlm-navy-300);
}

#dpos .sc-key span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-inline-end: 6px;
  background: var(--nlm-navy-400);
}

#dpos .sc-key .k-add::before {
  background: var(--pq-bad);
}

#dpos .scene-late .vr {
  flex-basis: 100%;
}

#dpos .sc-fixes {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

#dpos .sc-fixes > span {
  display: grid;
  transition-delay: calc(var(--i, 0) * 120ms);
}

#dpos .scene .qa-pal {
  color: var(--nlm-navy-400);
}

#dpos :is(.pot, .yld) {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  color: var(--nlm-navy-300);
}

#dpos :is(.pot, .yld) b {
  color: #ff8a8a;
}

#dpos .pot-t {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: rgb(239 68 68 / 45%);
  overflow: hidden;
}

#dpos .pot-t i {
  position: absolute;
  inset: 0;
  background: var(--nlm-signal);
  transform-origin: 0 50%;
  transform: scaleX(0.72);
  transition: transform 1s var(--nlm-ease-soft);
}

[dir="rtl"] #dpos .pot-t i {
  transform-origin: 100% 50%;
}

#dpos .scene.is-armed .pot-t i {
  transform: scaleX(1);
}

/* The standard the yield is measured against. */
#dpos .pot-t em {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 86%;
  width: 2px;
  background: #fff;
}

#dpos .yld-s {
  grid-column: 2 / -1;
  font-size: 10px;
  color: var(--nlm-navy-400);
}

#dpos .wf-mini {
  position: relative;
  display: flex;
  gap: 4px;
  width: min(100%, 300px);
  height: 86px;
}

#dpos .wf-mini .wf-b {
  position: relative;
  flex: 1;
}

#dpos .wf-mini .wf-b::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: calc(var(--from) * 100%);
  height: max(3px, calc(var(--h) * 100%));
  border-radius: 2px;
  background: #ff8a8a;
  transform-origin: 50% 100%;
  transition: transform 0.4s var(--nlm-ease-soft), opacity 0.2s;
  transition-delay: calc(var(--i) * 110ms);
}

#dpos .wf-mini .wf-b:first-child::before {
  background: var(--nlm-navy-400);
}

#dpos .wf-mini .wf-total::before {
  background: var(--nlm-signal);
}

#dpos .wf-plan {
  position: absolute;
  inset-inline: 0;
  bottom: calc(var(--from) * 100%);
  border-top: 2px dashed #fff;
}

#dpos .scene.is-armed .wf-b::before {
  opacity: 0;
  transform: scaleY(0);
}

#dpos .sc-one {
  position: relative;
  display: grid;
  width: min(100%, 250px);
  padding-block-end: 20px;
}

#dpos .sc-one .fxc {
  border-color: var(--pq-gold);
}

#dpos .sc-one > .cur {
  top: 30%;
  inset-inline-start: 46%;
}

#dpos .sc-one > .stamp {
  position: absolute;
  inset-inline-end: 6px;
  bottom: 0;
}

#dpos .sc-learn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#dpos .sc-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#dpos .tag {
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  color: #5ee08a;
  background: rgb(34 197 94 / 14%);
  border-radius: 999px;
  padding: 3px 9px;
}

/* ---------- 04 the Data Engine ---------- */

#dpos .engine {
  background: linear-gradient(var(--nlm-navy-950), var(--nlm-navy-900));
}

#dpos .eng-top {
  display: flex;
  align-items: center;
  gap: 12px 22px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

#dpos .engine .seg {
  border-color: rgb(255 255 255 / 24%);
  flex-wrap: wrap;
}

#dpos .engine .seg button {
  color: var(--nlm-navy-300);
}

#dpos .engine .seg button[aria-pressed="true"] {
  background: var(--nlm-signal);
  color: #fff;
}

#dpos .eng-meter {
  margin: 0;
  font-size: 14px;
  color: var(--nlm-navy-300);
}

#dpos .eng-meter b {
  font-family: var(--nlm-font-mono);
  font-size: 16px;
  color: #fff;
}

#dpos .eng-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 13.5px;
  color: var(--nlm-navy-400);
}

#dpos .eng-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(190px, 0.72fr) minmax(0, 1.2fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}

#dpos .eng-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

#dpos .eng-lines path {
  fill: none;
  stroke: var(--nlm-signal);
  stroke-width: 1.2;
  opacity: 0.3;
  transition: opacity 0.25s, stroke 0.25s;
}

#dpos .eng-lines path.is-off {
  opacity: 0.07;
}

#dpos .eng-lines path.is-hl {
  opacity: 1;
  stroke: #fff;
}

#dpos .eng-lines path.is-dim {
  opacity: 0.06;
}

#dpos .eng-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

#dpos .eng-h {
  font-family: var(--nlm-font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nlm-navy-300);
  margin: 0 0 4px;
}

#dpos .eng-g {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}

#dpos .eng-gl {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--nlm-navy-400);
}

#dpos .src {
  display: flex;
  align-items: stretch;
  gap: 6px;
  transition: opacity 0.25s;
}

#dpos .src-b {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 9px;
  font: inherit;
  text-align: start;
  color: #fff;
  background: rgb(255 255 255 / 5%);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

#dpos .src-b > :is(svg, i[data-lucide]) {
  grid-row: span 2;
  width: 17px;
  height: 17px;
  color: var(--pq-ai);
}

#dpos .src-n {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
}

#dpos .src-n small {
  display: block;
  font-family: var(--nlm-font-body);
  font-weight: 400;
  font-size: 11px;
  color: var(--nlm-navy-400);
}

#dpos .src-m {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#dpos .srcm {
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--nlm-navy-300);
  background: rgb(255 255 255 / 8%);
  border-radius: 4px;
  padding: 1px 6px;
}

#dpos .src-sw {
  flex: none;
  align-self: center;
  display: flex;
  background: none;
  border: 0;
  padding: 8px 2px;
  cursor: pointer;
}

#dpos .src-sw .qsw-k {
  background: var(--nlm-navy-600);
}

#dpos .src-sw[aria-checked="true"] .qsw-k {
  background: var(--pq-ok);
}

#dpos .src-sw[aria-checked="true"] .qsw-k::after {
  translate: calc(16px * var(--dir)) 0;
}

#dpos .src.is-off .src-b {
  opacity: 0.45;
  border-style: dashed;
}

#dpos :is(.src-b:hover, .src.is-hl .src-b) {
  border-color: #fff;
  background: rgb(61 107 255 / 22%);
}

#dpos :is(.src, .out).is-dim {
  opacity: 0.3;
}

#dpos .eng-mid {
  align-self: center;
  align-items: center;
  text-align: center;
}

#dpos .eng-core {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

/* The gate sits on the outputs' side of the core: nothing is written back to
   another system without passing it. */
#dpos .gate {
  position: absolute;
  top: calc(50% - 15px);
  inset-inline-end: -8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pq-gold-ink);
  background: var(--pq-gold);
  border-radius: 999px;
  padding: 0 9px;
  box-shadow: 0 6px 18px rgb(227 178 60 / 35%);
}

#dpos .gate :is(svg, i[data-lucide]) {
  width: 12px;
  height: 12px;
}

#dpos .gate.is-hit {
  animation: dp-pulse 0.5s var(--nlm-ease-soft);
}

#dpos .eng-rings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: start;
}

#dpos .eng-rings li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--nlm-navy-400);
  border-inline-start: 2px solid var(--nlm-navy-600);
  padding-inline-start: 10px;
  transition: border-color 0.25s;
}

#dpos .eng-rings b {
  font-family: var(--nlm-font-display);
  font-size: 13.5px;
  color: #fff;
}

#dpos .eng-rings li.is-hit {
  border-color: var(--nlm-signal);
}

#dpos .out {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1px 9px;
  font: inherit;
  text-align: start;
  color: #fff;
  background: rgb(255 255 255 / 5%);
  border: 1px solid var(--nlm-line-dark);
  border-inline-start: 3px solid var(--pq-ok);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, opacity 0.25s;
}

#dpos .out-i {
  grid-row: span 2;
  color: var(--pq-ai);
}

#dpos .out-i :is(svg, i[data-lucide]) {
  width: 17px;
  height: 17px;
}

#dpos .out-n {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
}

#dpos .out-v {
  grid-column: 2;
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--nlm-navy-300);
}

#dpos .out-v b {
  color: #5ee08a;
}

#dpos .out-s {
  grid-column: 3;
  grid-row: 1 / span 2;
  max-width: 132px;
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  line-height: 1.3;
  text-align: end;
  color: #5ee08a;
}

#dpos .out-lock {
  grid-column: 2 / -1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  color: var(--pq-gold);
}

#dpos .out-lock :is(svg, i[data-lucide]) {
  width: 11px;
  height: 11px;
}

#dpos .out[data-state="reduced"] {
  border-inline-start-color: var(--pq-amber);
}

#dpos .out[data-state="reduced"] .out-s {
  color: #fbbf24;
}

#dpos .out[data-state="off"] {
  border-inline-start-color: var(--nlm-navy-600);
  background: none;
  border-style: dashed;
}

#dpos .out[data-state="off"] :is(.out-n, .out-v, .out-i, .out-lock) {
  opacity: 0.4;
}

#dpos .out[data-state="off"] .out-s {
  color: var(--nlm-navy-300);
}

#dpos :is(.out:hover, .out.is-hl) {
  border-color: #fff;
  background: rgb(61 107 255 / 22%);
}

#dpos .out.is-pulse {
  animation: dp-pulse 0.5s var(--nlm-ease-soft);
}

/* DataPacket: a record on its way through. */
#dpos .pkt {
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  white-space: nowrap;
  color: #fff;
  background: var(--nlm-signal);
  border-radius: 999px;
  padding: 3px 8px;
  box-shadow: 0 4px 14px var(--pq-glow);
}

#dpos .pkt.is-gold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pq-gold-ink);
  background: var(--pq-gold);
  box-shadow: 0 4px 14px rgb(227 178 60 / 40%);
}

#dpos .pkt :is(svg, i[data-lucide]) {
  width: 10px;
  height: 10px;
}

#dpos .eng-cap {
  min-height: 42px;
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  background: rgb(255 255 255 / 5%);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 12px;
  padding: 12px 16px;
}

#dpos .eng-tick {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 0;
  font-family: var(--nlm-font-mono);
  font-size: 11.5px;
  color: #5ee08a;
}

#dpos .eng-tick-l {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nlm-navy-400);
}

#dpos .eng-tick [data-tick].is-new {
  animation: pq-faq-in 0.3s var(--nlm-ease-soft) both;
}

#dpos .eng-table {
  margin-top: 18px;
  border-color: var(--nlm-line-dark);
  color: var(--nlm-navy-300);
}

#dpos .eng-table summary {
  color: #fff;
}

#dpos .eng-rule {
  max-width: 78ch;
  margin: 26px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--nlm-navy-300);
}

#dpos .engine .fx-cap {
  margin-top: 12px;
  color: #fff;
}

/* ---------- tables (the engine's text view, the simulator's needs) ---------- */

#dpos .tbl-wrap {
  overflow-x: auto;
}

#dpos .tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--nlm-font-body);
  font-size: 13px;
  line-height: 1.5;
  text-align: start;
}

#dpos .tbl caption {
  text-align: start;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 0 8px;
}

#dpos .tbl :is(th, td) {
  text-align: start;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--nlm-line);
}

#dpos .tbl thead th {
  font-family: var(--nlm-font-mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
}

#dpos .tbl tbody th {
  font-weight: 600;
  color: var(--nlm-fg-1);
}

#dpos .engine .tbl {
  min-width: 720px;
}

#dpos .engine .tbl :is(th, td) {
  border-color: var(--nlm-line-dark);
}

#dpos .engine .tbl :is(caption, tbody th) {
  color: #fff;
}

#dpos .engine .tbl thead th {
  color: var(--nlm-navy-400);
}

/* ---------- 05 the simulator ---------- */

#dpos .sm-stages {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

#dpos .sm-stages li {
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.03em;
  padding-inline: 5px 8px;
}

#dpos .sm-dot :is(svg, i[data-lucide]) {
  width: 12px;
  height: 12px;
}

#dpos .sm-side {
  position: sticky;
  top: 96px;
}

#dpos .drop {
  min-height: 0;
}

#dpos .fields {
  grid-template-columns: minmax(0, 1fr);
}

#dpos .fld dt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#dpos .fld dt .st {
  font-size: 9px;
  padding: 1px 6px;
  text-transform: none;
}

#dpos .sm-cap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  font-family: var(--nlm-font-mono);
  font-size: 11.5px;
  color: var(--nlm-success);
  transition: opacity 0.3s;
}

#dpos .sm-cap :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
}

#dpos .sm-cap.is-off {
  opacity: 0;
}

#dpos .fed {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}

#dpos .sm-side > .fed {
  margin-top: 10px;
}

#dpos .fed-l {
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
}

#dpos .sm-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

#dpos .stp {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.4s var(--nlm-ease), transform 0.5s var(--nlm-ease-soft), border-color 0.3s;
}

/* A step that has not happened yet keeps its place and its title, as an empty
   outline: the layout never moves, and nothing unreadable is left on screen. */
#dpos .stp.is-off {
  opacity: 1;
  transform: none;
  background: none;
  border-style: dashed;
  box-shadow: none;
}

#dpos .stp.is-off > :not(.stp-h),
#dpos .stp.is-off .fed {
  visibility: hidden;
}

/* The last step waits for a person, so its empty outline says so. */
#dpos .stp-wait {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--nlm-fg-2);
}

#dpos .stp-wait :is(svg, i[data-lucide]) {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--nlm-warn);
}

#dpos .stp.is-off > .stp-wait {
  display: flex;
  visibility: visible;
}

#dpos .stp.is-now {
  border-color: var(--nlm-signal);
}

#dpos .stp-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
}

#dpos .stp-h .panel-t {
  margin: 0;
}

#dpos .stp-n {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--nlm-fg-2);
}

#dpos .need th span:first-child {
  display: block;
}

#dpos .need-bar {
  display: block;
  width: 96px;
  height: 5px;
  margin-top: 4px;
  border-radius: 3px;
  background: var(--nlm-danger);
  overflow: hidden;
}

#dpos .need-bar i {
  display: block;
  height: 100%;
  background: var(--nlm-signal);
  transform-origin: 0 50%;
  transform: scaleX(var(--have));
  transition: transform 0.7s var(--nlm-ease-soft);
}

[dir="rtl"] #dpos .need-bar i {
  transform-origin: 100% 50%;
}

#dpos .need tr.is-off .need-bar i {
  transform: scaleX(0);
}

#dpos .need tr.is-off {
  transform: none;
}

#dpos .need-s {
  font-family: var(--nlm-font-mono);
  font-weight: 700;
  white-space: nowrap;
}

#dpos .need [data-st="short"] .need-s {
  color: var(--nlm-danger);
}

#dpos .need [data-st="covered"] .need-s {
  color: var(--nlm-success);
}

#dpos .need :is([data-st="covered"], [data-st="inhouse"]) .need-bar {
  background: var(--nlm-gray-200);
}

#dpos .sups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#dpos .sups > div {
  display: grid;
}

#dpos .handoff {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--nlm-signal-ink);
}

#dpos .handoff :is(svg, i[data-lucide]) {
  width: 16px;
  height: 16px;
}

#dpos .sails {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#dpos .sail {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 12px;
  border: 1px solid var(--nlm-line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--nlm-fg-2);
}

#dpos .sail-n {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  color: var(--nlm-fg-1);
}

#dpos .sail-n :is(svg, i[data-lucide]) {
  width: 15px;
  height: 15px;
}

/* Total cost; the darker part of it is the freight alone. */
#dpos .sail-t {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: var(--nlm-gray-100);
  overflow: hidden;
}

#dpos .sail-t i {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  transform-origin: 0 50%;
  transition: transform 0.7s var(--nlm-ease-soft);
}

[dir="rtl"] #dpos .sail-t i {
  transform-origin: 100% 50%;
}

#dpos .sail-t .b-base {
  width: calc(var(--w) * 100%);
  background: var(--nlm-warn);
}

#dpos .sail-t .b-fr {
  width: calc(var(--fw) * 100%);
  background: var(--nlm-navy-400);
}

#dpos .sail.is-off .sail-t i {
  transform: scaleX(0);
}

#dpos .sail-x {
  white-space: nowrap;
  color: var(--nlm-fg-1);
}

#dpos .sail-m {
  grid-column: 2;
  font-size: 11.5px;
  color: var(--nlm-fg-3);
}

#dpos .sail-best {
  grid-column: 3;
  justify-self: end;
  visibility: hidden;
}

#dpos .sail[data-st="chosen"] {
  border-color: var(--nlm-signal);
  background: var(--nlm-signal-soft);
}

#dpos .sail[data-st="chosen"] .sail-best {
  visibility: visible;
}

#dpos .sail[data-st="late"] {
  background: var(--nlm-gray-50);
  color: var(--nlm-fg-3);
}

#dpos .sail[data-st="late"] :is(.sail-n, .sail-x) {
  color: var(--nlm-fg-3);
}

#dpos .stp-alert[data-st="risk"]:not(.is-off) {
  border-color: var(--nlm-danger);
  background: var(--nlm-danger-soft);
}

#dpos .alert-top {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
}

#dpos .alert-top .st {
  text-transform: none;
  font-size: 11px;
}

#dpos .impact {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--nlm-fg-1);
}

#dpos .stp-alert[data-st="risk"] .alert-flag .k-ok,
#dpos .stp-alert[data-st="ok"] .alert-flag .k-risk {
  display: none;
}

#dpos .fixes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#dpos .fixes > li {
  display: grid;
}

#dpos .fixes > .is-approved .fxc {
  border-color: var(--pq-gold);
  background: var(--nlm-warn-soft);
}

#dpos .fixes.is-closed > li:not(.is-approved, .fix-x) .fxc {
  opacity: 0.5;
}

#dpos .fixes > .is-rejected .fxc {
  opacity: 0.5;
}

#dpos .fixes > .fix-x {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--nlm-fg-3);
  border: 1px dashed var(--nlm-line-strong);
  border-radius: 10px;
  padding: 8px 12px;
}

#dpos .fix-x :is(svg, i[data-lucide]) {
  flex: none;
  width: 14px;
  height: 14px;
}

#dpos .why-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  color: var(--nlm-success);
}

#dpos .why-ok :is(svg, i[data-lucide]) {
  width: 15px;
  height: 15px;
}

#dpos .prio {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

#dpos .prio legend {
  padding: 0;
  margin-block-end: 6px;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
}

#dpos .prio label {
  position: relative;
  cursor: pointer;
}

#dpos .prio input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

#dpos .prio label span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--nlm-fg-2);
  border: 1px solid var(--nlm-line-strong);
  border-radius: 999px;
  padding: 6px 13px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#dpos .prio input:checked + span {
  background: var(--nlm-navy-900);
  border-color: var(--nlm-navy-900);
  color: #fff;
}

#dpos .prio input:focus-visible + span {
  outline: 2px solid var(--nlm-signal);
  outline-offset: 3px;
}

#dpos .learn {
  display: flex;
  align-items: center;
  gap: 16px 28px;
  flex-wrap: wrap;
}

#dpos .learn-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#dpos .learn-tags li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--nlm-fg-2);
  border-bottom: 1px solid var(--nlm-line);
  padding-bottom: 6px;
  transition-delay: calc(var(--i, 0) * 200ms);
}

#dpos .learn-tags b {
  font-family: var(--nlm-font-mono);
  color: var(--nlm-success);
  white-space: nowrap;
}

#dpos .stp-learn .sm-sum {
  margin-top: 4px;
}

/* ---------- 06 outcomes ---------- */

#dpos .oc-viz {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

#dpos .tl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

#dpos .tl .panel-t {
  margin: 0;
}

#dpos .tl-track {
  position: relative;
  align-self: stretch;
  height: 40px;
  margin-inline: 14px;
}

#dpos .tl-track::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(50% - 2px);
  height: 4px;
  border-radius: 2px;
  background: var(--nlm-gray-200);
}

/* The time won: from the earlier discovery to production day. */
#dpos .tl-zone {
  position: absolute;
  inset-block: 8px;
  inset-inline: 60% 0;
  border-radius: 6px;
  background: var(--nlm-success-soft);
  border: 1px solid var(--nlm-success);
  transform-origin: 100% 50%;
  transition: transform 0.8s var(--nlm-ease-soft), opacity 0.4s;
}

[dir="rtl"] #dpos .tl-zone {
  transform-origin: 0 50%;
}

/* As wide as the track, with the marker on its far edge (see .vr-go). */
#dpos .tl-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transform: translateX(calc(-40% * var(--dir)));
  transition: transform 0.8s var(--nlm-ease-soft);
}

#dpos .tl-mark :is(svg, i[data-lucide]) {
  width: 28px;
  height: 28px;
  margin-inline-end: -14px;
  box-sizing: border-box;
  padding: 6px;
  border-radius: 50%;
  color: #fff;
  background: var(--nlm-signal);
  transition: background 0.4s;
}

#dpos .tl[data-state="before"] .tl-mark {
  transform: none;
}

#dpos .tl[data-state="before"] .tl-mark :is(svg, i[data-lucide]) {
  background: var(--nlm-danger);
}

#dpos .tl[data-state="before"] .tl-zone {
  opacity: 0;
  transform: scaleX(0);
}

#dpos .tl-ends {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: -6px 0 0;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  color: var(--nlm-fg-3);
}

#dpos .tl-say {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-size: 13.5px;
  color: var(--nlm-success);
}

#dpos .tl-say b {
  font-family: var(--nlm-font-display);
  font-size: 17px;
  color: var(--nlm-signal-ink);
}

#dpos .tl[data-state="before"] .tl-say b {
  color: var(--nlm-danger);
}

/* The waterfall: one row per cost line, each bar starting where the last ended. */
#dpos ol.wf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#dpos ol.wf .wf-b {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  height: 20px;
  font-size: 12px;
  color: var(--nlm-fg-2);
}

#dpos ol.wf .wf-l {
  grid-column: 1;
  grid-row: 1;
  line-height: 1.2;
}

#dpos ol.wf .wf-v {
  grid-column: 3;
  grid-row: 1;
  text-align: end;
  font-family: var(--nlm-font-mono);
  font-size: 11.5px;
  color: var(--nlm-fg-1);
}

#dpos ol.wf .wf-b::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  width: max(3px, calc(var(--h) * 100%));
  height: 12px;
  margin-inline-start: calc(var(--from) * 100%);
  border-radius: 3px;
  background: var(--nlm-danger);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--nlm-ease-soft), opacity 0.2s;
  transition-delay: calc(var(--i) * 130ms);
}

[dir="rtl"] #dpos ol.wf .wf-b::before {
  transform-origin: 100% 50%;
}

/* The purchase price runs off the chart's start: the axis does not begin at zero. */
#dpos ol.wf .wf-cut::before {
  background: linear-gradient(90deg, transparent 0 6px, var(--nlm-navy-400) 6px 10px, transparent 10px 14px, var(--nlm-navy-400) 14px);
}

[dir="rtl"] #dpos ol.wf .wf-cut::before {
  background: linear-gradient(270deg, transparent 0 6px, var(--nlm-navy-400) 6px 10px, transparent 10px 14px, var(--nlm-navy-400) 14px);
}

#dpos ol.wf .wf-total {
  margin-top: 4px;
  font-weight: 700;
  color: var(--nlm-fg-1);
}

#dpos ol.wf .wf-total::before {
  background: var(--nlm-signal);
}

#dpos .wfp.is-armed .wf-b::before {
  opacity: 0;
  transform: scaleX(0);
}

#dpos .wfp {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#dpos .wfp .panel-t {
  margin: 0;
}

#dpos .wf-cmp {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

#dpos .wf-cmp .st {
  text-transform: none;
  font-size: 11px;
}

#dpos .oc-n small {
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
}

/* ---------- final cta ---------- */

#dpos .cv-word {
  font-size: clamp(34px, 6.2vw, 72px);
}

#dpos .works {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 30px 0 0;
  font-family: var(--nlm-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--nlm-navy-400);
}

#dpos .works a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  padding: 5px 12px;
  transition: border-color 0.2s, background 0.2s;
}

#dpos .works a:hover {
  border-color: var(--nlm-signal);
  background: var(--nlm-signal);
}

/* ---------- responsive ---------- */

@media (width <= 1180px) {
  #dpos .pz-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #dpos .pz-slot:nth-child(6n)::after {
    display: block;
  }

  #dpos .pz-slot:nth-child(4n)::after {
    display: none;
  }

  #dpos .sm-stages {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (width <= 980px) {
  #dpos .eng-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  #dpos .eng-lines {
    display: none;
  }

  #dpos .eng-mid {
    flex-flow: row wrap;
    justify-content: center;
    text-align: start;
  }

  #dpos .eng-mid .eng-h {
    flex-basis: 100%;
    text-align: center;
  }

  #dpos .eng-core {
    flex: 0 0 170px;
    margin: 0;
  }

  #dpos .eng-rings {
    flex: 1 1 220px;
  }

  #dpos .eng-g,
  #dpos .eng-out {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #dpos :is(.eng-gl, .eng-out .eng-h) {
    grid-column: 1 / -1;
  }

  #dpos .sm-side {
    position: static;
  }

  /* The core is small here: the gate hangs under it instead of over it. */
  #dpos .gate {
    top: auto;
    bottom: -8px;
    inset-inline-end: auto;
  }

  #dpos .sm-stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #dpos .sc-fixes {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (width <= 640px) {
  /* A two-word product name: keep it on the screen at 320px. */
  #dpos .mark-w {
    font-size: clamp(21px, 6.6vw, 30px);
  }

  #dpos .hx {
    grid-template-columns: minmax(0, 1fr) 66px;
  }

  #dpos :is(.hx-recipe, .hx-cal, .hx-gauges) {
    grid-column: 1 / -1;
  }

  #dpos .hx-fixes,
  #dpos .hx-sup,
  #dpos .sups {
    grid-template-columns: minmax(0, 1fr);
  }

  #dpos .hx-fixes > .stamp {
    position: static;
    justify-self: start;
  }

  #dpos .hx-fixes {
    padding-block-end: 0;
  }

  /* The chain runs top to bottom. */
  #dpos .pz-board {
    --k: 0.35;

    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  #dpos .pz-face {
    min-height: 128px;
  }

  #dpos .pz-slot:nth-child(n)::after {
    display: block;
    top: calc(100% + 2px);
    inset-inline-start: calc(50% - 3px);
    width: 6px;
    height: 16px;
  }

  #dpos .pz-slot-gold:nth-child(n)::after {
    display: none;
  }

  #dpos .eng-g,
  #dpos .eng-out {
    grid-template-columns: minmax(0, 1fr);
  }

  #dpos .sail {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #dpos .sail-t {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #dpos .sail-m {
    grid-column: 1 / -1;
  }

  #dpos .sail-best {
    grid-column: 1 / -1;
    justify-self: start;
  }

  #dpos .sail:not([data-st="chosen"]) .sail-best {
    display: none;
  }

  #dpos ol.wf .wf-b {
    grid-template-columns: 84px minmax(0, 1fr) 62px;
    gap: 6px;
    font-size: 11px;
  }

  #dpos .need-bar {
    width: 64px;
  }

  #dpos .tbl :is(th, td) {
    padding: 7px 6px;
  }
}

/* ---------- Trial dialog ("Request Trial Today") ----------
   A native <dialog>: showModal() puts it in the top layer, so it sits above the
   rail and the fixed objects without a z-index. */
.dp-trial {
  inline-size: min(880px, calc(100% - 32px));
  max-block-size: calc(100dvh - 32px);
  padding: clamp(24px, 3.4vw, 40px);
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--nlm-fg-2);
  box-shadow: var(--nlm-shadow-xl);
  font-family: var(--nlm-font-body);
}

.dp-trial::backdrop {
  background: rgb(8 9 31 / 62%);
  backdrop-filter: blur(2px);
}

.dp-trial-x {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-end: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 34px;
  block-size: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--nlm-gray-100);
  color: var(--nlm-fg-2);
  cursor: pointer;
}

.dp-trial-x:hover {
  background: var(--nlm-gray-200);
}

.dp-trial-x svg {
  inline-size: 18px;
  block-size: 18px;
}

.dp-trial-eyebrow {
  margin-block-end: 12px;
  color: var(--nlm-fg-3);
}

.dp-trial-h {
  margin: 0 0 8px;
  padding-inline-end: 40px;
  font-family: var(--nlm-font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--nlm-fg-1);
}

.dp-trial-lead {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.55;
}

.dp-trial-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  align-items: start;
}

.dp-trial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--nlm-line);
  border-radius: 16px;
}

.dp-trial-card h3 {
  margin: 0;
  font-family: var(--nlm-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--nlm-fg-1);
}

.dp-trial-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.dp-trial-card form {
  inline-size: 100%;
}

.dp-trial-card .field {
  margin-block-end: 12px;
}

.dp-trial-hp {
  position: absolute;
  inset-inline-start: -9999px;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.dp-trial-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-block: 4px 16px;
  font-size: 13px;
  line-height: 1.5;
}

.dp-trial-consent input {
  margin-block-start: 3px;
}

.dp-trial-err {
  margin-block-start: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--nlm-danger);
}

.dp-trial-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nlm-success);
}

.dp-trial-ok svg {
  inline-size: 20px;
  block-size: 20px;
}

[data-trial-done]:focus {
  outline: none;
}

@media (width <= 720px) {
  .dp-trial-grid {
    grid-template-columns: 1fr;
  }
}
