:root { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: #142a35; background: #f4f7f7; color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { border: 1px solid #cbd8d9; background: white; color: #15343d; padding: .55rem .8rem; border-radius: .5rem; cursor: pointer; }
button:hover { border-color: #157563; }
button:disabled { opacity: .55; cursor: wait; }
.primary { background: #136d59; border-color: #136d59; color: white; }
input, select, textarea { border: 1px solid #cbd8d9; border-radius: .45rem; padding: .55rem; width: 100%; background: white; }
label { display: grid; gap: .35rem; font-size: .9rem; }
textarea { min-height: 5rem; resize: vertical; }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
aside { padding: 1.4rem 1rem; background: #12352f; color: #f1faf6; }
.brand { display: flex; align-items: center; gap: .75rem; margin: 0 0 2rem; }
.brand span { display: grid; place-items: center; border-radius: .7rem; width: 2.6rem; height: 2.6rem; background: #c7f2ce; color: #12352f; font-weight: 800; }
.brand small { display: block; color: #a7cabd; font-size: .78rem; margin-top: .3rem; font-weight: 400; }
nav { display: grid; gap: .4rem; margin-bottom: 2rem; }
nav button, #logout { background: transparent; border-color: transparent; text-align: left; color: #e9f7ef; }
nav button:hover, nav button[aria-current="page"], #logout:hover { background: #27574c; }
main { width: 100%; max-width: 1340px; margin-inline: auto; padding: 2rem clamp(.85rem, 3vw, 3rem); }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
h1 { margin: 0; font-size: 1.6rem; }
h2 { margin: 0 0 .8rem; font-size: 1.12rem; }
p { line-height: 1.6; }
.login { max-width: 440px; margin: min(10vh, 5rem) auto; padding: 2rem; background: white; border: 1px solid #dae5e3; border-radius: 1rem; }
.login form { display: grid; gap: .9rem; margin: 1rem 0; }
.panel, .metric { border: 1px solid #dbe5e5; background: white; border-radius: .75rem; padding: 1rem; margin-bottom: .9rem; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.metric progress { width: 100%; accent-color: #157563; }
.metric strong { display: block; font-size: 1.8rem; padding-top: .4rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; gap: .65rem; margin-bottom: .65rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .65rem; }
.table { overflow-x: auto; }
table { min-width: 500px; width: 100%; text-align: left; border-collapse: collapse; }
th, td { border-bottom: 1px solid #e6eeee; padding: .65rem .45rem; vertical-align: top; }
th { font-size: .84rem; color: #405b61; }
.note { color: #415c62; font-size: .87rem; }
.copy { min-height: 12rem; line-height: 1.55; }
.notice { position: fixed; bottom: 1rem; right: 1rem; background: #12352f; color: white; border-radius: .55rem; padding: .7rem 1rem; max-width: calc(100vw - 2rem); }
.chart { width: 100%; max-width: 840px; height: auto; display: block; margin-bottom: .7rem; }
dialog { width: min(30rem, calc(100vw - 2rem)); padding: 1.3rem; border: 1px solid #dbe5e5; border-radius: .75rem; color: #142a35; }
.pagination { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:16px; }
.pagination select { width:auto; }
.pagination [aria-current="page"] { background:#157563; color:white; border-color:#157563; }
.pagination button { min-width:36px; }
dialog::backdrop { background: rgb(15 39 34 / .46); }
td { overflow-wrap: anywhere; }
.check-field { display: flex; align-items: center; margin: .75rem 0; }
.check-field input { width: auto; accent-color: #157563; }
.panel summary { cursor: pointer; margin-bottom: .6rem; }
@media (max-width: 760px) {
  .shell { display: block; }
  aside { padding: .8rem; }
  aside .brand { margin-bottom: .65rem; }
  nav { display: flex; flex-wrap: wrap; margin-bottom: .25rem; }
  .login { margin: 1rem; }
}
