:root {
  color-scheme: light;
  --bg: #f5f7f5;
  --paper: #fff;
  --ink: #1d332b;
  --muted: #75827a;
  --line: #e3eae4;
  --brand: #177c69;
  --brand-soft: #eaf3ed;
  --gold: #bb8538;
  --danger: #b14f3f;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  border: 0;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  min-height: 39px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}
button:hover,
.button:hover {
  background: #116451;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: #edf1ed;
  color: var(--ink);
  border: 1px solid var(--line);
}
.secondary:hover {
  background: #e0eae2;
}
input,
select,
textarea {
  border: 1px solid #d7e1d9;
  border-radius: 7px;
  background: #fbfcfa;
  padding: 9px 11px;
  width: 100%;
  min-width: 0;
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #70a996;
  outline-offset: 2px;
}
textarea {
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #53665a;
  font-size: 12px;
  font-weight: 600;
}
label input,
label select,
label textarea {
  font-size: 14px;
  font-weight: 400;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  background: #fcfdfb;
  border-right: 1px solid var(--line);
  padding: 30px 18px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  padding: 0 7px 34px;
}
.brand:hover {
  text-decoration: none;
}
.brand-icon {
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -2px;
  background: var(--brand);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 13px;
}
.brand strong {
  font-size: 19px;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #97a297;
  padding: 0 14px 10px;
}
nav {
  overflow: auto;
}
nav a {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 9px 14px;
  color: #6a796f;
  margin: 3px 0;
  border-radius: 7px;
  font-size: 13px;
}
nav a span {
  font-size: 16px;
  width: 18px;
}
nav a:hover {
  background: #f0f5ef;
  text-decoration: none;
}
nav a.active {
  color: #146b55;
  background: #e8f1e9;
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
  color: var(--muted);
  font-size: 11px;
}
.sidebar-bottom a {
  display: block;
  margin-top: 12px;
}
.status-dot {
  display: inline-block;
  background: #66a57e;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
}
.logout {
  margin-top: 6px;
}
.logout button {
  background: none;
  color: var(--muted);
  padding: 0;
  font-size: 11px;
  min-height: 25px;
}
main {
  margin-left: 228px;
  width: calc(100% - 228px);
}
.topbar {
  height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  background: #fbfcfa;
  font-size: 12px;
  color: #627267;
}
.topbar b {
  padding: 0 14px;
  color: #c1cdc2;
  font-weight: 400;
}
.topbar > div {
  display: flex;
  gap: 24px;
  align-items: center;
}
.content {
  max-width: 1510px;
  margin: auto;
  padding: 35px 36px 20px;
}
.page-heading {
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #82978b;
  font-weight: 600;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  font-weight: 650;
  margin: 8px 0 0;
}
h2 {
  font-size: 15px;
  font-weight: 650;
  margin: 0;
}
p {
  margin: 10px 0;
}
.lead {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: -8px 0 25px;
  color: #60766a;
}
.muted {
  color: var(--muted);
}
small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 4px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 22px 18px;
}
.metric > span {
  font-size: 12px;
  color: #77897d;
}
.metric strong {
  display: block;
  font-size: 30px;
  line-height: 1.4;
  margin: 10px 0 8px;
  font-weight: 600;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}
