@charset "UTF-8";
:root {
  --ink: #292c26;
  --muted: #74786e;
  --line: #e5e7df;
  --paper: #f2f2ed;
  --accent: #727e57;
  --success: #397153;
  --error: #b1534b;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
}

button, input, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  border: 0;
  cursor: pointer;
}

button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

input, textarea, select {
  min-width: 0;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #777b83;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  padding: 12px;
  background: #fff;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
}

.header-inner {
  max-width: 1480px;
  min-height: 96px;
  margin: auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: header-enter 500ms var(--ease) both;
}

h1 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.5px;
}

h1 > span:last-child {
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0;
}

.title-divider {
  width: 1px;
  height: 16px;
  background: #d2d5ca;
}

.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  padding: 3px;
  border: 1px solid #dcdfd4;
  border-radius: 7px;
  flex-shrink: 0;
}

.language-switch a {
  position: relative;
  z-index: 1;
  min-width: 48px;
  text-align: center;
  padding: 6px 10px;
  color: var(--muted);
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  transition: color 200ms;
}

.language-switch a.selected {
  color: var(--ink);
}

main {
  max-width: 1480px;
  padding: 0 36px 36px;
  margin: auto;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 358px minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid #dce0d3;
  border-radius: 13px;
  overflow: hidden;
  min-height: 668px;
  position: relative;
  box-shadow: 0 12px 42px #292c2607;
  animation: workspace-enter 650ms 70ms var(--ease) both;
}

.panel {
  background: #fff;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
}

.input-panel {
  padding: 28px;
  align-self: stretch;
  min-width: 0;
  background: #f9faf6;
}

.input-panel > .panel-heading {
  margin-bottom: 30px;
}

.platform-field {
  border: 0;
  padding: 0;
  margin: 0 0 27px;
  min-width: 0;
}

.platform-field legend, .input-label label {
  font-size: 12px;
  color: #646b59;
  font-weight: 500;
  padding: 0;
  margin-bottom: 10px;
}

.platform-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 4px;
  position: relative;
  background: #eaece4;
  border-radius: 8px;
}

.platform-option {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  color: #717968;
  transition: color 250ms;
}

.platform-option:has(input:checked) {
  color: #fff;
}

.platform-option:has(input:focus-visible) {
  outline: 2px solid #777b83;
  outline-offset: 2px;
}

.platform-option:has(input:disabled) {
  opacity: .5;
  cursor: not-allowed;
}

.platform-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.platform-option strong {
  font-size: 13px;
  font-weight: 550;
}

.radio-mark {
  display: none;
}

.input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.input-label label {
  margin: 0;
}

.text-button {
  background: transparent;
  padding: 3px 0;
  min-height: 28px;
  font-size: 12px;
  color: var(--muted);
}

.text-button:hover {
  color: var(--ink);
}

.textarea-wrap {
  border: 1px solid #dce1d2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 200ms, box-shadow 200ms;
}

.textarea-wrap:focus-within {
  border-color: #86966d;
  box-shadow: 0 0 0 3px #727e570c;
}

.textarea-wrap textarea {
  display: block;
  width: 100%;
  height: 264px;
  min-height: 140px;
  resize: vertical;
  padding: 15px;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.9;
  background: transparent;
}

.textarea-wrap textarea::placeholder {
  color: #9ba292;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.textarea-footer {
  display: flex;
  justify-content: flex-end;
  padding: 4px 13px 11px;
  font-size: 11px;
  color: #909887;
}

#line-count {
  font-variant-numeric: tabular-nums;
}

.upload-zone {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  min-height: 44px;
  margin-top: 12px;
  padding: 11px 13px;
  color: var(--muted);
  border: 1px dashed #cfd6c3;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 200ms, background 200ms, transform 200ms var(--ease);
}

.upload-zone:hover, .upload-zone.drag-over {
  background: #edf1e5;
  border-color: #8e9b7c;
}

.upload-zone:focus-within {
  outline: 2px solid #777b83;
  outline-offset: 3px;
}

.upload-zone:has(input:disabled) {
  opacity: .5;
  cursor: not-allowed;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-zone > span {
  min-width: 0;
}

.upload-zone strong {
  font-size: 12px;
  font-weight: 500;
  color: #5d6a4d;
}

.upload-zone small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}

.upload-zone small:empty {
  display: none;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  min-height: 38px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 200ms, border-color 200ms, box-shadow 200ms, transform 200ms var(--ease);
}

.primary-button {
  flex: 1;
  min-height: 48px;
  color: #fff;
  background: #30382b;
  font-size: 14px;
  box-shadow: 0 3px 0 #1c2318;
}

.primary-button:hover:not(:disabled) {
  background: #46543c;
  box-shadow: 0 4px 0 #273321, 0 5px 14px #30382b15;
}

.primary-button .icon {
  width: 16px;
  height: 16px;
  margin-left: 12px;
  transition: transform 250ms var(--ease);
}

