:root {
  --ink: #17211b;
  --muted: #647067;
  --line: #dfe5df;
  --paper: #f4f6f2;
  --white: #fff;
  --green: #176b45;
  --green-soft: #e7f3ec;
  --red: #b53a35;
  --red-soft: #faece9;
  --amber: #9b641d;
  --blue: #346f9f;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px; background: #15261d; color: #fff; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; border-bottom: 1px solid #ffffff1e; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #87b89d; border-radius: 12px; color: #d6f2e1; font: 700 20px Georgia, serif; }
.brand strong, .brand span { display: block; }
.brand span { margin-top: 3px; color: #9eb3a5; font-size: 12px; }
.nav { display: grid; gap: 8px; margin-top: 28px; }
.nav-item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; color: #b7c8bc; background: transparent; text-align: left; }
.nav-item:hover, .nav-item.active { color: #fff; background: #ffffff12; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #809188; box-shadow: 0 0 0 4px #ffffff0d; }
.dot.red { background: #eb746d; }.dot.blue { background: #72a9d3; }.dot.green { background: #72c99a; }
.privacy-note { margin-top: auto; padding: 16px; border: 1px solid #ffffff18; border-radius: 12px; color: #aabbb0; font-size: 12px; line-height: 1.65; }
.privacy-note strong, .privacy-note span { display: block; }.privacy-note strong { color: #e5efe8; margin-bottom: 4px; }
.main { min-width: 0; padding: 28px clamp(22px, 4vw, 58px) 60px; }
.topbar { min-height: 72px; display: flex; justify-content: space-between; align-items: start; margin-bottom: 30px; }
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: 11px; letter-spacing: .16em; font-weight: 800; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 0; font: 600 clamp(26px, 3vw, 38px) Georgia, "Songti SC", serif; } h2 { margin-bottom: 6px; font-size: 18px; }
.session-actions { display: flex; align-items: center; gap: 12px; }.user-chip { color: var(--muted); font-size: 13px; }
.button { border: 1px solid transparent; border-radius: 9px; padding: 9px 14px; transition: .15s ease; }
.button:hover { transform: translateY(-1px); }.button.primary { width: 100%; color: white; background: var(--green); padding: 12px; }.button.secondary { color: var(--green); border-color: #a9c7b5; background: #fff; }.button.ghost { color: var(--muted); border-color: var(--line); background: transparent; }
.login-wrap { min-height: 65vh; display: grid; place-items: center; }.login-card { width: min(440px, 100%); padding: 38px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 60px #18382010; }
.login-card h2 { font: 600 28px Georgia, "Songti SC", serif; }.login-card > p:not(.eyebrow):not(.error) { color: var(--muted); line-height: 1.7; }.login-icon { float: right; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 22px; }
label { display: block; margin: 22px 0 8px; font-size: 13px; font-weight: 700; } input, select { min-height: 39px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; padding: 8px 10px; }
.login-card input { width: 100%; margin-bottom: 14px; }.error { min-height: 20px; margin: 10px 0 0; color: var(--red); font-size: 13px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }.metric { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }.metric.warning { border-top: 3px solid var(--red); }.metric span, .metric small { display: block; }.metric span { color: var(--muted); font-size: 13px; }.metric strong { display: block; margin: 10px 0 6px; font: 600 27px Georgia, serif; }.metric small { color: #8b958e; font-size: 11px; }
.panel { margin-bottom: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }.panel.compact { padding: 26px 30px; }.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }.panel-head p { margin: 0; color: var(--muted); font-size: 13px; }.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.table-wrap { overflow: auto; } table { width: 100%; border-collapse: collapse; font-size: 13px; } th { color: #7c877f; font-size: 11px; letter-spacing: .04em; text-align: left; font-weight: 700; } th, td { padding: 13px 12px; border-bottom: 1px solid #edf0ed; vertical-align: top; } td strong, td span { display: block; } td .sub { margin-top: 3px; color: var(--muted); font-size: 11px; }
.tag { display: inline-block; width: fit-content; padding: 4px 7px; border-radius: 20px; background: var(--red-soft); color: var(--red); font-size: 11px; font-weight: 700; }.tag.amber { color: var(--amber); background: #fbf1df; }
.action-set { display: flex; gap: 6px; }.mini { border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 6px 8px; font-size: 11px; }.mini:hover { border-color: var(--green); color: var(--green); }
.empty { padding: 48px; text-align: center; color: var(--muted); }.empty span { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 50%; color: var(--green); background: var(--green-soft); }.empty strong { display: block; color: var(--ink); }.empty p { margin: 6px 0; font-size: 13px; }
.bars { display: grid; gap: 9px; margin: 12px 0 24px; }.bar-row { display: grid; grid-template-columns: 110px 1fr 80px; gap: 10px; align-items: center; font-size: 12px; }.bar-track { height: 8px; overflow: hidden; border-radius: 10px; background: #edf0ed; }.bar-fill { height: 100%; min-width: 2px; border-radius: inherit; background: var(--green); }
.system-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }.system-card { padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf9; }.system-card span { color: var(--muted); font-size: 12px; }.system-card strong { display: block; margin-top: 8px; font-size: 16px; word-break: break-word; }.status-ok { color: var(--green); }.plain-list { margin: 14px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.9; font-size: 13px; }
.toast { position: fixed; right: 28px; bottom: 28px; max-width: 360px; padding: 12px 16px; border-radius: 9px; color: white; background: #20352a; box-shadow: 0 10px 40px #0003; font-size: 13px; }
@media (max-width: 980px) { .summary-grid { grid-template-columns: repeat(2, 1fr); }.shell { grid-template-columns: 78px minmax(0, 1fr); }.sidebar { padding: 24px 12px; }.brand > div:last-child, .privacy-note, .nav-item { font-size: 0; }.nav-item { justify-content: center; }.brand { padding-inline: 7px; }.brand-mark { flex: none; }.nav-item .dot { width: 10px; height: 10px; } }
@media (max-width: 680px) { .shell { display: block; }.sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; }.brand { border: 0; padding: 0; }.nav { margin: 0 0 0 auto; grid-auto-flow: column; }.main { padding: 20px 14px 40px; }.topbar { margin-bottom: 20px; }.summary-grid, .system-grid { grid-template-columns: 1fr; }.panel-head { align-items: stretch; flex-direction: column; }.filters > * { flex: 1; }.session-actions { flex-direction: column; align-items: end; gap: 4px; }.login-card { padding: 28px 22px; } }
