:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #25332e;
  background: #fafbf9;
  font-synthesis: none;
  --green: #245b49;
  --line: #e2e7e1;
  --muted: #79817b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.5;
}
button:hover {
  background: #f1f5f0;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #89b59f;
  outline-offset: 3px;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.primary:hover {
  background: #184734;
}
button.quiet {
  border: 0;
  background: transparent;
  padding: 6px;
}
.muted,
.caption {
  color: var(--muted);
}
.caption {
  font-size: 12px;
  line-height: 1.8;
}
.eyebrow {
  letter-spacing: 2px;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.pill {
  display: inline-block;
  border-radius: 20px;
  background: #edf3ed;
  color: #42634d;
  padding: 5px 10px;
  font-size: 12px;
}
h1 {
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1.5;
  margin: 14px 0;
}
h2 {
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 12px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}
p {
  line-height: 1.8;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 15px 0 8px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #d9e0d7;
  border-radius: 8px;
  padding: 12px;
  background: white;
  color: #25332e;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #51826b;
  box-shadow: 0 0 0 3px #e8f0e7;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
form > button {
  margin-top: 16px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  background: #f7f9f5;
  padding: 16px;
  line-height: 1.7;
  font-size: 12px;
  max-height: 50vh;
  overflow: auto;
}
a {
  color: var(--green);
}
[hidden] {
  display: none !important;
}
.login-wrap {
  max-width: 1060px;
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  padding: 60px;
}
.login-card h1 {
  font-size: 38px;
}
.login-card form {
  margin-top: 35px;
}
.login-card form button {
  width: 100%;
}
.login-note {
  padding: 44px;
  background: #edf2e9;
  border-radius: 24px;
  min-height: 490px;
}
.login-note h2 {
  font-size: 29px;
  line-height: 1.6;
  margin-top: 30px;
}
.login-note ol {
  padding-left: 25px;
  margin-top: 32px;
}
.login-note li {
  padding: 0 0 16px 10px;
}
.login-note li p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  padding: 34px 20px 22px;
  background: #f2f5f0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 1px;
}
.nav-label {
  font-size: 11px;
  color: #8a9589;
  margin: 50px 14px 14px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav button {
  text-align: left;
  background: transparent;
  border-color: transparent;
  padding: 12px 14px;
  display: flex;
  gap: 13px;
  color: #6b786e;
}
.sidebar nav button.active {
  background: #e0eade;
  color: #214c3a;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
  font-size: 11px;
  color: #798578;
  border-top: 1px solid var(--line);
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #638b6d;
}
.sidebar-bottom p {
  overflow-wrap: anywhere;
}
.app main {
  margin-left: 228px;
  width: calc(100% - 228px);
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 12px;
}
#content {
  max-width: 1180px;
  margin: auto;
  padding: 40px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}
.page-head h1 {
  margin: 0;
  font-size: 29px;
}
.page-head p {
  font-size: 14px;
  margin: 8px 0 0;
  color: var(--muted);
}
.hero {
  background: #edf3e8;
  border: 1px solid #dfe8d7;
  border-radius: 16px;
  padding: 30px;
  margin: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.hero h2 {
  font-size: 24px;
}
.hero p {
  font-size: 14px;
  color: #6d7c66;
  margin-bottom: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}
.card p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 18px;
}
.card .number {
  font-size: 12px;
  font-family: monospace;
  color: #8b9c83;
  display: block;
  margin-bottom: 18px;
}
.card .metric {
  font-size: 30px;
  margin: 5px 0 12px;
  font-weight: 500;
}
.section {
  margin-top: 30px;
}
.section > h2 {
  font-size: 17px;
  margin-bottom: 16px;
}
.row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}
.row > select {
  width: auto;
  min-width: 180px;
  max-width: 100%;
}
.list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.list-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child {
  border-bottom: 0;
}
.list-item h3 {
  overflow-wrap: anywhere;
  line-height: 1.6;
  font-size: 14px;
}
.list-item p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 12px;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed #d9e0d6;
  border-radius: 12px;
}
.empty h3 {
  color: #60765f;
}
.step {
  border-left: 2px solid #d7e2d0;
  padding: 0 0 20px 20px;
  margin: 22px 0;
}
.step h3 {
  font-size: 15px;
}
.step p {
  font-size: 13px;
  color: var(--muted);
}
.warning {
  background: #fbf5e9;
  border: 1px solid #ebdfbf;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 13px;
  line-height: 1.8;
  color: #7b6030;
}
.error {
  color: #994322;
}
.break {
  overflow-wrap: anywhere;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  width: min(660px, 92vw);
  color: #25332e;
  box-shadow: 0 20px 100px #14261733;
}
dialog::backdrop {
  background: #26362666;
}
dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
dialog header h2 {
  margin-bottom: 20px;
}
#notice {
  position: fixed;
  z-index: 100;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 14px 22px;
  background: #243c30;
  color: white;
  border-radius: 10px;
  box-shadow: 0 6px 30px #0002;
  font-size: 14px;
}
.consent {
  max-width: 600px;
  margin: auto;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  line-height: 1.6;
}
.check-label input {
  width: auto;
}
details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 14px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 950px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }
  #content {
    padding: 26px;
  }
  .hero {
    align-items: start;
    flex-direction: column;
  }
  .login-wrap {
    gap: 40px;
    padding: 40px;
  }
  .login-note {
    padding: 24px;
  }
}
@media (max-width: 680px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .app {
    display: block;
  }
  .brand {
    font-size: 20px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 16px;
  }
  .sidebar nav button {
    white-space: nowrap;
    font-size: 12px;
    padding: 9px;
  }
  .nav-label {
    display: none;
  }
  .sidebar-bottom {
    margin-top: 12px;
    padding: 12px 0 0;
  }
  .app main {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 52px;
    padding: 0 22px;
  }
  .topbar .muted {
    display: none;
  }
  #content {
    padding: 22px;
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: start;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .login-wrap {
    display: block;
    padding: 32px;
  }
  .login-note {
    display: none;
  }
}