.secondary-button {
  border: 1px solid var(--line);
  background: transparent;
  color: #66705b;
}

.secondary-button:hover:not(:disabled) {
  background: #f1f4eb;
  border-color: #c9d2bc;
}

.form-notice {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  animation: notice-enter 220ms var(--ease) both;
}

.form-notice:empty {
  display: none;
}

.form-notice.success {
  color: var(--success);
}

.form-notice.error {
  color: var(--error);
}

.form-notice.busy::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1.5px solid #d7d8dd;
  border-top-color: #5b5f68;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: -1px;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.results-workspace {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  background: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 29px 0 27px;
  margin: 0 28px;
  border-bottom: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
  min-width: 0;
  animation: stat-enter 500ms 150ms var(--ease) both;
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat > span {
  font-size: 11px;
  color: #8a907f;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.stat strong {
  font-family: "Segoe UI", sans-serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
  color: #38432f;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  transform-origin: left center;
}

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.green-dot {
  background: #789d5d;
}

.red-dot {
  background: #bd8a64;
}

.muted-dot {
  background: #b4b8ae;
}

.results-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 460px;
  flex: 1;
  scroll-margin-top: 105px;
}

.results-panel > .panel-heading {
  padding: 27px 28px 0;
}

.results-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subtle-pill {
  color: #909684;
  font-weight: 400;
  font-size: 11px;
  white-space: nowrap;
}

.subtle-pill:empty {
  display: none;
}

.export-button {
  min-height: 34px;
  font-size: 12px;
  padding: 7px 10px;
}

.export-button .icon {
  width: 15px;
  height: 15px;
}

.result-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 28px 22px;
}

.filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 324px;
  max-width: 100%;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #e7ebdf;
  --filter-index: 0;
}

.filter-tabs button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: #8a927e;
  font-size: 12px;
  min-height: 36px;
  padding: 7px 4px 12px;
  white-space: nowrap;
  transition: color 200ms;
}

.filter-tabs button.selected {
  color: #35482b;
  font-weight: 600;
}

#all-count {
  font-size: 11px;
  color: var(--muted);
}

.search-tools {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.search-tools select {
  height: 36px;
  padding: 7px 24px 7px 10px;
  font-size: 12px;
  color: #7c856e;
  border: 1px solid #e4e8dc;
  border-radius: 6px;
  background: #fff;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e4e8dc;
  border-radius: 6px;
  padding: 8px 10px;
  color: #a2aa97;
  transition: border-color 200ms, background 200ms;
}

.search-box .icon {
  width: 15px;
  height: 15px;
}

.search-box input {
  width: 128px;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--ink);
  font-size: 12px;
}

.search-box input::placeholder {
  color: #a1a995;
}

.search-box:focus-within {
  border-color: #94a37f;
  background: #fafcf7;
}

.results-panel:has(#empty-state:not([hidden])) .table-scroll {
  display: none;
}

.table-scroll {
  overflow: auto;
  max-height: 450px;
  scrollbar-width: thin;
  scrollbar-color: #c9cbd2 transparent;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  white-space: nowrap;
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9f3;
  font-size: 11px;
  font-weight: 400;
  color: #879278;
  padding: 12px 14px;
  border-top: 1px solid #edf0e8;
  border-bottom: 1px solid #edf0e8;
}

th:first-child, td:first-child {
  padding-left: 24px;
}

th:last-child, td:last-child {
  padding-right: 24px;
}

td {
  padding: 16px 14px;
  border-bottom: 1px solid #f0f2ec;
  color: #69745d;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fafcf7;
}

.role-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #f0f4e9;
  color: #7e9069;
  font-size: 15px;
  flex-shrink: 0;
}

.role-cell strong {
  display: block;
  color: #35432b;
  font-size: 13px;
  font-weight: 550;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-cell small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 11px;
}

.status-tag::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.status-tag.normal {
  color: #377858;
  background: #eef6f1;
}

.status-tag.banned {
  color: #ae5151;
  background: #fbefef;
}

.status-tag.changed {
  color: #98732f;
  background: #f9f4e9;
}

.status-tag.error, .status-tag.unknown, .status-tag.duplicate {
  color: #777b84;
  background: #f1f1f4;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-button, .detail-button {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  transition: background 180ms, color 180ms, border-color 180ms, transform 180ms var(--ease);
}

.copy-button {
  color: #586b44;
  background: #f7faf2;
  border: 1px solid #dfe7d4;
  font-weight: 500;
}

.copy-button:hover:not(:disabled) {
  background: #eaf0e0;
  border-color: #b7c7a2;
}

.copy-button.copied, .copy-button.copied:hover:not(:disabled) {
  color: var(--success);
  border-color: #cfe3d7;
  background: #edf7ef;
  animation: copy-confirm 340ms var(--ease);
}

.detail-button {
  color: var(--muted);
  background: transparent;
  padding-left: 4px;
  padding-right: 4px;
}

