:root {
  font: 16px/1.55 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --ink: #18273a;
  --muted: #4c5a6c;
  --line: #dbe3ed;
  --blue: #1556ba;
  --yellow: #f3bd29;
  color: var(--ink);
  background: #f1f5fa;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--blue); }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #0b67ab; outline-offset: 2px; }
header { background: #122740; color: #fff; }
.top, main { width: min(100% - 32px, 920px); margin: auto; }
.top { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top strong { font-size: 18px; }
.top button { color: #fff; background: transparent; border: 0; padding: 0 6px; }
main { padding: 24px 0 40px; }
main.login { width: min(100% - 32px, 420px); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.24; margin-bottom: 16px; }
h2, h3 { font-size: 18px; }
.subtle, .note, label { color: var(--muted); }
.note, label, small { font-size: 14px; }
.note { margin-top: 12px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0 8px; text-decoration: none; }
.panel, .entries { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.panel { padding: 16px; }
.entries { overflow: hidden; }
.entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 16px; color: inherit; text-decoration: none; }
.entry + .entry { border-top: 1px solid var(--line); }
@media (hover: hover) {
  .entry:hover, .pick:hover { background: #edf4ff; }
}
.entry small { display: block; color: var(--muted); margin-top: 3px; }
.chevron { color: var(--blue); font-size: 26px; }
label { display: block; margin-bottom: 4px; }
input, select {
  min-width: 0; width: 100%; min-height: 46px; padding: 8px 10px;
  border: 1px solid #a9b8cb; border-radius: 6px; color: var(--ink); background: white;
}
button, .phone { min-height: 44px; cursor: pointer; }
.primary { background: var(--blue); border: 1px solid var(--blue); color: white; border-radius: 6px; padding: 7px 15px; font-weight: 700; }
.primary:disabled, input:disabled, select:disabled { background: #edf1f6; border-color: var(--line); color: var(--muted); cursor: default; }
.login-form { display: grid; gap: 12px; }
.controls { display: flex; align-items: end; gap: 8px; }
.controls > div { flex: 1; min-width: 0; }
.filter { margin-bottom: 12px; }
.filter-row { display: grid; gap: 12px; margin-bottom: 12px; }
.results { margin-top: 16px; }
.results > * + * { margin-top: 12px; }
.picks, .lines { list-style: none; padding: 0; margin: 0; }
.picks > li + li, .lines > li + li { border-top: 1px solid var(--line); }
.pick { color: var(--blue); background: white; border: 0; text-align: left; width: 100%; padding: 8px 4px; }
.pick small { display: block; color: var(--muted); }
.lines > li { padding: 10px 0; overflow-wrap: anywhere; }
.lines small { display: block; color: var(--muted); }
.chart { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.pie { width: 124px; height: 124px; border-radius: 50%; flex: none; }
.legend { display: grid; gap: 8px; }
.legend span:first-child::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 7px; background: var(--blue); }
.legend span:last-child::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 7px; background: var(--yellow); }
.warning { padding: 10px 12px; border-radius: 6px; color: #614708; background: #fff4cf; }
.person { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phone { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 12px 0 0; }
dt, dd { margin: 0; padding: 7px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
dt { color: var(--muted); }
dd { padding-left: 8px; }
@media (min-width: 670px) {
  main { padding-top: 34px; }
  .entries { display: grid; grid-template-columns: 1fr 1fr; }
  .entry { min-height: 112px; padding: 18px 22px; }
  .entry + .entry { border-top: 0; }
  .entry:nth-child(even) { border-left: 1px solid var(--line); }
  .entry:nth-child(n+3) { border-top: 1px solid var(--line); }
  .panel { padding: 20px; }
  .filter-row { grid-template-columns: 1fr 1fr; }
}

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pagination button { background: white; color: var(--blue); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.pagination button:disabled { color: #637084; cursor: default; }
.phone { text-decoration: none; }
