:root {
  color-scheme: light;
  --text: #172427;
  --muted: #526368;
  --line: #dae4e3;
  --accent: #006454;
  --canvas: #f3f7f6;
  --card: #fff;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, a.download { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shell { max-width: 1350px; margin-inline: auto; padding-inline: 30px; }
.bar { background: var(--card); border-bottom: 1px solid var(--line); }
.bar-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 720; font-size: 19px; white-space: nowrap; }
.mark { color: white; background: var(--accent); padding: 6px 7px; border-radius: 6px; font: 650 13px ui-monospace, monospace; }
.data-control { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
button, .download { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 7px 11px; text-decoration: none; font-size: 14px; white-space: nowrap; }
button:hover:enabled, .download:hover { border-color: var(--accent); }
.update-note { min-height: 52px; display: flex; align-items: center; color: var(--muted); font-size: 14px; }
.workspace { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 40px; }
.configuration, .results { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.configuration { padding: 24px; }
.intro { margin-bottom: 21px; }
h1, h2, p { margin: 0; }
h1, h2 { font-size: 22px; letter-spacing: -.025em; line-height: 1.35; }
.intro p, .result-head p { color: var(--muted); margin-top: 7px; font-size: 14px; line-height: 1.6; }
fieldset { border: 0; min-width: 0; margin: 0; padding: 0; }
legend, .fields label { color: var(--text); font-weight: 620; font-size: 14px; }
legend { margin-bottom: 8px; padding: 0; }
.switches { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); }
.switches label { position: relative; text-align: center; }
.switches input { position: absolute; inset: 0; opacity: 0; width: 100%; margin: 0; cursor: pointer; }
.switches span { display: block; white-space: nowrap; border: 1px solid transparent; border-radius: 5px; padding: 8px 2px; color: var(--muted); font-size: 14px; }
.switches input:checked + span { border-color: var(--line); background: var(--card); color: var(--accent); font-weight: 660; }
.switches input:focus-visible + span { outline: 2px solid var(--accent); }
.note { color: var(--muted); line-height: 1.6; margin: 9px 0 18px; font-size: 14px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; }
.fields label, .search-label { display: grid; gap: 6px; }
.fields .full { grid-column: 1 / -1; }
input:not([type="radio"],[type="checkbox"]), select { width: 100%; min-width: 0; min-height: 40px; border: 1px solid #cdd9d6; border-radius: 6px; background: white; color: var(--text); padding: 6px 8px; font-weight: 450; font-size: 14px; }
input[type="date"] { padding-right: 4px; }
.hint { color: var(--muted); line-height: 1.5; font-size: 13px; margin-top: 7px; }
.strategy-fields { margin: 16px 0 14px; }
.primary { width: 100%; background: var(--accent); color: white; border-color: var(--accent); min-height: 42px; margin-top: 20px; font-weight: 650; }
.primary:hover:enabled { background: #004e42; }
.results { min-height: 610px; }
.result-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 23px 23px 15px; }
.empty { min-height: 420px; display: grid; align-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.empty svg { stroke: #537870; stroke-width: 1.5; }
.filters { display: flex; align-items: end; gap: 14px; padding: 0 23px 14px; color: var(--muted); font-size: 14px; }
.search-label { width: min(220px, 60%); }
.check { display: flex; gap: 5px; align-items: center; padding-bottom: 9px; }
.check input { accent-color: var(--accent); }
.table-wrap { overflow: auto; border-top: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 500px; font-size: 14px; }
thead { background: var(--canvas); }
th, td { text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th:first-child, td:first-child { padding-left: 23px; white-space: nowrap; }
td { line-height: 1.55; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
td:first-child { font-family: ui-monospace, monospace; font-weight: 650; }
tr:hover td { background: #f7fbfa; }
.matched { color: var(--accent); font-weight: 660; }
.pagination { display: flex; align-items: center; justify-content: end; gap: 12px; padding: 15px 22px; font-size: 14px; color: var(--muted); }
.error { color: #a43726 !important; }
@media (max-width: 815px) {
  .shell { padding-inline: 18px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .results { min-height: 380px; }
  .empty { min-height: 260px; }
}
@media (max-width: 475px) {
  .bar-inner { flex-wrap: wrap; padding-block: 12px; }
  .configuration { padding: 17px; }
  .data-control { width: 100%; justify-content: space-between; }
  .result-head { padding-inline: 17px; }
}
