:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #172538;
  background: #f2f5fa;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: #143355; color: white; }
.top, main, footer { width: min(1180px, calc(100% - 32px)); margin: auto; }
.top { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.brand { color: white; font-size: 1.14rem; text-decoration: none; font-weight: 750; }
#account { display: flex; align-items: center; gap: 12px; }
main { padding: 24px 0 32px; min-height: 60vh; }
footer { color: #4a5e74; padding: 8px 0 24px; font-size: .85rem; }
h1 { margin: 0; font-size: 1.55rem; line-height: 1.3; }
h2 { margin: 0 0 12px; font-size: 1.08rem; }
h3 { margin: 14px 0 6px; font-size: 1rem; }
p { margin: 6px 0 12px; }
ol { padding-left: 24px; margin-top: 0; }
.section { padding: 16px; border: 1px solid #dce4ee; border-radius: 9px; background: white; margin: 14px 0; }
.headline { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }
.compact { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.compact label { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.compact input:not([type=checkbox]) { width: 11rem; }
.two { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 14px; }
.two .section { margin: 14px 0 0; min-width: 0; }
.login { max-width: 460px; margin: 26px auto; }
.login label { display: grid; gap: 4px; }
button, input, select, textarea { font: inherit; }
button, .link-button {
  border: 1px solid #224d78; border-radius: 6px; background: #eff5fc; color: #163e63;
  padding: 4px 10px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
button.primary { color: white; background: #235886; }
button:disabled { opacity: .55; cursor: default; }
input, select, textarea { border: 1px solid #9caec1; border-radius: 5px; padding: 4px 7px; color: inherit; background: white; max-width: 100%; }
textarea { display: block; width: 100%; min-height: 80px; }
#editor { font: .89rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; min-height: 260px; tab-size: 4; margin: 8px 0; }
a { color: #174f84; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #1474ae; outline-offset: 2px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 7px 9px; text-align: center; border-bottom: 1px solid #dde6ef; overflow-wrap: anywhere; }
th { color: #263f5b; background: #eff4fa; white-space: nowrap; }
.tag { font-size: .86rem; border-radius: 4px; padding: 1px 6px; background: #edf2f8; color: #25486b; white-space: nowrap; }
.done { background: #e4f4e9; color: #205035; }
.bad, .error { color: #a21b2d; }
.bad { background: #fcebee; }
.message { min-height: 1.5em; font-size: .92rem; margin: 4px 0; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f2f5fa; padding: 8px; border-radius: 5px; }
details { margin: 7px 0; }
summary { cursor: pointer; }
.chart { width: 100%; max-width: 420px; background: #f4f8fc; border-radius: 6px; }
.chart rect { fill: #356ca0; }
.chart circle { fill: #245d85; }
.chart .center { fill: #ab391a; }
.chart text { font-size: 11px; fill: #23374b; }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } main { padding-top: 16px; } }
