/* 接入管理使用后台统一浅色主题。样式限定在新页面，避免影响游戏运营表单。 */
.platform-view {
  --access-panel: #ffffff;
  --access-inset: #f7f9fc;
  --access-line: #e4e8ef;
  --access-muted: #66758a;
  font-size: 13px;
}
.access-page-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 2px 0 25px;
}
.access-page-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid #d5dde7;
  border-radius: 10px;
  color: #2864ad;
  background: #edf4ff;
}
.access-page-icon .lucide {
  width: 22px;
  height: 22px;
}
.access-page-header > div {
  flex: 1;
}
.access-page-header h2 {
  font-size: 20px;
  letter-spacing: -0.3px;
  margin: 0 0 7px;
  font-weight: 600;
}
.access-page-header p {
  font-size: 12px;
  color: var(--access-muted);
  margin: 0;
  line-height: 1.8;
}
.access-page-header > button {
  align-self: center;
}
.platform-view button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  min-height: 35px;
  white-space: nowrap;
}
.platform-view button .lucide {
  width: 15px;
  height: 15px;
}
.platform-view input,
.platform-view select,
.platform-view textarea {
  font-size: 12px;
}
.access-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.access-metric {
  border: 1px solid var(--access-line);
  background: var(--access-panel);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.access-metric > span {
  font-size: 11px;
  color: #66758a;
}
.access-metric > strong {
  font-size: 26px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: #263445;
}
.access-metric.pending > strong {
  color: #8c6419;
}
.access-metric.approved > strong {
  color: #147d55;
}
.access-metric.rejected > strong {
  color: #b42332;
}
.access-surface {
  background: var(--access-panel);
  border: 1px solid var(--access-line);
  border-radius: 9px;
  overflow: hidden;
}
.access-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--access-line);
  margin: 0;
}
.access-filters > input {
  flex: 1;
  min-width: 180px;
  margin: 0;
  max-width: 520px;
  min-height: 36px;
}
.access-filters > select {
  width: auto;
  min-width: 135px;
  margin: 0;
  min-height: 36px;
}
.access-filters button {
  min-height: 36px;
}
.access-standalone {
  border: 1px solid var(--access-line);
  background: var(--access-panel);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 14px 17px;
}
.access-standalone > input {
  max-width: 540px;
}
.access-table-wrap {
  overflow: auto;
}
.platform-view .access-table {
  min-width: 780px;
  table-layout: auto;
  font-size: 12px;
  margin: 0;
  width: 100%;
  border-collapse: collapse;
}
.platform-view .access-table thead th {
  background: #f7f9fc;
  color: #66758a;
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 550;
  position: static;
  border-bottom: 1px solid var(--access-line);
}
.platform-view .access-table td {
  padding: 19px 20px;
  border-bottom: 1px solid #e4e8ef;
  vertical-align: middle;
  white-space: nowrap;
  position: static;
  background: transparent;
}
.platform-view .access-table tbody tr:last-child td {
  border-bottom: 0;
}
.platform-view .access-table tbody tr:hover {
  background: #edf4ff;
}
.access-table td:first-child {
  min-width: 140px;
}
.access-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
.access-stack strong {
  font-size: 12px;
  font-weight: 550;
  line-height: 1.6;
}
.access-stack small {
  font-size: 10px;
  color: var(--access-muted);
  font-weight: 400;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.access-stack code {
  font-size: 10px;
  color: #66758a;
  margin-top: 2px;
  font-weight: 400;
}
.access-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.5;
  padding: 4px 8px;
  border-radius: 4px;
  color: #66758a;
  background: #edf4ff;
  border: 1px solid #e4e8ef;
}
.access-badge.approved {
  color: #147d55;
  background: #eaf7f0;
  border-color: #b5dfcc;
}
.access-badge.pending {
  color: #8c6419;
  background: #fffbef;
  border-color: #eadbb9;
}
.access-badge.rejected {
  color: #b42332;
  background: #fff1f0;
  border-color: #efc3c6;
}


