:root {
  font: 16px/1.55 system-ui, "Microsoft YaHei", sans-serif;
  background: #f5f7fb;
  color: #122334;
  --accent: #174ea6;
  --line: #dce4ef;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px max(20px, calc((100vw - 1040px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; }
h2 { font-size: 19px; }
h3 { font-size: 17px; overflow-wrap: anywhere; }
main { max-width: 1080px; margin: auto; padding: 28px 20px; }
section { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 18px; padding: 20px; }
p { margin: 8px 0; }
button { border: 1px solid var(--accent); border-radius: 7px; padding: 7px 13px; min-height: 40px; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
button.secondary, #records button { background: white; color: var(--accent); border-color: var(--line); }
button[aria-pressed="true"] { background: #eaf2ff !important; border-color: var(--accent) !important; }
button:disabled { opacity: .65; cursor: wait; }
button:focus-visible, input:focus-visible, #upload-area:focus-within { outline: 3px solid #4f8fe3; outline-offset: 2px; }
#upload-area { position: relative; display: block; margin-top: 12px; border: 1px dashed #8ba7cb; border-radius: 9px; padding: 16px; background: #f6faff; cursor: pointer; }
#upload-area[data-dragging] { background: #deebff; }
#upload-area input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
#upload-area small { display: block; color: #50647b; }
.toolbar, .fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.fields { align-items: flex-end; margin: 14px 0; }
.fields label { flex: 1 1 180px; }
.fields input { width: 100%; display: block; min-height: 40px; padding: 7px; font: inherit; border: 1px solid #a6b7cd; border-radius: 6px; color: #122334; }
#number { font-family: ui-monospace, monospace; }
ul { margin: 12px 0 0; padding-left: 24px; }
#records { list-style: none; padding: 0; display: grid; gap: 7px; }
#records button { overflow-wrap: anywhere; width: 100%; text-align: left; }
#current { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
#issues { background: #f5f7fb; border-radius: 8px; padding: 14px; margin-top: 16px; }
#issues li { margin: 5px 0; overflow-wrap: anywhere; }
#status[data-error], #record-status[data-error], #login-status[data-error] { color: #9b282c; }
@media (max-width: 560px) { main { padding: 16px 12px; } section { padding: 15px; } }
