/* Short, finite feedback; no layout animation or permanent promoted layers. */
:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.btn,
.icon-btn,
.filter {
  transition:
    transform 160ms var(--motion-ease),
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}
.btn:active:not(:disabled),
.icon-btn:active:not(:disabled),
.filter:active {
  transform: scale(0.975);
}
.btn:disabled {
  cursor: wait;
}
.btn[aria-busy="true"]::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: motion-spin 650ms linear infinite;
  flex-shrink: 0;
}
.nav {
  position: relative;
}
.nav:has(.nav-indicator) a.active::after {
  display: none;
}
.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 13px;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
  pointer-events: none;
}
.trader-card {
  transition:
    transform 180ms var(--motion-ease),
    border-color 180ms ease;
  isolation: isolate;
}
.trader-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 9px 22px #183f6810;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: -1;
}
.searchbox {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}
.searchbox:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px #0967c60b;
}
.field input,
.field select,
.field textarea {
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px #0967c612;
}
.is-copied {
  color: #148451 !important;
}
.toast {
  transition:
    opacity 180ms ease,
    transform 220ms var(--motion-ease);
}
dialog[open]::backdrop {
  animation: motion-backdrop-in 180ms ease both;
}
dialog.modal-closing::backdrop {
  animation: motion-backdrop-out 120ms ease both;
}
.evidence-grid a {
  background: #f0f4f8;
  overflow: hidden;
}
.evidence-grid img {
  transition: transform 180ms var(--motion-ease);
}
.image-gallery {
  width: min(960px, calc(100% - 32px));
}
.gallery-stage {
  min-height: 260px;
  height: min(65dvh, 680px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f8fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.gallery-stage img {
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}
.gallery-controls .btn:disabled {
  cursor: default;
  opacity: 0.3;
}
.gallery-count {
  min-width: 60px;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.motion-loading {
  pointer-events: none;
}
.motion-skeleton-page {
  padding-top: 45px;
  padding-bottom: 70px;
}
.motion-skeleton-heading {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.motion-skeleton-card {
  min-width: 0;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 18px;
}
.sk-line,
.sk-circle,
.sk-block {
  display: block;
  background: #e9eff5;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.sk-line {
  width: 72%;
  height: 17px;
}
.sk-line.short {
  width: 48%;
  height: 12px;
}
.sk-circle {
  height: 64px;
  width: 64px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sk-block {
  width: 100%;
  height: 48px;
}
.motion-skeleton-heading > .sk-line {
  width: min(320px, 70%);
  height: 30px;
}
.motion-skeleton-heading > .sk-line.short {
  height: 14px;
  width: min(380px, 80%);
}
.motion-skeleton-heading > .search {
  height: 56px;
  max-width: 600px;
  margin-top: 9px;
}
.motion-loading i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, #ffffff65, transparent);
  animation: motion-shimmer 1400ms ease-in-out infinite;
  transform: translateX(-100%);
}
.motion-skeleton-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 65px;
  padding-bottom: 60px;
}
.motion-skeleton-profile > .sk-line {
  width: 230px;
  height: 25px;
}
.motion-skeleton-profile > .insurance {
  max-width: 620px;
  height: 180px;
}
.motion-skeleton-columns {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  width: 100%;
  margin-top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@keyframes motion-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes motion-shimmer {
  to {
    transform: translateX(100%);
  }
}
@keyframes motion-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes motion-backdrop-out {
  to {
    opacity: 0;
  }
}
@media (hover: hover) and (pointer: fine) {
  .trader-card:hover {
    transform: translateY(-3px);
    border-color: #a9cbee;
  }
  .trader-card:hover::before {
    opacity: 1;
  }
  .evidence-grid a:hover img {
    transform: scale(1.025);
  }
}
@media (hover: none) {
  .btn:hover,
  .trader-card:hover {
    transform: none;
    filter: none;
  }
}
@media (max-width: 560px) {
  .nav-indicator {
    display: none;
  }
}
@media (max-width: 640px) {
  .motion-skeleton-card {
    min-height: 215px;
    padding: 20px 12px;
  }
  .motion-skeleton-columns {
    grid-template-columns: 1fr;
  }
  .gallery-stage {
    height: 55dvh;
    min-height: 220px;
  }
  .image-gallery .modal-inner {
    padding: 20px;
  }
  .motion-loading i::after {
    animation-duration: 1800ms;
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog::backdrop {
    animation: none !important;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .btn:active,
  .trader-card:hover,
  .evidence-grid a:hover img {
    transform: none !important;
  }
}
