:root {
  font-family:
    Inter,
    Segoe UI,
    system-ui,
    sans-serif;
  color: #e0e7ed;
  background: #0d1218;
  font-synthesis: none;
  color-scheme: dark;
}
.dual-heading span {
  display: block;
  line-height: 1.5;
}
.dual-heading [lang="zh-CN"] {
  font-size: 1em;
  font-weight: 500;
}
.dual-copy p {
  margin: 6px 0;
  font-size: 14px;
}
.privacy-banner {
  border-left: 4px solid #76cfce;
  background: #172a31;
}
.privacy-banner h2 {
  font-size: 20px;
}
.local-note {
  border-left: 2px solid #76cfce;
  padding-left: 10px;
  margin: 14px 0;
}
header nav {
  margin-left: auto;
  display: flex;
  gap: 10px;
}
.rule-controls label,
.rule-controls select,
small,
table,
.stats dt,
.badge,
.chip {
  font-size: 13px;
}
.rule-controls select {
  max-width: 210px;
}
label,
button,
input,
select {
  font-size: 14px;
}
.file-label {
  width: 240px;
}
.dual-copy {
  white-space: normal;
}
.rule-controls label span {
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 22px 4vw;
  border-bottom: 1px solid #29333e;
  background: #131b24;
}
header strong {
  font-size: 23px;
  letter-spacing: -0.7px;
}
header span {
  color: #76cfce;
}
small {
  display: block;
  font-size: 11px;
  color: #99acbd;
  line-height: 1.5;
}
header small {
  letter-spacing: 2px;
  margin-top: 4px;
}
header p {
  margin-left: auto;
  font-size: 13px;
  color: #adc0d0;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 32px 4vw;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 0 0 10px;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.6;
  font-size: 13px;
}
.intro p {
  color: #9caebe;
}
.chip {
  border: 1px solid #344455;
  border-radius: 4px;
  padding: 6px 9px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #a9bac8;
  white-space: nowrap;
}
.columns {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(480px, 1.3fr);
  gap: 24px;
}
.panel {
  background: #161f29;
  border: 1px solid #2b3743;
  padding: 22px;
  border-radius: 8px;
  margin-bottom: 22px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.drop {
  border: 1px dashed #536678;
  background: #182430;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}
button,
.file-label {
  border: 1px solid #405368;
  border-radius: 4px;
  background: #253549;
  color: #eef3f8;
  padding: 9px 13px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
button:hover {
  background: #344b64;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
input,
select {
  font: inherit;
  font-size: 12px;
  border: 1px solid #3c4c5e;
  border-radius: 4px;
  background: #101821;
  color: #e3edf6;
  padding: 8px;
  max-width: 100%;
}
input[type="file"] {
  width: 100%;
}
input[type="checkbox"] {
  accent-color: #74cbcb;
}
label {
  font-size: 12px;
  color: #b5c6d6;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.rule-controls > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #2b3743;
  padding: 9px 0;
}
.rule-controls label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
}
.rule-controls select {
  font-size: 11px;
  max-width: 140px;
}
.file-label {
  margin: 0;
  width: 180px;
}
.file-label input {
  padding: 3px;
  font-size: 10px;
}
.muted {
  color: #9caebe;
}
.status {
  font-weight: 600;
  color: #8dd8d4;
}
.verdict {
  font-size: 24px;
  font-weight: 700;
  border-left: 4px solid;
  padding: 10px 15px;
  background: #1e2d3d;
  letter-spacing: 1px;
}
.NEEDS_CHANGES {
  border-color: #e9a18f;
}
.PASS {
  border-color: #79c6ac;
}
.INCOMPLETE {
  border-color: #ddc08e;
}
.sample,
.notice {
  border: 1px solid #988052;
  padding: 9px;
  color: #ead29d;
}
.filename {
  overflow-wrap: anywhere;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stats > div {
  background: #101922;
  padding: 14px;
  border: 1px solid #2b3948;
  border-radius: 4px;
}
.stats dt {
  font-size: 10px;
  color: #9cb1c2;
}
.stats dd {
  font-size: 25px;
  margin: 6px 0 0;
  font-variant-numeric: tabular-nums;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}
th {
  text-align: left;
  padding: 10px;
  background: #101923;
  color: #a9bbcb;
}
td {
  vertical-align: top;
  border-bottom: 1px solid #304050;
  padding: 12px 8px;
  overflow-wrap: anywhere;
}
td:first-child {
  width: 40%;
}
summary {
  cursor: pointer;
  line-height: 1.5;
}
summary small {
  margin-top: 4px;
}
.badge {
  white-space: nowrap;
  display: inline-block;
  padding: 3px 5px;
  border: 1px solid #557087;
  border-radius: 3px;
  font-size: 9px;
  margin-bottom: 5px;
}
.badge.FAIL,
.badge.ERROR {
  color: #f2b0a3;
  border-color: #936d65;
}
.badge.UNKNOWN {
  color: #e4cd9b;
}
.badge.PASS {
  color: #a0dcca;
}
.preview {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #101820;
}
.preview canvas {
  display: block;
  max-width: 100%;
  touch-action: none;
}
.empty {
  padding: 50px 10px;
  text-align: center;
}
footer {
  color: #8297a9;
  text-align: center;
  font-size: 11px;
  padding: 20px;
  border-top: 1px solid #293744;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #8fded9;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .intro {
    display: block;
  }
  .intro .chip {
    display: inline-block;
    margin-top: 12px;
  }
  header p {
    display: none;
  }
  header button {
    margin-left: auto;
  }
}
@media (max-width: 500px) {
  main {
    padding: 20px 12px;
  }
  .panel {
    padding: 16px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 27px;
  }
}
@media print {
  header,
  footer,
  .drop,
  .rule-controls,
  .actions,
  .preview {
    display: none;
  }
  .columns {
    display: block;
  }
  .panel {
    background: white;
    color: black;
  }
  body {
    background: white;
    color: black;
  }
}
/* Apply bilingual readability after the original compact-tool defaults. */
small,
table,
.stats dt,
.rule-controls label,
.rule-controls select {
  font-size: 13px;
}
.badge,
.chip,
footer {
  font-size: 12px;
}
label,
button,
input,
select,
.file-label {
  font-size: 14px;
}
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid label,
.rule-controls label,
.columns > div {
  min-width: 0;
}
.form-grid input,
.form-grid select {
  width: 100%;
  min-width: 0;
}
.rule-controls select {
  max-width: 210px;
  flex-shrink: 0;
}
.rule-controls label {
  overflow-wrap: anywhere;
}
small {
  white-space: pre-line;
}
.file-label {
  width: auto;
  max-width: 100%;
}
@media (max-width: 500px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .rule-controls > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

.rule-controls > div{flex-wrap:wrap}.rule-controls > div > label:first-child{flex-basis:100%}.rule-controls label,.rule-controls select{font-size:14px}
