:root {
  --ink: #182a35;
  --muted: #62767d;
  --line: #dfe8e5;
  --green: #076f62;
  --mint: #e8f3ee;
  --bg: #f4f7f6;
  --white: #fff;
  font: 14px Inter, "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 30px 17px 20px;
  display: flex;
  flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px; font-size: 21px; font-weight: 750; }
.brand > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--green); color: white; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; margin-top: 3px; }
nav { display: grid; gap: 6px; margin-top: 32px; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 1px solid transparent; padding: 10px 15px; border-radius: 8px; }
button:disabled { opacity: .5; cursor: default; }
nav button { text-align: left; background: transparent; color: #566d73; padding: 13px 12px; white-space: nowrap; }
nav button > span { display: inline-block; width: 21px; font-size: 17px; }
nav button:hover, nav .active { background: var(--mint); color: var(--green); }
nav .active { font-weight: 700; }
.aside-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 15px 9px 0; color: var(--muted); font-size: 12px; }
main { margin-left: 224px; padding: 0 34px; max-width: 1800px; }
header { height: 67px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
header b { padding: 0 10px; color: #a1b3ae; }
.tag { display: inline-block; padding: 5px 9px; border-radius: 6px; font-size: 12px; background: var(--mint); color: var(--green); }
.tag.neutral { background: #eef1f3; color: #586d75; }
.tag.warning { background: #fff1d6; color: #805c1d; }
.tag.error { background: #fbe8e6; color: #a64039; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 30px 0 19px; }
h1 { margin: 0 0 7px; font-size: 30px; letter-spacing: -.6px; }
h2 { font-size: 16px; margin: 0; }
p { line-height: 1.65; }
.intro p, dialog p { color: var(--muted); margin: 0; }
.primary { background: var(--green); color: white; }
.secondary { background: white; color: var(--ink); border-color: var(--line); }
.link { background: transparent; color: var(--green); padding: 5px 6px; }
a { color: var(--green); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.end { justify-content: end; }
.notice { padding: 11px 15px; margin-bottom: 16px; background: #fff8e7; border: 1px solid #ede0b9; border-radius: 8px; color: #72551d; }
.notice.error { background: #fff0ee; border-color: #efceca; color: #a03630; }
.panel { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.panel-head { padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head small, .note, .sub { color: var(--muted); font-size: 12px; }
.sub { display: block; margin-top: 4px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.tools.scope { padding: 0 0 15px; border: 0; }
.tools label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.tools input[type=search] { min-width: min(260px, 100%); }
input, select { color: var(--ink); background: white; border: 1px solid #d8e4e0; border-radius: 7px; padding: 9px 10px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.stat { min-width: 0; background: white; padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; }
.stat small, .stat span { color: var(--muted); font-size: 12px; }
.stat strong { display: block; margin: 6px 0 3px; font-size: 21px; overflow-wrap: anywhere; }
.scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead th { font-size: 12px; font-weight: 600; background: #fafcfb; color: var(--muted); white-space: nowrap; }
th, td { padding: 11px 14px; border-top: 1px solid #edf1ef; vertical-align: middle; }
td { max-width: 345px; overflow-wrap: anywhere; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #fafcfb; }
.empty { padding: 34px 14px; text-align: center; color: var(--muted); }
.panel.empty h2 { color: var(--ink); margin-bottom: 9px; }
.pager { padding: 11px 15px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: end; gap: 10px; }
.pager span { color: var(--muted); font-size: 12px; }
.note { padding: 10px 17px; border-top: 1px solid var(--line); line-height: 1.65; }
footer { padding: 12px 0 26px; color: var(--muted); font-size: 11px; }
dialog { width: min(620px, 94vw); max-height: 90vh; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); padding: 24px; }
dialog::backdrop { background: #122a354f; }
dialog h2 { font-size: 21px; margin-bottom: 6px; }
dialog .end { margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 10px; }
.form-grid label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.form-grid input { width: 100%; }
.wide { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; }
legend { color: var(--muted); font-size: 12px; }
.checks { display: flex; gap: 10px 17px; flex-wrap: wrap; }
.checks label { display: flex; align-items: center; gap: 4px; }
dialog .form-error { color: #a03630; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 18px; }
.login-box { width: min(100%, 405px); padding: 28px; }
.login-box .brand { margin: 0 0 22px; padding: 0; }
.login-box h1 { font-size: 23px; }
.login-box .form-grid { grid-template-columns: 1fr; }
.login-box button { width: 100%; }
.login-box .form-error { color: #a03630; }
:focus-visible { outline: 3px solid #6db4a5; outline-offset: 2px; }
[hidden] { display: none !important; }
@media (max-width: 920px) {
  aside { width: 182px; }
  main { margin-left: 182px; padding: 0 19px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  aside { position: static; width: auto; padding: 14px 12px 9px; border-bottom: 1px solid var(--line); }
  nav { display: flex; overflow: auto; margin-top: 10px; }
  nav button { padding: 9px; }
  .aside-foot { display: none; }
  main { margin: 0; padding: 0 12px; }
  header { height: 49px; }
  .intro { align-items: start; flex-direction: column; gap: 11px; margin-top: 18px; }
  h1 { font-size: 25px; }
  .panel-head { flex-wrap: wrap; }
  th, td { padding: 9px 12px; }
}
