:root {
  --ink: #17312f;
  --muted: #73817f;
  --line: #e4ebe7;
  --green: #1c6955;
  --light: #eaf2ed;
  --paper: #f6f8f5;
  --orange: #a96824;
  --red: #b94e43;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  font-size: 14px;
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 32px;
}
.brand-mark {
  background: var(--green);
  color: white;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  font-size: 19px;
}
.brand strong {
  font-size: 22px;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.8px;
  margin-top: 2px;
}
.nav-section {
  font-size: 10px;
  color: #98a5a1;
  letter-spacing: 1.8px;
  margin: 26px 14px 10px;
}
.nav-item {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  width: 100%;
  text-align: left;
  color: #657774;
  border-radius: 8px;
  margin: 3px 0;
  font-weight: 500;
}
.nav-item:hover {
  background: #f5f8f5;
}
.nav-item.active {
  background: var(--light);
  color: var(--green);
  font-weight: 700;
}
.nav-icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 12px 0;
}
.support {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1e9d9;
  color: #8b713f;
  font-size: 12px;
  font-weight: 700;
}
.user-chip strong {
  font-size: 12px;
}
.user-chip small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: #ffffffb0;
  gap: 12px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb b {
  color: var(--ink);
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.environment {
  font-size: 11px;
  color: var(--green);
  background: #eef5ee;
  padding: 5px 9px;
  border-radius: 20px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #6a9979;
  border-radius: 50%;
  margin-right: 6px;
}
.content {
  max-width: 1560px;
  margin: 0 auto;
  padding: 34px 40px 48px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 8px;
}
.page-heading h1 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 13px;
  background: white;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.5;
}
.btn:hover {
  background: #f1f5f1;
  text-decoration: none;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: #145240;
}
.btn.danger {
  color: var(--red);
}
.btn.ghost {
  border: 0;
  background: transparent;
  padding: 6px 8px;
}
.btn.small {
  padding: 5px 9px;
  font-size: 11px;
}
.button-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.demo-banner,
.notice {
  padding: 11px 15px;
  background: #faf4e7;
  color: #8a6b30;
  border: 1px solid #eae0c7;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.notice.green {
  color: var(--green);
  background: #eef5ef;
  border-color: #d7e7da;
}
.filters {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filters select,
.filters input {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 12px;
  min-height: 36px;
  max-width: 100%;
}
.filters .spacer {
  flex: 1;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 24px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  padding: 20px 21px;
  border-radius: 10px;
  min-width: 0;
}
.metric-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  align-items: center;
}
.metric-symbol {
  color: #91a499;
  font-size: 17px;
}
.metric-value {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 17px 0 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.metric-value small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
  letter-spacing: 0;
}
.metric-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.metric-note b {
  color: var(--green);
  font-weight: 500;
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}
.panel-pad {
  padding: 23px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 23px 17px;
  gap: 10px;
}
.panel-head h2 {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
}
.panel-head small {
  font-size: 10px;
  color: var(--muted);
}
.panel-foot {
  border-top: 1px solid var(--line);
  padding: 11px 23px;
  color: var(--muted);
  font-size: 10px;
}
.legend {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--green);
  margin-right: 5px;
}
.legend i.soft {
  background: #cddfd1;
}
.chart {
  width: 100%;
  height: 218px;
  display: block;
}
.chart text {
  font-family: inherit;
  font-size: 10px;
  fill: var(--muted);
}
.chart .grid {
  stroke: #edf1ed;
  stroke-width: 1;
}
.chart .fill {
  fill: #eaf3ec;
}
.chart .line {
  fill: none;
  stroke: #428467;
  stroke-width: 2.4;
}
.chart .point {
  fill: #fff;
  stroke: #428467;
  stroke-width: 2;
}
.dept-bars {
  padding: 0 23px 20px;
}
.dept-row {
  padding: 15px 0;
}
.dept-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 9px;
  gap: 8px;
}
.dept-info small {
  color: var(--muted);
  font-size: 10px;
}
.bar-track {
  height: 7px;
  background: #f0f4ef;
  border-radius: 8px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #72a181;
  border-radius: 8px;
}
.bar-fill.warn {
  background: #cea86b;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  background: #fafbf9;
  text-align: left;
  padding: 12px 20px;
  font-size: 10px;
  color: #87948e;
  font-weight: 500;
  white-space: nowrap;
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f3ef;
  vertical-align: middle;
  line-height: 1.6;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td.secondary {
  color: var(--muted);
}
td small,
.cell-sub {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.account-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.platform-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f0e9;
  color: #39715b;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.platform-icon.blue {
  background: #e9eff8;
  color: #537cbd;
}
.platform-icon.orange {
  background: #f8eee4;
  color: #b28448;
}
.platform-icon.purple {
  background: #f1ebf8;
  color: #9574b8;
}
.badge {
  display: inline-block;
  font-size: 10px;
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: 5px;
  background: #edf4ee;
  color: #538363;
  white-space: nowrap;
}
.badge.warn {
  background: #fbf1de;
  color: #a57c35;
}
.badge.bad {
  background: #fbece8;
  color: #b76e62;
}
.badge.neutral {
  background: #f0f3f0;
  color: #839087;
}
.right {
  text-align: right;
}
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 12px;
}
.alert-row {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f3ef;
  align-items: flex-start;
}
.alert-row:last-child {
  border-bottom: 0;
}
.alert-icon {
  background: #faf2e3;
  color: #b68d49;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 13px;
}
.alert-content {
  flex: 1;
}
.alert-content strong {
  font-size: 12px;
  font-weight: 500;
}
.alert-content p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin: 4px 0;
}
.mini-list {
  padding: 0 23px 12px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 24px;
  min-width: 0;
}
.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tool-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}
.tool-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.tool-details {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 18px 0;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0;
  font-size: 11px;
  line-height: 1.7;
}
.kv > span:first-child {
  color: var(--muted);
  flex-shrink: 0;
}
.kv > span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
}
.manual-content {
  font-size: 13px;
  line-height: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.manual-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
}
.guide-option {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px;
  text-align: left;
  color: var(--ink);
  line-height: 1.7;
}
.guide-option.active {
  background: var(--light);
}
.guide-option small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.dept-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
}
.dept-button {
  padding: 13px 18px;
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  border-bottom: 1px solid #f3f4ef;
  color: var(--ink);
  font-size: 12px;
}
.dept-button.active {
  background: var(--light);
  color: var(--green);
}
.history {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: white;
}
.auth-hero {
  background: #173c32;
  color: #fff;
  padding: 10vh 9%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-hero .brand {
  padding: 0;
  margin-bottom: 72px;
}
.auth-hero .brand-mark {
  background: #ffffff22;
}
.auth-hero .brand small {
  color: #b5cdbd;
}
.auth-hero h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -1px;
  margin: 0 0 23px;
}
.auth-hero p {
  font-size: 13px;
  line-height: 2.1;
  color: #c0d2c5;
  max-width: 330px;
}
.auth-hero .hero-bottom {
  margin-top: 65px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #91b19d;
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form {
  width: 100%;
  max-width: 375px;
}
.auth-form h2 {
  font-size: 25px;
  font-weight: 600;
  margin: 0 0 12px;
}
.auth-form p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  margin-bottom: 16px;
  min-width: 0;
}
.form-grid .field {
  margin-bottom: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 11px;
  color: #657973;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #dae3dc;
  background: #fff;
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--ink);
  width: 100%;
  min-height: 39px;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.8;
}
.field .help {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.field input[type="checkbox"] {
  width: 16px;
  min-height: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.7;
}
.auth-form .btn.primary {
  width: 100%;
  padding: 12px;
}
.auth-footer {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 28px;
}
.error-text {
  color: var(--red);
  font-size: 12px;
  line-height: 1.8;
  margin: 12px 0;
}
.demo-login {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.demo-login .button-row .btn {
  flex: 1;
}
.demo-login > small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0;
  width: min(690px, calc(100vw - 32px));
  max-height: 90vh;
  box-shadow: 0 24px 100px #10281c2e;
  color: var(--ink);
}
dialog::backdrop {
  background: #10291e55;
  backdrop-filter: blur(2px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.modal-head h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}
.modal-body {
  padding: 24px 26px;
}
.modal-footer {
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.credential {
  font-family: monospace;
  background: #f3f6f1;
  padding: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 7px;
  user-select: text;
}
.device-gate {
  max-width: 630px;
  margin: 65px auto;
  padding: 35px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.device-gate h1 {
  font-size: 24px;
  margin: 0 0 12px;
}
.device-gate p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.device-gate .field {
  margin-top: 24px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #244c3e;
  color: white;
  border-radius: 8px;
  padding: 12px 20px;
  box-shadow: 0 6px 30px #19382a20;
  font-size: 12px;
  z-index: 20;
  display: none;
  max-width: 90vw;
}
.pagination-note {
  font-size: 10px;
  color: var(--muted);
  padding: 13px 20px;
}
.muted {
  color: var(--muted);
}
.report-header {
  padding: 25px;
  border-bottom: 1px solid var(--line);
}
.report-header h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.code {
  font-family: monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.progress-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.security-info {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.mobile-toggle {
  display: none;
}
.hidden {
  display: none !important;
}
@media (min-width: 1500px) {
  .content {
    padding: 40px 50px;
  }
  .topbar {
    padding: 0 50px;
  }
  .metrics {
    gap: 22px;
  }
  .metric {
    padding: 23px 25px;
  }
  .metric-value {
    font-size: 34px;
  }
  .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 12px;
  }
  .content {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 25px;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dept-layout,
  .manual-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .auth-hero h1 {
    font-size: 31px;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
    position: relative;
    height: auto;
  }
  .shell.menu-open .sidebar {
    display: flex;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    height: auto;
    min-height: 66px;
    padding: 14px 18px;
    flex-wrap: wrap;
  }
  .content {
    padding: 24px 16px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric-value {
    font-size: 26px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .dept-layout,
  .manual-layout {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    display: none;
  }
  .auth-form-wrap {
    min-height: 100vh;
    padding: 28px;
  }
  .top-actions {
    gap: 8px;
  }
  .environment {
    display: none;
  }
  .metric-note {
    min-height: 30px;
  }
  .device-gate {
    margin: 25px 16px;
    padding: 25px;
  }
  .panel-head {
    padding: 18px;
  }
  .panel-pad {
    padding: 18px;
  }
  td,
  th {
    padding: 12px 15px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-head {
    padding: 20px;
  }
  .filters .spacer {
    display: none;
  }
}
