:root {
    color-scheme: light;
    font: 15px/1.55 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #182523;
    background: #f3f5f1;
    --accent: #155b4b;
    --border: #d9e1da;
    --muted: #516660;
}

* { box-sizing: border-box; }
body, form, h1, h2, p { margin: 0; }
a { color: var(--accent); text-underline-offset: .18em; }
.top { background: #12362f; color: #fff; }
.top-inner, main { width: min(1100px, calc(100% - 2.5rem)); margin-inline: auto; }
.top-inner { min-height: 4.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .65rem; }
.brand { font-size: 1.25rem; letter-spacing: .04em; font-weight: 750; color: #fff; text-decoration: none; }
.brand span { font-size: .85rem; color: #b7d2c7; font-weight: 500; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.35rem; }
nav a, nav button { color: #fff; }
nav button { background: transparent; border-color: #648379; }
main { padding-block: 2.3rem 4rem; }
h1 { margin-bottom: 1.15rem; font-size: clamp(1.65rem, 4vw, 2.15rem); font-weight: 740; }
h2 { margin-bottom: .75rem; font-size: 1.04rem; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: .85rem; padding: 1.2rem; margin-bottom: 1rem; }
.stats, .fields { display: grid; gap: .9rem; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { display: grid; gap: .4rem; }
.stat span, .hint { color: var(--muted); }
.stat strong { font-size: 1.8rem; line-height: 1.18; font-variant-numeric: tabular-nums; }
.section-head, .services li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.section-head h2 { margin: 0; }
.services { list-style: none; margin: .6rem 0 0; padding: 0; }
.services li { border-top: 1px solid var(--border); padding: .65rem 0; }
.services li:last-child { padding-bottom: 0; }
.ready, .pending { border-radius: 2rem; padding: .18rem .65rem; font-size: .84rem; }
.ready { background: #e4f1e9; color: #185a3e; }
.pending { background: #faefd7; color: #735017; }
.hint { margin-bottom: .85rem; }
.login { max-width: 27rem; }
.login label { margin-bottom: 1rem; }
label { display: grid; gap: .35rem; font-weight: 620; }
input, select, button { font: inherit; border: 1px solid #aabbb2; border-radius: .45rem; min-height: 2.55rem; padding: .38rem .67rem; }
input, select { width: 100%; min-width: 0; background: #fff; color: #182523; }
button { color: var(--accent); background: #eff5f1; cursor: pointer; }
.primary { background: var(--accent); color: #fff; border-color: var(--accent); padding-inline: 1.1rem; }
:focus-visible { outline: 3px solid #68ae9b; outline-offset: 2px; }
.search { display: flex; align-items: end; gap: .6rem; margin-bottom: 1rem; }
.search label { width: min(25rem, 100%); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--border); padding: .68rem .55rem; white-space: nowrap; }
th { color: var(--muted); font-size: .88rem; }
tbody tr:last-child td { border-bottom: 0; }
.empty { color: var(--muted); padding-block: 1.1rem; }
.notice { margin-bottom: 1rem; padding: .7rem; border: 1px solid #bbd2c8; border-radius: .45rem; background: #edf5f0; }
.pager { display: flex; justify-content: flex-end; gap: 1rem; margin-top: .7rem; }

@media (max-width: 640px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fields { grid-template-columns: 1fr; }
    .panel { padding: .9rem; }
}
