:root { color-scheme: light; font: 15px/1.52 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #172b29; background: #f2f6f4; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: #126351; text-underline-offset: .2em; }
h1, h2, p { margin: 0; }
h1 { font-size: 29px; font-weight: 690; letter-spacing: -.02em; }
h2 { font-size: 17px; }
button, select, input { min-height: 39px; border: 1px solid #bdccc7; border-radius: 7px; padding: 7px 11px; background: #fff; color: inherit; font: inherit; }
button { cursor: pointer; font-weight: 620; }
button:hover { border-color: #126351; background: #f5faf7; }
button:disabled { cursor: default; opacity: .5; }
button.primary { background: #16624f; border-color: #16624f; color: #fff; }
button.primary:hover { background: #0d4b3c; }
:focus-visible { outline: 2px solid #087c65; outline-offset: 2px; }
label { display: grid; gap: 5px; color: #334943; font-size: 13px; }
label input, label select { font-size: 14px; }
.error { color: #9b2522; white-space: pre-wrap; }
#message { background: #fff0ec; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: radial-gradient(ellipse at 12% 100%, #285f50, #142d29 65%); }
.login { width: min(100%, 385px); display: grid; gap: 15px; padding: 34px; border-radius: 15px; background: #fdfefa; box-shadow: 0 15px 65px #0a1f19aa; }
.login > p:not(.error) { color: #536a62; margin: -8px 0 3px; }
.login .error:empty { display: none; }
.topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; padding: 13px max(22px, calc((100vw - 1440px) / 2 + 24px)); background: #153630; color: #e7f5ee; }
.topbar a { color: inherit; text-decoration: none; }
.brand { display: flex; align-items: baseline; gap: 11px; font-size: 20px; font-weight: 680; white-space: nowrap; }
.brand span { font-weight: 480; font-size: 13px; color: #a7c9b8; }
.topbar nav, .user { display: flex; align-items: center; gap: 16px; }
.topbar nav a { padding: 5px 8px; border-radius: 5px; }
.topbar nav a[aria-current] { background: #28564a; }
.user { margin-left: auto; font-size: 13px; }
.user button { color: inherit; border-color: #5b8073; background: transparent; min-height: 33px; }
main { max-width: 1440px; margin: auto; padding: 27px 24px 45px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 15px; }
.filters select { max-width: 240px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(177px, 1fr)); gap: 12px; margin: 18px 0; }
.metric, .panel { border: 1px solid #dce7e1; border-radius: 11px; background: #fff; }
.metric { padding: 12px 15px; min-height: 101px; }
.metric span, .muted, small { color: #516963; }
.metric strong { display: block; margin: 2px 0; font-size: 25px; font-variant-numeric: tabular-nums; }
.panel { padding: 17px; margin-top: 15px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px; vertical-align: top; border-bottom: 1px solid #e4ece8; }
th { white-space: nowrap; font-weight: 650; color: #425a53; background: #edf4f0; }
tr:last-child td { border-bottom: 0; }
td:first-child { min-width: 118px; }
td a { overflow-wrap: anywhere; }
td button, .pager button { min-height: 30px; padding: 3px 8px; font-size: 13px; }
.pager, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.empty { padding: 19px 8px; color: #536a62; }
#detail > p { margin: 5px 0 0; }
@media (max-width: 720px) {
  main, .topbar { padding-left: 15px; padding-right: 15px; }
  .topbar { gap: 10px; }
  .brand { width: 100%; }
  h1 { font-size: 24px; }
}
