.results-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.fetch-progress {
  border: 1px solid #ffffff16;
  background: #020202;
  border-radius: 7px;
  padding: 10px;
}

.fetch-progress[hidden] {
  display: none;
}

.fetch-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 10px;
}

.fetch-progress-copy strong {
  color: #63f2bd;
  text-transform: capitalize;
}

.fetch-progress-copy span {
  color: var(--muted);
}

.fetch-progress-track {
  height: 5px;
  background: #ffffff0c;
  border-radius: 999px;
  overflow: hidden;
}

.fetch-progress-track i {
  width: 0;
  height: 100%;
  background: #31d69b;
  border-radius: inherit;
  box-shadow: 0 0 12px #31d69b99;
  transition: width .35s ease;
  display: block;
}

.cancel-fetch-button {
  width: 100%;
  min-height: 34px;
  margin-top: 9px;
  color: #df727a;
}

.match-external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 7px;
}

.match-external-links a {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.match-external-links a:hover {
  color: #63f2bd;
}

.match-history {
  display: grid;
  gap: 6px;
}

.match-history.empty {
  color: var(--muted);
  font-size: 12px;
}

.history-item {
  width: 100%;
  color: var(--text);
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  text-align: left;
  transition: border-color .16s, background .16s;
}

.history-item:hover {
  background: #31d69b0b;
  border-color: #31d69b70;
}

.history-item strong {
  font: 700 12px Consolas, "Courier New", monospace;
}

.history-item span {
  color: var(--muted);
  font-size: 9px;
}

.steam-panel .steam-lookup-row {
  grid-template-columns: minmax(0, 1fr) 110px !important;
  gap: 8px !important;
  width: 100%;
  max-width: 100%;
}

.steam-panel .steam-lookup-row input,
.steam-panel .steam-lookup-row button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.result-skeleton {
  width: 100%;
  display: grid;
  gap: 14px;
}

.skeleton-line,
.skeleton-metrics i,
.skeleton-table i,
.registry-skeleton {
  background: linear-gradient(90deg, #ffffff08 20%, #ffffff13 45%, #ffffff08 70%);
  background-size: 220% 100%;
  animation: skeleton-shift 1.2s linear infinite;
}

.registry-date {
  color: var(--muted);
  font: 11px Consolas, "Courier New", monospace;
}

.registry-page-ellipsis {
  width: 22px;
  height: 36px;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.registry-empty-row:hover {
  background: transparent !important;
}

.registry-empty-row .registry-empty {
  color: var(--muted);
  text-align: center;
  padding: 48px 20px;
}

.skeleton-title {
  width: 34%;
  height: 22px;
  border-radius: 6px;
}

.skeleton-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.skeleton-metrics i {
  height: 82px;
  border-radius: 7px;
}

.skeleton-table {
  display: grid;
  gap: 7px;
}

.skeleton-table i {
  height: 42px;
  border-radius: 6px;
}

@keyframes skeleton-shift {
  to { background-position: -220% 0; }
}

.registry-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.registry-filters label {
  min-width: 0;
}

.registry-filters label > span {
  color: var(--muted);
  display: block;
  margin: 0 0 5px 2px;
  font-size: 9px;
  letter-spacing: .11em;
  text-align: left;
  text-transform: uppercase;
}

.registry-filters select {
  width: 100%;
  height: 42px;
  color: var(--text);
  background: #020202;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 12px;
}

.registry-admin {
  border: 1px solid #ffffff12;
  background: #010101;
  text-align: left;
}

.registry-admin summary {
  color: var(--text);
  cursor: pointer;
  padding: 11px 13px;
  font-size: 11px;
  font-weight: 800;
  list-style-position: inside;
}

.registry-add-form {
  border-top: 1px solid #ffffff10;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 140px;
  gap: 8px;
  padding: 12px;
}

.registry-add-form label > span {
  color: var(--muted);
  display: block;
  margin: 0 0 5px 2px;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.registry-add-form input,
.registry-add-form button {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  color: var(--text);
  background: #020202;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
}

.registry-add-form button {
  align-self: end;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.registry-add-form button:hover {
  color: #63f2bd;
  background: #31d69b20;
  border-color: #31d69bd9;
  box-shadow: 0 0 18px #31d69b36;
}

.registry-add-status {
  color: var(--muted);
  min-height: 16px;
  margin: 0;
  padding: 0 12px 10px;
  font-size: 10px;
}

.registry-add-status.success {
  color: #63f2bd;
}

.registry-add-status.error {
  color: #df727a;
}

.registry-external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 5px;
}

.registry-external-links a {
  color: var(--muted);
  font-size: 9px;
  text-decoration: none;
}

.registry-external-links a:hover {
  color: #63f2bd;
}

.registry-id-link {
  color: inherit;
  text-underline-offset: 3px;
}

.registry-skeleton-row td {
  height: 63px;
}

.registry-skeleton {
  display: block;
  height: 13px;
  border-radius: 4px;
}

.access-denied-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.access-denied-card {
  width: min(560px, 100%);
  background: #030303;
  border: 1px solid #ffffff18;
  border-radius: 10px;
  padding: clamp(28px, 6vw, 54px);
  text-align: center;
  box-shadow: 0 20px 80px #000;
}

.access-denied-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.access-denied-card h1 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 8vw, 58px);
}

.access-denied-card > p {
  color: var(--muted);
  line-height: 1.6;
}

.access-denied-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}

.access-denied-back {
  color: #63f2bd;
  background: #31d69b18;
  border-color: #31d69b8c;
  box-shadow: inset 0 0 12px #31d69b0c;
}

.access-denied-back:hover {
  color: #8affd3 !important;
  background: #31d69b29 !important;
  border-color: #31d69be6 !important;
  box-shadow: 0 0 18px #31d69b45, inset 0 0 14px #31d69b17;
}

.registry-search input,
.registry-search button {
  align-self: center;
  height: 42px;
  min-height: 42px;
}

.registry-search button {
  background: none;
  border-radius: 6px;
  transition: color .18s, border-color .18s, background-color .18s, box-shadow .18s;
}

.registry-search button:hover,
.registry-search button:focus-visible {
  color: #63f2bd;
  background: #31d69b20;
  border-color: #31d69bd9;
  box-shadow: 0 0 18px #31d69b45, inset 0 0 14px #31d69b14;
  outline: none;
}

@media (width <= 760px) {
  .registry-shell {
    overflow-x: hidden;
  }

  .registry-topbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .registry-topbar .topbar-actions {
    width: 100%;
    justify-content: center;
  }

  .registry-page,
  .registry-panel,
  .registry-tools {
    min-width: 0;
  }

  .registry-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .registry-search button {
    width: 100%;
    height: 42px;
  }

  .registry-table-wrap {
    overflow: hidden;
  }

  .registry-table,
  .registry-table tbody,
  .registry-table tr,
  .registry-table td {
    display: block;
    width: 100%;
  }

  .registry-table {
    min-width: 0 !important;
  }

  .registry-table thead {
    display: none;
  }

  .registry-table tbody {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .registry-table tr {
    background: #030303;
    border: 1px solid #ffffff12;
    border-radius: 9px;
    padding: 12px;
  }

  .registry-table td {
    border: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    text-align: right;
  }

  .registry-table td::before {
    content: attr(data-label);
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .registry-table td:first-child {
    display: block;
    text-align: left;
    padding-bottom: 10px;
  }

  .registry-table td:first-child::before {
    display: none;
  }

  .registry-empty-row .registry-empty {
    display: block;
    padding: 34px 12px;
    text-align: center;
  }

  .registry-empty-row .registry-empty::before {
    display: none;
  }

  .registry-filters {
    grid-template-columns: 1fr;
  }

  .registry-add-form {
    grid-template-columns: 1fr;
  }

  .skeleton-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width <= 520px) {
  .results-actions,
  .access-denied-actions {
    width: 100%;
    flex-direction: column;
  }

  .png-match-options,
  .png-setting-grid {
    grid-template-columns: 1fr;
  }
}
