/* Inventory stories: native product surfaces and isolated photographic objects. */
.inventory-scene { --inventory-ink: #071a35; --inventory-muted: #728097; --inventory-line: #e4e9ef; position: relative; display: grid; align-content: center; width: 100%; min-height: 390px; color: var(--inventory-ink); font-family: inherit; font-size: 13px; line-height: 1.4; }
.inventory-scene * { box-sizing: border-box; }
.inventory-scene p { margin: 0; }
.inventory-scene strong { font-weight: 650; }
.inventory-scene small { display: block; font-size: 11px; line-height: 1.5; color: var(--inventory-muted); }
.inventory-icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; vertical-align: middle; }
.inventory-object { display: block; width: 100%; height: 100%; object-fit: contain; }
.inventory-chip { display: inline-flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 9px; background: #fff; box-shadow: 0 9px 25px rgb(7 26 53 / 5%); }
.inventory-chip > .inventory-icon { color: #f45118; }
.inventory-chip strong { display: block; font-size: 12px; }
.inventory-chip small { margin-top: 3px; }
.inventory-ui-label { margin-bottom: 14px !important; font-size: 13px; font-weight: 650; }
.inventory-search { width: min(100%, 510px); margin: auto; transform: perspective(1100px) rotateY(calc(var(--scene-x, 0) * -3deg)) rotateX(calc(var(--scene-y, 0) * 2deg)); }
.inventory-query { display: flex; align-items: center; gap: 13px; min-height: 62px; padding: 16px 21px; background: #fff; border: 1px solid #d6e2ef; border-radius: 10px; box-shadow: 0 7px 18px rgb(7 26 53 / 5%); color: #234c79; }
.inventory-query__text { min-width: 0; overflow: hidden; white-space: nowrap; font-size: 17px; letter-spacing: -.04em; color: var(--inventory-ink); }
.inventory-caret { width: 1px; height: 20px; margin-left: -10px; background: #f45118; }
.inventory-results { overflow: hidden; margin-top: 18px; border: 1px solid var(--inventory-line); border-radius: 10px; background: #fff; box-shadow: 0 16px 36px rgb(7 26 53 / 4%); }
.inventory-result { display: grid; grid-template-columns: 57px 1fr 18px; align-items: center; gap: 15px; min-height: 88px; padding: 12px 18px; }
.inventory-result + .inventory-result { border-top: 1px solid #edf0f3; }
.inventory-result strong { display: block; font-size: 12px; letter-spacing: -.02em; }
.inventory-result small { margin-top: 5px; }
.inventory-result > .inventory-icon { width: 16px; height: 16px; color: #53779e; }
.inventory-thumb { display: block; position: relative; overflow: hidden; width: 54px; height: 54px; background: #fff; }
.inventory-thumb img { position: absolute; max-width: none !important; height: auto !important; }
.inventory-search__foot { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; color: var(--inventory-muted); font-size: 11px; }
.inventory-search__foot .inventory-icon { width: 15px; height: 15px; color: #f45118; }
.feature-scene--detail .inventory-scene { min-height: 250px; }
.inventory-scene--record { height: 270px; }
.inventory-record__part { position: absolute; width: 44%; height: 83%; top: 9%; left: 28%; }
.inventory-connectors { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #f45118; stroke-width: 1; opacity: .7; }
.inventory-record__label { position: absolute; }
.inventory-record__label--a { left: 0; top: 7%; }
.inventory-record__label--b { right: 0; top: 7%; }
.inventory-record__label--c { left: 0; bottom: 6%; }
.inventory-record__label--d { right: 0; bottom: 6%; }
.inventory-record__label .inventory-chip { padding: 11px 13px; gap: 9px; }
.inventory-record__label .inventory-icon { width: 17px; height: 17px; }
.inventory-record__label small { font-size: 10px; }
.inventory-table { background: #fff; overflow: hidden; border: 1px solid var(--inventory-line); border-radius: 8px; font-size: 11px; }
.inventory-table__search { display: flex; align-items: center; gap: 8px; padding: 14px; color: #77849a; }
.inventory-table__search .inventory-icon { width: 15px; height: 15px; }
.inventory-table__filter { margin-left: auto; color: #234c79; }
.inventory-table__head, .inventory-table__row { display: grid; grid-template-columns: 1.6fr 1fr .55fr; align-items: center; gap: 6px; padding: 10px 14px; }
.inventory-table__head { color: #8290a0; font-size: 10px; background: #f4f6f8; }
.inventory-table__row { border-bottom: 1px solid #edf0f3; }
.inventory-table__row:last-child { border: 0; }
.inventory-table__row > span:first-child { display: flex; align-items: center; gap: 8px; }
.inventory-table__row > span:last-child { justify-self: start; border-radius: 5px; padding: 4px 9px; color: #2d6654; background: #edf7f2; }
.inventory-table .inventory-thumb { width: 33px; height: 33px; flex: 0 0 auto; }
.inventory-quality__header { display: flex; gap: 13px; align-items: center; font-size: 14px; }
.inventory-quality__header > .inventory-icon { color: #f45118; }
.inventory-checklist { display: grid; gap: 18px; margin-top: 25px; }
.inventory-checklist > div { display: flex; align-items: center; gap: 13px; }
.inventory-check { display: inline-grid; place-items: center; width: 29px; height: 29px; background: #fff; border-radius: 50%; color: #f45118; }
.inventory-check .inventory-icon { width: 16px; height: 16px; }
.inventory-quality__footer { margin-top: 25px; font-size: 11px; color: var(--inventory-muted); }
.inventory-scene--storage { height: 430px; }
.inventory-storage__path { position: absolute; top: 0; left: 0; z-index: 2; }
.inventory-storage__shelf { position: absolute; left: 9%; top: 3%; width: 82%; height: 88%; transform: translateY(calc((1 - var(--scene-progress, 1)) * 16px)) rotateY(calc(var(--scene-x, 0) * 3deg)); }
.inventory-storage__locator { position: absolute; top: 47%; left: 50%; width: 25px; height: 25px; }
.inventory-storage__locator span, .inventory-storage__locator i { display: block; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #f45118; }
.inventory-storage__locator span { inset: 8px; background: #f45118; border: 2px solid #fff; }
.inventory-storage__address { position: absolute; bottom: 0; right: 2%; min-width: 175px; background: #fff; padding: 15px 20px; border-radius: 8px; box-shadow: 0 10px 26px rgb(7 26 53 / 7%); }
.inventory-storage__address strong { display: block; margin-top: 8px; font-size: 17px; letter-spacing: .08em; }
.inventory-storage__address small { margin-top: 5px; font-size: 10px; }
.inventory-barcode { display: block; width: 120px; height: 27px; background: repeating-linear-gradient(to right, #071a35 0 1px, transparent 1px 3px, #071a35 3px 6px, transparent 6px 7px, #071a35 7px 9px, transparent 9px 12px, #071a35 12px 13px, transparent 13px 17px); }
.inventory-tree { max-width: 420px; margin: auto; width: 100%; }
.inventory-tree__root { display: flex; align-items: center; justify-content: center; gap: 10px; width: 145px; margin: auto; padding: 14px; color: #fff; background: #071a35; border-radius: 7px; }
.inventory-tree__branches { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 35px; }
.inventory-tree__branches::before { content: ''; position: absolute; top: 15px; left: 25%; right: 25%; height: 20px; border: solid #cbd6e0; border-width: 1px 1px 0; }
.inventory-tree__branches::after { content: ''; position: absolute; top: 0; left: 50%; height: 16px; border-left: 1px solid #cbd6e0; }
.inventory-tree__branches > div { display: grid; grid-template-columns: 20px 1fr; gap: 11px 9px; padding: 13px; border-radius: 7px; background: #fff; font-size: 11px; }
.inventory-tree__branches > div > .inventory-icon { width: 18px; height: 18px; }
.inventory-tree__branches > div > span { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; color: #7b8798; padding: 5px 0 5px 29px; }
.inventory-tree__branches .inventory-tree__target { padding: 8px 9px; border-radius: 5px; color: #f45118; background: #fff5ef; }
.inventory-tree__target .inventory-icon { width: 15px; height: 15px; }
.inventory-label { position: relative; overflow: hidden; width: min(100%, 315px); margin: auto; padding: 23px 26px; background: #fff; border-radius: 7px; box-shadow: 0 18px 35px rgb(7 26 53 / 7%); transform: rotate(-3deg); }
.inventory-label__top { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #8794a2; }
.inventory-label__top .inventory-icon { width: 16px; height: 16px; }
.inventory-label__name { display: block; margin-top: 14px; font-size: 18px; }
.inventory-label__ref { display: block; margin: 4px 0 14px; font-size: 11px; letter-spacing: .08em; }
.inventory-label .inventory-barcode { width: 100%; height: 34px; }
.inventory-label__address { display: flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 11px; }
.inventory-label__address .inventory-icon { width: 15px; height: 15px; color: #f45118; }
.inventory-label__scanner { position: absolute; top: 47%; left: 5%; width: 90%; height: 1px; background: #f45118; opacity: 0; }
.inventory-label__note { display: block; margin-top: 25px; text-align: center; font-size: 11px; color: var(--inventory-muted); }
.inventory-scene--origin { height: 430px; }
.inventory-origin__vehicle { position: absolute; width: 68%; top: 0; left: 0; }
.inventory-origin__vehicle > img { height: 213px; }
.inventory-origin__name { display: flex; align-items: center; gap: 9px; justify-content: center; margin-top: -14px; }
.inventory-origin__name > .inventory-icon { color: #f45118; }
.inventory-origin__name strong { font-size: 12px; }
.inventory-origin__name small { font-size: 10px; }
.inventory-origin__line { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #f45118; stroke-width: 1.3; stroke-dasharray: 5 5; }
.inventory-origin__part { position: absolute; width: 36%; height: 48%; right: 1%; bottom: 7%; }
.inventory-origin__part-id { display: block; width: fit-content; margin: -5px auto 0; padding: 7px 12px; background: #fff; border-radius: 4px; font-size: 10px; letter-spacing: .06em; }
.inventory-origin__link { position: absolute; left: 3%; bottom: 5%; display: flex; align-items: center; gap: 7px; font-size: 11px; }
.inventory-origin__link > .inventory-icon { color: #f45118; width: 16px; height: 16px; }
.inventory-history { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.inventory-history > div { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.inventory-history > div:not(:last-child)::after { position: absolute; content: ''; top: 27px; height: 1px; left: 70%; width: 70%; background: #d9e0e8; }
.inventory-history > div > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #f45118; }
.inventory-history strong { margin-top: 18px; font-size: 12px; }
.inventory-history small { margin-top: 5px; max-width: 100px; font-size: 10px; }
.inventory-scene--trace { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: center; }
.inventory-trace__part { width: 100%; }
.inventory-trace__record { padding: 18px; border-radius: 8px; background: #fff; box-shadow: 0 10px 22px rgb(7 26 53 / 5%); }
.inventory-trace__record > span { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #8492a2; }
.inventory-trace__record > span .inventory-icon { width: 13px; height: 13px; }
.inventory-trace__record > strong { display: block; margin: 10px 0; font-size: 18px; }
.inventory-trace__record > .inventory-barcode { max-width: 100%; margin-bottom: 18px; }
.inventory-trace__record > div { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 10px; }
.inventory-trace__record > div .inventory-icon { width: 14px; height: 14px; color: #f45118; }
.inventory-scene--dispatch { height: 440px; }
.inventory-dispatch__order { position: absolute; top: 0; left: 0; z-index: 1; }
.inventory-dispatch__package { position: absolute; top: 4%; left: 10%; width: 80%; height: 75%; transform: translateY(calc((1 - var(--scene-progress, 1)) * 16px)) rotateY(calc(var(--scene-x, 0) * 4deg)); }
.inventory-dispatch__seal { position: absolute; right: 2%; top: 50%; display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #fff; border-radius: 6px; font-size: 11px; box-shadow: 0 10px 20px rgb(7 26 53 / 6%); }
.inventory-dispatch__seal .inventory-icon { color: #f45118; width: 15px; height: 15px; }
.inventory-rail { position: absolute; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; bottom: 0; width: 100%; }
.inventory-rail::before { content: ''; position: absolute; top: 20px; left: 15%; right: 15%; height: 1px; background: #dce2e9; }
.inventory-rail__stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.inventory-rail__stop > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #f45118; background: #fff; box-shadow: 0 0 0 6px #f4f6f8; }
.inventory-rail__stop > strong { font-size: 11px; }
.inventory-workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.inventory-workflow__lane { min-width: 0; border-top: 2px solid #dfe6ed; padding-top: 12px; }
.inventory-workflow__lane:last-child { border-color: #f45118; }
.inventory-workflow__lane > strong { display: block; margin-bottom: 12px; font-size: 11px; }
.inventory-workflow__lane > span { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 105px; padding: 15px 12px; background: #fff; border-radius: 6px; font-size: 10px; }
.inventory-workflow__lane > span .inventory-icon { color: #f45118; }
.inventory-return { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 25px; color: var(--inventory-muted); font-size: 10px; }
.inventory-return .inventory-icon { width: 16px; height: 16px; }
.inventory-scene--delivery { grid-template-columns: 1fr 1.15fr; gap: 10px; align-items: center; }
.inventory-delivery__data { display: grid; gap: 18px; }
.inventory-delivery__data > div { display: flex; align-items: center; gap: 10px; }
.inventory-delivery__data .inventory-icon { color: #f45118; width: 19px; height: 19px; }
.inventory-delivery__data strong { display: block; font-size: 11px; }
.inventory-delivery__data small { margin-top: 4px; font-size: 10px; }

/* Timed reveals finish at full opacity: scroll never leaves text half visible. */
.has-motion .inventory-query__text { animation: inventory-type 1.8s steps(21, end) both; animation-play-state: paused; }
.has-motion .inventory-caret { animation: inventory-blink 1.05s steps(1, end) infinite; animation-play-state: paused; }
.has-motion .inventory-result { animation: inventory-result-in .65s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(1.6s + var(--item-index) * .25s); animation-play-state: paused; }
.has-motion .inventory-table__row, .has-motion .inventory-checklist > div, .has-motion .inventory-history > div, .has-motion .inventory-workflow__lane { animation: inventory-result-in .8s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--item-index, 0) * .18s); animation-play-state: paused; }
.has-motion .inventory-storage__locator i { animation: inventory-location-pulse 3.2s ease-out infinite; animation-play-state: paused; }
.has-motion .inventory-label__scanner { animation: inventory-label-scan 5s ease-in-out infinite; animation-play-state: paused; }
.has-motion .inventory-origin__line path { animation: inventory-origin-flow 15s linear infinite; animation-play-state: paused; }
.has-motion .inventory-rail__stop > span { animation: inventory-step-pulse 7.5s ease-in-out infinite; animation-delay: calc(var(--item-index) * 2.5s); animation-play-state: paused; }
.has-motion.is-in-view .inventory-query__text, .has-motion.is-in-view .inventory-caret, .has-motion.is-in-view .inventory-result, .has-motion.is-in-view .inventory-table__row, .has-motion.is-in-view .inventory-checklist > div, .has-motion.is-in-view .inventory-history > div, .has-motion.is-in-view .inventory-workflow__lane, .has-motion.is-in-view .inventory-storage__locator i, .has-motion.is-in-view .inventory-label__scanner, .has-motion.is-in-view .inventory-origin__line path, .has-motion.is-in-view .inventory-rail__stop > span { animation-play-state: running; }
@keyframes inventory-type { from { max-width: 0; } to { max-width: 22ch; } }
@keyframes inventory-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes inventory-result-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes inventory-location-pulse { 0% { transform: scale(.4); opacity: .75; } 75%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes inventory-label-scan { 0%, 15% { opacity: 0; transform: translateY(-20px); } 25% { opacity: .6; } 65% { opacity: .6; transform: translateY(38px); } 80%, 100% { opacity: 0; transform: translateY(38px); } }
@keyframes inventory-origin-flow { to { stroke-dashoffset: -120; } }
@keyframes inventory-step-pulse { 0%, 24%, 100% { background: #fff; color: #f45118; } 6%, 19% { background: #f45118; color: #fff; } }

@media (max-width: 600px) {
  .inventory-scene { min-height: 355px; font-size: 12px; }
  .inventory-search { max-width: 430px; }
  .inventory-query { padding: 15px; min-height: 55px; gap: 10px; }
  .inventory-query__text { font-size: 15px; }
  .inventory-result { grid-template-columns: 44px 1fr 14px; gap: 9px; padding: 12px; min-height: 80px; }
  .inventory-thumb { width: 44px; height: 44px; }
  .inventory-result strong { font-size: 11px; }
  .inventory-result small { font-size: 10px; }
  .inventory-search__foot { font-size: 10px; }
  .feature-scene--detail .inventory-scene { min-height: 235px; }
  .inventory-record__label .inventory-chip { padding: 9px; gap: 6px; }
  .inventory-record__label .inventory-chip strong { font-size: 10px; }
  .inventory-record__label .inventory-chip small { font-size: 9px; }
  .inventory-record__label .inventory-icon { width: 14px; height: 14px; }
  .inventory-table__head, .inventory-table__row { padding: 9px; grid-template-columns: 1.4fr 1fr .45fr; }
  .inventory-table__row { font-size: 10px; }
  .inventory-table .inventory-thumb { width: 24px; height: 24px; }
  .inventory-table__search { padding: 11px; font-size: 10px; }
  .inventory-scene--storage, .inventory-scene--dispatch, .inventory-scene--origin { height: 360px; }
  .inventory-storage__shelf { top: 6%; height: 83%; left: 3%; width: 94%; }
  .inventory-storage__path .inventory-chip, .inventory-dispatch__order .inventory-chip { padding: 10px 12px; gap: 8px; }
  .inventory-storage__path .inventory-chip strong, .inventory-dispatch__order .inventory-chip strong { font-size: 11px; }
  .inventory-storage__path .inventory-chip small, .inventory-dispatch__order .inventory-chip small { font-size: 10px; }
  .inventory-storage__address { min-width: 151px; padding: 12px 15px; }
  .inventory-storage__address strong { font-size: 14px; }
  .inventory-tree__branches { gap: 15px; }
  .inventory-tree__branches > div { padding: 10px; gap: 10px 6px; font-size: 10px; }
  .inventory-origin__vehicle { width: 75%; }
  .inventory-origin__vehicle > img { height: 172px; }
  .inventory-origin__part { width: 40%; bottom: 8%; }
  .inventory-origin__name strong { font-size: 11px; }
  .inventory-origin__name small { font-size: 9px; }
  .inventory-origin__link { max-width: 49%; font-size: 10px; }
  .inventory-scene--trace { gap: 8px; grid-template-columns: .7fr 1.3fr; }
  .inventory-trace__record { padding: 14px; }
  .inventory-trace__record > div { font-size: 9px; }
  .inventory-workflow { gap: 8px; }
  .inventory-workflow__lane > strong { font-size: 10px; }
  .inventory-workflow__lane > span { padding: 12px 9px; font-size: 9px; }
  .inventory-dispatch__package { width: 90%; left: 2%; }
  .inventory-delivery__data { gap: 15px; }
  .inventory-delivery__data > div { gap: 7px; }
  .inventory-delivery__data strong { font-size: 10px; }
  .inventory-delivery__data small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .inventory-scene *, .inventory-scene *::before, .inventory-scene *::after { animation: none !important; transition: none !important; }
  .inventory-search, .inventory-storage__shelf, .inventory-dispatch__package { transform: none; }
  .inventory-label__scanner { display: none; }
}
