@charset "UTF-8";
.language-switch::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  bottom: 3px;
  width: calc(50% - 3px);
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px #31382a0a;
  transition: transform 360ms var(--ease);
}

.language-switch:has([data-language="zh-TW"].selected)::before {
  transform: translateX(100%);
}

.platform-options::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  background: #3c4932;
  border-radius: 5px;
  box-shadow: 0 2px 5px #29332116;
  transition: transform 420ms var(--ease);
}

.platform-options:has(input[value="android"]:checked)::before {
  transform: translateX(100%);
}

.filter-tabs::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: calc(var(--filter-index) * 25% + 10px);
  width: calc(25% - 20px);
  height: 2px;
  border-radius: 2px;
  background: #728955;
  transition: left 360ms var(--ease);
}

.filter-tabs:has([data-filter="normal"].selected) {
  --filter-index: 1;
}

.filter-tabs:has([data-filter="attention"].selected) {
  --filter-index: 2;
}

.filter-tabs:has([data-filter="other"].selected) {
  --filter-index: 3;
}

.stat:nth-child(2) {
  animation-delay: 190ms;
}

.stat:nth-child(3) {
  animation-delay: 230ms;
}

.stat:nth-child(4) {
  animation-delay: 270ms;
}

.stat:first-child {
  padding-left: 0;
}

.empty-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #e5ecda;
  border-radius: 18px;
  background: #f8faf4;
  transform: rotate(-9deg);
  z-index: 0;
}

.empty-icon .icon {
  position: relative;
}

.workspace-grid::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  width: 32%;
  height: 2px;
  background: #91a96e;
  opacity: 0;
}

.workspace-grid:has(#query-form[aria-busy="true"])::before {
  opacity: 1;
  animation: query-progress 1500ms cubic-bezier(.65, 0, .35, 1) infinite;
}

#query-form[aria-busy="true"] .primary-button {
  box-shadow: none;
}

.upload-zone.drag-over {
  transform: scale(1.015);
}

.primary-button:active:not(:disabled), .secondary-button:active:not(:disabled),
.copy-button:active:not(:disabled), .detail-button:active:not(:disabled) {
  transform: translateY(1px) scale(.98);
}

#result-body tr:nth-child(-n+12) {
  animation: row-enter 320ms var(--ease) both;
}

#result-body tr:nth-child(2) {
  animation-delay: 25ms;
}

#result-body tr:nth-child(3) {
  animation-delay: 50ms;
}

#result-body tr:nth-child(4) {
  animation-delay: 75ms;
}

#result-body tr:nth-child(5) {
  animation-delay: 100ms;
}

dialog[open] {
  animation: dialog-enter 280ms var(--ease) both;
}

dialog[open]::backdrop {
  animation: notice-enter 200ms ease both;
}

@media (hover: hover) and (pointer: fine) {
  .primary-button:hover:not(:active):not(:disabled) {
    transform: translateY(-1px);
  }
  .primary-button:hover:not(:active):not(:disabled) .icon {
    transform: translateX(4px);
  }
  .upload-zone:hover {
    transform: translateY(-1px);
  }
}

@keyframes header-enter {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes workspace-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stat-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes row-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes empty-enter {
  from {
    opacity: 0;
    transform: translateY(10px) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes notice-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes query-progress {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(420%);
  }
}

@keyframes copy-confirm {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(.94);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after, dialog::backdrop {
    animation: none !important;
    transition: none !important;
  }
}
