.inquiry-security { margin-block: .75rem 1rem; min-width: 0; }
.inquiry-security-status { margin-block: .25rem .5rem; font-size: .9rem; }
.inquiry-security[hidden], .inquiry-receipt[hidden], .factory-play[hidden], .factory-message[hidden] { display: none; }
.inquiry-receipt { position: relative; isolation: isolate; overflow: hidden; margin-top: 1rem; padding: 1rem; border: 1px solid #78a08d; background: #eaf3ee; color: #174634; }
.receipt-heading { display: flex; align-items: center; gap: .65rem; margin: 0; font-weight: 700; }
.receipt-check { display: grid; place-items: center; font-size: 1rem; background: #245943; color: #fff; border-radius: 50%; width: 1.7rem; height: 1.7rem; flex: none; }
.receipt-reference { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; margin-block: .6rem 0; font-size: .84rem; }
.receipt-reference code { overflow-wrap: anywhere; user-select: all; }
.receipt-copy { background: transparent; color: inherit; text-decoration: underline; border: 0; padding: .3rem .2rem; cursor: pointer; }
.inquiry-receipt:focus-visible, .receipt-copy:focus-visible, .factory-play:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .inquiry-receipt:not([hidden], .quiet)::before {
    content: ''; position: absolute; z-index: -1; top: 1rem; left: 1rem;
    width: 1.7rem; height: 1.7rem; box-sizing: border-box; border-radius: 50%;
    border: 2px solid #247653; pointer-events: none;
    animation: inquiry-ripple 1050ms ease-out both;
  }
  @keyframes inquiry-ripple {
    from { transform: scale(1); opacity: .85; }
    60% { opacity: .40; }
    to { transform: scale(9); opacity: 0; }
  }
}
.factory-player { position: relative; aspect-ratio: 16 / 9; background: #172e32; }
.factory-player video { width: 100%; height: 100%; display: block; object-fit: contain; }
.factory-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #173a2c; background: #fff; white-space: nowrap; }
.factory-message { margin: .5rem 0 0; }
.factory-controls[hidden], .factory-target[hidden] { display: none; }
.factory-controls { padding: .5rem .75rem; background: #172e32; color: #fff; }
.factory-controls-row { display: flex; align-items: center; gap: .5rem; }
.factory-controls button {
  min-height: 44px; padding: .25rem .6rem; border: 1px solid #91aaa4;
  background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.factory-controls :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.factory-time { margin-inline-start: auto; font-size: .875rem; }
.factory-time, .factory-target { white-space: nowrap; font-variant-numeric: tabular-nums; }
.factory-track { position: relative; }
.factory-seek {
  display: block; width: 100%; min-height: 44px; margin: 0;
  accent-color: #a9d3bd; cursor: pointer; touch-action: none;
}
.factory-target {
  position: absolute; bottom: calc(50% + .55rem);
  left: clamp(1.5rem, calc(.5rem + (100% - 1rem) * var(--position)), calc(100% - 1.5rem));
  transform: translateX(-50%); padding: .2rem .4rem; background: #fff; color: #172e32;
  font-size: .875rem; pointer-events: none;
}
