* { box-sizing: border-box; }
:root { color: #182923; background: #f3f5f1; font: 16px/1.55 system-ui, "Microsoft YaHei", sans-serif; }
body { margin: 0; }
header { display: flex; align-items: center; justify-content: space-between; background: #142d25; color: white; padding: 1rem max(1.25rem, calc((100vw - 60rem) / 2)); gap: 1rem; }
h1 { font-size: 1.35rem; margin: 0; white-space: nowrap; }
h2 { font-size: 1.15rem; margin-top: 0; }
h3 { font-size: 1rem; }
main { max-width: 62.5rem; padding: 0 1.25rem 3rem; margin: auto; }
nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
nav { margin: 0 0 1rem; }
nav a { color: #145941; }
section, #login, #password { padding: 1.1rem 1.25rem; margin-bottom: 1rem; background: #fff; border: 1px solid #dae2da; border-radius: .55rem; scroll-margin-top: 1rem; }
#login, #password { max-width: 27rem; margin-inline: auto; }
.heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; margin: 0; }
dt, #rule-base { color: #456257; }
dd { margin: .2rem 0 0; font-size: 1.2rem; font-weight: 650; }
label { display: grid; gap: .25rem; margin: 0 0 .8rem; }
input, textarea, select, button { font: inherit; }
input, textarea, select { width: 100%; padding: .45rem .55rem; border: 1px solid #aebeb3; border-radius: .3rem; background: white; color: inherit; }
textarea { resize: vertical; }
button { cursor: pointer; border: 1px solid #306752; padding: .3rem .75rem; border-radius: .3rem; background: #e9f3ec; color: #173f31; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #127451; outline-offset: 2px; }
.records { padding: 0; list-style: none; margin: 0 0 .6rem; }
.records li { padding: .65rem 0; border-top: 1px solid #e0e7e0; overflow-wrap: anywhere; }
.records p { margin: 0 0 .35rem; }
.records select { width: auto; max-width: 100%; }
#notice { color: #176042; }
#notice.error { color: #9a2e1e; }
details { margin-top: .75rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 24rem; overflow: auto; background: #eff4ee; padding: .6rem; }
[hidden] { display: none !important; }
