:root {
  font-family:
    Inter,
    Segoe UI,
    system-ui,
    sans-serif;
  color: #16362f;
  background: #f5f6f2;
  font-synthesis: none;
  --green: #123e38;
  --muted: #65756d;
  --line: #dce3da;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 16px;
  background: white;
  color: var(--green);
  font-weight: 600;
}
button:hover {
  background: #eaf1e9;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.danger {
  color: #a33630;
  border-color: #e3bbb8;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #bbc9bf;
  border-radius: 8px;
  background: white;
  color: #15372f;
}
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -1.2px;
  margin: 8px 0 12px;
}
h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
p {
  line-height: 1.6;
}
small,
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #738470;
}
.shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--green);
  color: white;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}
.brand {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -1px;
}
.brand span {
  color: #b1d596;
}
.sidebar small {
  color: #b4c9be;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar button {
  background: transparent;
  border-color: transparent;
  color: #d5e3db;
  text-align: left;
  font-weight: 500;
}
.sidebar button.active {
  background: #2b514a;
  color: white;
}
.sidebar footer {
  margin-top: auto;
  font-size: 12px;
  color: #bdcfc2;
  line-height: 1.7;
}
.workspace {
  min-width: 0;
}
.topbar {
  border-bottom: 1px solid var(--line);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: #fafbf8;
}
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.avatar {
  background: #dbe8d2;
  border-radius: 50%;
  padding: 12px;
  font-weight: bold;
}
.content {
  max-width: 1250px;
  margin: auto;
  padding: 36px 40px 60px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.heading p {
  margin: 0;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stats {
  margin: 25px 0;
}
.stat,
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 23px;
}
.stat strong {
  display: block;
  font-size: 34px;
  margin-top: 14px;
  font-weight: 600;
}
.stat small {
  font-size: 13px;
}
.split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.card {
  margin-bottom: 18px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e9ece5;
}
.row:last-child {
  border: 0;
}
.row p {
  margin: 5px 0;
  font-size: 13px;
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  background: #eef2e9;
  color: #506745;
}
.badge.good {
  background: #e2f0df;
  color: #316332;
}
.badge.bad {
  background: #fae7e3;
  color: #9c3e30;
}
.badge.warn {
  background: #fff0d5;
  color: #855d18;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.form {
  display: grid;
  gap: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.wide {
  grid-column: 1/-1;
}
.notice {
  background: #edf2e8;
  border: 1px solid #d5e2cd;
  border-radius: 10px;
  padding: 14px 17px;
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0;
}
.notice.warn {
  background: #fff5e1;
  border-color: #ead8ac;
}
.empty {
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-art {
  background: var(--green);
  padding: 10vw 7vw;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-art h1 {
  font-size: 56px;
  max-width: 460px;
  margin: 65px 0 20px;
}
.login-art p {
  color: #bbd0c0;
  max-width: 350px;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
}
.login-main .form {
  width: 100%;
  max-width: 390px;
}
.login-main h1 {
  font-size: 29px;
  margin: 0;
}
.login-main .notice {
  font-size: 12px;
}
.ornament {
  display: grid;
  grid-template-columns: repeat(3, 22px);
  gap: 8px;
  margin-top: 45px;
}
.ornament i {
  height: 22px;
  background: #aaca8e;
  border-radius: 5px;
}
.ornament i:nth-child(2n) {
  opacity: 0.25;
}
.filters {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.filters input {
  flex: 2;
  min-width: 180px;
}
.filters select {
  flex: 1;
  min-width: 120px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  width: min(620px, 94vw);
  max-height: 90vh;
  color: var(--green);
}
dialog::backdrop {
  background: #09282099;
  backdrop-filter: blur(3px);
}
.qr {
  display: block;
  width: 240px;
  max-width: 100%;
  margin: 16px auto;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 14px;
}
.detail-grid small {
  display: block;
  margin-bottom: 5px;
}
video {
  width: 100%;
  max-height: 360px;
  background: #102b25;
  border-radius: 12px;
}
.result-title {
  font-size: 23px;
  line-height: 1.4;
}
.error {
  color: #a1362c;
  line-height: 1.5;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #123e38;
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  z-index: 100;
  box-shadow: 0 4px 20px #0002;
  max-width: 90vw;
}
#toast:empty {
  display: none;
}
#offline {
  background: #a2362c;
  color: white;
  text-align: center;
  padding: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.demo {
  background: #e1ebc9;
  padding: 7px 14px;
  text-align: center;
  font-size: 12px;
}
.login .demo {
  border-radius: 8px;
}
.spacer {
  height: 12px;
}
a {
  color: #176957;
}
.audit {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.notification {
  border-left: 3px solid #8ca67b;
  padding-left: 15px;
}
.notification.read {
  border-color: #ddd;
  opacity: 0.75;
}
@media (max-width: 1000px) {
  .split {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 25px;
  }
  .shell {
    grid-template-columns: 200px 1fr;
  }
  .topbar {
    padding: 16px 25px;
  }
  .login-art h1 {
    font-size: 44px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 16px;
    gap: 16px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .sidebar nav button {
    white-space: nowrap;
    padding: 9px;
  }
  .sidebar footer,
  .sidebar > small {
    display: none;
  }
  .brand {
    font-size: 24px;
  }
  .topbar {
    padding: 12px 18px;
  }
  .content {
    padding: 24px 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .grid {
    gap: 8px;
  }
  .stat {
    padding: 14px 10px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat small {
    font-size: 11px;
  }
  .card {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .row {
    align-items: flex-start;
  }
  .login {
    display: block;
  }
  .login-art {
    padding: 24px;
  }
  .login-art h1,
  .login-art p,
  .ornament {
    display: none;
  }
  .login-main {
    padding: 35px 24px;
  }
  .profile .avatar {
    display: none;
  }
  .topbar > small {
    max-width: 140px;
  }
  .filters {
    flex-direction: column;
  }
  button {
    min-height: 42px;
  }
}
[hidden] {
  display: none !important;
}
.split {
  align-items: start;
}
.form {
  align-content: start;
}
