/* ============================================================
   Kubrik WMS Mobile — landing + details (on top of product-page.css)
   Accent comes from <body style="--pos: var(--color-wms) …">.
   ============================================================ */
body[data-page^="wms-mobile"] .pd-hero {
  background:
    radial-gradient(ellipse 1100px 460px at 8% -18%, rgba(0,179,104,0.13), transparent 60%),
    radial-gradient(ellipse 800px 340px at 100% 115%, rgba(0,179,104,0.08), transparent 60%);
}

/* ---------- rugged handheld ---------- */
.wm-stage { display: grid; justify-items: center; gap: 12px; }
.wm-device {
  width: min(300px, 100%); background: #1b2530; border-radius: 34px; padding: 16px 12px 22px; position: relative;
  box-shadow: 0 30px 60px rgba(15, 29, 42, 0.28), 0 6px 16px rgba(15, 29, 42, 0.12);
}
.wm-device::before, .wm-device::after {        /* side scan triggers */
  content: ""; position: absolute; top: 120px; width: 6px; height: 54px; border-radius: 4px; background: #f59e0b;
}
.wm-device::before { left: -5px; }
.wm-device::after { right: -5px; }
.wm-device__cam { width: 46px; height: 6px; border-radius: 4px; background: #2b3946; margin: 0 auto 10px; }
.wm-screen-wrap {
  background: #f4f7f5; border-radius: 16px; height: 460px; overflow: hidden; display: flex; flex-direction: column;
  font-size: 12.5px; color: #10202c;
}
.wm-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px;
  background: #0f1d2a; color: #d7e3ea; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.03em;
}
.wm-bar__wh { display: inline-flex; gap: 5px; align-items: center; }
.wm-bar__wh .material-icons-outlined { font-size: 14px; }
.wm-pill { white-space: nowrap; display: inline-flex; gap: 5px; align-items: center; padding: 2px 8px; border-radius: 100px; background: rgba(34,197,94,0.18); color: #86efac; }
.wm-pill .material-icons-outlined { font-size: 13px; }
.wm-pill.is-off { background: rgba(245,158,11,0.2); color: #fcd34d; }
.wm-screen { display: none; flex: 1; padding: 12px; flex-direction: column; gap: 8px; min-height: 0; }
.wm-screen.is-on { display: flex; animation: wm-in 0.35s var(--ease-out); }
@keyframes wm-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.wm-crumb { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: #5b6b76; font-weight: 700; }
.wm-title { font-size: 15px; font-weight: 700; line-height: 1.25; }
.wm-scan {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: #fff;
  border: 1.5px dashed var(--pos); font-family: var(--mono); font-size: 11.5px;
}
.wm-scan .material-icons-outlined { font-size: 18px; color: var(--pos); }
.wm-card { background: #fff; border-radius: 10px; padding: 9px 10px; display: grid; gap: 4px; border: 1px solid #e3e9e6; }
.wm-card b { font-size: 12.5px; }
.wm-mono { font-family: var(--mono); font-size: 11px; color: #3b4b56; }
.wm-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wm-kv div { background: #f4f7f5; border-radius: 8px; padding: 6px; text-align: center; }
.wm-kv span { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; color: #5b6b76; }
.wm-kv strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.wm-note { display: flex; gap: 6px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; font-size: 11.5px; line-height: 1.4; }
.wm-note .material-icons-outlined { font-size: 16px; flex: none; }
.wm-note--warn { background: rgba(245,158,11,0.16); color: #7a3b05; }
.wm-note--ok { background: rgba(21,128,61,0.12); color: #14532d; }
.wm-note--info { background: var(--pos-soft); color: var(--pos-deep); }
.wm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wm-tile { background: #fff; border: 1px solid #e3e9e6; border-radius: 12px; padding: 12px 10px; display: grid; gap: 4px; font-weight: 700; }
.wm-tile .material-icons-outlined { color: var(--pos); font-size: 22px; }
.wm-btn {
  margin-top: auto; background: var(--pos); color: #fff; border-radius: 12px; padding: 12px; text-align: center; font-weight: 700;
  font-size: 13px; letter-spacing: 0.02em;
}
.wm-btn--ghost { background: #fff; color: #10202c; border: 1px solid #d5ddd9; margin-top: 0; }
.wm-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 100px; }
.wm-tag--q { background: rgba(245,158,11,0.18); color: #92400e; }
.wm-tag--ok { background: rgba(21,128,61,0.14); color: #166534; }
.wm-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wm-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.wm-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #c9d4cf; cursor: pointer;
}
.wm-dots button[aria-current="step"] { background: var(--pos); width: 22px; border-radius: 6px; }
.wm-dots button:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.wm-caption { font-size: 13px; color: var(--text-muted); text-align: center; min-height: 1.4em; }

/* ---------- connected-to-OS flows ---------- */
.wm-flows { display: grid; gap: 14px; }
.wm-flow { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 18px; align-items: center; }
.wm-flow h3 { font-size: 16px; color: var(--text-heading); line-height: 1.3; }
.wm-flow p { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.55; }
.wm-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wm-chain span { font-size: 13px; padding: 6px 11px; border-radius: 8px; background: var(--pos-soft); color: var(--pos-deep); font-weight: 600; }
.wm-chain span.is-os { background: rgba(51,102,255,0.09); color: #1e40af; }
.wm-chain i { font-style: normal; color: var(--text-muted); }

/* ---------- tables on the details page ---------- */
.wm-yes { color: var(--ok); font-weight: 700; }
.wm-no { color: var(--warn); font-weight: 700; }

@media (max-width: 980px) { .wm-flow { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wm-screen.is-on { animation: none; } }
