:root {
  --navy: #102c3b;
  --ink: #173240;
  --muted: #647b87;
  --teal: #007e82;
  --mint: #e3f5f0;
  --wash: #f3f7f7;
  --line: #dae5e6;
  --red: #a8433b;
  --amber: #a66308;
}
.review-note {
  padding: 12px 24px;
  color: var(--muted);
  background: var(--mint);
  font-size: 12px;
}
.pair-count {
  margin-top: 8px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.path {
  overflow-wrap: anywhere;
  min-width: 160px;
  max-width: 420px;
  user-select: text;
}
#language {
  color: var(--ink);
  background: white;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font:
    14px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #55bcb5;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -9999px;
  z-index: 99;
  background: white;
  padding: 10px;
}
.skip:focus {
  left: 10px;
}
.topbar {
  height: 76px;
  background: var(--navy);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mark {
  background: #087f80;
  border-radius: 10px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 750;
}
.brand strong,
.brand small {
  display: block;
}
.brand small {
  color: #a7c5cd;
  font-size: 11px;
  margin-top: 3px;
}
.topright {
  display: flex;
  align-items: center;
  gap: 16px;
}
.private-pill {
  color: #b5efe5;
  border: 1px solid #478980;
  padding: 6px 10px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.dark-button {
  border: 1px solid #6a8b96;
  background: transparent;
  color: #d7eaed;
  border-radius: 7px;
  padding: 5px 10px;
}
.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}
.sidebar {
  background: #eaf1f1;
  border-right: 1px solid var(--line);
  padding: 24px 14px;
}
.sidebar-heading {
  color: #637e89;
  font-weight: 700;
  font-size: 12px;
  padding: 0 10px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.scope-button {
  border: 0;
  background: none;
  border-radius: 9px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  color: #385763;
}
.scope-button.active {
  background: white;
  color: #066b70;
  font-weight: 750;
  box-shadow: 0 3px 13px #17324012;
}
.sidebar-note {
  font-size: 12px;
  color: #718892;
  margin: 28px 10px;
  border-top: 1px solid #cedddd;
  padding-top: 16px;
}
.legend {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px;
}
.main {
  padding: 32px;
  max-width: 1800px;
  width: 100%;
  margin: auto;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: var(--teal);
  margin: 0 0 8px;
}
h1 {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}
h2 {
  font-size: 21px;
  margin: 0;
}
p {
  margin: 8px 0;
}
.hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}
.hero-stamp {
  border-left: 2px solid #aad5cf;
  padding-left: 15px;
  min-width: 172px;
}
.hero-stamp span,
.hero-stamp small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.hero-stamp strong {
  display: block;
  font-size: 14px;
  color: var(--teal);
  margin: 5px 0;
}
.notice {
  background: #e6f4f1;
  color: #216665;
  border: 1px solid #c1e0d9;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 12px;
  margin: 16px 0 22px;
}
.notice.warn {
  background: #fff2d9;
  color: #80540f;
  border-color: #eed7a9;
}
.notice.error {
  background: #fbe9e6;
  color: #913c35;
  border-color: #edc7c2;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 17px;
  min-height: 100px;
  box-shadow: 0 4px 20px #17324008;
  color: var(--ink);
  text-align: left;
  width: 100%;
}
.metric:hover {
  border-color: var(--teal);
}
.metric-label {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.metric strong {
  font-size: 28px;
  line-height: 1.2;
  display: block;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.metric:first-child {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.metric:first-child .metric-label {
  color: #afcbd0;
}
.metric-detail,
.metric-link {
  display: block;
  font-size: 11px;
  margin-top: 6px;
}
.metric-detail {
  color: var(--muted);
}
.metric-link {
  color: var(--teal);
}
.metric:first-child .metric-link {
  color: #b5efe5;
}
.metric-note {
  color: var(--muted);
  font-size: 12px;
  margin: -12px 0 18px;
}
.filter-hint {
  color: var(--muted);
  font-size: 12px;
  align-self: center;
}
.workbench {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px #1732400a;
  overflow: hidden;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 23px 24px 15px;
}
.actions {
  display: flex;
  gap: 9px;
}
.ghost-button,
.primary-button {
  padding: 8px 12px;
  border: 1px solid #bfd7d7;
  border-radius: 8px;
  background: white;
  color: #086d71;
  font-size: 12px;
  font-weight: 700;
}
.primary-button {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.ghost-button:hover {
  background: #eef8f6;
}
.tabs {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 12px 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: #6e8590;
  font-size: 13px;
  font-weight: 700;
}
.tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 11px;
  padding: 18px 24px;
  background: #fafdfd;
}
.toolbar label {
  font-size: 11px;
  color: #708791;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.toolbar .search {
  flex: 0 1 260px;
  min-width: 160px;
  max-width: 280px;
}
.toolbar input,
.toolbar select {
  height: 37px;
  border: 1px solid #d1e0e2;
  border-radius: 7px;
  padding: 0 10px;
  background: white;
  color: var(--ink);
}
.table-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px 13px;
  color: #7a909a;
  font-size: 11px;
}
.table-wrap {
  overflow-x: auto;
  min-height: 310px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1000px;
  text-align: left;
}
th {
  font-size: 10px;
  color: #69818c;
  letter-spacing: 0.06em;
  background: #f3f8f8;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 7px 10px;
  border-bottom: 1px solid #edf1f2;
  font-size: 12px;
  line-height: 1.35;
  vertical-align: top;
}
#table .pair-count,
#table .secondary {
  margin-top: 2px;
}
#table .badge {
  padding: 2px 6px;
}
#table .ghost-button {
  padding: 3px 7px;
  margin-top: 2px;
  border-radius: 5px;
  line-height: 1.25;
}
#table details {
  margin-top: 2px;
}
tr:hover td {
  background: #f9fcfc;
}
.mono {
  font-family: ui-monospace, Consolas, monospace;
}
.secondary {
  font-size: 10px;
  color: #8599a1;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  background: #eef2f3;
  color: #6c818c;
  white-space: nowrap;
}
.badge.provisional,
.badge.candidate_ready {
  background: #eaf1ff;
  color: #426592;
}
.badge.identified,
.badge.native_verified,
.badge.complete,
.badge.ready,
.badge.native_ready,
.badge.receipt_verified,
.badge.published,
.badge.reported_passed {
  background: #e2f4ed;
  color: #146e61;
}
.badge.blocked,
.badge.missing,
.badge.conflict,
.badge.error,
.badge.invalid,
.badge.multiple_codes,
.badge.multiple_versions {
  background: #fbe9e6;
  color: var(--red);
}
.badge.processing,
.badge.incomplete,
.badge.building,
.badge.prepared,
.badge.scanning {
  background: #fff2d9;
  color: var(--amber);
}
.link-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--teal);
  font-weight: 750;
  text-align: left;
}
.link-button:hover {
  text-decoration: underline;
}
.reason {
  max-width: 250px;
  min-width: 150px;
  color: #8b6850;
  font-size: 11px;
}
.empty {
  text-align: center;
  padding: 72px 25px;
  color: #7c939c;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px;
  font-size: 12px;
  color: var(--muted);
}
footer {
  font-size: 11px;
  color: #7d929b;
  margin-top: 20px;
  line-height: 1.7;
}
.login-card {
  max-width: 500px;
  margin: 80px auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 48px #17324012;
}
.login-card p {
  color: var(--muted);
}
.login-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 15px;
}
.login-card input {
  border: 1px solid #cadbdd;
  border-radius: 7px;
  padding: 10px;
}
.login-card label,
.login-card small {
  font-size: 12px;
  color: var(--muted);
}
.error-text {
  color: var(--red) !important;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0;
  color: var(--ink);
  width: min(1100px, calc(100vw - 30px));
  max-height: 90vh;
  box-shadow: 0 20px 75px #102c3b50;
}
dialog::backdrop {
  background: #0d2837a8;
}
.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: white;
  position: sticky;
  top: 0;
  z-index: 1;
}
.close {
  border: 0;
  background: #edf3f3;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 22px;
  color: #557480;
}
.detail-section {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.detail-section h3 {
  font-size: 13px;
  margin: 0 0 12px;
}
.detail-section pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f4f8f8;
  padding: 12px;
  border-radius: 8px;
  font-size: 11px;
  max-height: 400px;
  overflow: auto;
}
.file-card {
  padding: 14px 0;
  border-top: 1px solid #e5eeee;
  overflow-wrap: anywhere;
}
.file-card:first-of-type {
  border-top: 0;
}
.file-card .path {
  font:
    12px/1.6 ui-monospace,
    Consolas,
    monospace;
  user-select: all;
  color: #345a67;
}
.file-card button {
  margin: 8px 8px 0 0;
}
.timeline {
  padding: 8px 0 8px 15px;
  margin: 10px 0;
  border-left: 2px solid #c8e2dc;
}
.timeline small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.detail-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.detail-statuses > div {
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
.copy-status {
  font-size: 11px;
  color: var(--teal);
}
@media (max-width: 1200px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .main {
    padding: 25px;
  }
  .layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 0 16px;
    height: 65px;
  }
  .private-pill {
    font-size: 8px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 6px;
  }
  .scope-button {
    white-space: nowrap;
    gap: 12px;
  }
  .sidebar-heading,
  .sidebar-note,
  .legend {
    display: none;
  }
  .main {
    padding: 20px 12px;
  }
  .hero-stamp {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .metric {
    padding: 13px;
  }
  .section-head,
  .toolbar {
    padding: 17px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .tabs {
    padding: 0 17px;
    gap: 15px;
  }
  .table-meta {
    padding: 0 17px 12px;
    flex-direction: column;
  }
  .login-card {
    margin: 40px 14px;
    padding: 25px;
  }
  .topright {
    gap: 8px;
  }
  .topbar .brand strong {
    font-size: 13px;
    white-space: nowrap;
  }
  .topbar .private-pill {
    display: none;
  }
  .dark-button {
    white-space: nowrap;
  }
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }
  .section-head .actions {
    justify-content: flex-end;
  }
  .table-meta::after {
    content: "窄屏可横向滚动表格";
    color: #708791;
  }
}