.access-pagination {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #66758a;
  font-size: 11px;
  border-top: 1px solid var(--access-line);
}
.access-pagination > div {
  display: flex;
  gap: 8px;
}
.access-pagination:empty {
  display: none;
}
.access-empty {
  text-align: center;
  padding: 68px 25px;
  color: var(--access-muted);
  border: 0;
}
.access-empty > .lucide {
  width: 31px;
  height: 31px;
  color: #66758a;
  margin-bottom: 15px;
}
.access-empty h3 {
  font-size: 14px;
  color: #263445;
  font-weight: 550;
  margin: 0 0 10px;
}
.access-empty p {
  font-size: 12px;
  color: #66758a;
  margin: 0;
  line-height: 1.9;
}
.access-note {
  margin: 20px 0;
  padding: 17px 19px;
  border: 1px solid #e4e8ef;
  background: #f7f9fc;
  border-radius: 7px;
}
.access-note h3 {
  font-size: 11px;
  color: #66758a;
  font-weight: 500;
  margin: 0 0 9px;
}
.access-note p {
  font-size: 12px;
  line-height: 1.9;
  color: #263445;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.access-review-form {
  margin-top: 24px;
  border-top: 1px solid var(--access-line);
  padding-top: 23px;
}
.access-field {
  display: block;
  margin: 0 0 19px;
}
.access-field > span {
  display: block;
  font-size: 12px;
  color: #263445;
  margin-bottom: 8px;
}
.access-field > input,
.access-field > textarea {
  width: 100%;
  margin: 0;
  line-height: 1.7;
  background: #f7f9fc;
  border: 1px solid #e4e8ef;
  padding: 10px 12px;
  border-radius: 6px;
  color: #263445;
}
.access-field > textarea {
  min-height: 102px;
  resize: vertical;
}
.access-field > small {
  display: block;
  font-size: 10px;
  color: #66758a;
  margin-top: 7px;
  line-height: 1.8;
}
.access-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--access-line);
  padding-top: 19px;
  margin-top: 23px;
  flex-wrap: wrap;
}
.platform-view .access-danger {
  background: #fff1f0;
  color: #b42332;
  border: 1px solid #efc3c6;
}
.platform-view .access-danger:hover {
  background: #fff1f0;
}
.access-callout {
  padding: 13px 17px;
  border: 1px solid #b5dfcc;
  border-radius: 6px;
  background: #eaf7f0;
  color: #147d55;
  font-size: 12px;
}
.access-config-section {
  padding: 24px 25px;
  border-bottom: 1px solid var(--access-line);
}
.access-config-section:last-child {
  border-bottom: 0;
}
.access-config-section h3 {
  font-size: 14px;
  font-weight: 550;
  margin: 0 0 6px;
}
.access-config-section .access-hint {
  color: #66758a;
  font-size: 11px;
  margin: 0 0 19px;
  line-height: 1.9;
}
.access-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
.access-copy > div {
  min-width: 0;
  flex: 1;
}
.access-copy code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.8 ui-monospace,
    SFMono-Regular,
    monospace;
  color: #263445;
  display: block;
}
.platform-view .access-copy-button {
  background: transparent;
  border: 0;
  color: #66758a;
  width: 29px;
  min-height: 29px;
  padding: 5px;
  flex-shrink: 0;
}
.platform-view .access-copy-button:hover {
  color: #2864ad;
  background: #edf4ff;
}
.access-table-note {
  font-size: 10px;
  color: #66758a;
  border-top: 1px solid var(--access-line);
  padding: 14px 20px;
}
.access-partner-detail .error {
  font-size: 12px;
}
.access-partner-detail .error:empty {
  display: none;
}
@media (max-width: 1200px) {
  .access-metrics {
    gap: 11px;
  }
  .access-metric {
    padding: 16px;
  }
  .access-filters {
    gap: 8px;
  }
  .access-filters > select {
    min-width: 110px;
  }
}
@media (max-width: 1000px) {
  .access-filters {
    flex-wrap: wrap;
  }
  .access-filters > input {
    max-width: none;
  }
  .access-metric {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .access-metric > strong {
    font-size: 24px;
  }
}
@media (max-width: 600px) {
  .access-page-header {
    gap: 12px;
    flex-wrap: wrap;
  }
  .access-page-icon {
    width: 36px;
    height: 36px;
  }
  .access-page-header h2 {
    font-size: 17px;
  }
  .access-page-header p {
    font-size: 11px;
  }
  .access-page-header > div {
    flex-basis: calc(100% - 50px);
  }
  .access-page-header > button {
    margin-left: 48px;
  }
  .access-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .access-metric {
    flex-direction: row;
    padding: 16px;
  }
  .access-metric > span {
    font-size: 10px;
  }
  .access-filters {
    padding: 15px;
  }
  .access-filters > input {
    flex-basis: 100%;
    min-width: 0;
  }
  .access-filters > select {
    flex: 1;
    min-width: 0;
  }
  .access-config-section {
    padding: 20px;
  }
  .access-actions {
    justify-content: flex-start;
  }
  .access-pagination {
    padding: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .access-empty {
    padding: 45px 20px;
  }
  .access-stack small {
    max-width: 210px;
  }
}