.detail-button:hover {
  color: var(--ink);
}

.empty-state {
  flex: 1;
  min-height: 280px;
  padding: 30px 20px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.empty-icon {
  color: #a6b197;
  margin-bottom: 17px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  position: relative;
  animation: empty-enter 750ms 180ms var(--ease) both;
}

.empty-icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.2;
}

.empty-state h3 {
  margin: 0;
  font-size: 12px;
  color: #a0a995;
  font-weight: 400;
}

.empty-state p:empty {
  display: none;
}

.result-footer {
  margin-top: auto;
  padding: 15px 28px;
  border-top: 1px solid #edf0e7;
  font-size: 11px;
  color: #949e87;
}

.result-footer:has(#result-summary:empty) {
  display: none;
}

dialog {
  width: min(600px, calc(100% - 32px));
  max-height: 84vh;
  padding: 28px;
  border: 1px solid #dfe6d5;
  border-radius: 12px;
  color: var(--ink);
  box-shadow: 0 30px 100px #1a261d26;
}

dialog::backdrop {
  background: #28302455;
  backdrop-filter: blur(4px);
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.close-dialog {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #f3f3f5;
  border-radius: 8px;
  color: var(--muted);
  font-size: 22px;
}

.close-dialog:hover {
  background: #e8e8ed;
  color: var(--ink);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-item {
  background: #f5f8f0;
  border-radius: 6px;
  padding: 12px 14px;
}

.detail-item span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.detail-item strong {
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.noscript {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  text-align: center;
  background: #fbefef;
  color: var(--error);
  z-index: 100;
}

@media (max-width: 1200px) {
  .header-inner {
    padding: 0 28px;
  }
  main {
    padding: 0 28px 28px;
  }
  .workspace-grid {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1px;
  }
  .input-panel {
    padding: 24px;
  }
  .stat {
    padding: 0 18px;
  }
  .search-tools {
    flex: 1;
  }
  .search-box {
    flex: 1;
  }
  .search-box input {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .textarea-wrap textarea {
    height: 190px;
  }
  .upload-zone small {
    max-width: 100%;
  }
  .search-tools {
    flex: 0 1 auto;
  }
  .search-box input {
    width: 160px;
  }
  .results-panel {
    min-height: 460px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    min-height: 78px;
    padding: 0 18px;
    gap: 10px;
  }
  h1 {
    font-size: 18px;
    gap: 10px;
    letter-spacing: -.5px;
  }
  h1 > span:last-child {
    font-size: 12px;
  }
  .title-divider {
    height: 13px;
  }
  .language-switch {
    padding: 2px;
  }
  .language-switch a {
    padding: 6px 8px;
    font-size: 11px;
    min-width: 36px;
  }
  main {
    padding: 0 14px 24px;
  }
  .workspace-grid {
    gap: 1px;
    border-radius: 10px;
  }
  .input-panel {
    padding: 24px 20px;
  }
  .input-panel > .panel-heading {
    margin-bottom: 22px;
  }
  .platform-field {
    margin-bottom: 20px;
  }
  .textarea-wrap textarea {
    height: 190px;
    font-size: 16px;
    line-height: 1.75;
  }
  .textarea-wrap textarea::placeholder {
    font-size: 14px;
  }
  .results-workspace {
    gap: 0;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 22px 0;
    margin: 0 22px;
  }
  .stat {
    padding: 0 20px;
    gap: 12px;
  }
  .stat strong {
    font-size: 28px;
  }
  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(n+3) {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .results-panel {
    min-height: 420px;
  }
  .results-panel > .panel-heading {
    padding: 23px 22px 0;
    gap: 8px;
  }
  .results-panel h2 {
    gap: 7px;
  }
  .subtle-pill {
    font-size: 10px;
  }
  .export-button {
    font-size: 11px;
    padding: 6px 9px;
  }
  .result-tools {
    padding: 18px 22px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .filter-tabs {
    align-self: stretch;
    width: 100%;
  }
  .filter-tabs button {
    padding: 7px 4px 12px;
    min-height: 36px;
  }
  .search-tools {
    width: 100%;
  }
  .search-tools select {
    height: 40px;
    font-size: 14px;
  }
  .search-box {
    min-width: 0;
    flex: 1;
  }
  .search-box input {
    width: 100%;
    font-size: 16px;
  }
  .search-box input::placeholder {
    font-size: 12px;
  }
  table {
    min-width: 660px;
  }
  th:first-child, td:first-child {
    padding-left: 18px;
  }
  .empty-state {
    min-height: 225px;
  }
  .result-footer {
    padding: 14px 22px;
  }
  dialog {
    padding: 22px 18px;
  }
}

@media (max-width: 359px) {
  .header-inner {
    padding: 0 14px;
  }
  h1 {
    font-size: 15px;
    gap: 7px;
  }
  h1 > span:last-child {
    font-size: 12px;
  }
  .language-switch a {
    padding: 6px;
  }
}