.metric small {
  font-size: 10px;
}
.grid {
  display: grid;
  gap: 22px;
}
.grid.two {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px;
  margin-bottom: 22px;
  min-width: 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.card-head h2:before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: #81a491;
  margin-right: 10px;
}
.card p {
  font-size: 13px;
  color: #677b6d;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #839184;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding: 0 12px 13px;
  white-space: nowrap;
}
td {
  border-bottom: 1px solid #eef2ed;
  padding: 15px 12px;
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
.video-title {
  display: block;
  max-width: 390px;
  color: #2d4c3c;
  font-weight: 550;
  line-height: 1.5;
}
.badge {
  display: inline-flex;
  background: #f0f3ef;
  color: #718370;
  border: 1px solid #e5ebe2;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
  margin: 2px 3px 2px 0;
}
.badge.good {
  background: #eaf4ed;
  color: #3c8863;
  border-color: #d7eadc;
}
.badge.warn {
  background: #faf2e4;
  color: #a8833a;
  border-color: #efdfbd;
}
.badge.bad {
  background: #faeee8;
  color: #ad6750;
  border-color: #f1d8cc;
}
.notice {
  background: #f4f1df;
  border: 1px solid #e9dfb9;
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 13px;
  margin: 0 0 22px;
  color: #816f34;
}
.empty {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #879789;
  text-align: center;
}
.empty-mark {
  font-size: 29px;
  color: #c2d1c2;
}
.empty strong {
  font-size: 12px;
  font-weight: 500;
}
.empty > span:last-child {
  font-size: 10px;
  color: #a2afa3;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.wide {
  grid-column: 1/-1;
}
.compact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}
.compact-form button {
  font-size: 11px;
  padding: 7px 10px;
  min-height: 30px;
}
.inline,
.actions,
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar {
  justify-content: space-between;
  margin-bottom: 22px;
}
.toolbar form {
  display: flex;
  gap: 10px;
  min-width: min(100%, 420px);
}
.toolbar input {
  max-width: 340px;
}
.toolbar > span {
  font-size: 11px;
  color: var(--muted);
}
.actions {
  margin-top: 18px;
}
.list-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.list-item:last-child {
  border: 0;
}
.list-item strong {
  font-size: 12px;
}
.checklist {
  margin: 0;
  padding-left: 22px;
  font-size: 12px;
}
.checklist li {
  padding: 10px 0;
}
.hero {
  position: relative;
  background: #eaf1e9;
  border: 1px solid #dce8dd;
  border-radius: 14px;
  overflow: hidden;
  padding: 45px 40px;
  margin-bottom: 28px;
  min-height: 340px;
}
.pill {
  background: #dce9dc;
  color: #51815b;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: 1px;
}
.hero h2 {
  font-size: 34px;
  line-height: 1.4;
  letter-spacing: -1px;
  margin: 22px 0 17px;
  position: relative;
  z-index: 1;
}
.hero p {
  font-size: 13px;
  color: #65816b;
  max-width: 400px;
  position: relative;
  z-index: 1;
}
.hero .actions {
  position: relative;
  z-index: 1;
}
.hero-graphic {
  position: absolute;
  right: 8%;
  bottom: 65px;
  width: 250px;
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  border-bottom: 1px solid #c6d7c3;
  padding: 0 12px;
}
.hero-graphic span {
  width: 34px;
  background: #9aba96;
  border-radius: 5px 5px 0 0;
}
.hero-graphic span:nth-child(1) {
  height: 35%;
}
.hero-graphic span:nth-child(2) {
  height: 56%;
  background: #7eab83;
}
.hero-graphic span:nth-child(3) {
  height: 49%;
}
.hero-graphic span:nth-child(4) {
  height: 75%;
  background: #bbcc9c;
}
.hero-graphic span:nth-child(5) {
  height: 100%;
  background: #397e60;
}
.hero-graphic i {
  position: absolute;
  bottom: -32px;
  font-size: 10px;
  letter-spacing: 3px;
  color: #65816b;
  font-style: normal;
}
.auth-card {
  max-width: 460px;
  margin: 50px auto;
  padding: 36px;
}
.auth-card .form-grid {
  grid-template-columns: 1fr;
  margin-top: 25px;
}
.auth-card h2 {
  font-size: 22px;
  margin: 12px 0;
}
.video-hero {
  display: flex;
  gap: 24px;
  margin: 0 0 25px;
  align-items: center;
}
.video-hero img {
  width: 220px;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 9px;
}
.video-hero h2 {
  font-size: 21px;
}
.chart {
  width: 100%;
  height: 215px;
}
.chart text {
  font-size: 10px;
  fill: #829688;
}
.prewrap {
  white-space: pre-wrap;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  background: #f5f7f4;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 6px;
  max-height: 340px;
  overflow: auto;
}
details > summary {
  cursor: pointer;
  color: #617a66;
  font-size: 12px;
  padding: 8px 0;
}
.qr-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f6f8f4;
  border: 1px dashed #d8e2d6;
  border-radius: 9px;
  min-height: 200px;
  margin: 20px 0;
  padding: 20px;
}
.qr-box img {
  max-width: 210px;
}
.challenge {
  display: block;
  font-size: 21px;
  letter-spacing: 2px;
  padding: 20px;
  background: #f1f5ed;
  color: #35643c;
  margin: 16px 0;
}
.danger {
  color: var(--danger);
}
footer {
  padding: 25px 0 10px;
  color: #a1ada1;
  font-size: 10px;
  text-align: center;
}
.text-button {
  font-size: 12px;
}
.error-code {
  font-size: 50px;
  color: #bdcdb9;
}
@media (min-width: 1550px) {
  .content {
    padding: 42px 50px;
  }
  .sidebar {
    width: 248px;
  }
  main {
    margin-left: 248px;
    width: calc(100% - 248px);
  }
}
@media (max-width: 1100px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  .hero-graphic {
    opacity: 0.28;
    right: 20px;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .clock {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 70px;
    padding: 18px 8px;
  }
  .brand {
    padding: 0 5px 24px;
  }
  .brand-icon {
    width: 42px;
    height: 42px;
  }
  .brand > div,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav a {
    font-size: 0;
    padding: 12px 14px;
  }
  nav a span {
    font-size: 21px;
  }
  main {
    margin-left: 70px;
    width: calc(100% - 70px);
  }
  .topbar {
    padding: 0 16px;
    height: 60px;
  }
  .topbar .text-button {
    font-size: 10px;
  }
  .content {
    padding: 22px 15px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 25px;
  }
  .metrics {
    gap: 10px;
  }
  .grid.three {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
  .hero {
    padding: 28px 23px;
  }
  .hero h2 {
    font-size: 28px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .video-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .video-hero img {
    width: 100%;
    max-width: 300px;
  }
  h1 {
    font-size: 24px;
  }
  .toolbar form {
    min-width: 100%;
  }
  .auth-card {
    padding: 25px;
    margin-top: 20px;
  }
  .hero-graphic {
    display: none;
  }
}
